@accordproject/template-engine 2.1.1 → 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.
- package/dist/index.d.ts +123 -2
- package/dist/index.js +1437 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1414 -0
- package/dist/index.mjs.map +1 -0
- package/dist/runtime.tgz +0 -0
- package/package.json +6 -2
- package/dist/Common.d.ts +0 -20
- package/dist/Common.js +0 -55
- package/dist/Common.js.map +0 -1
- package/dist/TemplateMarkInterpreter.d.ts +0 -34
- package/dist/TemplateMarkInterpreter.js +0 -402
- package/dist/TemplateMarkInterpreter.js.map +0 -1
- package/dist/TemplateMarkToJavaScriptCompiler.d.ts +0 -20
- package/dist/TemplateMarkToJavaScriptCompiler.js +0 -99
- package/dist/TemplateMarkToJavaScriptCompiler.js.map +0 -1
- package/dist/TemplateMarkToTypeScriptCompiler.d.ts +0 -77
- package/dist/TemplateMarkToTypeScriptCompiler.js +0 -311
- package/dist/TemplateMarkToTypeScriptCompiler.js.map +0 -1
- package/dist/TypeScriptCompilationContext.d.ts +0 -15
- package/dist/TypeScriptCompilationContext.js +0 -57
- package/dist/TypeScriptCompilationContext.js.map +0 -1
- package/dist/TypeScriptRuntime.d.ts +0 -14
- package/dist/TypeScriptRuntime.js +0 -79
- package/dist/TypeScriptRuntime.js.map +0 -1
- package/dist/TypeScriptToJavaScriptCompiler.d.ts +0 -16
- package/dist/TypeScriptToJavaScriptCompiler.js +0 -69
- package/dist/TypeScriptToJavaScriptCompiler.js.map +0 -1
- package/dist/compilers/Clause.d.ts +0 -14
- package/dist/compilers/Clause.js +0 -43
- package/dist/compilers/Clause.js.map +0 -1
- package/dist/compilers/Common.d.ts +0 -66
- package/dist/compilers/Common.js +0 -180
- package/dist/compilers/Common.js.map +0 -1
- package/dist/compilers/Conditional.d.ts +0 -12
- package/dist/compilers/Conditional.js +0 -36
- package/dist/compilers/Conditional.js.map +0 -1
- package/dist/compilers/ContractDefinition.d.ts +0 -8
- package/dist/compilers/ContractDefinition.js +0 -33
- package/dist/compilers/ContractDefinition.js.map +0 -1
- package/dist/compilers/EnumVariable.d.ts +0 -8
- package/dist/compilers/EnumVariable.js +0 -28
- package/dist/compilers/EnumVariable.js.map +0 -1
- package/dist/compilers/FormattedVariable.d.ts +0 -8
- package/dist/compilers/FormattedVariable.js +0 -29
- package/dist/compilers/FormattedVariable.js.map +0 -1
- package/dist/compilers/Formula.d.ts +0 -8
- package/dist/compilers/Formula.js +0 -24
- package/dist/compilers/Formula.js.map +0 -1
- package/dist/compilers/Join.d.ts +0 -8
- package/dist/compilers/Join.js +0 -23
- package/dist/compilers/Join.js.map +0 -1
- package/dist/compilers/ListBlock.d.ts +0 -11
- package/dist/compilers/ListBlock.js +0 -39
- package/dist/compilers/ListBlock.js.map +0 -1
- package/dist/compilers/NodeCompilers.d.ts +0 -7
- package/dist/compilers/NodeCompilers.js +0 -89
- package/dist/compilers/NodeCompilers.js.map +0 -1
- package/dist/compilers/Optional.d.ts +0 -11
- package/dist/compilers/Optional.js +0 -48
- package/dist/compilers/Optional.js.map +0 -1
- package/dist/compilers/Variable.d.ts +0 -8
- package/dist/compilers/Variable.js +0 -28
- package/dist/compilers/Variable.js.map +0 -1
- package/dist/compilers/With.d.ts +0 -10
- package/dist/compilers/With.js +0 -23
- package/dist/compilers/With.js.map +0 -1
- package/dist/drafting/Boolean/index.d.ts +0 -6
- package/dist/drafting/Boolean/index.js +0 -30
- package/dist/drafting/Boolean/index.js.map +0 -1
- package/dist/drafting/DateTime/index.d.ts +0 -7
- package/dist/drafting/DateTime/index.js +0 -33
- package/dist/drafting/DateTime/index.js.map +0 -1
- package/dist/drafting/Double/format.d.ts +0 -13
- package/dist/drafting/Double/format.js +0 -55
- package/dist/drafting/Double/format.js.map +0 -1
- package/dist/drafting/Double/index.d.ts +0 -7
- package/dist/drafting/Double/index.js +0 -33
- package/dist/drafting/Double/index.js.map +0 -1
- package/dist/drafting/Integer/format.d.ts +0 -13
- package/dist/drafting/Integer/format.js +0 -45
- package/dist/drafting/Integer/format.js.map +0 -1
- package/dist/drafting/Integer/index.d.ts +0 -7
- package/dist/drafting/Integer/index.js +0 -33
- package/dist/drafting/Integer/index.js.map +0 -1
- package/dist/drafting/Long/index.d.ts +0 -7
- package/dist/drafting/Long/index.js +0 -33
- package/dist/drafting/Long/index.js.map +0 -1
- package/dist/drafting/MonetaryAmount/currencycode.d.ts +0 -35
- package/dist/drafting/MonetaryAmount/currencycode.js +0 -53
- package/dist/drafting/MonetaryAmount/currencycode.js.map +0 -1
- package/dist/drafting/MonetaryAmount/index.d.ts +0 -12
- package/dist/drafting/MonetaryAmount/index.js +0 -67
- package/dist/drafting/MonetaryAmount/index.js.map +0 -1
- package/dist/drafting/String/index.d.ts +0 -6
- package/dist/drafting/String/index.js +0 -25
- package/dist/drafting/String/index.js.map +0 -1
- package/dist/drafting/index.d.ts +0 -1
- package/dist/drafting/index.js +0 -40
- package/dist/drafting/index.js.map +0 -1
- package/dist/model-gen/concerto.d.ts +0 -13
- package/dist/model-gen/concerto.js +0 -5
- package/dist/model-gen/concerto.js.map +0 -1
- package/dist/model-gen/concerto.metamodel@1.0.0.d.ts +0 -196
- package/dist/model-gen/concerto.metamodel@1.0.0.js +0 -5
- package/dist/model-gen/concerto.metamodel@1.0.0.js.map +0 -1
- package/dist/model-gen/concerto@1.0.0.d.ts +0 -19
- package/dist/model-gen/concerto@1.0.0.js +0 -5
- package/dist/model-gen/concerto@1.0.0.js.map +0 -1
- package/dist/model-gen/org.accordproject.ciceromark@0.6.0.d.ts +0 -49
- package/dist/model-gen/org.accordproject.ciceromark@0.6.0.js +0 -5
- package/dist/model-gen/org.accordproject.ciceromark@0.6.0.js.map +0 -1
- package/dist/model-gen/org.accordproject.commonmark@0.5.0.d.ts +0 -89
- package/dist/model-gen/org.accordproject.commonmark@0.5.0.js +0 -5
- package/dist/model-gen/org.accordproject.commonmark@0.5.0.js.map +0 -1
- package/dist/model-gen/org.accordproject.templatemark@0.5.0.d.ts +0 -76
- package/dist/model-gen/org.accordproject.templatemark@0.5.0.js +0 -12
- package/dist/model-gen/org.accordproject.templatemark@0.5.0.js.map +0 -1
- package/dist/runtime/declarations.d.ts +0 -2
- package/dist/runtime/declarations.js +0 -21
- package/dist/runtime/declarations.js.map +0 -1
- package/dist/runtime/runtime.d.ts +0 -1
- package/dist/runtime/runtime.js +0 -20
- package/dist/runtime/runtime.js.map +0 -1
- package/dist/utils.d.ts +0 -5
- package/dist/utils.js +0 -43
- package/dist/utils.js.map +0 -1
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
* you may not use this file except in compliance with the License.
|
|
4
|
-
* You may obtain a copy of the License at
|
|
5
|
-
*
|
|
6
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
*
|
|
8
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
* See the License for the specific language governing permissions and
|
|
12
|
-
* limitations under the License.
|
|
13
|
-
*/
|
|
14
|
-
'use strict';
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
const format_1 = require("./format");
|
|
17
|
-
const format_2 = require("./format");
|
|
18
|
-
/**
|
|
19
|
-
* Creates a drafter for an Integer
|
|
20
|
-
* @param {number} value - the integer
|
|
21
|
-
* @param {string} format - the format
|
|
22
|
-
* @returns {string} the text
|
|
23
|
-
*/
|
|
24
|
-
function integerDrafter(value, format) {
|
|
25
|
-
if (format) {
|
|
26
|
-
return (0, format_2.draftIntegerFormat)(value, format);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return (0, format_1.draftInteger)(value);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.default = integerDrafter;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,33 +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("../Integer/format");
|
|
17
|
-
const format_2 = require("../Integer/format");
|
|
18
|
-
/**
|
|
19
|
-
* Creates a drafter for a long
|
|
20
|
-
* @param {number} value - the Long
|
|
21
|
-
* @param {string} format - the format
|
|
22
|
-
* @returns {string} the text
|
|
23
|
-
*/
|
|
24
|
-
function longDrafter(value, format) {
|
|
25
|
-
if (format) {
|
|
26
|
-
return (0, format_2.draftIntegerFormat)(value, format);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
return (0, format_1.draftInteger)(value);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.default = longDrafter;
|
|
33
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -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,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"}
|
package/dist/drafting/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDrafter(typeName: string): ((value: any, format: string) => string) | null;
|
package/dist/drafting/index.js
DELETED
|
@@ -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 +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 +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 +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
|
-
}
|