@accordproject/template-engine 1.0.19 → 1.0.23

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 (83) hide show
  1. package/dist/Common.js +9 -9
  2. package/dist/Common.js.map +1 -1
  3. package/dist/TemplateMarkInterpreter.js +113 -151
  4. package/dist/TemplateMarkInterpreter.js.map +1 -1
  5. package/dist/TemplateMarkToJavaScriptCompiler.js +31 -24
  6. package/dist/TemplateMarkToJavaScriptCompiler.js.map +1 -1
  7. package/dist/TemplateMarkToTypeScriptCompiler.js +90 -92
  8. package/dist/TemplateMarkToTypeScriptCompiler.js.map +1 -1
  9. package/dist/TypeScriptCompilationContext.js +29 -22
  10. package/dist/TypeScriptCompilationContext.js.map +1 -1
  11. package/dist/TypeScriptRuntime.d.ts +1 -0
  12. package/dist/TypeScriptRuntime.js +24 -12
  13. package/dist/TypeScriptRuntime.js.map +1 -1
  14. package/dist/TypeScriptToJavaScriptCompiler.js +18 -16
  15. package/dist/TypeScriptToJavaScriptCompiler.js.map +1 -1
  16. package/dist/compilers/Clause.d.ts +1 -1
  17. package/dist/compilers/Clause.js +18 -35
  18. package/dist/compilers/Clause.js.map +1 -1
  19. package/dist/compilers/Common.js +55 -80
  20. package/dist/compilers/Common.js.map +1 -1
  21. package/dist/compilers/Conditional.d.ts +1 -1
  22. package/dist/compilers/Conditional.js +12 -29
  23. package/dist/compilers/Conditional.js.map +1 -1
  24. package/dist/compilers/ContractDefinition.d.ts +1 -1
  25. package/dist/compilers/ContractDefinition.js +10 -27
  26. package/dist/compilers/ContractDefinition.js.map +1 -1
  27. package/dist/compilers/EnumVariable.d.ts +1 -1
  28. package/dist/compilers/EnumVariable.js +12 -29
  29. package/dist/compilers/EnumVariable.js.map +1 -1
  30. package/dist/compilers/FormattedVariable.d.ts +1 -1
  31. package/dist/compilers/FormattedVariable.js +14 -31
  32. package/dist/compilers/FormattedVariable.js.map +1 -1
  33. package/dist/compilers/Formula.d.ts +1 -1
  34. package/dist/compilers/Formula.js +14 -31
  35. package/dist/compilers/Formula.js.map +1 -1
  36. package/dist/compilers/Join.d.ts +1 -1
  37. package/dist/compilers/Join.js +12 -28
  38. package/dist/compilers/Join.js.map +1 -1
  39. package/dist/compilers/ListBlock.d.ts +1 -1
  40. package/dist/compilers/ListBlock.js +17 -35
  41. package/dist/compilers/ListBlock.js.map +1 -1
  42. package/dist/compilers/NodeCompilers.js +44 -44
  43. package/dist/compilers/NodeCompilers.js.map +1 -1
  44. package/dist/compilers/Optional.d.ts +1 -1
  45. package/dist/compilers/Optional.js +17 -34
  46. package/dist/compilers/Optional.js.map +1 -1
  47. package/dist/compilers/Variable.d.ts +1 -1
  48. package/dist/compilers/Variable.js +12 -29
  49. package/dist/compilers/Variable.js.map +1 -1
  50. package/dist/compilers/With.d.ts +1 -1
  51. package/dist/compilers/With.js +13 -30
  52. package/dist/compilers/With.js.map +1 -1
  53. package/dist/drafting/DateTime/index.js +3 -3
  54. package/dist/drafting/DateTime/index.js.map +1 -1
  55. package/dist/drafting/Double/format.js +5 -5
  56. package/dist/drafting/Double/format.js.map +1 -1
  57. package/dist/drafting/Double/index.js +2 -2
  58. package/dist/drafting/Double/index.js.map +1 -1
  59. package/dist/drafting/Integer/format.js +3 -3
  60. package/dist/drafting/Integer/format.js.map +1 -1
  61. package/dist/drafting/Integer/index.js +2 -2
  62. package/dist/drafting/Integer/index.js.map +1 -1
  63. package/dist/drafting/Long/index.js +2 -2
  64. package/dist/drafting/Long/index.js.map +1 -1
  65. package/dist/drafting/MonetaryAmount/index.js +4 -4
  66. package/dist/drafting/MonetaryAmount/index.js.map +1 -1
  67. package/dist/drafting/index.js +7 -7
  68. package/dist/drafting/index.js.map +1 -1
  69. package/dist/model-gen/concerto.d.ts +13 -0
  70. package/dist/model-gen/concerto.js +5 -0
  71. package/dist/model-gen/concerto.js.map +1 -0
  72. package/dist/model-gen/concerto.metamodel@1.0.0.d.ts +24 -1
  73. package/dist/model-gen/concerto@1.0.0.d.ts +3 -2
  74. package/dist/model-gen/org.accordproject.commonmark@0.5.0.d.ts +2 -2
  75. package/dist/model-gen/{org.accordproject.templatemark@0.4.0.d.ts → org.accordproject.templatemark@0.5.0.d.ts} +5 -1
  76. package/dist/model-gen/{org.accordproject.templatemark@0.4.0.js → org.accordproject.templatemark@0.5.0.js} +3 -2
  77. package/dist/model-gen/org.accordproject.templatemark@0.5.0.js.map +1 -0
  78. package/dist/runtime/runtime.d.ts +1 -1
  79. package/dist/runtime/runtime.js +1 -1
  80. package/dist/runtime/runtime.js.map +1 -1
  81. package/dist/runtime.tgz +0 -0
  82. package/package.json +8 -8
  83. package/dist/model-gen/org.accordproject.templatemark@0.4.0.js.map +0 -1
@@ -1,50 +1,34 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.Optional = void 0;
19
- var markdown_common_1 = require("@accordproject/markdown-common");
20
- var Common_1 = require("./Common");
21
- var Optional = /** @class */ (function (_super) {
22
- __extends(Optional, _super);
23
- function Optional() {
24
- return _super.call(this, false) || this;
4
+ const markdown_common_1 = require("@accordproject/markdown-common");
5
+ const Common_1 = require("./Common");
6
+ class Optional extends Common_1.AbstractComplexCompiler {
7
+ constructor() {
8
+ super(false);
25
9
  }
26
- Optional.prototype.enter = function (fw, level, templateMarkNode) {
10
+ enter(fw, level, templateMarkNode) {
27
11
  (0, Common_1.writeDebug)(fw, level, templateMarkNode);
28
12
  (0, Common_1.writeOpenNodeScope)(fw, level);
29
13
  (0, Common_1.writeOpenDataScope)(fw, level, templateMarkNode.name, true); // allow pushing undefined onto the stack
30
- };
31
- Optional.prototype.generate = function (fw, level, templateMarkNode, doIt) {
32
- var clone = (0, Common_1.makeCiceroMark)(templateMarkNode);
14
+ }
15
+ generate(fw, level, templateMarkNode, doIt) {
16
+ const clone = (0, Common_1.makeCiceroMark)(templateMarkNode);
33
17
  delete clone.nodes;
34
18
  delete clone.whenSome; // replaced below
35
19
  delete clone.whenNone;
36
20
  (0, Common_1.writeOpenGenerateScope)(fw, level);
37
- fw.writeLine(level, "const result = ".concat(JSON.stringify(clone), " as ").concat((0, Common_1.getTypeScriptType)(templateMarkNode.$class), ";"));
21
+ fw.writeLine(level, `const result = ${JSON.stringify(clone)} as ${(0, Common_1.getTypeScriptType)(templateMarkNode.$class)};`);
38
22
  fw.writeLine(level, 'const hasSome:boolean = !(Runtime.peek($data) === null || Runtime.peek($data) === undefined);');
39
23
  fw.writeLine(level, '(result as CiceroMark.IOptional).hasSome = hasSome;');
40
24
  fw.writeLine(level, 'if(hasSome) {');
41
- doIt(fw, level + 1, { $class: "".concat(markdown_common_1.CommonMarkModel.NAMESPACE, ".Paragraph"), nodes: templateMarkNode.whenSome });
25
+ doIt(fw, level + 1, { $class: `${markdown_common_1.CommonMarkModel.NAMESPACE}.Paragraph`, nodes: templateMarkNode.whenSome });
42
26
  fw.writeLine(level, '(result as CiceroMark.IOptional).whenSome = $result.nodes[0];');
43
27
  fw.writeLine(level, '(result as CiceroMark.IOptional).whenNone = $result.nodes[0];'); // HACK - model needs to be updated
44
28
  fw.writeLine(level, 'return result;');
45
29
  fw.writeLine(level, '}');
46
30
  fw.writeLine(level, 'else {');
47
- doIt(fw, level + 1, { $class: "".concat(markdown_common_1.CommonMarkModel.NAMESPACE, ".Paragraph"), nodes: templateMarkNode.whenNone });
31
+ doIt(fw, level + 1, { $class: `${markdown_common_1.CommonMarkModel.NAMESPACE}.Paragraph`, nodes: templateMarkNode.whenNone });
48
32
  fw.writeLine(level, '(result as CiceroMark.IOptional).whenNone = $result.nodes[0];');
49
33
  fw.writeLine(level, '(result as CiceroMark.IOptional).whenSome = $result.nodes[0];'); // HACK - model needs to be updated
50
34
  fw.writeLine(level, 'return result;');
@@ -53,13 +37,12 @@ var Optional = /** @class */ (function (_super) {
53
37
  delete templateMarkNode.nodes;
54
38
  delete templateMarkNode.whenSome; // already handled
55
39
  delete templateMarkNode.whenNone;
56
- };
57
- Optional.prototype.exit = function (fw, level) {
40
+ }
41
+ exit(fw, level) {
58
42
  (0, Common_1.writeCloseDataScope)(fw, level);
59
43
  (0, Common_1.writeCloseNodeScope)(fw, level);
60
- };
61
- Optional.TYPE = "".concat(markdown_common_1.TemplateMarkModel.NAMESPACE, ".OptionalDefinition");
62
- return Optional;
63
- }(Common_1.AbstractComplexCompiler));
44
+ }
45
+ }
64
46
  exports.Optional = Optional;
47
+ Optional.TYPE = `${markdown_common_1.TemplateMarkModel.NAMESPACE}.OptionalDefinition`;
65
48
  //# sourceMappingURL=Optional.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Optional.js","sourceRoot":"","sources":["../../src/compilers/Optional.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAcA,kEAAmF;AAInF,mCAAqO;AAGrO;IAA8B,4BAAuB;IAEjD;eACI,kBAAM,KAAK,CAAC;IAChB,CAAC;IAED,wBAAK,GAAL,UAAM,EAAa,EAAE,KAAY,EAAC,gBAAoC;QAClE,IAAA,mBAAU,EAAC,EAAE,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC;QACxC,IAAA,2BAAkB,EAAC,EAAE,EAAC,KAAK,CAAC,CAAC;QAC7B,IAAA,2BAAkB,EAAC,EAAE,EAAC,KAAK,EAAC,gBAAgB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,yCAAyC;IACvG,CA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E,QAAQ,CAAC,CAAC;QAC9B,IAAI,CAAC,EAAE,EAAE,KAAK,GAAC,CAAC,EAAE,EAAC,MAAM,EAAE,GAAG,iCAAe,CAAC,SAAS,YAAY,EAAE,KAAK,EAAE,gBAAgB,CAAC,QAAQ,EAAC,CAAC,CAAC;QACxG,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,+DAA+D,CAAC,CAAC;QACrF,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,+DAA+D,CAAC,CAAC,CAAE,mCAAmC;QAC1H,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QACtC,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QACzB,IAAA,gCAAuB,EAAC,EAAE,EAAE,KAAK,CAAC,CAAC;QACnC,OAAO,gBAAgB,CAAC,KAAK,CAAC;QAC9B,OAAQ,gBAAwB,CAAC,QAAQ,CAAC,CAAC,kBAAkB;QAC7D,OAAQ,gBAAwB,CAAC,QAAQ,CAAC;IAC9C,CAAC;IAED,IAAI,CAAC,EAAa,EAAE,KAAY;QAC5B,IAAA,4BAAmB,EAAC,EAAE,EAAC,KAAK,CAAC,CAAC;QAC9B,IAAA,4BAAmB,EAAC,EAAE,EAAC,KAAK,CAAC,CAAC;IAClC,CAAC;;AA1CL,4BA2CC;AA1CU,aAAI,GAAG,GAAG,mCAAiB,CAAC,SAAS,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { FileWriter } from '@accordproject/concerto-util';
2
- import { IVariableDefinition } from '../model-gen/org.accordproject.templatemark@0.4.0';
2
+ import { IVariableDefinition } from '../model-gen/org.accordproject.templatemark@0.5.0';
3
3
  import { AbstractComplexCompiler } from './Common';
4
4
  export declare class Variable extends AbstractComplexCompiler {
5
5
  static TYPE: string;
@@ -1,30 +1,14 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.Variable = void 0;
19
- var markdown_common_1 = require("@accordproject/markdown-common");
20
- var Common_1 = require("./Common");
21
- var Variable = /** @class */ (function (_super) {
22
- __extends(Variable, _super);
23
- function Variable() {
24
- return _super.call(this, true) || this;
4
+ const markdown_common_1 = require("@accordproject/markdown-common");
5
+ const Common_1 = require("./Common");
6
+ class Variable extends Common_1.AbstractComplexCompiler {
7
+ constructor() {
8
+ super(true);
25
9
  }
26
- Variable.prototype.generate = function (fw, level, templateMarkNode) {
27
- var clone = (0, Common_1.makeCiceroMark)(templateMarkNode);
10
+ generate(fw, level, templateMarkNode) {
11
+ const clone = (0, Common_1.makeCiceroMark)(templateMarkNode);
28
12
  (0, Common_1.writeOpenGenerateScope)(fw, level);
29
13
  if (templateMarkNode.name !== 'this') {
30
14
  (0, Common_1.writeOpenDataScope)(fw, level, templateMarkNode.name);
@@ -33,13 +17,12 @@ var Variable = /** @class */ (function (_super) {
33
17
  if (templateMarkNode.name !== 'this') {
34
18
  (0, Common_1.writeCloseDataScope)(fw, level);
35
19
  }
36
- fw.writeLine(level, "const variable:any = ".concat(JSON.stringify(clone), ";"));
20
+ fw.writeLine(level, `const variable:any = ${JSON.stringify(clone)};`);
37
21
  fw.writeLine(level, 'variable.value = text;');
38
- fw.writeLine(level, "return variable as ".concat((0, Common_1.getTypeScriptType)(clone.$class), ";"));
22
+ fw.writeLine(level, `return variable as ${(0, Common_1.getTypeScriptType)(clone.$class)};`);
39
23
  (0, Common_1.writeCloseGenerateScope)(fw, level);
40
- };
41
- Variable.TYPE = "".concat(markdown_common_1.TemplateMarkModel.NAMESPACE, ".VariableDefinition");
42
- return Variable;
43
- }(Common_1.AbstractComplexCompiler));
24
+ }
25
+ }
44
26
  exports.Variable = Variable;
27
+ Variable.TYPE = `${markdown_common_1.TemplateMarkModel.NAMESPACE}.VariableDefinition`;
45
28
  //# sourceMappingURL=Variable.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Variable.js","sourceRoot":"","sources":["../../src/compilers/Variable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAcA,kEAAmE;AAGnE,mCAAgL;AAEhL;IAA8B,4BAAuB;IAEjD;eACI,kBAAM,IAAI,CAAC;IACf,CAAC;IACD,2BAAQ,GAAR,UAAS,EAAa,EAAE,KAAY,EAAE,gBAAoC;QACtE,IAAM,KAAK,GAAG,IAAA,uBAAc,EAAC,gBAAgB,CAAc,CAAC;QAC5D,IAAA,+BAAsB,EAAC,EAAE,EAAC,KAAK,CAAC,CAAC;QACjC,IAAG,gBAAgB,CAAC,IAAI,KAAK,MAAM,EAAE;YACjC,IAAA,2BAAkB,EAAC,EAAE,EAAC,KAAK,EAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;SACtD;QACD,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,6DAA6D,CAAC,CAAC;QACnF,IAAG,gBAAgB,CAAC,IAAI,KAAK,MAAM,EAAE;YACjC,IAAA,4BAAmB,EAAC,EAAE,EAAC,KAAK,CAAC,CAAC;SACjC;QACD,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,+BAAwB,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAG,CAAC,CAAC;QACtE,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC;QAC9C,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,6BAAsB,IAAA,0BAAiB,EAAC,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,EAAC,KAAK,CAAC,CAAC;IACtC,CAAC;;AAnBL,4BAoBC;AAnBU,aAAI,GAAG,GAAG,mCAAiB,CAAC,SAAS,qBAAqB,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { FileWriter } from '@accordproject/concerto-util';
2
- import { IWithDefinition } from '../model-gen/org.accordproject.templatemark@0.4.0';
2
+ import { IWithDefinition } from '../model-gen/org.accordproject.templatemark@0.5.0';
3
3
  import { AbstractComplexCompiler } from './Common';
4
4
  export declare class With extends AbstractComplexCompiler {
5
5
  static TYPE: string;
@@ -1,40 +1,23 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.With = void 0;
19
- var markdown_common_1 = require("@accordproject/markdown-common");
20
- var Common_1 = require("./Common");
21
- var With = /** @class */ (function (_super) {
22
- __extends(With, _super);
23
- function With() {
24
- return _super.call(this, false) || this;
4
+ const markdown_common_1 = require("@accordproject/markdown-common");
5
+ const Common_1 = require("./Common");
6
+ class With extends Common_1.AbstractComplexCompiler {
7
+ constructor() {
8
+ super(false);
25
9
  }
26
- With.prototype.enter = function (fw, level, templateMarkNode) {
10
+ enter(fw, level, templateMarkNode) {
27
11
  (0, Common_1.writeDebug)(fw, level, templateMarkNode);
28
12
  (0, Common_1.writeOpenDataScope)(fw, level, templateMarkNode.name);
29
- };
13
+ }
30
14
  // eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-function
31
- With.prototype.generate = function (fw, level, templateMarkNode) {
32
- };
33
- With.prototype.exit = function (fw, level) {
15
+ generate(fw, level, templateMarkNode) {
16
+ }
17
+ exit(fw, level) {
34
18
  (0, Common_1.writeCloseDataScope)(fw, level);
35
- };
36
- With.TYPE = "".concat(markdown_common_1.TemplateMarkModel.NAMESPACE, ".WithDefinition");
37
- return With;
38
- }(Common_1.AbstractComplexCompiler));
19
+ }
20
+ }
39
21
  exports.With = With;
22
+ With.TYPE = `${markdown_common_1.TemplateMarkModel.NAMESPACE}.WithDefinition`;
40
23
  //# sourceMappingURL=With.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"With.js","sourceRoot":"","sources":["../../src/compilers/With.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAcA,kEAAmE;AAEnE,mCAAwG;AAExG;IAA0B,wBAAuB;IAE7C;eACI,kBAAM,KAAK,CAAC;IAChB,CAAC;IAED,oBAAK,GAAL,UAAM,EAAa,EAAE,KAAY,EAAC,gBAAgC;QAC9D,IAAA,mBAAU,EAAC,EAAE,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC;QACxC,IAAA,2BAAkB,EAAC,EAAE,EAAC,KAAK,EAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAED,mGAAmG;IACnG,uBAAQ,GAAR,UAAS,EAAa,EAAE,KAAY,EAAE,gBAAgC;IACtE,CAAC;IAED,mBAAI,GAAJ,UAAK,EAAa,EAAE,KAAY;QAC5B,IAAA,4BAAmB,EAAC,EAAE,EAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IAhBM,SAAI,GAAG,UAAG,mCAAiB,CAAC,SAAS,oBAAiB,CAAC;IAiBlE,WAAC;CAAA,AAlBD,CAA0B,gCAAuB,GAkBhD;AAlBY,oBAAI"}
1
+ {"version":3,"file":"With.js","sourceRoot":"","sources":["../../src/compilers/With.ts"],"names":[],"mappings":";;;AAcA,oEAAmE;AAEnE,qCAAwG;AAExG,MAAa,IAAK,SAAQ,gCAAuB;IAE7C;QACI,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,EAAa,EAAE,KAAY,EAAC,gBAAgC;QAC9D,IAAA,mBAAU,EAAC,EAAE,EAAE,KAAK,EAAE,gBAAgB,CAAC,CAAC;QACxC,IAAA,2BAAkB,EAAC,EAAE,EAAC,KAAK,EAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IAED,mGAAmG;IACnG,QAAQ,CAAC,EAAa,EAAE,KAAY,EAAE,gBAAgC;IACtE,CAAC;IAED,IAAI,CAAC,EAAa,EAAE,KAAY;QAC5B,IAAA,4BAAmB,EAAC,EAAE,EAAC,KAAK,CAAC,CAAC;IAClC,CAAC;;AAjBL,oBAkBC;AAjBU,SAAI,GAAG,GAAG,mCAAiB,CAAC,SAAS,iBAAiB,CAAC"}
@@ -16,8 +16,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
16
16
  return (mod && mod.__esModule) ? mod : { "default": mod };
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- var dayjs_1 = __importDefault(require("dayjs"));
20
- var utc_1 = __importDefault(require("dayjs/plugin/utc"));
19
+ const dayjs_1 = __importDefault(require("dayjs"));
20
+ const utc_1 = __importDefault(require("dayjs/plugin/utc"));
21
21
  dayjs_1.default.extend(utc_1.default);
22
22
  /**
23
23
  * Creates a drafter for DateTime
@@ -26,7 +26,7 @@ dayjs_1.default.extend(utc_1.default);
26
26
  * @returns {string} the text
27
27
  */
28
28
  function dateTimeDrafter(value, format) {
29
- var f = format ? format : 'MM/DD/YYYY';
29
+ const f = format ? format : 'MM/DD/YYYY';
30
30
  return dayjs_1.default.utc(value).format(f);
31
31
  }
32
32
  exports.default = dateTimeDrafter;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/DateTime/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;AAEH,gDAA0B;AAC1B,yDAAmC;AACnC,eAAK,CAAC,MAAM,CAAC,aAAG,CAAC,CAAC;AAElB;;;;;GAKG;AACH,SAAwB,eAAe,CAAC,KAAY,EAAC,MAAa;IAC9D,IAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC;IACzC,OAAO,eAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtC,CAAC;AAHD,kCAGC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/DateTime/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;AAEH,kDAA0B;AAC1B,2DAAmC;AACnC,eAAK,CAAC,MAAM,CAAC,aAAG,CAAC,CAAC;AAElB;;;;;GAKG;AACH,SAAwB,eAAe,CAAC,KAAY,EAAC,MAAa;IAC9D,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC;IACzC,OAAO,eAAK,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtC,CAAC;AAHD,kCAGC"}
@@ -36,14 +36,14 @@ exports.draftDoubleIEEE = draftDoubleIEEE;
36
36
  */
37
37
  function draftDoubleFormat(value, format) {
38
38
  return format.replace(/0(.)0((.)(0+))?/gi, function (_a, sep1, _b, sep2, digits) {
39
- var len = digits ? digits.length : 0;
40
- var vs = value.toFixed(len);
41
- var res = '';
39
+ const len = digits ? digits.length : 0;
40
+ const vs = value.toFixed(len);
41
+ let res = '';
42
42
  if (sep2) {
43
- var d = vs.substring(vs.length - len);
43
+ const d = vs.substring(vs.length - len);
44
44
  res += sep2 + d;
45
45
  }
46
- var i = vs.substring(0, vs.length - (len === 0 ? 0 : len + 1));
46
+ let i = vs.substring(0, vs.length - (len === 0 ? 0 : len + 1));
47
47
  while (i.length > 3) {
48
48
  res = sep1 + i.substring(i.length - 3) + res;
49
49
  i = i.substring(0, i.length - 3);
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/drafting/Double/format.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEH;;;;GAIG;AACH,SAAgB,eAAe,CAAC,KAAY;IACxC,IAAI,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE;QAC7B,OAAO,CAAC,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,0CAA0C;KACpF;SAAM;QACH,OAAO,EAAE,GAAG,KAAK,CAAC;KACrB;AACL,CAAC;AAND,0CAMC;AAED;;;;;GAKG;AACH,SAAgB,iBAAiB,CAAC,KAAY,EAAC,MAAa;IACxD,OAAO,MAAM,CAAC,OAAO,CAAC,mBAAmB,EAAE,UAAS,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,MAAM;QACtE,IAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QACvC,IAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QAC9B,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,IAAI,EAAE;YACN,IAAM,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;YACxC,GAAG,IAAI,IAAI,GAAG,CAAC,CAAC;SACnB;QACD,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,EAAC,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAC,CAAC,CAAC,CAAC,CA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C,GAAG,IAAI,IAAI,GAAG,CAAC,CAAC;SACnB;QACD,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,EAAC,EAAE,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,GAAC,CAAC,CAAC,CAAC,CAAC;QAC5D,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACjB,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;YAC7C,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SACpC;QACD,OAAO,CAAC,GAAG,GAAG,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAhBD,8CAgBC"}
@@ -13,8 +13,8 @@
13
13
  * limitations under the License.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- var format_1 = require("./format");
17
- var format_2 = require("./format");
16
+ const format_1 = require("./format");
17
+ const format_2 = require("./format");
18
18
  /**
19
19
  * Creates a drafter for a double
20
20
  * @param {number} value - the Double
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/Double/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAEH,mCAA2C;AAC3C,mCAA6C;AAE7C;;;;;GAKG;AACH,SAAwB,aAAa,CAAC,KAAY,EAAC,MAAa;IAC5D,IAAI,MAAM,EAAE;QACR,OAAO,IAAA,0BAAiB,EAAC,KAAK,EAAC,MAAM,CAAC,CAAC;KAC1C;SAAM;QACH,OAAO,IAAA,wBAAe,EAAC,KAAK,CAAC,CAAC;KACjC;AACL,CAAC;AAND,gCAMC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/Double/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAEH,qCAA2C;AAC3C,qCAA6C;AAE7C;;;;;GAKG;AACH,SAAwB,aAAa,CAAC,KAAY,EAAC,MAAa;IAC5D,IAAI,MAAM,EAAE;QACR,OAAO,IAAA,0BAAiB,EAAC,KAAK,EAAC,MAAM,CAAC,CAAC;KAC1C;SAAM;QACH,OAAO,IAAA,wBAAe,EAAC,KAAK,CAAC,CAAC;KACjC;AACL,CAAC;AAND,gCAMC"}
@@ -31,9 +31,9 @@ exports.draftInteger = draftInteger;
31
31
  */
32
32
  function draftIntegerFormat(value, format) {
33
33
  return format.replace(/0(.)0/gi, function (_a, sep1) {
34
- var vs = value.toFixed(0);
35
- var res = '';
36
- var i = vs.substring(0, vs.length);
34
+ const vs = value.toFixed(0);
35
+ let res = '';
36
+ let i = vs.substring(0, vs.length);
37
37
  while (i.length > 3) {
38
38
  res = sep1 + i.substring(i.length - 3) + res;
39
39
  i = i.substring(0, i.length - 3);
@@ -1 +1 @@
1
- {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/drafting/Integer/format.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEH;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAY;IACrC,OAAO,EAAE,GAAG,KAAK,CAAC;AACtB,CAAC;AAFD,oCAEC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,KAAY,EAAC,MAAa;IACzD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,UAAS,EAAE,EAAC,IAAI;QAC7C,IAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC5B,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,EAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QAClC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACjB,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;YAC7C,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SACpC;QACD,OAAO,CAAC,GAAG,GAAG,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAXD,gDAWC"}
1
+ {"version":3,"file":"format.js","sourceRoot":"","sources":["../../../src/drafting/Integer/format.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;AAEH;;;;GAIG;AACH,SAAgB,YAAY,CAAC,KAAY;IACrC,OAAO,EAAE,GAAG,KAAK,CAAC;AACtB,CAAC;AAFD,oCAEC;AAED;;;;;GAKG;AACH,SAAgB,kBAAkB,CAAC,KAAY,EAAC,MAAa;IACzD,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,EAAE,UAAS,EAAE,EAAC,IAAI;QAC7C,MAAM,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;QAC5B,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,EAAC,EAAE,CAAC,MAAM,CAAC,CAAC;QAClC,OAAO,CAAC,CAAC,MAAM,GAAG,CAAC,EAAE;YACjB,GAAG,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;YAC7C,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SACpC;QACD,OAAO,CAAC,GAAG,GAAG,CAAC;IACnB,CAAC,CAAC,CAAC;AACP,CAAC;AAXD,gDAWC"}
@@ -13,8 +13,8 @@
13
13
  */
14
14
  'use strict';
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- var format_1 = require("./format");
17
- var format_2 = require("./format");
16
+ const format_1 = require("./format");
17
+ const format_2 = require("./format");
18
18
  /**
19
19
  * Creates a drafter for an Integer
20
20
  * @param {number} value - the integer
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/Integer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;;AAEb,mCAAwC;AACxC,mCAA8C;AAE9C;;;;;GAKG;AACH,SAAwB,cAAc,CAAC,KAAY,EAAC,MAAa;IAC7D,IAAI,MAAM,EAAE;QACR,OAAO,IAAA,2BAAkB,EAAC,KAAK,EAAC,MAAM,CAAC,CAAC;KAC3C;SAAM;QACH,OAAO,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAC;KAC9B;AACL,CAAC;AAND,iCAMC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/Integer/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,YAAY,CAAC;;AAEb,qCAAwC;AACxC,qCAA8C;AAE9C;;;;;GAKG;AACH,SAAwB,cAAc,CAAC,KAAY,EAAC,MAAa;IAC7D,IAAI,MAAM,EAAE;QACR,OAAO,IAAA,2BAAkB,EAAC,KAAK,EAAC,MAAM,CAAC,CAAC;KAC3C;SAAM;QACH,OAAO,IAAA,qBAAY,EAAC,KAAK,CAAC,CAAC;KAC9B;AACL,CAAC;AAND,iCAMC"}
@@ -13,8 +13,8 @@
13
13
  * limitations under the License.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- var format_1 = require("../Integer/format");
17
- var format_2 = require("../Integer/format");
16
+ const format_1 = require("../Integer/format");
17
+ const format_2 = require("../Integer/format");
18
18
  /**
19
19
  * Creates a drafter for a long
20
20
  * @param {number} value - the Long
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/Long/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAEH,4CAA8D;AAC9D,4CAA0E;AAE1E;;;;;GAKG;AACH,SAAwB,WAAW,CAAC,KAAY,EAAC,MAAa;IAC1D,IAAI,MAAM,EAAE;QACR,OAAO,IAAA,2BAAe,EAAC,KAAK,EAAC,MAAM,CAAC,CAAC;KACxC;SAAM;QACH,OAAO,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC;KAC3B;AACL,CAAC;AAND,8BAMC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/Long/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAEH,8CAA8D;AAC9D,8CAA0E;AAE1E;;;;;GAKG;AACH,SAAwB,WAAW,CAAC,KAAY,EAAC,MAAa;IAC1D,IAAI,MAAM,EAAE;QACR,OAAO,IAAA,2BAAe,EAAC,KAAK,EAAC,MAAM,CAAC,CAAC;KACxC;SAAM;QACH,OAAO,IAAA,qBAAS,EAAC,KAAK,CAAC,CAAC;KAC3B;AACL,CAAC;AAND,8BAMC"}
@@ -13,9 +13,9 @@
13
13
  * limitations under the License.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- var format_1 = require("../Double/format");
17
- var format_2 = require("../Double/format");
18
- var currencycode_1 = require("./currencycode");
16
+ const format_1 = require("../Double/format");
17
+ const format_2 = require("../Double/format");
18
+ const currencycode_1 = require("./currencycode");
19
19
  /**
20
20
  * Creates a drafter for monetary amount with no format
21
21
  * @param {object} value the monetary amount
@@ -30,7 +30,7 @@ function monetaryAmountDefaultDrafter(value) {
30
30
  * @returns {string} the symbol
31
31
  */
32
32
  function codeSymbol(c) {
33
- var index = Object.keys(currencycode_1.CurrencyCode).indexOf(c);
33
+ const index = Object.keys(currencycode_1.CurrencyCode).indexOf(c);
34
34
  if (index >= 0) {
35
35
  return Object.values(currencycode_1.CurrencyCode)[index];
36
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/drafting/MonetaryAmount/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;AAEH,2CAAmD;AACnD,2CAAqD;AACrD,+CAA8C;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,IAAM,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
+ {"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"}
@@ -17,13 +17,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.getDrafter = void 0;
20
- var Boolean_1 = __importDefault(require("./Boolean"));
21
- var DateTime_1 = __importDefault(require("./DateTime"));
22
- var Double_1 = __importDefault(require("./Double"));
23
- var Integer_1 = __importDefault(require("./Integer"));
24
- var Long_1 = __importDefault(require("./Long"));
25
- var MonetaryAmount_1 = __importDefault(require("./MonetaryAmount"));
26
- var String_1 = __importDefault(require("./String"));
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
27
  function getDrafter(typeName) {
28
28
  switch (typeName) {
29
29
  case 'Boolean': return Boolean_1.default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/drafting/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;GAYG;;;;;;AAEH,sDAAuC;AACvC,wDAAyC;AACzC,oDAAqC;AACrC,sDAAuC;AACvC,gDAAiC;AACjC,oEAAqD;AACrD,oDAAqC;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
+ {"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"}
@@ -0,0 +1,13 @@
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
+ }
@@ -0,0 +1,5 @@
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"concerto.js","sourceRoot":"","sources":["../../src/model-gen/concerto.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,yCAAyC"}
@@ -46,7 +46,24 @@ export interface IDeclaration extends IConcept {
46
46
  decorators?: IDecorator[];
47
47
  location?: IRange;
48
48
  }
49
- export type DeclarationUnion = IEnumDeclaration | IConceptDeclaration | IScalarDeclaration;
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
+ }
50
67
  export interface IEnumDeclaration extends IDeclaration {
51
68
  properties: IEnumProperty[];
52
69
  }
@@ -93,11 +110,16 @@ export interface IDateTimeProperty extends IProperty {
93
110
  export interface IStringProperty extends IProperty {
94
111
  defaultValue?: string;
95
112
  validator?: IStringRegexValidator;
113
+ lengthValidator?: IStringLengthValidator;
96
114
  }
97
115
  export interface IStringRegexValidator extends IConcept {
98
116
  pattern: string;
99
117
  flags: string;
100
118
  }
119
+ export interface IStringLengthValidator extends IConcept {
120
+ minLength?: number;
121
+ maxLength?: number;
122
+ }
101
123
  export interface IDoubleProperty extends IProperty {
102
124
  defaultValue?: number;
103
125
  validator?: IDoubleDomainValidator;
@@ -167,6 +189,7 @@ export interface IDoubleScalar extends IScalarDeclaration {
167
189
  export interface IStringScalar extends IScalarDeclaration {
168
190
  defaultValue?: string;
169
191
  validator?: IStringRegexValidator;
192
+ lengthValidator?: IStringLengthValidator;
170
193
  }
171
194
  export interface IDateTimeScalar extends IScalarDeclaration {
172
195
  defaultValue?: string;
@@ -1,9 +1,10 @@
1
- import type { IPosition, IRange, ITypeIdentifier, IDecoratorLiteral, IDecorator, IIdentified, IDeclaration, IEnumProperty, IProperty, IStringRegexValidator, IDoubleDomainValidator, IIntegerDomainValidator, ILongDomainValidator, IImport, IModel, IModels } from './concerto.metamodel@1.0.0';
1
+ import type { ICode } from './org.accordproject.templatemark@0.5.0';
2
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';
3
4
  export interface IConcept {
4
5
  $class: string;
5
6
  }
6
- export type ConceptUnion = IPosition | IRange | ITypeIdentifier | IDecoratorLiteral | IDecorator | IIdentified | IDeclaration | IEnumProperty | IProperty | IStringRegexValidator | IDoubleDomainValidator | IIntegerDomainValidator | ILongDomainValidator | IImport | IModel | IModels | INode | IAttribute | ITagInfo;
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;
7
8
  export interface IAsset extends IConcept {
8
9
  $identifier: string;
9
10
  }
@@ -1,4 +1,4 @@
1
- import type { IElement } from './org.accordproject.ciceromark@0.6.0';
1
+ import type { IElementDefinition } from './org.accordproject.templatemark@0.5.0';
2
2
  import { IConcept } from './concerto@1.0.0';
3
3
  export interface INode extends IConcept {
4
4
  text?: string;
@@ -12,7 +12,7 @@ export interface IRoot extends INode {
12
12
  export type RootUnion = IDocument;
13
13
  export interface IChild extends INode {
14
14
  }
15
- export type ChildUnion = IText | ICodeBlock | ICode | IHtmlInline | IHtmlBlock | IEmph | IStrong | IBlockQuote | IHeading | IThematicBreak | ISoftbreak | ILinebreak | ILink | IImage | IParagraph | IList | IItem | ITable | ITableHead | ITableBody | ITableRow | IHeaderCell | ITableCell | IElement;
15
+ export type ChildUnion = IElementDefinition | IText | ICodeBlock | ICode | IHtmlInline | IHtmlBlock | IEmph | IStrong | IBlockQuote | IHeading | IThematicBreak | ISoftbreak | ILinebreak | ILink | IImage | IParagraph | IList | IItem | ITable | ITableHead | ITableBody | ITableRow | IHeaderCell | ITableCell;
16
16
  export interface IText extends IChild {
17
17
  }
18
18
  export interface IAttribute extends IConcept {
@@ -2,6 +2,7 @@ import { IChild } from './org.accordproject.commonmark@0.5.0';
2
2
  import { IDecorator } from './concerto.metamodel@1.0.0';
3
3
  import { IConcept } from './concerto@1.0.0';
4
4
  export declare enum CodeType {
5
+ TYPESCRIPT = "TYPESCRIPT",
5
6
  ES_2020 = "ES_2020"
6
7
  }
7
8
  export interface ICode extends IConcept {
@@ -49,7 +50,10 @@ export interface IOptionalDefinition extends IBlockDefinition {
49
50
  whenNone: IChild[];
50
51
  }
51
52
  export interface IJoinDefinition extends IBlockDefinition {
52
- separator: string;
53
+ separator?: string;
54
+ locale?: string;
55
+ type?: string;
56
+ style?: string;
53
57
  }
54
58
  export interface IListBlockDefinition extends IBlockDefinition {
55
59
  type: string;
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
  /* eslint-disable @typescript-eslint/no-empty-interface */
3
- // Generated code for namespace: org.accordproject.templatemark@0.4.0
3
+ // Generated code for namespace: org.accordproject.templatemark@0.5.0
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
5
  exports.CodeType = void 0;
6
6
  // interfaces
7
7
  var CodeType;
8
8
  (function (CodeType) {
9
+ CodeType["TYPESCRIPT"] = "TYPESCRIPT";
9
10
  CodeType["ES_2020"] = "ES_2020";
10
11
  })(CodeType = exports.CodeType || (exports.CodeType = {}));
11
- //# sourceMappingURL=org.accordproject.templatemark@0.4.0.js.map
12
+ //# sourceMappingURL=org.accordproject.templatemark@0.5.0.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"org.accordproject.templatemark@0.5.0.js","sourceRoot":"","sources":["../../src/model-gen/org.accordproject.templatemark@0.5.0.ts"],"names":[],"mappings":";AAAA,0DAA0D;AAC1D,qEAAqE;;;AAarE,aAAa;AACb,IAAY,QAGX;AAHD,WAAY,QAAQ;IACjB,qCAAyB,CAAA;IACzB,+BAAmB,CAAA;AACtB,CAAC,EAHW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAGnB"}