@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
|
+
declare const Decorated: any;
|
|
2
2
|
/**
|
|
3
3
|
* Property representing an attribute of a class declaration,
|
|
4
4
|
* either a Field or a Relationship.
|
|
@@ -13,45 +13,52 @@ declare class Property extends Decorated {
|
|
|
13
13
|
* @param {Object} ast - The AST created by the parser
|
|
14
14
|
* @throws {IllegalModelException}
|
|
15
15
|
*/
|
|
16
|
-
constructor(parent:
|
|
17
|
-
|
|
16
|
+
constructor(parent: any, ast: any);
|
|
17
|
+
/**
|
|
18
|
+
* Returns the ModelFile that defines this class.
|
|
19
|
+
*
|
|
20
|
+
* @public
|
|
21
|
+
* @return {ModelFile} the owning ModelFile
|
|
22
|
+
*/
|
|
23
|
+
getModelFile(): any;
|
|
18
24
|
/**
|
|
19
25
|
* Returns the owner of this property
|
|
20
26
|
* @return {ClassDeclaration} the parent class declaration
|
|
21
27
|
*/
|
|
22
|
-
getParent():
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
+
getParent(): any;
|
|
29
|
+
/**
|
|
30
|
+
* Process the AST and build the model
|
|
31
|
+
* @throws {IllegalModelException}
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
process(): void;
|
|
28
35
|
/**
|
|
29
36
|
* Validate the property
|
|
30
37
|
* @param {ClassDeclaration} classDecl the class declaration of the property
|
|
31
38
|
* @throws {IllegalModelException}
|
|
32
39
|
* @protected
|
|
33
40
|
*/
|
|
34
|
-
|
|
41
|
+
validate(classDecl: any): void;
|
|
35
42
|
/**
|
|
36
43
|
* Returns the name of a property
|
|
37
44
|
* @return {string} the name of this field
|
|
38
45
|
*/
|
|
39
|
-
getName():
|
|
46
|
+
getName(): any;
|
|
40
47
|
/**
|
|
41
48
|
* Returns the type of a property
|
|
42
49
|
* @return {string} the type of this field
|
|
43
50
|
*/
|
|
44
|
-
getType():
|
|
51
|
+
getType(): any;
|
|
45
52
|
/**
|
|
46
53
|
* Returns true if the field is optional
|
|
47
54
|
* @return {boolean} true if the field is optional
|
|
48
55
|
*/
|
|
49
|
-
isOptional():
|
|
56
|
+
isOptional(): any;
|
|
50
57
|
/**
|
|
51
58
|
* Returns the fully qualified type name of a property
|
|
52
59
|
* @return {string} the fully qualified type of this property
|
|
53
60
|
*/
|
|
54
|
-
getFullyQualifiedTypeName():
|
|
61
|
+
getFullyQualifiedTypeName(): any;
|
|
55
62
|
/**
|
|
56
63
|
* Returns the fully name of a property (ns + class name + property name)
|
|
57
64
|
* @return {string} the fully qualified name of this property
|
|
@@ -61,22 +68,21 @@ declare class Property extends Decorated {
|
|
|
61
68
|
* Returns the namespace of the parent of this property
|
|
62
69
|
* @return {string} the namespace of the parent of this property
|
|
63
70
|
*/
|
|
64
|
-
getNamespace():
|
|
71
|
+
getNamespace(): any;
|
|
65
72
|
/**
|
|
66
73
|
* Returns true if the field is declared as an array type
|
|
67
74
|
* @return {boolean} true if the property is an array type
|
|
68
75
|
*/
|
|
69
|
-
isArray():
|
|
76
|
+
isArray(): any;
|
|
70
77
|
/**
|
|
71
78
|
* Returns true if the field is declared as an enumerated value
|
|
72
79
|
* @return {boolean} true if the property is an enumerated value
|
|
73
80
|
*/
|
|
74
|
-
isTypeEnum():
|
|
81
|
+
isTypeEnum(): any;
|
|
75
82
|
/**
|
|
76
83
|
* Returns true if this property is a primitive type.
|
|
77
84
|
* @return {boolean} true if the property is a primitive type.
|
|
78
85
|
*/
|
|
79
|
-
isPrimitive():
|
|
86
|
+
isPrimitive(): any;
|
|
80
87
|
}
|
|
81
|
-
|
|
82
|
-
import ClassDeclaration = require("./classdeclaration");
|
|
88
|
+
export = Property;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/introspect/property.
|
|
1
|
+
{"version":3,"file":"property.js","sourceRoot":"","sources":["../../src/introspect/property.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAE5E,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC1C,MAAM,qBAAqB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa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aAAa,GAAG,IAAI,CAAC,IAAI,CAAE,CAAC;QACvH,CAAC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;IAED;;;OAGG;IACH,qBAAqB;QACjB,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,qBAAqB,EAAE,GAAG,GAAG,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC3E,CAAC;IAED;;;OAGG;IACH,YAAY;QACR,OAAO,IAAI,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE,CAAC;IAC3C,CAAC;IAED;;;OAGG;IACH,OAAO;QACH,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAGD;;;OAGG;IACH,UAAU;QACN,IAAG,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC;YACpB,OAAO,KAAK,CAAC;QACjB,CAAC;aACI,CAAC;YACF,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,EAAE,CAAC,YAAY,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;YACrE,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;QACzB,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,WAAW;QACP,OAAO,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;IACrD,CAAC;CACJ;AAED,iBAAS,QAAQ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import Property = require('./property');
|
|
2
2
|
/**
|
|
3
3
|
* Class representing a relationship between model elements
|
|
4
4
|
* @extends Property
|
|
@@ -8,6 +8,25 @@ export = RelationshipDeclaration;
|
|
|
8
8
|
* @memberof module:concerto-core
|
|
9
9
|
*/
|
|
10
10
|
declare class RelationshipDeclaration extends Property {
|
|
11
|
+
/**
|
|
12
|
+
* Create a Relationship.
|
|
13
|
+
* @param {ClassDeclaration} parent - The owner of this property
|
|
14
|
+
* @param {Object} ast - The AST created by the parser
|
|
15
|
+
* @throws {IllegalModelException}
|
|
16
|
+
*/
|
|
17
|
+
constructor(parent: any, ast: any);
|
|
18
|
+
/**
|
|
19
|
+
* Validate the property
|
|
20
|
+
* @param {ClassDeclaration} classDecl the class declaration of the property
|
|
21
|
+
* @throws {IllegalModelException}
|
|
22
|
+
* @protected
|
|
23
|
+
*/
|
|
24
|
+
validate(classDecl: any): void;
|
|
25
|
+
/**
|
|
26
|
+
* Returns a string representation of this property
|
|
27
|
+
* @return {String} the string version of the property.
|
|
28
|
+
*/
|
|
29
|
+
toString(): string;
|
|
11
30
|
/**
|
|
12
31
|
* Returns true if this class is the definition of a relationship.
|
|
13
32
|
*
|
|
@@ -15,4 +34,4 @@ declare class RelationshipDeclaration extends Property {
|
|
|
15
34
|
*/
|
|
16
35
|
isRelationship(): boolean;
|
|
17
36
|
}
|
|
18
|
-
|
|
37
|
+
export = RelationshipDeclaration;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
'use strict';
|
|
15
|
-
const Property = require(
|
|
15
|
+
const Property = require("./property");
|
|
16
16
|
const IllegalModelException = require('./illegalmodelexception');
|
|
17
17
|
const ModelUtil = require('../modelutil');
|
|
18
18
|
// Types needed for TypeScript generation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationshipdeclaration.js","sourceRoot":"","sources":["../../src/introspect/relationshipdeclaration.
|
|
1
|
+
{"version":3,"file":"relationshipdeclaration.js","sourceRoot":"","sources":["../../src/introspect/relationshipdeclaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,uCAAwC;AACxC,MAAM,qBAAqB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAE1C,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM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ines the structure (model/schema) of composite data.
|
|
4
4
|
* It is composed of a set of Properties, may have an identifying field, and may
|
|
@@ -11,14 +11,13 @@ export = ScalarDeclaration;
|
|
|
11
11
|
* @memberof module:concerto-core
|
|
12
12
|
*/
|
|
13
13
|
declare class ScalarDeclaration extends Declaration {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
defaultValue: any;
|
|
14
|
+
/**
|
|
15
|
+
* Process the AST and build the model
|
|
16
|
+
*
|
|
17
|
+
* @throws {IllegalModelException}
|
|
18
|
+
* @private
|
|
19
|
+
*/
|
|
20
|
+
process(): void;
|
|
22
21
|
/**
|
|
23
22
|
* Semantic validation of the structure of this class. Subclasses should
|
|
24
23
|
* override this method to impose additional semantic constraints on the
|
|
@@ -27,7 +26,32 @@ declare class ScalarDeclaration extends Declaration {
|
|
|
27
26
|
* @throws {IllegalModelException}
|
|
28
27
|
* @protected
|
|
29
28
|
*/
|
|
30
|
-
|
|
29
|
+
validate(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Returns false as scalars are never identified.
|
|
32
|
+
* @returns {Boolean} false as scalars are never identified
|
|
33
|
+
* @deprecated
|
|
34
|
+
*/
|
|
35
|
+
isIdentified(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Returns false as scalars are never identified.
|
|
38
|
+
* @returns {Boolean} false as scalars are never identified
|
|
39
|
+
* @deprecated
|
|
40
|
+
*/
|
|
41
|
+
isSystemIdentified(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Returns null as scalars are never identified.
|
|
44
|
+
* @return {string} as scalars are never identified
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
47
|
+
getIdentifierFieldName(): null;
|
|
48
|
+
/**
|
|
49
|
+
* Returns the FQN of the super type for this class or null if this
|
|
50
|
+
* class does not have a super type.
|
|
51
|
+
*
|
|
52
|
+
* @return {string} the FQN name of the super type or null
|
|
53
|
+
*/
|
|
54
|
+
getType(): any;
|
|
31
55
|
/**
|
|
32
56
|
* Returns the FQN of the super type for this class or null if this
|
|
33
57
|
* class does not have a super type.
|
|
@@ -35,23 +59,28 @@ declare class ScalarDeclaration extends Declaration {
|
|
|
35
59
|
* @return {string} the FQN name of the super type or null
|
|
36
60
|
* @deprecated
|
|
37
61
|
*/
|
|
38
|
-
getSuperType():
|
|
62
|
+
getSuperType(): null;
|
|
39
63
|
/**
|
|
40
64
|
* Get the super type class declaration for this class.
|
|
41
65
|
* @return {ClassDeclaration} the super type declaration, or null if there is no super type.
|
|
42
66
|
* @deprecated
|
|
43
67
|
*/
|
|
44
|
-
getSuperTypeDeclaration():
|
|
68
|
+
getSuperTypeDeclaration(): null;
|
|
45
69
|
/**
|
|
46
70
|
* Returns the validator string for this scalar definition
|
|
47
71
|
* @return {Validator} the validator for the field or null
|
|
48
72
|
*/
|
|
49
|
-
getValidator():
|
|
73
|
+
getValidator(): any;
|
|
50
74
|
/**
|
|
51
75
|
* Returns the default value for the field or null
|
|
52
76
|
* @return {string | number | null} the default value for the field or null
|
|
53
77
|
*/
|
|
54
|
-
getDefaultValue():
|
|
78
|
+
getDefaultValue(): any;
|
|
79
|
+
/**
|
|
80
|
+
* Returns the string representation of this class
|
|
81
|
+
* @return {String} the string representation of the class
|
|
82
|
+
*/
|
|
83
|
+
toString(): string;
|
|
55
84
|
/**
|
|
56
85
|
* Returns true if this class is abstract.
|
|
57
86
|
*
|
|
@@ -59,6 +88,12 @@ declare class ScalarDeclaration extends Declaration {
|
|
|
59
88
|
* @deprecated
|
|
60
89
|
*/
|
|
61
90
|
isAbstract(): boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Returns true if this class is the definition of a scalar declaration.
|
|
93
|
+
*
|
|
94
|
+
* @return {boolean} true if the class is a scalar
|
|
95
|
+
*/
|
|
96
|
+
isScalarDeclaration(): boolean;
|
|
62
97
|
/**
|
|
63
98
|
* Returns true if this class is the definition of an asset.
|
|
64
99
|
*
|
|
@@ -95,8 +130,4 @@ declare class ScalarDeclaration extends Declaration {
|
|
|
95
130
|
*/
|
|
96
131
|
isConcept(): boolean;
|
|
97
132
|
}
|
|
98
|
-
|
|
99
|
-
import StringValidator = require("./stringvalidator");
|
|
100
|
-
import NumberValidator = require("./numbervalidator");
|
|
101
|
-
import ClassDeclaration = require("./classdeclaration");
|
|
102
|
-
import Validator = require("./validator");
|
|
133
|
+
export = ScalarDeclaration;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scalardeclaration.js","sourceRoot":"","sources":["../../src/introspect/scalardeclaration.
|
|
1
|
+
{"version":3,"file":"scalardeclaration.js","sourceRoot":"","sources":["../../src/introspect/scalardeclaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAE5E,MAAM,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAC7C,MAAM,qBAAqB,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjE,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;AAC9D,MAAM,SAAS,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAC1C,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IACzC,MAAM,gBAAgB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAC3D,CAAC;AACD,kCAAkC;AAElC;;;;;;;;;;GAUG;AACH,MAAM,iBAAkB,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,OAAO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AC;IAED;;;;;OAKG;IACH,OAAO;QACH,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACH,aAAa;QACT,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACH,aAAa;QACT,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACH,OAAO;QACH,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;;;;OAKG;IACH,SAAS;QACL,OAAO,KAAK,CAAC;IACjB,CAAC;CAEJ;AAED,iBAAS,iBAAiB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
declare const Validator: any;
|
|
2
2
|
/**
|
|
3
3
|
* A Validator to enforce that a string matches a regex
|
|
4
4
|
* @private
|
|
@@ -14,24 +14,38 @@ declare class StringValidator extends Validator {
|
|
|
14
14
|
*
|
|
15
15
|
* @throws {IllegalModelException}
|
|
16
16
|
*/
|
|
17
|
-
constructor(field:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
constructor(field: any, validator: any, lengthValidator: any);
|
|
18
|
+
/**
|
|
19
|
+
* Validate the property
|
|
20
|
+
* @param {string} identifier the identifier of the instance being validated
|
|
21
|
+
* @param {Object} value the value to validate
|
|
22
|
+
* @throws {IllegalModelException}
|
|
23
|
+
* @private
|
|
24
|
+
*/
|
|
25
|
+
validate(identifier: any, value: any): void;
|
|
21
26
|
/**
|
|
22
27
|
* Returns the minLength for this validator, or null if not specified
|
|
23
28
|
* @returns {number} the min length or null
|
|
24
29
|
*/
|
|
25
|
-
getMinLength():
|
|
30
|
+
getMinLength(): any;
|
|
26
31
|
/**
|
|
27
32
|
* Returns the maxLength for this validator, or null if not specified
|
|
28
33
|
* @returns {number} the max length or null
|
|
29
34
|
*/
|
|
30
|
-
getMaxLength():
|
|
35
|
+
getMaxLength(): any;
|
|
31
36
|
/**
|
|
32
37
|
* Returns the RegExp object associated with the string validator, or null if not specified
|
|
33
38
|
* @returns {RegExp} the RegExp object
|
|
34
39
|
*/
|
|
35
|
-
getRegex():
|
|
40
|
+
getRegex(): any;
|
|
41
|
+
/**
|
|
42
|
+
* Determine if the validator is compatible with another validator. For the
|
|
43
|
+
* validators to be compatible, all values accepted by this validator must
|
|
44
|
+
* be accepted by the other validator.
|
|
45
|
+
* @param {Validator} other the other validator.
|
|
46
|
+
* @returns {boolean} True if this validator is compatible with the other
|
|
47
|
+
* validator, false otherwise.
|
|
48
|
+
*/
|
|
49
|
+
compatibleWith(other: any): boolean;
|
|
36
50
|
}
|
|
37
|
-
|
|
51
|
+
export = StringValidator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stringvalidator.js","sourceRoot":"","sources":["../../src/introspect/stringvalidator.
|
|
1
|
+
{"version":3,"file":"stringvalidator.js","sourceRoot":"","sources":["../../src/introspect/stringvalidator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC/D,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC,QAAQ,CAAC;AACpE,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AAEzC,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAC7D,CAAC;AACD,kCAAkC;AAElC;;;;;GAKG;AACH,MAAM,eAAgB,SAAQ,SAAS;IAEnC;;;;;;;OAOG;IACH,YAAY,KAAK,EAAE,SAAS,EAAE,eAAe;QACzC,KAAK,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;QACxB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACt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,GAAG,cAAc,EAAE,CAAC;gBACjC,OAAO,KAAK,CAAC;YACjB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAED,iBAAS,eAAe,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import IdentifiedDeclaration = require('./identifieddeclaration');
|
|
2
2
|
/** Class representing the definition of an Transaction.
|
|
3
3
|
* @extends ClassDeclaration
|
|
4
4
|
* @see See {@link ClassDeclaration}
|
|
@@ -6,14 +6,14 @@ export = TransactionDeclaration;
|
|
|
6
6
|
* @class
|
|
7
7
|
* @memberof module:concerto-core
|
|
8
8
|
*/
|
|
9
|
-
declare class TransactionDeclaration {
|
|
9
|
+
declare class TransactionDeclaration extends IdentifiedDeclaration {
|
|
10
10
|
/**
|
|
11
11
|
* Create an TransactionDeclaration.
|
|
12
12
|
* @param {ModelFile} modelFile the ModelFile for this class
|
|
13
13
|
* @param {Object} ast - The AST created by the parser
|
|
14
14
|
* @throws {IllegalModelException}
|
|
15
15
|
*/
|
|
16
|
-
constructor(modelFile:
|
|
16
|
+
constructor(modelFile: any, ast: any);
|
|
17
17
|
/**
|
|
18
18
|
* Returns the kind of declaration
|
|
19
19
|
*
|
|
@@ -21,4 +21,4 @@ declare class TransactionDeclaration {
|
|
|
21
21
|
*/
|
|
22
22
|
declarationKind(): string;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
export = TransactionDeclaration;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
'use strict';
|
|
15
|
-
const IdentifiedDeclaration = require(
|
|
15
|
+
const IdentifiedDeclaration = require("./identifieddeclaration");
|
|
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":"transactiondeclaration.js","sourceRoot":"","sources":["../../src/introspect/transactiondeclaration.
|
|
1
|
+
{"version":3,"file":"transactiondeclaration.js","sourceRoot":"","sources":["../../src/introspect/transactiondeclaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,iEAAkE;AAElE,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;;;;;;GAMG;AACH,MAAM,sBAAuB,SAAQ,qBAAqB;IACtD;;;;;OAKG;IACH,YAAY,SAAS,EAAE,GAAG;QACtB,KAAK,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED;;;;OAIG;IACH,eAAe;QACX,OAAO,wBAAwB,CAAC;IACpC,CAAC;CACJ;AAED,iBAAS,sBAAsB,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export = Validator;
|
|
2
1
|
/**
|
|
3
2
|
* An Abstract field validator. Extend this class and override the
|
|
4
3
|
* validate method.
|
|
@@ -8,34 +7,34 @@ export = Validator;
|
|
|
8
7
|
* @memberof module:concerto-core
|
|
9
8
|
*/
|
|
10
9
|
declare class Validator {
|
|
10
|
+
validator: any;
|
|
11
|
+
field: any;
|
|
11
12
|
/**
|
|
12
13
|
* Create a Property.
|
|
13
14
|
* @param {Object} field - the field or scalar declaration this validator is attached to
|
|
14
15
|
* @param {Object} validator - The validation string
|
|
15
16
|
* @throws {IllegalModelException}
|
|
16
17
|
*/
|
|
17
|
-
constructor(field:
|
|
18
|
-
validator: Object;
|
|
19
|
-
field: Object;
|
|
18
|
+
constructor(field: any, validator: any);
|
|
20
19
|
/**
|
|
21
20
|
* @param {string} id the identifier of the instance
|
|
22
21
|
* @param {string} msg the exception message
|
|
23
22
|
* @param {string} errorType the type of error
|
|
24
23
|
* @throws {Error} throws an error to report the message
|
|
25
24
|
*/
|
|
26
|
-
reportError(id:
|
|
25
|
+
reportError(id: any, msg: any, errorType?: any): void;
|
|
27
26
|
/**
|
|
28
27
|
* Visitor design pattern
|
|
29
28
|
* @param {Object} visitor - the visitor
|
|
30
29
|
* @param {Object} parameters - the parameter
|
|
31
30
|
* @return {Object} the result of visiting or null
|
|
32
31
|
*/
|
|
33
|
-
accept(visitor:
|
|
32
|
+
accept(visitor: any, parameters: any): any;
|
|
34
33
|
/**
|
|
35
34
|
* Returns the field or scalar declaration that this validator applies to
|
|
36
35
|
* @return {Object} the field
|
|
37
36
|
*/
|
|
38
|
-
getFieldOrScalarDeclaration():
|
|
37
|
+
getFieldOrScalarDeclaration(): any;
|
|
39
38
|
/**
|
|
40
39
|
* Validate the property against a value
|
|
41
40
|
* @param {string} identifier the identifier of the instance being validated
|
|
@@ -43,7 +42,7 @@ declare class Validator {
|
|
|
43
42
|
* @throws {IllegalModelException}
|
|
44
43
|
* @private
|
|
45
44
|
*/
|
|
46
|
-
|
|
45
|
+
validate(identifier: any, value: any): void;
|
|
47
46
|
/**
|
|
48
47
|
* Determine if the validator is compatible with another validator. For the
|
|
49
48
|
* validators to be compatible, all values accepted by this validator must
|
|
@@ -52,5 +51,6 @@ declare class Validator {
|
|
|
52
51
|
* @returns {boolean} True if this validator is compatible with the other
|
|
53
52
|
* validator, false otherwise.
|
|
54
53
|
*/
|
|
55
|
-
compatibleWith(other:
|
|
54
|
+
compatibleWith(other: any): boolean;
|
|
56
55
|
}
|
|
56
|
+
export = Validator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../src/introspect/validator.
|
|
1
|
+
{"version":3,"file":"validator.js","sourceRoot":"","sources":["../../src/introspect/validator.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAC9E,0CAA0C;AAC1C,mCAAmC;AACnC,0BAA0B;AAC1B,IAAI,MAAM,KAAK,SAAS,EAAE,CAAC;IACvB,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACjC,MAAM,iBAAiB,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAC7D,CAAC;AACD,kCAAkC;AAElC;;;;;;;GAOG;AACH,MAAM,SAAS;IAGX;;;;;OAKG;IACH,YAAY,KAAK,EAAE,SAAS;QACxB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,WAAW,CAAC,EAAE,EAAE,GAAG,EAAE,SAAS,GAAC,UAAU,CAAC,2BAA2B;QACjE,MAAM,IAAI,aAAa,CAAC,6BAA6B,GAAG,EAAE,GAAG,KAAK,GAAG,IAAI,CAAC,2BAA2B,EAAE,CAAC,qBAAqB,EAAE,GAAG,IAAI,GAAG,GAAG,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACxK,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,2BAA2B;QACvB,OAAO,IAAI,CAAC,KAAK,CAAC;IACtB,CAAC;IAED;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,KAAK;IAC1B,CAAC;IAED;;;;;;;OAOG;IACH,cAAc,CAAC,KAAK;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AAED,iBAAS,SAAS,CAAC"}
|
package/dist/messages/en.json
CHANGED
|
@@ -12,19 +12,23 @@
|
|
|
12
12
|
"test-hello-object": "Hello, {first} {middle} {last}",
|
|
13
13
|
"test-repeat-array": "{0} {0} {0}",
|
|
14
14
|
"test-repeat-object": "{value} {value} {value}",
|
|
15
|
+
|
|
15
16
|
"classdeclaration-constructor-modelastreq": "\"ModelFile\" and \"AST\" are required to create a \"ClassDecl\".",
|
|
16
17
|
"classdeclaration-process-unrecmodelelem": "Unrecognised model element \"{type}\".",
|
|
17
18
|
"classdeclaration-getfield-notfindsupertype": "Could not find supertype \"{type}\".",
|
|
18
19
|
"classdeclaration-validate-identifiernotproperty": "Class \"{class}\" is identified by field \"{idField}\", but does not contain this property.",
|
|
19
20
|
"classdeclaration-validate-identifiernotstring": "Class \"{class}\" is identified by field \"{idField}\", but the type of the field is not \"String\".",
|
|
20
21
|
"classdeclaration-validate-duplicatefieldname": "Class \"{class}\" has more than one field named \"{fieldName}\".",
|
|
21
|
-
"classdeclaration-validate-missingidentifier": "Class \"{class}\" is not declared as \"abstract\". It must define an identifying field.",
|
|
22
|
+
"classdeclaration-validate-missingidentifier" : "Class \"{class}\" is not declared as \"abstract\". It must define an identifying field.",
|
|
22
23
|
"classdeclaration-validate-selfextending": "Class \"{class}\" cannot extend itself.",
|
|
23
24
|
"classdeclaration-validate-undefined-properties": "Properties of Class \"{class}\" has to be defined.",
|
|
25
|
+
|
|
24
26
|
"modelfile-constructor-unrecmodelelem": "Unrecognised model element \"{type}\".",
|
|
25
27
|
"modelfile-resolvetype-undecltype": "Undeclared type \"{type}\" in \"{context}\".",
|
|
26
28
|
"modelfile-resolveimport-failfindimp": "Failed to find \"{type}\" in list of imports \"[{imports}]\" for namespace \"{namespace}\".",
|
|
29
|
+
|
|
27
30
|
"transactiondeclaration-getidentifierfieldname-noidentifyingfield": "Transactions do not have an identifying field.",
|
|
31
|
+
|
|
28
32
|
"composer-connect-noconopts": "\"connectOptions\" not specified.",
|
|
29
33
|
"composer-connect-nokeyvalstore": "\"connectOptions.keyValStore\" not specified.",
|
|
30
34
|
"composer-connect-nomembersrvcurl": "\"connectOptions.membershipServicesURL\" not specified.",
|
|
@@ -34,22 +38,30 @@
|
|
|
34
38
|
"composer-login-noenrollmentid": "\"enrollmentID\" not specified.",
|
|
35
39
|
"composer-login-noenrollmentsecret": "\"enrollmentSecret\" not specified.",
|
|
36
40
|
"composer-deploy-nosecuritycontext": "\"securityContext\" not specified.",
|
|
41
|
+
|
|
37
42
|
"factory-newinstance-missingidentifier": "Missing identifier for Type \"{type}\" in namespace \"{namespace}\".",
|
|
38
43
|
"factory-newinstance-invalididentifier": "Invalid or missing identifier for Type \"{type}\" in namespace \"{namespace}\".",
|
|
39
44
|
"factory-newinstance-abstracttype": "Cannot instantiate the abstract type \"{type}\" in the \"{namespace}\" namespace.",
|
|
40
|
-
"factory-newrelationship-notregisteredwithmm": "Cannot create relationship as namespace \"{namespace}\" is not known.",
|
|
41
|
-
"factory-newinstance-typenotdeclaredinns": "Cannot instantiate Type \"{type}\" in namespace \"{namespace}\".",
|
|
45
|
+
"factory-newrelationship-notregisteredwithmm" : "Cannot create relationship as namespace \"{namespace}\" is not known.",
|
|
46
|
+
"factory-newinstance-typenotdeclaredinns" : "Cannot instantiate Type \"{type}\" in namespace \"{namespace}\".",
|
|
47
|
+
|
|
42
48
|
"instancegenerator-newinstance-noconcreteclass": "No concrete extending type for \"{type}\".",
|
|
49
|
+
|
|
43
50
|
"modelmanager-resolvetype-nonsfortype": "No registered namespace for type \"{type}\" in \"{context}\".",
|
|
44
51
|
"modelmanager-resolvetype-notypeinnsforcontext": "No type \"{type}\" in namespace \"{namespace}\" for \"{context}\".",
|
|
52
|
+
|
|
45
53
|
"modelmanager-gettype-noregisteredns": "Namespace is not defined for type \"{type}\".",
|
|
46
54
|
"modelmanager-gettype-duplicatensimport": "Importing types from different versions (\"{version1}\", \"{version2}\") of the same namespace \"{namespace}\" is not permitted.",
|
|
47
55
|
"modelmanager-gettype-notypeinns": "Type \"{type}\" is not defined in namespace \"{namespace}\".",
|
|
56
|
+
|
|
48
57
|
"serializer-constructor-factorynull": "\"Factory\" cannot be \"null\".",
|
|
49
58
|
"serializer-constructor-modelmanagernull": "\"ModelManager\" cannot be \"null\".",
|
|
50
59
|
"serializer-tojson-notcobject": "\"Serializer.toJSON\" only accepts \"Concept\", \"Event\", \"Asset\", \"Participant\" or \"Transaction\".",
|
|
60
|
+
|
|
51
61
|
"util-securitycheck-novalidcontext": "A valid \"SecurityContext\" must be specified.",
|
|
62
|
+
|
|
52
63
|
"modelutil-getnamespace-nofnq": "FQN is invalid.",
|
|
64
|
+
|
|
53
65
|
"resourcevalidator-notresourceorconcept": "Model violation in the \"{resourceId}\" instance. Class \"{classFQN}\" has the value of \"{invalidValue}\". Expected a \"Resource\" or a \"Concept\".",
|
|
54
66
|
"resourcevalidator-notrelationship": "Model violation in the \"{resourceId}\" instance. Class \"{classFQN}\" has a value of \"{invalidValue}\". Expected a \"Relationship\".",
|
|
55
67
|
"resourcevalidator-fieldtypeviolation": "Model violation in the \"{resourceId}\" instance. The field \"{propertyName}\" has a value of \"{value}\" (type of value: \"{typeOfValue}\"). Expected type of value: \"{fieldType}\".",
|
|
@@ -60,11 +72,13 @@
|
|
|
60
72
|
"resourcevalidator-invalidfieldassignment": "Instance \"{resourceId}\" has a property \"{propertyName}\" with type \"{objectType}\" that is not derived from \"{fieldType}\".",
|
|
61
73
|
"resourcevalidator-emptyidentifier": "Instance \"{resourceId}\" has an empty identifier.",
|
|
62
74
|
"resourcevalidator-invalidmap": "Model violation in the \"{resourceId}\" instance. Invalid Type for Map Key or Value - expected String type.",
|
|
75
|
+
|
|
63
76
|
"typenotfounderror-defaultmessage": "Type \"{typeName}\" not found.",
|
|
77
|
+
|
|
64
78
|
"whereastvalidator-propertytypeviolation": "Property \"{propertyName}\" cannot be compared with \"{value}\" (type of value: \"{typeOfValue}\"). Expected type: \"{fieldType}\".",
|
|
65
79
|
"whereastvalidator-enum-propertytypeviolation": "Enum property \"{propertyName}\" cannot be compared with \"{value}\" (type of value: \"{typeOfValue}\"). Expected type: \"String\".",
|
|
66
80
|
"whereastvalidator-relationship-propertytypeviolation": "Relationship \"{propertyName}\" cannot be compared with \"{value}\" (type of value: \"{typeOfValue}\"). Expected type: \"String\".",
|
|
67
|
-
|
|
81
|
+
"whereastvalidator-unsupportedtype": "Property \"{propertyName}\" of type \"{fieldType}\" cannot be compared with a literal value.",
|
|
68
82
|
"whereastvalidator-invalidoperator": "Property \"{propertyName}\" cannot be compared using the \"{operator}\" operator."
|
|
69
83
|
}
|
|
70
84
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
declare const MetamodelException_base: any;
|
|
1
|
+
declare const BaseException: any;
|
|
3
2
|
/**
|
|
4
3
|
* Class representing an invalid Metamodel instance (JSON AST)
|
|
5
4
|
* @extends BaseException
|
|
@@ -7,11 +6,11 @@ declare const MetamodelException_base: any;
|
|
|
7
6
|
* @class
|
|
8
7
|
* @memberof module:concerto-core
|
|
9
8
|
*/
|
|
10
|
-
declare class MetamodelException extends
|
|
11
|
-
[x: string]: any;
|
|
9
|
+
declare class MetamodelException extends BaseException {
|
|
12
10
|
/**
|
|
13
11
|
* Create the MetamodelException.
|
|
14
12
|
* @param {string} message - The exception message.
|
|
15
13
|
*/
|
|
16
|
-
constructor(message:
|
|
14
|
+
constructor(message: any);
|
|
17
15
|
}
|
|
16
|
+
export = MetamodelException;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metamodelexception.js","sourceRoot":"","sources":["../src/metamodelexception.
|
|
1
|
+
{"version":3,"file":"metamodelexception.js","sourceRoot":"","sources":["../src/metamodelexception.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAElE;;;;;;EAME;AACF,MAAM,kBAAmB,SAAQ,aAAa;IAC1C;;;OAGG;IACH,YAAY,OAAO;QACf,KAAK,CAAC,OAAO,CAAC,CAAC;IACnB,CAAC;CAEJ;AAED,iBAAS,kBAAkB,CAAC"}
|