@accordproject/concerto-core 4.0.0-alpha.2 → 4.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/astmodelmanager.d.ts +3 -3
- package/dist/astmodelmanager.js.map +1 -1
- package/dist/basemodelmanager.d.ts +72 -95
- package/dist/basemodelmanager.js +29 -20
- package/dist/basemodelmanager.js.map +1 -1
- package/dist/concerto-core.js +1 -1
- package/dist/concerto-core.js.LICENSE.txt +1 -1
- package/dist/datetimeutil.d.ts +8 -1
- package/dist/datetimeutil.js.map +1 -1
- package/dist/dcsconverter.d.ts +12 -2
- package/dist/dcsconverter.js.map +1 -1
- package/dist/decoratorextractor.d.ts +30 -23
- package/dist/decoratorextractor.js.map +1 -1
- package/dist/decoratormanager.d.ts +34 -76
- package/dist/decoratormanager.js +31 -14
- package/dist/decoratormanager.js.map +1 -1
- package/dist/decoratormodelhelper.d.ts +13 -0
- package/dist/{decoratormodel.js → decoratormodelhelper.js} +4 -3
- package/dist/decoratormodelhelper.js.map +1 -0
- package/dist/factory.d.ts +11 -28
- package/dist/factory.js.map +1 -1
- package/dist/globalize.d.ts +16 -13
- package/dist/globalize.js.map +1 -1
- package/dist/index.d.ts +1 -11
- package/dist/index.js +2 -8
- package/dist/index.js.map +1 -1
- package/dist/introspect/assetdeclaration.d.ts +4 -4
- package/dist/introspect/assetdeclaration.js +1 -1
- package/dist/introspect/assetdeclaration.js.map +1 -1
- package/dist/introspect/classdeclaration.d.ts +67 -25
- package/dist/introspect/classdeclaration.js +1 -1
- package/dist/introspect/classdeclaration.js.map +1 -1
- package/dist/introspect/conceptdeclaration.d.ts +9 -2
- package/dist/introspect/conceptdeclaration.js +1 -1
- package/dist/introspect/conceptdeclaration.js.map +1 -1
- package/dist/introspect/declaration.d.ts +37 -12
- package/dist/introspect/declaration.js.map +1 -1
- package/dist/introspect/decorated.d.ts +10 -12
- package/dist/introspect/decorated.js +1 -0
- package/dist/introspect/decorated.js.map +1 -1
- package/dist/introspect/decorator.d.ts +12 -14
- package/dist/introspect/decorator.js +1 -1
- package/dist/introspect/decorator.js.map +1 -1
- package/dist/introspect/decoratorfactory.d.ts +2 -5
- package/dist/introspect/decoratorfactory.js.map +1 -1
- package/dist/introspect/enumdeclaration.d.ts +14 -2
- package/dist/introspect/enumdeclaration.js +1 -1
- package/dist/introspect/enumdeclaration.js.map +1 -1
- package/dist/introspect/enumvaluedeclaration.d.ts +16 -2
- package/dist/introspect/enumvaluedeclaration.js +1 -1
- package/dist/introspect/enumvaluedeclaration.js.map +1 -1
- package/dist/introspect/eventdeclaration.d.ts +5 -5
- package/dist/introspect/eventdeclaration.js +1 -1
- package/dist/introspect/eventdeclaration.js.map +1 -1
- package/dist/introspect/field.d.ts +24 -12
- package/dist/introspect/field.js +1 -1
- package/dist/introspect/field.js.map +1 -1
- package/dist/introspect/identifieddeclaration.d.ts +9 -2
- package/dist/introspect/identifieddeclaration.js +1 -1
- package/dist/introspect/identifieddeclaration.js.map +1 -1
- package/dist/introspect/illegalmodelexception.d.ts +4 -6
- package/dist/introspect/illegalmodelexception.js +1 -1
- package/dist/introspect/illegalmodelexception.js.map +1 -1
- package/dist/introspect/introspector.d.ts +7 -9
- package/dist/introspect/introspector.js.map +1 -1
- package/dist/introspect/mapdeclaration.d.ts +11 -18
- package/dist/introspect/mapdeclaration.js +1 -1
- package/dist/introspect/mapdeclaration.js.map +1 -1
- package/dist/introspect/mapkeytype.d.ts +27 -13
- package/dist/introspect/mapkeytype.js.map +1 -1
- package/dist/introspect/mapvaluetype.d.ts +27 -13
- package/dist/introspect/mapvaluetype.js.map +1 -1
- package/dist/introspect/metamodel.d.ts +9 -4
- package/dist/introspect/metamodel.js.map +1 -1
- package/dist/introspect/modelfile.d.ts +61 -67
- package/dist/introspect/modelfile.js +4 -3
- package/dist/introspect/modelfile.js.map +1 -1
- package/dist/introspect/numbervalidator.d.ts +35 -6
- package/dist/introspect/numbervalidator.js.map +1 -1
- package/dist/introspect/participantdeclaration.d.ts +4 -4
- package/dist/introspect/participantdeclaration.js +1 -1
- package/dist/introspect/participantdeclaration.js.map +1 -1
- package/dist/introspect/property.d.ts +26 -20
- package/dist/introspect/property.js.map +1 -1
- package/dist/introspect/relationshipdeclaration.d.ts +21 -2
- package/dist/introspect/relationshipdeclaration.js +1 -1
- package/dist/introspect/relationshipdeclaration.js.map +1 -1
- package/dist/introspect/scalardeclaration.d.ts +50 -19
- package/dist/introspect/scalardeclaration.js.map +1 -1
- package/dist/introspect/stringvalidator.d.ts +23 -9
- package/dist/introspect/stringvalidator.js.map +1 -1
- package/dist/introspect/transactiondeclaration.d.ts +4 -4
- package/dist/introspect/transactiondeclaration.js +1 -1
- package/dist/introspect/transactiondeclaration.js.map +1 -1
- package/dist/introspect/validator.d.ts +9 -9
- package/dist/introspect/validator.js.map +1 -1
- package/dist/messages/en.json +18 -4
- package/dist/messages/pt.json +5 -0
- package/dist/metamodelexception.d.ts +4 -5
- package/dist/metamodelexception.js.map +1 -1
- package/dist/model/identifiable.d.ts +13 -11
- package/dist/model/identifiable.js.map +1 -1
- package/dist/model/relationship.d.ts +25 -14
- package/dist/model/relationship.js +3 -3
- package/dist/model/relationship.js.map +1 -1
- package/dist/model/resource.d.ts +32 -5
- package/dist/model/resource.js.map +1 -1
- package/dist/model/resourceid.d.ts +13 -13
- package/dist/model/resourceid.js.map +1 -1
- package/dist/model/typed.d.ts +18 -20
- package/dist/model/typed.js +2 -2
- package/dist/model/typed.js.map +1 -1
- package/dist/model/validatedresource.d.ts +18 -4
- package/dist/model/validatedresource.js.map +1 -1
- package/dist/modelloader.d.ts +11 -11
- package/dist/modelloader.js +48 -12
- package/dist/modelloader.js.map +1 -1
- package/dist/modelmanager.d.ts +5 -7
- package/dist/modelmanager.js +8 -6
- package/dist/modelmanager.js.map +1 -1
- package/dist/modelutil.d.ts +26 -33
- package/dist/modelutil.js.map +1 -1
- package/dist/rootmodel.json +1 -1
- package/dist/rootmodelhelper.d.ts +13 -0
- package/dist/{rootmodel.js → rootmodelhelper.js} +1 -2
- package/dist/rootmodelhelper.js.map +1 -0
- package/dist/securityexception.d.ts +4 -5
- package/dist/securityexception.js.map +1 -1
- package/dist/serializer/instancegenerator.d.ts +9 -9
- package/dist/serializer/instancegenerator.js +1 -1
- package/dist/serializer/instancegenerator.js.map +1 -1
- package/dist/serializer/jsongenerator.d.ts +14 -14
- package/dist/serializer/jsongenerator.js.map +1 -1
- package/dist/serializer/jsonpopulator.d.ts +44 -13
- package/dist/serializer/jsonpopulator.js +29 -22
- package/dist/serializer/jsonpopulator.js.map +1 -1
- package/dist/serializer/resourcevalidator.d.ts +88 -96
- package/dist/serializer/resourcevalidator.js +5 -5
- package/dist/serializer/resourcevalidator.js.map +1 -1
- package/dist/serializer/validationexception.d.ts +4 -5
- package/dist/serializer/validationexception.js.map +1 -1
- package/dist/serializer/valuegenerator.d.ts +153 -3
- package/dist/serializer/valuegenerator.js.map +1 -1
- package/dist/serializer.d.ts +8 -26
- package/dist/serializer.js +1 -1
- package/dist/serializer.js.map +1 -1
- package/dist/typenotfoundexception.d.ts +5 -7
- package/dist/typenotfoundexception.js +3 -1
- package/dist/typenotfoundexception.js.map +1 -1
- package/dist/types.d.ts +17 -0
- package/dist/types.js +16 -0
- package/dist/types.js.map +1 -0
- package/package.json +6 -5
- package/types/lib/dcsIndexWrapper.d.ts +16 -0
- package/types/lib/dcsconverter.d.ts +12 -0
- package/dist/decoratormodel.js.map +0 -1
- package/dist/rootmodel.d.ts +0 -5
- package/dist/rootmodel.js.map +0 -1
- /package/{dist → types/lib}/decoratormodel.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import Property = require('./property');
|
|
2
2
|
/**
|
|
3
3
|
* Class representing the definition of a Field. A Field is owned
|
|
4
4
|
* by a ClassDeclaration and has a name, type and additional metadata
|
|
@@ -10,19 +10,34 @@ export = Field;
|
|
|
10
10
|
* @memberof module:concerto-core
|
|
11
11
|
*/
|
|
12
12
|
declare class Field extends Property {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Create a Field.
|
|
15
|
+
* @param {ClassDeclaration} parent - The owner of this property
|
|
16
|
+
* @param {Object} ast - The AST created by the parser
|
|
17
|
+
* @throws {IllegalModelException}
|
|
18
|
+
*/
|
|
19
|
+
constructor(parent: any, ast: any);
|
|
20
|
+
/**
|
|
21
|
+
* Process the AST and build the model
|
|
22
|
+
* @throws {IllegalModelException}
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
process(): void;
|
|
16
26
|
/**
|
|
17
27
|
* Returns the validator string for this field
|
|
18
28
|
* @return {Validator} the validator for the field or null
|
|
19
29
|
*/
|
|
20
|
-
getValidator():
|
|
30
|
+
getValidator(): any;
|
|
21
31
|
/**
|
|
22
32
|
* Returns the default value for the field or null if there is no default value
|
|
23
33
|
* @return {string | number} the default value for the field or null
|
|
24
34
|
*/
|
|
25
|
-
getDefaultValue():
|
|
35
|
+
getDefaultValue(): any;
|
|
36
|
+
/**
|
|
37
|
+
* Returns a string representation of this property§
|
|
38
|
+
* @return {String} the string version of the property.
|
|
39
|
+
*/
|
|
40
|
+
toString(): string;
|
|
26
41
|
/**
|
|
27
42
|
* Returns true if this class is the definition of a field.
|
|
28
43
|
*
|
|
@@ -33,16 +48,13 @@ declare class Field extends Property {
|
|
|
33
48
|
* Returns true if the field's type is a scalar
|
|
34
49
|
* @returns {boolean} true if the field is a scalar type
|
|
35
50
|
*/
|
|
36
|
-
isTypeScalar():
|
|
51
|
+
isTypeScalar(): any;
|
|
37
52
|
/**
|
|
38
53
|
* Unboxes a field that references a scalar type to an
|
|
39
54
|
* underlying Field definition.
|
|
40
55
|
* @throws {Error} throws an error if this field is not a scalar type.
|
|
41
56
|
* @returns {Field} the primitive field for this scalar
|
|
42
57
|
*/
|
|
43
|
-
getScalarField():
|
|
58
|
+
getScalarField(): any;
|
|
44
59
|
}
|
|
45
|
-
|
|
46
|
-
import StringValidator = require("./stringvalidator");
|
|
47
|
-
import NumberValidator = require("./numbervalidator");
|
|
48
|
-
import Validator = require("./validator");
|
|
60
|
+
export = Field;
|
package/dist/introspect/field.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
'use strict';
|
|
15
15
|
const { MetaModelNamespace } = require('@accordproject/concerto-metamodel');
|
|
16
|
-
const Property = require(
|
|
16
|
+
const Property = require("./property");
|
|
17
17
|
const NumberValidator = require('./numbervalidator');
|
|
18
18
|
const StringValidator = require('./stringvalidator');
|
|
19
19
|
const Util = require('@accordproject/concerto-util').NullUtil;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field.js","sourceRoot":"","sources":["../../src/introspect/field.
|
|
1
|
+
{"version":3,"file":"field.js","sourceRoot":"","sources":["../../src/introspect/field.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAE5E,uCAAwC;AACxC,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AACrD,MAAM,eAAe,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;AACrD,MAAM,IAAI,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC;AAE9D,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC7C,CAAC;AACD,kCAAkC;AAElC;;;;;;;;;GASG;AACH,MAAM,KAAM,SAAQ,QAAQ;IACxB;;;;;OAKG;IACH,YAAY,MAAM,EAAE,GAAG;QACnB,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC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@abstract
|
|
10
10
|
*/
|
|
11
11
|
declare class IdentifiedDeclaration extends ClassDeclaration {
|
|
12
|
+
/**
|
|
13
|
+
* Create an IdentifiedDeclaration.
|
|
14
|
+
* @param {ModelFile} modelFile the ModelFile for this class
|
|
15
|
+
* @param {Object} ast - The AST created by the parser
|
|
16
|
+
* @throws {IllegalModelException}
|
|
17
|
+
*/
|
|
18
|
+
constructor(modelFile: any, ast: any);
|
|
12
19
|
}
|
|
13
|
-
|
|
20
|
+
export = IdentifiedDeclaration;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
'use strict';
|
|
15
|
-
const ClassDeclaration = require(
|
|
15
|
+
const ClassDeclaration = require("./classdeclaration");
|
|
16
16
|
// Types needed for TypeScript generation.
|
|
17
17
|
/* eslint-disable no-unused-vars */
|
|
18
18
|
/* istanbul ignore next */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identifieddeclaration.js","sourceRoot":"","sources":["../../src/introspect/identifieddeclaration.
|
|
1
|
+
{"version":3,"file":"identifieddeclaration.js","sourceRoot":"","sources":["../../src/introspect/identifieddeclaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,uDAAwD;AAExD,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC7C,CAAC;AACD,kCAAkC;AAElC;;;;;;;;GAQG;AACH,MAAM,qBAAsB,SAAQ,gBAAgB;IAChD;;;;;OAKG;IACH,YAAY,SAAS,EAAE,GAAG;QACtB,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;CACJ;AAED,iBAAS,qBAAqB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const IllegalModelException_base: any;
|
|
1
|
+
declare const BaseFileException: any;
|
|
3
2
|
/**
|
|
4
3
|
* Exception throws when a composer file is semantically invalid
|
|
5
4
|
* @extends BaseFileException
|
|
@@ -7,8 +6,7 @@ declare const IllegalModelException_base: any;
|
|
|
7
6
|
* @class
|
|
8
7
|
* @memberof module:concerto-core
|
|
9
8
|
*/
|
|
10
|
-
declare class IllegalModelException extends
|
|
11
|
-
[x: string]: any;
|
|
9
|
+
declare class IllegalModelException extends BaseFileException {
|
|
12
10
|
/**
|
|
13
11
|
* Create an IllegalModelException.
|
|
14
12
|
* @param {string} message - the message for the exception
|
|
@@ -20,6 +18,6 @@ declare class IllegalModelException extends IllegalModelException_base {
|
|
|
20
18
|
* @param {number} fileLocation.end.column - end column of the error location.
|
|
21
19
|
* @param {string} [component] - the component which throws this error
|
|
22
20
|
*/
|
|
23
|
-
constructor(message:
|
|
21
|
+
constructor(message: any, modelFile: any, fileLocation: any, component: any);
|
|
24
22
|
}
|
|
25
|
-
|
|
23
|
+
export = IllegalModelException;
|
|
@@ -53,7 +53,7 @@ class IllegalModelException extends BaseFileException {
|
|
|
53
53
|
}
|
|
54
54
|
// First character to be uppercase
|
|
55
55
|
messageSuffix = messageSuffix.charAt(0).toUpperCase() + messageSuffix.slice(1);
|
|
56
|
-
super(message, fileLocation, message + ' ' + messageSuffix, fileName, component);
|
|
56
|
+
super(message, fileLocation, message + ' ' + messageSuffix, fileName, component || '@accordproject/concerto-core');
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
module.exports = IllegalModelException;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"illegalmodelexception.js","sourceRoot":"","sources":["../../src/introspect/illegalmodelexception.
|
|
1
|
+
{"version":3,"file":"illegalmodelexception.js","sourceRoot":"","sources":["../../src/introspect/illegalmodelexception.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb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
1
|
-
export = Introspector;
|
|
2
1
|
/**
|
|
3
2
|
*
|
|
4
3
|
* Provides access to the structure of transactions, assets and participants.
|
|
@@ -7,24 +6,24 @@ export = Introspector;
|
|
|
7
6
|
* @memberof module:concerto-core
|
|
8
7
|
*/
|
|
9
8
|
declare class Introspector {
|
|
9
|
+
modelManager: any;
|
|
10
10
|
/**
|
|
11
11
|
* Create the Introspector.
|
|
12
12
|
* @param {ModelManager} modelManager - the ModelManager that backs this Introspector
|
|
13
13
|
*/
|
|
14
|
-
constructor(modelManager:
|
|
15
|
-
modelManager: ModelManager;
|
|
14
|
+
constructor(modelManager: any);
|
|
16
15
|
/**
|
|
17
16
|
* Visitor design pattern
|
|
18
17
|
* @param {Object} visitor - the visitor
|
|
19
18
|
* @param {Object} parameters - the parameter
|
|
20
19
|
* @return {Object} the result of visiting or null
|
|
21
20
|
*/
|
|
22
|
-
accept(visitor:
|
|
21
|
+
accept(visitor: any, parameters: any): any;
|
|
23
22
|
/**
|
|
24
23
|
* Returns all the class declarations for the business network.
|
|
25
24
|
* @return {ClassDeclaration[]} the array of class declarations
|
|
26
25
|
*/
|
|
27
|
-
getClassDeclarations():
|
|
26
|
+
getClassDeclarations(): never[];
|
|
28
27
|
/**
|
|
29
28
|
* Returns the class declaration with the given fully qualified name.
|
|
30
29
|
* Throws an error if the class declaration does not exist.
|
|
@@ -32,13 +31,12 @@ declare class Introspector {
|
|
|
32
31
|
* @return {ClassDeclaration} the class declaration
|
|
33
32
|
* @throws {Error} if the class declaration does not exist
|
|
34
33
|
*/
|
|
35
|
-
getClassDeclaration(fullyQualifiedTypeName:
|
|
34
|
+
getClassDeclaration(fullyQualifiedTypeName: any): any;
|
|
36
35
|
/**
|
|
37
36
|
* Returns the backing ModelManager
|
|
38
37
|
* @return {ModelManager} the backing ModelManager
|
|
39
38
|
* @private
|
|
40
39
|
*/
|
|
41
|
-
|
|
40
|
+
getModelManager(): any;
|
|
42
41
|
}
|
|
43
|
-
|
|
44
|
-
import ClassDeclaration = require("./classdeclaration");
|
|
42
|
+
export = Introspector;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"introspector.js","sourceRoot":"","sources":["../../src/introspect/introspector.
|
|
1
|
+
{"version":3,"file":"introspector.js","sourceRoot":"","sources":["../../src/introspect/introspector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACvD,MAAM,YAAY,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AACpD,CAAC;AACD,kCAAkC;AAElC;;;;;;GAMG;AACH,MAAM,YAAY;IAEd;;;OAGG;IACH,YAAY,YAAY;QACpB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,OAAO,EAAC,UAAU;QACrB,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,oBAAoB;QAChB,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;QACrD,KAAI,IAAI,CAAC,GAAC,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;YAEhC,MAAM,oBAAoB,GAAG,SAAS,CAAC,kBAAkB,EAAE;iBACtD,MAAM,CAAC,WAAW,CAAC,EAAE,CAAE,CAAC,WAAW,CAAC,gBAAgB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,mBAAmB,EAAE,EAAE,CAAC,CAAC;YAEvG,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAED;;;;;;OAMG;IACH,mBAAmB,CAAC,sBAAsB;QACtC,OAAO,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAC7D,CAAC;IAED;;;;OAIG;IACH,eAAe;QACX,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;CACJ;AAED,iBAAS,YAAY,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import Declaration = require('./declaration');
|
|
2
2
|
/**
|
|
3
3
|
* MapDeclaration defines a Map data structure, which allows storage of a collection
|
|
4
4
|
* of values, where each value is associated and indexed with a unique key.
|
|
@@ -8,66 +8,61 @@ export = MapDeclaration;
|
|
|
8
8
|
* @class
|
|
9
9
|
* @memberof module:concerto-core
|
|
10
10
|
*/
|
|
11
|
-
declare class MapDeclaration {
|
|
11
|
+
declare class MapDeclaration extends Declaration {
|
|
12
12
|
/**
|
|
13
13
|
* Create an MapDeclaration.
|
|
14
14
|
* @param {ModelFile} modelFile - the ModelFile for this class
|
|
15
15
|
* @param {Object} ast - The AST created by the parser
|
|
16
16
|
* @throws {IllegalModelException}
|
|
17
17
|
*/
|
|
18
|
-
constructor(modelFile:
|
|
19
|
-
modelFile: ModelFile;
|
|
18
|
+
constructor(modelFile: any, ast: any);
|
|
20
19
|
/**
|
|
21
20
|
* Process the AST and build the model
|
|
22
21
|
*
|
|
23
22
|
* @throws {IllegalModelException}
|
|
24
23
|
* @private
|
|
25
24
|
*/
|
|
26
|
-
|
|
27
|
-
name: any;
|
|
28
|
-
key: MapKeyType | undefined;
|
|
29
|
-
value: MapValueType | undefined;
|
|
30
|
-
fqn: string | undefined;
|
|
25
|
+
process(): void;
|
|
31
26
|
/**
|
|
32
27
|
* Semantic validation of the structure of this class.
|
|
33
28
|
*
|
|
34
29
|
* @throws {IllegalModelException}
|
|
35
30
|
* @protected
|
|
36
31
|
*/
|
|
37
|
-
|
|
32
|
+
validate(): void;
|
|
38
33
|
/**
|
|
39
34
|
* Returns the fully qualified name of this class.
|
|
40
35
|
* The name will include the namespace if present.
|
|
41
36
|
*
|
|
42
37
|
* @return {string} the fully-qualified name of this class
|
|
43
38
|
*/
|
|
44
|
-
getFullyQualifiedName():
|
|
39
|
+
getFullyQualifiedName(): any;
|
|
45
40
|
/**
|
|
46
41
|
* Returns the ModelFile that defines this class.
|
|
47
42
|
*
|
|
48
43
|
* @public
|
|
49
44
|
* @return {ModelFile} the owning ModelFile
|
|
50
45
|
*/
|
|
51
|
-
|
|
46
|
+
getModelFile(): any;
|
|
52
47
|
/**
|
|
53
48
|
* Returns the short name of a class. This name does not include the
|
|
54
49
|
* namespace from the owning ModelFile.
|
|
55
50
|
*
|
|
56
51
|
* @return {string} the short name of this class
|
|
57
52
|
*/
|
|
58
|
-
getName():
|
|
53
|
+
getName(): any;
|
|
59
54
|
/**
|
|
60
55
|
* Returns the type of the Map key property.
|
|
61
56
|
*
|
|
62
57
|
* @return {MapKeyType} the Map key property
|
|
63
58
|
*/
|
|
64
|
-
getKey():
|
|
59
|
+
getKey(): any;
|
|
65
60
|
/**
|
|
66
61
|
* Returns the type of the Map Value property.
|
|
67
62
|
*
|
|
68
63
|
* @return {MapValueType} the Map Value property
|
|
69
64
|
*/
|
|
70
|
-
getValue():
|
|
65
|
+
getValue(): any;
|
|
71
66
|
/**
|
|
72
67
|
* Returns the string representation of this class
|
|
73
68
|
* @return {String} the string representation of the class
|
|
@@ -86,6 +81,4 @@ declare class MapDeclaration {
|
|
|
86
81
|
*/
|
|
87
82
|
isMapDeclaration(): boolean;
|
|
88
83
|
}
|
|
89
|
-
|
|
90
|
-
import MapKeyType = require("./mapkeytype");
|
|
91
|
-
import MapValueType = require("./mapvaluetype");
|
|
84
|
+
export = MapDeclaration;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
'use strict';
|
|
15
|
-
const Declaration = require(
|
|
15
|
+
const Declaration = require("./declaration");
|
|
16
16
|
const IllegalModelException = require('./illegalmodelexception');
|
|
17
17
|
const MapValueType = require('./mapvaluetype');
|
|
18
18
|
const MapKeyType = require('./mapkeytype');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapdeclaration.js","sourceRoot":"","sources":["../../src/introspect/mapdeclaration.
|
|
1
|
+
{"version":3,"file":"mapdeclaration.js","sourceRoot":"","sources":["../../src/introspect/mapdeclaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,6CAA8C;AAC9C,MAAM,qBAAqB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/C,MAAM,UAAU,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC3C,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAE1C,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAC7C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,cAAe,SAAQ,WAAW;IACpC;;;;;OAKG;IACH,YAAY,SAAS,EAAE,GAAG;QACtB,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;QACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,OAAO;QACH,KAAK,CAAC,OAAO,EAAE,CAAC;QAEhB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC;YACnC,MAAM,IAAI,qBAAqB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;IAC1B,CAAC;IAED;;;;;OAKG;IACH,qBAAqB;QACjB,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAED;;;;;OAKG;IACH,YAAY;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,CAAC;IAED;;;;;OAKG;IACH,OAAO;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED;;;;OAIG;IACH,MAAM;QACF,OAAO,IAAI,CAAC,GAAG,CAAC;IACpB,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACJ,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;OAGG;IACH,QAAQ;QACJ,OAAO,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,GAAG,GAAG,CAAC;IACtE,CAAC;IAED;;;;OAIG;IACH,eAAe;QACX,OAAO,gBAAgB,CAAC;IAC5B,CAAC;IAED;;;;OAIG;IACH,gBAAgB;QACZ,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAED,iBAAS,cAAc,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const Decorated: any;
|
|
2
2
|
/**
|
|
3
3
|
* MapKeyType defines a Key type of an MapDeclaration.
|
|
4
4
|
*
|
|
@@ -15,37 +15,53 @@ declare class MapKeyType extends Decorated {
|
|
|
15
15
|
* @param {ModelFile} modelFile - the ModelFile for the Map class
|
|
16
16
|
* @throws {IllegalModelException}
|
|
17
17
|
*/
|
|
18
|
-
constructor(parent:
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
constructor(parent: any, ast: any);
|
|
19
|
+
/**
|
|
20
|
+
* Process the AST and build the model
|
|
21
|
+
*
|
|
22
|
+
* @throws {IllegalModelException}
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
process(): void;
|
|
21
26
|
/**
|
|
22
27
|
* Semantic validation of the structure of this class.
|
|
23
28
|
*
|
|
24
29
|
* @throws {IllegalModelException}
|
|
25
30
|
* @protected
|
|
26
31
|
*/
|
|
27
|
-
|
|
32
|
+
validate(): void;
|
|
28
33
|
/**
|
|
29
34
|
* Sets the Type name for the Map Key
|
|
30
35
|
*
|
|
31
36
|
* @param {Object} ast - The AST created by the parser
|
|
32
37
|
* @private
|
|
33
38
|
*/
|
|
34
|
-
|
|
35
|
-
|
|
39
|
+
processType(ast: any): void;
|
|
40
|
+
/**
|
|
41
|
+
* Returns the ModelFile that defines this class.
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
* @return {ModelFile} the owning ModelFile
|
|
45
|
+
*/
|
|
46
|
+
getModelFile(): any;
|
|
36
47
|
/**
|
|
37
48
|
* Returns the owner of this property
|
|
38
49
|
* @public
|
|
39
50
|
* @return {MapDeclaration} the parent map declaration
|
|
40
51
|
*/
|
|
41
|
-
|
|
52
|
+
getParent(): any;
|
|
42
53
|
/**
|
|
43
54
|
* Returns the Type of the MapKey. This name does not include the
|
|
44
55
|
* namespace from the owning ModelFile.
|
|
45
56
|
*
|
|
46
57
|
* @return {string} the short name of this class
|
|
47
58
|
*/
|
|
48
|
-
getType():
|
|
59
|
+
getType(): any;
|
|
60
|
+
/**
|
|
61
|
+
* Returns the string representation of this class
|
|
62
|
+
* @return {String} the string representation of the class
|
|
63
|
+
*/
|
|
64
|
+
toString(): string;
|
|
49
65
|
/**
|
|
50
66
|
* Returns true if this class is the definition of a Map Key.
|
|
51
67
|
*
|
|
@@ -62,8 +78,6 @@ declare class MapKeyType extends Decorated {
|
|
|
62
78
|
* Return the namespace of this map key.
|
|
63
79
|
* @return {string} namespace - a namespace.
|
|
64
80
|
*/
|
|
65
|
-
getNamespace():
|
|
81
|
+
getNamespace(): any;
|
|
66
82
|
}
|
|
67
|
-
|
|
68
|
-
import MapDeclaration = require("./mapdeclaration");
|
|
69
|
-
import ModelFile = require("./modelfile");
|
|
83
|
+
export = MapKeyType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapkeytype.js","sourceRoot":"","sources":["../../src/introspect/mapkeytype.
|
|
1
|
+
{"version":3,"file":"mapkeytype.js","sourceRoot":"","sources":["../../src/introspect/mapkeytype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC1C,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAE5E,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AACzC,MAAM,qBAAqB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AAEjE,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACzC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAW,SAAQ,SAAS;IAC9B;;;;;;OAMG;IACH,YAAY,MAAM,EAAE,GAAG;QACnB,KAAK,CAAC,GAAG,CAAC,CAAC;QACX,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;IACnB,CAAC;IAED;;;;;OAKG;IACH,OAAO;QACH,KAAK,CAAC,OAAO,EAAE,CAAC;QAChB,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;IAED;;;;;OAKG;IACH,QAAQ;QACJ,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;YACxC,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,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C;CACJ;AAED,iBAAS,UAAU,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const Decorated: any;
|
|
2
2
|
/**
|
|
3
3
|
* MapValueType defines a Value type of MapDeclaration.
|
|
4
4
|
*
|
|
@@ -14,37 +14,53 @@ declare class MapValueType extends Decorated {
|
|
|
14
14
|
* @param {Object} ast - The AST created by the parser
|
|
15
15
|
* @throws {IllegalModelException}
|
|
16
16
|
*/
|
|
17
|
-
constructor(parent:
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
constructor(parent: any, ast: any);
|
|
18
|
+
/**
|
|
19
|
+
* Process the AST and build the model
|
|
20
|
+
*
|
|
21
|
+
* @throws {IllegalModelException}
|
|
22
|
+
* @private
|
|
23
|
+
*/
|
|
24
|
+
process(): void;
|
|
20
25
|
/**
|
|
21
26
|
* Semantic validation of the structure of this class.
|
|
22
27
|
*
|
|
23
28
|
* @throws {IllegalModelException}
|
|
24
29
|
* @protected
|
|
25
30
|
*/
|
|
26
|
-
|
|
31
|
+
validate(): void;
|
|
27
32
|
/**
|
|
28
33
|
* Sets the Type name for the Map Value
|
|
29
34
|
*
|
|
30
35
|
* @param {Object} ast - The AST created by the parser
|
|
31
36
|
* @private
|
|
32
37
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
38
|
+
processType(ast: any): void;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the ModelFile that defines this class.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
* @return {ModelFile} the owning ModelFile
|
|
44
|
+
*/
|
|
45
|
+
getModelFile(): any;
|
|
35
46
|
/**
|
|
36
47
|
* Returns the owner of this property
|
|
37
48
|
* @public
|
|
38
49
|
* @return {MapDeclaration} the parent map declaration
|
|
39
50
|
*/
|
|
40
|
-
|
|
51
|
+
getParent(): any;
|
|
41
52
|
/**
|
|
42
53
|
* Returns the Type of the MapValue. This name does not include the
|
|
43
54
|
* namespace from the owning ModelFile.
|
|
44
55
|
*
|
|
45
56
|
* @return {string} the short name of this class
|
|
46
57
|
*/
|
|
47
|
-
getType():
|
|
58
|
+
getType(): any;
|
|
59
|
+
/**
|
|
60
|
+
* Returns the string representation of this class
|
|
61
|
+
* @return {String} the string representation of the class
|
|
62
|
+
*/
|
|
63
|
+
toString(): string;
|
|
48
64
|
/**
|
|
49
65
|
* Returns true if this class is the definition of a Map Key.
|
|
50
66
|
*
|
|
@@ -61,8 +77,6 @@ declare class MapValueType extends Decorated {
|
|
|
61
77
|
* Return the namespace of this map value.
|
|
62
78
|
* @return {string} namespace - a namespace.
|
|
63
79
|
*/
|
|
64
|
-
getNamespace():
|
|
80
|
+
getNamespace(): any;
|
|
65
81
|
}
|
|
66
|
-
|
|
67
|
-
import MapDeclaration = require("./mapdeclaration");
|
|
68
|
-
import ModelFile = require("./modelfile");
|
|
82
|
+
export = MapValueType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapvaluetype.js","sourceRoot":"","sources":["../../src/introspect/mapvaluetype.
|
|
1
|
+
{"version":3,"file":"mapvaluetype.js","sourceRoot":"","sources":["../../src/introspect/mapvaluetype.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AACzC,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAC5E,MAAM,qBAAqB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAG1C,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACzC,MAAM,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;GAOG;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AO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED;;;OAGG;IACH,QAAQ;QACJ,OAAO,mBAAmB,GAAG,IAAI,CAAC,OAAO,EAAE,GAAG,GAAG,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACH,KAAK;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;OAIG;IACH,OAAO;QACH,OAAO,IAAI,CAAC;IAChB,CAAC;IAED;;;OAGG;IACH,YAAY;QACR,OAAO,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;IACzC,CAAC;CACJ;AAED,iBAAS,YAAY,CAAC"}
|
|
@@ -2,18 +2,23 @@
|
|
|
2
2
|
* Create a metamodel manager (for validation against the metamodel)
|
|
3
3
|
* @return {ModelManager} the metamodel manager
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
declare function newMetaModelManager(): any;
|
|
6
6
|
/**
|
|
7
7
|
* Validate metamodel instance against the metamodel
|
|
8
8
|
* @param {object} input - the metamodel instance in JSON
|
|
9
9
|
* @return {object} the validated metamodel instance in JSON
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
declare function validateMetaModel(input: any): any;
|
|
12
12
|
/**
|
|
13
13
|
* Import metamodel to a model manager
|
|
14
14
|
* @param {object} metaModel - the metamodel
|
|
15
15
|
* @param {boolean} [validate] - whether to perform validation
|
|
16
16
|
* @return {ModelManager} the metamodel for this model manager
|
|
17
17
|
*/
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
declare function modelManagerFromMetaModel(metaModel: any, validate?: boolean): any;
|
|
19
|
+
declare const _default: {
|
|
20
|
+
newMetaModelManager: typeof newMetaModelManager;
|
|
21
|
+
validateMetaModel: typeof validateMetaModel;
|
|
22
|
+
modelManagerFromMetaModel: typeof modelManagerFromMetaModel;
|
|
23
|
+
};
|
|
24
|
+
export = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metamodel.js","sourceRoot":"","sources":["../../src/introspect/metamodel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