@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.
Files changed (159) hide show
  1. package/dist/astmodelmanager.d.ts +3 -3
  2. package/dist/astmodelmanager.js.map +1 -1
  3. package/dist/basemodelmanager.d.ts +72 -95
  4. package/dist/basemodelmanager.js +29 -20
  5. package/dist/basemodelmanager.js.map +1 -1
  6. package/dist/concerto-core.js +1 -1
  7. package/dist/concerto-core.js.LICENSE.txt +1 -1
  8. package/dist/datetimeutil.d.ts +8 -1
  9. package/dist/datetimeutil.js.map +1 -1
  10. package/dist/dcsconverter.d.ts +12 -2
  11. package/dist/dcsconverter.js.map +1 -1
  12. package/dist/decoratorextractor.d.ts +30 -23
  13. package/dist/decoratorextractor.js.map +1 -1
  14. package/dist/decoratormanager.d.ts +34 -76
  15. package/dist/decoratormanager.js +31 -14
  16. package/dist/decoratormanager.js.map +1 -1
  17. package/dist/decoratormodelhelper.d.ts +13 -0
  18. package/dist/{decoratormodel.js → decoratormodelhelper.js} +4 -3
  19. package/dist/decoratormodelhelper.js.map +1 -0
  20. package/dist/factory.d.ts +11 -28
  21. package/dist/factory.js.map +1 -1
  22. package/dist/globalize.d.ts +16 -13
  23. package/dist/globalize.js.map +1 -1
  24. package/dist/index.d.ts +1 -11
  25. package/dist/index.js +2 -8
  26. package/dist/index.js.map +1 -1
  27. package/dist/introspect/assetdeclaration.d.ts +4 -4
  28. package/dist/introspect/assetdeclaration.js +1 -1
  29. package/dist/introspect/assetdeclaration.js.map +1 -1
  30. package/dist/introspect/classdeclaration.d.ts +67 -25
  31. package/dist/introspect/classdeclaration.js +1 -1
  32. package/dist/introspect/classdeclaration.js.map +1 -1
  33. package/dist/introspect/conceptdeclaration.d.ts +9 -2
  34. package/dist/introspect/conceptdeclaration.js +1 -1
  35. package/dist/introspect/conceptdeclaration.js.map +1 -1
  36. package/dist/introspect/declaration.d.ts +37 -12
  37. package/dist/introspect/declaration.js.map +1 -1
  38. package/dist/introspect/decorated.d.ts +10 -12
  39. package/dist/introspect/decorated.js +1 -0
  40. package/dist/introspect/decorated.js.map +1 -1
  41. package/dist/introspect/decorator.d.ts +12 -14
  42. package/dist/introspect/decorator.js +1 -1
  43. package/dist/introspect/decorator.js.map +1 -1
  44. package/dist/introspect/decoratorfactory.d.ts +2 -5
  45. package/dist/introspect/decoratorfactory.js.map +1 -1
  46. package/dist/introspect/enumdeclaration.d.ts +14 -2
  47. package/dist/introspect/enumdeclaration.js +1 -1
  48. package/dist/introspect/enumdeclaration.js.map +1 -1
  49. package/dist/introspect/enumvaluedeclaration.d.ts +16 -2
  50. package/dist/introspect/enumvaluedeclaration.js +1 -1
  51. package/dist/introspect/enumvaluedeclaration.js.map +1 -1
  52. package/dist/introspect/eventdeclaration.d.ts +5 -5
  53. package/dist/introspect/eventdeclaration.js +1 -1
  54. package/dist/introspect/eventdeclaration.js.map +1 -1
  55. package/dist/introspect/field.d.ts +24 -12
  56. package/dist/introspect/field.js +1 -1
  57. package/dist/introspect/field.js.map +1 -1
  58. package/dist/introspect/identifieddeclaration.d.ts +9 -2
  59. package/dist/introspect/identifieddeclaration.js +1 -1
  60. package/dist/introspect/identifieddeclaration.js.map +1 -1
  61. package/dist/introspect/illegalmodelexception.d.ts +4 -6
  62. package/dist/introspect/illegalmodelexception.js +1 -1
  63. package/dist/introspect/illegalmodelexception.js.map +1 -1
  64. package/dist/introspect/introspector.d.ts +7 -9
  65. package/dist/introspect/introspector.js.map +1 -1
  66. package/dist/introspect/mapdeclaration.d.ts +11 -18
  67. package/dist/introspect/mapdeclaration.js +1 -1
  68. package/dist/introspect/mapdeclaration.js.map +1 -1
  69. package/dist/introspect/mapkeytype.d.ts +27 -13
  70. package/dist/introspect/mapkeytype.js.map +1 -1
  71. package/dist/introspect/mapvaluetype.d.ts +27 -13
  72. package/dist/introspect/mapvaluetype.js.map +1 -1
  73. package/dist/introspect/metamodel.d.ts +9 -4
  74. package/dist/introspect/metamodel.js.map +1 -1
  75. package/dist/introspect/modelfile.d.ts +61 -67
  76. package/dist/introspect/modelfile.js +4 -3
  77. package/dist/introspect/modelfile.js.map +1 -1
  78. package/dist/introspect/numbervalidator.d.ts +35 -6
  79. package/dist/introspect/numbervalidator.js.map +1 -1
  80. package/dist/introspect/participantdeclaration.d.ts +4 -4
  81. package/dist/introspect/participantdeclaration.js +1 -1
  82. package/dist/introspect/participantdeclaration.js.map +1 -1
  83. package/dist/introspect/property.d.ts +26 -20
  84. package/dist/introspect/property.js.map +1 -1
  85. package/dist/introspect/relationshipdeclaration.d.ts +21 -2
  86. package/dist/introspect/relationshipdeclaration.js +1 -1
  87. package/dist/introspect/relationshipdeclaration.js.map +1 -1
  88. package/dist/introspect/scalardeclaration.d.ts +50 -19
  89. package/dist/introspect/scalardeclaration.js.map +1 -1
  90. package/dist/introspect/stringvalidator.d.ts +23 -9
  91. package/dist/introspect/stringvalidator.js.map +1 -1
  92. package/dist/introspect/transactiondeclaration.d.ts +4 -4
  93. package/dist/introspect/transactiondeclaration.js +1 -1
  94. package/dist/introspect/transactiondeclaration.js.map +1 -1
  95. package/dist/introspect/validator.d.ts +9 -9
  96. package/dist/introspect/validator.js.map +1 -1
  97. package/dist/messages/en.json +18 -4
  98. package/dist/messages/pt.json +5 -0
  99. package/dist/metamodelexception.d.ts +4 -5
  100. package/dist/metamodelexception.js.map +1 -1
  101. package/dist/model/identifiable.d.ts +13 -11
  102. package/dist/model/identifiable.js.map +1 -1
  103. package/dist/model/relationship.d.ts +25 -14
  104. package/dist/model/relationship.js +3 -3
  105. package/dist/model/relationship.js.map +1 -1
  106. package/dist/model/resource.d.ts +32 -5
  107. package/dist/model/resource.js.map +1 -1
  108. package/dist/model/resourceid.d.ts +13 -13
  109. package/dist/model/resourceid.js.map +1 -1
  110. package/dist/model/typed.d.ts +18 -20
  111. package/dist/model/typed.js +2 -2
  112. package/dist/model/typed.js.map +1 -1
  113. package/dist/model/validatedresource.d.ts +18 -4
  114. package/dist/model/validatedresource.js.map +1 -1
  115. package/dist/modelloader.d.ts +11 -11
  116. package/dist/modelloader.js +48 -12
  117. package/dist/modelloader.js.map +1 -1
  118. package/dist/modelmanager.d.ts +5 -7
  119. package/dist/modelmanager.js +8 -6
  120. package/dist/modelmanager.js.map +1 -1
  121. package/dist/modelutil.d.ts +26 -33
  122. package/dist/modelutil.js.map +1 -1
  123. package/dist/rootmodel.json +1 -1
  124. package/dist/rootmodelhelper.d.ts +13 -0
  125. package/dist/{rootmodel.js → rootmodelhelper.js} +1 -2
  126. package/dist/rootmodelhelper.js.map +1 -0
  127. package/dist/securityexception.d.ts +4 -5
  128. package/dist/securityexception.js.map +1 -1
  129. package/dist/serializer/instancegenerator.d.ts +9 -9
  130. package/dist/serializer/instancegenerator.js +1 -1
  131. package/dist/serializer/instancegenerator.js.map +1 -1
  132. package/dist/serializer/jsongenerator.d.ts +14 -14
  133. package/dist/serializer/jsongenerator.js.map +1 -1
  134. package/dist/serializer/jsonpopulator.d.ts +44 -13
  135. package/dist/serializer/jsonpopulator.js +29 -22
  136. package/dist/serializer/jsonpopulator.js.map +1 -1
  137. package/dist/serializer/resourcevalidator.d.ts +88 -96
  138. package/dist/serializer/resourcevalidator.js +5 -5
  139. package/dist/serializer/resourcevalidator.js.map +1 -1
  140. package/dist/serializer/validationexception.d.ts +4 -5
  141. package/dist/serializer/validationexception.js.map +1 -1
  142. package/dist/serializer/valuegenerator.d.ts +153 -3
  143. package/dist/serializer/valuegenerator.js.map +1 -1
  144. package/dist/serializer.d.ts +8 -26
  145. package/dist/serializer.js +1 -1
  146. package/dist/serializer.js.map +1 -1
  147. package/dist/typenotfoundexception.d.ts +5 -7
  148. package/dist/typenotfoundexception.js +3 -1
  149. package/dist/typenotfoundexception.js.map +1 -1
  150. package/dist/types.d.ts +17 -0
  151. package/dist/types.js +16 -0
  152. package/dist/types.js.map +1 -0
  153. package/package.json +6 -5
  154. package/types/lib/dcsIndexWrapper.d.ts +16 -0
  155. package/types/lib/dcsconverter.d.ts +12 -0
  156. package/dist/decoratormodel.js.map +0 -1
  157. package/dist/rootmodel.d.ts +0 -5
  158. package/dist/rootmodel.js.map +0 -1
  159. /package/{dist → types/lib}/decoratormodel.d.ts +0 -0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Concerto v4.0.0-alpha.2
2
+ * Concerto v4.0.0-beta.3
3
3
  * Licensed under the Apache License, Version 2.0 (the "License");
4
4
  * you may not use this file except in compliance with the License.
5
5
  * You may obtain a copy of the License at
@@ -5,4 +5,11 @@
5
5
  * @param {number} [utcOffset] - UTC Offset for this execution
6
6
  * @returns {object} if valid, the dayjs object for the current time
7
7
  */
8
- export function setCurrentTime(currentTime?: string, utcOffset?: number): object;
8
+ declare function setCurrentTime(currentTime: any, utcOffset: any): {
9
+ currentTime: any;
10
+ utcOffset: any;
11
+ };
12
+ declare const _default: {
13
+ setCurrentTime: typeof setCurrentTime;
14
+ };
15
+ export = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"datetimeutil.js","sourceRoot":"","sources":["../src/datetimeutil.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,MAAM,GAAG,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACxC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAClB,MAAM,aAAa,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAC5D,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;AAC5B,MAAM,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC,CAAC;AAC9C,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACrB,MAAM,QAAQ,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAClD,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEvB;;;;;;GAMG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CAAC,qBAAqB,CAAC,CAAC;AAC9C,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACrB,MAAM,QAAQ,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;AAClD,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEvB;;;;;;GAMG;AACH,SAAS,cAAc,CAAC,WAAW,EAAE,SAAS;IAC1C,mCAAmC;IACnC,MAAM,iBAAiB,GAAG,OAAO,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,SAAS,EAAE,CAAC;IAC1F,MAAM,cAAc,GAAG,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,GAAG,EAAE,CAAC;IAC5E,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,iBAAiB,WAAW,iCAAiC,CAAC,CAAC;IACnF,CAAC;IACD,MAAM,mBAAmB,GAAG,cAAc,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IACxE,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,+BAA+B,WAAW,sBAAsB,SAAS,GAAG,CAAC,CAAC;IAClG,CAAC;IACD,OAAO;QACH,WAAW,EAAE,mBAAmB;QAChC,SAAS,EAAE,iBAAiB;KAC/B,CAAC;AACN,CAAC;AAED,iBAAS,EAAE,cAAc,EAAE,CAAC"}
@@ -3,10 +3,20 @@
3
3
  * @param {object} dcsJson the DCS JSON as parsed object
4
4
  * @returns {string} the DCS YAML string
5
5
  */
6
- export function jsonToYaml(dcsJson: object): string;
6
+ declare function jsonToYaml(dcsJson: any): any;
7
7
  /**
8
8
  * converts DCS YAML string to JSON format
9
9
  * @param {string} yamlString the YAML string to convert
10
10
  * @returns {object} the DCS JSON
11
11
  */
12
- export function yamlToJson(yamlString: string): object;
12
+ declare function yamlToJson(yamlString: any): {
13
+ $class: any;
14
+ name: any;
15
+ version: any;
16
+ commands: any;
17
+ };
18
+ declare const _default: {
19
+ jsonToYaml: typeof jsonToYaml;
20
+ yamlToJson: typeof yamlToJson;
21
+ };
22
+ export = _default;
@@ -1 +1 @@
1
- {"version":3,"file":"dcsconverter.js","sourceRoot":"","sources":["../src/dcsconverter.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,SAAS,GAAI,OAAO,CAAC,aAAa,CAAC,CAAC;AAC1C,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,SAAS,YAAY,CAAC,MAAM;IACxB,MAAM,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvC,MAAM,SAAS,GAAG,EAAE,CAAC;IACrB,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,IAAI,GAAG,KAAK,QAAQ,EAAE,CAAC;YACnB,SAAS,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;IACL,CAAC,CAAC,CAAC;IACH,OAAO,SAAS,CAAC;AACrB,CAAC;AAGD;;;;;;;;;GASG;AACH,SAAS,eAAe,CAAC,QAAQ;IAC7B,MAAM,cAAc,GAAG;QACnB,CAAC,GAAG,kBAAkB,kBAAkB,CAAC,EAAE,QAAQ;QACnD,CAAC,GAAG,kBAAkB,kBAAkB,CAAC,EAAE,QAAQ;QACnD,CAAC,GAAG,kBAAkB,mBAAmB,CAAC,EAAE,SAAS;KACxD,CAAC;IACF,IAAI,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,CAAC;QAC5C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CAAC,MAAM;QACpB,MAAM,EAAE;YACJ,MAAM,EAAE,SAAS,CAAC,qBAAqB,CAAC,YAAY,EAAE,eAAe,CAAC;YACtE,GAAI,OAAO,CAAC,MAAM;SACrB;QACD,SAAS,EAAE,gBAAgB,CAAC,OAAO,CAAC,SAAS,CAAC;KACjD,CAAC;AACN,CAAC;AAGD;;;;GAIG;AACH,SAAS,UAAU,CAAC,UAAU;IAC1B,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,CAAC;IAClE,MAAM,YAAY,GAAG,sCAAsC,GAAG,UAAU,CAAC,wBAAwB,CAAC;IAClG,MAAM,OAAO,GAAG;QACZ,MAAM,EAAE,SAAS,CAAC,qBAAqB,CAAC,YAAY,EAAE,qBAAqB,CAAC;QAC5E,IAAI,EAAE,UAAU,CAAC,IAAI;QACrB,OAAO,EAAE,UAAU,CAAC,OAAO;QAC3B,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,eAAe,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;KACzF,CAAC;IAEF,OAAO,OAAO,CAAC;AACnB,CAAC;AAGD,iBAAS,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- export = DecoratorExtractor;
2
1
  /**
3
2
  * Utility functions to work with
4
3
  * [DecoratorCommandSet](https://models.accordproject.org/concerto/decorators.cto)
@@ -6,6 +5,13 @@ export = DecoratorExtractor;
6
5
  * @private
7
6
  */
8
7
  declare class DecoratorExtractor {
8
+ extractionDictionary: any;
9
+ removeDecoratorsFromModel: any;
10
+ locale: any;
11
+ dcs_version: any;
12
+ sourceModelAst: any;
13
+ updatedModelAst: any;
14
+ action: any;
9
15
  /**
10
16
  * The action to be performed to extract all, only vocab or only non-vocab decorators
11
17
  */
@@ -24,21 +30,14 @@ declare class DecoratorExtractor {
24
30
  * @param {int} [action=DecoratorExtractor.Action.EXTRACT_ALL] - the action to be performed
25
31
  * @param {object} [options] - decorator extractor options
26
32
  */
27
- constructor(removeDecoratorsFromModel: boolean, locale: string, dcs_version: string, sourceModelAst: Object, action?: int, options?: object);
28
- extractionDictionary: {};
29
- removeDecoratorsFromModel: boolean;
30
- locale: string;
31
- dcs_version: string;
32
- sourceModelAst: Object;
33
- updatedModelAst: Object;
34
- action: any;
33
+ constructor(removeDecoratorsFromModel: any, locale: any, dcs_version: any, sourceModelAst: any, action: number | undefined, options: any);
35
34
  /**
36
35
  * Returns if the decorator is vocab or not
37
36
  * @param {string} decoractorName - the name of decorator
38
37
  * @returns {boolean} - returns true if the decorator is a vocabulary decorator else false
39
38
  * @private
40
39
  */
41
- private isVocabDecorator;
40
+ isVocabDecorator(decoractorName: any): any;
42
41
  /**
43
42
  * Adds a key-value pair to a dictionary (object) if the key exists,
44
43
  * or creates a new key with the provided value.
@@ -51,7 +50,7 @@ declare class DecoratorExtractor {
51
50
  * @param {string} options.mapElement - Target map element
52
51
  * @private
53
52
  */
54
- private constructDCSDictionary;
53
+ constructDCSDictionary(key: any, value: any, options: any): void;
55
54
  /**
56
55
  * Transforms the collected decorators into proper decorator command sets
57
56
  * @param {Array<Object>} dcsObjects - the collection of collected decorators
@@ -60,7 +59,7 @@ declare class DecoratorExtractor {
60
59
  * @returns {Array<Object>} - the collection of decorator command sets
61
60
  * @private
62
61
  */
63
- private transformNonVocabularyDecorators;
62
+ transformNonVocabularyDecorators(dcsObjects: any, namespace: any, decoratorData: any): any;
64
63
  /**
65
64
  * Transforms the collected vocabularies into proper vocabulary command sets
66
65
  * @param {Array<Object>} vocabObject - the collection of collected vocabularies
@@ -69,7 +68,7 @@ declare class DecoratorExtractor {
69
68
  * @returns {Array<Object>} - the collection of vocabularies command sets
70
69
  * @private
71
70
  */
72
- private transformVocabularyDecorators;
71
+ transformVocabularyDecorators(vocabObject: any, namespace: any, vocabData: any): any;
73
72
  /**
74
73
  * Constructs Target object for a given model
75
74
  * @param {string} namespace - the current namespace
@@ -77,7 +76,7 @@ declare class DecoratorExtractor {
77
76
  * @returns {Object} - the target object
78
77
  * @private
79
78
  */
80
- private constructTarget;
79
+ constructTarget(namespace: any, obj: any): any;
81
80
  /**
82
81
  * Parses the dict data into an array of decorator jsons
83
82
  * @param {Array<Object>} dcsObjects - the array of collected dcs objects
@@ -87,7 +86,7 @@ declare class DecoratorExtractor {
87
86
  * @returns {Array<Object>} - the array of collected dcs objects with the current dcs
88
87
  * @private
89
88
  */
90
- private parseNonVocabularyDecorators;
89
+ parseNonVocabularyDecorators(dcsObjects: any, dcs: any, DCS_VERSION: any, target: any): any;
91
90
  /**
92
91
  * @param {Object} vocabObject - the collection of collected vocabularies
93
92
  * @param {Object} vocabTarget - the declaration object
@@ -95,21 +94,24 @@ declare class DecoratorExtractor {
95
94
  * @returns {Object} - the collection of collected vocabularies with current dcs
96
95
  * @private
97
96
  */
98
- private parseVocabularies;
97
+ parseVocabularies(vocabObject: any, vocabTarget: any, dcs: any): any;
99
98
  /**
100
99
  * parses the extracted decorators and generates arrays of decorator command set and vocabularies
101
100
  *
102
101
  * @returns {Object} - constructed DCS Dict and processed models ast
103
102
  * @private
104
103
  */
105
- private transformDecoratorsAndVocabularies;
104
+ transformDecoratorsAndVocabularies(): {
105
+ decoratorCommandSet: never[];
106
+ vocabularies: never[];
107
+ };
106
108
  /**
107
109
  * Filter vocab or non-vocab decorators
108
110
  * @param {Object} decorators - the collection of decorators
109
111
  * @returns {Object} - the collection of filtered decorators
110
112
  * @private
111
113
  */
112
- private filterOutDecorators;
114
+ filterOutDecorators(decorators: any): any;
113
115
  /**
114
116
  * Process the map declarations to extract the decorators.
115
117
  *
@@ -118,7 +120,7 @@ declare class DecoratorExtractor {
118
120
  * @returns {Object} - processed map declarations ast
119
121
  * @private
120
122
  */
121
- private processMapDeclaration;
123
+ processMapDeclaration(declaration: any, namespace: any): any;
122
124
  /**
123
125
  * Process the properties to extract the decorators.
124
126
  *
@@ -128,7 +130,7 @@ declare class DecoratorExtractor {
128
130
  * @returns {Object} - processed properties ast
129
131
  * @private
130
132
  */
131
- private processProperties;
133
+ processProperties(sourceProperties: any, declarationName: any, namespace: any): any;
132
134
  /**
133
135
  * Process the declarations to extract the decorators.
134
136
  *
@@ -137,13 +139,13 @@ declare class DecoratorExtractor {
137
139
  * @returns {Object} - processed declarations ast
138
140
  * @private
139
141
  */
140
- private processDeclarations;
142
+ processDeclarations(sourceDecl: any, namespace: any): any;
141
143
  /**
142
144
  * Process the models to extract the decorators.
143
145
  *
144
146
  * @private
145
147
  */
146
- private processModels;
148
+ processModels(): void;
147
149
  /**
148
150
  * Collects the decorators and vocabularies and updates the modelManager depending
149
151
  * on the options.
@@ -151,5 +153,10 @@ declare class DecoratorExtractor {
151
153
  * @returns {Object} - constructed DCS Dict and processed models ast
152
154
  * @private
153
155
  */
154
- private extract;
156
+ extract(): {
157
+ updatedModelManager: any;
158
+ decoratorCommandSet: never[];
159
+ vocabularies: never[];
160
+ };
155
161
  }
162
+ export = DecoratorExtractor;
@@ -1 +1 @@
1
- {"version":3,"file":"decoratorextractor.js","sourceRoot":"","sources":["../src/decoratorextractor.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;AAEb,MAAM,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;AAC/C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;AACzC,MAAM,EAAE,kBAAkB,EAAE,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;AAE5E;;;;;GAKG;AACH,MAAM,kBAAkB;IAUpB;;;;;;;;;OASG;IACH,YAAY,yBAAyB,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,GAAG,kBAAkB,CAAC,MAAM,CAAC,WAAW,EAAE,OAAO;QAC/H,IAAI,CAAC,oBAAoB,GAAG,EAAE,CAAC;QAC/B,IAAI,CAAC,yBAAyB,GAA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AC,CAAC;QAClD,MAAM,uBAAuB,GAAG,IAAI,CAAC,kCAAkC,EAAE,CAAC;QAC1E,OAAO;YACH,mBAAmB;YACnB,mBAAmB,EAAE,uBAAuB,CAAC,mBAAmB;YAChE,YAAY,EAAE,uBAAuB,CAAC,YAAY;SACrD,CAAC;IACN,CAAC;;AAtcD;;GAEG;AACI,yBAAM,GAAG;IACZ,WAAW,EAAE,CAAC;IACd,aAAa,EAAE,CAAC;IAChB,iBAAiB,EAAE,CAAC;CACvB,CAAC;AAicN,iBAAS,kBAAkB,CAAC"}
@@ -1,4 +1,3 @@
1
- export = DecoratorManager;
2
1
  /**
3
2
  * Utility functions to work with
4
3
  * [DecoratorCommandSet](https://models.accordproject.org/concerto/decorators.cto)
@@ -18,14 +17,14 @@ declare class DecoratorManager {
18
17
  * @returns {ModelManager} the model manager created for validation
19
18
  * @throws {Error} throws an error if the decoratorCommandSet is invalid
20
19
  */
21
- static validate(decoratorCommandSet: any, modelFiles?: ModelFile[]): ModelManager;
20
+ static validate(decoratorCommandSet: any, modelFiles?: any): any;
22
21
  /**
23
22
  * Rewrites the $class property on decoratorCommandSet classes.
24
23
  * @param {*} decoratorCommandSet the DecoratorCommandSet object
25
24
  * @param {string} version the DCS version upgrade target
26
25
  * @returns {object} the migrated DecoratorCommandSet object
27
26
  */
28
- static migrateTo(decoratorCommandSet: any, version: string): object;
27
+ static migrateTo(decoratorCommandSet: any, version: any): any;
29
28
  /**
30
29
  * Checks if the supplied decoratorCommandSet can be migrated.
31
30
  * Migrations should only take place across minor versions of the same major version.
@@ -41,18 +40,24 @@ declare class DecoratorManager {
41
40
  * @param {DcsIndexWrapper} dcsWithIndex the command to add
42
41
  * @private
43
42
  */
44
- private static addDcsWithIndexToMap;
43
+ static addDcsWithIndexToMap(targetMap: any, targetKey: any, dcsWithIndex: any): void;
45
44
  /**
46
45
  * Creates five different maps to index decorator command sets by target type and returns them
47
46
  * @param {*} decoratorCommandSet the DecoratorCommandSet object
48
47
  * @returns {Object} object with all the decorator command maps based on the target
49
48
  * @private
50
49
  */
51
- private static getDecoratorMaps;
50
+ static getDecoratorMaps(decoratorCommandSet: any): {
51
+ namespaceCommandsMap: Map<any, any>;
52
+ declarationCommandsMap: Map<any, any>;
53
+ propertyCommandsMap: Map<any, any>;
54
+ mapElementCommandsMap: Map<any, any>;
55
+ typeCommandsMap: Map<any, any>;
56
+ };
52
57
  /**
53
58
  * Migrate or validate the DecoratorCommandSet object if the options are set as true
54
59
  * @param {ModelManager} modelManager the input model manager
55
- * @param {*} decoratorCommandSet the DecoratorCommandSet object
60
+ * @param {*} decoratorCommandSet a DecoratorCommandSet object, or an array of DecoratorCommandSet objects
56
61
  * @param {boolean} shouldMigrate migrate the decoratorCommandSet $class to match the dcs model version
57
62
  * @param {boolean} shouldValidate validate that decorator command set is valid
58
63
  * with respect to to decorator command set model
@@ -60,7 +65,7 @@ declare class DecoratorManager {
60
65
  * the validate option must also be true
61
66
  * @private
62
67
  */
63
- private static migrateAndValidate;
68
+ static migrateAndValidate(modelManager: any, decoratorCommandSet: any, shouldMigrate: any, shouldValidate: any, shouldValidateCommands: any): void;
64
69
  /**
65
70
  * Adds decorator commands with index to the array passed
66
71
  * @param {DcsIndexWrapper[]} array the array to add the command to
@@ -68,11 +73,11 @@ declare class DecoratorManager {
68
73
  * @param {key} key the target key to add the command to
69
74
  * @private
70
75
  */
71
- private static pushMapValues;
76
+ static pushMapValues(array: any, map: any, key: any): void;
72
77
  /**
73
78
  * Applies all the decorator commands from the DecoratorCommandSet to the ModelManager
74
79
  * @param {ModelManager} modelManager the input model manager
75
- * @param {*} decoratorCommandSet the DecoratorCommandSet object
80
+ * @param {*} decoratorCommandSet the DecoratorCommandSet object, or an array of DecoratorCommandSet objects
76
81
  * @param {object} [options] - decorator models options
77
82
  * @param {boolean} [options.validate] - validate that decorator command set is valid
78
83
  * with respect to to decorator command set model
@@ -85,15 +90,7 @@ declare class DecoratorManager {
85
90
  * @param {boolean} [options.disableMetamodelValidation] - flag to disable metamodel validation, only use if you are sure that the models and decorators are already validated
86
91
  * @returns {ModelManager} a new model manager with the decorations applied
87
92
  */
88
- static decorateModels(modelManager: ModelManager, decoratorCommandSet: any, options?: {
89
- validate?: boolean | undefined;
90
- validateCommands?: boolean | undefined;
91
- migrate?: boolean | undefined;
92
- defaultNamespace?: boolean | undefined;
93
- skipValidationAndResolution?: boolean | undefined;
94
- disableMetamodelResolution?: boolean | undefined;
95
- disableMetamodelValidation?: boolean | undefined;
96
- }): ModelManager;
93
+ static decorateModels(modelManager: any, decoratorCommandSet: any, options: any): any;
97
94
  /**
98
95
  * @typedef ExtractDecoratorsResult
99
96
  * @type {object}
@@ -109,22 +106,10 @@ declare class DecoratorManager {
109
106
  * @param {string} options.locale - locale for extracted vocabulary set
110
107
  * @returns {ExtractDecoratorsResult} - a new model manager with the decorations removed and a list of extracted decorator jsons and vocab yamls
111
108
  */
112
- static extractDecorators(modelManager: ModelManager, options: {
113
- removeDecoratorsFromModel: boolean;
114
- locale: string;
115
- }): {
116
- /**
117
- * - A model manager containing models stripped without decorators
118
- */
119
- modelManager: ModelManager;
120
- /**
121
- * - Stripped out decorators, formed into decorator command sets
122
- */
109
+ static extractDecorators(modelManager: any, options: any): {
110
+ modelManager: any;
123
111
  decoratorCommandSet: any;
124
- /**
125
- * - Stripped out vocabularies, formed into vocabulary files
126
- */
127
- vocabularies: string[];
112
+ vocabularies: any;
128
113
  };
129
114
  /**
130
115
  * Extracts all the vocab decorator commands from all the models in modelManager
@@ -134,22 +119,9 @@ declare class DecoratorManager {
134
119
  * @param {string} options.locale - locale for extracted vocabulary set
135
120
  * @returns {ExtractDecoratorsResult} - a new model manager with/without the decorators and vocab yamls
136
121
  */
137
- static extractVocabularies(modelManager: ModelManager, options: {
138
- removeDecoratorsFromModel: boolean;
139
- locale: string;
140
- }): {
141
- /**
142
- * - A model manager containing models stripped without decorators
143
- */
144
- modelManager: ModelManager;
145
- /**
146
- * - Stripped out decorators, formed into decorator command sets
147
- */
148
- decoratorCommandSet: any;
149
- /**
150
- * - Stripped out vocabularies, formed into vocabulary files
151
- */
152
- vocabularies: string[];
122
+ static extractVocabularies(modelManager: any, options: any): {
123
+ modelManager: any;
124
+ vocabularies: any;
153
125
  };
154
126
  /**
155
127
  * Extracts all the non-vocab decorator commands from all the models in modelManager
@@ -159,29 +131,16 @@ declare class DecoratorManager {
159
131
  * @param {string} options.locale - locale for extracted vocabulary set
160
132
  * @returns {ExtractDecoratorsResult} - a new model manager with/without the decorators and a list of extracted decorator jsons
161
133
  */
162
- static extractNonVocabDecorators(modelManager: ModelManager, options: {
163
- removeDecoratorsFromModel: boolean;
164
- locale: string;
165
- }): {
166
- /**
167
- * - A model manager containing models stripped without decorators
168
- */
169
- modelManager: ModelManager;
170
- /**
171
- * - Stripped out decorators, formed into decorator command sets
172
- */
134
+ static extractNonVocabDecorators(modelManager: any, options: any): {
135
+ modelManager: any;
173
136
  decoratorCommandSet: any;
174
- /**
175
- * - Stripped out vocabularies, formed into vocabulary files
176
- */
177
- vocabularies: string[];
178
137
  };
179
138
  /**
180
139
  * Throws an error if the decoractor command is invalid
181
140
  * @param {ModelManager} validationModelManager the validation model manager
182
141
  * @param {*} command the decorator command
183
142
  */
184
- static validateCommand(validationModelManager: ModelManager, command: any): void;
143
+ static validateCommand(validationModelManager: any, command: any): void;
185
144
  /**
186
145
  * Applies a new decorator to the Map element
187
146
  * @private
@@ -191,7 +150,7 @@ declare class DecoratorManager {
191
150
  * @param {string} type the command type
192
151
  * @param {*} newDecorator the decorator to add
193
152
  */
194
- private static applyDecoratorForMapElement;
153
+ static applyDecoratorForMapElement(element: any, target: any, declaration: any, type: any, newDecorator: any): void;
195
154
  /**
196
155
  * Compares two arrays. If the first argument is falsy
197
156
  * the function returns true.
@@ -200,21 +159,21 @@ declare class DecoratorManager {
200
159
  * @returns {Boolean} true if the test is falsy or the intersection of
201
160
  * the test and values arrays is not empty (i.e. they have values in common)
202
161
  */
203
- static falsyOrEqual(test: string | string[] | null, values: string[]): boolean;
162
+ static falsyOrEqual(test: any, values: any): any;
204
163
  /**
205
164
  * Applies a decorator to a decorated model element.
206
165
  * @param {*} decorated the type to apply the decorator to
207
166
  * @param {string} type the command type
208
167
  * @param {*} newDecorator the decorator to add
209
168
  */
210
- static applyDecorator(decorated: any, type: string, newDecorator: any): void;
169
+ static applyDecorator(decorated: any, type: any, newDecorator: any): void;
211
170
  /**
212
171
  * Checks for duplicate decorators added to a decorated model element.
213
172
  * @param {*} decoratedAst ast of the property or the declaration to apply the decorator to
214
173
  * @throws {IllegalModelException} if the decoratedAst has duplicate decorators
215
174
  * @private
216
175
  */
217
- private static checkForDuplicateDecorators;
176
+ static checkForDuplicateDecorators(decoratedAst: any): void;
218
177
  /**
219
178
  * Executes a Command against a Model Namespace, adding
220
179
  * decorators to the Namespace.
@@ -222,7 +181,7 @@ declare class DecoratorManager {
222
181
  * @param {*} model the model
223
182
  * @param {*} command the Command object from the dcs
224
183
  */
225
- private static executeNamespaceCommand;
184
+ static executeNamespaceCommand(model: any, command: any): void;
226
185
  /**
227
186
  * Executes a Command against a Declaration, adding
228
187
  * decorators to the Declaration, or its properties, as required.
@@ -232,7 +191,7 @@ declare class DecoratorManager {
232
191
  * @param {*} [property] the property of a declaration, optional, to be passed if the command is for a property
233
192
  * @param {object} [options] - execute command options
234
193
  */
235
- static executeCommand(namespace: string, declaration: any, command: any, property?: any, options?: object): void;
194
+ static executeCommand(namespace: any, declaration: any, command: any, property?: any, options?: any): void;
236
195
  /**
237
196
  * Executes a Command against a Property, adding
238
197
  * decorators to the Property as required.
@@ -250,7 +209,7 @@ declare class DecoratorManager {
250
209
  * @param {*} decorator the decorator to add
251
210
  * @param {*} target the target object for the decorator
252
211
  */
253
- private static checkForNamespaceTargetAndApplyDecorator;
212
+ static checkForNamespaceTargetAndApplyDecorator(declaration: any, type: any, decorator: any, target: any): void;
254
213
  /**
255
214
  * Legacy method. Kept for compatibility. Returns true.
256
215
  * @returns {Boolean} true
@@ -262,14 +221,13 @@ declare class DecoratorManager {
262
221
  * @param {object} jsonInput the DCS JSON as parsed object
263
222
  * @return {string} the corresponding YAML string
264
223
  */
265
- static jsonToYaml(jsonInput: object): string;
224
+ static jsonToYaml(jsonInput: any): any;
266
225
  /**
267
226
  * converts DCS YAML string into JSON object
268
227
  * validates the output DCS JSON against the DCS model
269
228
  * @param {string} yamlInput the DCS JSON as parsed object
270
229
  * @return {object} the corresponding JSON object
271
230
  */
272
- static yamlToJson(yamlInput: string): object;
231
+ static yamlToJson(yamlInput: any): any;
273
232
  }
274
- import ModelFile = require("./introspect/modelfile");
275
- import ModelManager = require("./modelmanager");
233
+ export = DecoratorManager;
@@ -279,7 +279,7 @@ class DecoratorManager {
279
279
  /**
280
280
  * Migrate or validate the DecoratorCommandSet object if the options are set as true
281
281
  * @param {ModelManager} modelManager the input model manager
282
- * @param {*} decoratorCommandSet the DecoratorCommandSet object
282
+ * @param {*} decoratorCommandSet a DecoratorCommandSet object, or an array of DecoratorCommandSet objects
283
283
  * @param {boolean} shouldMigrate migrate the decoratorCommandSet $class to match the dcs model version
284
284
  * @param {boolean} shouldValidate validate that decorator command set is valid
285
285
  * with respect to to decorator command set model
@@ -288,8 +288,13 @@ class DecoratorManager {
288
288
  * @private
289
289
  */
290
290
  static migrateAndValidate(modelManager, decoratorCommandSet, shouldMigrate, shouldValidate, shouldValidateCommands) {
291
- if (shouldMigrate && this.canMigrate(decoratorCommandSet, DCS_VERSION)) {
292
- decoratorCommandSet = this.migrateTo(decoratorCommandSet, DCS_VERSION);
291
+ const decoratorCommandSets = Array.isArray(decoratorCommandSet) ? decoratorCommandSet : [decoratorCommandSet];
292
+ if (shouldMigrate) {
293
+ decoratorCommandSets.forEach((commandSet, index) => {
294
+ if (this.canMigrate(commandSet, DCS_VERSION)) {
295
+ decoratorCommandSets[index] = this.migrateTo(commandSet, DCS_VERSION);
296
+ }
297
+ });
293
298
  }
294
299
  if (shouldValidate) {
295
300
  const validationModelManager = new ModelManager({
@@ -300,12 +305,14 @@ class DecoratorManager {
300
305
  validationModelManager.addCTOModel(DCS_MODEL, 'decoratorcommands@0.4.0.cto');
301
306
  const factory = new Factory(validationModelManager);
302
307
  const serializer = new Serializer(factory, validationModelManager);
303
- serializer.fromJSON(decoratorCommandSet);
304
- if (shouldValidateCommands) {
305
- decoratorCommandSet.commands.forEach((command) => {
306
- DecoratorManager.validateCommand(validationModelManager, command);
307
- });
308
- }
308
+ decoratorCommandSets.forEach((commandSet) => {
309
+ serializer.fromJSON(commandSet);
310
+ if (shouldValidateCommands) {
311
+ commandSet.commands.forEach((command) => {
312
+ DecoratorManager.validateCommand(validationModelManager, command);
313
+ });
314
+ }
315
+ });
309
316
  }
310
317
  }
311
318
  /**
@@ -323,7 +330,7 @@ class DecoratorManager {
323
330
  /**
324
331
  * Applies all the decorator commands from the DecoratorCommandSet to the ModelManager
325
332
  * @param {ModelManager} modelManager the input model manager
326
- * @param {*} decoratorCommandSet the DecoratorCommandSet object
333
+ * @param {*} decoratorCommandSet the DecoratorCommandSet object, or an array of DecoratorCommandSet objects
327
334
  * @param {object} [options] - decorator models options
328
335
  * @param {boolean} [options.validate] - validate that decorator command set is valid
329
336
  * with respect to to decorator command set model
@@ -337,17 +344,27 @@ class DecoratorManager {
337
344
  * @returns {ModelManager} a new model manager with the decorations applied
338
345
  */
339
346
  static decorateModels(modelManager, decoratorCommandSet, options) {
347
+ if (!decoratorCommandSet || decoratorCommandSet?.length === 0) {
348
+ return modelManager;
349
+ }
350
+ const decoratorCommandSets = Array.isArray(decoratorCommandSet)
351
+ ? decoratorCommandSet
352
+ : [decoratorCommandSet];
340
353
  if (options?.skipValidationAndResolution) {
341
- if (options?.disableMetamodelResolution === false || !options?.disableMetamodelValidation === false) {
354
+ if (options?.disableMetamodelResolution === false || options?.disableMetamodelValidation === false) {
342
355
  throw new Error('skipValidationAndResolution cannot be used with disableMetamodelResolution or disableMetamodelValidation options as false');
343
356
  }
344
357
  options.disableMetamodelResolution = true;
345
358
  options.disableMetamodelValidation = true;
346
359
  }
347
- this.migrateAndValidate(modelManager, decoratorCommandSet, options?.migrate, options?.validate, options?.validateCommands);
360
+ this.migrateAndValidate(modelManager, decoratorCommandSets, options?.migrate, options?.validate, options?.validateCommands);
361
+ // Flatten commands across all command sets so decorators can be applied in a single AST scan.
362
+ const combinedDecoratorCommandSet = {
363
+ commands: decoratorCommandSets.flatMap(commandSet => commandSet.commands)
364
+ };
348
365
  // we create synthetic imports for all decorator declarations
349
366
  // along with any of their type reference arguments
350
- const decoratorImports = decoratorCommandSet.commands.flatMap(command => {
367
+ const decoratorImports = combinedDecoratorCommandSet.commands.flatMap(command => {
351
368
  return [{
352
369
  $class: `${MetaModelNamespace}.ImportType`,
353
370
  name: command.decorator.name,
@@ -362,7 +379,7 @@ class DecoratorManager {
362
379
  })
363
380
  : []);
364
381
  }).filter(i => i.namespace);
365
- const { namespaceCommandsMap, declarationCommandsMap, propertyCommandsMap, mapElementCommandsMap, typeCommandsMap } = this.getDecoratorMaps(decoratorCommandSet);
382
+ const { namespaceCommandsMap, declarationCommandsMap, propertyCommandsMap, mapElementCommandsMap, typeCommandsMap } = this.getDecoratorMaps(combinedDecoratorCommandSet);
366
383
  const ast = options?.disableMetamodelResolution ? modelManager.getAst(false, true) : modelManager.getAst(true, true);
367
384
  const decoratedAst = rfdc(ast);
368
385
  decoratedAst.models.forEach((model) => {