@syrtis-ai/syrtis-javascript-client 9.0.0 → 11.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/src/Common/MessageCollection.ts +30 -14
  4. package/src/Common/generatedEntitySchemas.ts +6 -6
  5. package/src/Common/generatedRepositories.ts +6 -6
  6. package/src/Entity/Message.ts +43 -56
  7. package/src/Entity/ScenarioMessage.ts +10 -0
  8. package/src/Entity/{Card.ts → Step.ts} +3 -3
  9. package/src/Entity/StepMessage.ts +10 -0
  10. package/src/Repository/ScenarioMessageRepository.ts +8 -0
  11. package/src/Repository/SessionRepository.ts +1 -6
  12. package/src/Repository/StepMessageRepository.ts +8 -0
  13. package/src/Repository/StepRepository.ts +8 -0
  14. package/src/Vue/Mixin/Entity/{card_relation.vue → scenario_message.vue} +2 -2
  15. package/src/Vue/Mixin/Entity/{card.vue → step.vue} +2 -2
  16. package/src/Vue/Mixin/Entity/{card_message.vue → step_message.vue} +2 -2
  17. package/src/Vue/Mixin/EntityManipulator/ScenarioMessageEntityManipulatorVueMixin.ts +9 -0
  18. package/src/Vue/Mixin/EntityManipulator/{CardEntityManipulatorVueMixin.ts → StepEntityManipulatorVueMixin.ts} +2 -2
  19. package/src/Vue/Mixin/EntityManipulator/StepMessageEntityManipulatorVueMixin.ts +9 -0
  20. package/src/data/entity/chunk.json +9 -9
  21. package/src/data/entity/document.json +9 -33
  22. package/src/data/entity/environment.json +8 -32
  23. package/src/data/entity/job.json +9 -33
  24. package/src/data/entity/message.json +20 -70
  25. package/src/data/entity/message_stamp.json +8 -32
  26. package/src/data/entity/node.json +9 -33
  27. package/src/data/entity/request.json +20 -93
  28. package/src/data/entity/scenario.json +253 -74
  29. package/src/data/entity/{card_relation.json → scenario_message.json} +30 -55
  30. package/src/data/entity/session.json +203 -25
  31. package/src/data/entity/slot.json +190 -20
  32. package/src/data/entity/slot_config.json +9 -9
  33. package/src/data/entity/slot_message.json +11 -37
  34. package/src/data/entity/slot_message_stamp.json +9 -9
  35. package/src/data/entity/slot_relation.json +9 -9
  36. package/src/data/entity/{card.json → step.json} +22 -189
  37. package/src/data/entity/{card_message.json → step_message.json} +13 -14
  38. package/src/data/entity/template.json +9 -33
  39. package/src/data/entity/timezone.json +9 -9
  40. package/src/data/entity/user.json +38 -31
  41. package/src/Entity/CardMessage.ts +0 -10
  42. package/src/Entity/CardRelation.ts +0 -10
  43. package/src/Repository/CardMessageRepository.ts +0 -8
  44. package/src/Repository/CardRelationRepository.ts +0 -8
  45. package/src/Repository/CardRepository.ts +0 -8
  46. package/src/Vue/Mixin/EntityManipulator/CardMessageEntityManipulatorVueMixin.ts +0 -9
  47. package/src/Vue/Mixin/EntityManipulator/CardRelationEntityManipulatorVueMixin.ts +0 -9
@@ -71,6 +71,15 @@
71
71
  "indexes": {},
72
72
  "unique_constraints": {},
73
73
  "fields": {
74
+ "id": {
75
+ "kind": "field",
76
+ "column": "id",
77
+ "type": "uuid",
78
+ "nullable": false,
79
+ "unique": true,
80
+ "id": true,
81
+ "generated": false
82
+ },
74
83
  "name": {
75
84
  "kind": "field",
76
85
  "column": "name",
@@ -80,15 +89,6 @@
80
89
  "id": false,
81
90
  "generated": false,
82
91
  "length": 255
83
- },
84
- "id": {
85
- "kind": "field",
86
- "column": "id",
87
- "type": "uuid",
88
- "nullable": false,
89
- "unique": true,
90
- "id": true,
91
- "generated": false
92
92
  }
93
93
  },
94
94
  "associations": {
@@ -113,6 +113,15 @@
113
113
  "indexes": {},
114
114
  "unique_constraints": {},
115
115
  "fields": {
116
+ "id": {
117
+ "kind": "field",
118
+ "column": "id",
119
+ "type": "uuid",
120
+ "nullable": false,
121
+ "unique": true,
122
+ "id": true,
123
+ "generated": false
124
+ },
116
125
  "portSource": {
117
126
  "kind": "field",
118
127
  "column": "port_source",
@@ -132,15 +141,6 @@
132
141
  "id": false,
133
142
  "generated": false,
134
143
  "length": 60
135
- },
136
- "id": {
137
- "kind": "field",
138
- "column": "id",
139
- "type": "uuid",
140
- "nullable": false,
141
- "unique": true,
142
- "id": true,
143
- "generated": false
144
144
  }
145
145
  },
146
146
  "associations": {
@@ -1,5 +1,6 @@
1
1
  {
2
- "name": "card",
2
+ "name": "step",
3
+ "description": "A step of a scenario: the job a request runs while the session stands on\nit, and the messages it puts at its nodes' disposal. A session starts on\nthe scenario's entry step and moves to another by naming it — a navigate\nnode —, never by a relation drawn between them.",
3
4
  "properties": [
4
5
  {
5
6
  "name": "title",
@@ -32,20 +33,6 @@
32
33
  "generated": false
33
34
  }
34
35
  },
35
- {
36
- "name": "secureId",
37
- "type": "string",
38
- "orm": {
39
- "kind": "field",
40
- "column": "secure_id",
41
- "type": "string",
42
- "nullable": false,
43
- "unique": false,
44
- "id": false,
45
- "generated": false,
46
- "length": 255
47
- }
48
- },
49
36
  {
50
37
  "name": "user",
51
38
  "type": "Wexample\\SymfonyHelpers\\Entity\\Interfaces\\UserEntityInterface",
@@ -71,8 +58,7 @@
71
58
  "on_delete": null
72
59
  }
73
60
  ]
74
- },
75
- "target": "user"
61
+ }
76
62
  },
77
63
  {
78
64
  "name": "scenario",
@@ -102,36 +88,6 @@
102
88
  ]
103
89
  }
104
90
  },
105
- {
106
- "name": "positionX",
107
- "type": "int",
108
- "nullable": true,
109
- "default": null,
110
- "orm": {
111
- "kind": "field",
112
- "column": "position_x",
113
- "type": "integer",
114
- "nullable": true,
115
- "unique": false,
116
- "id": false,
117
- "generated": false
118
- }
119
- },
120
- {
121
- "name": "positionY",
122
- "type": "int",
123
- "nullable": true,
124
- "default": null,
125
- "orm": {
126
- "kind": "field",
127
- "column": "position_y",
128
- "type": "integer",
129
- "nullable": true,
130
- "unique": false,
131
- "id": false,
132
- "generated": false
133
- }
134
- },
135
91
  {
136
92
  "name": "id",
137
93
  "type": "Symfony\\Component\\Uid\\Uuid",
@@ -143,8 +99,7 @@
143
99
  "unique": true,
144
100
  "id": true,
145
101
  "generated": false
146
- },
147
- "default": null
102
+ }
148
103
  },
149
104
  {
150
105
  "name": "job",
@@ -175,56 +130,16 @@
175
130
  }
176
131
  },
177
132
  {
178
- "name": "cardRelationsSources",
133
+ "name": "stepMessages",
179
134
  "type": "collection",
180
- "description": "CardRelation>",
181
- "target": "card_relation",
135
+ "description": "StepMessage>",
136
+ "target": "step_message",
182
137
  "orm": {
183
138
  "kind": "association",
184
139
  "association_type": "one_to_many",
185
- "target_entity": "App\\Entity\\CardRelation",
186
- "target": "card_relation",
187
- "mapped_by": "cardSource",
188
- "inversed_by": null,
189
- "is_owning_side": false,
190
- "orphan_removal": true,
191
- "cascade": [
192
- "remove"
193
- ],
194
- "fetch": 2
195
- }
196
- },
197
- {
198
- "name": "cardRelationsTarget",
199
- "type": "collection",
200
- "description": "CardRelation>",
201
- "target": "card_relation",
202
- "orm": {
203
- "kind": "association",
204
- "association_type": "one_to_many",
205
- "target_entity": "App\\Entity\\CardRelation",
206
- "target": "card_relation",
207
- "mapped_by": "cardTarget",
208
- "inversed_by": null,
209
- "is_owning_side": false,
210
- "orphan_removal": true,
211
- "cascade": [
212
- "remove"
213
- ],
214
- "fetch": 2
215
- }
216
- },
217
- {
218
- "name": "cardMessages",
219
- "type": "collection",
220
- "description": "CardRelation>",
221
- "target": "card_relation",
222
- "orm": {
223
- "kind": "association",
224
- "association_type": "one_to_many",
225
- "target_entity": "App\\Entity\\CardMessage",
226
- "target": "card_message",
227
- "mapped_by": "card",
140
+ "target_entity": "App\\Entity\\StepMessage",
141
+ "target": "step_message",
142
+ "mapped_by": "step",
228
143
  "inversed_by": null,
229
144
  "is_owning_side": false,
230
145
  "orphan_removal": true,
@@ -251,42 +166,25 @@
251
166
  "cascade": {},
252
167
  "fetch": 2
253
168
  }
254
- },
255
- {
256
- "name": "scope",
257
- "type": "string",
258
- "nullable": true,
259
- "default": null,
260
- "orm": {
261
- "kind": "field",
262
- "column": "scope",
263
- "type": "string",
264
- "nullable": false,
265
- "unique": false,
266
- "id": false,
267
- "generated": false,
268
- "length": 30
269
- }
270
169
  }
271
170
  ],
272
171
  "orm": {
273
- "class": "App\\Entity\\Card",
274
- "table": "card",
172
+ "class": "App\\Entity\\Step",
173
+ "table": "step",
275
174
  "identifier": [
276
175
  "id"
277
176
  ],
278
177
  "indexes": {},
279
178
  "unique_constraints": {},
280
179
  "fields": {
281
- "scope": {
180
+ "id": {
282
181
  "kind": "field",
283
- "column": "scope",
284
- "type": "string",
182
+ "column": "id",
183
+ "type": "uuid",
285
184
  "nullable": false,
286
- "unique": false,
287
- "id": false,
288
- "generated": false,
289
- "length": 30
185
+ "unique": true,
186
+ "id": true,
187
+ "generated": false
290
188
  },
291
189
  "title": {
292
190
  "kind": "field",
@@ -306,43 +204,6 @@
306
204
  "unique": false,
307
205
  "id": false,
308
206
  "generated": false
309
- },
310
- "secureId": {
311
- "kind": "field",
312
- "column": "secure_id",
313
- "type": "string",
314
- "nullable": false,
315
- "unique": false,
316
- "id": false,
317
- "generated": false,
318
- "length": 255
319
- },
320
- "positionX": {
321
- "kind": "field",
322
- "column": "position_x",
323
- "type": "integer",
324
- "nullable": true,
325
- "unique": false,
326
- "id": false,
327
- "generated": false
328
- },
329
- "positionY": {
330
- "kind": "field",
331
- "column": "position_y",
332
- "type": "integer",
333
- "nullable": true,
334
- "unique": false,
335
- "id": false,
336
- "generated": false
337
- },
338
- "id": {
339
- "kind": "field",
340
- "column": "id",
341
- "type": "uuid",
342
- "nullable": false,
343
- "unique": true,
344
- "id": true,
345
- "generated": false
346
207
  }
347
208
  },
348
209
  "associations": {
@@ -367,40 +228,12 @@
367
228
  }
368
229
  ]
369
230
  },
370
- "cardRelationsSources": {
371
- "kind": "association",
372
- "association_type": "one_to_many",
373
- "target_entity": "App\\Entity\\CardRelation",
374
- "target": "card_relation",
375
- "mapped_by": "cardSource",
376
- "inversed_by": null,
377
- "is_owning_side": false,
378
- "orphan_removal": true,
379
- "cascade": [
380
- "remove"
381
- ],
382
- "fetch": 2
383
- },
384
- "cardRelationsTarget": {
385
- "kind": "association",
386
- "association_type": "one_to_many",
387
- "target_entity": "App\\Entity\\CardRelation",
388
- "target": "card_relation",
389
- "mapped_by": "cardTarget",
390
- "inversed_by": null,
391
- "is_owning_side": false,
392
- "orphan_removal": true,
393
- "cascade": [
394
- "remove"
395
- ],
396
- "fetch": 2
397
- },
398
- "cardMessages": {
231
+ "stepMessages": {
399
232
  "kind": "association",
400
233
  "association_type": "one_to_many",
401
- "target_entity": "App\\Entity\\CardMessage",
402
- "target": "card_message",
403
- "mapped_by": "card",
234
+ "target_entity": "App\\Entity\\StepMessage",
235
+ "target": "step_message",
236
+ "mapped_by": "step",
404
237
  "inversed_by": null,
405
238
  "is_owning_side": false,
406
239
  "orphan_removal": true,
@@ -1,5 +1,5 @@
1
1
  {
2
- "name": "card_message",
2
+ "name": "step_message",
3
3
  "properties": [
4
4
  {
5
5
  "name": "id",
@@ -12,20 +12,19 @@
12
12
  "unique": true,
13
13
  "id": true,
14
14
  "generated": false
15
- },
16
- "default": null
15
+ }
17
16
  },
18
17
  {
19
- "name": "card",
18
+ "name": "step",
20
19
  "type": "relation",
21
20
  "nullable": true,
22
21
  "default": null,
23
- "target": "card",
22
+ "target": "step",
24
23
  "orm": {
25
24
  "kind": "association",
26
25
  "association_type": "many_to_one",
27
- "target_entity": "App\\Entity\\Card",
28
- "target": "card",
26
+ "target_entity": "App\\Entity\\Step",
27
+ "target": "step",
29
28
  "mapped_by": null,
30
29
  "inversed_by": null,
31
30
  "is_owning_side": true,
@@ -34,7 +33,7 @@
34
33
  "fetch": 2,
35
34
  "join_columns": [
36
35
  {
37
- "name": "card_id",
36
+ "name": "step_id",
38
37
  "referenced_column_name": "id",
39
38
  "nullable": false,
40
39
  "unique": false,
@@ -73,8 +72,8 @@
73
72
  }
74
73
  ],
75
74
  "orm": {
76
- "class": "App\\Entity\\CardMessage",
77
- "table": "card_message",
75
+ "class": "App\\Entity\\StepMessage",
76
+ "table": "step_message",
78
77
  "identifier": [
79
78
  "id"
80
79
  ],
@@ -92,11 +91,11 @@
92
91
  }
93
92
  },
94
93
  "associations": {
95
- "card": {
94
+ "step": {
96
95
  "kind": "association",
97
96
  "association_type": "many_to_one",
98
- "target_entity": "App\\Entity\\Card",
99
- "target": "card",
97
+ "target_entity": "App\\Entity\\Step",
98
+ "target": "step",
100
99
  "mapped_by": null,
101
100
  "inversed_by": null,
102
101
  "is_owning_side": true,
@@ -105,7 +104,7 @@
105
104
  "fetch": 2,
106
105
  "join_columns": [
107
106
  {
108
- "name": "card_id",
107
+ "name": "step_id",
109
108
  "referenced_column_name": "id",
110
109
  "nullable": false,
111
110
  "unique": false,
@@ -47,20 +47,6 @@
47
47
  "generated": false
48
48
  }
49
49
  },
50
- {
51
- "name": "secureId",
52
- "type": "string",
53
- "orm": {
54
- "kind": "field",
55
- "column": "secure_id",
56
- "type": "string",
57
- "nullable": false,
58
- "unique": false,
59
- "id": false,
60
- "generated": false,
61
- "length": 255
62
- }
63
- },
64
50
  {
65
51
  "name": "scenario",
66
52
  "type": "relation",
@@ -113,6 +99,15 @@
113
99
  "indexes": {},
114
100
  "unique_constraints": {},
115
101
  "fields": {
102
+ "id": {
103
+ "kind": "field",
104
+ "column": "id",
105
+ "type": "uuid",
106
+ "nullable": false,
107
+ "unique": true,
108
+ "id": true,
109
+ "generated": false
110
+ },
116
111
  "dateCreated": {
117
112
  "kind": "field",
118
113
  "column": "date_created",
@@ -140,25 +135,6 @@
140
135
  "unique": false,
141
136
  "id": false,
142
137
  "generated": false
143
- },
144
- "secureId": {
145
- "kind": "field",
146
- "column": "secure_id",
147
- "type": "string",
148
- "nullable": false,
149
- "unique": false,
150
- "id": false,
151
- "generated": false,
152
- "length": 255
153
- },
154
- "id": {
155
- "kind": "field",
156
- "column": "id",
157
- "type": "uuid",
158
- "nullable": false,
159
- "unique": true,
160
- "id": true,
161
- "generated": false
162
138
  }
163
139
  },
164
140
  "associations": {
@@ -41,6 +41,15 @@
41
41
  "indexes": {},
42
42
  "unique_constraints": {},
43
43
  "fields": {
44
+ "id": {
45
+ "kind": "field",
46
+ "column": "id",
47
+ "type": "uuid",
48
+ "nullable": false,
49
+ "unique": true,
50
+ "id": true,
51
+ "generated": false
52
+ },
44
53
  "name": {
45
54
  "kind": "field",
46
55
  "column": "name",
@@ -50,15 +59,6 @@
50
59
  "id": false,
51
60
  "generated": false,
52
61
  "length": 255
53
- },
54
- "id": {
55
- "kind": "field",
56
- "column": "id",
57
- "type": "uuid",
58
- "nullable": false,
59
- "unique": true,
60
- "id": true,
61
- "generated": false
62
62
  }
63
63
  },
64
64
  "associations": {}
@@ -1,20 +1,6 @@
1
1
  {
2
2
  "name": "user",
3
3
  "properties": [
4
- {
5
- "name": "secureId",
6
- "type": "string",
7
- "orm": {
8
- "kind": "field",
9
- "column": "secure_id",
10
- "type": "string",
11
- "nullable": false,
12
- "unique": false,
13
- "id": false,
14
- "generated": false,
15
- "length": 255
16
- }
17
- },
18
4
  {
19
5
  "name": "firstName",
20
6
  "type": "string",
@@ -285,6 +271,24 @@
285
271
  "generated": false
286
272
  },
287
273
  "default": null
274
+ },
275
+ {
276
+ "name": "memberships",
277
+ "type": "collection",
278
+ "description": "ProjectMembership>",
279
+ "target": "project_membership",
280
+ "orm": {
281
+ "kind": "association",
282
+ "association_type": "one_to_many",
283
+ "target_entity": "App\\Entity\\ProjectMembership",
284
+ "target": "project_membership",
285
+ "mapped_by": "user",
286
+ "inversed_by": null,
287
+ "is_owning_side": false,
288
+ "orphan_removal": false,
289
+ "cascade": {},
290
+ "fetch": 2
291
+ }
288
292
  }
289
293
  ],
290
294
  "orm": {
@@ -296,15 +300,14 @@
296
300
  "indexes": {},
297
301
  "unique_constraints": {},
298
302
  "fields": {
299
- "secureId": {
303
+ "id": {
300
304
  "kind": "field",
301
- "column": "secure_id",
302
- "type": "string",
305
+ "column": "id",
306
+ "type": "uuid",
303
307
  "nullable": false,
304
- "unique": false,
305
- "id": false,
306
- "generated": false,
307
- "length": 255
308
+ "unique": true,
309
+ "id": true,
310
+ "generated": false
308
311
  },
309
312
  "firstName": {
310
313
  "kind": "field",
@@ -466,17 +469,21 @@
466
469
  "id": false,
467
470
  "generated": false,
468
471
  "length": 12
469
- },
470
- "id": {
471
- "kind": "field",
472
- "column": "id",
473
- "type": "uuid",
474
- "nullable": false,
475
- "unique": true,
476
- "id": true,
477
- "generated": false
478
472
  }
479
473
  },
480
- "associations": {}
474
+ "associations": {
475
+ "memberships": {
476
+ "kind": "association",
477
+ "association_type": "one_to_many",
478
+ "target_entity": "App\\Entity\\ProjectMembership",
479
+ "target": "project_membership",
480
+ "mapped_by": "user",
481
+ "inversed_by": null,
482
+ "is_owning_side": false,
483
+ "orphan_removal": false,
484
+ "cascade": {},
485
+ "fetch": 2
486
+ }
487
+ }
481
488
  }
482
489
  }
@@ -1,10 +0,0 @@
1
- import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
2
- import schema from '../data/entity/card_message.json';
3
-
4
- export default class CardMessage extends AbstractApiEntity {
5
- static readonly entityName = 'cardMessage';
6
-
7
- static retrieveEntitySchema() {
8
- return schema;
9
- }
10
- }
@@ -1,10 +0,0 @@
1
- import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
2
- import schema from '../data/entity/card_relation.json';
3
-
4
- export default class CardRelation extends AbstractApiEntity {
5
- static readonly entityName = 'cardRelation';
6
-
7
- static retrieveEntitySchema() {
8
- return schema;
9
- }
10
- }
@@ -1,8 +0,0 @@
1
- import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
2
- import CardMessage from '../Entity/CardMessage.js';
3
-
4
- export default class CardMessageRepository extends AbstractApiRepository<CardMessage> {
5
- static getEntityType() {
6
- return CardMessage;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
2
- import CardRelation from '../Entity/CardRelation.js';
3
-
4
- export default class CardRelationRepository extends AbstractApiRepository<CardRelation> {
5
- static getEntityType() {
6
- return CardRelation;
7
- }
8
- }
@@ -1,8 +0,0 @@
1
- import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
2
- import Card from '../Entity/Card.js';
3
-
4
- export default class CardRepository extends AbstractApiRepository<Card> {
5
- static getEntityType() {
6
- return Card;
7
- }
8
- }
@@ -1,9 +0,0 @@
1
- import CardMessage from '../../../Entity/CardMessage.js';
2
-
3
- export default {
4
- methods: {
5
- getEntityClass() {
6
- return CardMessage;
7
- },
8
- },
9
- };