@fornari-lanza/domain-design-language-language 0.0.1

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 (35) hide show
  1. package/README.md +24 -0
  2. package/out/domain-design-language-formatter.d.ts +5 -0
  3. package/out/domain-design-language-formatter.js +197 -0
  4. package/out/domain-design-language-formatter.js.map +1 -0
  5. package/out/domain-design-language-module.d.ts +41 -0
  6. package/out/domain-design-language-module.js +50 -0
  7. package/out/domain-design-language-module.js.map +1 -0
  8. package/out/domain-design-language-scope.d.ts +8 -0
  9. package/out/domain-design-language-scope.js +79 -0
  10. package/out/domain-design-language-scope.js.map +1 -0
  11. package/out/domain-design-language-validator.d.ts +39 -0
  12. package/out/domain-design-language-validator.js +468 -0
  13. package/out/domain-design-language-validator.js.map +1 -0
  14. package/out/generated/ast.d.ts +1393 -0
  15. package/out/generated/ast.js +1147 -0
  16. package/out/generated/ast.js.map +1 -0
  17. package/out/generated/grammar.d.ts +6 -0
  18. package/out/generated/grammar.js +3430 -0
  19. package/out/generated/grammar.js.map +1 -0
  20. package/out/generated/module.d.ts +13 -0
  21. package/out/generated/module.js +21 -0
  22. package/out/generated/module.js.map +1 -0
  23. package/out/index.d.ts +5 -0
  24. package/out/index.js +6 -0
  25. package/out/index.js.map +1 -0
  26. package/package.json +49 -0
  27. package/src/domain-design-language-formatter.ts +186 -0
  28. package/src/domain-design-language-module.ts +96 -0
  29. package/src/domain-design-language-scope.ts +132 -0
  30. package/src/domain-design-language-validator.ts +699 -0
  31. package/src/domain-design-language.langium +299 -0
  32. package/src/generated/ast.ts +1737 -0
  33. package/src/generated/grammar.ts +3432 -0
  34. package/src/generated/module.ts +25 -0
  35. package/src/index.ts +5 -0
@@ -0,0 +1,1147 @@
1
+ /******************************************************************************
2
+ * This file was generated by langium-cli 4.0.0.
3
+ * DO NOT EDIT MANUALLY!
4
+ ******************************************************************************/
5
+ /* eslint-disable */
6
+ import * as langium from 'langium';
7
+ export const DomainDesignLanguageTerminals = {
8
+ WS: /\s+/,
9
+ ID: /[_a-zA-Z][\w_]*/,
10
+ STRING: /"(\\.|[^"\\])*"|'(\\.|[^'\\])*'/,
11
+ ML_COMMENT: /\/\*[\s\S]*?\*\//,
12
+ SL_COMMENT: /\/\/[^\n\r]*/,
13
+ };
14
+ export const Actor = {
15
+ $type: 'Actor',
16
+ description: 'description',
17
+ name: 'name'
18
+ };
19
+ export function isActor(item) {
20
+ return reflection.isInstance(item, Actor.$type);
21
+ }
22
+ export const ActorCommandStep = {
23
+ $type: 'ActorCommandStep',
24
+ command: 'command',
25
+ issuer: 'issuer'
26
+ };
27
+ export function isActorCommandStep(item) {
28
+ return reflection.isInstance(item, ActorCommandStep.$type);
29
+ }
30
+ export const AggregateAttribute = {
31
+ $type: 'AggregateAttribute',
32
+ many: 'many',
33
+ optional: 'optional',
34
+ type: 'type'
35
+ };
36
+ export function isAggregateAttribute(item) {
37
+ return reflection.isInstance(item, AggregateAttribute.$type);
38
+ }
39
+ export const AggregateRoot = {
40
+ $type: 'AggregateRoot',
41
+ attributes: 'attributes',
42
+ correctivePolicies: 'correctivePolicies',
43
+ description: 'description',
44
+ enforcedInvariants: 'enforcedInvariants',
45
+ events: 'events',
46
+ exceptions: 'exceptions',
47
+ id: 'id',
48
+ methods: 'methods',
49
+ name: 'name'
50
+ };
51
+ export function isAggregateRoot(item) {
52
+ return reflection.isInstance(item, AggregateRoot.$type);
53
+ }
54
+ export const AsymmetricRelationship = {
55
+ $type: 'AsymmetricRelationship',
56
+ customerSupplier: 'customerSupplier',
57
+ description: 'description',
58
+ downstream: 'downstream',
59
+ downstreamRole: 'downstreamRole',
60
+ upstream: 'upstream',
61
+ upstreamRoles: 'upstreamRoles'
62
+ };
63
+ export function isAsymmetricRelationship(item) {
64
+ return reflection.isInstance(item, AsymmetricRelationship.$type);
65
+ }
66
+ export const BoundedContext = {
67
+ $type: 'BoundedContext',
68
+ aggregates: 'aggregates',
69
+ commands: 'commands',
70
+ description: 'description',
71
+ domainServices: 'domainServices',
72
+ eventStorming: 'eventStorming',
73
+ name: 'name',
74
+ ports: 'ports',
75
+ ubiquitousLanguage: 'ubiquitousLanguage'
76
+ };
77
+ export function isBoundedContext(item) {
78
+ return reflection.isInstance(item, BoundedContext.$type);
79
+ }
80
+ export const Command = {
81
+ $type: 'Command',
82
+ aggregate: 'aggregate',
83
+ dependencies: 'dependencies',
84
+ description: 'description',
85
+ domainServices: 'domainServices',
86
+ events: 'events',
87
+ input: 'input',
88
+ name: 'name',
89
+ response: 'response'
90
+ };
91
+ export function isCommand(item) {
92
+ return reflection.isInstance(item, Command.$type);
93
+ }
94
+ export const ContextMap = {
95
+ $type: 'ContextMap',
96
+ relationships: 'relationships'
97
+ };
98
+ export function isContextMap(item) {
99
+ return reflection.isInstance(item, ContextMap.$type);
100
+ }
101
+ export const Dependency = {
102
+ $type: 'Dependency',
103
+ port: 'port'
104
+ };
105
+ export function isDependency(item) {
106
+ return reflection.isInstance(item, Dependency.$type);
107
+ }
108
+ export const DomainAttribute = {
109
+ $type: 'DomainAttribute',
110
+ many: 'many',
111
+ name: 'name',
112
+ optional: 'optional',
113
+ type: 'type'
114
+ };
115
+ export function isDomainAttribute(item) {
116
+ return reflection.isInstance(item, DomainAttribute.$type);
117
+ }
118
+ export const DomainEvent = {
119
+ $type: 'DomainEvent',
120
+ description: 'description',
121
+ name: 'name',
122
+ payload: 'payload'
123
+ };
124
+ export function isDomainEvent(item) {
125
+ return reflection.isInstance(item, DomainEvent.$type);
126
+ }
127
+ export const DomainEventsDeclaration = {
128
+ $type: 'DomainEventsDeclaration',
129
+ events: 'events'
130
+ };
131
+ export function isDomainEventsDeclaration(item) {
132
+ return reflection.isInstance(item, DomainEventsDeclaration.$type);
133
+ }
134
+ export const DomainException = {
135
+ $type: 'DomainException',
136
+ description: 'description',
137
+ name: 'name'
138
+ };
139
+ export function isDomainException(item) {
140
+ return reflection.isInstance(item, DomainException.$type);
141
+ }
142
+ export const DomainModel = {
143
+ $type: 'DomainModel',
144
+ boundedContext: 'boundedContext',
145
+ contextMap: 'contextMap'
146
+ };
147
+ export function isDomainModel(item) {
148
+ return reflection.isInstance(item, DomainModel.$type);
149
+ }
150
+ export const DomainObject = {
151
+ $type: 'DomainObject'
152
+ };
153
+ export function isDomainObject(item) {
154
+ return reflection.isInstance(item, DomainObject.$type);
155
+ }
156
+ export const DomainService = {
157
+ $type: 'DomainService',
158
+ description: 'description',
159
+ input: 'input',
160
+ name: 'name',
161
+ response: 'response',
162
+ type: 'type'
163
+ };
164
+ export function isDomainService(item) {
165
+ return reflection.isInstance(item, DomainService.$type);
166
+ }
167
+ export const DomainServiceInput = {
168
+ $type: 'DomainServiceInput',
169
+ attributes: 'attributes'
170
+ };
171
+ export function isDomainServiceInput(item) {
172
+ return reflection.isInstance(item, DomainServiceInput.$type);
173
+ }
174
+ export const DomainServiceResponse = {
175
+ $type: 'DomainServiceResponse',
176
+ attributes: 'attributes'
177
+ };
178
+ export function isDomainServiceResponse(item) {
179
+ return reflection.isInstance(item, DomainServiceResponse.$type);
180
+ }
181
+ export function isDownstreamRole(item) {
182
+ return item === 'AntiCorruptionLayer' || item === 'Conformist';
183
+ }
184
+ export const Entity = {
185
+ $type: 'Entity',
186
+ attributes: 'attributes',
187
+ description: 'description',
188
+ id: 'id',
189
+ name: 'name'
190
+ };
191
+ export function isEntity(item) {
192
+ return reflection.isInstance(item, Entity.$type);
193
+ }
194
+ export const EntityAttribute = {
195
+ $type: 'EntityAttribute',
196
+ many: 'many',
197
+ optional: 'optional',
198
+ type: 'type'
199
+ };
200
+ export function isEntityAttribute(item) {
201
+ return reflection.isInstance(item, EntityAttribute.$type);
202
+ }
203
+ export const Enum = {
204
+ $type: 'Enum',
205
+ values: 'values'
206
+ };
207
+ export function isEnum(item) {
208
+ return reflection.isInstance(item, Enum.$type);
209
+ }
210
+ export const EventStormingDeclaration = {
211
+ $type: 'EventStormingDeclaration',
212
+ elements: 'elements',
213
+ flows: 'flows'
214
+ };
215
+ export function isEventStormingDeclaration(item) {
216
+ return reflection.isInstance(item, EventStormingDeclaration.$type);
217
+ }
218
+ export const EventStormingElement = {
219
+ $type: 'EventStormingElement'
220
+ };
221
+ export function isEventStormingElement(item) {
222
+ return reflection.isInstance(item, EventStormingElement.$type);
223
+ }
224
+ export const ExceptionsDeclaration = {
225
+ $type: 'ExceptionsDeclaration',
226
+ exceptions: 'exceptions'
227
+ };
228
+ export function isExceptionsDeclaration(item) {
229
+ return reflection.isInstance(item, ExceptionsDeclaration.$type);
230
+ }
231
+ export const ExternalSystem = {
232
+ $type: 'ExternalSystem',
233
+ description: 'description',
234
+ name: 'name'
235
+ };
236
+ export function isExternalSystem(item) {
237
+ return reflection.isInstance(item, ExternalSystem.$type);
238
+ }
239
+ export const GivenStep = {
240
+ $type: 'GivenStep',
241
+ actor: 'actor',
242
+ readModel: 'readModel'
243
+ };
244
+ export function isGivenStep(item) {
245
+ return reflection.isInstance(item, GivenStep.$type);
246
+ }
247
+ export function isIDType(item) {
248
+ return item === 'string' || item === 'number';
249
+ }
250
+ export const InputDTO = {
251
+ $type: 'InputDTO',
252
+ attributes: 'attributes'
253
+ };
254
+ export function isInputDTO(item) {
255
+ return reflection.isInstance(item, InputDTO.$type);
256
+ }
257
+ export const Method = {
258
+ $type: 'Method',
259
+ description: 'description',
260
+ input: 'input',
261
+ name: 'name'
262
+ };
263
+ export function isMethod(item) {
264
+ return reflection.isInstance(item, Method.$type);
265
+ }
266
+ export const MethodInput = {
267
+ $type: 'MethodInput',
268
+ attributes: 'attributes'
269
+ };
270
+ export function isMethodInput(item) {
271
+ return reflection.isInstance(item, MethodInput.$type);
272
+ }
273
+ export const MethodsDeclaration = {
274
+ $type: 'MethodsDeclaration',
275
+ methods: 'methods'
276
+ };
277
+ export function isMethodsDeclaration(item) {
278
+ return reflection.isInstance(item, MethodsDeclaration.$type);
279
+ }
280
+ export const Payload = {
281
+ $type: 'Payload',
282
+ attributes: 'attributes'
283
+ };
284
+ export function isPayload(item) {
285
+ return reflection.isInstance(item, Payload.$type);
286
+ }
287
+ export const Policy = {
288
+ $type: 'Policy',
289
+ command: 'command',
290
+ description: 'description',
291
+ name: 'name'
292
+ };
293
+ export function isPolicy(item) {
294
+ return reflection.isInstance(item, Policy.$type);
295
+ }
296
+ export const PolicyTrigger = {
297
+ $type: 'PolicyTrigger',
298
+ hotspot: 'hotspot',
299
+ policy: 'policy'
300
+ };
301
+ export function isPolicyTrigger(item) {
302
+ return reflection.isInstance(item, PolicyTrigger.$type);
303
+ }
304
+ export const Port = {
305
+ $type: 'Port',
306
+ description: 'description',
307
+ name: 'name'
308
+ };
309
+ export function isPort(item) {
310
+ return reflection.isInstance(item, Port.$type);
311
+ }
312
+ export function isPrimitive(item) {
313
+ return item === 'string' || item === 'number' || item === 'boolean' || item === 'date';
314
+ }
315
+ export const PrimitiveAttribute = {
316
+ $type: 'PrimitiveAttribute',
317
+ many: 'many',
318
+ name: 'name',
319
+ optional: 'optional',
320
+ type: 'type'
321
+ };
322
+ export function isPrimitiveAttribute(item) {
323
+ return reflection.isInstance(item, PrimitiveAttribute.$type);
324
+ }
325
+ export const ProcessFlow = {
326
+ $type: 'ProcessFlow',
327
+ command: 'command',
328
+ description: 'description',
329
+ given: 'given',
330
+ name: 'name',
331
+ reactions: 'reactions'
332
+ };
333
+ export function isProcessFlow(item) {
334
+ return reflection.isInstance(item, ProcessFlow.$type);
335
+ }
336
+ export const Projection = {
337
+ $type: 'Projection',
338
+ hotspot: 'hotspot',
339
+ readModel: 'readModel'
340
+ };
341
+ export function isProjection(item) {
342
+ return reflection.isInstance(item, Projection.$type);
343
+ }
344
+ export function isQualifiedName(item) {
345
+ return typeof item === 'string';
346
+ }
347
+ export const ReactionOutcome = {
348
+ $type: 'ReactionOutcome'
349
+ };
350
+ export function isReactionOutcome(item) {
351
+ return reflection.isInstance(item, ReactionOutcome.$type);
352
+ }
353
+ export const ReactionStep = {
354
+ $type: 'ReactionStep',
355
+ outcomes: 'outcomes',
356
+ trigger: 'trigger'
357
+ };
358
+ export function isReactionStep(item) {
359
+ return reflection.isInstance(item, ReactionStep.$type);
360
+ }
361
+ export const ReadModel = {
362
+ $type: 'ReadModel',
363
+ description: 'description',
364
+ name: 'name'
365
+ };
366
+ export function isReadModel(item) {
367
+ return reflection.isInstance(item, ReadModel.$type);
368
+ }
369
+ export const Reference = {
370
+ $type: 'Reference',
371
+ name: 'name',
372
+ to: 'to'
373
+ };
374
+ export function isReference(item) {
375
+ return reflection.isInstance(item, Reference.$type);
376
+ }
377
+ export const Relationship = {
378
+ $type: 'Relationship'
379
+ };
380
+ export function isRelationship(item) {
381
+ return reflection.isInstance(item, Relationship.$type);
382
+ }
383
+ export const ResponseDTO = {
384
+ $type: 'ResponseDTO',
385
+ attributes: 'attributes'
386
+ };
387
+ export function isResponseDTO(item) {
388
+ return reflection.isInstance(item, ResponseDTO.$type);
389
+ }
390
+ export const SymmetricRelationship = {
391
+ $type: 'SymmetricRelationship',
392
+ description: 'description',
393
+ participant1: 'participant1',
394
+ participant2: 'participant2',
395
+ type: 'type'
396
+ };
397
+ export function isSymmetricRelationship(item) {
398
+ return reflection.isInstance(item, SymmetricRelationship.$type);
399
+ }
400
+ export const Term = {
401
+ $type: 'Term',
402
+ aliases: 'aliases',
403
+ definition: 'definition',
404
+ name: 'name'
405
+ };
406
+ export function isTerm(item) {
407
+ return reflection.isInstance(item, Term.$type);
408
+ }
409
+ export const UbiquitousLanguageDeclaration = {
410
+ $type: 'UbiquitousLanguageDeclaration',
411
+ terms: 'terms'
412
+ };
413
+ export function isUbiquitousLanguageDeclaration(item) {
414
+ return reflection.isInstance(item, UbiquitousLanguageDeclaration.$type);
415
+ }
416
+ export const UID = {
417
+ $type: 'UID',
418
+ enforcedInvariants: 'enforcedInvariants',
419
+ type: 'type'
420
+ };
421
+ export function isUID(item) {
422
+ return reflection.isInstance(item, UID.$type);
423
+ }
424
+ export function isUpstreamRole(item) {
425
+ return item === 'OpenHostService' || item === 'PublishedLanguage';
426
+ }
427
+ export const ValueObject = {
428
+ $type: 'ValueObject',
429
+ attributes: 'attributes',
430
+ description: 'description',
431
+ enforcedInvariants: 'enforcedInvariants',
432
+ name: 'name'
433
+ };
434
+ export function isValueObject(item) {
435
+ return reflection.isInstance(item, ValueObject.$type);
436
+ }
437
+ export class DomainDesignLanguageAstReflection extends langium.AbstractAstReflection {
438
+ constructor() {
439
+ super(...arguments);
440
+ this.types = {
441
+ Actor: {
442
+ name: Actor.$type,
443
+ properties: {
444
+ description: {
445
+ name: Actor.description
446
+ },
447
+ name: {
448
+ name: Actor.name
449
+ }
450
+ },
451
+ superTypes: [EventStormingElement.$type]
452
+ },
453
+ ActorCommandStep: {
454
+ name: ActorCommandStep.$type,
455
+ properties: {
456
+ command: {
457
+ name: ActorCommandStep.command,
458
+ referenceType: Command.$type
459
+ },
460
+ issuer: {
461
+ name: ActorCommandStep.issuer,
462
+ referenceType: Actor.$type
463
+ }
464
+ },
465
+ superTypes: []
466
+ },
467
+ AggregateAttribute: {
468
+ name: AggregateAttribute.$type,
469
+ properties: {
470
+ many: {
471
+ name: AggregateAttribute.many,
472
+ defaultValue: false
473
+ },
474
+ optional: {
475
+ name: AggregateAttribute.optional,
476
+ defaultValue: false
477
+ },
478
+ type: {
479
+ name: AggregateAttribute.type
480
+ }
481
+ },
482
+ superTypes: []
483
+ },
484
+ AggregateRoot: {
485
+ name: AggregateRoot.$type,
486
+ properties: {
487
+ attributes: {
488
+ name: AggregateRoot.attributes,
489
+ defaultValue: []
490
+ },
491
+ correctivePolicies: {
492
+ name: AggregateRoot.correctivePolicies,
493
+ defaultValue: []
494
+ },
495
+ description: {
496
+ name: AggregateRoot.description
497
+ },
498
+ enforcedInvariants: {
499
+ name: AggregateRoot.enforcedInvariants,
500
+ defaultValue: []
501
+ },
502
+ events: {
503
+ name: AggregateRoot.events
504
+ },
505
+ exceptions: {
506
+ name: AggregateRoot.exceptions
507
+ },
508
+ id: {
509
+ name: AggregateRoot.id
510
+ },
511
+ methods: {
512
+ name: AggregateRoot.methods
513
+ },
514
+ name: {
515
+ name: AggregateRoot.name
516
+ }
517
+ },
518
+ superTypes: [DomainObject.$type]
519
+ },
520
+ AsymmetricRelationship: {
521
+ name: AsymmetricRelationship.$type,
522
+ properties: {
523
+ customerSupplier: {
524
+ name: AsymmetricRelationship.customerSupplier,
525
+ defaultValue: false
526
+ },
527
+ description: {
528
+ name: AsymmetricRelationship.description
529
+ },
530
+ downstream: {
531
+ name: AsymmetricRelationship.downstream,
532
+ referenceType: BoundedContext.$type
533
+ },
534
+ downstreamRole: {
535
+ name: AsymmetricRelationship.downstreamRole
536
+ },
537
+ upstream: {
538
+ name: AsymmetricRelationship.upstream,
539
+ referenceType: BoundedContext.$type
540
+ },
541
+ upstreamRoles: {
542
+ name: AsymmetricRelationship.upstreamRoles,
543
+ defaultValue: []
544
+ }
545
+ },
546
+ superTypes: [Relationship.$type]
547
+ },
548
+ BoundedContext: {
549
+ name: BoundedContext.$type,
550
+ properties: {
551
+ aggregates: {
552
+ name: BoundedContext.aggregates,
553
+ defaultValue: []
554
+ },
555
+ commands: {
556
+ name: BoundedContext.commands,
557
+ defaultValue: []
558
+ },
559
+ description: {
560
+ name: BoundedContext.description
561
+ },
562
+ domainServices: {
563
+ name: BoundedContext.domainServices,
564
+ defaultValue: []
565
+ },
566
+ eventStorming: {
567
+ name: BoundedContext.eventStorming
568
+ },
569
+ name: {
570
+ name: BoundedContext.name
571
+ },
572
+ ports: {
573
+ name: BoundedContext.ports,
574
+ defaultValue: []
575
+ },
576
+ ubiquitousLanguage: {
577
+ name: BoundedContext.ubiquitousLanguage
578
+ }
579
+ },
580
+ superTypes: []
581
+ },
582
+ Command: {
583
+ name: Command.$type,
584
+ properties: {
585
+ aggregate: {
586
+ name: Command.aggregate,
587
+ referenceType: AggregateRoot.$type
588
+ },
589
+ dependencies: {
590
+ name: Command.dependencies,
591
+ defaultValue: []
592
+ },
593
+ description: {
594
+ name: Command.description
595
+ },
596
+ domainServices: {
597
+ name: Command.domainServices,
598
+ defaultValue: [],
599
+ referenceType: DomainService.$type
600
+ },
601
+ events: {
602
+ name: Command.events,
603
+ defaultValue: [],
604
+ referenceType: DomainEvent.$type
605
+ },
606
+ input: {
607
+ name: Command.input
608
+ },
609
+ name: {
610
+ name: Command.name
611
+ },
612
+ response: {
613
+ name: Command.response
614
+ }
615
+ },
616
+ superTypes: []
617
+ },
618
+ ContextMap: {
619
+ name: ContextMap.$type,
620
+ properties: {
621
+ relationships: {
622
+ name: ContextMap.relationships,
623
+ defaultValue: []
624
+ }
625
+ },
626
+ superTypes: []
627
+ },
628
+ Dependency: {
629
+ name: Dependency.$type,
630
+ properties: {
631
+ port: {
632
+ name: Dependency.port,
633
+ referenceType: Port.$type
634
+ }
635
+ },
636
+ superTypes: []
637
+ },
638
+ DomainAttribute: {
639
+ name: DomainAttribute.$type,
640
+ properties: {
641
+ many: {
642
+ name: DomainAttribute.many,
643
+ defaultValue: false
644
+ },
645
+ name: {
646
+ name: DomainAttribute.name
647
+ },
648
+ optional: {
649
+ name: DomainAttribute.optional,
650
+ defaultValue: false
651
+ },
652
+ type: {
653
+ name: DomainAttribute.type,
654
+ referenceType: DomainObject.$type
655
+ }
656
+ },
657
+ superTypes: []
658
+ },
659
+ DomainEvent: {
660
+ name: DomainEvent.$type,
661
+ properties: {
662
+ description: {
663
+ name: DomainEvent.description
664
+ },
665
+ name: {
666
+ name: DomainEvent.name
667
+ },
668
+ payload: {
669
+ name: DomainEvent.payload
670
+ }
671
+ },
672
+ superTypes: []
673
+ },
674
+ DomainEventsDeclaration: {
675
+ name: DomainEventsDeclaration.$type,
676
+ properties: {
677
+ events: {
678
+ name: DomainEventsDeclaration.events,
679
+ defaultValue: []
680
+ }
681
+ },
682
+ superTypes: []
683
+ },
684
+ DomainException: {
685
+ name: DomainException.$type,
686
+ properties: {
687
+ description: {
688
+ name: DomainException.description
689
+ },
690
+ name: {
691
+ name: DomainException.name
692
+ }
693
+ },
694
+ superTypes: []
695
+ },
696
+ DomainModel: {
697
+ name: DomainModel.$type,
698
+ properties: {
699
+ boundedContext: {
700
+ name: DomainModel.boundedContext
701
+ },
702
+ contextMap: {
703
+ name: DomainModel.contextMap
704
+ }
705
+ },
706
+ superTypes: []
707
+ },
708
+ DomainObject: {
709
+ name: DomainObject.$type,
710
+ properties: {},
711
+ superTypes: []
712
+ },
713
+ DomainService: {
714
+ name: DomainService.$type,
715
+ properties: {
716
+ description: {
717
+ name: DomainService.description
718
+ },
719
+ input: {
720
+ name: DomainService.input
721
+ },
722
+ name: {
723
+ name: DomainService.name
724
+ },
725
+ response: {
726
+ name: DomainService.response
727
+ },
728
+ type: {
729
+ name: DomainService.type
730
+ }
731
+ },
732
+ superTypes: []
733
+ },
734
+ DomainServiceInput: {
735
+ name: DomainServiceInput.$type,
736
+ properties: {
737
+ attributes: {
738
+ name: DomainServiceInput.attributes,
739
+ defaultValue: []
740
+ }
741
+ },
742
+ superTypes: []
743
+ },
744
+ DomainServiceResponse: {
745
+ name: DomainServiceResponse.$type,
746
+ properties: {
747
+ attributes: {
748
+ name: DomainServiceResponse.attributes,
749
+ defaultValue: []
750
+ }
751
+ },
752
+ superTypes: []
753
+ },
754
+ Entity: {
755
+ name: Entity.$type,
756
+ properties: {
757
+ attributes: {
758
+ name: Entity.attributes,
759
+ defaultValue: []
760
+ },
761
+ description: {
762
+ name: Entity.description
763
+ },
764
+ id: {
765
+ name: Entity.id
766
+ },
767
+ name: {
768
+ name: Entity.name
769
+ }
770
+ },
771
+ superTypes: [DomainObject.$type]
772
+ },
773
+ EntityAttribute: {
774
+ name: EntityAttribute.$type,
775
+ properties: {
776
+ many: {
777
+ name: EntityAttribute.many,
778
+ defaultValue: false
779
+ },
780
+ optional: {
781
+ name: EntityAttribute.optional,
782
+ defaultValue: false
783
+ },
784
+ type: {
785
+ name: EntityAttribute.type
786
+ }
787
+ },
788
+ superTypes: []
789
+ },
790
+ Enum: {
791
+ name: Enum.$type,
792
+ properties: {
793
+ values: {
794
+ name: Enum.values,
795
+ defaultValue: []
796
+ }
797
+ },
798
+ superTypes: []
799
+ },
800
+ EventStormingDeclaration: {
801
+ name: EventStormingDeclaration.$type,
802
+ properties: {
803
+ elements: {
804
+ name: EventStormingDeclaration.elements,
805
+ defaultValue: []
806
+ },
807
+ flows: {
808
+ name: EventStormingDeclaration.flows,
809
+ defaultValue: []
810
+ }
811
+ },
812
+ superTypes: []
813
+ },
814
+ EventStormingElement: {
815
+ name: EventStormingElement.$type,
816
+ properties: {},
817
+ superTypes: []
818
+ },
819
+ ExceptionsDeclaration: {
820
+ name: ExceptionsDeclaration.$type,
821
+ properties: {
822
+ exceptions: {
823
+ name: ExceptionsDeclaration.exceptions,
824
+ defaultValue: []
825
+ }
826
+ },
827
+ superTypes: []
828
+ },
829
+ ExternalSystem: {
830
+ name: ExternalSystem.$type,
831
+ properties: {
832
+ description: {
833
+ name: ExternalSystem.description
834
+ },
835
+ name: {
836
+ name: ExternalSystem.name
837
+ }
838
+ },
839
+ superTypes: [EventStormingElement.$type]
840
+ },
841
+ GivenStep: {
842
+ name: GivenStep.$type,
843
+ properties: {
844
+ actor: {
845
+ name: GivenStep.actor,
846
+ referenceType: Actor.$type
847
+ },
848
+ readModel: {
849
+ name: GivenStep.readModel,
850
+ referenceType: ReadModel.$type
851
+ }
852
+ },
853
+ superTypes: []
854
+ },
855
+ InputDTO: {
856
+ name: InputDTO.$type,
857
+ properties: {
858
+ attributes: {
859
+ name: InputDTO.attributes,
860
+ defaultValue: []
861
+ }
862
+ },
863
+ superTypes: []
864
+ },
865
+ Method: {
866
+ name: Method.$type,
867
+ properties: {
868
+ description: {
869
+ name: Method.description
870
+ },
871
+ input: {
872
+ name: Method.input
873
+ },
874
+ name: {
875
+ name: Method.name
876
+ }
877
+ },
878
+ superTypes: []
879
+ },
880
+ MethodInput: {
881
+ name: MethodInput.$type,
882
+ properties: {
883
+ attributes: {
884
+ name: MethodInput.attributes,
885
+ defaultValue: []
886
+ }
887
+ },
888
+ superTypes: []
889
+ },
890
+ MethodsDeclaration: {
891
+ name: MethodsDeclaration.$type,
892
+ properties: {
893
+ methods: {
894
+ name: MethodsDeclaration.methods,
895
+ defaultValue: []
896
+ }
897
+ },
898
+ superTypes: []
899
+ },
900
+ Payload: {
901
+ name: Payload.$type,
902
+ properties: {
903
+ attributes: {
904
+ name: Payload.attributes,
905
+ defaultValue: []
906
+ }
907
+ },
908
+ superTypes: []
909
+ },
910
+ Policy: {
911
+ name: Policy.$type,
912
+ properties: {
913
+ command: {
914
+ name: Policy.command,
915
+ referenceType: Command.$type
916
+ },
917
+ description: {
918
+ name: Policy.description
919
+ },
920
+ name: {
921
+ name: Policy.name
922
+ }
923
+ },
924
+ superTypes: []
925
+ },
926
+ PolicyTrigger: {
927
+ name: PolicyTrigger.$type,
928
+ properties: {
929
+ hotspot: {
930
+ name: PolicyTrigger.hotspot
931
+ },
932
+ policy: {
933
+ name: PolicyTrigger.policy
934
+ }
935
+ },
936
+ superTypes: [ReactionOutcome.$type]
937
+ },
938
+ Port: {
939
+ name: Port.$type,
940
+ properties: {
941
+ description: {
942
+ name: Port.description
943
+ },
944
+ name: {
945
+ name: Port.name
946
+ }
947
+ },
948
+ superTypes: []
949
+ },
950
+ PrimitiveAttribute: {
951
+ name: PrimitiveAttribute.$type,
952
+ properties: {
953
+ many: {
954
+ name: PrimitiveAttribute.many,
955
+ defaultValue: false
956
+ },
957
+ name: {
958
+ name: PrimitiveAttribute.name
959
+ },
960
+ optional: {
961
+ name: PrimitiveAttribute.optional,
962
+ defaultValue: false
963
+ },
964
+ type: {
965
+ name: PrimitiveAttribute.type
966
+ }
967
+ },
968
+ superTypes: []
969
+ },
970
+ ProcessFlow: {
971
+ name: ProcessFlow.$type,
972
+ properties: {
973
+ command: {
974
+ name: ProcessFlow.command
975
+ },
976
+ description: {
977
+ name: ProcessFlow.description
978
+ },
979
+ given: {
980
+ name: ProcessFlow.given
981
+ },
982
+ name: {
983
+ name: ProcessFlow.name
984
+ },
985
+ reactions: {
986
+ name: ProcessFlow.reactions,
987
+ defaultValue: []
988
+ }
989
+ },
990
+ superTypes: []
991
+ },
992
+ Projection: {
993
+ name: Projection.$type,
994
+ properties: {
995
+ hotspot: {
996
+ name: Projection.hotspot
997
+ },
998
+ readModel: {
999
+ name: Projection.readModel,
1000
+ referenceType: ReadModel.$type
1001
+ }
1002
+ },
1003
+ superTypes: [ReactionOutcome.$type]
1004
+ },
1005
+ ReactionOutcome: {
1006
+ name: ReactionOutcome.$type,
1007
+ properties: {},
1008
+ superTypes: []
1009
+ },
1010
+ ReactionStep: {
1011
+ name: ReactionStep.$type,
1012
+ properties: {
1013
+ outcomes: {
1014
+ name: ReactionStep.outcomes,
1015
+ defaultValue: []
1016
+ },
1017
+ trigger: {
1018
+ name: ReactionStep.trigger,
1019
+ referenceType: DomainEvent.$type
1020
+ }
1021
+ },
1022
+ superTypes: []
1023
+ },
1024
+ ReadModel: {
1025
+ name: ReadModel.$type,
1026
+ properties: {
1027
+ description: {
1028
+ name: ReadModel.description
1029
+ },
1030
+ name: {
1031
+ name: ReadModel.name
1032
+ }
1033
+ },
1034
+ superTypes: [EventStormingElement.$type]
1035
+ },
1036
+ Reference: {
1037
+ name: Reference.$type,
1038
+ properties: {
1039
+ name: {
1040
+ name: Reference.name
1041
+ },
1042
+ to: {
1043
+ name: Reference.to,
1044
+ referenceType: AggregateRoot.$type
1045
+ }
1046
+ },
1047
+ superTypes: []
1048
+ },
1049
+ Relationship: {
1050
+ name: Relationship.$type,
1051
+ properties: {},
1052
+ superTypes: []
1053
+ },
1054
+ ResponseDTO: {
1055
+ name: ResponseDTO.$type,
1056
+ properties: {
1057
+ attributes: {
1058
+ name: ResponseDTO.attributes,
1059
+ defaultValue: []
1060
+ }
1061
+ },
1062
+ superTypes: []
1063
+ },
1064
+ SymmetricRelationship: {
1065
+ name: SymmetricRelationship.$type,
1066
+ properties: {
1067
+ description: {
1068
+ name: SymmetricRelationship.description
1069
+ },
1070
+ participant1: {
1071
+ name: SymmetricRelationship.participant1,
1072
+ referenceType: BoundedContext.$type
1073
+ },
1074
+ participant2: {
1075
+ name: SymmetricRelationship.participant2,
1076
+ referenceType: BoundedContext.$type
1077
+ },
1078
+ type: {
1079
+ name: SymmetricRelationship.type
1080
+ }
1081
+ },
1082
+ superTypes: [Relationship.$type]
1083
+ },
1084
+ Term: {
1085
+ name: Term.$type,
1086
+ properties: {
1087
+ aliases: {
1088
+ name: Term.aliases,
1089
+ defaultValue: []
1090
+ },
1091
+ definition: {
1092
+ name: Term.definition
1093
+ },
1094
+ name: {
1095
+ name: Term.name
1096
+ }
1097
+ },
1098
+ superTypes: []
1099
+ },
1100
+ UID: {
1101
+ name: UID.$type,
1102
+ properties: {
1103
+ enforcedInvariants: {
1104
+ name: UID.enforcedInvariants,
1105
+ defaultValue: []
1106
+ },
1107
+ type: {
1108
+ name: UID.type
1109
+ }
1110
+ },
1111
+ superTypes: []
1112
+ },
1113
+ UbiquitousLanguageDeclaration: {
1114
+ name: UbiquitousLanguageDeclaration.$type,
1115
+ properties: {
1116
+ terms: {
1117
+ name: UbiquitousLanguageDeclaration.terms,
1118
+ defaultValue: []
1119
+ }
1120
+ },
1121
+ superTypes: []
1122
+ },
1123
+ ValueObject: {
1124
+ name: ValueObject.$type,
1125
+ properties: {
1126
+ attributes: {
1127
+ name: ValueObject.attributes,
1128
+ defaultValue: []
1129
+ },
1130
+ description: {
1131
+ name: ValueObject.description
1132
+ },
1133
+ enforcedInvariants: {
1134
+ name: ValueObject.enforcedInvariants,
1135
+ defaultValue: []
1136
+ },
1137
+ name: {
1138
+ name: ValueObject.name
1139
+ }
1140
+ },
1141
+ superTypes: [DomainObject.$type]
1142
+ }
1143
+ };
1144
+ }
1145
+ }
1146
+ export const reflection = new DomainDesignLanguageAstReflection();
1147
+ //# sourceMappingURL=ast.js.map