mendixmodelsdk
Advanced tools
Comparing version 2.0.0-dev.eb89e03 to 2.0.0-dev.ec80434
[ | ||
{ | ||
"deltaType": "CREATE_UNIT", | ||
"unitId": "4f86af42-e026-49cd-83ed-f4b650ccec35", | ||
"unitId": "a2922a7a-26f2-4a4f-8f76-f45adf8f46d4", | ||
"containerId": "eec3241d-13a9-4ba9-940c-5d5223624304", | ||
@@ -10,4 +10,4 @@ "containmentName": "modules", | ||
{ | ||
"unitId": "4f86af42-e026-49cd-83ed-f4b650ccec35", | ||
"elementId": "4f86af42-e026-49cd-83ed-f4b650ccec35", | ||
"unitId": "a2922a7a-26f2-4a4f-8f76-f45adf8f46d4", | ||
"elementId": "a2922a7a-26f2-4a4f-8f76-f45adf8f46d4", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -22,4 +22,4 @@ "propertyName": "name", | ||
"deltaType": "CREATE_UNIT", | ||
"unitId": "5a9b6cc3-b92d-47e1-9ca4-0fbfb66d07e8", | ||
"containerId": "4f86af42-e026-49cd-83ed-f4b650ccec35", | ||
"unitId": "d43de889-11c5-4320-a18e-655bf5bf233e", | ||
"containerId": "a2922a7a-26f2-4a4f-8f76-f45adf8f46d4", | ||
"containmentName": "domainModel", | ||
@@ -30,4 +30,4 @@ "contentType": "DomainModels$DomainModel" | ||
"deltaType": "CREATE_UNIT", | ||
"unitId": "5f8c9782-08fd-4837-8969-3ac15751d9f6", | ||
"containerId": "4f86af42-e026-49cd-83ed-f4b650ccec35", | ||
"unitId": "b583a86a-49bd-4be0-ac79-dd3b1c2e8059", | ||
"containerId": "a2922a7a-26f2-4a4f-8f76-f45adf8f46d4", | ||
"containmentName": "folders", | ||
@@ -37,4 +37,4 @@ "contentType": "Projects$Folder" | ||
{ | ||
"unitId": "5f8c9782-08fd-4837-8969-3ac15751d9f6", | ||
"elementId": "5f8c9782-08fd-4837-8969-3ac15751d9f6", | ||
"unitId": "b583a86a-49bd-4be0-ac79-dd3b1c2e8059", | ||
"elementId": "b583a86a-49bd-4be0-ac79-dd3b1c2e8059", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -49,4 +49,4 @@ "propertyName": "name", | ||
"deltaType": "CREATE_UNIT", | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"containerId": "5f8c9782-08fd-4837-8969-3ac15751d9f6", | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"containerId": "b583a86a-49bd-4be0-ac79-dd3b1c2e8059", | ||
"containmentName": "documents", | ||
@@ -56,4 +56,4 @@ "contentType": "Pages$Page" | ||
{ | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -67,4 +67,4 @@ "propertyName": "canvasWidth", | ||
{ | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -78,28 +78,28 @@ "propertyName": "canvasHeight", | ||
{ | ||
"parentId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"parentId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementType": "Pages$LayoutCall", | ||
"parentPropertyName": "layoutCall", | ||
"deltaType": "CREATE_ELEMENT", | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "96e932e2-b978-4a28-89c9-dac322c76a96" | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "6e5729e5-2c8d-4e56-83e9-95e311e807a3" | ||
}, | ||
{ | ||
"parentId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"parentId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementType": "Texts$Text", | ||
"parentPropertyName": "title", | ||
"deltaType": "CREATE_ELEMENT", | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "6a4c4b22-f657-4298-b044-e67d308420f5" | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "3520e212-c5ca-455b-9328-84b56c19a30d" | ||
}, | ||
{ | ||
"parentId": "6a4c4b22-f657-4298-b044-e67d308420f5", | ||
"parentId": "3520e212-c5ca-455b-9328-84b56c19a30d", | ||
"elementType": "Texts$Translation", | ||
"parentPropertyName": "translations", | ||
"deltaType": "CREATE_ELEMENT", | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "1e451810-89df-4351-ac38-1161ba6acdc6" | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "1c78bc74-3055-4235-aee3-72e6e0a024f5" | ||
}, | ||
{ | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "1e451810-89df-4351-ac38-1161ba6acdc6", | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "1c78bc74-3055-4235-aee3-72e6e0a024f5", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -113,4 +113,4 @@ "propertyName": "languageCode", | ||
{ | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "1e451810-89df-4351-ac38-1161ba6acdc6", | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "1c78bc74-3055-4235-aee3-72e6e0a024f5", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -124,4 +124,4 @@ "propertyName": "text", | ||
{ | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -135,4 +135,4 @@ "propertyName": "popupResizable", | ||
{ | ||
"unitId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"elementId": "051f815c-3f0c-4999-a25b-09bf711cc3f0", | ||
"unitId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"elementId": "0b9819db-d7a3-43fe-9b1e-83e5962293cd", | ||
"deltaType": "UPDATE_PROPERTY_VALUE", | ||
@@ -139,0 +139,0 @@ "propertyName": "name", |
@@ -86,2 +86,3 @@ import { IAbstractModel, AbstractModel } from '../sdk/internal/abstract-model'; | ||
findJavaActionParameterByQualifiedName(qname: string): javaactions.IJavaActionParameter; | ||
findJsonStructureByQualifiedName(qname: string): jsonstructures.IJsonStructure; | ||
findMenuDocumentByQualifiedName(qname: string): menus.IMenuDocument; | ||
@@ -164,2 +165,3 @@ findMicroflowByQualifiedName(qname: string): microflows.IMicroflow; | ||
findJavaActionParameterByQualifiedName(qname: string): javaactions.IJavaActionParameter; | ||
findJsonStructureByQualifiedName(qname: string): jsonstructures.IJsonStructure; | ||
findMenuDocumentByQualifiedName(qname: string): menus.IMenuDocument; | ||
@@ -166,0 +168,0 @@ findMicroflowByQualifiedName(qname: string): microflows.IMicroflow; |
@@ -322,2 +322,5 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
}; | ||
BaseModel.prototype.findJsonStructureByQualifiedName = function (qname) { | ||
return this._resolveName("JsonStructures$JsonStructure", qname); | ||
}; | ||
BaseModel.prototype.findMenuDocumentByQualifiedName = function (qname) { | ||
@@ -324,0 +327,0 @@ return this._resolveName("Menus$MenuDocument", qname); |
@@ -9,3 +9,3 @@ import * as internal from '../sdk/internal'; | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Domain-to-XML+Mappings relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -19,3 +19,3 @@ interface IExportMapping extends mappings.IMappingDocument { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Domain-to-XML+Mappings relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -46,3 +46,3 @@ class ExportMapping extends mappings.MappingDocument implements IExportMapping { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+entity+to+element relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -57,3 +57,3 @@ interface IExportObjectMappingElement extends mappings.IObjectMappingElement { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+entity+to+element relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -86,3 +86,3 @@ class ExportObjectMappingElement extends mappings.ObjectMappingElement implements IExportObjectMappingElement { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+entity+to+element relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -96,3 +96,3 @@ interface IExportValueMappingElement extends mappings.IValueMappingElement { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+entity+to+element relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -99,0 +99,0 @@ class ExportValueMappingElement extends mappings.ValueMappingElement implements IExportValueMappingElement { |
@@ -12,3 +12,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Domain-to-XML+Mappings relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -74,3 +74,3 @@ var ExportMapping = (function (_super) { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+entity+to+element relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -125,3 +125,3 @@ var ExportObjectMappingElement = (function (_super) { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+entity+to+element relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Export+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -128,0 +128,0 @@ var ExportValueMappingElement = (function (_super) { |
@@ -9,3 +9,3 @@ import * as internal from '../sdk/internal'; | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/XML-to-domain+Mappings relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -19,3 +19,3 @@ interface IImportMapping extends mappings.IMappingDocument { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/XML-to-domain+Mappings relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -42,3 +42,3 @@ class ImportMapping extends mappings.MappingDocument implements IImportMapping { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+element+to+entity relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -53,3 +53,3 @@ interface IImportObjectMappingElement extends mappings.IObjectMappingElement { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+element+to+entity relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -82,3 +82,3 @@ class ImportObjectMappingElement extends mappings.ObjectMappingElement implements IImportObjectMappingElement { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+element+to+entity relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -92,3 +92,3 @@ interface IImportValueMappingElement extends mappings.IValueMappingElement { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+element+to+entity relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -95,0 +95,0 @@ class ImportValueMappingElement extends mappings.ValueMappingElement implements IImportValueMappingElement { |
@@ -12,3 +12,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/XML-to-domain+Mappings relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -62,3 +62,3 @@ var ImportMapping = (function (_super) { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+element+to+entity relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -113,3 +113,3 @@ var ImportObjectMappingElement = (function (_super) { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Map+element+to+entity relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Import+Mappings relevant section in reference guide} | ||
*/ | ||
@@ -116,0 +116,0 @@ var ImportValueMappingElement = (function (_super) { |
@@ -37,2 +37,3 @@ import * as internal from '../sdk/internal'; | ||
static createIn(container: projects.IFolderBase): JsonStructure; | ||
_isByNameReferrable(): boolean; | ||
_initializeDefaultProperties(): void; | ||
@@ -39,0 +40,0 @@ } |
@@ -41,2 +41,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
}; | ||
JsonStructure.prototype._isByNameReferrable = function () { return true; }; | ||
JsonStructure.prototype._initializeDefaultProperties = function () { | ||
@@ -43,0 +44,0 @@ _super.prototype._initializeDefaultProperties.call(this); |
@@ -14,2 +14,4 @@ import * as internal from '../sdk/internal'; | ||
static All: ElementType; | ||
static NamedArray: ElementType; | ||
static Wrapper: ElementType; | ||
} | ||
@@ -56,2 +58,8 @@ class ObjectHandlingBackupEnum extends internal.IEnum { | ||
xmlSchemaQualifiedName: string; | ||
private __jsonStructure; | ||
/** | ||
* In version 6.4.0: introduced | ||
*/ | ||
jsonStructure: jsonstructures.IJsonStructure; | ||
jsonStructureQualifiedName: string; | ||
private __rootElementName; | ||
@@ -202,2 +210,7 @@ rootElementName: string; | ||
objectHandlingBackup: ObjectHandlingBackupEnum; | ||
private __isDefaultType; | ||
/** | ||
* In version 6.4.0: introduced | ||
*/ | ||
isDefaultType: boolean; | ||
static versionInfo: StructureVersionInfo; | ||
@@ -258,2 +271,3 @@ constructor(model: internal.AbstractModel, typeName: string, id: string, isPartial: boolean, unit: internal.ModelUnit, container: internal.AbstractElement); | ||
import { domainmodels } from './domainmodels'; | ||
import { jsonstructures } from './jsonstructures'; | ||
import { microflows } from './microflows'; | ||
@@ -260,0 +274,0 @@ import { webservices } from './webservices'; |
@@ -24,2 +24,8 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
ElementType.All = new ElementType("All", {}); | ||
ElementType.NamedArray = new ElementType("NamedArray", { | ||
"introduced": "6.4.0" | ||
}); | ||
ElementType.Wrapper = new ElementType("Wrapper", { | ||
"introduced": "6.4.0" | ||
}); | ||
return ElementType; | ||
@@ -65,2 +71,3 @@ })(internal.IEnum); | ||
this.__xmlSchema = new internal.ByNameReferenceProperty(MappingDocument, this, "xmlSchema", null, "XmlSchemas$XmlSchema"); | ||
this.__jsonStructure = new internal.ByNameReferenceProperty(MappingDocument, this, "jsonStructure", null, "JsonStructures$JsonStructure"); | ||
this.__rootElementName = new internal.PrimitiveProperty(MappingDocument, this, "rootElementName", "", internal.PrimitiveTypeEnum.String); | ||
@@ -93,2 +100,16 @@ this.__importedWebService = new internal.ByNameReferenceProperty(MappingDocument, this, "importedWebService", null, "WebServices$ImportedWebService"); | ||
}); | ||
Object.defineProperty(MappingDocument.prototype, "jsonStructure", { | ||
/** | ||
* In version 6.4.0: introduced | ||
*/ | ||
get: function () { return this.__jsonStructure.get(); }, | ||
set: function (newValue) { this.__jsonStructure.set(newValue); }, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(MappingDocument.prototype, "jsonStructureQualifiedName", { | ||
get: function () { return this.__jsonStructure.qualifiedName(); }, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
Object.defineProperty(MappingDocument.prototype, "rootElementName", { | ||
@@ -127,3 +148,9 @@ get: function () { return this.__rootElementName.get(); }, | ||
MappingDocument.typeName = "Mappings$MappingDocument"; | ||
MappingDocument.versionInfo = new exports.StructureVersionInfo({}, internal.StructureType.ModelUnit); | ||
MappingDocument.versionInfo = new exports.StructureVersionInfo({ | ||
"properties": { | ||
"jsonStructure": { | ||
"introduced": "6.4.0" | ||
} | ||
} | ||
}, internal.StructureType.ModelUnit); | ||
return MappingDocument; | ||
@@ -342,2 +369,3 @@ })(projects_1.projects.Document); | ||
this.__objectHandlingBackup = new internal.EnumProperty(ObjectMappingElement, this, "objectHandlingBackup", ObjectHandlingBackupEnum.Create, ObjectHandlingBackupEnum); | ||
this.__isDefaultType = new internal.PrimitiveProperty(ObjectMappingElement, this, "isDefaultType", false, internal.PrimitiveTypeEnum.Boolean); | ||
if (arguments.length < 4) | ||
@@ -402,2 +430,11 @@ throw new Error("new ObjectMappingElement() cannot be invoked directly, please use 'model.mappings.createObjectMappingElement()'"); | ||
}); | ||
Object.defineProperty(ObjectMappingElement.prototype, "isDefaultType", { | ||
/** | ||
* In version 6.4.0: introduced | ||
*/ | ||
get: function () { return this.__isDefaultType.get(); }, | ||
set: function (newValue) { this.__isDefaultType.set(newValue); }, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
ObjectMappingElement.prototype._initializeDefaultProperties = function () { | ||
@@ -409,3 +446,9 @@ _super.prototype._initializeDefaultProperties.call(this); | ||
ObjectMappingElement.typeName = "Mappings$ObjectMappingElement"; | ||
ObjectMappingElement.versionInfo = new exports.StructureVersionInfo({}, internal.StructureType.Element); | ||
ObjectMappingElement.versionInfo = new exports.StructureVersionInfo({ | ||
"properties": { | ||
"isDefaultType": { | ||
"introduced": "6.4.0" | ||
} | ||
} | ||
}, internal.StructureType.Element); | ||
return ObjectMappingElement; | ||
@@ -412,0 +455,0 @@ })(MappingElement); |
@@ -192,3 +192,3 @@ import * as internal from '../sdk/internal'; | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Imported+Web+Services relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Consumed+Web+Services relevant section in reference guide} | ||
*/ | ||
@@ -202,3 +202,3 @@ interface IImportedWebService extends projects.IDocument { | ||
/** | ||
* See: {@link https://world.mendix.com/display/refguide6/Imported+Web+Services relevant section in reference guide} | ||
* See: {@link https://world.mendix.com/display/refguide6/Consumed+Web+Services relevant section in reference guide} | ||
*/ | ||
@@ -205,0 +205,0 @@ class ImportedWebService extends projects.Document implements IImportedWebService { |
@@ -32,2 +32,2 @@ /* | ||
export * from './sdk/config'; | ||
export { IStructure, IList, IAbstractUnit, IEnum, IElement, Element, IModelUnit, ModelUnit, ITransportation, aliases, IWorkingCopyMetaData, IWorkingCopy, IModelApiClient, IDeploymentResult, IAbstractUnitJson, IDelta } from './sdk/internal'; | ||
export { IStructure, IList, IAbstractUnit, IEnum, IElement, Element, IModelUnit, ModelUnit, ITransportation, aliases, IWorkingCopyMetaData, IWorkingCopy, IModelApiClient, IDeploymentResult, IAbstractUnitJson, IDelta, IProblem, IProblemLocation } from './sdk/internal'; |
@@ -5,3 +5,3 @@ export { IStructure, Structure, aliases } from './internal/structures'; | ||
export { IEnum, IList, instancehelpers } from './internal/instances'; | ||
export { IAbstractElementJson, IAbstractUnitJson, IWorkingCopy, IWorkingCopyMetaData, IDelta, IDeploymentResult } from './internal/transport-interfaces'; | ||
export { IAbstractElementJson, IAbstractUnitJson, IWorkingCopy, IWorkingCopyMetaData, IDelta, IDeploymentResult, IProblem, IProblemLocation } from './internal/transport-interfaces'; | ||
export * from './internal/properties'; | ||
@@ -8,0 +8,0 @@ export * from './internal/references'; |
@@ -153,3 +153,8 @@ var mobservable_1 = require('mobservable'); | ||
if (!unit) { | ||
throw new Error("Unknown unit ID: " + id); | ||
if (typeof errorCallback === 'function') { | ||
errorCallback(new Error("Unknown unit ID: " + id)); | ||
} | ||
else { | ||
this._errorHandler(new Error("Unknown unit ID: " + id)); | ||
} | ||
} | ||
@@ -156,0 +161,0 @@ else if (forceRefresh) { |
@@ -56,6 +56,6 @@ import { AbstractModel } from './abstract-model'; | ||
/** | ||
* Type -> class (constructor function) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
* Type -> class (the constructor function, technically) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
*/ | ||
function lookupInitializer(qualifiedTypeName: string, classes: any): any; | ||
function lookupClass(qualifiedTypeName: string, classes: any): any; | ||
function structureAffectsQualifiedNames(structure: structures.Structure): boolean; | ||
} |
@@ -46,3 +46,3 @@ var abstract_model_1 = require('./abstract-model'); | ||
return null; | ||
var unit = createStructure(lookupInitializer(json.$Type, model._allModelClasses()), model._unitsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, null); }, json); | ||
var unit = createStructure(lookupClass(json.$Type, model._allModelClasses()), model._unitsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, null); }, json); | ||
if (unit) | ||
@@ -62,3 +62,3 @@ model._cache(unit); | ||
return null; | ||
return createStructure(lookupInitializer(json.$Type, model._allModelClasses()), unit._elementsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, unit, container); }, json); | ||
return createStructure(lookupClass(json.$Type, model._allModelClasses()), unit._elementsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, unit, container); }, json); | ||
} | ||
@@ -102,5 +102,5 @@ instancehelpers.modelElementJsonToInstance = modelElementJsonToInstance; | ||
/** | ||
* Type -> class (constructor function) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
* Type -> class (the constructor function, technically) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
*/ | ||
function lookupInitializer(qualifiedTypeName, classes) { | ||
function lookupClass(qualifiedTypeName, classes) { | ||
if (!qualifiedTypeName) | ||
@@ -114,4 +114,3 @@ return nullWithError('cannot look up initializer for a falsy qualified type name'); | ||
if (!classes[metaModelName]) | ||
return null; // As long as meta model isn't complete.. | ||
//return nullWithError(`no meta model with name '${metaModelName}' exists`); | ||
return nullWithError("no meta model with name '" + metaModelName + "' exists"); | ||
if (!classes[metaModelName][className]) | ||
@@ -121,3 +120,3 @@ return nullWithError("no type with name '" + metaModelName + "$" + className + " exists"); | ||
} | ||
instancehelpers.lookupInitializer = lookupInitializer; | ||
instancehelpers.lookupClass = lookupClass; | ||
function structureAffectsQualifiedNames(structure) { | ||
@@ -124,0 +123,0 @@ return structure._declaredAsNamespace || (structure instanceof elements.AbstractElement && structure._isByNameReferrable()); |
@@ -84,2 +84,4 @@ import { configuration } from '../config'; | ||
getDeploymentStatus(workingCopyId: string, callback: common.ICallback<transport.IDeploymentResult>, errorCallback: common.IErrorCallback): void; | ||
private handleRawDeploymentResult(callback, errorCallback, rawDeploymentResult); | ||
private parseRawDeploymentResult(rawDeploymentResult); | ||
private storeResponseAsFile(response, outFilePath, callback, errorCallback); | ||
@@ -86,0 +88,0 @@ private pendingRequests; |
@@ -53,3 +53,3 @@ var fs = require('fs'); | ||
ModelApiClientImpl.prototype.deploy = function (workingCopyId, callback, errorCallback) { | ||
this.transportation.request("post", "" + apiEndPoint + workingCopyId + "/deploy", null, callback, errorCallback, true); | ||
this.transportation.request("post", "" + apiEndPoint + workingCopyId + "/deploy", null, this.handleRawDeploymentResult.bind(this, callback, errorCallback), errorCallback, true); | ||
}; | ||
@@ -80,4 +80,26 @@ ModelApiClientImpl.prototype.loadUnitById = function (workingCopyId, unitId, callback, errorCallback) { | ||
ModelApiClientImpl.prototype.getDeploymentStatus = function (workingCopyId, callback, errorCallback) { | ||
this.transportation.request("get", "" + apiEndPoint + workingCopyId + "/deploystatus", null, callback, errorCallback, true); | ||
this.transportation.request("get", "" + apiEndPoint + workingCopyId + "/deploystatus", null, this.handleRawDeploymentResult.bind(this, callback, errorCallback), errorCallback, true); | ||
}; | ||
ModelApiClientImpl.prototype.handleRawDeploymentResult = function (callback, errorCallback, rawDeploymentResult) { | ||
try { | ||
callback(this.parseRawDeploymentResult(rawDeploymentResult)); | ||
} | ||
catch (e) { | ||
console.error("Error parsing consistency errors", e); | ||
errorCallback({ | ||
error: "Parse error", | ||
description: "Error parsing consistency errors" | ||
}); | ||
} | ||
}; | ||
ModelApiClientImpl.prototype.parseRawDeploymentResult = function (rawDeploymentResult) { | ||
// EPO: JSON to object conversion done here, and not ealier in the chain (like in platform-services or in the model-api) | ||
// because we will skip platform-services and model-api in a later story. | ||
var deploymentResult = rawDeploymentResult; | ||
if (rawDeploymentResult && rawDeploymentResult.buildstatus) { | ||
var buildstatus = JSON.parse(rawDeploymentResult.buildstatus); | ||
deploymentResult.buildstatus = buildstatus.problems; | ||
} | ||
return deploymentResult; | ||
}; | ||
ModelApiClientImpl.prototype.storeResponseAsFile = function (response, outFilePath, callback, errorCallback) { | ||
@@ -84,0 +106,0 @@ var dirPath = path.dirname(outFilePath); |
@@ -29,3 +29,3 @@ var utils_1 = require("../utils"); | ||
throw new Error("please provide a typename"); | ||
var initializer = instances_1.instancehelpers.lookupInitializer(typeName, this._model._allModelClasses()); | ||
var initializer = instances_1.instancehelpers.lookupClass(typeName, this._model._allModelClasses()); | ||
var elems = this._data[qualifiedName]; | ||
@@ -32,0 +32,0 @@ if (!elems) |
@@ -267,3 +267,3 @@ /** | ||
} | ||
export interface IDeploymentResult { | ||
export interface IBaseDeploymentResult { | ||
url: string; | ||
@@ -276,1 +276,20 @@ profile: string; | ||
} | ||
export interface IRawDeploymentResult extends IBaseDeploymentResult { | ||
buildstatus: string; | ||
} | ||
export interface IDeploymentResult extends IBaseDeploymentResult { | ||
buildstatus: IProblem[]; | ||
} | ||
export interface IProblem { | ||
name: string; | ||
severity: string; | ||
message: string; | ||
locations?: IProblemLocation[]; | ||
} | ||
export interface IProblemLocation { | ||
elementId?: string; | ||
unitId?: string; | ||
element?: string; | ||
document?: string; | ||
module?: string; | ||
} |
@@ -1,2 +0,2 @@ | ||
/** Current SDK version: 2.0.0-dev.eb89e03 */ | ||
/** Current SDK version: 2.0.0-dev.ec80434 */ | ||
export declare const SDK_VERSION: string; |
@@ -1,2 +0,2 @@ | ||
/** Current SDK version: 2.0.0-dev.eb89e03 */ | ||
/** Current SDK version: 2.0.0-dev.ec80434 */ | ||
exports.SDK_VERSION = "2.0.0"; |
{ | ||
"name": "mendixmodelsdk", | ||
"version": "2.0.0-dev.eb89e03", | ||
"version": "2.0.0-dev.ec80434", | ||
"description": "Mendix Model SDK", | ||
@@ -26,2 +26,3 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@mendix/kill-by-port": "^0.1.3", | ||
"build-if-changed": "^0.1.2", | ||
@@ -31,3 +32,3 @@ "chai": "2.1.2", | ||
"grunt-exec": "0.4.6", | ||
"@mendix/kill-by-port": "^0.1.3", | ||
"miniup": "^0.1.1", | ||
"mkdirp": "0.5.1", | ||
@@ -34,0 +35,0 @@ "mocha": "2.2.1", |
# Release notes Mendix Model SDK | ||
## Next | ||
| story# | impact | description | | ||
|---|---|---| | ||
| 659702 | Low | Unit-loading now has an extra optional forceRefresh option. If set, it will then bypass the Mendix MOdel SDK cache, and get the fresh unit straight from the source/server. | ||
## 2.0.0 | ||
@@ -4,0 +10,0 @@ |
@@ -1,2 +0,2 @@ | ||
var mobservable_1 = require('mobservable'); | ||
var mobx_1 = require('mobx'); | ||
var deltas_1 = require('./deltas'); | ||
@@ -104,3 +104,3 @@ var instances_1 = require('./instances'); | ||
if (!(typeName in this._unitsByType)) | ||
mobservable_1.extendObservable(this._unitsByType, (_a = {}, _a[typeName] = mobservable_1.fastArray(), _a)); | ||
mobx_1.extendObservable(this._unitsByType, (_a = {}, _a[typeName] = mobx_1.asFlat([]), _a)); | ||
return this._unitsByType[typeName]; | ||
@@ -154,3 +154,8 @@ var _a; | ||
if (!unit) { | ||
throw new Error("Unknown unit ID: " + id); | ||
if (typeof errorCallback === 'function') { | ||
errorCallback(new Error("Unknown unit ID: " + id)); | ||
} | ||
else { | ||
this._errorHandler(new Error("Unknown unit ID: " + id)); | ||
} | ||
} | ||
@@ -179,3 +184,3 @@ else if (forceRefresh) { | ||
this._client.loadUnitById(this.metadata.id, unit.id, function (data) { | ||
mobservable_1.transaction(function () { | ||
mobx_1.transaction(function () { | ||
unit._updateWithJson(data); | ||
@@ -213,3 +218,3 @@ _this._resolveContainer(unit, data.containerId); | ||
var _this = this; | ||
mobservable_1.transaction(function () { | ||
mobx_1.transaction(function () { | ||
data.forEach(function (unitJson) { | ||
@@ -255,3 +260,3 @@ instances_1.instancehelpers.abstractUnitJsonToInstance(_this, unitJson, true); | ||
if (prop instanceof properties_1.StructuralChildProperty) | ||
prop.observableValue(unit); | ||
prop.observableValue.set(unit); | ||
else if (prop instanceof properties_1.StructuralChildListProperty) | ||
@@ -258,0 +263,0 @@ prop.observableValue.push(unit); |
@@ -7,3 +7,3 @@ import { AbstractModel } from './abstract-model'; | ||
import * as transport from './transport-interfaces'; | ||
import { IObservableArray } from 'mobservable'; | ||
import { IObservableArray } from 'mobx'; | ||
/** | ||
@@ -57,6 +57,6 @@ * The `instances` module contains various classes and functions | ||
/** | ||
* Type -> class (constructor function) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
* Type -> class (the constructor function, technically) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
*/ | ||
function lookupInitializer(qualifiedTypeName: string, classes: any): any; | ||
function lookupClass(qualifiedTypeName: string, classes: any): any; | ||
function structureAffectsQualifiedNames(structure: structures.Structure): boolean; | ||
} |
@@ -46,3 +46,3 @@ var abstract_model_1 = require('./abstract-model'); | ||
return null; | ||
var unit = createStructure(lookupInitializer(json.$Type, model._allModelClasses()), model._unitsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, null); }, json); | ||
var unit = createStructure(lookupClass(json.$Type, model._allModelClasses()), model._unitsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, null); }, json); | ||
if (unit) | ||
@@ -62,3 +62,3 @@ model._cache(unit); | ||
return null; | ||
return createStructure(lookupInitializer(json.$Type, model._allModelClasses()), unit._elementsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, unit, container); }, json); | ||
return createStructure(lookupClass(json.$Type, model._allModelClasses()), unit._elementsCache, function (initializer) { return new initializer(model, json.$Type, json.$ID, isPartial, unit, container); }, json); | ||
} | ||
@@ -102,5 +102,5 @@ instancehelpers.modelElementJsonToInstance = modelElementJsonToInstance; | ||
/** | ||
* Type -> class (constructor function) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
* Type -> class (the constructor function, technically) lookup, e.g. "DomainModels$Entity" -> DomainModels.Entity | ||
*/ | ||
function lookupInitializer(qualifiedTypeName, classes) { | ||
function lookupClass(qualifiedTypeName, classes) { | ||
if (!qualifiedTypeName) | ||
@@ -114,4 +114,3 @@ return nullWithError('cannot look up initializer for a falsy qualified type name'); | ||
if (!classes[metaModelName]) | ||
return null; // As long as meta model isn't complete.. | ||
//return nullWithError(`no meta model with name '${metaModelName}' exists`); | ||
return nullWithError("no meta model with name '" + metaModelName + "' exists"); | ||
if (!classes[metaModelName][className]) | ||
@@ -121,3 +120,3 @@ return nullWithError("no type with name '" + metaModelName + "$" + className + " exists"); | ||
} | ||
instancehelpers.lookupInitializer = lookupInitializer; | ||
instancehelpers.lookupClass = lookupClass; | ||
function structureAffectsQualifiedNames(structure) { | ||
@@ -124,0 +123,0 @@ return structure._declaredAsNamespace || (structure instanceof elements.AbstractElement && structure._isByNameReferrable()); |
@@ -7,4 +7,4 @@ import * as structures from './structures'; | ||
import * as versions from './version-checks'; | ||
import { IArrayChange, IArraySplice, IObservable, IObservableValue, IObservableArray } from 'mobservable'; | ||
export { IArrayChange, IArraySplice, IObservableValue, IObservableArray } from 'mobservable'; | ||
import { IArrayChange, IArraySplice, IObservableValue, IObservableArray } from 'mobx'; | ||
export { IArrayChange, IArraySplice, IObservableValue, IObservableArray } from 'mobx'; | ||
/** | ||
@@ -19,3 +19,3 @@ * The `properties` sub module contains all interfaces and classes | ||
*/ | ||
export declare class AbstractProperty<T, P extends IObservable> { | ||
export declare class AbstractProperty<T, P> { | ||
declaredOn: any; | ||
@@ -22,0 +22,0 @@ parent: structures.Structure; |
@@ -9,3 +9,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
var references = require('./references'); | ||
var mobservable_1 = require('mobservable'); | ||
var mobx_1 = require('mobx'); | ||
/** | ||
@@ -31,3 +31,6 @@ * The `properties` sub module contains all interfaces and classes | ||
this.observableValue = this.initialize.apply(this, initializeArgs); | ||
this.handle = this.observableValue.observe(this.fireOnChange.bind(this), false); | ||
if (this.observableValue instanceof references.AbstractReference) | ||
this.handle = this.observableValue.observe(this.fireOnChange.bind(this), false); | ||
else | ||
this.handle = mobx_1.observe(this.observableValue, this.fireOnChange.bind(this), false); | ||
} | ||
@@ -154,7 +157,7 @@ Object.defineProperty(AbstractProperty.prototype, "versionInfo", { | ||
this.primitiveType = primitiveType; | ||
return mobservable_1.observable(mobservable_1.asReference(defaultValue)); | ||
return mobx_1.observable(mobx_1.asReference(defaultValue)); | ||
}; | ||
PrimitiveProperty.prototype.get = function () { | ||
this.assertReadable(); | ||
return this.observableValue(); | ||
return this.observableValue.get(); | ||
}; | ||
@@ -164,7 +167,7 @@ PrimitiveProperty.prototype.set = function (newValue) { | ||
this.assertWritable(); | ||
this.observableValue(newValue); | ||
this.observableValue.set(newValue); | ||
}; | ||
PrimitiveProperty.prototype.updateWithRawValue = function (value) { | ||
assertNotNull(value, this.name); | ||
this.observableValue(value); | ||
this.observableValue.set(value); | ||
}; | ||
@@ -202,3 +205,3 @@ PrimitiveProperty.prototype.onChange = function (newValue, oldValue) { | ||
PrimitiveListProperty.prototype.initialize = function (initialItems) { | ||
return mobservable_1.observable(mobservable_1.fastArray(initialItems || [])); | ||
return mobx_1.observable(initialItems || []); | ||
}; | ||
@@ -258,3 +261,3 @@ PrimitiveListProperty.prototype.get = function () { | ||
EnumProperty.prototype.updateWithRawValue = function (value) { | ||
this.observableValue(this.enumType[value] || this.initialValue); | ||
this.observableValue.set(this.enumType[value] || this.initialValue); | ||
}; | ||
@@ -315,7 +318,7 @@ EnumProperty.prototype.set = function (value) { | ||
this.hasDefaultValue = hasDefaultValue; | ||
return mobservable_1.observable(mobservable_1.asReference(value)); | ||
return mobx_1.observable(mobx_1.asReference(value)); | ||
}; | ||
PartProperty.prototype.get = function () { | ||
this.assertReadable(); | ||
return this.observableValue(); | ||
return this.observableValue.get(); | ||
}; | ||
@@ -331,3 +334,3 @@ PartProperty.prototype.set = function (newValue) { | ||
} | ||
this.observableValue(newValue); | ||
this.observableValue.set(newValue); | ||
}; | ||
@@ -337,6 +340,6 @@ PartProperty.prototype.updateWithRawValue = function (value) { | ||
// cleanup old value, we got a server side change that this child is no longer ours: | ||
var currentChild = this.observableValue(); | ||
var currentChild = this.observableValue.get(); | ||
if (currentChild !== null && currentChild !== newChild) | ||
currentChild._dispose(); | ||
this.observableValue(newChild); | ||
this.observableValue.set(newChild); | ||
}; | ||
@@ -370,12 +373,12 @@ PartProperty.prototype.onChange = function (newValue, oldValue) { | ||
PartProperty.prototype.resolveReferences = function () { | ||
if (this.observableValue()) | ||
this.observableValue()._resolveReferences(); | ||
if (this.observableValue.get()) | ||
this.observableValue.get()._resolveReferences(); | ||
}; | ||
PartProperty.prototype.updateElementContainer = function (unit) { | ||
if (this.observableValue()) | ||
this.observableValue()._updateElementsContainer(unit); | ||
if (this.observableValue.get()) | ||
this.observableValue.get()._updateElementsContainer(unit); | ||
}; | ||
PartProperty.prototype.dispose = function () { | ||
if (this.observableValue()) | ||
this.observableValue()._dispose(); | ||
if (this.observableValue.get()) | ||
this.observableValue.get()._dispose(); | ||
}; | ||
@@ -403,3 +406,3 @@ PartProperty.prototype._toJSON = function () { | ||
PartListProperty.prototype.initialize = function (initialItems) { | ||
return mobservable_1.observable(mobservable_1.fastArray(initialItems || [])); | ||
return mobx_1.observable(initialItems || []); | ||
}; | ||
@@ -572,3 +575,3 @@ PartListProperty.prototype.get = function () { | ||
this._targetType = _targetType; | ||
this.viewList = mobservable_1.fastArray([]); | ||
this.viewList = mobx_1.observable([]); | ||
this.supressViewEvents = false; | ||
@@ -611,3 +614,3 @@ this.viewListDisposer = this.viewList.observe(function (changeData) { | ||
throw new Error("Illegal state: can only initialize with []"); | ||
return mobservable_1.fastArray([]); | ||
return mobx_1.observable([]); | ||
}; | ||
@@ -729,7 +732,7 @@ ByNameReferenceListProperty.prototype.get = function () { | ||
// TODO: throw / ignore? | ||
return mobservable_1.observable(mobservable_1.asReference(value)); | ||
return mobx_1.observable(mobx_1.asReference(value)); | ||
}; | ||
StructuralChildProperty.prototype.get = function () { | ||
this.assertReadable(); | ||
return this.observableValue(); | ||
return this.observableValue.get(); | ||
}; | ||
@@ -757,3 +760,3 @@ StructuralChildProperty.prototype.set = function (value) { | ||
// TODO: throw / ignore? | ||
return mobservable_1.fastArray(value || []); | ||
return mobx_1.observable(value || []); | ||
}; | ||
@@ -760,0 +763,0 @@ StructuralChildListProperty.prototype.get = function () { |
@@ -29,3 +29,3 @@ var utils_1 = require("../utils"); | ||
throw new Error("please provide a typename"); | ||
var initializer = instances_1.instancehelpers.lookupInitializer(typeName, this._model._allModelClasses()); | ||
var initializer = instances_1.instancehelpers.lookupClass(typeName, this._model._allModelClasses()); | ||
var elems = this._data[qualifiedName]; | ||
@@ -32,0 +32,0 @@ if (!elems) |
@@ -1,2 +0,2 @@ | ||
import * as mobservable from 'mobservable'; | ||
import { IObservableValue } from 'mobx'; | ||
import * as elements from './elements'; | ||
@@ -12,6 +12,6 @@ import { common } from '../../common'; | ||
*/ | ||
export declare class AbstractReference<T extends elements.IAbstractElement> implements mobservable.IObservable { | ||
export declare class AbstractReference<T extends elements.IAbstractElement> { | ||
owner: elements.AbstractElement; | ||
protected isResolved: boolean; | ||
protected target: mobservable.IObservableValue<T>; | ||
protected target: IObservableValue<T>; | ||
protected isResolving: boolean; | ||
@@ -18,0 +18,0 @@ protected referenceId: string; |
@@ -6,3 +6,3 @@ var __extends = (this && this.__extends) || function (d, b) { | ||
}; | ||
var mobservable = require('mobservable'); | ||
var mobx_1 = require('mobx'); | ||
/** | ||
@@ -23,3 +23,3 @@ * The `references` sub module contains all classes that handle/wrap references, | ||
this.isResolved = true; | ||
this.target = mobservable.observable(mobservable.asReference(null)); | ||
this.target = mobx_1.observable(mobx_1.asReference(null)); | ||
this.isResolving = false; // suppress on change events | ||
@@ -35,3 +35,3 @@ this.referenceId = null; | ||
var _this = this; | ||
return this.target.observe(function (newValue, oldValue) { | ||
return mobx_1.observe(this.target, function (newValue, oldValue) { | ||
// Do not notify properties that a value is changes when resolving, because no delta should created | ||
@@ -47,3 +47,3 @@ // UI will still be updated, since this.target is an observable | ||
AbstractReference.prototype.get = function () { | ||
return this.target(); | ||
return this.target.get(); | ||
}; | ||
@@ -61,3 +61,3 @@ /** | ||
this.unregisterRef(); | ||
this.target(newValue); | ||
this.target.set(newValue); | ||
this.registerRef(); | ||
@@ -71,3 +71,3 @@ }; | ||
this.unregisterRef(); | ||
this.target(null); | ||
this.target.set(null); | ||
this.referenceId = value; | ||
@@ -78,8 +78,8 @@ this.isResolved = false; | ||
AbstractReference.prototype.registerRef = function () { | ||
if (this.target()) | ||
this.target()._addBackReference(this); | ||
if (this.target.get()) | ||
this.target.get()._addBackReference(this); | ||
}; | ||
AbstractReference.prototype.unregisterRef = function () { | ||
if (this.target()) | ||
this.target()._removeBackReference(this); | ||
if (this.target.get()) | ||
this.target.get()._removeBackReference(this); | ||
}; | ||
@@ -125,3 +125,3 @@ AbstractReference.prototype.resolve = function () { | ||
if (!this.referenceId) { | ||
this.target(null); | ||
this.target.set(null); | ||
} | ||
@@ -135,3 +135,3 @@ else if (this.referenceId === "00000000-0000-0000-0000-000000000000") { | ||
throw new Error("Broken reference; ID: " + this.referenceId); | ||
this.target(elem); | ||
this.target.set(elem); | ||
this.assertValueHasSameUnit(); | ||
@@ -158,3 +158,3 @@ this.registerRef(); | ||
if (!this.referenceId) { | ||
this.target(null); | ||
this.target.set(null); | ||
this.isResolved = true; | ||
@@ -165,3 +165,3 @@ } | ||
this.isResolved = !!elem; | ||
this.target(elem); | ||
this.target.set(elem); | ||
this.registerRef(); | ||
@@ -168,0 +168,0 @@ if (!this.isResolved) |
@@ -1,2 +0,2 @@ | ||
/** Current SDK version: 2.0.0-dev.c2a188a */ | ||
/** Current SDK version: 2.0.0-dev.e73d140 */ | ||
export declare const SDK_VERSION: string; |
@@ -1,2 +0,2 @@ | ||
/** Current SDK version: 2.0.0-dev.c2a188a */ | ||
/** Current SDK version: 2.0.0-dev.e73d140 */ | ||
exports.SDK_VERSION = "2.0.0"; |
@@ -23,3 +23,3 @@ import * as internal from '../../src/sdk/internal'; | ||
load(): Attribute; | ||
load(callback: (element: Attribute) => void): any; | ||
load(callback: (element: Attribute) => void, forceRefresh?: boolean): any; | ||
name: string; | ||
@@ -82,3 +82,3 @@ /** | ||
load(): Attribute2; | ||
load(callback: (element: Attribute2) => void): any; | ||
load(callback: (element: Attribute2) => void, forceRefresh?: boolean): any; | ||
name: string; | ||
@@ -118,3 +118,3 @@ } | ||
load(): AttributeType; | ||
load(callback: (element: AttributeType) => void): any; | ||
load(callback: (element: AttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -138,3 +138,3 @@ /** | ||
load(): NumericAttributeTypeBase; | ||
load(callback: (element: NumericAttributeTypeBase) => void): any; | ||
load(callback: (element: NumericAttributeTypeBase) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -158,3 +158,3 @@ /** | ||
load(): IntegerAttributeTypeBase; | ||
load(callback: (element: IntegerAttributeTypeBase) => void): any; | ||
load(callback: (element: IntegerAttributeTypeBase) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -178,3 +178,3 @@ /** | ||
load(): AutoNumberAttributeType; | ||
load(callback: (element: AutoNumberAttributeType) => void): any; | ||
load(callback: (element: AutoNumberAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -206,3 +206,3 @@ class AutoNumberAttributeType extends IntegerAttributeTypeBase implements IAutoNumberAttributeType { | ||
load(): BinaryAttributeType; | ||
load(callback: (element: BinaryAttributeType) => void): any; | ||
load(callback: (element: BinaryAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -234,3 +234,3 @@ class BinaryAttributeType extends AttributeType implements IBinaryAttributeType { | ||
load(): BooleanAttributeType; | ||
load(callback: (element: BooleanAttributeType) => void): any; | ||
load(callback: (element: BooleanAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -262,3 +262,3 @@ class BooleanAttributeType extends AttributeType implements IBooleanAttributeType { | ||
load(): DecimalAttributeTypeBase; | ||
load(callback: (element: DecimalAttributeTypeBase) => void): any; | ||
load(callback: (element: DecimalAttributeTypeBase) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -282,3 +282,3 @@ /** | ||
load(): FloatAttributeTypeBase; | ||
load(callback: (element: FloatAttributeTypeBase) => void): any; | ||
load(callback: (element: FloatAttributeTypeBase) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -302,3 +302,3 @@ /** | ||
load(): CurrencyAttributeType; | ||
load(callback: (element: CurrencyAttributeType) => void): any; | ||
load(callback: (element: CurrencyAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -330,3 +330,3 @@ class CurrencyAttributeType extends FloatAttributeTypeBase implements ICurrencyAttributeType { | ||
load(): DateTimeAttributeType; | ||
load(callback: (element: DateTimeAttributeType) => void): any; | ||
load(callback: (element: DateTimeAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -360,3 +360,3 @@ class DateTimeAttributeType extends AttributeType implements IDateTimeAttributeType { | ||
load(): DecimalAttributeType; | ||
load(callback: (element: DecimalAttributeType) => void): any; | ||
load(callback: (element: DecimalAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -391,3 +391,3 @@ class DecimalAttributeType extends DecimalAttributeTypeBase implements IDecimalAttributeType { | ||
load(): DomainModel; | ||
load(callback: (element: DomainModel) => void): any; | ||
load(callback: (element: DomainModel) => void, forceRefresh?: boolean): any; | ||
name: string; | ||
@@ -427,3 +427,3 @@ entities: internal.IList<IEntity>; | ||
load(): Entity; | ||
load(callback: (element: Entity) => void): any; | ||
load(callback: (element: Entity) => void, forceRefresh?: boolean): any; | ||
/** | ||
@@ -531,3 +531,3 @@ * In version 6.0.5: removed optional | ||
load(): ExperimentalElement; | ||
load(callback: (element: ExperimentalElement) => void): any; | ||
load(callback: (element: ExperimentalElement) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -572,3 +572,3 @@ /** | ||
load(): FloatAttributeType; | ||
load(callback: (element: FloatAttributeType) => void): any; | ||
load(callback: (element: FloatAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -600,3 +600,3 @@ class FloatAttributeType extends FloatAttributeTypeBase implements IFloatAttributeType { | ||
load(): HashedStringAttributeType; | ||
load(callback: (element: HashedStringAttributeType) => void): any; | ||
load(callback: (element: HashedStringAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -628,3 +628,3 @@ class HashedStringAttributeType extends AttributeType implements IHashedStringAttributeType { | ||
load(): IntegerAttributeType; | ||
load(callback: (element: IntegerAttributeType) => void): any; | ||
load(callback: (element: IntegerAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -656,3 +656,3 @@ class IntegerAttributeType extends IntegerAttributeTypeBase implements IIntegerAttributeType { | ||
load(): LongAttributeType; | ||
load(callback: (element: LongAttributeType) => void): any; | ||
load(callback: (element: LongAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -687,3 +687,3 @@ class LongAttributeType extends IntegerAttributeTypeBase implements ILongAttributeType { | ||
load(): NewElement; | ||
load(callback: (element: NewElement) => void): any; | ||
load(callback: (element: NewElement) => void, forceRefresh?: boolean): any; | ||
/** | ||
@@ -734,3 +734,3 @@ * In version 6.0.6: added public | ||
load(): NewElement2; | ||
load(callback: (element: NewElement2) => void): any; | ||
load(callback: (element: NewElement2) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -781,3 +781,3 @@ class NewElement2 extends internal.Element implements INewElement2 { | ||
load(): StringAttributeType; | ||
load(callback: (element: StringAttributeType) => void): any; | ||
load(callback: (element: StringAttributeType) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -815,3 +815,3 @@ class StringAttributeType extends AttributeType implements IStringAttributeType { | ||
load(): SuperCoolElement; | ||
load(callback: (element: SuperCoolElement) => void): any; | ||
load(callback: (element: SuperCoolElement) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -845,3 +845,3 @@ /** | ||
load(): VeryNewElement; | ||
load(callback: (element: VeryNewElement) => void): any; | ||
load(callback: (element: VeryNewElement) => void, forceRefresh?: boolean): any; | ||
} | ||
@@ -848,0 +848,0 @@ class VeryNewElement extends internal.Element implements IVeryNewElement { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5140840
256
96625
13
7