@accordproject/template-engine 2.0.3 → 2.2.0

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 (127) hide show
  1. package/dist/index.d.ts +123 -2
  2. package/dist/index.js +1437 -21
  3. package/dist/index.js.map +1 -1
  4. package/dist/index.mjs +1414 -0
  5. package/dist/index.mjs.map +1 -0
  6. package/dist/runtime.tgz +0 -0
  7. package/package.json +7 -3
  8. package/dist/Common.d.ts +0 -20
  9. package/dist/Common.js +0 -55
  10. package/dist/Common.js.map +0 -1
  11. package/dist/TemplateMarkInterpreter.d.ts +0 -34
  12. package/dist/TemplateMarkInterpreter.js +0 -401
  13. package/dist/TemplateMarkInterpreter.js.map +0 -1
  14. package/dist/TemplateMarkToJavaScriptCompiler.d.ts +0 -19
  15. package/dist/TemplateMarkToJavaScriptCompiler.js +0 -96
  16. package/dist/TemplateMarkToJavaScriptCompiler.js.map +0 -1
  17. package/dist/TemplateMarkToTypeScriptCompiler.d.ts +0 -77
  18. package/dist/TemplateMarkToTypeScriptCompiler.js +0 -311
  19. package/dist/TemplateMarkToTypeScriptCompiler.js.map +0 -1
  20. package/dist/TypeScriptCompilationContext.d.ts +0 -15
  21. package/dist/TypeScriptCompilationContext.js +0 -57
  22. package/dist/TypeScriptCompilationContext.js.map +0 -1
  23. package/dist/TypeScriptRuntime.d.ts +0 -14
  24. package/dist/TypeScriptRuntime.js +0 -79
  25. package/dist/TypeScriptRuntime.js.map +0 -1
  26. package/dist/TypeScriptToJavaScriptCompiler.d.ts +0 -14
  27. package/dist/TypeScriptToJavaScriptCompiler.js +0 -59
  28. package/dist/TypeScriptToJavaScriptCompiler.js.map +0 -1
  29. package/dist/compilers/Clause.d.ts +0 -14
  30. package/dist/compilers/Clause.js +0 -43
  31. package/dist/compilers/Clause.js.map +0 -1
  32. package/dist/compilers/Common.d.ts +0 -66
  33. package/dist/compilers/Common.js +0 -180
  34. package/dist/compilers/Common.js.map +0 -1
  35. package/dist/compilers/Conditional.d.ts +0 -12
  36. package/dist/compilers/Conditional.js +0 -36
  37. package/dist/compilers/Conditional.js.map +0 -1
  38. package/dist/compilers/ContractDefinition.d.ts +0 -8
  39. package/dist/compilers/ContractDefinition.js +0 -33
  40. package/dist/compilers/ContractDefinition.js.map +0 -1
  41. package/dist/compilers/EnumVariable.d.ts +0 -8
  42. package/dist/compilers/EnumVariable.js +0 -28
  43. package/dist/compilers/EnumVariable.js.map +0 -1
  44. package/dist/compilers/FormattedVariable.d.ts +0 -8
  45. package/dist/compilers/FormattedVariable.js +0 -29
  46. package/dist/compilers/FormattedVariable.js.map +0 -1
  47. package/dist/compilers/Formula.d.ts +0 -8
  48. package/dist/compilers/Formula.js +0 -24
  49. package/dist/compilers/Formula.js.map +0 -1
  50. package/dist/compilers/Join.d.ts +0 -8
  51. package/dist/compilers/Join.js +0 -23
  52. package/dist/compilers/Join.js.map +0 -1
  53. package/dist/compilers/ListBlock.d.ts +0 -11
  54. package/dist/compilers/ListBlock.js +0 -39
  55. package/dist/compilers/ListBlock.js.map +0 -1
  56. package/dist/compilers/NodeCompilers.d.ts +0 -7
  57. package/dist/compilers/NodeCompilers.js +0 -89
  58. package/dist/compilers/NodeCompilers.js.map +0 -1
  59. package/dist/compilers/Optional.d.ts +0 -11
  60. package/dist/compilers/Optional.js +0 -48
  61. package/dist/compilers/Optional.js.map +0 -1
  62. package/dist/compilers/Variable.d.ts +0 -8
  63. package/dist/compilers/Variable.js +0 -28
  64. package/dist/compilers/Variable.js.map +0 -1
  65. package/dist/compilers/With.d.ts +0 -10
  66. package/dist/compilers/With.js +0 -23
  67. package/dist/compilers/With.js.map +0 -1
  68. package/dist/drafting/Boolean/index.d.ts +0 -6
  69. package/dist/drafting/Boolean/index.js +0 -30
  70. package/dist/drafting/Boolean/index.js.map +0 -1
  71. package/dist/drafting/DateTime/index.d.ts +0 -7
  72. package/dist/drafting/DateTime/index.js +0 -33
  73. package/dist/drafting/DateTime/index.js.map +0 -1
  74. package/dist/drafting/Double/format.d.ts +0 -13
  75. package/dist/drafting/Double/format.js +0 -55
  76. package/dist/drafting/Double/format.js.map +0 -1
  77. package/dist/drafting/Double/index.d.ts +0 -7
  78. package/dist/drafting/Double/index.js +0 -33
  79. package/dist/drafting/Double/index.js.map +0 -1
  80. package/dist/drafting/Integer/format.d.ts +0 -13
  81. package/dist/drafting/Integer/format.js +0 -45
  82. package/dist/drafting/Integer/format.js.map +0 -1
  83. package/dist/drafting/Integer/index.d.ts +0 -7
  84. package/dist/drafting/Integer/index.js +0 -33
  85. package/dist/drafting/Integer/index.js.map +0 -1
  86. package/dist/drafting/Long/index.d.ts +0 -7
  87. package/dist/drafting/Long/index.js +0 -33
  88. package/dist/drafting/Long/index.js.map +0 -1
  89. package/dist/drafting/MonetaryAmount/currencycode.d.ts +0 -35
  90. package/dist/drafting/MonetaryAmount/currencycode.js +0 -53
  91. package/dist/drafting/MonetaryAmount/currencycode.js.map +0 -1
  92. package/dist/drafting/MonetaryAmount/index.d.ts +0 -12
  93. package/dist/drafting/MonetaryAmount/index.js +0 -67
  94. package/dist/drafting/MonetaryAmount/index.js.map +0 -1
  95. package/dist/drafting/String/index.d.ts +0 -6
  96. package/dist/drafting/String/index.js +0 -25
  97. package/dist/drafting/String/index.js.map +0 -1
  98. package/dist/drafting/index.d.ts +0 -1
  99. package/dist/drafting/index.js +0 -40
  100. package/dist/drafting/index.js.map +0 -1
  101. package/dist/model-gen/concerto.d.ts +0 -13
  102. package/dist/model-gen/concerto.js +0 -5
  103. package/dist/model-gen/concerto.js.map +0 -1
  104. package/dist/model-gen/concerto.metamodel@1.0.0.d.ts +0 -196
  105. package/dist/model-gen/concerto.metamodel@1.0.0.js +0 -5
  106. package/dist/model-gen/concerto.metamodel@1.0.0.js.map +0 -1
  107. package/dist/model-gen/concerto@1.0.0.d.ts +0 -19
  108. package/dist/model-gen/concerto@1.0.0.js +0 -5
  109. package/dist/model-gen/concerto@1.0.0.js.map +0 -1
  110. package/dist/model-gen/org.accordproject.ciceromark@0.6.0.d.ts +0 -49
  111. package/dist/model-gen/org.accordproject.ciceromark@0.6.0.js +0 -5
  112. package/dist/model-gen/org.accordproject.ciceromark@0.6.0.js.map +0 -1
  113. package/dist/model-gen/org.accordproject.commonmark@0.5.0.d.ts +0 -89
  114. package/dist/model-gen/org.accordproject.commonmark@0.5.0.js +0 -5
  115. package/dist/model-gen/org.accordproject.commonmark@0.5.0.js.map +0 -1
  116. package/dist/model-gen/org.accordproject.templatemark@0.5.0.d.ts +0 -76
  117. package/dist/model-gen/org.accordproject.templatemark@0.5.0.js +0 -12
  118. package/dist/model-gen/org.accordproject.templatemark@0.5.0.js.map +0 -1
  119. package/dist/runtime/declarations.d.ts +0 -2
  120. package/dist/runtime/declarations.js +0 -21
  121. package/dist/runtime/declarations.js.map +0 -1
  122. package/dist/runtime/runtime.d.ts +0 -1
  123. package/dist/runtime/runtime.js +0 -20
  124. package/dist/runtime/runtime.js.map +0 -1
  125. package/dist/utils.d.ts +0 -5
  126. package/dist/utils.js +0 -43
  127. package/dist/utils.js.map +0 -1
@@ -1,35 +0,0 @@
1
- export declare enum CurrencyCode {
2
- 'USD' = "$",
3
- 'EUR' = "\u20AC",
4
- 'JPY' = "\u00A5",
5
- 'GBP' = "\u00A3",
6
- 'AUD' = "A$",
7
- 'CAD' = "C$",
8
- 'CHF' = "CHF",
9
- 'CNY' = "\u5143",
10
- 'HKD' = "HK$",
11
- 'NZD' = "NZ$",
12
- 'KRW' = "\u20A9",
13
- 'SGD' = "S$",
14
- 'MXN' = "MEX$",
15
- 'INR' = "\u20B9",
16
- 'RUB' = "\u20BD",
17
- 'ZAR' = "R",
18
- 'TRY' = "\u20BA",
19
- 'BRL' = "R$",
20
- 'TWD' = "NT$",
21
- 'PLN' = "z\u0142",
22
- 'THB' = "\u0E3F",
23
- 'IDR' = "Rp",
24
- 'HUF' = "Ft",
25
- 'CZK' = "K\u010D",
26
- 'ILS' = "\u20AA",
27
- 'CLP' = "CLP$",
28
- 'PHP' = "\u20B1",
29
- 'AED' = "\u062F.\u0625",
30
- 'COP' = "COL$",
31
- 'SAR' = "\uFDFC",
32
- 'MYR' = "RM",
33
- 'RON' = "L",
34
- 'BGN' = "\u043B\u0432."
35
- }
@@ -1,53 +0,0 @@
1
- "use strict";
2
- /*
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CurrencyCode = void 0;
17
- var CurrencyCode;
18
- (function (CurrencyCode) {
19
- CurrencyCode["USD"] = "$";
20
- CurrencyCode["EUR"] = "\u20AC";
21
- CurrencyCode["JPY"] = "\u00A5";
22
- CurrencyCode["GBP"] = "\u00A3";
23
- CurrencyCode["AUD"] = "A$";
24
- CurrencyCode["CAD"] = "C$";
25
- CurrencyCode["CHF"] = "CHF";
26
- CurrencyCode["CNY"] = "\u5143";
27
- CurrencyCode["HKD"] = "HK$";
28
- CurrencyCode["NZD"] = "NZ$";
29
- CurrencyCode["KRW"] = "\u20A9";
30
- CurrencyCode["SGD"] = "S$";
31
- CurrencyCode["MXN"] = "MEX$";
32
- CurrencyCode["INR"] = "\u20B9";
33
- CurrencyCode["RUB"] = "\u20BD";
34
- CurrencyCode["ZAR"] = "R";
35
- CurrencyCode["TRY"] = "\u20BA";
36
- CurrencyCode["BRL"] = "R$";
37
- CurrencyCode["TWD"] = "NT$";
38
- CurrencyCode["PLN"] = "z\u0142";
39
- CurrencyCode["THB"] = "\u0E3F";
40
- CurrencyCode["IDR"] = "Rp";
41
- CurrencyCode["HUF"] = "Ft";
42
- CurrencyCode["CZK"] = "K\u010D";
43
- CurrencyCode["ILS"] = "\u20AA";
44
- CurrencyCode["CLP"] = "CLP$";
45
- CurrencyCode["PHP"] = "\u20B1";
46
- CurrencyCode["AED"] = "\u062F.\u0625";
47
- CurrencyCode["COP"] = "COL$";
48
- CurrencyCode["SAR"] = "\uFDFC";
49
- CurrencyCode["MYR"] = "RM";
50
- CurrencyCode["RON"] = "L";
51
- CurrencyCode["BGN"] = "\u043B\u0432.";
52
- })(CurrencyCode = exports.CurrencyCode || (exports.CurrencyCode = {}));
53
- //# sourceMappingURL=currencycode.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"currencycode.js","sourceRoot":"","sources":["../../../src/drafting/MonetaryAmount/currencycode.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEH,IAAY,YAkCX;AAlCD,WAAY,YAAY;IACpB,yBAAW,CAAA;IACX,8BAAU,CAAA;IACV,8BAAU,CAAA;IACV,8BAAU,CAAA;IACV,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,2BAAY,CAAA;IACZ,8BAAU,CAAA;IACV,2BAAY,CAAA;IACZ,2BAAY,CAAA;IACZ,8BAAU,CAAA;IACV,0BAAW,CAAA;IACX,4BAAa,CAAA;IACb,8BAAU,CAAA;IACV,8BAAU,CAAA;IACV,yBAAU,CAAA;IACV,8BAAU,CAAA;IACV,0BAAW,CAAA;IACX,2BAAY,CAAA;IACZ,+BAAW,CAAA;IACX,8BAAU,CAAA;IACV,0BAAW,CAAA;IACX,0BAAW,CAAA;IACX,+BAAW,CAAA;IACX,8BAAU,CAAA;IACV,4BAAa,CAAA;IACb,8BAAU,CAAA;IACV,qCAAY,CAAA;IACZ,4BAAa,CAAA;IACb,8BAAU,CAAA;IACV,0BAAW,CAAA;IACX,yBAAU,CAAA;IACV,qCAAY,CAAA;AAChB,CAAC,EAlCW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAkCvB"}
@@ -1,12 +0,0 @@
1
- type MonetaryAmount = {
2
- doubleValue: number;
3
- currencyCode: string;
4
- };
5
- /**
6
- * Creates a drafter for a monetary amount
7
- * @param {object} value the monetary amount
8
- * @param {string} format the format
9
- * @returns {string} the text
10
- */
11
- export default function monetaryAmountDrafter(value: MonetaryAmount, format: string): string;
12
- export {};
@@ -1,67 +0,0 @@
1
- "use strict";
2
- /*
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- const format_1 = require("../Double/format");
17
- const format_2 = require("../Double/format");
18
- const currencycode_1 = require("./currencycode");
19
- /**
20
- * Creates a drafter for monetary amount with no format
21
- * @param {object} value the monetary amount
22
- * @returns {string} the text
23
- */
24
- function monetaryAmountDefaultDrafter(value) {
25
- return '' + (0, format_1.draftDoubleIEEE)(value.doubleValue) + ' ' + value.currencyCode;
26
- }
27
- /**
28
- * Symbol from a currency code
29
- * @param {string} c - the currency code
30
- * @returns {string} the symbol
31
- */
32
- function codeSymbol(c) {
33
- const index = Object.keys(currencycode_1.CurrencyCode).indexOf(c);
34
- if (index >= 0) {
35
- return Object.values(currencycode_1.CurrencyCode)[index];
36
- }
37
- else {
38
- return c;
39
- }
40
- }
41
- /**
42
- * Creates a drafter for monetary amount with a given format
43
- * @param {object} value the monetary amount
44
- * @param {string} format the format
45
- * @returns {string} the text
46
- */
47
- function monetaryAmountFormatDrafter(value, format) {
48
- return (0, format_2.draftDoubleFormat)(value.doubleValue, format
49
- .replace(/K/gi, codeSymbol(value.currencyCode))
50
- .replace(/CCC/gi, value.currencyCode));
51
- }
52
- /**
53
- * Creates a drafter for a monetary amount
54
- * @param {object} value the monetary amount
55
- * @param {string} format the format
56
- * @returns {string} the text
57
- */
58
- function monetaryAmountDrafter(value, format) {
59
- if (format) {
60
- return monetaryAmountFormatDrafter(value, format);
61
- }
62
- else {
63
- return monetaryAmountDefaultDrafter(value);
64
- }
65
- }
66
- exports.default = monetaryAmountDrafter;
67
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/MonetaryAmount/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAEH,6CAAmD;AACnD,6CAAqD;AACrD,iDAA8C;AAO9C;;;;GAIG;AACH,SAAS,4BAA4B,CAAC,KAAoB;IACtD,OAAO,EAAE,GAAG,IAAA,wBAAe,EAAC,KAAK,CAAC,WAAW,CAAC,GAAG,GAAG,GAAG,KAAK,CAAC,YAAY,CAAC;AAC9E,CAAC;AAED;;;;GAIG;AACH,SAAS,UAAU,CAAC,CAAQ;IACxB,MAAM,KAAK,GAAW,MAAM,CAAC,IAAI,CAAC,2BAAY,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC3D,IAAG,KAAK,IAAG,CAAC,EAAE;QACV,OAAO,MAAM,CAAC,MAAM,CAAC,2BAAY,CAAC,CAAC,KAAK,CAAC,CAAC;KAC7C;SACI;QACD,OAAO,CAAC,CAAC;KACZ;AACL,CAAC;AAED;;;;;GAKG;AACH,SAAS,2BAA2B,CAAC,KAAoB,EAAC,MAAa;IACnE,OAAO,IAAA,0BAAiB,EAAC,KAAK,CAAC,WAAW,EACtC,MAAM;SACD,OAAO,CAAC,KAAK,EAAC,UAAU,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;SAC7C,OAAO,CAAC,OAAO,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;AAClD,CAAC;AAED;;;;;GAKG;AACH,SAAwB,qBAAqB,CAAC,KAAoB,EAAC,MAAa;IAC5E,IAAI,MAAM,EAAE;QACR,OAAO,2BAA2B,CAAC,KAAK,EAAC,MAAM,CAAC,CAAC;KACpD;SAAM;QACH,OAAO,4BAA4B,CAAC,KAAK,CAAC,CAAC;KAC9C;AACL,CAAC;AAND,wCAMC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Creates a drafter for String
3
- * @param {object} value the String
4
- * @returns {string} the text
5
- */
6
- export default function stringDrafter(value: string): string;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- /*
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- /**
17
- * Creates a drafter for String
18
- * @param {object} value the String
19
- * @returns {string} the text
20
- */
21
- function stringDrafter(value) {
22
- return value;
23
- }
24
- exports.default = stringDrafter;
25
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/String/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAEH;;;;GAIG;AACH,SAAwB,aAAa,CAAC,KAAY;IAC9C,OAAO,KAAK,CAAC;AACjB,CAAC;AAFD,gCAEC"}
@@ -1 +0,0 @@
1
- export declare function getDrafter(typeName: string): ((value: any, format: string) => string) | null;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- /*
3
- * Licensed under the Apache License, Version 2.0 (the "License");
4
- * you may not use this file except in compliance with the License.
5
- * You may obtain a copy of the License at
6
- *
7
- * http://www.apache.org/licenses/LICENSE-2.0
8
- *
9
- * Unless required by applicable law or agreed to in writing, software
10
- * distributed under the License is distributed on an "AS IS" BASIS,
11
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- * See the License for the specific language governing permissions and
13
- * limitations under the License.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.getDrafter = void 0;
20
- const Boolean_1 = __importDefault(require("./Boolean"));
21
- const DateTime_1 = __importDefault(require("./DateTime"));
22
- const Double_1 = __importDefault(require("./Double"));
23
- const Integer_1 = __importDefault(require("./Integer"));
24
- const Long_1 = __importDefault(require("./Long"));
25
- const MonetaryAmount_1 = __importDefault(require("./MonetaryAmount"));
26
- const String_1 = __importDefault(require("./String"));
27
- function getDrafter(typeName) {
28
- switch (typeName) {
29
- case 'Boolean': return Boolean_1.default;
30
- case 'DateTime': return DateTime_1.default;
31
- case 'Double': return Double_1.default;
32
- case 'Integer': return Integer_1.default;
33
- case 'Long': return Long_1.default;
34
- case 'org.accordproject.money@0.3.0.MonetaryAmount': return MonetaryAmount_1.default;
35
- case 'String': return String_1.default;
36
- default: return null;
37
- }
38
- }
39
- exports.getDrafter = getDrafter;
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/drafting/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;AAEH,wDAAuC;AACvC,0DAAyC;AACzC,sDAAqC;AACrC,wDAAuC;AACvC,kDAAiC;AACjC,sEAAqD;AACrD,sDAAqC;AAErC,SAAgB,UAAU,CAAC,QAAgB;IACvC,QAAO,QAAQ,EAAE;QACjB,KAAK,SAAS,CAAC,CAAC,OAAO,iBAAc,CAAC;QACtC,KAAK,UAAU,CAAC,CAAC,OAAO,kBAAe,CAAC;QACxC,KAAK,QAAQ,CAAC,CAAC,OAAO,gBAAa,CAAC;QACpC,KAAK,SAAS,CAAC,CAAC,OAAO,iBAAc,CAAC;QACtC,KAAK,MAAM,CAAC,CAAC,OAAO,cAAW,CAAC;QAChC,KAAK,8CAA8C,CAAC,CAAC,OAAO,wBAAqB,CAAC;QAClF,KAAK,QAAQ,CAAC,CAAC,OAAO,gBAAa,CAAC;QACpC,OAAO,CAAC,CAAC,OAAO,IAAI,CAAC;KACpB;AACL,CAAC;AAXD,gCAWC"}
@@ -1,13 +0,0 @@
1
- export interface IConcept {
2
- $class: string;
3
- }
4
- export interface IAsset extends IConcept {
5
- $identifier: string;
6
- }
7
- export interface IParticipant extends IConcept {
8
- $identifier: string;
9
- }
10
- export interface ITransaction extends IConcept {
11
- }
12
- export interface IEvent extends IConcept {
13
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
- // Generated code for namespace: concerto
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=concerto.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"concerto.js","sourceRoot":"","sources":["../../src/model-gen/concerto.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,yCAAyC"}
@@ -1,196 +0,0 @@
1
- import { IConcept } from './concerto@1.0.0';
2
- export interface IPosition extends IConcept {
3
- line: number;
4
- column: number;
5
- offset: number;
6
- }
7
- export interface IRange extends IConcept {
8
- start: IPosition;
9
- end: IPosition;
10
- source?: string;
11
- }
12
- export interface ITypeIdentifier extends IConcept {
13
- name: string;
14
- namespace?: string;
15
- }
16
- export interface IDecoratorLiteral extends IConcept {
17
- location?: IRange;
18
- }
19
- export type DecoratorLiteralUnion = IDecoratorString | IDecoratorNumber | IDecoratorBoolean | IDecoratorTypeReference;
20
- export interface IDecoratorString extends IDecoratorLiteral {
21
- value: string;
22
- }
23
- export interface IDecoratorNumber extends IDecoratorLiteral {
24
- value: number;
25
- }
26
- export interface IDecoratorBoolean extends IDecoratorLiteral {
27
- value: boolean;
28
- }
29
- export interface IDecoratorTypeReference extends IDecoratorLiteral {
30
- type: ITypeIdentifier;
31
- isArray: boolean;
32
- }
33
- export interface IDecorator extends IConcept {
34
- name: string;
35
- arguments?: IDecoratorLiteral[];
36
- location?: IRange;
37
- }
38
- export interface IIdentified extends IConcept {
39
- }
40
- export type IdentifiedUnion = IIdentifiedBy;
41
- export interface IIdentifiedBy extends IIdentified {
42
- name: string;
43
- }
44
- export interface IDeclaration extends IConcept {
45
- name: string;
46
- decorators?: IDecorator[];
47
- location?: IRange;
48
- }
49
- export type DeclarationUnion = IMapDeclaration | IEnumDeclaration | IConceptDeclaration | IScalarDeclaration;
50
- export interface IMapDeclaration extends IDeclaration {
51
- key: IMapKeyType;
52
- value: IAggregateValueType;
53
- }
54
- export interface IMapKeyType extends IConcept {
55
- type: ITypeIdentifier;
56
- decorators?: IDecorator[];
57
- location?: IRange;
58
- }
59
- export interface IAggregateValueType extends IConcept {
60
- type: ITypeIdentifier;
61
- decorators?: IDecorator[];
62
- location?: IRange;
63
- }
64
- export type AggregateValueTypeUnion = IAggregateRelationshipValueType;
65
- export interface IAggregateRelationshipValueType extends IAggregateValueType {
66
- }
67
- export interface IEnumDeclaration extends IDeclaration {
68
- properties: IEnumProperty[];
69
- }
70
- export interface IEnumProperty extends IConcept {
71
- name: string;
72
- decorators?: IDecorator[];
73
- location?: IRange;
74
- }
75
- export interface IConceptDeclaration extends IDeclaration {
76
- isAbstract: boolean;
77
- identified?: IIdentified;
78
- superType?: ITypeIdentifier;
79
- properties: IProperty[];
80
- }
81
- export type ConceptDeclarationUnion = IAssetDeclaration | IParticipantDeclaration | ITransactionDeclaration | IEventDeclaration;
82
- export interface IAssetDeclaration extends IConceptDeclaration {
83
- }
84
- export interface IParticipantDeclaration extends IConceptDeclaration {
85
- }
86
- export interface ITransactionDeclaration extends IConceptDeclaration {
87
- }
88
- export interface IEventDeclaration extends IConceptDeclaration {
89
- }
90
- export interface IProperty extends IConcept {
91
- name: string;
92
- isArray: boolean;
93
- isOptional: boolean;
94
- decorators?: IDecorator[];
95
- location?: IRange;
96
- }
97
- export type PropertyUnion = IRelationshipProperty | IObjectProperty | IBooleanProperty | IDateTimeProperty | IStringProperty | IDoubleProperty | IIntegerProperty | ILongProperty;
98
- export interface IRelationshipProperty extends IProperty {
99
- type: ITypeIdentifier;
100
- }
101
- export interface IObjectProperty extends IProperty {
102
- defaultValue?: string;
103
- type: ITypeIdentifier;
104
- }
105
- export interface IBooleanProperty extends IProperty {
106
- defaultValue?: boolean;
107
- }
108
- export interface IDateTimeProperty extends IProperty {
109
- }
110
- export interface IStringProperty extends IProperty {
111
- defaultValue?: string;
112
- validator?: IStringRegexValidator;
113
- lengthValidator?: IStringLengthValidator;
114
- }
115
- export interface IStringRegexValidator extends IConcept {
116
- pattern: string;
117
- flags: string;
118
- }
119
- export interface IStringLengthValidator extends IConcept {
120
- minLength?: number;
121
- maxLength?: number;
122
- }
123
- export interface IDoubleProperty extends IProperty {
124
- defaultValue?: number;
125
- validator?: IDoubleDomainValidator;
126
- }
127
- export interface IDoubleDomainValidator extends IConcept {
128
- lower?: number;
129
- upper?: number;
130
- }
131
- export interface IIntegerProperty extends IProperty {
132
- defaultValue?: number;
133
- validator?: IIntegerDomainValidator;
134
- }
135
- export interface IIntegerDomainValidator extends IConcept {
136
- lower?: number;
137
- upper?: number;
138
- }
139
- export interface ILongProperty extends IProperty {
140
- defaultValue?: number;
141
- validator?: ILongDomainValidator;
142
- }
143
- export interface ILongDomainValidator extends IConcept {
144
- lower?: number;
145
- upper?: number;
146
- }
147
- export interface IImport extends IConcept {
148
- namespace: string;
149
- uri?: string;
150
- }
151
- export type ImportUnion = IImportAll | IImportType | IImportTypes;
152
- export interface IImportAll extends IImport {
153
- }
154
- export interface IImportType extends IImport {
155
- name: string;
156
- }
157
- export interface IImportTypes extends IImport {
158
- types: string[];
159
- }
160
- export interface IModel extends IConcept {
161
- namespace: string;
162
- sourceUri?: string;
163
- concertoVersion?: string;
164
- imports?: IImport[];
165
- declarations?: IDeclaration[];
166
- decorators?: IDecorator[];
167
- }
168
- export interface IModels extends IConcept {
169
- models: IModel[];
170
- }
171
- export interface IScalarDeclaration extends IDeclaration {
172
- }
173
- export type ScalarDeclarationUnion = IBooleanScalar | IIntegerScalar | ILongScalar | IDoubleScalar | IStringScalar | IDateTimeScalar;
174
- export interface IBooleanScalar extends IScalarDeclaration {
175
- defaultValue: boolean;
176
- }
177
- export interface IIntegerScalar extends IScalarDeclaration {
178
- defaultValue?: number;
179
- validator?: IIntegerDomainValidator;
180
- }
181
- export interface ILongScalar extends IScalarDeclaration {
182
- defaultValue?: number;
183
- validator?: ILongDomainValidator;
184
- }
185
- export interface IDoubleScalar extends IScalarDeclaration {
186
- defaultValue?: number;
187
- validator?: IDoubleDomainValidator;
188
- }
189
- export interface IStringScalar extends IScalarDeclaration {
190
- defaultValue?: string;
191
- validator?: IStringRegexValidator;
192
- lengthValidator?: IStringLengthValidator;
193
- }
194
- export interface IDateTimeScalar extends IScalarDeclaration {
195
- defaultValue?: string;
196
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
- // Generated code for namespace: concerto.metamodel@1.0.0
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=concerto.metamodel@1.0.0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"concerto.metamodel@1.0.0.js","sourceRoot":"","sources":["../../src/model-gen/concerto.metamodel@1.0.0.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,yDAAyD"}
@@ -1,19 +0,0 @@
1
- import type { ICode } from './org.accordproject.templatemark@0.5.0';
2
- import type { INode, IAttribute, ITagInfo } from './org.accordproject.commonmark@0.5.0';
3
- import type { IPosition, IRange, ITypeIdentifier, IDecoratorLiteral, IDecorator, IIdentified, IDeclaration, IMapKeyType, IAggregateValueType, IEnumProperty, IProperty, IStringRegexValidator, IStringLengthValidator, IDoubleDomainValidator, IIntegerDomainValidator, ILongDomainValidator, IImport, IModel, IModels } from './concerto.metamodel@1.0.0';
4
- export interface IConcept {
5
- $class: string;
6
- }
7
- export type ConceptUnion = ICode | INode | IAttribute | ITagInfo | IPosition | IRange | ITypeIdentifier | IDecoratorLiteral | IDecorator | IIdentified | IDeclaration | IMapKeyType | IAggregateValueType | IEnumProperty | IProperty | IStringRegexValidator | IStringLengthValidator | IDoubleDomainValidator | IIntegerDomainValidator | ILongDomainValidator | IImport | IModel | IModels;
8
- export interface IAsset extends IConcept {
9
- $identifier: string;
10
- }
11
- export interface IParticipant extends IConcept {
12
- $identifier: string;
13
- }
14
- export interface ITransaction extends IConcept {
15
- $timestamp: Date;
16
- }
17
- export interface IEvent extends IConcept {
18
- $timestamp: Date;
19
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
- // Generated code for namespace: concerto@1.0.0
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=concerto@1.0.0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"concerto@1.0.0.js","sourceRoot":"","sources":["../../src/model-gen/concerto@1.0.0.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,+CAA+C"}
@@ -1,49 +0,0 @@
1
- import { IChild } from './org.accordproject.commonmark@0.5.0';
2
- import { IDecorator } from './concerto.metamodel@1.0.0';
3
- export interface IElement extends IChild {
4
- name: string;
5
- elementType?: string;
6
- decorators?: IDecorator[];
7
- }
8
- export type ElementUnion = IVariable | IFormula | IBlock;
9
- export interface IVariable extends IElement {
10
- value: string;
11
- identifiedBy?: string;
12
- }
13
- export type VariableUnion = IFormattedVariable | IEnumVariable;
14
- export interface IFormattedVariable extends IVariable {
15
- format: string;
16
- }
17
- export interface IEnumVariable extends IVariable {
18
- enumValues: string[];
19
- }
20
- export interface IFormula extends IElement {
21
- value: string;
22
- dependencies?: string[];
23
- code?: string;
24
- }
25
- export interface IBlock extends IElement {
26
- }
27
- export type BlockUnion = IClause | IContract | IConditional | IOptional | IListBlock;
28
- export interface IClause extends IBlock {
29
- src?: string;
30
- }
31
- export interface IContract extends IBlock {
32
- src?: string;
33
- }
34
- export interface IConditional extends IBlock {
35
- isTrue: boolean;
36
- whenTrue: IChild[];
37
- whenFalse: IChild[];
38
- }
39
- export interface IOptional extends IBlock {
40
- hasSome: boolean;
41
- whenSome: IChild[];
42
- whenNone: IChild[];
43
- }
44
- export interface IListBlock extends IBlock {
45
- type: string;
46
- tight: string;
47
- start?: string;
48
- delimiter?: string;
49
- }
@@ -1,5 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-empty-interface */
3
- // Generated code for namespace: org.accordproject.ciceromark@0.6.0
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- //# sourceMappingURL=org.accordproject.ciceromark@0.6.0.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"org.accordproject.ciceromark@0.6.0.js","sourceRoot":"","sources":["../../src/model-gen/org.accordproject.ciceromark@0.6.0.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,mEAAmE"}