@syrtis-ai/syrtis-javascript-client 0.0.48 → 0.0.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -10
- package/package.json +15 -8
- package/src/Common/MessageCollection.ts +355 -0
- package/src/Common/SyrtisClient.ts +24 -0
- package/src/Common/entitySchemas.ts +5 -0
- package/src/Common/generatedEntitySchemas.ts +17 -0
- package/src/Common/generatedRepositories.ts +15 -0
- package/src/Entity/Message.ts +10 -0
- package/src/Entity/MessageStamp.ts +10 -0
- package/src/Entity/Request.ts +10 -0
- package/src/Entity/Session.ts +10 -0
- package/src/Entity/User.ts +10 -0
- package/src/Repository/MessageRepository.ts +14 -0
- package/src/Repository/MessageStampRepository.ts +8 -0
- package/src/Repository/RequestRepository.ts +8 -0
- package/src/Repository/SessionRepository.ts +136 -0
- package/{dist/Repository/UserRepository.d.ts → src/Repository/UserRepository.ts} +4 -2
- package/src/Vue/Mixin/Entity/message.vue +10 -0
- package/src/Vue/Mixin/Entity/message_stamp.vue +10 -0
- package/src/Vue/Mixin/Entity/request.vue +10 -0
- package/src/Vue/Mixin/Entity/session.vue +10 -0
- package/src/Vue/Mixin/Entity/user.vue +10 -0
- package/src/Vue/Mixin/EntityManipulator/MessageEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/MessageStampEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/RequestEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/SessionEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/UserEntityManipulatorVueMixin.ts +9 -0
- package/src/data/entity/message.json +672 -0
- package/src/data/entity/message_stamp.json +140 -0
- package/src/data/entity/request.json +495 -0
- package/src/data/entity/session.json +364 -0
- package/src/data/entity/user.json +268 -0
- package/src/index.ts +21 -0
- package/dist/Common/SyrtisClient.d.ts +0 -9
- package/dist/Common/SyrtisClient.d.ts.map +0 -1
- package/dist/Common/SyrtisClient.js +0 -18
- package/dist/Common/SyrtisClient.js.map +0 -1
- package/dist/Entity/Scenario.d.ts +0 -7
- package/dist/Entity/Scenario.d.ts.map +0 -1
- package/dist/Entity/Scenario.js +0 -10
- package/dist/Entity/Scenario.js.map +0 -1
- package/dist/Entity/Session.d.ts +0 -7
- package/dist/Entity/Session.d.ts.map +0 -1
- package/dist/Entity/Session.js +0 -10
- package/dist/Entity/Session.js.map +0 -1
- package/dist/Entity/User.d.ts +0 -13
- package/dist/Entity/User.d.ts.map +0 -1
- package/dist/Entity/User.js +0 -22
- package/dist/Entity/User.js.map +0 -1
- package/dist/Repository/ScenarioRepository.d.ts +0 -6
- package/dist/Repository/ScenarioRepository.d.ts.map +0 -1
- package/dist/Repository/ScenarioRepository.js +0 -8
- package/dist/Repository/ScenarioRepository.js.map +0 -1
- package/dist/Repository/SessionRepository.d.ts +0 -6
- package/dist/Repository/SessionRepository.d.ts.map +0 -1
- package/dist/Repository/SessionRepository.js +0 -8
- package/dist/Repository/SessionRepository.js.map +0 -1
- package/dist/Repository/UserRepository.d.ts.map +0 -1
- package/dist/Repository/UserRepository.js +0 -8
- package/dist/Repository/UserRepository.js.map +0 -1
- package/dist/Vue/Mixin/EntityManipulator/ScenarioEntityManipulatorVueMixin.d.ts +0 -8
- package/dist/Vue/Mixin/EntityManipulator/ScenarioEntityManipulatorVueMixin.d.ts.map +0 -1
- package/dist/Vue/Mixin/EntityManipulator/ScenarioEntityManipulatorVueMixin.js +0 -9
- package/dist/Vue/Mixin/EntityManipulator/ScenarioEntityManipulatorVueMixin.js.map +0 -1
- package/dist/Vue/Mixin/EntityManipulator/SessionEntityManipulatorVueMixin.d.ts +0 -8
- package/dist/Vue/Mixin/EntityManipulator/SessionEntityManipulatorVueMixin.d.ts.map +0 -1
- package/dist/Vue/Mixin/EntityManipulator/SessionEntityManipulatorVueMixin.js +0 -9
- package/dist/Vue/Mixin/EntityManipulator/SessionEntityManipulatorVueMixin.js.map +0 -1
- package/dist/Vue/Mixin/EntityManipulator/UserEntityManipulatorVueMixin.d.ts +0 -8
- package/dist/Vue/Mixin/EntityManipulator/UserEntityManipulatorVueMixin.d.ts.map +0 -1
- package/dist/Vue/Mixin/EntityManipulator/UserEntityManipulatorVueMixin.js +0 -9
- package/dist/Vue/Mixin/EntityManipulator/UserEntityManipulatorVueMixin.js.map +0 -1
- package/dist/index.d.ts +0 -14
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -17
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,364 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "session",
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"name": "id",
|
|
6
|
+
"type": "mixed",
|
|
7
|
+
"default": null,
|
|
8
|
+
"orm": {
|
|
9
|
+
"kind": "field",
|
|
10
|
+
"column": "id",
|
|
11
|
+
"type": "integer",
|
|
12
|
+
"nullable": false,
|
|
13
|
+
"unique": false,
|
|
14
|
+
"id": true,
|
|
15
|
+
"generated": false
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"name": "dateCreated",
|
|
20
|
+
"type": "DateTimeInterface",
|
|
21
|
+
"nullable": true,
|
|
22
|
+
"default": null,
|
|
23
|
+
"orm": {
|
|
24
|
+
"kind": "field",
|
|
25
|
+
"column": "date_created",
|
|
26
|
+
"type": "datetime",
|
|
27
|
+
"nullable": false,
|
|
28
|
+
"unique": false,
|
|
29
|
+
"id": false,
|
|
30
|
+
"generated": false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "secureId",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"orm": {
|
|
37
|
+
"kind": "field",
|
|
38
|
+
"column": "secure_id",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"nullable": false,
|
|
41
|
+
"unique": false,
|
|
42
|
+
"id": false,
|
|
43
|
+
"generated": false,
|
|
44
|
+
"length": 255
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "status",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"orm": {
|
|
51
|
+
"kind": "field",
|
|
52
|
+
"column": "status",
|
|
53
|
+
"type": "string",
|
|
54
|
+
"nullable": false,
|
|
55
|
+
"unique": false,
|
|
56
|
+
"id": false,
|
|
57
|
+
"generated": false,
|
|
58
|
+
"length": 30
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "user",
|
|
63
|
+
"type": "relation",
|
|
64
|
+
"nullable": true,
|
|
65
|
+
"default": null,
|
|
66
|
+
"target": "user",
|
|
67
|
+
"orm": {
|
|
68
|
+
"kind": "association",
|
|
69
|
+
"association_type": "many_to_one",
|
|
70
|
+
"target_entity": "App\\Entity\\User",
|
|
71
|
+
"target": "user",
|
|
72
|
+
"mapped_by": null,
|
|
73
|
+
"inversed_by": null,
|
|
74
|
+
"is_owning_side": true,
|
|
75
|
+
"orphan_removal": false,
|
|
76
|
+
"cascade": {},
|
|
77
|
+
"fetch": 2,
|
|
78
|
+
"join_columns": [
|
|
79
|
+
{
|
|
80
|
+
"name": "user_id",
|
|
81
|
+
"referenced_column_name": "id",
|
|
82
|
+
"nullable": false,
|
|
83
|
+
"unique": false,
|
|
84
|
+
"on_delete": null
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"name": "scenario",
|
|
91
|
+
"type": "relation",
|
|
92
|
+
"nullable": true,
|
|
93
|
+
"default": null,
|
|
94
|
+
"target": "scenario",
|
|
95
|
+
"orm": {
|
|
96
|
+
"kind": "association",
|
|
97
|
+
"association_type": "many_to_one",
|
|
98
|
+
"target_entity": "App\\Entity\\Scenario",
|
|
99
|
+
"target": "scenario",
|
|
100
|
+
"mapped_by": null,
|
|
101
|
+
"inversed_by": null,
|
|
102
|
+
"is_owning_side": true,
|
|
103
|
+
"orphan_removal": false,
|
|
104
|
+
"cascade": {},
|
|
105
|
+
"fetch": 2,
|
|
106
|
+
"join_columns": [
|
|
107
|
+
{
|
|
108
|
+
"name": "scenario_id",
|
|
109
|
+
"referenced_column_name": "id",
|
|
110
|
+
"nullable": false,
|
|
111
|
+
"unique": false,
|
|
112
|
+
"on_delete": null
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "title",
|
|
119
|
+
"type": "string",
|
|
120
|
+
"nullable": true,
|
|
121
|
+
"default": null,
|
|
122
|
+
"orm": {
|
|
123
|
+
"kind": "field",
|
|
124
|
+
"column": "title",
|
|
125
|
+
"type": "string",
|
|
126
|
+
"nullable": false,
|
|
127
|
+
"unique": false,
|
|
128
|
+
"id": false,
|
|
129
|
+
"generated": false,
|
|
130
|
+
"length": 255
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "dateLastAccess",
|
|
135
|
+
"type": "DateTimeInterface",
|
|
136
|
+
"nullable": true,
|
|
137
|
+
"default": null,
|
|
138
|
+
"orm": {
|
|
139
|
+
"kind": "field",
|
|
140
|
+
"column": "date_last_access",
|
|
141
|
+
"type": "datetime",
|
|
142
|
+
"nullable": true,
|
|
143
|
+
"unique": false,
|
|
144
|
+
"id": false,
|
|
145
|
+
"generated": false
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"name": "requests",
|
|
150
|
+
"type": "Collection",
|
|
151
|
+
"orm": {
|
|
152
|
+
"kind": "association",
|
|
153
|
+
"association_type": "one_to_many",
|
|
154
|
+
"target_entity": "App\\Entity\\Request",
|
|
155
|
+
"target": "request",
|
|
156
|
+
"mapped_by": "session",
|
|
157
|
+
"inversed_by": null,
|
|
158
|
+
"is_owning_side": false,
|
|
159
|
+
"orphan_removal": false,
|
|
160
|
+
"cascade": {},
|
|
161
|
+
"fetch": 2
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"name": "messages",
|
|
166
|
+
"type": "Collection",
|
|
167
|
+
"orm": {
|
|
168
|
+
"kind": "association",
|
|
169
|
+
"association_type": "one_to_many",
|
|
170
|
+
"target_entity": "App\\Entity\\Message",
|
|
171
|
+
"target": "message",
|
|
172
|
+
"mapped_by": "session",
|
|
173
|
+
"inversed_by": null,
|
|
174
|
+
"is_owning_side": false,
|
|
175
|
+
"orphan_removal": false,
|
|
176
|
+
"cascade": {},
|
|
177
|
+
"fetch": 2
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"name": "sessionGroup",
|
|
182
|
+
"type": "relation",
|
|
183
|
+
"target": "session_group",
|
|
184
|
+
"orm": {
|
|
185
|
+
"kind": "association",
|
|
186
|
+
"association_type": "many_to_one",
|
|
187
|
+
"target_entity": "App\\Entity\\SessionGroup",
|
|
188
|
+
"target": "session_group",
|
|
189
|
+
"mapped_by": null,
|
|
190
|
+
"inversed_by": "sessions",
|
|
191
|
+
"is_owning_side": true,
|
|
192
|
+
"orphan_removal": false,
|
|
193
|
+
"cascade": {},
|
|
194
|
+
"fetch": 2,
|
|
195
|
+
"join_columns": [
|
|
196
|
+
{
|
|
197
|
+
"name": "session_group_id",
|
|
198
|
+
"referenced_column_name": "id",
|
|
199
|
+
"nullable": false,
|
|
200
|
+
"unique": false,
|
|
201
|
+
"on_delete": "SET DEFAULT"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
],
|
|
207
|
+
"orm": {
|
|
208
|
+
"class": "App\\Entity\\Session",
|
|
209
|
+
"table": "session",
|
|
210
|
+
"identifier": [
|
|
211
|
+
"id"
|
|
212
|
+
],
|
|
213
|
+
"indexes": {},
|
|
214
|
+
"unique_constraints": {},
|
|
215
|
+
"fields": {
|
|
216
|
+
"dateLastAccess": {
|
|
217
|
+
"kind": "field",
|
|
218
|
+
"column": "date_last_access",
|
|
219
|
+
"type": "datetime",
|
|
220
|
+
"nullable": true,
|
|
221
|
+
"unique": false,
|
|
222
|
+
"id": false,
|
|
223
|
+
"generated": false
|
|
224
|
+
},
|
|
225
|
+
"id": {
|
|
226
|
+
"kind": "field",
|
|
227
|
+
"column": "id",
|
|
228
|
+
"type": "integer",
|
|
229
|
+
"nullable": false,
|
|
230
|
+
"unique": false,
|
|
231
|
+
"id": true,
|
|
232
|
+
"generated": false
|
|
233
|
+
},
|
|
234
|
+
"dateCreated": {
|
|
235
|
+
"kind": "field",
|
|
236
|
+
"column": "date_created",
|
|
237
|
+
"type": "datetime",
|
|
238
|
+
"nullable": false,
|
|
239
|
+
"unique": false,
|
|
240
|
+
"id": false,
|
|
241
|
+
"generated": false
|
|
242
|
+
},
|
|
243
|
+
"secureId": {
|
|
244
|
+
"kind": "field",
|
|
245
|
+
"column": "secure_id",
|
|
246
|
+
"type": "string",
|
|
247
|
+
"nullable": false,
|
|
248
|
+
"unique": false,
|
|
249
|
+
"id": false,
|
|
250
|
+
"generated": false,
|
|
251
|
+
"length": 255
|
|
252
|
+
},
|
|
253
|
+
"status": {
|
|
254
|
+
"kind": "field",
|
|
255
|
+
"column": "status",
|
|
256
|
+
"type": "string",
|
|
257
|
+
"nullable": false,
|
|
258
|
+
"unique": false,
|
|
259
|
+
"id": false,
|
|
260
|
+
"generated": false,
|
|
261
|
+
"length": 30
|
|
262
|
+
},
|
|
263
|
+
"title": {
|
|
264
|
+
"kind": "field",
|
|
265
|
+
"column": "title",
|
|
266
|
+
"type": "string",
|
|
267
|
+
"nullable": false,
|
|
268
|
+
"unique": false,
|
|
269
|
+
"id": false,
|
|
270
|
+
"generated": false,
|
|
271
|
+
"length": 255
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"associations": {
|
|
275
|
+
"requests": {
|
|
276
|
+
"kind": "association",
|
|
277
|
+
"association_type": "one_to_many",
|
|
278
|
+
"target_entity": "App\\Entity\\Request",
|
|
279
|
+
"target": "request",
|
|
280
|
+
"mapped_by": "session",
|
|
281
|
+
"inversed_by": null,
|
|
282
|
+
"is_owning_side": false,
|
|
283
|
+
"orphan_removal": false,
|
|
284
|
+
"cascade": {},
|
|
285
|
+
"fetch": 2
|
|
286
|
+
},
|
|
287
|
+
"messages": {
|
|
288
|
+
"kind": "association",
|
|
289
|
+
"association_type": "one_to_many",
|
|
290
|
+
"target_entity": "App\\Entity\\Message",
|
|
291
|
+
"target": "message",
|
|
292
|
+
"mapped_by": "session",
|
|
293
|
+
"inversed_by": null,
|
|
294
|
+
"is_owning_side": false,
|
|
295
|
+
"orphan_removal": false,
|
|
296
|
+
"cascade": {},
|
|
297
|
+
"fetch": 2
|
|
298
|
+
},
|
|
299
|
+
"sessionGroup": {
|
|
300
|
+
"kind": "association",
|
|
301
|
+
"association_type": "many_to_one",
|
|
302
|
+
"target_entity": "App\\Entity\\SessionGroup",
|
|
303
|
+
"target": "session_group",
|
|
304
|
+
"mapped_by": null,
|
|
305
|
+
"inversed_by": "sessions",
|
|
306
|
+
"is_owning_side": true,
|
|
307
|
+
"orphan_removal": false,
|
|
308
|
+
"cascade": {},
|
|
309
|
+
"fetch": 2,
|
|
310
|
+
"join_columns": [
|
|
311
|
+
{
|
|
312
|
+
"name": "session_group_id",
|
|
313
|
+
"referenced_column_name": "id",
|
|
314
|
+
"nullable": false,
|
|
315
|
+
"unique": false,
|
|
316
|
+
"on_delete": "SET DEFAULT"
|
|
317
|
+
}
|
|
318
|
+
]
|
|
319
|
+
},
|
|
320
|
+
"user": {
|
|
321
|
+
"kind": "association",
|
|
322
|
+
"association_type": "many_to_one",
|
|
323
|
+
"target_entity": "App\\Entity\\User",
|
|
324
|
+
"target": "user",
|
|
325
|
+
"mapped_by": null,
|
|
326
|
+
"inversed_by": null,
|
|
327
|
+
"is_owning_side": true,
|
|
328
|
+
"orphan_removal": false,
|
|
329
|
+
"cascade": {},
|
|
330
|
+
"fetch": 2,
|
|
331
|
+
"join_columns": [
|
|
332
|
+
{
|
|
333
|
+
"name": "user_id",
|
|
334
|
+
"referenced_column_name": "id",
|
|
335
|
+
"nullable": false,
|
|
336
|
+
"unique": false,
|
|
337
|
+
"on_delete": null
|
|
338
|
+
}
|
|
339
|
+
]
|
|
340
|
+
},
|
|
341
|
+
"scenario": {
|
|
342
|
+
"kind": "association",
|
|
343
|
+
"association_type": "many_to_one",
|
|
344
|
+
"target_entity": "App\\Entity\\Scenario",
|
|
345
|
+
"target": "scenario",
|
|
346
|
+
"mapped_by": null,
|
|
347
|
+
"inversed_by": null,
|
|
348
|
+
"is_owning_side": true,
|
|
349
|
+
"orphan_removal": false,
|
|
350
|
+
"cascade": {},
|
|
351
|
+
"fetch": 2,
|
|
352
|
+
"join_columns": [
|
|
353
|
+
{
|
|
354
|
+
"name": "scenario_id",
|
|
355
|
+
"referenced_column_name": "id",
|
|
356
|
+
"nullable": false,
|
|
357
|
+
"unique": false,
|
|
358
|
+
"on_delete": null
|
|
359
|
+
}
|
|
360
|
+
]
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
}
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "user",
|
|
3
|
+
"properties": [
|
|
4
|
+
{
|
|
5
|
+
"name": "username",
|
|
6
|
+
"type": "mixed",
|
|
7
|
+
"default": null,
|
|
8
|
+
"orm": {
|
|
9
|
+
"kind": "field",
|
|
10
|
+
"column": "username",
|
|
11
|
+
"type": "string",
|
|
12
|
+
"nullable": false,
|
|
13
|
+
"unique": true,
|
|
14
|
+
"id": false,
|
|
15
|
+
"generated": false,
|
|
16
|
+
"length": 180
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"name": "id",
|
|
21
|
+
"type": "mixed",
|
|
22
|
+
"default": null,
|
|
23
|
+
"orm": {
|
|
24
|
+
"kind": "field",
|
|
25
|
+
"column": "id",
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"nullable": false,
|
|
28
|
+
"unique": false,
|
|
29
|
+
"id": true,
|
|
30
|
+
"generated": false
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "secureId",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"orm": {
|
|
37
|
+
"kind": "field",
|
|
38
|
+
"column": "secure_id",
|
|
39
|
+
"type": "string",
|
|
40
|
+
"nullable": false,
|
|
41
|
+
"unique": false,
|
|
42
|
+
"id": false,
|
|
43
|
+
"generated": false,
|
|
44
|
+
"length": 255
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
"name": "dateCreated",
|
|
49
|
+
"type": "DateTimeInterface",
|
|
50
|
+
"nullable": true,
|
|
51
|
+
"default": null,
|
|
52
|
+
"orm": {
|
|
53
|
+
"kind": "field",
|
|
54
|
+
"column": "date_created",
|
|
55
|
+
"type": "datetime",
|
|
56
|
+
"nullable": false,
|
|
57
|
+
"unique": false,
|
|
58
|
+
"id": false,
|
|
59
|
+
"generated": false
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "dateLastLogin",
|
|
64
|
+
"type": "DateTimeInterface",
|
|
65
|
+
"nullable": true,
|
|
66
|
+
"default": null,
|
|
67
|
+
"orm": {
|
|
68
|
+
"kind": "field",
|
|
69
|
+
"column": "date_last_login",
|
|
70
|
+
"type": "datetime",
|
|
71
|
+
"nullable": false,
|
|
72
|
+
"unique": false,
|
|
73
|
+
"id": false,
|
|
74
|
+
"generated": false
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "email",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"nullable": true,
|
|
81
|
+
"default": null,
|
|
82
|
+
"orm": {
|
|
83
|
+
"kind": "field",
|
|
84
|
+
"column": "email",
|
|
85
|
+
"type": "string",
|
|
86
|
+
"nullable": false,
|
|
87
|
+
"unique": false,
|
|
88
|
+
"id": false,
|
|
89
|
+
"generated": false,
|
|
90
|
+
"length": 255
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"name": "password",
|
|
95
|
+
"type": "string",
|
|
96
|
+
"nullable": true,
|
|
97
|
+
"default": null,
|
|
98
|
+
"orm": {
|
|
99
|
+
"kind": "field",
|
|
100
|
+
"column": "password",
|
|
101
|
+
"type": "string",
|
|
102
|
+
"nullable": false,
|
|
103
|
+
"unique": false,
|
|
104
|
+
"id": false,
|
|
105
|
+
"generated": false
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"name": "firstName",
|
|
110
|
+
"type": "string",
|
|
111
|
+
"nullable": true,
|
|
112
|
+
"default": null,
|
|
113
|
+
"orm": {
|
|
114
|
+
"kind": "field",
|
|
115
|
+
"column": "first_name",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"nullable": true,
|
|
118
|
+
"unique": false,
|
|
119
|
+
"id": false,
|
|
120
|
+
"generated": false,
|
|
121
|
+
"length": 100
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"name": "lastName",
|
|
126
|
+
"type": "string",
|
|
127
|
+
"nullable": true,
|
|
128
|
+
"default": null,
|
|
129
|
+
"orm": {
|
|
130
|
+
"kind": "field",
|
|
131
|
+
"column": "last_name",
|
|
132
|
+
"type": "string",
|
|
133
|
+
"nullable": true,
|
|
134
|
+
"unique": false,
|
|
135
|
+
"id": false,
|
|
136
|
+
"generated": false,
|
|
137
|
+
"length": 100
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "roles",
|
|
142
|
+
"type": "array",
|
|
143
|
+
"default": {},
|
|
144
|
+
"orm": {
|
|
145
|
+
"kind": "field",
|
|
146
|
+
"column": "roles",
|
|
147
|
+
"type": "json",
|
|
148
|
+
"nullable": false,
|
|
149
|
+
"unique": false,
|
|
150
|
+
"id": false,
|
|
151
|
+
"generated": false
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
"orm": {
|
|
156
|
+
"class": "App\\Entity\\User",
|
|
157
|
+
"table": "user",
|
|
158
|
+
"identifier": [
|
|
159
|
+
"id"
|
|
160
|
+
],
|
|
161
|
+
"indexes": {},
|
|
162
|
+
"unique_constraints": {
|
|
163
|
+
"UNIQ_IDENTIFIER_EMAIL": {
|
|
164
|
+
"fields": [
|
|
165
|
+
"email"
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"fields": {
|
|
170
|
+
"username": {
|
|
171
|
+
"kind": "field",
|
|
172
|
+
"column": "username",
|
|
173
|
+
"type": "string",
|
|
174
|
+
"nullable": false,
|
|
175
|
+
"unique": true,
|
|
176
|
+
"id": false,
|
|
177
|
+
"generated": false,
|
|
178
|
+
"length": 180
|
|
179
|
+
},
|
|
180
|
+
"id": {
|
|
181
|
+
"kind": "field",
|
|
182
|
+
"column": "id",
|
|
183
|
+
"type": "integer",
|
|
184
|
+
"nullable": false,
|
|
185
|
+
"unique": false,
|
|
186
|
+
"id": true,
|
|
187
|
+
"generated": false
|
|
188
|
+
},
|
|
189
|
+
"secureId": {
|
|
190
|
+
"kind": "field",
|
|
191
|
+
"column": "secure_id",
|
|
192
|
+
"type": "string",
|
|
193
|
+
"nullable": false,
|
|
194
|
+
"unique": false,
|
|
195
|
+
"id": false,
|
|
196
|
+
"generated": false,
|
|
197
|
+
"length": 255
|
|
198
|
+
},
|
|
199
|
+
"dateCreated": {
|
|
200
|
+
"kind": "field",
|
|
201
|
+
"column": "date_created",
|
|
202
|
+
"type": "datetime",
|
|
203
|
+
"nullable": false,
|
|
204
|
+
"unique": false,
|
|
205
|
+
"id": false,
|
|
206
|
+
"generated": false
|
|
207
|
+
},
|
|
208
|
+
"dateLastLogin": {
|
|
209
|
+
"kind": "field",
|
|
210
|
+
"column": "date_last_login",
|
|
211
|
+
"type": "datetime",
|
|
212
|
+
"nullable": false,
|
|
213
|
+
"unique": false,
|
|
214
|
+
"id": false,
|
|
215
|
+
"generated": false
|
|
216
|
+
},
|
|
217
|
+
"email": {
|
|
218
|
+
"kind": "field",
|
|
219
|
+
"column": "email",
|
|
220
|
+
"type": "string",
|
|
221
|
+
"nullable": false,
|
|
222
|
+
"unique": false,
|
|
223
|
+
"id": false,
|
|
224
|
+
"generated": false,
|
|
225
|
+
"length": 255
|
|
226
|
+
},
|
|
227
|
+
"password": {
|
|
228
|
+
"kind": "field",
|
|
229
|
+
"column": "password",
|
|
230
|
+
"type": "string",
|
|
231
|
+
"nullable": false,
|
|
232
|
+
"unique": false,
|
|
233
|
+
"id": false,
|
|
234
|
+
"generated": false
|
|
235
|
+
},
|
|
236
|
+
"firstName": {
|
|
237
|
+
"kind": "field",
|
|
238
|
+
"column": "first_name",
|
|
239
|
+
"type": "string",
|
|
240
|
+
"nullable": true,
|
|
241
|
+
"unique": false,
|
|
242
|
+
"id": false,
|
|
243
|
+
"generated": false,
|
|
244
|
+
"length": 100
|
|
245
|
+
},
|
|
246
|
+
"lastName": {
|
|
247
|
+
"kind": "field",
|
|
248
|
+
"column": "last_name",
|
|
249
|
+
"type": "string",
|
|
250
|
+
"nullable": true,
|
|
251
|
+
"unique": false,
|
|
252
|
+
"id": false,
|
|
253
|
+
"generated": false,
|
|
254
|
+
"length": 100
|
|
255
|
+
},
|
|
256
|
+
"roles": {
|
|
257
|
+
"kind": "field",
|
|
258
|
+
"column": "roles",
|
|
259
|
+
"type": "json",
|
|
260
|
+
"nullable": false,
|
|
261
|
+
"unique": false,
|
|
262
|
+
"id": false,
|
|
263
|
+
"generated": false
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
"associations": {}
|
|
267
|
+
}
|
|
268
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Syrtis Client
|
|
3
|
+
* Main entry point for the Syrtis JavaScript/TypeScript client
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
export class SyrtisClient {
|
|
7
|
+
private baseUrl: string;
|
|
8
|
+
|
|
9
|
+
constructor(baseUrl: string) {
|
|
10
|
+
this.baseUrl = baseUrl;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Get the base URL of the Syrtis instance
|
|
15
|
+
*/
|
|
16
|
+
getBaseUrl(): string {
|
|
17
|
+
return this.baseUrl;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default SyrtisClient;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { ApiClientOptions } from '@wexample/js-api/Common/AbstractApiClient';
|
|
2
|
-
import AbstractApiEntitiesClient from '@wexample/js-api/Common/AbstractApiEntitiesClient';
|
|
3
|
-
import type { RepositoryClass } from '@wexample/js-api/Common/ApiEntityManager';
|
|
4
|
-
export default class SyrtisClient extends AbstractApiEntitiesClient {
|
|
5
|
-
static readonly DEFAULT_BASE_URL = "https://api.syrtis.ai/api/";
|
|
6
|
-
constructor(options?: ApiClientOptions);
|
|
7
|
-
protected getRepositoryClasses(): RepositoryClass[];
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=SyrtisClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SyrtisClient.d.ts","sourceRoot":"","sources":["../../src/Common/SyrtisClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAClF,OAAO,yBAAyB,MAAM,mDAAmD,CAAC;AAC1F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAKhF,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,yBAAyB;IACjE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,gCAAgC;gBAEpD,OAAO,GAAE,gBAAqB;IAO1C,SAAS,CAAC,oBAAoB,IAAI,eAAe,EAAE;CAGpD"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import AbstractApiEntitiesClient from '@wexample/js-api/Common/AbstractApiEntitiesClient';
|
|
2
|
-
import ScenarioRepository from '../Repository/ScenarioRepository.js';
|
|
3
|
-
import SessionRepository from '../Repository/SessionRepository.js';
|
|
4
|
-
import UserRepository from '../Repository/UserRepository.js';
|
|
5
|
-
class SyrtisClient extends AbstractApiEntitiesClient {
|
|
6
|
-
constructor(options = {}) {
|
|
7
|
-
super({
|
|
8
|
-
...options,
|
|
9
|
-
baseUrl: options.baseUrl ?? SyrtisClient.DEFAULT_BASE_URL,
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
getRepositoryClasses() {
|
|
13
|
-
return [ScenarioRepository, SessionRepository, UserRepository];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
SyrtisClient.DEFAULT_BASE_URL = 'https://api.syrtis.ai/api/';
|
|
17
|
-
export default SyrtisClient;
|
|
18
|
-
//# sourceMappingURL=SyrtisClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SyrtisClient.js","sourceRoot":"","sources":["../../src/Common/SyrtisClient.ts"],"names":[],"mappings":"AACA,OAAO,yBAAyB,MAAM,mDAAmD,CAAC;AAE1F,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAE7D,MAAqB,YAAa,SAAQ,yBAAyB;IAGjE,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,OAAO,CAAC,OAAO,IAAI,YAAY,CAAC,gBAAgB;SAC1D,CAAC,CAAC;IACL,CAAC;IAES,oBAAoB;QAC5B,OAAO,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,CAAC,CAAC;IACjE,CAAC;;AAXe,6BAAgB,GAAG,4BAA4B,CAAC;eAD7C,YAAY"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import AbstractApiEntity, { type ApiEntityData } from '@wexample/js-api/Common/AbstractApiEntity';
|
|
2
|
-
export default class Scenario extends AbstractApiEntity {
|
|
3
|
-
static readonly entityName = "scenario";
|
|
4
|
-
title?: string;
|
|
5
|
-
constructor(data?: ApiEntityData);
|
|
6
|
-
}
|
|
7
|
-
//# sourceMappingURL=Scenario.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Scenario.d.ts","sourceRoot":"","sources":["../../src/Entity/Scenario.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,EAAE,EAAE,KAAK,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAElG,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,iBAAiB;IACrD,MAAM,CAAC,QAAQ,CAAC,UAAU,cAAc;IAExC,KAAK,CAAC,EAAE,MAAM,CAAC;gBAEH,IAAI,GAAE,aAAkB;CAIrC"}
|