agentlang 0.9.4 → 0.9.5

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 (53) hide show
  1. package/out/api/http.js +8 -2
  2. package/out/api/http.js.map +1 -1
  3. package/out/extension/main.cjs +3 -3
  4. package/out/extension/main.cjs.map +1 -1
  5. package/out/language/generated/ast.d.ts +1918 -149
  6. package/out/language/generated/ast.d.ts.map +1 -1
  7. package/out/language/generated/ast.js +2050 -1261
  8. package/out/language/generated/ast.js.map +1 -1
  9. package/out/language/generated/grammar.d.ts +1 -1
  10. package/out/language/generated/grammar.d.ts.map +1 -1
  11. package/out/language/generated/grammar.js +217 -544
  12. package/out/language/generated/grammar.js.map +1 -1
  13. package/out/language/generated/module.d.ts +1 -1
  14. package/out/language/generated/module.js +1 -1
  15. package/out/language/main.cjs +7271 -3565
  16. package/out/language/main.cjs.map +4 -4
  17. package/out/runtime/auth/defs.d.ts +1 -1
  18. package/out/runtime/auth/defs.js +1 -1
  19. package/out/runtime/defs.d.ts +1 -1
  20. package/out/runtime/defs.js +1 -1
  21. package/out/runtime/loader.js +1 -1
  22. package/out/runtime/resolvers/sqldb/database.d.ts +1 -0
  23. package/out/runtime/resolvers/sqldb/database.d.ts.map +1 -1
  24. package/out/runtime/resolvers/sqldb/database.js +2 -1
  25. package/out/runtime/resolvers/sqldb/database.js.map +1 -1
  26. package/out/runtime/state.d.ts +36 -367
  27. package/out/runtime/state.d.ts.map +1 -1
  28. package/out/setupClassic.d.ts +98 -0
  29. package/out/setupClassic.d.ts.map +1 -0
  30. package/out/setupClassic.js +38 -0
  31. package/out/setupClassic.js.map +1 -0
  32. package/out/setupCommon.d.ts +2 -0
  33. package/out/setupCommon.d.ts.map +1 -0
  34. package/out/setupCommon.js +33 -0
  35. package/out/setupCommon.js.map +1 -0
  36. package/out/setupExtended.d.ts +40 -0
  37. package/out/setupExtended.d.ts.map +1 -0
  38. package/out/setupExtended.js +67 -0
  39. package/out/setupExtended.js.map +1 -0
  40. package/out/syntaxes/agentlang.monarch.js +3 -3
  41. package/out/syntaxes/agentlang.monarch.js.map +1 -1
  42. package/out/utils/runtime.d.ts +7 -6
  43. package/out/utils/runtime.d.ts.map +1 -1
  44. package/package.json +185 -187
  45. package/src/api/http.ts +8 -2
  46. package/src/language/generated/ast.ts +2108 -1320
  47. package/src/language/generated/grammar.ts +217 -544
  48. package/src/language/generated/module.ts +1 -1
  49. package/src/runtime/auth/defs.ts +1 -1
  50. package/src/runtime/defs.ts +1 -1
  51. package/src/runtime/loader.ts +1 -1
  52. package/src/runtime/resolvers/sqldb/database.ts +2 -1
  53. package/src/syntaxes/agentlang.monarch.ts +3 -3
@@ -1,1468 +1,2257 @@
1
1
  /******************************************************************************
2
- * This file was generated by langium-cli 3.5.2.
2
+ * This file was generated by langium-cli 4.1.0.
3
3
  * DO NOT EDIT MANUALLY!
4
4
  ******************************************************************************/
5
5
  /* eslint-disable */
6
6
  import * as langium from 'langium';
7
7
  export const AgentlangTerminals = {
8
- ID: /(([_a-zA-Z][\w_]*)(\/([_a-zA-Z][\w_]*))?)/,
9
- QUOTED_STRING: /("(((\\([\s\S]))|((?!(((\\|")|\r)|\n))[\s\S]*?))|(\r?\n))*")/,
10
- TICK_QUOTED_STRING: /(`(((\\([\s\S]))|((?!(((\\|`)|\r)|\n))[\s\S]*?))|(\r?\n))*`)/,
8
+ ID: /(?:[_a-zA-Z][\w_]*)(\/(?:[_a-zA-Z][\w_]*))?/,
9
+ QUOTED_STRING: /"(\\(?:[\s\S])|(?:(?!(\\|"|\r|\n))[\s\S]*?)|\r?\n)*"/,
10
+ TICK_QUOTED_STRING: /`(\\(?:[\s\S])|(?:(?!(\\|`|\r|\n))[\s\S]*?)|\r?\n)*`/,
11
11
  INT: /-?[0-9]+/,
12
12
  WS: /\s+/,
13
13
  ML_COMMENT: /\/\*[\s\S]*?\*\//,
14
14
  SL_COMMENT: /\/\/[^\n\r]*/,
15
15
  };
16
- export const AttributeValueExpression = 'AttributeValueExpression';
17
- export function isAttributeValueExpression(item) {
18
- return reflection.isInstance(item, AttributeValueExpression);
19
- }
20
- export function isBoolean(item) {
21
- return item === 'true' || item === 'false';
22
- }
23
- export function isDecimal(item) {
24
- return typeof item === 'number';
25
- }
26
- export const Definition = 'Definition';
27
- export function isDefinition(item) {
28
- return reflection.isInstance(item, Definition);
29
- }
30
- export const Expr = 'Expr';
31
- export function isExpr(item) {
32
- return reflection.isInstance(item, Expr);
33
- }
34
- export const FlowStepSpec = 'FlowStepSpec';
35
- export function isFlowStepSpec(item) {
36
- return reflection.isInstance(item, FlowStepSpec);
37
- }
38
- export function isGenericName(item) {
39
- return isSTRING(item) || (typeof item === 'string' && (/(([_a-zA-Z][\w_]*)(\/([_a-zA-Z][\w_]*))?)/.test(item)));
40
- }
41
- export function isJoinType(item) {
42
- return item === '@join' || item === '@inner_join' || item === '@left_join' || item === '@right_join' || item === '@full_join';
43
- }
44
- export const PrimExpr = 'PrimExpr';
45
- export function isPrimExpr(item) {
46
- return reflection.isInstance(item, PrimExpr);
47
- }
48
- export function isQualifiedName(item) {
49
- return isRef(item) || (typeof item === 'string' && (/(([_a-zA-Z][\w_]*)(\/([_a-zA-Z][\w_]*))?)/.test(item)));
50
- }
51
- export function isQueryId(item) {
52
- return typeof item === 'string';
53
- }
54
- export function isRef(item) {
55
- return typeof item === 'string';
56
- }
57
- export function isResolverPathEntry(item) {
58
- return isQualifiedName(item) || isGenericName(item);
59
- }
60
- export const SchemaDefinition = 'SchemaDefinition';
61
- export function isSchemaDefinition(item) {
62
- return reflection.isInstance(item, SchemaDefinition);
63
- }
64
- export function isSqlComparisonOpr(item) {
65
- return item === '=' || item === '<>' || item === '!=' || item === '<' || item === '<=' || item === '>' || item === '>=' || item === 'in' || item === 'like' || item === 'between';
66
- }
67
- export function isSTRING(item) {
68
- return (typeof item === 'string' && (/("(((\\([\s\S]))|((?!(((\\|")|\r)|\n))[\s\S]*?))|(\r?\n))*")/.test(item) || /(`(((\\([\s\S]))|((?!(((\\|`)|\r)|\n))[\s\S]*?))|(\r?\n))*`)/.test(item)));
69
- }
70
- export function isTaggedId(item) {
71
- return typeof item === 'string';
72
- }
73
- export function isWorkflowHeaderPrefix(item) {
74
- return item === 'create' || item === 'update' || item === 'delete';
75
- }
76
- export function isWorkflowHeaderTag(item) {
77
- return item === '@after' || item === '@before';
78
- }
79
- export const ActionEntry = 'ActionEntry';
16
+ export const ActionEntry = {
17
+ $type: 'ActionEntry',
18
+ event: 'event',
19
+ name: 'name'
20
+ };
80
21
  export function isActionEntry(item) {
81
- return reflection.isInstance(item, ActionEntry);
22
+ return reflection.isInstance(item, ActionEntry.$type);
82
23
  }
83
- export const AfterTriggerDefinition = 'AfterTriggerDefinition';
24
+ export const AfterTriggerDefinition = {
25
+ $type: 'AfterTriggerDefinition',
26
+ triggers: 'triggers'
27
+ };
84
28
  export function isAfterTriggerDefinition(item) {
85
- return reflection.isInstance(item, AfterTriggerDefinition);
29
+ return reflection.isInstance(item, AfterTriggerDefinition.$type);
86
30
  }
87
- export const AgentDefinition = 'AgentDefinition';
31
+ export const AgentDefinition = {
32
+ $type: 'AgentDefinition',
33
+ body: 'body',
34
+ name: 'name'
35
+ };
88
36
  export function isAgentDefinition(item) {
89
- return reflection.isInstance(item, AgentDefinition);
37
+ return reflection.isInstance(item, AgentDefinition.$type);
90
38
  }
91
- export const AgentXtraAttribute = 'AgentXtraAttribute';
39
+ export const AgentXtraAttribute = {
40
+ $type: 'AgentXtraAttribute',
41
+ name: 'name',
42
+ value: 'value'
43
+ };
92
44
  export function isAgentXtraAttribute(item) {
93
- return reflection.isInstance(item, AgentXtraAttribute);
45
+ return reflection.isInstance(item, AgentXtraAttribute.$type);
94
46
  }
95
- export const AgentXtraSpec = 'AgentXtraSpec';
47
+ export const AgentXtraSpec = {
48
+ $type: 'AgentXtraSpec',
49
+ attributes: 'attributes'
50
+ };
96
51
  export function isAgentXtraSpec(item) {
97
- return reflection.isInstance(item, AgentXtraSpec);
52
+ return reflection.isInstance(item, AgentXtraSpec.$type);
98
53
  }
99
- export const AggregateFunctionSpec = 'AggregateFunctionSpec';
54
+ export const AggregateFunctionSpec = {
55
+ $type: 'AggregateFunctionSpec',
56
+ args: 'args',
57
+ name: 'name'
58
+ };
100
59
  export function isAggregateFunctionSpec(item) {
101
- return reflection.isInstance(item, AggregateFunctionSpec);
60
+ return reflection.isInstance(item, AggregateFunctionSpec.$type);
102
61
  }
103
- export const AliasSpec = 'AliasSpec';
62
+ export const AliasSpec = {
63
+ $type: 'AliasSpec',
64
+ alias: 'alias',
65
+ aliases: 'aliases'
66
+ };
104
67
  export function isAliasSpec(item) {
105
- return reflection.isInstance(item, AliasSpec);
68
+ return reflection.isInstance(item, AliasSpec.$type);
106
69
  }
107
- export const ArrayLiteral = 'ArrayLiteral';
70
+ export const ArrayLiteral = {
71
+ $type: 'ArrayLiteral',
72
+ vals: 'vals'
73
+ };
108
74
  export function isArrayLiteral(item) {
109
- return reflection.isInstance(item, ArrayLiteral);
75
+ return reflection.isInstance(item, ArrayLiteral.$type);
110
76
  }
111
- export const AsyncFnCall = 'AsyncFnCall';
77
+ export const AsyncFnCall = {
78
+ $type: 'AsyncFnCall',
79
+ fnCall: 'fnCall'
80
+ };
112
81
  export function isAsyncFnCall(item) {
113
- return reflection.isInstance(item, AsyncFnCall);
114
- }
115
- export const AttributeDefinition = 'AttributeDefinition';
82
+ return reflection.isInstance(item, AsyncFnCall.$type);
83
+ }
84
+ export const AttributeDefinition = {
85
+ $type: 'AttributeDefinition',
86
+ arrayType: 'arrayType',
87
+ enumSpec: 'enumSpec',
88
+ expr: 'expr',
89
+ name: 'name',
90
+ oneOfSpec: 'oneOfSpec',
91
+ properties: 'properties',
92
+ refSpec: 'refSpec',
93
+ type: 'type'
94
+ };
116
95
  export function isAttributeDefinition(item) {
117
- return reflection.isInstance(item, AttributeDefinition);
96
+ return reflection.isInstance(item, AttributeDefinition.$type);
97
+ }
98
+ export const AttributeValueExpression = {
99
+ $type: 'AttributeValueExpression'
100
+ };
101
+ export function isAttributeValueExpression(item) {
102
+ return reflection.isInstance(item, AttributeValueExpression.$type);
118
103
  }
119
- export const BackoffSpec = 'BackoffSpec';
104
+ export const BackoffSpec = {
105
+ $type: 'BackoffSpec',
106
+ attributes: 'attributes'
107
+ };
120
108
  export function isBackoffSpec(item) {
121
- return reflection.isInstance(item, BackoffSpec);
109
+ return reflection.isInstance(item, BackoffSpec.$type);
122
110
  }
123
- export const BeforeTriggerDefinition = 'BeforeTriggerDefinition';
111
+ export const BeforeTriggerDefinition = {
112
+ $type: 'BeforeTriggerDefinition',
113
+ triggers: 'triggers'
114
+ };
124
115
  export function isBeforeTriggerDefinition(item) {
125
- return reflection.isInstance(item, BeforeTriggerDefinition);
116
+ return reflection.isInstance(item, BeforeTriggerDefinition.$type);
126
117
  }
127
- export const BinExpr = 'BinExpr';
118
+ export const BinExpr = {
119
+ $type: 'BinExpr',
120
+ e1: 'e1',
121
+ e2: 'e2',
122
+ op: 'op'
123
+ };
128
124
  export function isBinExpr(item) {
129
- return reflection.isInstance(item, BinExpr);
125
+ return reflection.isInstance(item, BinExpr.$type);
126
+ }
127
+ export function isBoolean(item) {
128
+ return item === 'true' || item === 'false';
130
129
  }
131
- export const CaseEntry = 'CaseEntry';
130
+ export const CaseEntry = {
131
+ $type: 'CaseEntry',
132
+ cond: 'cond',
133
+ statements: 'statements'
134
+ };
132
135
  export function isCaseEntry(item) {
133
- return reflection.isInstance(item, CaseEntry);
136
+ return reflection.isInstance(item, CaseEntry.$type);
134
137
  }
135
- export const CatchSpec = 'CatchSpec';
138
+ export const CatchSpec = {
139
+ $type: 'CatchSpec',
140
+ handlers: 'handlers'
141
+ };
136
142
  export function isCatchSpec(item) {
137
- return reflection.isInstance(item, CatchSpec);
143
+ return reflection.isInstance(item, CatchSpec.$type);
138
144
  }
139
- export const CompositeUniqueDefinition = 'CompositeUniqueDefinition';
145
+ export const CompositeUniqueDefinition = {
146
+ $type: 'CompositeUniqueDefinition',
147
+ attrs: 'attrs'
148
+ };
140
149
  export function isCompositeUniqueDefinition(item) {
141
- return reflection.isInstance(item, CompositeUniqueDefinition);
150
+ return reflection.isInstance(item, CompositeUniqueDefinition.$type);
142
151
  }
143
- export const ConditionalFlowStep = 'ConditionalFlowStep';
152
+ export const ConditionalFlowStep = {
153
+ $type: 'ConditionalFlowStep',
154
+ expr: 'expr',
155
+ next: 'next'
156
+ };
144
157
  export function isConditionalFlowStep(item) {
145
- return reflection.isInstance(item, ConditionalFlowStep);
146
- }
147
- export const CrudMap = 'CrudMap';
158
+ return reflection.isInstance(item, ConditionalFlowStep.$type);
159
+ }
160
+ export const CrudMap = {
161
+ $type: 'CrudMap',
162
+ body: 'body',
163
+ distinct: 'distinct',
164
+ groupByClause: 'groupByClause',
165
+ into: 'into',
166
+ joins: 'joins',
167
+ name: 'name',
168
+ orderByClause: 'orderByClause',
169
+ relationships: 'relationships',
170
+ source: 'source',
171
+ upsert: 'upsert',
172
+ where: 'where'
173
+ };
148
174
  export function isCrudMap(item) {
149
- return reflection.isInstance(item, CrudMap);
175
+ return reflection.isInstance(item, CrudMap.$type);
150
176
  }
151
- export const CrudMapBody = 'CrudMapBody';
177
+ export const CrudMapBody = {
178
+ $type: 'CrudMapBody',
179
+ attributes: 'attributes',
180
+ properties: 'properties'
181
+ };
152
182
  export function isCrudMapBody(item) {
153
- return reflection.isInstance(item, CrudMapBody);
183
+ return reflection.isInstance(item, CrudMapBody.$type);
184
+ }
185
+ export function isDecimal(item) {
186
+ return typeof item === 'number';
154
187
  }
155
- export const DecisionDefBody = 'DecisionDefBody';
188
+ export const DecisionDefBody = {
189
+ $type: 'DecisionDefBody',
190
+ cases: 'cases'
191
+ };
156
192
  export function isDecisionDefBody(item) {
157
- return reflection.isInstance(item, DecisionDefBody);
193
+ return reflection.isInstance(item, DecisionDefBody.$type);
158
194
  }
159
- export const DecisionDefinition = 'DecisionDefinition';
195
+ export const DecisionDefinition = {
196
+ $type: 'DecisionDefinition',
197
+ body: 'body',
198
+ name: 'name'
199
+ };
160
200
  export function isDecisionDefinition(item) {
161
- return reflection.isInstance(item, DecisionDefinition);
201
+ return reflection.isInstance(item, DecisionDefinition.$type);
162
202
  }
163
- export const Delete = 'Delete';
203
+ export const Definition = {
204
+ $type: 'Definition'
205
+ };
206
+ export function isDefinition(item) {
207
+ return reflection.isInstance(item, Definition.$type);
208
+ }
209
+ export const Delete = {
210
+ $type: 'Delete',
211
+ pattern: 'pattern'
212
+ };
164
213
  export function isDelete(item) {
165
- return reflection.isInstance(item, Delete);
214
+ return reflection.isInstance(item, Delete.$type);
166
215
  }
167
- export const DirectiveDefinition = 'DirectiveDefinition';
216
+ export const DirectiveDefinition = {
217
+ $type: 'DirectiveDefinition',
218
+ body: 'body',
219
+ dir: 'dir',
220
+ name: 'name'
221
+ };
168
222
  export function isDirectiveDefinition(item) {
169
- return reflection.isInstance(item, DirectiveDefinition);
223
+ return reflection.isInstance(item, DirectiveDefinition.$type);
170
224
  }
171
- export const Else = 'Else';
225
+ export const Else = {
226
+ $type: 'Else',
227
+ statements: 'statements'
228
+ };
172
229
  export function isElse(item) {
173
- return reflection.isInstance(item, Else);
230
+ return reflection.isInstance(item, Else.$type);
174
231
  }
175
- export const EntityActionsDefinitions = 'EntityActionsDefinitions';
232
+ export const EntityActionsDefinitions = {
233
+ $type: 'EntityActionsDefinitions',
234
+ entries: 'entries'
235
+ };
176
236
  export function isEntityActionsDefinitions(item) {
177
- return reflection.isInstance(item, EntityActionsDefinitions);
237
+ return reflection.isInstance(item, EntityActionsDefinitions.$type);
178
238
  }
179
- export const EntityDefinition = 'EntityDefinition';
239
+ export const EntityDefinition = {
240
+ $type: 'EntityDefinition',
241
+ extends: 'extends',
242
+ name: 'name',
243
+ schema: 'schema'
244
+ };
180
245
  export function isEntityDefinition(item) {
181
- return reflection.isInstance(item, EntityDefinition);
246
+ return reflection.isInstance(item, EntityDefinition.$type);
182
247
  }
183
- export const EnumSpec = 'EnumSpec';
248
+ export const EnumSpec = {
249
+ $type: 'EnumSpec',
250
+ type: 'type',
251
+ values: 'values'
252
+ };
184
253
  export function isEnumSpec(item) {
185
- return reflection.isInstance(item, EnumSpec);
254
+ return reflection.isInstance(item, EnumSpec.$type);
186
255
  }
187
- export const EventDefinition = 'EventDefinition';
256
+ export const EventDefinition = {
257
+ $type: 'EventDefinition',
258
+ extends: 'extends',
259
+ name: 'name',
260
+ schema: 'schema'
261
+ };
188
262
  export function isEventDefinition(item) {
189
- return reflection.isInstance(item, EventDefinition);
263
+ return reflection.isInstance(item, EventDefinition.$type);
264
+ }
265
+ export const Expr = {
266
+ $type: 'Expr'
267
+ };
268
+ export function isExpr(item) {
269
+ return reflection.isInstance(item, Expr.$type);
190
270
  }
191
- export const ExtendsClause = 'ExtendsClause';
271
+ export const ExtendsClause = {
272
+ $type: 'ExtendsClause',
273
+ parentName: 'parentName'
274
+ };
192
275
  export function isExtendsClause(item) {
193
- return reflection.isInstance(item, ExtendsClause);
276
+ return reflection.isInstance(item, ExtendsClause.$type);
194
277
  }
195
- export const FlowDefBody = 'FlowDefBody';
278
+ export const FlowDefBody = {
279
+ $type: 'FlowDefBody',
280
+ entries: 'entries'
281
+ };
196
282
  export function isFlowDefBody(item) {
197
- return reflection.isInstance(item, FlowDefBody);
283
+ return reflection.isInstance(item, FlowDefBody.$type);
198
284
  }
199
- export const FlowDefinition = 'FlowDefinition';
285
+ export const FlowDefinition = {
286
+ $type: 'FlowDefinition',
287
+ body: 'body',
288
+ name: 'name'
289
+ };
200
290
  export function isFlowDefinition(item) {
201
- return reflection.isInstance(item, FlowDefinition);
291
+ return reflection.isInstance(item, FlowDefinition.$type);
202
292
  }
203
- export const FlowEntry = 'FlowEntry';
293
+ export const FlowEntry = {
294
+ $type: 'FlowEntry',
295
+ cond: 'cond',
296
+ next: 'next',
297
+ root: 'root'
298
+ };
204
299
  export function isFlowEntry(item) {
205
- return reflection.isInstance(item, FlowEntry);
300
+ return reflection.isInstance(item, FlowEntry.$type);
206
301
  }
207
- export const FnCall = 'FnCall';
302
+ export const FlowStepSpec = {
303
+ $type: 'FlowStepSpec'
304
+ };
305
+ export function isFlowStepSpec(item) {
306
+ return reflection.isInstance(item, FlowStepSpec.$type);
307
+ }
308
+ export const FnCall = {
309
+ $type: 'FnCall',
310
+ args: 'args',
311
+ name: 'name'
312
+ };
208
313
  export function isFnCall(item) {
209
- return reflection.isInstance(item, FnCall);
314
+ return reflection.isInstance(item, FnCall.$type);
210
315
  }
211
- export const ForEach = 'ForEach';
316
+ export const ForEach = {
317
+ $type: 'ForEach',
318
+ src: 'src',
319
+ statements: 'statements',
320
+ var: 'var'
321
+ };
212
322
  export function isForEach(item) {
213
- return reflection.isInstance(item, ForEach);
323
+ return reflection.isInstance(item, ForEach.$type);
214
324
  }
215
- export const FullTextSearch = 'FullTextSearch';
325
+ export const FullTextSearch = {
326
+ $type: 'FullTextSearch',
327
+ name: 'name',
328
+ options: 'options',
329
+ query: 'query'
330
+ };
216
331
  export function isFullTextSearch(item) {
217
- return reflection.isInstance(item, FullTextSearch);
332
+ return reflection.isInstance(item, FullTextSearch.$type);
218
333
  }
219
- export const GenericDefBody = 'GenericDefBody';
334
+ export const GenericDefBody = {
335
+ $type: 'GenericDefBody',
336
+ attributes: 'attributes'
337
+ };
220
338
  export function isGenericDefBody(item) {
221
- return reflection.isInstance(item, GenericDefBody);
339
+ return reflection.isInstance(item, GenericDefBody.$type);
340
+ }
341
+ export function isGenericName(item) {
342
+ return isSTRING(item) || (typeof item === 'string' && (/(?:[_a-zA-Z][\w_]*)(\/(?:[_a-zA-Z][\w_]*))?/.test(item)));
222
343
  }
223
- export const GenericPropertyDef = 'GenericPropertyDef';
344
+ export const GenericPropertyDef = {
345
+ $type: 'GenericPropertyDef',
346
+ name: 'name',
347
+ value: 'value'
348
+ };
224
349
  export function isGenericPropertyDef(item) {
225
- return reflection.isInstance(item, GenericPropertyDef);
350
+ return reflection.isInstance(item, GenericPropertyDef.$type);
226
351
  }
227
- export const GlossaryEntryDefinition = 'GlossaryEntryDefinition';
352
+ export const GlossaryEntryDefinition = {
353
+ $type: 'GlossaryEntryDefinition',
354
+ body: 'body',
355
+ glos: 'glos',
356
+ name: 'name'
357
+ };
228
358
  export function isGlossaryEntryDefinition(item) {
229
- return reflection.isInstance(item, GlossaryEntryDefinition);
359
+ return reflection.isInstance(item, GlossaryEntryDefinition.$type);
230
360
  }
231
- export const Group = 'Group';
361
+ export const Group = {
362
+ $type: 'Group',
363
+ ge: 'ge'
364
+ };
232
365
  export function isGroup(item) {
233
- return reflection.isInstance(item, Group);
366
+ return reflection.isInstance(item, Group.$type);
234
367
  }
235
- export const GroupByClause = 'GroupByClause';
368
+ export const GroupByClause = {
369
+ $type: 'GroupByClause',
370
+ colNames: 'colNames'
371
+ };
236
372
  export function isGroupByClause(item) {
237
- return reflection.isInstance(item, GroupByClause);
373
+ return reflection.isInstance(item, GroupByClause.$type);
238
374
  }
239
- export const Handler = 'Handler';
375
+ export const Handler = {
376
+ $type: 'Handler',
377
+ except: 'except',
378
+ stmt: 'stmt'
379
+ };
240
380
  export function isHandler(item) {
241
- return reflection.isInstance(item, Handler);
381
+ return reflection.isInstance(item, Handler.$type);
242
382
  }
243
- export const If = 'If';
383
+ export const If = {
384
+ $type: 'If',
385
+ cond: 'cond',
386
+ else: 'else',
387
+ statements: 'statements'
388
+ };
244
389
  export function isIf(item) {
245
- return reflection.isInstance(item, If);
390
+ return reflection.isInstance(item, If.$type);
246
391
  }
247
- export const IfWithAlias = 'IfWithAlias';
392
+ export const IfWithAlias = {
393
+ $type: 'IfWithAlias',
394
+ if: 'if'
395
+ };
248
396
  export function isIfWithAlias(item) {
249
- return reflection.isInstance(item, IfWithAlias);
397
+ return reflection.isInstance(item, IfWithAlias.$type);
250
398
  }
251
- export const Import = 'Import';
399
+ export const Import = {
400
+ $type: 'Import',
401
+ name: 'name',
402
+ path: 'path'
403
+ };
252
404
  export function isImport(item) {
253
- return reflection.isInstance(item, Import);
254
- }
255
- export const JoinSpec = 'JoinSpec';
405
+ return reflection.isInstance(item, Import.$type);
406
+ }
407
+ export const JoinSpec = {
408
+ $type: 'JoinSpec',
409
+ lhs: 'lhs',
410
+ name: 'name',
411
+ op: 'op',
412
+ rhs: 'rhs',
413
+ type: 'type'
414
+ };
256
415
  export function isJoinSpec(item) {
257
- return reflection.isInstance(item, JoinSpec);
416
+ return reflection.isInstance(item, JoinSpec.$type);
258
417
  }
259
- export const KvPair = 'KvPair';
418
+ export function isJoinType(item) {
419
+ return item === '@join' || item === '@inner_join' || item === '@left_join' || item === '@right_join' || item === '@full_join';
420
+ }
421
+ export const KvPair = {
422
+ $type: 'KvPair',
423
+ key: 'key',
424
+ value: 'value'
425
+ };
260
426
  export function isKvPair(item) {
261
- return reflection.isInstance(item, KvPair);
427
+ return reflection.isInstance(item, KvPair.$type);
262
428
  }
263
- export const KvPairs = 'KvPairs';
429
+ export const KvPairs = {
430
+ $type: 'KvPairs',
431
+ pairs: 'pairs'
432
+ };
264
433
  export function isKvPairs(item) {
265
- return reflection.isInstance(item, KvPairs);
266
- }
267
- export const Literal = 'Literal';
434
+ return reflection.isInstance(item, KvPairs.$type);
435
+ }
436
+ export const Literal = {
437
+ $type: 'Literal',
438
+ array: 'array',
439
+ asyncFnCall: 'asyncFnCall',
440
+ bool: 'bool',
441
+ fnCall: 'fnCall',
442
+ id: 'id',
443
+ map: 'map',
444
+ num: 'num',
445
+ ref: 'ref',
446
+ str: 'str'
447
+ };
268
448
  export function isLiteral(item) {
269
- return reflection.isInstance(item, Literal);
449
+ return reflection.isInstance(item, Literal.$type);
270
450
  }
271
- export const MapEntry = 'MapEntry';
451
+ export const MapEntry = {
452
+ $type: 'MapEntry',
453
+ key: 'key',
454
+ value: 'value'
455
+ };
272
456
  export function isMapEntry(item) {
273
- return reflection.isInstance(item, MapEntry);
457
+ return reflection.isInstance(item, MapEntry.$type);
274
458
  }
275
- export const MapKey = 'MapKey';
459
+ export const MapKey = {
460
+ $type: 'MapKey',
461
+ bool: 'bool',
462
+ num: 'num',
463
+ str: 'str'
464
+ };
276
465
  export function isMapKey(item) {
277
- return reflection.isInstance(item, MapKey);
466
+ return reflection.isInstance(item, MapKey.$type);
278
467
  }
279
- export const MapLiteral = 'MapLiteral';
468
+ export const MapLiteral = {
469
+ $type: 'MapLiteral',
470
+ entries: 'entries'
471
+ };
280
472
  export function isMapLiteral(item) {
281
- return reflection.isInstance(item, MapLiteral);
473
+ return reflection.isInstance(item, MapLiteral.$type);
282
474
  }
283
- export const MetaDefinition = 'MetaDefinition';
475
+ export const MetaDefinition = {
476
+ $type: 'MetaDefinition',
477
+ spec: 'spec'
478
+ };
284
479
  export function isMetaDefinition(item) {
285
- return reflection.isInstance(item, MetaDefinition);
480
+ return reflection.isInstance(item, MetaDefinition.$type);
286
481
  }
287
- export const ModuleDefinition = 'ModuleDefinition';
482
+ export const ModuleDefinition = {
483
+ $type: 'ModuleDefinition',
484
+ defs: 'defs',
485
+ imports: 'imports',
486
+ name: 'name'
487
+ };
288
488
  export function isModuleDefinition(item) {
289
- return reflection.isInstance(item, ModuleDefinition);
489
+ return reflection.isInstance(item, ModuleDefinition.$type);
290
490
  }
291
- export const NegExpr = 'NegExpr';
491
+ export const NegExpr = {
492
+ $type: 'NegExpr',
493
+ ne: 'ne'
494
+ };
292
495
  export function isNegExpr(item) {
293
- return reflection.isInstance(item, NegExpr);
496
+ return reflection.isInstance(item, NegExpr.$type);
294
497
  }
295
- export const NodeDefinition = 'NodeDefinition';
498
+ export const NodeDefinition = {
499
+ $type: 'NodeDefinition',
500
+ alias: 'alias',
501
+ name: 'name'
502
+ };
296
503
  export function isNodeDefinition(item) {
297
- return reflection.isInstance(item, NodeDefinition);
504
+ return reflection.isInstance(item, NodeDefinition.$type);
298
505
  }
299
- export const NotExpr = 'NotExpr';
506
+ export const NotExpr = {
507
+ $type: 'NotExpr',
508
+ ne: 'ne'
509
+ };
300
510
  export function isNotExpr(item) {
301
- return reflection.isInstance(item, NotExpr);
511
+ return reflection.isInstance(item, NotExpr.$type);
302
512
  }
303
- export const OneOfSpec = 'OneOfSpec';
513
+ export const OneOfSpec = {
514
+ $type: 'OneOfSpec',
515
+ ref: 'ref'
516
+ };
304
517
  export function isOneOfSpec(item) {
305
- return reflection.isInstance(item, OneOfSpec);
518
+ return reflection.isInstance(item, OneOfSpec.$type);
306
519
  }
307
- export const OrderByClause = 'OrderByClause';
520
+ export const OrderByClause = {
521
+ $type: 'OrderByClause',
522
+ colNames: 'colNames',
523
+ order: 'order'
524
+ };
308
525
  export function isOrderByClause(item) {
309
- return reflection.isInstance(item, OrderByClause);
310
- }
311
- export const Pattern = 'Pattern';
526
+ return reflection.isInstance(item, OrderByClause.$type);
527
+ }
528
+ export const Pattern = {
529
+ $type: 'Pattern',
530
+ crudMap: 'crudMap',
531
+ delete: 'delete',
532
+ expr: 'expr',
533
+ forEach: 'forEach',
534
+ fullTextSearch: 'fullTextSearch',
535
+ if: 'if',
536
+ ifWithAlias: 'ifWithAlias',
537
+ purge: 'purge',
538
+ return: 'return',
539
+ throwError: 'throwError'
540
+ };
312
541
  export function isPattern(item) {
313
- return reflection.isInstance(item, Pattern);
542
+ return reflection.isInstance(item, Pattern.$type);
314
543
  }
315
- export const PrePostTriggerDefinition = 'PrePostTriggerDefinition';
544
+ export const PrePostTriggerDefinition = {
545
+ $type: 'PrePostTriggerDefinition',
546
+ after: 'after',
547
+ before: 'before'
548
+ };
316
549
  export function isPrePostTriggerDefinition(item) {
317
- return reflection.isInstance(item, PrePostTriggerDefinition);
550
+ return reflection.isInstance(item, PrePostTriggerDefinition.$type);
318
551
  }
319
- export const PropertyDefinition = 'PropertyDefinition';
552
+ export const PrimExpr = {
553
+ $type: 'PrimExpr'
554
+ };
555
+ export function isPrimExpr(item) {
556
+ return reflection.isInstance(item, PrimExpr.$type);
557
+ }
558
+ export const PropertyDefinition = {
559
+ $type: 'PropertyDefinition',
560
+ name: 'name',
561
+ value: 'value'
562
+ };
320
563
  export function isPropertyDefinition(item) {
321
- return reflection.isInstance(item, PropertyDefinition);
564
+ return reflection.isInstance(item, PropertyDefinition.$type);
322
565
  }
323
- export const PublicAgentDefinition = 'PublicAgentDefinition';
566
+ export const PublicAgentDefinition = {
567
+ $type: 'PublicAgentDefinition',
568
+ def: 'def'
569
+ };
324
570
  export function isPublicAgentDefinition(item) {
325
- return reflection.isInstance(item, PublicAgentDefinition);
571
+ return reflection.isInstance(item, PublicAgentDefinition.$type);
326
572
  }
327
- export const PublicEventDefinition = 'PublicEventDefinition';
573
+ export const PublicEventDefinition = {
574
+ $type: 'PublicEventDefinition',
575
+ def: 'def'
576
+ };
328
577
  export function isPublicEventDefinition(item) {
329
- return reflection.isInstance(item, PublicEventDefinition);
578
+ return reflection.isInstance(item, PublicEventDefinition.$type);
330
579
  }
331
- export const PublicWorkflowDefinition = 'PublicWorkflowDefinition';
580
+ export const PublicWorkflowDefinition = {
581
+ $type: 'PublicWorkflowDefinition',
582
+ def: 'def'
583
+ };
332
584
  export function isPublicWorkflowDefinition(item) {
333
- return reflection.isInstance(item, PublicWorkflowDefinition);
585
+ return reflection.isInstance(item, PublicWorkflowDefinition.$type);
334
586
  }
335
- export const Purge = 'Purge';
587
+ export const Purge = {
588
+ $type: 'Purge',
589
+ pattern: 'pattern'
590
+ };
336
591
  export function isPurge(item) {
337
- return reflection.isInstance(item, Purge);
592
+ return reflection.isInstance(item, Purge.$type);
593
+ }
594
+ export function isQualifiedName(item) {
595
+ return isRef(item) || (typeof item === 'string' && (/(?:[_a-zA-Z][\w_]*)(\/(?:[_a-zA-Z][\w_]*))?/.test(item)));
338
596
  }
339
- export const RbacAllowSpec = 'RbacAllowSpec';
597
+ export function isQueryId(item) {
598
+ return typeof item === 'string';
599
+ }
600
+ export const RbacAllowSpec = {
601
+ $type: 'RbacAllowSpec',
602
+ oprs: 'oprs'
603
+ };
340
604
  export function isRbacAllowSpec(item) {
341
- return reflection.isInstance(item, RbacAllowSpec);
605
+ return reflection.isInstance(item, RbacAllowSpec.$type);
342
606
  }
343
- export const RbacExpressionSpec = 'RbacExpressionSpec';
607
+ export const RbacExpressionSpec = {
608
+ $type: 'RbacExpressionSpec',
609
+ lhs: 'lhs',
610
+ rhs: 'rhs'
611
+ };
344
612
  export function isRbacExpressionSpec(item) {
345
- return reflection.isInstance(item, RbacExpressionSpec);
613
+ return reflection.isInstance(item, RbacExpressionSpec.$type);
346
614
  }
347
- export const RbacOpr = 'RbacOpr';
615
+ export const RbacOpr = {
616
+ $type: 'RbacOpr',
617
+ value: 'value'
618
+ };
348
619
  export function isRbacOpr(item) {
349
- return reflection.isInstance(item, RbacOpr);
620
+ return reflection.isInstance(item, RbacOpr.$type);
350
621
  }
351
- export const RbacRolesSpec = 'RbacRolesSpec';
622
+ export const RbacRolesSpec = {
623
+ $type: 'RbacRolesSpec',
624
+ roles: 'roles'
625
+ };
352
626
  export function isRbacRolesSpec(item) {
353
- return reflection.isInstance(item, RbacRolesSpec);
627
+ return reflection.isInstance(item, RbacRolesSpec.$type);
354
628
  }
355
- export const RbacSpecDefinition = 'RbacSpecDefinition';
629
+ export const RbacSpecDefinition = {
630
+ $type: 'RbacSpecDefinition',
631
+ specEntries: 'specEntries'
632
+ };
356
633
  export function isRbacSpecDefinition(item) {
357
- return reflection.isInstance(item, RbacSpecDefinition);
634
+ return reflection.isInstance(item, RbacSpecDefinition.$type);
358
635
  }
359
- export const RbacSpecEntries = 'RbacSpecEntries';
636
+ export const RbacSpecEntries = {
637
+ $type: 'RbacSpecEntries',
638
+ entries: 'entries'
639
+ };
360
640
  export function isRbacSpecEntries(item) {
361
- return reflection.isInstance(item, RbacSpecEntries);
641
+ return reflection.isInstance(item, RbacSpecEntries.$type);
362
642
  }
363
- export const RbacSpecEntry = 'RbacSpecEntry';
643
+ export const RbacSpecEntry = {
644
+ $type: 'RbacSpecEntry',
645
+ allow: 'allow',
646
+ expr: 'expr',
647
+ role: 'role'
648
+ };
364
649
  export function isRbacSpecEntry(item) {
365
- return reflection.isInstance(item, RbacSpecEntry);
650
+ return reflection.isInstance(item, RbacSpecEntry.$type);
366
651
  }
367
- export const RecordDefinition = 'RecordDefinition';
652
+ export const RecordDefinition = {
653
+ $type: 'RecordDefinition',
654
+ extends: 'extends',
655
+ name: 'name',
656
+ schema: 'schema'
657
+ };
368
658
  export function isRecordDefinition(item) {
369
- return reflection.isInstance(item, RecordDefinition);
370
- }
371
- export const RecordExtraDefinition = 'RecordExtraDefinition';
659
+ return reflection.isInstance(item, RecordDefinition.$type);
660
+ }
661
+ export const RecordExtraDefinition = {
662
+ $type: 'RecordExtraDefinition',
663
+ actions: 'actions',
664
+ meta: 'meta',
665
+ prePost: 'prePost',
666
+ rbacSpec: 'rbacSpec',
667
+ uq: 'uq'
668
+ };
372
669
  export function isRecordExtraDefinition(item) {
373
- return reflection.isInstance(item, RecordExtraDefinition);
670
+ return reflection.isInstance(item, RecordExtraDefinition.$type);
374
671
  }
375
- export const RecordSchemaDefinition = 'RecordSchemaDefinition';
672
+ export const RecordSchemaDefinition = {
673
+ $type: 'RecordSchemaDefinition',
674
+ attributes: 'attributes',
675
+ extras: 'extras'
676
+ };
376
677
  export function isRecordSchemaDefinition(item) {
377
- return reflection.isInstance(item, RecordSchemaDefinition);
678
+ return reflection.isInstance(item, RecordSchemaDefinition.$type);
378
679
  }
379
- export const RefSpec = 'RefSpec';
380
- export function isRefSpec(item) {
381
- return reflection.isInstance(item, RefSpec);
680
+ export function isRef(item) {
681
+ return typeof item === 'string';
382
682
  }
383
- export const RelationshipDefinition = 'RelationshipDefinition';
683
+ export const RefSpec = {
684
+ $type: 'RefSpec',
685
+ ref: 'ref',
686
+ type: 'type'
687
+ };
688
+ export function isRefSpec(item) {
689
+ return reflection.isInstance(item, RefSpec.$type);
690
+ }
691
+ export const RelationshipDefinition = {
692
+ $type: 'RelationshipDefinition',
693
+ name: 'name',
694
+ nodes: 'nodes',
695
+ properties: 'properties',
696
+ schema: 'schema',
697
+ type: 'type'
698
+ };
384
699
  export function isRelationshipDefinition(item) {
385
- return reflection.isInstance(item, RelationshipDefinition);
700
+ return reflection.isInstance(item, RelationshipDefinition.$type);
386
701
  }
387
- export const RelationshipPattern = 'RelationshipPattern';
702
+ export const RelationshipPattern = {
703
+ $type: 'RelationshipPattern',
704
+ name: 'name',
705
+ pattern: 'pattern'
706
+ };
388
707
  export function isRelationshipPattern(item) {
389
- return reflection.isInstance(item, RelationshipPattern);
708
+ return reflection.isInstance(item, RelationshipPattern.$type);
390
709
  }
391
- export const RelNodes = 'RelNodes';
710
+ export const RelNodes = {
711
+ $type: 'RelNodes',
712
+ node1: 'node1',
713
+ node2: 'node2'
714
+ };
392
715
  export function isRelNodes(item) {
393
- return reflection.isInstance(item, RelNodes);
716
+ return reflection.isInstance(item, RelNodes.$type);
394
717
  }
395
- export const ResolverDefinition = 'ResolverDefinition';
718
+ export const ResolverDefinition = {
719
+ $type: 'ResolverDefinition',
720
+ methods: 'methods',
721
+ name: 'name',
722
+ paths: 'paths'
723
+ };
396
724
  export function isResolverDefinition(item) {
397
- return reflection.isInstance(item, ResolverDefinition);
725
+ return reflection.isInstance(item, ResolverDefinition.$type);
398
726
  }
399
- export const ResolverFnName = 'ResolverFnName';
727
+ export const ResolverFnName = {
728
+ $type: 'ResolverFnName',
729
+ name: 'name'
730
+ };
400
731
  export function isResolverFnName(item) {
401
- return reflection.isInstance(item, ResolverFnName);
732
+ return reflection.isInstance(item, ResolverFnName.$type);
402
733
  }
403
- export const ResolverMethodName = 'ResolverMethodName';
734
+ export const ResolverMethodName = {
735
+ $type: 'ResolverMethodName',
736
+ name: 'name'
737
+ };
404
738
  export function isResolverMethodName(item) {
405
- return reflection.isInstance(item, ResolverMethodName);
739
+ return reflection.isInstance(item, ResolverMethodName.$type);
406
740
  }
407
- export const ResolverMethodSpec = 'ResolverMethodSpec';
741
+ export const ResolverMethodSpec = {
742
+ $type: 'ResolverMethodSpec',
743
+ fn: 'fn',
744
+ key: 'key'
745
+ };
408
746
  export function isResolverMethodSpec(item) {
409
- return reflection.isInstance(item, ResolverMethodSpec);
747
+ return reflection.isInstance(item, ResolverMethodSpec.$type);
410
748
  }
411
- export const RetryDefinition = 'RetryDefinition';
749
+ export function isResolverPathEntry(item) {
750
+ return isQualifiedName(item) || isGenericName(item);
751
+ }
752
+ export const RetryDefinition = {
753
+ $type: 'RetryDefinition',
754
+ attempts: 'attempts',
755
+ backoff: 'backoff',
756
+ name: 'name'
757
+ };
412
758
  export function isRetryDefinition(item) {
413
- return reflection.isInstance(item, RetryDefinition);
759
+ return reflection.isInstance(item, RetryDefinition.$type);
414
760
  }
415
- export const Return = 'Return';
761
+ export const Return = {
762
+ $type: 'Return',
763
+ pattern: 'pattern'
764
+ };
416
765
  export function isReturn(item) {
417
- return reflection.isInstance(item, Return);
766
+ return reflection.isInstance(item, Return.$type);
418
767
  }
419
- export const RuntimeHint = 'RuntimeHint';
768
+ export const RuntimeHint = {
769
+ $type: 'RuntimeHint',
770
+ aliasSpec: 'aliasSpec',
771
+ catchSpec: 'catchSpec',
772
+ thenSpec: 'thenSpec'
773
+ };
420
774
  export function isRuntimeHint(item) {
421
- return reflection.isInstance(item, RuntimeHint);
775
+ return reflection.isInstance(item, RuntimeHint.$type);
422
776
  }
423
- export const ScenarioDefinition = 'ScenarioDefinition';
777
+ export const ScenarioDefinition = {
778
+ $type: 'ScenarioDefinition',
779
+ body: 'body',
780
+ name: 'name',
781
+ scn: 'scn'
782
+ };
424
783
  export function isScenarioDefinition(item) {
425
- return reflection.isInstance(item, ScenarioDefinition);
784
+ return reflection.isInstance(item, ScenarioDefinition.$type);
785
+ }
786
+ export const SchemaDefinition = {
787
+ $type: 'SchemaDefinition'
788
+ };
789
+ export function isSchemaDefinition(item) {
790
+ return reflection.isInstance(item, SchemaDefinition.$type);
426
791
  }
427
- export const SelectIntoEntry = 'SelectIntoEntry';
792
+ export const SelectIntoEntry = {
793
+ $type: 'SelectIntoEntry',
794
+ aggregate: 'aggregate',
795
+ alias: 'alias',
796
+ attribute: 'attribute'
797
+ };
428
798
  export function isSelectIntoEntry(item) {
429
- return reflection.isInstance(item, SelectIntoEntry);
799
+ return reflection.isInstance(item, SelectIntoEntry.$type);
430
800
  }
431
- export const SelectIntoSpec = 'SelectIntoSpec';
801
+ export const SelectIntoSpec = {
802
+ $type: 'SelectIntoSpec',
803
+ entries: 'entries'
804
+ };
432
805
  export function isSelectIntoSpec(item) {
433
- return reflection.isInstance(item, SelectIntoSpec);
434
- }
435
- export const SetAttribute = 'SetAttribute';
806
+ return reflection.isInstance(item, SelectIntoSpec.$type);
807
+ }
808
+ export const SetAttribute = {
809
+ $type: 'SetAttribute',
810
+ aggregate: 'aggregate',
811
+ name: 'name',
812
+ op: 'op',
813
+ value: 'value'
814
+ };
436
815
  export function isSetAttribute(item) {
437
- return reflection.isInstance(item, SetAttribute);
816
+ return reflection.isInstance(item, SetAttribute.$type);
817
+ }
818
+ export function isSqlComparisonOpr(item) {
819
+ return item === '=' || item === '<>' || item === '!=' || item === '<' || item === '<=' || item === '>' || item === '>=' || item === 'in' || item === 'like' || item === 'between';
438
820
  }
439
- export const StandaloneStatement = 'StandaloneStatement';
821
+ export const StandaloneStatement = {
822
+ $type: 'StandaloneStatement',
823
+ stmt: 'stmt'
824
+ };
440
825
  export function isStandaloneStatement(item) {
441
- return reflection.isInstance(item, StandaloneStatement);
826
+ return reflection.isInstance(item, StandaloneStatement.$type);
442
827
  }
443
- export const Statement = 'Statement';
828
+ export const Statement = {
829
+ $type: 'Statement',
830
+ hints: 'hints',
831
+ pattern: 'pattern'
832
+ };
444
833
  export function isStatement(item) {
445
- return reflection.isInstance(item, Statement);
834
+ return reflection.isInstance(item, Statement.$type);
835
+ }
836
+ export function isSTRING(item) {
837
+ return (typeof item === 'string' && (/"(\\(?:[\s\S])|(?:(?!(\\|"|\r|\n))[\s\S]*?)|\r?\n)*"/.test(item) || /`(\\(?:[\s\S])|(?:(?!(\\|`|\r|\n))[\s\S]*?)|\r?\n)*`/.test(item)));
446
838
  }
447
- export const ThenSpec = 'ThenSpec';
839
+ export function isTaggedId(item) {
840
+ return typeof item === 'string';
841
+ }
842
+ export const ThenSpec = {
843
+ $type: 'ThenSpec',
844
+ statements: 'statements'
845
+ };
448
846
  export function isThenSpec(item) {
449
- return reflection.isInstance(item, ThenSpec);
847
+ return reflection.isInstance(item, ThenSpec.$type);
450
848
  }
451
- export const ThrowError = 'ThrowError';
849
+ export const ThrowError = {
850
+ $type: 'ThrowError',
851
+ reason: 'reason'
852
+ };
452
853
  export function isThrowError(item) {
453
- return reflection.isInstance(item, ThrowError);
854
+ return reflection.isInstance(item, ThrowError.$type);
454
855
  }
455
- export const TriggerDefinition = 'TriggerDefinition';
856
+ export const TriggerDefinition = {
857
+ $type: 'TriggerDefinition',
858
+ entries: 'entries'
859
+ };
456
860
  export function isTriggerDefinition(item) {
457
- return reflection.isInstance(item, TriggerDefinition);
861
+ return reflection.isInstance(item, TriggerDefinition.$type);
458
862
  }
459
- export const TriggerEntry = 'TriggerEntry';
863
+ export const TriggerEntry = {
864
+ $type: 'TriggerEntry',
865
+ async: 'async',
866
+ event: 'event',
867
+ on: 'on'
868
+ };
460
869
  export function isTriggerEntry(item) {
461
- return reflection.isInstance(item, TriggerEntry);
870
+ return reflection.isInstance(item, TriggerEntry.$type);
462
871
  }
463
- export const WhereSpec = 'WhereSpec';
872
+ export const WhereSpec = {
873
+ $type: 'WhereSpec',
874
+ clauses: 'clauses'
875
+ };
464
876
  export function isWhereSpec(item) {
465
- return reflection.isInstance(item, WhereSpec);
877
+ return reflection.isInstance(item, WhereSpec.$type);
466
878
  }
467
- export const WhereSpecClause = 'WhereSpecClause';
879
+ export const WhereSpecClause = {
880
+ $type: 'WhereSpecClause',
881
+ lhs: 'lhs',
882
+ op: 'op',
883
+ rhs: 'rhs'
884
+ };
468
885
  export function isWhereSpecClause(item) {
469
- return reflection.isInstance(item, WhereSpecClause);
886
+ return reflection.isInstance(item, WhereSpecClause.$type);
470
887
  }
471
- export const WorkflowDefinition = 'WorkflowDefinition';
888
+ export const WorkflowDefinition = {
889
+ $type: 'WorkflowDefinition',
890
+ header: 'header',
891
+ name: 'name',
892
+ statements: 'statements'
893
+ };
472
894
  export function isWorkflowDefinition(item) {
473
- return reflection.isInstance(item, WorkflowDefinition);
895
+ return reflection.isInstance(item, WorkflowDefinition.$type);
474
896
  }
475
- export const WorkflowHeader = 'WorkflowHeader';
897
+ export const WorkflowHeader = {
898
+ $type: 'WorkflowHeader',
899
+ name: 'name',
900
+ prefix: 'prefix',
901
+ tag: 'tag'
902
+ };
476
903
  export function isWorkflowHeader(item) {
477
- return reflection.isInstance(item, WorkflowHeader);
904
+ return reflection.isInstance(item, WorkflowHeader.$type);
905
+ }
906
+ export function isWorkflowHeaderPrefix(item) {
907
+ return item === 'create' || item === 'update' || item === 'delete';
908
+ }
909
+ export function isWorkflowHeaderTag(item) {
910
+ return item === '@after' || item === '@before';
478
911
  }
479
912
  export class AgentlangAstReflection extends langium.AbstractAstReflection {
480
- getAllTypes() {
481
- return [ActionEntry, AfterTriggerDefinition, AgentDefinition, AgentXtraAttribute, AgentXtraSpec, AggregateFunctionSpec, AliasSpec, ArrayLiteral, AsyncFnCall, AttributeDefinition, AttributeValueExpression, BackoffSpec, BeforeTriggerDefinition, BinExpr, CaseEntry, CatchSpec, CompositeUniqueDefinition, ConditionalFlowStep, CrudMap, CrudMapBody, DecisionDefBody, DecisionDefinition, Definition, Delete, DirectiveDefinition, Else, EntityActionsDefinitions, EntityDefinition, EnumSpec, EventDefinition, Expr, ExtendsClause, FlowDefBody, FlowDefinition, FlowEntry, FlowStepSpec, FnCall, ForEach, FullTextSearch, GenericDefBody, GenericPropertyDef, GlossaryEntryDefinition, Group, GroupByClause, Handler, If, IfWithAlias, Import, JoinSpec, KvPair, KvPairs, Literal, MapEntry, MapKey, MapLiteral, MetaDefinition, ModuleDefinition, NegExpr, NodeDefinition, NotExpr, OneOfSpec, OrderByClause, Pattern, PrePostTriggerDefinition, PrimExpr, PropertyDefinition, PublicAgentDefinition, PublicEventDefinition, PublicWorkflowDefinition, Purge, RbacAllowSpec, RbacExpressionSpec, RbacOpr, RbacRolesSpec, RbacSpecDefinition, RbacSpecEntries, RbacSpecEntry, RecordDefinition, RecordExtraDefinition, RecordSchemaDefinition, RefSpec, RelNodes, RelationshipDefinition, RelationshipPattern, ResolverDefinition, ResolverFnName, ResolverMethodName, ResolverMethodSpec, RetryDefinition, Return, RuntimeHint, ScenarioDefinition, SchemaDefinition, SelectIntoEntry, SelectIntoSpec, SetAttribute, StandaloneStatement, Statement, ThenSpec, ThrowError, TriggerDefinition, TriggerEntry, WhereSpec, WhereSpecClause, WorkflowDefinition, WorkflowHeader];
482
- }
483
- computeIsSubtype(subtype, supertype) {
484
- switch (subtype) {
485
- case AgentDefinition:
486
- case DecisionDefinition:
487
- case DirectiveDefinition:
488
- case FlowDefinition:
489
- case GlossaryEntryDefinition:
490
- case PublicAgentDefinition:
491
- case PublicWorkflowDefinition:
492
- case RelationshipDefinition:
493
- case ResolverDefinition:
494
- case RetryDefinition:
495
- case ScenarioDefinition:
496
- case SchemaDefinition:
497
- case StandaloneStatement:
498
- case WorkflowDefinition: {
499
- return this.isSubtype(Definition, supertype);
500
- }
501
- case BinExpr:
502
- case PrimExpr: {
503
- return this.isSubtype(Expr, supertype);
504
- }
505
- case EntityDefinition:
506
- case EventDefinition:
507
- case PublicEventDefinition:
508
- case RecordDefinition: {
509
- return this.isSubtype(SchemaDefinition, supertype);
510
- }
511
- case Expr: {
512
- return this.isSubtype(AttributeValueExpression, supertype);
513
- }
514
- case Group:
515
- case Literal:
516
- case NegExpr:
517
- case NotExpr: {
518
- return this.isSubtype(PrimExpr, supertype);
519
- }
520
- case Statement: {
521
- return this.isSubtype(FlowStepSpec, supertype);
522
- }
523
- default: {
524
- return false;
525
- }
526
- }
527
- }
528
- getReferenceType(refInfo) {
529
- const referenceId = `${refInfo.container.$type}:${refInfo.property}`;
530
- switch (referenceId) {
531
- default: {
532
- throw new Error(`${referenceId} is not a valid reference id.`);
533
- }
534
- }
535
- }
536
- getTypeMetaData(type) {
537
- switch (type) {
538
- case ActionEntry: {
539
- return {
540
- name: ActionEntry,
541
- properties: [
542
- { name: 'event' },
543
- { name: 'name' }
544
- ]
545
- };
546
- }
547
- case AfterTriggerDefinition: {
548
- return {
549
- name: AfterTriggerDefinition,
550
- properties: [
551
- { name: 'triggers' }
552
- ]
553
- };
554
- }
555
- case AgentDefinition: {
556
- return {
557
- name: AgentDefinition,
558
- properties: [
559
- { name: 'body' },
560
- { name: 'name' }
561
- ]
562
- };
563
- }
564
- case AgentXtraAttribute: {
565
- return {
566
- name: AgentXtraAttribute,
567
- properties: [
568
- { name: 'name' },
569
- { name: 'value' }
570
- ]
571
- };
572
- }
573
- case AgentXtraSpec: {
574
- return {
575
- name: AgentXtraSpec,
576
- properties: [
577
- { name: 'attributes', defaultValue: [] }
578
- ]
579
- };
580
- }
581
- case AggregateFunctionSpec: {
582
- return {
583
- name: AggregateFunctionSpec,
584
- properties: [
585
- { name: 'args', defaultValue: [] },
586
- { name: 'name' }
587
- ]
588
- };
589
- }
590
- case AliasSpec: {
591
- return {
592
- name: AliasSpec,
593
- properties: [
594
- { name: 'alias' },
595
- { name: 'aliases', defaultValue: [] }
596
- ]
597
- };
598
- }
599
- case ArrayLiteral: {
600
- return {
601
- name: ArrayLiteral,
602
- properties: [
603
- { name: 'vals', defaultValue: [] }
604
- ]
605
- };
606
- }
607
- case AsyncFnCall: {
608
- return {
609
- name: AsyncFnCall,
610
- properties: [
611
- { name: 'fnCall' }
612
- ]
613
- };
614
- }
615
- case AttributeDefinition: {
616
- return {
617
- name: AttributeDefinition,
618
- properties: [
619
- { name: 'arrayType' },
620
- { name: 'enumSpec' },
621
- { name: 'expr' },
622
- { name: 'name' },
623
- { name: 'oneOfSpec' },
624
- { name: 'properties', defaultValue: [] },
625
- { name: 'refSpec' },
626
- { name: 'type' }
627
- ]
628
- };
629
- }
630
- case BackoffSpec: {
631
- return {
632
- name: BackoffSpec,
633
- properties: [
634
- { name: 'attributes', defaultValue: [] }
635
- ]
636
- };
637
- }
638
- case BeforeTriggerDefinition: {
639
- return {
640
- name: BeforeTriggerDefinition,
641
- properties: [
642
- { name: 'triggers' }
643
- ]
644
- };
645
- }
646
- case BinExpr: {
647
- return {
648
- name: BinExpr,
649
- properties: [
650
- { name: 'e1' },
651
- { name: 'e2' },
652
- { name: 'op' }
653
- ]
654
- };
655
- }
656
- case CaseEntry: {
657
- return {
658
- name: CaseEntry,
659
- properties: [
660
- { name: 'cond' },
661
- { name: 'statements', defaultValue: [] }
662
- ]
663
- };
664
- }
665
- case CatchSpec: {
666
- return {
667
- name: CatchSpec,
668
- properties: [
669
- { name: 'handlers', defaultValue: [] }
670
- ]
671
- };
672
- }
673
- case CompositeUniqueDefinition: {
674
- return {
675
- name: CompositeUniqueDefinition,
676
- properties: [
677
- { name: 'attrs', defaultValue: [] }
678
- ]
679
- };
680
- }
681
- case ConditionalFlowStep: {
682
- return {
683
- name: ConditionalFlowStep,
684
- properties: [
685
- { name: 'expr' },
686
- { name: 'next' }
687
- ]
688
- };
689
- }
690
- case CrudMap: {
691
- return {
692
- name: CrudMap,
693
- properties: [
694
- { name: 'body' },
695
- { name: 'distinct', defaultValue: [] },
696
- { name: 'groupByClause' },
697
- { name: 'into' },
698
- { name: 'joins', defaultValue: [] },
699
- { name: 'name' },
700
- { name: 'orderByClause' },
701
- { name: 'relationships', defaultValue: [] },
702
- { name: 'source' },
703
- { name: 'upsert', defaultValue: [] },
704
- { name: 'where' }
705
- ]
706
- };
707
- }
708
- case CrudMapBody: {
709
- return {
710
- name: CrudMapBody,
711
- properties: [
712
- { name: 'attributes', defaultValue: [] },
713
- { name: 'properties', defaultValue: [] }
714
- ]
715
- };
716
- }
717
- case DecisionDefBody: {
718
- return {
719
- name: DecisionDefBody,
720
- properties: [
721
- { name: 'cases', defaultValue: [] }
722
- ]
723
- };
724
- }
725
- case DecisionDefinition: {
726
- return {
727
- name: DecisionDefinition,
728
- properties: [
729
- { name: 'body' },
730
- { name: 'name' }
731
- ]
732
- };
733
- }
734
- case Delete: {
735
- return {
736
- name: Delete,
737
- properties: [
738
- { name: 'pattern' }
739
- ]
740
- };
741
- }
742
- case DirectiveDefinition: {
743
- return {
744
- name: DirectiveDefinition,
745
- properties: [
746
- { name: 'body' },
747
- { name: 'dir' },
748
- { name: 'name' }
749
- ]
750
- };
751
- }
752
- case Else: {
753
- return {
754
- name: Else,
755
- properties: [
756
- { name: 'statements', defaultValue: [] }
757
- ]
758
- };
759
- }
760
- case EntityActionsDefinitions: {
761
- return {
762
- name: EntityActionsDefinitions,
763
- properties: [
764
- { name: 'entries', defaultValue: [] }
765
- ]
766
- };
767
- }
768
- case EntityDefinition: {
769
- return {
770
- name: EntityDefinition,
771
- properties: [
772
- { name: 'extends' },
773
- { name: 'name' },
774
- { name: 'schema' }
775
- ]
776
- };
777
- }
778
- case EnumSpec: {
779
- return {
780
- name: EnumSpec,
781
- properties: [
782
- { name: 'type' },
783
- { name: 'values', defaultValue: [] }
784
- ]
785
- };
786
- }
787
- case EventDefinition: {
788
- return {
789
- name: EventDefinition,
790
- properties: [
791
- { name: 'extends' },
792
- { name: 'name' },
793
- { name: 'schema' }
794
- ]
795
- };
796
- }
797
- case ExtendsClause: {
798
- return {
799
- name: ExtendsClause,
800
- properties: [
801
- { name: 'parentName' }
802
- ]
803
- };
804
- }
805
- case FlowDefBody: {
806
- return {
807
- name: FlowDefBody,
808
- properties: [
809
- { name: 'entries', defaultValue: [] }
810
- ]
811
- };
812
- }
813
- case FlowDefinition: {
814
- return {
815
- name: FlowDefinition,
816
- properties: [
817
- { name: 'body' },
818
- { name: 'name' }
819
- ]
820
- };
821
- }
822
- case FlowEntry: {
823
- return {
824
- name: FlowEntry,
825
- properties: [
826
- { name: 'cond' },
827
- { name: 'next' },
828
- { name: 'root' }
829
- ]
830
- };
831
- }
832
- case FnCall: {
833
- return {
834
- name: FnCall,
835
- properties: [
836
- { name: 'args', defaultValue: [] },
837
- { name: 'name' }
838
- ]
839
- };
840
- }
841
- case ForEach: {
842
- return {
843
- name: ForEach,
844
- properties: [
845
- { name: 'src' },
846
- { name: 'statements', defaultValue: [] },
847
- { name: 'var' }
848
- ]
849
- };
850
- }
851
- case FullTextSearch: {
852
- return {
853
- name: FullTextSearch,
854
- properties: [
855
- { name: 'name' },
856
- { name: 'options' },
857
- { name: 'query' }
858
- ]
859
- };
860
- }
861
- case GenericDefBody: {
862
- return {
863
- name: GenericDefBody,
864
- properties: [
865
- { name: 'attributes', defaultValue: [] }
866
- ]
867
- };
868
- }
869
- case GenericPropertyDef: {
870
- return {
871
- name: GenericPropertyDef,
872
- properties: [
873
- { name: 'name' },
874
- { name: 'value' }
875
- ]
876
- };
877
- }
878
- case GlossaryEntryDefinition: {
879
- return {
880
- name: GlossaryEntryDefinition,
881
- properties: [
882
- { name: 'body' },
883
- { name: 'glos' },
884
- { name: 'name' }
885
- ]
886
- };
887
- }
888
- case Group: {
889
- return {
890
- name: Group,
891
- properties: [
892
- { name: 'ge' }
893
- ]
894
- };
895
- }
896
- case GroupByClause: {
897
- return {
898
- name: GroupByClause,
899
- properties: [
900
- { name: 'colNames', defaultValue: [] }
901
- ]
902
- };
903
- }
904
- case Handler: {
905
- return {
906
- name: Handler,
907
- properties: [
908
- { name: 'except' },
909
- { name: 'stmt' }
910
- ]
911
- };
912
- }
913
- case If: {
914
- return {
915
- name: If,
916
- properties: [
917
- { name: 'cond' },
918
- { name: 'else' },
919
- { name: 'statements', defaultValue: [] }
920
- ]
921
- };
922
- }
923
- case IfWithAlias: {
924
- return {
925
- name: IfWithAlias,
926
- properties: [
927
- { name: 'if' }
928
- ]
929
- };
930
- }
931
- case Import: {
932
- return {
933
- name: Import,
934
- properties: [
935
- { name: 'name' },
936
- { name: 'path' }
937
- ]
938
- };
939
- }
940
- case JoinSpec: {
941
- return {
942
- name: JoinSpec,
943
- properties: [
944
- { name: 'lhs' },
945
- { name: 'name' },
946
- { name: 'op' },
947
- { name: 'rhs' },
948
- { name: 'type' }
949
- ]
950
- };
951
- }
952
- case KvPair: {
953
- return {
954
- name: KvPair,
955
- properties: [
956
- { name: 'key' },
957
- { name: 'value' }
958
- ]
959
- };
960
- }
961
- case KvPairs: {
962
- return {
963
- name: KvPairs,
964
- properties: [
965
- { name: 'pairs', defaultValue: [] }
966
- ]
967
- };
968
- }
969
- case Literal: {
970
- return {
971
- name: Literal,
972
- properties: [
973
- { name: 'array' },
974
- { name: 'asyncFnCall' },
975
- { name: 'bool' },
976
- { name: 'fnCall' },
977
- { name: 'id' },
978
- { name: 'map' },
979
- { name: 'num' },
980
- { name: 'ref' },
981
- { name: 'str' }
982
- ]
983
- };
984
- }
985
- case MapEntry: {
986
- return {
987
- name: MapEntry,
988
- properties: [
989
- { name: 'key' },
990
- { name: 'value' }
991
- ]
992
- };
993
- }
994
- case MapKey: {
995
- return {
996
- name: MapKey,
997
- properties: [
998
- { name: 'bool' },
999
- { name: 'num' },
1000
- { name: 'str' }
1001
- ]
1002
- };
1003
- }
1004
- case MapLiteral: {
1005
- return {
1006
- name: MapLiteral,
1007
- properties: [
1008
- { name: 'entries', defaultValue: [] }
1009
- ]
1010
- };
1011
- }
1012
- case MetaDefinition: {
1013
- return {
1014
- name: MetaDefinition,
1015
- properties: [
1016
- { name: 'spec' }
1017
- ]
1018
- };
1019
- }
1020
- case ModuleDefinition: {
1021
- return {
1022
- name: ModuleDefinition,
1023
- properties: [
1024
- { name: 'defs', defaultValue: [] },
1025
- { name: 'imports', defaultValue: [] },
1026
- { name: 'name' }
1027
- ]
1028
- };
1029
- }
1030
- case NegExpr: {
1031
- return {
1032
- name: NegExpr,
1033
- properties: [
1034
- { name: 'ne' }
1035
- ]
1036
- };
1037
- }
1038
- case NodeDefinition: {
1039
- return {
1040
- name: NodeDefinition,
1041
- properties: [
1042
- { name: 'alias' },
1043
- { name: 'name' }
1044
- ]
1045
- };
1046
- }
1047
- case NotExpr: {
1048
- return {
1049
- name: NotExpr,
1050
- properties: [
1051
- { name: 'ne' }
1052
- ]
1053
- };
1054
- }
1055
- case OneOfSpec: {
1056
- return {
1057
- name: OneOfSpec,
1058
- properties: [
1059
- { name: 'ref' }
1060
- ]
1061
- };
1062
- }
1063
- case OrderByClause: {
1064
- return {
1065
- name: OrderByClause,
1066
- properties: [
1067
- { name: 'colNames', defaultValue: [] },
1068
- { name: 'order' }
1069
- ]
1070
- };
1071
- }
1072
- case Pattern: {
1073
- return {
1074
- name: Pattern,
1075
- properties: [
1076
- { name: 'crudMap' },
1077
- { name: 'delete' },
1078
- { name: 'expr' },
1079
- { name: 'forEach' },
1080
- { name: 'fullTextSearch' },
1081
- { name: 'if' },
1082
- { name: 'ifWithAlias' },
1083
- { name: 'purge' },
1084
- { name: 'return' },
1085
- { name: 'throwError' }
1086
- ]
1087
- };
1088
- }
1089
- case PrePostTriggerDefinition: {
1090
- return {
1091
- name: PrePostTriggerDefinition,
1092
- properties: [
1093
- { name: 'after' },
1094
- { name: 'before' }
1095
- ]
1096
- };
1097
- }
1098
- case PropertyDefinition: {
1099
- return {
1100
- name: PropertyDefinition,
1101
- properties: [
1102
- { name: 'name' },
1103
- { name: 'value' }
1104
- ]
1105
- };
1106
- }
1107
- case PublicAgentDefinition: {
1108
- return {
1109
- name: PublicAgentDefinition,
1110
- properties: [
1111
- { name: 'def' }
1112
- ]
1113
- };
1114
- }
1115
- case PublicEventDefinition: {
1116
- return {
1117
- name: PublicEventDefinition,
1118
- properties: [
1119
- { name: 'def' }
1120
- ]
1121
- };
1122
- }
1123
- case PublicWorkflowDefinition: {
1124
- return {
1125
- name: PublicWorkflowDefinition,
1126
- properties: [
1127
- { name: 'def' }
1128
- ]
1129
- };
1130
- }
1131
- case Purge: {
1132
- return {
1133
- name: Purge,
1134
- properties: [
1135
- { name: 'pattern' }
1136
- ]
1137
- };
1138
- }
1139
- case RbacAllowSpec: {
1140
- return {
1141
- name: RbacAllowSpec,
1142
- properties: [
1143
- { name: 'oprs', defaultValue: [] }
1144
- ]
1145
- };
1146
- }
1147
- case RbacExpressionSpec: {
1148
- return {
1149
- name: RbacExpressionSpec,
1150
- properties: [
1151
- { name: 'lhs' },
1152
- { name: 'rhs' }
1153
- ]
1154
- };
1155
- }
1156
- case RbacOpr: {
1157
- return {
1158
- name: RbacOpr,
1159
- properties: [
1160
- { name: 'value' }
1161
- ]
1162
- };
1163
- }
1164
- case RbacRolesSpec: {
1165
- return {
1166
- name: RbacRolesSpec,
1167
- properties: [
1168
- { name: 'roles', defaultValue: [] }
1169
- ]
1170
- };
1171
- }
1172
- case RbacSpecDefinition: {
1173
- return {
1174
- name: RbacSpecDefinition,
1175
- properties: [
1176
- { name: 'specEntries', defaultValue: [] }
1177
- ]
1178
- };
1179
- }
1180
- case RbacSpecEntries: {
1181
- return {
1182
- name: RbacSpecEntries,
1183
- properties: [
1184
- { name: 'entries', defaultValue: [] }
1185
- ]
1186
- };
1187
- }
1188
- case RbacSpecEntry: {
1189
- return {
1190
- name: RbacSpecEntry,
1191
- properties: [
1192
- { name: 'allow' },
1193
- { name: 'expr' },
1194
- { name: 'role' }
1195
- ]
1196
- };
1197
- }
1198
- case RecordDefinition: {
1199
- return {
1200
- name: RecordDefinition,
1201
- properties: [
1202
- { name: 'extends' },
1203
- { name: 'name' },
1204
- { name: 'schema' }
1205
- ]
1206
- };
1207
- }
1208
- case RecordExtraDefinition: {
1209
- return {
1210
- name: RecordExtraDefinition,
1211
- properties: [
1212
- { name: 'actions' },
1213
- { name: 'meta' },
1214
- { name: 'prePost' },
1215
- { name: 'rbacSpec' },
1216
- { name: 'uq' }
1217
- ]
1218
- };
1219
- }
1220
- case RecordSchemaDefinition: {
1221
- return {
1222
- name: RecordSchemaDefinition,
1223
- properties: [
1224
- { name: 'attributes', defaultValue: [] },
1225
- { name: 'extras', defaultValue: [] }
1226
- ]
1227
- };
1228
- }
1229
- case RefSpec: {
1230
- return {
1231
- name: RefSpec,
1232
- properties: [
1233
- { name: 'ref' },
1234
- { name: 'type' }
1235
- ]
1236
- };
1237
- }
1238
- case RelationshipDefinition: {
1239
- return {
1240
- name: RelationshipDefinition,
1241
- properties: [
1242
- { name: 'name' },
1243
- { name: 'nodes' },
1244
- { name: 'properties', defaultValue: [] },
1245
- { name: 'schema' },
1246
- { name: 'type' }
1247
- ]
1248
- };
1249
- }
1250
- case RelationshipPattern: {
1251
- return {
1252
- name: RelationshipPattern,
1253
- properties: [
1254
- { name: 'name' },
1255
- { name: 'pattern' }
1256
- ]
1257
- };
1258
- }
1259
- case RelNodes: {
1260
- return {
1261
- name: RelNodes,
1262
- properties: [
1263
- { name: 'node1' },
1264
- { name: 'node2' }
1265
- ]
1266
- };
1267
- }
1268
- case ResolverDefinition: {
1269
- return {
1270
- name: ResolverDefinition,
1271
- properties: [
1272
- { name: 'methods', defaultValue: [] },
1273
- { name: 'name' },
1274
- { name: 'paths', defaultValue: [] }
1275
- ]
1276
- };
1277
- }
1278
- case ResolverFnName: {
1279
- return {
1280
- name: ResolverFnName,
1281
- properties: [
1282
- { name: 'name' }
1283
- ]
1284
- };
1285
- }
1286
- case ResolverMethodName: {
1287
- return {
1288
- name: ResolverMethodName,
1289
- properties: [
1290
- { name: 'name' }
1291
- ]
1292
- };
1293
- }
1294
- case ResolverMethodSpec: {
1295
- return {
1296
- name: ResolverMethodSpec,
1297
- properties: [
1298
- { name: 'fn' },
1299
- { name: 'key' }
1300
- ]
1301
- };
1302
- }
1303
- case RetryDefinition: {
1304
- return {
1305
- name: RetryDefinition,
1306
- properties: [
1307
- { name: 'attempts' },
1308
- { name: 'backoff' },
1309
- { name: 'name' }
1310
- ]
1311
- };
1312
- }
1313
- case Return: {
1314
- return {
1315
- name: Return,
1316
- properties: [
1317
- { name: 'pattern' }
1318
- ]
1319
- };
1320
- }
1321
- case RuntimeHint: {
1322
- return {
1323
- name: RuntimeHint,
1324
- properties: [
1325
- { name: 'aliasSpec' },
1326
- { name: 'catchSpec' },
1327
- { name: 'thenSpec' }
1328
- ]
1329
- };
1330
- }
1331
- case ScenarioDefinition: {
1332
- return {
1333
- name: ScenarioDefinition,
1334
- properties: [
1335
- { name: 'body' },
1336
- { name: 'name' },
1337
- { name: 'scn' }
1338
- ]
1339
- };
1340
- }
1341
- case SelectIntoEntry: {
1342
- return {
1343
- name: SelectIntoEntry,
1344
- properties: [
1345
- { name: 'aggregate' },
1346
- { name: 'alias' },
1347
- { name: 'attribute' }
1348
- ]
1349
- };
1350
- }
1351
- case SelectIntoSpec: {
1352
- return {
1353
- name: SelectIntoSpec,
1354
- properties: [
1355
- { name: 'entries', defaultValue: [] }
1356
- ]
1357
- };
1358
- }
1359
- case SetAttribute: {
1360
- return {
1361
- name: SetAttribute,
1362
- properties: [
1363
- { name: 'aggregate' },
1364
- { name: 'name' },
1365
- { name: 'op' },
1366
- { name: 'value' }
1367
- ]
1368
- };
1369
- }
1370
- case StandaloneStatement: {
1371
- return {
1372
- name: StandaloneStatement,
1373
- properties: [
1374
- { name: 'stmt' }
1375
- ]
1376
- };
1377
- }
1378
- case Statement: {
1379
- return {
1380
- name: Statement,
1381
- properties: [
1382
- { name: 'hints', defaultValue: [] },
1383
- { name: 'pattern' }
1384
- ]
1385
- };
1386
- }
1387
- case ThenSpec: {
1388
- return {
1389
- name: ThenSpec,
1390
- properties: [
1391
- { name: 'statements', defaultValue: [] }
1392
- ]
1393
- };
1394
- }
1395
- case ThrowError: {
1396
- return {
1397
- name: ThrowError,
1398
- properties: [
1399
- { name: 'reason' }
1400
- ]
1401
- };
1402
- }
1403
- case TriggerDefinition: {
1404
- return {
1405
- name: TriggerDefinition,
1406
- properties: [
1407
- { name: 'entries', defaultValue: [] }
1408
- ]
1409
- };
1410
- }
1411
- case TriggerEntry: {
1412
- return {
1413
- name: TriggerEntry,
1414
- properties: [
1415
- { name: 'async' },
1416
- { name: 'event' },
1417
- { name: 'on' }
1418
- ]
1419
- };
1420
- }
1421
- case WhereSpec: {
1422
- return {
1423
- name: WhereSpec,
1424
- properties: [
1425
- { name: 'clauses', defaultValue: [] }
1426
- ]
1427
- };
1428
- }
1429
- case WhereSpecClause: {
1430
- return {
1431
- name: WhereSpecClause,
1432
- properties: [
1433
- { name: 'lhs' },
1434
- { name: 'op' },
1435
- { name: 'rhs' }
1436
- ]
1437
- };
1438
- }
1439
- case WorkflowDefinition: {
1440
- return {
1441
- name: WorkflowDefinition,
1442
- properties: [
1443
- { name: 'header' },
1444
- { name: 'name' },
1445
- { name: 'statements', defaultValue: [] }
1446
- ]
1447
- };
1448
- }
1449
- case WorkflowHeader: {
1450
- return {
1451
- name: WorkflowHeader,
1452
- properties: [
1453
- { name: 'name' },
1454
- { name: 'prefix' },
1455
- { name: 'tag' }
1456
- ]
1457
- };
1458
- }
1459
- default: {
1460
- return {
1461
- name: type,
1462
- properties: []
1463
- };
1464
- }
1465
- }
913
+ constructor() {
914
+ super(...arguments);
915
+ this.types = {
916
+ ActionEntry: {
917
+ name: ActionEntry.$type,
918
+ properties: {
919
+ event: {
920
+ name: ActionEntry.event
921
+ },
922
+ name: {
923
+ name: ActionEntry.name
924
+ }
925
+ },
926
+ superTypes: []
927
+ },
928
+ AfterTriggerDefinition: {
929
+ name: AfterTriggerDefinition.$type,
930
+ properties: {
931
+ triggers: {
932
+ name: AfterTriggerDefinition.triggers
933
+ }
934
+ },
935
+ superTypes: []
936
+ },
937
+ AgentDefinition: {
938
+ name: AgentDefinition.$type,
939
+ properties: {
940
+ body: {
941
+ name: AgentDefinition.body
942
+ },
943
+ name: {
944
+ name: AgentDefinition.name
945
+ }
946
+ },
947
+ superTypes: [Definition.$type]
948
+ },
949
+ AgentXtraAttribute: {
950
+ name: AgentXtraAttribute.$type,
951
+ properties: {
952
+ name: {
953
+ name: AgentXtraAttribute.name
954
+ },
955
+ value: {
956
+ name: AgentXtraAttribute.value
957
+ }
958
+ },
959
+ superTypes: []
960
+ },
961
+ AgentXtraSpec: {
962
+ name: AgentXtraSpec.$type,
963
+ properties: {
964
+ attributes: {
965
+ name: AgentXtraSpec.attributes,
966
+ defaultValue: []
967
+ }
968
+ },
969
+ superTypes: []
970
+ },
971
+ AggregateFunctionSpec: {
972
+ name: AggregateFunctionSpec.$type,
973
+ properties: {
974
+ args: {
975
+ name: AggregateFunctionSpec.args,
976
+ defaultValue: []
977
+ },
978
+ name: {
979
+ name: AggregateFunctionSpec.name
980
+ }
981
+ },
982
+ superTypes: []
983
+ },
984
+ AliasSpec: {
985
+ name: AliasSpec.$type,
986
+ properties: {
987
+ alias: {
988
+ name: AliasSpec.alias
989
+ },
990
+ aliases: {
991
+ name: AliasSpec.aliases,
992
+ defaultValue: []
993
+ }
994
+ },
995
+ superTypes: []
996
+ },
997
+ ArrayLiteral: {
998
+ name: ArrayLiteral.$type,
999
+ properties: {
1000
+ vals: {
1001
+ name: ArrayLiteral.vals,
1002
+ defaultValue: []
1003
+ }
1004
+ },
1005
+ superTypes: []
1006
+ },
1007
+ AsyncFnCall: {
1008
+ name: AsyncFnCall.$type,
1009
+ properties: {
1010
+ fnCall: {
1011
+ name: AsyncFnCall.fnCall
1012
+ }
1013
+ },
1014
+ superTypes: []
1015
+ },
1016
+ AttributeDefinition: {
1017
+ name: AttributeDefinition.$type,
1018
+ properties: {
1019
+ arrayType: {
1020
+ name: AttributeDefinition.arrayType
1021
+ },
1022
+ enumSpec: {
1023
+ name: AttributeDefinition.enumSpec
1024
+ },
1025
+ expr: {
1026
+ name: AttributeDefinition.expr
1027
+ },
1028
+ name: {
1029
+ name: AttributeDefinition.name
1030
+ },
1031
+ oneOfSpec: {
1032
+ name: AttributeDefinition.oneOfSpec
1033
+ },
1034
+ properties: {
1035
+ name: AttributeDefinition.properties,
1036
+ defaultValue: []
1037
+ },
1038
+ refSpec: {
1039
+ name: AttributeDefinition.refSpec
1040
+ },
1041
+ type: {
1042
+ name: AttributeDefinition.type
1043
+ }
1044
+ },
1045
+ superTypes: []
1046
+ },
1047
+ AttributeValueExpression: {
1048
+ name: AttributeValueExpression.$type,
1049
+ properties: {},
1050
+ superTypes: []
1051
+ },
1052
+ BackoffSpec: {
1053
+ name: BackoffSpec.$type,
1054
+ properties: {
1055
+ attributes: {
1056
+ name: BackoffSpec.attributes,
1057
+ defaultValue: []
1058
+ }
1059
+ },
1060
+ superTypes: []
1061
+ },
1062
+ BeforeTriggerDefinition: {
1063
+ name: BeforeTriggerDefinition.$type,
1064
+ properties: {
1065
+ triggers: {
1066
+ name: BeforeTriggerDefinition.triggers
1067
+ }
1068
+ },
1069
+ superTypes: []
1070
+ },
1071
+ BinExpr: {
1072
+ name: BinExpr.$type,
1073
+ properties: {
1074
+ e1: {
1075
+ name: BinExpr.e1
1076
+ },
1077
+ e2: {
1078
+ name: BinExpr.e2
1079
+ },
1080
+ op: {
1081
+ name: BinExpr.op
1082
+ }
1083
+ },
1084
+ superTypes: [Expr.$type]
1085
+ },
1086
+ CaseEntry: {
1087
+ name: CaseEntry.$type,
1088
+ properties: {
1089
+ cond: {
1090
+ name: CaseEntry.cond
1091
+ },
1092
+ statements: {
1093
+ name: CaseEntry.statements,
1094
+ defaultValue: []
1095
+ }
1096
+ },
1097
+ superTypes: []
1098
+ },
1099
+ CatchSpec: {
1100
+ name: CatchSpec.$type,
1101
+ properties: {
1102
+ handlers: {
1103
+ name: CatchSpec.handlers,
1104
+ defaultValue: []
1105
+ }
1106
+ },
1107
+ superTypes: []
1108
+ },
1109
+ CompositeUniqueDefinition: {
1110
+ name: CompositeUniqueDefinition.$type,
1111
+ properties: {
1112
+ attrs: {
1113
+ name: CompositeUniqueDefinition.attrs,
1114
+ defaultValue: []
1115
+ }
1116
+ },
1117
+ superTypes: []
1118
+ },
1119
+ ConditionalFlowStep: {
1120
+ name: ConditionalFlowStep.$type,
1121
+ properties: {
1122
+ expr: {
1123
+ name: ConditionalFlowStep.expr
1124
+ },
1125
+ next: {
1126
+ name: ConditionalFlowStep.next
1127
+ }
1128
+ },
1129
+ superTypes: []
1130
+ },
1131
+ CrudMap: {
1132
+ name: CrudMap.$type,
1133
+ properties: {
1134
+ body: {
1135
+ name: CrudMap.body
1136
+ },
1137
+ distinct: {
1138
+ name: CrudMap.distinct,
1139
+ defaultValue: []
1140
+ },
1141
+ groupByClause: {
1142
+ name: CrudMap.groupByClause
1143
+ },
1144
+ into: {
1145
+ name: CrudMap.into
1146
+ },
1147
+ joins: {
1148
+ name: CrudMap.joins,
1149
+ defaultValue: []
1150
+ },
1151
+ name: {
1152
+ name: CrudMap.name
1153
+ },
1154
+ orderByClause: {
1155
+ name: CrudMap.orderByClause
1156
+ },
1157
+ relationships: {
1158
+ name: CrudMap.relationships,
1159
+ defaultValue: []
1160
+ },
1161
+ source: {
1162
+ name: CrudMap.source
1163
+ },
1164
+ upsert: {
1165
+ name: CrudMap.upsert,
1166
+ defaultValue: []
1167
+ },
1168
+ where: {
1169
+ name: CrudMap.where
1170
+ }
1171
+ },
1172
+ superTypes: []
1173
+ },
1174
+ CrudMapBody: {
1175
+ name: CrudMapBody.$type,
1176
+ properties: {
1177
+ attributes: {
1178
+ name: CrudMapBody.attributes,
1179
+ defaultValue: []
1180
+ },
1181
+ properties: {
1182
+ name: CrudMapBody.properties,
1183
+ defaultValue: []
1184
+ }
1185
+ },
1186
+ superTypes: []
1187
+ },
1188
+ DecisionDefBody: {
1189
+ name: DecisionDefBody.$type,
1190
+ properties: {
1191
+ cases: {
1192
+ name: DecisionDefBody.cases,
1193
+ defaultValue: []
1194
+ }
1195
+ },
1196
+ superTypes: []
1197
+ },
1198
+ DecisionDefinition: {
1199
+ name: DecisionDefinition.$type,
1200
+ properties: {
1201
+ body: {
1202
+ name: DecisionDefinition.body
1203
+ },
1204
+ name: {
1205
+ name: DecisionDefinition.name
1206
+ }
1207
+ },
1208
+ superTypes: [Definition.$type]
1209
+ },
1210
+ Definition: {
1211
+ name: Definition.$type,
1212
+ properties: {},
1213
+ superTypes: []
1214
+ },
1215
+ Delete: {
1216
+ name: Delete.$type,
1217
+ properties: {
1218
+ pattern: {
1219
+ name: Delete.pattern
1220
+ }
1221
+ },
1222
+ superTypes: []
1223
+ },
1224
+ DirectiveDefinition: {
1225
+ name: DirectiveDefinition.$type,
1226
+ properties: {
1227
+ body: {
1228
+ name: DirectiveDefinition.body
1229
+ },
1230
+ dir: {
1231
+ name: DirectiveDefinition.dir
1232
+ },
1233
+ name: {
1234
+ name: DirectiveDefinition.name
1235
+ }
1236
+ },
1237
+ superTypes: [Definition.$type]
1238
+ },
1239
+ Else: {
1240
+ name: Else.$type,
1241
+ properties: {
1242
+ statements: {
1243
+ name: Else.statements,
1244
+ defaultValue: []
1245
+ }
1246
+ },
1247
+ superTypes: []
1248
+ },
1249
+ EntityActionsDefinitions: {
1250
+ name: EntityActionsDefinitions.$type,
1251
+ properties: {
1252
+ entries: {
1253
+ name: EntityActionsDefinitions.entries,
1254
+ defaultValue: []
1255
+ }
1256
+ },
1257
+ superTypes: []
1258
+ },
1259
+ EntityDefinition: {
1260
+ name: EntityDefinition.$type,
1261
+ properties: {
1262
+ extends: {
1263
+ name: EntityDefinition.extends
1264
+ },
1265
+ name: {
1266
+ name: EntityDefinition.name
1267
+ },
1268
+ schema: {
1269
+ name: EntityDefinition.schema
1270
+ }
1271
+ },
1272
+ superTypes: [SchemaDefinition.$type]
1273
+ },
1274
+ EnumSpec: {
1275
+ name: EnumSpec.$type,
1276
+ properties: {
1277
+ type: {
1278
+ name: EnumSpec.type
1279
+ },
1280
+ values: {
1281
+ name: EnumSpec.values,
1282
+ defaultValue: []
1283
+ }
1284
+ },
1285
+ superTypes: []
1286
+ },
1287
+ EventDefinition: {
1288
+ name: EventDefinition.$type,
1289
+ properties: {
1290
+ extends: {
1291
+ name: EventDefinition.extends
1292
+ },
1293
+ name: {
1294
+ name: EventDefinition.name
1295
+ },
1296
+ schema: {
1297
+ name: EventDefinition.schema
1298
+ }
1299
+ },
1300
+ superTypes: [SchemaDefinition.$type]
1301
+ },
1302
+ Expr: {
1303
+ name: Expr.$type,
1304
+ properties: {},
1305
+ superTypes: [AttributeValueExpression.$type]
1306
+ },
1307
+ ExtendsClause: {
1308
+ name: ExtendsClause.$type,
1309
+ properties: {
1310
+ parentName: {
1311
+ name: ExtendsClause.parentName
1312
+ }
1313
+ },
1314
+ superTypes: []
1315
+ },
1316
+ FlowDefBody: {
1317
+ name: FlowDefBody.$type,
1318
+ properties: {
1319
+ entries: {
1320
+ name: FlowDefBody.entries,
1321
+ defaultValue: []
1322
+ }
1323
+ },
1324
+ superTypes: []
1325
+ },
1326
+ FlowDefinition: {
1327
+ name: FlowDefinition.$type,
1328
+ properties: {
1329
+ body: {
1330
+ name: FlowDefinition.body
1331
+ },
1332
+ name: {
1333
+ name: FlowDefinition.name
1334
+ }
1335
+ },
1336
+ superTypes: [Definition.$type]
1337
+ },
1338
+ FlowEntry: {
1339
+ name: FlowEntry.$type,
1340
+ properties: {
1341
+ cond: {
1342
+ name: FlowEntry.cond
1343
+ },
1344
+ next: {
1345
+ name: FlowEntry.next
1346
+ },
1347
+ root: {
1348
+ name: FlowEntry.root
1349
+ }
1350
+ },
1351
+ superTypes: []
1352
+ },
1353
+ FlowStepSpec: {
1354
+ name: FlowStepSpec.$type,
1355
+ properties: {},
1356
+ superTypes: []
1357
+ },
1358
+ FnCall: {
1359
+ name: FnCall.$type,
1360
+ properties: {
1361
+ args: {
1362
+ name: FnCall.args,
1363
+ defaultValue: []
1364
+ },
1365
+ name: {
1366
+ name: FnCall.name
1367
+ }
1368
+ },
1369
+ superTypes: []
1370
+ },
1371
+ ForEach: {
1372
+ name: ForEach.$type,
1373
+ properties: {
1374
+ src: {
1375
+ name: ForEach.src
1376
+ },
1377
+ statements: {
1378
+ name: ForEach.statements,
1379
+ defaultValue: []
1380
+ },
1381
+ var: {
1382
+ name: ForEach.var
1383
+ }
1384
+ },
1385
+ superTypes: []
1386
+ },
1387
+ FullTextSearch: {
1388
+ name: FullTextSearch.$type,
1389
+ properties: {
1390
+ name: {
1391
+ name: FullTextSearch.name
1392
+ },
1393
+ options: {
1394
+ name: FullTextSearch.options
1395
+ },
1396
+ query: {
1397
+ name: FullTextSearch.query
1398
+ }
1399
+ },
1400
+ superTypes: []
1401
+ },
1402
+ GenericDefBody: {
1403
+ name: GenericDefBody.$type,
1404
+ properties: {
1405
+ attributes: {
1406
+ name: GenericDefBody.attributes,
1407
+ defaultValue: []
1408
+ }
1409
+ },
1410
+ superTypes: []
1411
+ },
1412
+ GenericPropertyDef: {
1413
+ name: GenericPropertyDef.$type,
1414
+ properties: {
1415
+ name: {
1416
+ name: GenericPropertyDef.name
1417
+ },
1418
+ value: {
1419
+ name: GenericPropertyDef.value
1420
+ }
1421
+ },
1422
+ superTypes: []
1423
+ },
1424
+ GlossaryEntryDefinition: {
1425
+ name: GlossaryEntryDefinition.$type,
1426
+ properties: {
1427
+ body: {
1428
+ name: GlossaryEntryDefinition.body
1429
+ },
1430
+ glos: {
1431
+ name: GlossaryEntryDefinition.glos
1432
+ },
1433
+ name: {
1434
+ name: GlossaryEntryDefinition.name
1435
+ }
1436
+ },
1437
+ superTypes: [Definition.$type]
1438
+ },
1439
+ Group: {
1440
+ name: Group.$type,
1441
+ properties: {
1442
+ ge: {
1443
+ name: Group.ge
1444
+ }
1445
+ },
1446
+ superTypes: [PrimExpr.$type]
1447
+ },
1448
+ GroupByClause: {
1449
+ name: GroupByClause.$type,
1450
+ properties: {
1451
+ colNames: {
1452
+ name: GroupByClause.colNames,
1453
+ defaultValue: []
1454
+ }
1455
+ },
1456
+ superTypes: []
1457
+ },
1458
+ Handler: {
1459
+ name: Handler.$type,
1460
+ properties: {
1461
+ except: {
1462
+ name: Handler.except
1463
+ },
1464
+ stmt: {
1465
+ name: Handler.stmt
1466
+ }
1467
+ },
1468
+ superTypes: []
1469
+ },
1470
+ If: {
1471
+ name: If.$type,
1472
+ properties: {
1473
+ cond: {
1474
+ name: If.cond
1475
+ },
1476
+ else: {
1477
+ name: If.else
1478
+ },
1479
+ statements: {
1480
+ name: If.statements,
1481
+ defaultValue: []
1482
+ }
1483
+ },
1484
+ superTypes: []
1485
+ },
1486
+ IfWithAlias: {
1487
+ name: IfWithAlias.$type,
1488
+ properties: {
1489
+ if: {
1490
+ name: IfWithAlias.if
1491
+ }
1492
+ },
1493
+ superTypes: []
1494
+ },
1495
+ Import: {
1496
+ name: Import.$type,
1497
+ properties: {
1498
+ name: {
1499
+ name: Import.name
1500
+ },
1501
+ path: {
1502
+ name: Import.path
1503
+ }
1504
+ },
1505
+ superTypes: []
1506
+ },
1507
+ JoinSpec: {
1508
+ name: JoinSpec.$type,
1509
+ properties: {
1510
+ lhs: {
1511
+ name: JoinSpec.lhs
1512
+ },
1513
+ name: {
1514
+ name: JoinSpec.name
1515
+ },
1516
+ op: {
1517
+ name: JoinSpec.op
1518
+ },
1519
+ rhs: {
1520
+ name: JoinSpec.rhs
1521
+ },
1522
+ type: {
1523
+ name: JoinSpec.type
1524
+ }
1525
+ },
1526
+ superTypes: []
1527
+ },
1528
+ KvPair: {
1529
+ name: KvPair.$type,
1530
+ properties: {
1531
+ key: {
1532
+ name: KvPair.key
1533
+ },
1534
+ value: {
1535
+ name: KvPair.value
1536
+ }
1537
+ },
1538
+ superTypes: []
1539
+ },
1540
+ KvPairs: {
1541
+ name: KvPairs.$type,
1542
+ properties: {
1543
+ pairs: {
1544
+ name: KvPairs.pairs,
1545
+ defaultValue: []
1546
+ }
1547
+ },
1548
+ superTypes: []
1549
+ },
1550
+ Literal: {
1551
+ name: Literal.$type,
1552
+ properties: {
1553
+ array: {
1554
+ name: Literal.array
1555
+ },
1556
+ asyncFnCall: {
1557
+ name: Literal.asyncFnCall
1558
+ },
1559
+ bool: {
1560
+ name: Literal.bool
1561
+ },
1562
+ fnCall: {
1563
+ name: Literal.fnCall
1564
+ },
1565
+ id: {
1566
+ name: Literal.id
1567
+ },
1568
+ map: {
1569
+ name: Literal.map
1570
+ },
1571
+ num: {
1572
+ name: Literal.num
1573
+ },
1574
+ ref: {
1575
+ name: Literal.ref
1576
+ },
1577
+ str: {
1578
+ name: Literal.str
1579
+ }
1580
+ },
1581
+ superTypes: [PrimExpr.$type]
1582
+ },
1583
+ MapEntry: {
1584
+ name: MapEntry.$type,
1585
+ properties: {
1586
+ key: {
1587
+ name: MapEntry.key
1588
+ },
1589
+ value: {
1590
+ name: MapEntry.value
1591
+ }
1592
+ },
1593
+ superTypes: []
1594
+ },
1595
+ MapKey: {
1596
+ name: MapKey.$type,
1597
+ properties: {
1598
+ bool: {
1599
+ name: MapKey.bool
1600
+ },
1601
+ num: {
1602
+ name: MapKey.num
1603
+ },
1604
+ str: {
1605
+ name: MapKey.str
1606
+ }
1607
+ },
1608
+ superTypes: []
1609
+ },
1610
+ MapLiteral: {
1611
+ name: MapLiteral.$type,
1612
+ properties: {
1613
+ entries: {
1614
+ name: MapLiteral.entries,
1615
+ defaultValue: []
1616
+ }
1617
+ },
1618
+ superTypes: []
1619
+ },
1620
+ MetaDefinition: {
1621
+ name: MetaDefinition.$type,
1622
+ properties: {
1623
+ spec: {
1624
+ name: MetaDefinition.spec
1625
+ }
1626
+ },
1627
+ superTypes: []
1628
+ },
1629
+ ModuleDefinition: {
1630
+ name: ModuleDefinition.$type,
1631
+ properties: {
1632
+ defs: {
1633
+ name: ModuleDefinition.defs,
1634
+ defaultValue: []
1635
+ },
1636
+ imports: {
1637
+ name: ModuleDefinition.imports,
1638
+ defaultValue: []
1639
+ },
1640
+ name: {
1641
+ name: ModuleDefinition.name
1642
+ }
1643
+ },
1644
+ superTypes: []
1645
+ },
1646
+ NegExpr: {
1647
+ name: NegExpr.$type,
1648
+ properties: {
1649
+ ne: {
1650
+ name: NegExpr.ne
1651
+ }
1652
+ },
1653
+ superTypes: [PrimExpr.$type]
1654
+ },
1655
+ NodeDefinition: {
1656
+ name: NodeDefinition.$type,
1657
+ properties: {
1658
+ alias: {
1659
+ name: NodeDefinition.alias
1660
+ },
1661
+ name: {
1662
+ name: NodeDefinition.name
1663
+ }
1664
+ },
1665
+ superTypes: []
1666
+ },
1667
+ NotExpr: {
1668
+ name: NotExpr.$type,
1669
+ properties: {
1670
+ ne: {
1671
+ name: NotExpr.ne
1672
+ }
1673
+ },
1674
+ superTypes: [PrimExpr.$type]
1675
+ },
1676
+ OneOfSpec: {
1677
+ name: OneOfSpec.$type,
1678
+ properties: {
1679
+ ref: {
1680
+ name: OneOfSpec.ref
1681
+ }
1682
+ },
1683
+ superTypes: []
1684
+ },
1685
+ OrderByClause: {
1686
+ name: OrderByClause.$type,
1687
+ properties: {
1688
+ colNames: {
1689
+ name: OrderByClause.colNames,
1690
+ defaultValue: []
1691
+ },
1692
+ order: {
1693
+ name: OrderByClause.order
1694
+ }
1695
+ },
1696
+ superTypes: []
1697
+ },
1698
+ Pattern: {
1699
+ name: Pattern.$type,
1700
+ properties: {
1701
+ crudMap: {
1702
+ name: Pattern.crudMap
1703
+ },
1704
+ delete: {
1705
+ name: Pattern.delete
1706
+ },
1707
+ expr: {
1708
+ name: Pattern.expr
1709
+ },
1710
+ forEach: {
1711
+ name: Pattern.forEach
1712
+ },
1713
+ fullTextSearch: {
1714
+ name: Pattern.fullTextSearch
1715
+ },
1716
+ if: {
1717
+ name: Pattern.if
1718
+ },
1719
+ ifWithAlias: {
1720
+ name: Pattern.ifWithAlias
1721
+ },
1722
+ purge: {
1723
+ name: Pattern.purge
1724
+ },
1725
+ return: {
1726
+ name: Pattern.return
1727
+ },
1728
+ throwError: {
1729
+ name: Pattern.throwError
1730
+ }
1731
+ },
1732
+ superTypes: []
1733
+ },
1734
+ PrePostTriggerDefinition: {
1735
+ name: PrePostTriggerDefinition.$type,
1736
+ properties: {
1737
+ after: {
1738
+ name: PrePostTriggerDefinition.after
1739
+ },
1740
+ before: {
1741
+ name: PrePostTriggerDefinition.before
1742
+ }
1743
+ },
1744
+ superTypes: []
1745
+ },
1746
+ PrimExpr: {
1747
+ name: PrimExpr.$type,
1748
+ properties: {},
1749
+ superTypes: [Expr.$type]
1750
+ },
1751
+ PropertyDefinition: {
1752
+ name: PropertyDefinition.$type,
1753
+ properties: {
1754
+ name: {
1755
+ name: PropertyDefinition.name
1756
+ },
1757
+ value: {
1758
+ name: PropertyDefinition.value
1759
+ }
1760
+ },
1761
+ superTypes: []
1762
+ },
1763
+ PublicAgentDefinition: {
1764
+ name: PublicAgentDefinition.$type,
1765
+ properties: {
1766
+ def: {
1767
+ name: PublicAgentDefinition.def
1768
+ }
1769
+ },
1770
+ superTypes: [Definition.$type]
1771
+ },
1772
+ PublicEventDefinition: {
1773
+ name: PublicEventDefinition.$type,
1774
+ properties: {
1775
+ def: {
1776
+ name: PublicEventDefinition.def
1777
+ }
1778
+ },
1779
+ superTypes: [SchemaDefinition.$type]
1780
+ },
1781
+ PublicWorkflowDefinition: {
1782
+ name: PublicWorkflowDefinition.$type,
1783
+ properties: {
1784
+ def: {
1785
+ name: PublicWorkflowDefinition.def
1786
+ }
1787
+ },
1788
+ superTypes: [Definition.$type]
1789
+ },
1790
+ Purge: {
1791
+ name: Purge.$type,
1792
+ properties: {
1793
+ pattern: {
1794
+ name: Purge.pattern
1795
+ }
1796
+ },
1797
+ superTypes: []
1798
+ },
1799
+ RbacAllowSpec: {
1800
+ name: RbacAllowSpec.$type,
1801
+ properties: {
1802
+ oprs: {
1803
+ name: RbacAllowSpec.oprs,
1804
+ defaultValue: []
1805
+ }
1806
+ },
1807
+ superTypes: []
1808
+ },
1809
+ RbacExpressionSpec: {
1810
+ name: RbacExpressionSpec.$type,
1811
+ properties: {
1812
+ lhs: {
1813
+ name: RbacExpressionSpec.lhs
1814
+ },
1815
+ rhs: {
1816
+ name: RbacExpressionSpec.rhs
1817
+ }
1818
+ },
1819
+ superTypes: []
1820
+ },
1821
+ RbacOpr: {
1822
+ name: RbacOpr.$type,
1823
+ properties: {
1824
+ value: {
1825
+ name: RbacOpr.value
1826
+ }
1827
+ },
1828
+ superTypes: []
1829
+ },
1830
+ RbacRolesSpec: {
1831
+ name: RbacRolesSpec.$type,
1832
+ properties: {
1833
+ roles: {
1834
+ name: RbacRolesSpec.roles,
1835
+ defaultValue: []
1836
+ }
1837
+ },
1838
+ superTypes: []
1839
+ },
1840
+ RbacSpecDefinition: {
1841
+ name: RbacSpecDefinition.$type,
1842
+ properties: {
1843
+ specEntries: {
1844
+ name: RbacSpecDefinition.specEntries,
1845
+ defaultValue: []
1846
+ }
1847
+ },
1848
+ superTypes: []
1849
+ },
1850
+ RbacSpecEntries: {
1851
+ name: RbacSpecEntries.$type,
1852
+ properties: {
1853
+ entries: {
1854
+ name: RbacSpecEntries.entries,
1855
+ defaultValue: []
1856
+ }
1857
+ },
1858
+ superTypes: []
1859
+ },
1860
+ RbacSpecEntry: {
1861
+ name: RbacSpecEntry.$type,
1862
+ properties: {
1863
+ allow: {
1864
+ name: RbacSpecEntry.allow
1865
+ },
1866
+ expr: {
1867
+ name: RbacSpecEntry.expr
1868
+ },
1869
+ role: {
1870
+ name: RbacSpecEntry.role
1871
+ }
1872
+ },
1873
+ superTypes: []
1874
+ },
1875
+ RecordDefinition: {
1876
+ name: RecordDefinition.$type,
1877
+ properties: {
1878
+ extends: {
1879
+ name: RecordDefinition.extends
1880
+ },
1881
+ name: {
1882
+ name: RecordDefinition.name
1883
+ },
1884
+ schema: {
1885
+ name: RecordDefinition.schema
1886
+ }
1887
+ },
1888
+ superTypes: [SchemaDefinition.$type]
1889
+ },
1890
+ RecordExtraDefinition: {
1891
+ name: RecordExtraDefinition.$type,
1892
+ properties: {
1893
+ actions: {
1894
+ name: RecordExtraDefinition.actions
1895
+ },
1896
+ meta: {
1897
+ name: RecordExtraDefinition.meta
1898
+ },
1899
+ prePost: {
1900
+ name: RecordExtraDefinition.prePost
1901
+ },
1902
+ rbacSpec: {
1903
+ name: RecordExtraDefinition.rbacSpec
1904
+ },
1905
+ uq: {
1906
+ name: RecordExtraDefinition.uq
1907
+ }
1908
+ },
1909
+ superTypes: []
1910
+ },
1911
+ RecordSchemaDefinition: {
1912
+ name: RecordSchemaDefinition.$type,
1913
+ properties: {
1914
+ attributes: {
1915
+ name: RecordSchemaDefinition.attributes,
1916
+ defaultValue: []
1917
+ },
1918
+ extras: {
1919
+ name: RecordSchemaDefinition.extras,
1920
+ defaultValue: []
1921
+ }
1922
+ },
1923
+ superTypes: []
1924
+ },
1925
+ RefSpec: {
1926
+ name: RefSpec.$type,
1927
+ properties: {
1928
+ ref: {
1929
+ name: RefSpec.ref
1930
+ },
1931
+ type: {
1932
+ name: RefSpec.type
1933
+ }
1934
+ },
1935
+ superTypes: []
1936
+ },
1937
+ RelNodes: {
1938
+ name: RelNodes.$type,
1939
+ properties: {
1940
+ node1: {
1941
+ name: RelNodes.node1
1942
+ },
1943
+ node2: {
1944
+ name: RelNodes.node2
1945
+ }
1946
+ },
1947
+ superTypes: []
1948
+ },
1949
+ RelationshipDefinition: {
1950
+ name: RelationshipDefinition.$type,
1951
+ properties: {
1952
+ name: {
1953
+ name: RelationshipDefinition.name
1954
+ },
1955
+ nodes: {
1956
+ name: RelationshipDefinition.nodes
1957
+ },
1958
+ properties: {
1959
+ name: RelationshipDefinition.properties,
1960
+ defaultValue: []
1961
+ },
1962
+ schema: {
1963
+ name: RelationshipDefinition.schema
1964
+ },
1965
+ type: {
1966
+ name: RelationshipDefinition.type
1967
+ }
1968
+ },
1969
+ superTypes: [Definition.$type]
1970
+ },
1971
+ RelationshipPattern: {
1972
+ name: RelationshipPattern.$type,
1973
+ properties: {
1974
+ name: {
1975
+ name: RelationshipPattern.name
1976
+ },
1977
+ pattern: {
1978
+ name: RelationshipPattern.pattern
1979
+ }
1980
+ },
1981
+ superTypes: []
1982
+ },
1983
+ ResolverDefinition: {
1984
+ name: ResolverDefinition.$type,
1985
+ properties: {
1986
+ methods: {
1987
+ name: ResolverDefinition.methods,
1988
+ defaultValue: []
1989
+ },
1990
+ name: {
1991
+ name: ResolverDefinition.name
1992
+ },
1993
+ paths: {
1994
+ name: ResolverDefinition.paths,
1995
+ defaultValue: []
1996
+ }
1997
+ },
1998
+ superTypes: [Definition.$type]
1999
+ },
2000
+ ResolverFnName: {
2001
+ name: ResolverFnName.$type,
2002
+ properties: {
2003
+ name: {
2004
+ name: ResolverFnName.name
2005
+ }
2006
+ },
2007
+ superTypes: []
2008
+ },
2009
+ ResolverMethodName: {
2010
+ name: ResolverMethodName.$type,
2011
+ properties: {
2012
+ name: {
2013
+ name: ResolverMethodName.name
2014
+ }
2015
+ },
2016
+ superTypes: []
2017
+ },
2018
+ ResolverMethodSpec: {
2019
+ name: ResolverMethodSpec.$type,
2020
+ properties: {
2021
+ fn: {
2022
+ name: ResolverMethodSpec.fn
2023
+ },
2024
+ key: {
2025
+ name: ResolverMethodSpec.key
2026
+ }
2027
+ },
2028
+ superTypes: []
2029
+ },
2030
+ RetryDefinition: {
2031
+ name: RetryDefinition.$type,
2032
+ properties: {
2033
+ attempts: {
2034
+ name: RetryDefinition.attempts
2035
+ },
2036
+ backoff: {
2037
+ name: RetryDefinition.backoff
2038
+ },
2039
+ name: {
2040
+ name: RetryDefinition.name
2041
+ }
2042
+ },
2043
+ superTypes: [Definition.$type]
2044
+ },
2045
+ Return: {
2046
+ name: Return.$type,
2047
+ properties: {
2048
+ pattern: {
2049
+ name: Return.pattern
2050
+ }
2051
+ },
2052
+ superTypes: []
2053
+ },
2054
+ RuntimeHint: {
2055
+ name: RuntimeHint.$type,
2056
+ properties: {
2057
+ aliasSpec: {
2058
+ name: RuntimeHint.aliasSpec
2059
+ },
2060
+ catchSpec: {
2061
+ name: RuntimeHint.catchSpec
2062
+ },
2063
+ thenSpec: {
2064
+ name: RuntimeHint.thenSpec
2065
+ }
2066
+ },
2067
+ superTypes: []
2068
+ },
2069
+ ScenarioDefinition: {
2070
+ name: ScenarioDefinition.$type,
2071
+ properties: {
2072
+ body: {
2073
+ name: ScenarioDefinition.body
2074
+ },
2075
+ name: {
2076
+ name: ScenarioDefinition.name
2077
+ },
2078
+ scn: {
2079
+ name: ScenarioDefinition.scn
2080
+ }
2081
+ },
2082
+ superTypes: [Definition.$type]
2083
+ },
2084
+ SchemaDefinition: {
2085
+ name: SchemaDefinition.$type,
2086
+ properties: {},
2087
+ superTypes: [Definition.$type]
2088
+ },
2089
+ SelectIntoEntry: {
2090
+ name: SelectIntoEntry.$type,
2091
+ properties: {
2092
+ aggregate: {
2093
+ name: SelectIntoEntry.aggregate
2094
+ },
2095
+ alias: {
2096
+ name: SelectIntoEntry.alias
2097
+ },
2098
+ attribute: {
2099
+ name: SelectIntoEntry.attribute
2100
+ }
2101
+ },
2102
+ superTypes: []
2103
+ },
2104
+ SelectIntoSpec: {
2105
+ name: SelectIntoSpec.$type,
2106
+ properties: {
2107
+ entries: {
2108
+ name: SelectIntoSpec.entries,
2109
+ defaultValue: []
2110
+ }
2111
+ },
2112
+ superTypes: []
2113
+ },
2114
+ SetAttribute: {
2115
+ name: SetAttribute.$type,
2116
+ properties: {
2117
+ aggregate: {
2118
+ name: SetAttribute.aggregate
2119
+ },
2120
+ name: {
2121
+ name: SetAttribute.name
2122
+ },
2123
+ op: {
2124
+ name: SetAttribute.op
2125
+ },
2126
+ value: {
2127
+ name: SetAttribute.value
2128
+ }
2129
+ },
2130
+ superTypes: []
2131
+ },
2132
+ StandaloneStatement: {
2133
+ name: StandaloneStatement.$type,
2134
+ properties: {
2135
+ stmt: {
2136
+ name: StandaloneStatement.stmt
2137
+ }
2138
+ },
2139
+ superTypes: [Definition.$type]
2140
+ },
2141
+ Statement: {
2142
+ name: Statement.$type,
2143
+ properties: {
2144
+ hints: {
2145
+ name: Statement.hints,
2146
+ defaultValue: []
2147
+ },
2148
+ pattern: {
2149
+ name: Statement.pattern
2150
+ }
2151
+ },
2152
+ superTypes: [FlowStepSpec.$type]
2153
+ },
2154
+ ThenSpec: {
2155
+ name: ThenSpec.$type,
2156
+ properties: {
2157
+ statements: {
2158
+ name: ThenSpec.statements,
2159
+ defaultValue: []
2160
+ }
2161
+ },
2162
+ superTypes: []
2163
+ },
2164
+ ThrowError: {
2165
+ name: ThrowError.$type,
2166
+ properties: {
2167
+ reason: {
2168
+ name: ThrowError.reason
2169
+ }
2170
+ },
2171
+ superTypes: []
2172
+ },
2173
+ TriggerDefinition: {
2174
+ name: TriggerDefinition.$type,
2175
+ properties: {
2176
+ entries: {
2177
+ name: TriggerDefinition.entries,
2178
+ defaultValue: []
2179
+ }
2180
+ },
2181
+ superTypes: []
2182
+ },
2183
+ TriggerEntry: {
2184
+ name: TriggerEntry.$type,
2185
+ properties: {
2186
+ async: {
2187
+ name: TriggerEntry.async
2188
+ },
2189
+ event: {
2190
+ name: TriggerEntry.event
2191
+ },
2192
+ on: {
2193
+ name: TriggerEntry.on
2194
+ }
2195
+ },
2196
+ superTypes: []
2197
+ },
2198
+ WhereSpec: {
2199
+ name: WhereSpec.$type,
2200
+ properties: {
2201
+ clauses: {
2202
+ name: WhereSpec.clauses,
2203
+ defaultValue: []
2204
+ }
2205
+ },
2206
+ superTypes: []
2207
+ },
2208
+ WhereSpecClause: {
2209
+ name: WhereSpecClause.$type,
2210
+ properties: {
2211
+ lhs: {
2212
+ name: WhereSpecClause.lhs
2213
+ },
2214
+ op: {
2215
+ name: WhereSpecClause.op
2216
+ },
2217
+ rhs: {
2218
+ name: WhereSpecClause.rhs
2219
+ }
2220
+ },
2221
+ superTypes: []
2222
+ },
2223
+ WorkflowDefinition: {
2224
+ name: WorkflowDefinition.$type,
2225
+ properties: {
2226
+ header: {
2227
+ name: WorkflowDefinition.header
2228
+ },
2229
+ name: {
2230
+ name: WorkflowDefinition.name
2231
+ },
2232
+ statements: {
2233
+ name: WorkflowDefinition.statements,
2234
+ defaultValue: []
2235
+ }
2236
+ },
2237
+ superTypes: [Definition.$type]
2238
+ },
2239
+ WorkflowHeader: {
2240
+ name: WorkflowHeader.$type,
2241
+ properties: {
2242
+ name: {
2243
+ name: WorkflowHeader.name
2244
+ },
2245
+ prefix: {
2246
+ name: WorkflowHeader.prefix
2247
+ },
2248
+ tag: {
2249
+ name: WorkflowHeader.tag
2250
+ }
2251
+ },
2252
+ superTypes: []
2253
+ }
2254
+ };
1466
2255
  }
1467
2256
  }
1468
2257
  export const reflection = new AgentlangAstReflection();