pareto 0.80.74 → 0.80.76
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/modules/pareto_new/schemas/module/shorthands/target.d.ts +10 -0
- package/dist/modules/pareto_new/schemas/module/shorthands/target.js +11 -1
- package/dist/modules/pareto_new/schemas/refiner/schema.d.ts +406 -37
- package/dist/modules/pareto_new/schemas/refiner/schema.js +3 -4
- package/dist/modules/pareto_new/schemas/refiner/shorthands/target.d.ts +77 -5
- package/dist/modules/pareto_new/schemas/refiner/shorthands/target.js +205 -8
- package/dist/modules/pareto_new/schemas/refiner/transformers/typescript_light.d.ts +6 -0
- package/dist/modules/pareto_new/schemas/refiner/transformers/typescript_light.js +363 -18
- package/dist/modules/pareto_new/schemas/schema/schema.d.ts +123 -56
- package/dist/modules/pareto_new/schemas/schema/schema.js +3 -3
- package/dist/modules/pareto_new/schemas/schema/shorthands/target.d.ts +12 -11
- package/dist/modules/pareto_new/schemas/schema/shorthands/target.js +9 -6
- package/dist/modules/pareto_new/schemas/schema/transformers/typescript_light.js +6 -6
- package/dist/modules/pareto_new/schemas/schema_reference/schema.d.ts +48 -11
- package/dist/modules/pareto_new/schemas/schema_reference/schema.js +2 -1
- package/dist/modules/pareto_new/schemas/schema_reference/shorthands/target.d.ts +11 -2
- package/dist/modules/pareto_new/schemas/schema_reference/shorthands/target.js +29 -6
- package/dist/modules/pareto_new/schemas/schema_reference/transformers/typescript_light.d.ts +8 -0
- package/dist/modules/pareto_new/schemas/schema_reference/transformers/typescript_light.js +24 -4
- package/dist/modules/pareto_new/schemas/transformer/schema.d.ts +388 -33
- package/dist/modules/pareto_new/schemas/transformer/schema.js +3 -4
- package/dist/modules/pareto_new/schemas/transformer/shorthands/target.d.ts +75 -3
- package/dist/modules/pareto_new/schemas/transformer/shorthands/target.js +196 -47
- package/dist/modules/pareto_new/schemas/transformer/transformers/typescript_light.d.ts +7 -1
- package/dist/modules/pareto_new/schemas/transformer/transformers/typescript_light.js +313 -30
- package/dist/modules/typescript_light/schemas/typescript_light/schema.d.ts +293 -259
- package/dist/modules/typescript_light/schemas/typescript_light/schema.js +3 -3
- package/dist/modules/typescript_light/schemas/{primitives → typescript_light}/serializers.d.ts +7 -8
- package/dist/modules/typescript_light/schemas/typescript_light/serializers.js +487 -0
- package/dist/modules/typescript_light/schemas/typescript_light/shorthands/target.d.ts +16 -14
- package/dist/modules/typescript_light/schemas/typescript_light/shorthands/target.js +39 -37
- package/dist/modules/typescript_light/schemas/typescript_light/transformers/paragraph.d.ts +8 -1
- package/dist/modules/typescript_light/schemas/typescript_light/transformers/paragraph.js +206 -222
- package/package.json +1 -1
- package/dist/modules/file_name/schemas/file_name/schema.d.ts +0 -1
- package/dist/modules/file_name/schemas/file_name/schema.js +0 -2
- package/dist/modules/file_name/schemas/file_name/serializers.d.ts +0 -6
- package/dist/modules/file_name/schemas/file_name/serializers.js +0 -23
- package/dist/modules/implementation_old/schemas/resolved/schema.d.ts +0 -748
- package/dist/modules/implementation_old/schemas/resolved/schema.js +0 -4
- package/dist/modules/implementation_old/schemas/resolved/shorthands/target.d.ts +0 -134
- package/dist/modules/implementation_old/schemas/resolved/shorthands/target.js +0 -460
- package/dist/modules/implementation_old/schemas/resolved/transformers/typescript_project.d.ts +0 -5
- package/dist/modules/implementation_old/schemas/resolved/transformers/typescript_project.js +0 -9
- package/dist/modules/implementation_old/schemas/resolved/transformers/typescript_source_file.d.ts +0 -9
- package/dist/modules/implementation_old/schemas/resolved/transformers/typescript_source_file.js +0 -647
- package/dist/modules/implementation_old/schemas/unresolved/schema.d.ts +0 -1288
- package/dist/modules/implementation_old/schemas/unresolved/schema.js +0 -4
- package/dist/modules/interface_old/schemas/resolved/schema.d.ts +0 -160
- package/dist/modules/interface_old/schemas/resolved/schema.js +0 -3
- package/dist/modules/interface_old/schemas/resolved/shorthands/target.d.ts +0 -47
- package/dist/modules/interface_old/schemas/resolved/shorthands/target.js +0 -185
- package/dist/modules/interface_old/schemas/resolved/transformers/to_be_written_directory_content.d.ts +0 -5
- package/dist/modules/interface_old/schemas/resolved/transformers/to_be_written_directory_content.js +0 -9
- package/dist/modules/interface_old/schemas/resolved/transformers/typescript.d.ts +0 -10
- package/dist/modules/interface_old/schemas/resolved/transformers/typescript.js +0 -270
- package/dist/modules/interface_old/schemas/unresolved/schema.d.ts +0 -371
- package/dist/modules/interface_old/schemas/unresolved/schema.js +0 -4
- package/dist/modules/pareto_new/schemas/type_reference/schema.d.ts +0 -18
- package/dist/modules/pareto_new/schemas/type_reference/schema.js +0 -2
- package/dist/modules/pareto_new/schemas/type_reference/shorthands/target.d.ts +0 -3
- package/dist/modules/pareto_new/schemas/type_reference/shorthands/target.js +0 -8
- package/dist/modules/pareto_new/schemas/value_reference/schema.d.ts +0 -18
- package/dist/modules/pareto_new/schemas/value_reference/schema.js +0 -3
- package/dist/modules/pareto_new/schemas/value_reference/shorthands/target.d.ts +0 -10
- package/dist/modules/pareto_new/schemas/value_reference/shorthands/target.js +0 -18
- package/dist/modules/pareto_old/schemas/library/schema.d.ts +0 -1
- package/dist/modules/pareto_old/schemas/library/schema.js +0 -2
- package/dist/modules/pareto_old/schemas/library/transformers/typescript_light.d.ts +0 -12
- package/dist/modules/pareto_old/schemas/library/transformers/typescript_light.js +0 -13
- package/dist/modules/typescript_light/schemas/identifier/schema.d.ts +0 -1
- package/dist/modules/typescript_light/schemas/identifier/schema.js +0 -2
- package/dist/modules/typescript_light/schemas/identifier/serializers.d.ts +0 -2
- package/dist/modules/typescript_light/schemas/identifier/serializers.js +0 -230
- package/dist/modules/typescript_light/schemas/primitives/schema.d.ts +0 -2
- package/dist/modules/typescript_light/schemas/primitives/schema.js +0 -2
- package/dist/modules/typescript_light/schemas/primitives/serializers.js +0 -255
- package/dist/temp/single_entry_dictionary.d.ts +0 -2
- package/dist/temp/single_entry_dictionary.js +0 -8
|
@@ -9,11 +9,31 @@ export const Schema_Reference = ($) => ({
|
|
|
9
9
|
'delimiter': ['quote', null],
|
|
10
10
|
'value': p_.from.state($).decide(($) => {
|
|
11
11
|
switch ($[0]) {
|
|
12
|
-
case 'child': return p_.option($, ($) => "../modules/" + ser_path.Name($.module) + "/schemas/" + ser_path.Name($.schema) + "/schema.js")
|
|
13
|
-
case 'external': return p_.option($, ($) => ser_path.
|
|
14
|
-
case 'sibling': return p_.option($, ($) => "../../" + ser_path.
|
|
12
|
+
// case 'child': return p_.option($, ($) => "../modules/" + ser_path.Name($.module) + "/schemas/" + ser_path.Name($.schema) + "/schema.js")
|
|
13
|
+
case 'external': return p_.option($, ($) => ser_path.No_Space_Name($.package) + "/modules/" + ser_path.No_Space_Name($.module) + "/schemas/" + ser_path.No_Space_Name($.schema) + "/schema");
|
|
14
|
+
case 'sibling': return p_.option($, ($) => "../../" + ser_path.No_Space_Name($) + "/schema.js");
|
|
15
15
|
default: return p_.exhaustive($[0]);
|
|
16
16
|
}
|
|
17
17
|
})
|
|
18
18
|
});
|
|
19
|
-
|
|
19
|
+
export const Type_Reference = ($, $p) => sh.t.type_reference($p.schema, p_.literal.segmented_list([
|
|
20
|
+
p_.literal.list([
|
|
21
|
+
sh.identifier_escaped($.type)
|
|
22
|
+
]),
|
|
23
|
+
]), p_.literal.list([]));
|
|
24
|
+
export const Value_Reference = ($, $p) => sh.t.type_reference($p.schema, p_.literal.segmented_list([
|
|
25
|
+
p_.literal.list([
|
|
26
|
+
sh.identifier_escaped($.type)
|
|
27
|
+
]),
|
|
28
|
+
p_.from.list($['subselection']).map(($) => p_.from.state($).decide(($) => {
|
|
29
|
+
switch ($[0]) {
|
|
30
|
+
case 'dictionary': return p_.option($, ($) => sh.identifier_raw("D"));
|
|
31
|
+
case 'group': return p_.option($, ($) => sh.identifier_escaped($.property));
|
|
32
|
+
case 'list': return p_.option($, ($) => sh.identifier_raw("L"));
|
|
33
|
+
case 'optional': return p_.option($, ($) => sh.identifier_raw("O"));
|
|
34
|
+
case 'state': return p_.option($, ($) => sh.identifier_escaped($.option));
|
|
35
|
+
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BRSxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFBO1lBQy9ELEtBQUssVUFBVSxDQUFDLENBQUMsT0FBTyxFQUFFLENBQUMsTUFBTSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDLGNBQWMsQ0FBQyxHQUFHLENBQUMsQ0FBQyxDQUFBO1lBQ25FLEtBQUssT0FBTyxDQUFDLENBQUMsT0FBTyxFQUFFLENBQUMsTUFBTSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsRUFBRSxDQUFDLGtCQUFrQixDQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFBO1lBQ3pFLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUN2QyxDQUFDO0lBQ0wsQ0FBQyxDQUNKLENBQ0o7Q0FDSixDQUFDLEVBQ0YsRUFBRSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsRUFBRSxDQUFDLENBQ3RCLENBQUEifQ==
|
|
@@ -1,40 +1,395 @@
|
|
|
1
1
|
import * as p_ from 'pareto-core/schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
declare namespace Value_Selection_Tail_ {
|
|
3
|
+
type L = string;
|
|
4
|
+
}
|
|
5
|
+
type Value_Selection_Tail_ = p_.List<Value_Selection_Tail_.L>;
|
|
6
|
+
declare namespace Select_Value_ {
|
|
7
|
+
namespace call {
|
|
8
|
+
namespace scope {
|
|
9
|
+
namespace external {
|
|
10
|
+
type transformer = string;
|
|
11
|
+
type function_ = string;
|
|
12
|
+
}
|
|
13
|
+
type external = {
|
|
14
|
+
readonly 'transformer': external.transformer;
|
|
15
|
+
readonly 'function': external.function_;
|
|
16
|
+
};
|
|
17
|
+
namespace local {
|
|
18
|
+
type function_ = string;
|
|
19
|
+
}
|
|
20
|
+
type local = {
|
|
21
|
+
readonly 'function': local.function_;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
type scope = readonly ['external', scope.external] | readonly ['local', scope.local];
|
|
25
|
+
type context = Select_Value_;
|
|
26
|
+
namespace arguments_ {
|
|
27
|
+
type omit = null;
|
|
28
|
+
type pass_through = null;
|
|
29
|
+
type initialize = Expression_;
|
|
30
|
+
}
|
|
31
|
+
type arguments_ = readonly ['omit', arguments_.omit] | readonly ['pass through', arguments_.pass_through] | readonly ['initialize', arguments_.initialize];
|
|
32
|
+
type tail = Value_Selection_Tail_;
|
|
33
|
+
}
|
|
34
|
+
type call = {
|
|
35
|
+
readonly 'scope': call.scope;
|
|
36
|
+
readonly 'context': call.context;
|
|
37
|
+
readonly 'arguments': call.arguments_;
|
|
38
|
+
readonly 'tail': call.tail;
|
|
39
|
+
};
|
|
40
|
+
namespace context_value {
|
|
41
|
+
type tail = Value_Selection_Tail_;
|
|
42
|
+
}
|
|
43
|
+
type context_value = {
|
|
44
|
+
readonly 'tail': context_value.tail;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
type Select_Value_ = readonly ['call', Select_Value_.call] | readonly ['context value', Select_Value_.context_value];
|
|
48
|
+
declare namespace Value_Reference_ {
|
|
49
|
+
type type_ = string;
|
|
50
|
+
namespace subselection {
|
|
51
|
+
namespace L {
|
|
52
|
+
type dictionary = null;
|
|
53
|
+
namespace group {
|
|
54
|
+
type property = string;
|
|
55
|
+
}
|
|
56
|
+
type group = {
|
|
57
|
+
readonly 'property': group.property;
|
|
58
|
+
};
|
|
59
|
+
type list = null;
|
|
60
|
+
type optional = null;
|
|
61
|
+
namespace state {
|
|
62
|
+
type option = string;
|
|
63
|
+
}
|
|
64
|
+
type state = {
|
|
65
|
+
readonly 'option': state.option;
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
type L = readonly ['dictionary', L.dictionary] | readonly ['group', L.group] | readonly ['list', L.list] | readonly ['optional', L.optional] | readonly ['state', L.state];
|
|
69
|
+
}
|
|
70
|
+
type subselection = p_.List<subselection.L>;
|
|
71
|
+
}
|
|
72
|
+
type Value_Reference_ = {
|
|
73
|
+
readonly 'type': Value_Reference_.type_;
|
|
74
|
+
readonly 'subselection': Value_Reference_.subselection;
|
|
12
75
|
};
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
76
|
+
declare namespace Expression_ {
|
|
77
|
+
namespace change_context {
|
|
78
|
+
type select = Select_Value_;
|
|
79
|
+
type callback = Expression_;
|
|
80
|
+
}
|
|
81
|
+
type change_context = {
|
|
82
|
+
readonly 'select': change_context.select;
|
|
83
|
+
readonly 'callback': change_context.callback;
|
|
84
|
+
};
|
|
85
|
+
namespace convert {
|
|
86
|
+
type select = Select_Value_;
|
|
87
|
+
namespace type_ {
|
|
88
|
+
namespace component {
|
|
89
|
+
namespace transform {
|
|
90
|
+
namespace scope {
|
|
91
|
+
namespace external {
|
|
92
|
+
type transformer = string;
|
|
93
|
+
type function_ = string;
|
|
94
|
+
}
|
|
95
|
+
type external = {
|
|
96
|
+
readonly 'transformer': external.transformer;
|
|
97
|
+
readonly 'function': external.function_;
|
|
98
|
+
};
|
|
99
|
+
namespace local {
|
|
100
|
+
type function_ = string;
|
|
101
|
+
}
|
|
102
|
+
type local = {
|
|
103
|
+
readonly 'function': local.function_;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
type scope = readonly ['external', scope.external] | readonly ['local', scope.local];
|
|
107
|
+
namespace arguments_ {
|
|
108
|
+
type omit = null;
|
|
109
|
+
type pass_through = null;
|
|
110
|
+
namespace initialize {
|
|
111
|
+
type expression = Expression_;
|
|
112
|
+
}
|
|
113
|
+
type initialize = {
|
|
114
|
+
readonly 'expression': initialize.expression;
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
type arguments_ = readonly ['omit', arguments_.omit] | readonly ['pass through', arguments_.pass_through] | readonly ['initialize', arguments_.initialize];
|
|
118
|
+
}
|
|
119
|
+
type transform = {
|
|
120
|
+
readonly 'scope': transform.scope;
|
|
121
|
+
readonly 'arguments': transform.arguments_;
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
type component = readonly ['transform', component.transform];
|
|
125
|
+
namespace dictionary {
|
|
126
|
+
namespace map {
|
|
127
|
+
type on_entry = Expression_;
|
|
128
|
+
}
|
|
129
|
+
type map = {
|
|
130
|
+
readonly 'on entry': map.on_entry;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
type dictionary = readonly ['map', dictionary.map];
|
|
134
|
+
namespace list {
|
|
135
|
+
namespace map {
|
|
136
|
+
type on_item = Expression_;
|
|
137
|
+
}
|
|
138
|
+
type map = {
|
|
139
|
+
readonly 'on item': map.on_item;
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
type list = readonly ['map', list.map];
|
|
143
|
+
namespace optional {
|
|
144
|
+
namespace decide {
|
|
145
|
+
namespace temp_return_type {
|
|
146
|
+
type O = Value_Reference_;
|
|
147
|
+
}
|
|
148
|
+
type temp_return_type = p_.Optional_Value<temp_return_type.O>;
|
|
149
|
+
type on_set = Expression_;
|
|
150
|
+
type on_not_set = Expression_;
|
|
151
|
+
}
|
|
152
|
+
type decide = {
|
|
153
|
+
readonly 'temp return type': decide.temp_return_type;
|
|
154
|
+
readonly 'on set': decide.on_set;
|
|
155
|
+
readonly 'on not set': decide.on_not_set;
|
|
156
|
+
};
|
|
157
|
+
namespace map {
|
|
158
|
+
type on_set = Expression_;
|
|
159
|
+
}
|
|
160
|
+
type map = {
|
|
161
|
+
readonly 'on set': map.on_set;
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
type optional = readonly ['decide', optional.decide] | readonly ['map', optional.map];
|
|
165
|
+
namespace state {
|
|
166
|
+
namespace decide {
|
|
167
|
+
namespace temp_return_type {
|
|
168
|
+
type O = Value_Reference_;
|
|
169
|
+
}
|
|
170
|
+
type temp_return_type = p_.Optional_Value<temp_return_type.O>;
|
|
171
|
+
namespace options {
|
|
172
|
+
type D = Expression_;
|
|
173
|
+
}
|
|
174
|
+
type options = p_.Dictionary<options.D>;
|
|
175
|
+
}
|
|
176
|
+
type decide = {
|
|
177
|
+
readonly 'temp return type': decide.temp_return_type;
|
|
178
|
+
readonly 'options': decide.options;
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
type state = readonly ['decide', state.decide];
|
|
182
|
+
}
|
|
183
|
+
type type_ = readonly ['component', type_.component] | readonly ['dictionary', type_.dictionary] | readonly ['list', type_.list] | readonly ['optional', type_.optional] | readonly ['state', type_.state];
|
|
184
|
+
}
|
|
185
|
+
type convert = {
|
|
186
|
+
readonly 'select': convert.select;
|
|
187
|
+
readonly 'type': convert.type_;
|
|
19
188
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
];
|
|
27
|
-
'source schema': string;
|
|
28
|
-
'target schema': string;
|
|
189
|
+
namespace implement_me {
|
|
190
|
+
type remark = string;
|
|
191
|
+
}
|
|
192
|
+
type implement_me = {
|
|
193
|
+
readonly 'remark': implement_me.remark;
|
|
29
194
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
195
|
+
namespace initialize {
|
|
196
|
+
namespace boolean_ {
|
|
197
|
+
type false_ = null;
|
|
198
|
+
type true_ = null;
|
|
199
|
+
}
|
|
200
|
+
type boolean_ = readonly ['false', boolean_.false_] | readonly ['true', boolean_.true_];
|
|
201
|
+
namespace dictionary {
|
|
202
|
+
type D = Expression_;
|
|
203
|
+
}
|
|
204
|
+
type dictionary = p_.Dictionary<dictionary.D>;
|
|
205
|
+
namespace group {
|
|
206
|
+
type D = Expression_;
|
|
207
|
+
}
|
|
208
|
+
type group = p_.Dictionary<group.D>;
|
|
209
|
+
namespace list {
|
|
210
|
+
type L = Expression_;
|
|
211
|
+
}
|
|
212
|
+
type list = p_.List<list.L>;
|
|
213
|
+
type nothing = null;
|
|
214
|
+
namespace number_ {
|
|
215
|
+
type natural = number;
|
|
216
|
+
type integer = number;
|
|
217
|
+
}
|
|
218
|
+
type number_ = readonly ['natural', number_.natural] | readonly ['integer', number_.integer];
|
|
219
|
+
namespace optional {
|
|
220
|
+
type not_set = null;
|
|
221
|
+
type set_ = Expression_;
|
|
222
|
+
}
|
|
223
|
+
type optional = readonly ['not set', optional.not_set] | readonly ['set', optional.set_];
|
|
224
|
+
type reference = string;
|
|
225
|
+
namespace state {
|
|
226
|
+
type option = string;
|
|
227
|
+
type data = Expression_;
|
|
228
|
+
}
|
|
229
|
+
type state = {
|
|
230
|
+
readonly 'option': state.option;
|
|
231
|
+
readonly 'data': state.data;
|
|
232
|
+
};
|
|
233
|
+
namespace text {
|
|
234
|
+
type literal = string;
|
|
235
|
+
namespace serialize {
|
|
236
|
+
namespace scope {
|
|
237
|
+
namespace external {
|
|
238
|
+
type serializer = string;
|
|
239
|
+
type function_ = string;
|
|
240
|
+
}
|
|
241
|
+
type external = {
|
|
242
|
+
readonly 'serializer': external.serializer;
|
|
243
|
+
readonly 'function': external.function_;
|
|
244
|
+
};
|
|
245
|
+
namespace local {
|
|
246
|
+
type function_ = string;
|
|
247
|
+
}
|
|
248
|
+
type local = {
|
|
249
|
+
readonly 'function': local.function_;
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
type scope = readonly ['external', scope.external] | readonly ['local', scope.local];
|
|
253
|
+
type context = Expression_;
|
|
254
|
+
namespace arguments_ {
|
|
255
|
+
type omit = null;
|
|
256
|
+
type pass_through = null;
|
|
257
|
+
type initialize = Expression_;
|
|
258
|
+
}
|
|
259
|
+
type arguments_ = readonly ['omit', arguments_.omit] | readonly ['pass through', arguments_.pass_through] | readonly ['initialize', arguments_.initialize];
|
|
260
|
+
}
|
|
261
|
+
type serialize = {
|
|
262
|
+
readonly 'scope': serialize.scope;
|
|
263
|
+
readonly 'context': serialize.context;
|
|
264
|
+
readonly 'arguments': serialize.arguments_;
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
type text = readonly ['literal', text.literal] | readonly ['serialize', text.serialize];
|
|
268
|
+
}
|
|
269
|
+
type initialize = readonly ['boolean', initialize.boolean_] | readonly ['dictionary', initialize.dictionary] | readonly ['group', initialize.group] | readonly ['list', initialize.list] | readonly ['nothing', initialize.nothing] | readonly ['number', initialize.number_] | readonly ['optional', initialize.optional] | readonly ['reference', initialize.reference] | readonly ['state', initialize.state] | readonly ['text', initialize.text];
|
|
270
|
+
type select = Select_Value_;
|
|
271
|
+
}
|
|
272
|
+
type Expression_ = readonly ['change context', Expression_.change_context] | readonly ['convert', Expression_.convert] | readonly ['implement me', Expression_.implement_me] | readonly ['initialize', Expression_.initialize] | readonly ['select', Expression_.select];
|
|
273
|
+
declare namespace Schema_Reference_ {
|
|
274
|
+
type sibling = string;
|
|
275
|
+
namespace external {
|
|
276
|
+
type package_ = string;
|
|
277
|
+
type module_ = string;
|
|
278
|
+
type schema = string;
|
|
279
|
+
}
|
|
280
|
+
type external = {
|
|
281
|
+
readonly 'package': external.package_;
|
|
282
|
+
readonly 'module': external.module_;
|
|
283
|
+
readonly 'schema': external.schema;
|
|
33
284
|
};
|
|
34
285
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
286
|
+
type Schema_Reference_ = readonly ['sibling', Schema_Reference_.sibling] | readonly ['external', Schema_Reference_.external];
|
|
287
|
+
declare namespace Type_Reference_ {
|
|
288
|
+
type type_ = string;
|
|
289
|
+
}
|
|
290
|
+
type Type_Reference_ = {
|
|
291
|
+
readonly 'type': Type_Reference_.type_;
|
|
292
|
+
};
|
|
293
|
+
declare namespace Root_ {
|
|
294
|
+
type development_mode = boolean;
|
|
295
|
+
type target_schema = Schema_Reference_;
|
|
296
|
+
namespace parameters_schema {
|
|
297
|
+
type O = Schema_Reference_;
|
|
39
298
|
}
|
|
40
|
-
|
|
299
|
+
type parameters_schema = p_.Optional_Value<parameters_schema.O>;
|
|
300
|
+
namespace dependencies {
|
|
301
|
+
namespace serializers {
|
|
302
|
+
namespace D {
|
|
303
|
+
type this_schema = null;
|
|
304
|
+
namespace cousin {
|
|
305
|
+
type schema = string;
|
|
306
|
+
}
|
|
307
|
+
type cousin = {
|
|
308
|
+
readonly 'schema': cousin.schema;
|
|
309
|
+
};
|
|
310
|
+
namespace external {
|
|
311
|
+
type package_ = string;
|
|
312
|
+
type module_ = string;
|
|
313
|
+
type schema = string;
|
|
314
|
+
}
|
|
315
|
+
type external = {
|
|
316
|
+
readonly 'package': external.package_;
|
|
317
|
+
readonly 'module': external.module_;
|
|
318
|
+
readonly 'schema': external.schema;
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
type D = readonly ['this schema', D.this_schema] | readonly ['cousin', D.cousin] | readonly ['external', D.external];
|
|
322
|
+
}
|
|
323
|
+
type serializers = p_.Dictionary<serializers.D>;
|
|
324
|
+
namespace transformers {
|
|
325
|
+
namespace D {
|
|
326
|
+
namespace sibling {
|
|
327
|
+
type transformer = string;
|
|
328
|
+
}
|
|
329
|
+
type sibling = {
|
|
330
|
+
readonly 'transformer': sibling.transformer;
|
|
331
|
+
};
|
|
332
|
+
namespace cousin {
|
|
333
|
+
type schema = string;
|
|
334
|
+
type transformer = string;
|
|
335
|
+
}
|
|
336
|
+
type cousin = {
|
|
337
|
+
readonly 'schema': cousin.schema;
|
|
338
|
+
readonly 'transformer': cousin.transformer;
|
|
339
|
+
};
|
|
340
|
+
namespace external {
|
|
341
|
+
type package_ = string;
|
|
342
|
+
type module_ = string;
|
|
343
|
+
type schema = string;
|
|
344
|
+
type transformer = string;
|
|
345
|
+
}
|
|
346
|
+
type external = {
|
|
347
|
+
readonly 'package': external.package_;
|
|
348
|
+
readonly 'module': external.module_;
|
|
349
|
+
readonly 'schema': external.schema;
|
|
350
|
+
readonly 'transformer': external.transformer;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
type D = readonly ['sibling', D.sibling] | readonly ['cousin', D.cousin] | readonly ['external', D.external];
|
|
354
|
+
}
|
|
355
|
+
type transformers = p_.Dictionary<transformers.D>;
|
|
356
|
+
}
|
|
357
|
+
type dependencies = {
|
|
358
|
+
readonly 'serializers': dependencies.serializers;
|
|
359
|
+
readonly 'transformers': dependencies.transformers;
|
|
360
|
+
};
|
|
361
|
+
namespace declarations {
|
|
362
|
+
namespace D {
|
|
363
|
+
type target = Value_Reference_;
|
|
364
|
+
namespace parameters {
|
|
365
|
+
type O = Type_Reference_;
|
|
366
|
+
}
|
|
367
|
+
type parameters = p_.Optional_Value<parameters.O>;
|
|
368
|
+
}
|
|
369
|
+
type D = {
|
|
370
|
+
readonly 'target': D.target;
|
|
371
|
+
readonly 'parameters': D.parameters;
|
|
372
|
+
};
|
|
373
|
+
}
|
|
374
|
+
type declarations = p_.Dictionary<declarations.D>;
|
|
375
|
+
namespace implementations {
|
|
376
|
+
namespace D {
|
|
377
|
+
type temp_has_parameters = boolean;
|
|
378
|
+
type expression = Expression_;
|
|
379
|
+
}
|
|
380
|
+
type D = {
|
|
381
|
+
readonly 'temp has parameters': D.temp_has_parameters;
|
|
382
|
+
readonly 'expression': D.expression;
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
type implementations = p_.Dictionary<implementations.D>;
|
|
386
|
+
}
|
|
387
|
+
type Root_ = {
|
|
388
|
+
readonly 'development mode': Root_.development_mode;
|
|
389
|
+
readonly 'target schema': Root_.target_schema;
|
|
390
|
+
readonly 'parameters schema': Root_.parameters_schema;
|
|
391
|
+
readonly 'dependencies': Root_.dependencies;
|
|
392
|
+
readonly 'declarations': Root_.declarations;
|
|
393
|
+
readonly 'implementations': Root_.implementations;
|
|
394
|
+
};
|
|
395
|
+
export { type Value_Selection_Tail_ as Value_Selection_Tail, type Select_Value_ as Select_Value, type Value_Reference_ as Value_Reference, type Expression_ as Expression, type Schema_Reference_ as Schema_Reference, type Type_Reference_ as Type_Reference, type Root_ as Root, };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as p_ from 'pareto-core/schema';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL21vZHVsZXMvcGFyZXRvX25ldy9zY2hlbWFzL3RyYW5zZm9ybWVyL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxNQUFNLG9CQUFvQixDQUFBO0FBRXhDLE9BQU8sS0FBSyxpQkFBaUIsTUFBTSw4QkFBOEIsQ0FBQTtBQUNqRSxPQUFPLEtBQUssZ0JBQWdCLE1BQU0sNkJBQTZCLENBQUE7QUFDL0QsT0FBTyxLQUFLLGtCQUFrQixNQUFNLCtCQUErQixDQUFBIn0=
|
|
2
|
+
// exported root types
|
|
3
|
+
export {};
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NoZW1hLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL21vZHVsZXMvcGFyZXRvX25ldy9zY2hlbWFzL3RyYW5zZm9ybWVyL3NjaGVtYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssRUFBRSxNQUFNLG9CQUFvQixDQUFBO0FBdXNCeEMsc0JBQXNCO0FBQ3RCLE9BQU8sRUFRTixDQUFBIn0=
|
|
@@ -1,8 +1,80 @@
|
|
|
1
1
|
import * as p_ from 'pareto-core-shorthands/unconstrained_target';
|
|
2
2
|
import type * as s_out from "../schema.js";
|
|
3
|
-
export
|
|
4
|
-
export declare const
|
|
5
|
-
export declare
|
|
3
|
+
export * as schema_reference from "../../schema_reference/shorthands/target.js";
|
|
4
|
+
export declare const root: (development_mode: boolean, target_schema: s_out.Root.target_schema, parameters_schema: s_out.Root.parameters_schema, dependencies_serializers: p_.Normal_Dictionary<s_out.Root.dependencies.serializers.D>, dependencies_transformers: p_.Normal_Dictionary<s_out.Root.dependencies.transformers.D>, declarations: p_.Normal_Dictionary<s_out.Root.declarations.D>, implementations: p_.Normal_Dictionary<s_out.Root.implementations.D>) => s_out.Root;
|
|
5
|
+
export declare namespace dependency {
|
|
6
|
+
namespace serializer {
|
|
7
|
+
const cousin: (schema: string) => s_out.Root.dependencies.serializers.D;
|
|
8
|
+
const external: (pkg: string, module: string, schema: string) => s_out.Root.dependencies.serializers.D;
|
|
9
|
+
const this_schema: () => s_out.Root.dependencies.serializers.D;
|
|
10
|
+
}
|
|
11
|
+
namespace transformer {
|
|
12
|
+
const cousin: (schema: string, transformer: string) => s_out.Root.dependencies.transformers.D;
|
|
13
|
+
const external: (pkg: string, module: string, schema: string, transformer: string) => s_out.Root.dependencies.transformers.D;
|
|
14
|
+
const sibling: (transformer: string) => s_out.Root.dependencies.transformers.D;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export declare const declaration: (target: s_out.Root.declarations.D.target, parameters: s_out.Root.declarations.D.parameters) => s_out.Root.declarations.D;
|
|
18
|
+
export declare const implementation: (temp_has_parameters: boolean, expression: s_out.Expression) => s_out.Root.implementations.D;
|
|
6
19
|
export declare namespace expr {
|
|
20
|
+
const change_context: (select: s_out.Expression.change_context.select, callback: s_out.Expression.change_context.callback) => s_out.Expression;
|
|
21
|
+
namespace convert {
|
|
22
|
+
namespace component {
|
|
23
|
+
const transform: (select: s_out.Select_Value, scope: s_out.Expression.convert.type_.component.transform.scope, arguments_: null | "pass through" | s_out.Expression) => s_out.Expression;
|
|
24
|
+
namespace transform_ {
|
|
25
|
+
const external: (transformer: string, function_: string) => s_out.Expression.convert.type_.component.transform.scope;
|
|
26
|
+
const local: (function_: string) => s_out.Expression.convert.type_.component.transform.scope;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
namespace dictionary {
|
|
30
|
+
const map: (select: s_out.Expression.convert.select, on_entry: s_out.Expression.convert.type_.dictionary.map.on_entry) => s_out.Expression;
|
|
31
|
+
}
|
|
32
|
+
namespace group {
|
|
33
|
+
}
|
|
34
|
+
namespace list {
|
|
35
|
+
const map: (select: s_out.Expression.convert.select, on_item: s_out.Expression.convert.type_.list.map.on_item) => s_out.Expression;
|
|
36
|
+
}
|
|
37
|
+
namespace optional {
|
|
38
|
+
const decide: (select: s_out.Expression.convert.select, temp_return_value: s_out.Expression.convert.type_.optional.decide.temp_return_type, on_set: s_out.Expression.convert.type_.optional.map.on_set, on_not_set: s_out.Expression.convert.type_.optional.map.on_set) => s_out.Expression;
|
|
39
|
+
const map: (select: s_out.Expression.convert.select, on_set: s_out.Expression.convert.type_.optional.map.on_set) => s_out.Expression;
|
|
40
|
+
}
|
|
41
|
+
namespace state {
|
|
42
|
+
const decide: (select: s_out.Expression.convert.select, temp_return_value: s_out.Expression.convert.type_.optional.decide.temp_return_type, options: s_out.Expression.convert.type_.state.decide.options) => s_out.Expression;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
7
45
|
const implement_me: (remark: string) => s_out.Expression;
|
|
46
|
+
namespace initialize {
|
|
47
|
+
const false_: () => s_out.Expression;
|
|
48
|
+
const true_: () => s_out.Expression;
|
|
49
|
+
const dictionary: (dict: s_out.Expression.initialize.dictionary) => s_out.Expression;
|
|
50
|
+
const group: (group: s_out.Expression.initialize.group) => s_out.Expression;
|
|
51
|
+
const list: (list: s_out.Expression.initialize.list) => s_out.Expression;
|
|
52
|
+
const nothing: () => s_out.Expression;
|
|
53
|
+
const not_set: () => s_out.Expression;
|
|
54
|
+
const set: (value: s_out.Expression) => s_out.Expression;
|
|
55
|
+
const state: (option: string, data: s_out.Expression) => s_out.Expression;
|
|
56
|
+
const serialize: (scope: s_out.Expression.initialize.text.serialize.scope, context: s_out.Expression, arguments_: null | "pass through" | s_out.Expression) => s_out.Expression;
|
|
57
|
+
namespace serialize_ {
|
|
58
|
+
const external: (serializer: string, function_: string) => s_out.Expression.initialize.text.serialize.scope;
|
|
59
|
+
const local: (function_: string) => s_out.Expression.initialize.text.serialize.scope;
|
|
60
|
+
}
|
|
61
|
+
const text_literal: (text: string) => s_out.Expression;
|
|
62
|
+
const reference: (reference: s_out.Expression.initialize.reference) => s_out.Expression;
|
|
63
|
+
}
|
|
64
|
+
const select: (value_selection: s_out.Select_Value) => s_out.Expression;
|
|
65
|
+
}
|
|
66
|
+
export declare namespace select {
|
|
67
|
+
const call: (scope: s_out.Select_Value.call.scope, context: s_out.Select_Value, arguments_: null | "pass through" | s_out.Expression, tail: s_out.Select_Value.call.tail) => s_out.Select_Value;
|
|
68
|
+
namespace call_ {
|
|
69
|
+
const external: (transformer: string, function_: string) => s_out.Select_Value.call.scope;
|
|
70
|
+
const local: (function_: string) => s_out.Select_Value.call.scope;
|
|
71
|
+
}
|
|
72
|
+
const context_value: (tail: s_out.Select_Value.context_value.tail) => s_out.Select_Value;
|
|
73
|
+
}
|
|
74
|
+
export declare namespace vr {
|
|
75
|
+
const dictionary: () => s_out.Value_Reference.subselection.L;
|
|
76
|
+
const group: (property: string) => s_out.Value_Reference.subselection.L;
|
|
77
|
+
const list: () => s_out.Value_Reference.subselection.L;
|
|
78
|
+
const optional: () => s_out.Value_Reference.subselection.L;
|
|
79
|
+
const state: (option: string) => s_out.Value_Reference.subselection.L;
|
|
8
80
|
}
|