@syrtis-ai/syrtis-javascript-client 7.0.2 → 8.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.
- package/README.md +6 -15
- package/package.json +3 -2
- package/src/Common/SessionSubscribeInfoDriver.ts +2 -2
- package/src/Common/SyrtisClient.ts +6 -6
- package/src/Common/generatedEntitySchemas.ts +32 -0
- package/src/Common/generatedRepositories.ts +32 -0
- package/src/Entity/Card.ts +10 -0
- package/src/Entity/CardMessage.ts +10 -0
- package/src/Entity/CardRelation.ts +10 -0
- package/src/Entity/Chunk.ts +10 -0
- package/src/Entity/Document.ts +10 -0
- package/src/Entity/Environment.ts +10 -0
- package/src/Entity/Job.ts +10 -0
- package/src/Entity/Message.ts +1 -1
- package/src/Entity/MessageStamp.ts +1 -1
- package/src/Entity/Node.ts +10 -0
- package/src/Entity/Request.ts +1 -1
- package/src/Entity/Scenario.ts +10 -0
- package/src/Entity/Session.ts +1 -1
- package/src/Entity/Slot.ts +10 -0
- package/src/Entity/SlotConfig.ts +10 -0
- package/src/Entity/SlotMessage.ts +10 -0
- package/src/Entity/SlotMessageStamp.ts +10 -0
- package/src/Entity/SlotRelation.ts +10 -0
- package/src/Entity/Template.ts +10 -0
- package/src/Entity/Timezone.ts +10 -0
- package/src/Entity/User.ts +1 -1
- package/src/Repository/CardMessageRepository.ts +8 -0
- package/src/Repository/CardRelationRepository.ts +8 -0
- package/src/Repository/CardRepository.ts +8 -0
- package/src/Repository/ChunkRepository.ts +8 -0
- package/src/Repository/DocumentRepository.ts +8 -0
- package/src/Repository/EnvironmentRepository.ts +8 -0
- package/src/Repository/JobRepository.ts +8 -0
- package/src/Repository/MessageRepository.ts +1 -1
- package/src/Repository/MessageStampRepository.ts +1 -1
- package/src/Repository/NodeRepository.ts +8 -0
- package/src/Repository/RequestRepository.ts +1 -1
- package/src/Repository/ScenarioRepository.ts +8 -0
- package/src/Repository/SessionRepository.ts +4 -4
- package/src/Repository/SlotConfigRepository.ts +8 -0
- package/src/Repository/SlotMessageRepository.ts +8 -0
- package/src/Repository/SlotMessageStampRepository.ts +8 -0
- package/src/Repository/SlotRelationRepository.ts +8 -0
- package/src/Repository/SlotRepository.ts +8 -0
- package/src/Repository/TemplateRepository.ts +8 -0
- package/src/Repository/TimezoneRepository.ts +8 -0
- package/src/Repository/UserRepository.ts +1 -1
- package/src/Vue/Mixin/Entity/card.vue +10 -0
- package/src/Vue/Mixin/Entity/card_message.vue +10 -0
- package/src/Vue/Mixin/Entity/card_relation.vue +10 -0
- package/src/Vue/Mixin/Entity/chunk.vue +10 -0
- package/src/Vue/Mixin/Entity/document.vue +10 -0
- package/src/Vue/Mixin/Entity/environment.vue +10 -0
- package/src/Vue/Mixin/Entity/job.vue +10 -0
- package/src/Vue/Mixin/Entity/message.vue +2 -2
- package/src/Vue/Mixin/Entity/message_stamp.vue +2 -2
- package/src/Vue/Mixin/Entity/node.vue +10 -0
- package/src/Vue/Mixin/Entity/request.vue +2 -2
- package/src/Vue/Mixin/Entity/scenario.vue +10 -0
- package/src/Vue/Mixin/Entity/session.vue +2 -2
- package/src/Vue/Mixin/Entity/slot.vue +10 -0
- package/src/Vue/Mixin/Entity/slot_config.vue +10 -0
- package/src/Vue/Mixin/Entity/slot_message.vue +10 -0
- package/src/Vue/Mixin/Entity/slot_message_stamp.vue +10 -0
- package/src/Vue/Mixin/Entity/slot_relation.vue +10 -0
- package/src/Vue/Mixin/Entity/template.vue +10 -0
- package/src/Vue/Mixin/Entity/timezone.vue +10 -0
- package/src/Vue/Mixin/Entity/user.vue +2 -2
- package/src/Vue/Mixin/EntityManipulator/CardEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/CardMessageEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/CardRelationEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/ChunkEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/DocumentEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/EnvironmentEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/JobEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/NodeEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/ScenarioEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/SlotConfigEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/SlotEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/SlotMessageEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/SlotMessageStampEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/SlotRelationEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/TemplateEntityManipulatorVueMixin.ts +9 -0
- package/src/Vue/Mixin/EntityManipulator/TimezoneEntityManipulatorVueMixin.ts +9 -0
- package/src/data/entity/card.json +468 -0
- package/src/data/entity/card_message.json +139 -0
- package/src/data/entity/card_relation.json +163 -0
- package/src/data/entity/chunk.json +219 -0
- package/src/data/entity/document.json +321 -0
- package/src/data/entity/environment.json +90 -0
- package/src/data/entity/job.json +317 -0
- package/src/data/entity/message.json +45 -45
- package/src/data/entity/message_stamp.json +23 -23
- package/src/data/entity/node.json +90 -0
- package/src/data/entity/request.json +50 -50
- package/src/data/entity/scenario.json +461 -0
- package/src/data/entity/session.json +47 -47
- package/src/data/entity/slot.json +407 -0
- package/src/data/entity/slot_config.json +164 -0
- package/src/data/entity/slot_message.json +536 -0
- package/src/data/entity/slot_message_stamp.json +120 -0
- package/src/data/entity/slot_relation.json +191 -0
- package/src/data/entity/template.json +188 -0
- package/src/data/entity/timezone.json +66 -0
- package/src/data/entity/user.json +308 -94
package/README.md
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
# @syrtis-ai/syrtis-javascript-client
|
|
2
2
|
|
|
3
|
-
Version:
|
|
3
|
+
Version: 8.0.0
|
|
4
4
|
|
|
5
5
|
## Table of Contents
|
|
6
6
|
|
|
7
7
|
- [Introduction](#introduction)
|
|
8
8
|
- [Usage](#usage)
|
|
9
|
-
- [Suite Signature](#suite-signature)
|
|
10
9
|
|
|
11
10
|
TypeScript client for the Syrtis public API: sessions, conversational messages (sync or async via live updates), history and entity hydration. It targets the versioned API (`2026-1` by default) and carries no server secret — authentication uses a bearer token, and realtime subscriptions rely on scoped, short-lived JWTs fetched from the API.
|
|
12
11
|
|
|
@@ -149,7 +148,7 @@ const reply = await sessionRepository.sendMessageAndWaitForReply({
|
|
|
149
148
|
|
|
150
149
|
By default the promise resolves on the first `Message.isReply` message; pass `isReply: (m) => ...` to customize.
|
|
151
150
|
|
|
152
|
-
To bypass the automatic JWT flow, pass `mercureHubUrl`/`mercureJwt` to the client constructor (static hub configuration), or inject a `liveUpdatesDriver` (any `LiveUpdatesDriverInterface` from `@wexample/js-api/Common/LiveUpdates/LiveUpdatesDriver`) for a custom transport. Both take precedence over the subscribe-info flow. `fetchSubscribeInfo(sessionSecureId)` is also available directly on the repository.
|
|
151
|
+
To bypass the automatic JWT flow, pass `mercureHubUrl`/`mercureJwt` to the client constructor (static hub configuration), or inject a `liveUpdatesDriver` (any `LiveUpdatesDriverInterface` from `@wexample/js-api-entity/Common/LiveUpdates/LiveUpdatesDriver`) for a custom transport. Both take precedence over the subscribe-info flow. `fetchSubscribeInfo(sessionSecureId)` is also available directly on the repository.
|
|
153
152
|
|
|
154
153
|
### Connection status (widgets)
|
|
155
154
|
|
|
@@ -194,10 +193,10 @@ const visible = messages.filter(Message.isConversation);
|
|
|
194
193
|
|
|
195
194
|
## Error handling
|
|
196
195
|
|
|
197
|
-
All API responses use the standard envelope `{ type, code, message?, data }`. Unwrapping is centralized in `@wexample/js-api`: when the server answers `type: 'error'`, repository calls throw an `ApiEnvelopeError` carrying the server error key.
|
|
196
|
+
All API responses use the standard envelope `{ type, code, message?, data }`. Unwrapping is centralized in `@wexample/js-api-entity`: when the server answers `type: 'error'`, repository calls throw an `ApiEnvelopeError` carrying the server error key.
|
|
198
197
|
|
|
199
198
|
```typescript
|
|
200
|
-
import ApiEnvelopeError from '@wexample/js-api/Common/Errors/ApiEnvelopeError';
|
|
199
|
+
import ApiEnvelopeError from '@wexample/js-api-entity/Common/Errors/ApiEnvelopeError';
|
|
201
200
|
|
|
202
201
|
try {
|
|
203
202
|
await sessionRepository.sendMessage({ sessionSecureId, content, sync: true });
|
|
@@ -211,14 +210,14 @@ try {
|
|
|
211
210
|
}
|
|
212
211
|
```
|
|
213
212
|
|
|
214
|
-
Hydration is strict by design: a response key absent from the entity schema, a read-only write, a malformed API item or an unregistered relationship type throws an `ApiSchemaError` (`@wexample/js-api/Common/Errors/ApiSchemaError`, codes `ERR_SCHEMA_*`, carrying `entityName` and `field`). A contract drift is caught at the boundary instead of silently losing data. Live updates go through the same gate: an event whose hydration fails is reported through `onInvalidEvent` (never silently) and dropped, keeping the subscription alive.
|
|
213
|
+
Hydration is strict by design: a response key absent from the entity schema, a read-only write, a malformed API item or an unregistered relationship type throws an `ApiSchemaError` (`@wexample/js-api-entity/Common/Errors/ApiSchemaError`, codes `ERR_SCHEMA_*`, carrying `entityName` and `field`). A contract drift is caught at the boundary instead of silently losing data. Live updates go through the same gate: an event whose hydration fails is reported through `onInvalidEvent` (never silently) and dropped, keeping the subscription alive.
|
|
215
214
|
|
|
216
215
|
An API item's `type` is the entity name, camelCase like the whole 2026 contract (`message`, `messageStamp`, `userConfig`) — the same identifier keys the repository registry, so there is no translation anywhere. Routes derive from it in kebab-case (`messageStamp` → `message-stamp/...`).
|
|
217
216
|
|
|
218
217
|
To unwrap a raw call yourself:
|
|
219
218
|
|
|
220
219
|
```typescript
|
|
221
|
-
import { unwrapApiEnvelope } from '@wexample/js-api/Common/ApiEnvelope';
|
|
220
|
+
import { unwrapApiEnvelope } from '@wexample/js-api-entity/Common/ApiEnvelope';
|
|
222
221
|
|
|
223
222
|
const data = unwrapApiEnvelope<{ messages: unknown[] }>(await response.json());
|
|
224
223
|
```
|
|
@@ -229,11 +228,3 @@ Entity fields are schema-driven and resolved through a Proxy. Two rules when add
|
|
|
229
228
|
|
|
230
229
|
- Prefer explicit methods (`getParsedContent()`) over computed getters.
|
|
231
230
|
- Inside a method, read schema fields with `this.getDataValue('field')` — the Proxy binds methods to the raw target, so `this.field` is not resolved there.
|
|
232
|
-
|
|
233
|
-
# About us
|
|
234
|
-
|
|
235
|
-
[Syrtis AI](https://syrtis.ai) helps organizations turn artificial intelligence from an idea into reliable, measurable systems. We are a team of engineers and practitioners focused on implementing AI services inside real businesses — from strategy and architecture to deployment, integration, and long-term operations. Our goal is simple: deliver AI that works in production, fits your constraints, and earns its keep.
|
|
236
|
-
|
|
237
|
-
We build practical solutions that connect to existing tools, data, and processes, with an emphasis on security, performance, and governance. Whether it’s automating workflows, enhancing decision-making, or creating new product capabilities, Syrtis AI designs implementations that are maintainable, scalable, and aligned with business outcomes — not demos.
|
|
238
|
-
|
|
239
|
-
Syrtis AI promotes a culture of rigor and responsibility. Every delivery reflects a commitment to clear engineering, transparent communication, and trustworthy AI practices, so teams can adopt, operate, and evolve their AI services with confidence.
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "8.0.0",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"name": "@syrtis-ai/syrtis-javascript-client",
|
|
5
5
|
"scripts": {
|
|
@@ -13,7 +13,8 @@
|
|
|
13
13
|
"access": "public"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@wexample/js-api": "^
|
|
16
|
+
"@wexample/js-api": "^8.0.0",
|
|
17
|
+
"@wexample/js-api-entity": "^1.0.0"
|
|
17
18
|
},
|
|
18
19
|
"files": [
|
|
19
20
|
"src"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type {
|
|
2
2
|
LiveUpdatesDriverConnectOptions,
|
|
3
3
|
LiveUpdatesDriverInterface,
|
|
4
|
-
} from '@wexample/js-api/Common/LiveUpdates/LiveUpdatesDriver';
|
|
5
|
-
import MercureLiveUpdatesDriver from '@wexample/js-api/Common/LiveUpdates/MercureLiveUpdatesDriver';
|
|
4
|
+
} from '@wexample/js-api-entity/Common/LiveUpdates/LiveUpdatesDriver';
|
|
5
|
+
import MercureLiveUpdatesDriver from '@wexample/js-api-entity/Common/LiveUpdates/MercureLiveUpdatesDriver';
|
|
6
6
|
import type SessionRepository from '../Repository/SessionRepository.js';
|
|
7
7
|
import type { SessionSubscribeInfo } from '../Repository/SessionRepository.js';
|
|
8
8
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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
|
-
import LiveUpdatesError from '@wexample/js-api/Common/Errors/LiveUpdatesError';
|
|
5
|
-
import LiveUpdatesConnectionRegistry from '@wexample/js-api/Common/LiveUpdates/LiveUpdatesConnectionRegistry';
|
|
6
|
-
import type { LiveUpdatesDriverInterface } from '@wexample/js-api/Common/LiveUpdates/LiveUpdatesDriver';
|
|
7
|
-
import MercureLiveUpdatesDriver from '@wexample/js-api/Common/LiveUpdates/MercureLiveUpdatesDriver';
|
|
2
|
+
import AbstractApiEntitiesClient from '@wexample/js-api-entity/Common/AbstractApiEntitiesClient';
|
|
3
|
+
import type { RepositoryClass } from '@wexample/js-api-entity/Common/ApiEntityManager';
|
|
4
|
+
import LiveUpdatesError from '@wexample/js-api-entity/Common/Errors/LiveUpdatesError';
|
|
5
|
+
import LiveUpdatesConnectionRegistry from '@wexample/js-api-entity/Common/LiveUpdates/LiveUpdatesConnectionRegistry';
|
|
6
|
+
import type { LiveUpdatesDriverInterface } from '@wexample/js-api-entity/Common/LiveUpdates/LiveUpdatesDriver';
|
|
7
|
+
import MercureLiveUpdatesDriver from '@wexample/js-api-entity/Common/LiveUpdates/MercureLiveUpdatesDriver';
|
|
8
8
|
import getEntitySchemas from './entitySchemas.js';
|
|
9
9
|
import generatedRepositories from './generatedRepositories.js';
|
|
10
10
|
|
|
@@ -1,17 +1,49 @@
|
|
|
1
|
+
import card from '../data/entity/card.json';
|
|
2
|
+
import cardMessage from '../data/entity/card_message.json';
|
|
3
|
+
import cardRelation from '../data/entity/card_relation.json';
|
|
4
|
+
import chunk from '../data/entity/chunk.json';
|
|
5
|
+
import document from '../data/entity/document.json';
|
|
6
|
+
import environment from '../data/entity/environment.json';
|
|
7
|
+
import job from '../data/entity/job.json';
|
|
1
8
|
import message from '../data/entity/message.json';
|
|
2
9
|
import messageStamp from '../data/entity/message_stamp.json';
|
|
10
|
+
import node from '../data/entity/node.json';
|
|
3
11
|
import request from '../data/entity/request.json';
|
|
12
|
+
import scenario from '../data/entity/scenario.json';
|
|
4
13
|
import session from '../data/entity/session.json';
|
|
14
|
+
import slot from '../data/entity/slot.json';
|
|
15
|
+
import slotConfig from '../data/entity/slot_config.json';
|
|
16
|
+
import slotMessage from '../data/entity/slot_message.json';
|
|
17
|
+
import slotMessageStamp from '../data/entity/slot_message_stamp.json';
|
|
18
|
+
import slotRelation from '../data/entity/slot_relation.json';
|
|
19
|
+
import template from '../data/entity/template.json';
|
|
20
|
+
import timezone from '../data/entity/timezone.json';
|
|
5
21
|
import user from '../data/entity/user.json';
|
|
6
22
|
|
|
7
23
|
type EntitySchema = { name: string };
|
|
8
24
|
|
|
9
25
|
export default function getGeneratedEntitySchemas(): Record<string, EntitySchema> {
|
|
10
26
|
return {
|
|
27
|
+
[card.name]: card,
|
|
28
|
+
[cardMessage.name]: cardMessage,
|
|
29
|
+
[cardRelation.name]: cardRelation,
|
|
30
|
+
[chunk.name]: chunk,
|
|
31
|
+
[document.name]: document,
|
|
32
|
+
[environment.name]: environment,
|
|
33
|
+
[job.name]: job,
|
|
11
34
|
[message.name]: message,
|
|
12
35
|
[messageStamp.name]: messageStamp,
|
|
36
|
+
[node.name]: node,
|
|
13
37
|
[request.name]: request,
|
|
38
|
+
[scenario.name]: scenario,
|
|
14
39
|
[session.name]: session,
|
|
40
|
+
[slot.name]: slot,
|
|
41
|
+
[slotConfig.name]: slotConfig,
|
|
42
|
+
[slotMessage.name]: slotMessage,
|
|
43
|
+
[slotMessageStamp.name]: slotMessageStamp,
|
|
44
|
+
[slotRelation.name]: slotRelation,
|
|
45
|
+
[template.name]: template,
|
|
46
|
+
[timezone.name]: timezone,
|
|
15
47
|
[user.name]: user,
|
|
16
48
|
};
|
|
17
49
|
}
|
|
@@ -1,14 +1,46 @@
|
|
|
1
|
+
import CardMessageRepository from '../Repository/CardMessageRepository.js';
|
|
2
|
+
import CardRelationRepository from '../Repository/CardRelationRepository.js';
|
|
3
|
+
import CardRepository from '../Repository/CardRepository.js';
|
|
4
|
+
import ChunkRepository from '../Repository/ChunkRepository.js';
|
|
5
|
+
import DocumentRepository from '../Repository/DocumentRepository.js';
|
|
6
|
+
import EnvironmentRepository from '../Repository/EnvironmentRepository.js';
|
|
7
|
+
import JobRepository from '../Repository/JobRepository.js';
|
|
1
8
|
import MessageRepository from '../Repository/MessageRepository.js';
|
|
2
9
|
import MessageStampRepository from '../Repository/MessageStampRepository.js';
|
|
10
|
+
import NodeRepository from '../Repository/NodeRepository.js';
|
|
3
11
|
import RequestRepository from '../Repository/RequestRepository.js';
|
|
12
|
+
import ScenarioRepository from '../Repository/ScenarioRepository.js';
|
|
4
13
|
import SessionRepository from '../Repository/SessionRepository.js';
|
|
14
|
+
import SlotConfigRepository from '../Repository/SlotConfigRepository.js';
|
|
15
|
+
import SlotMessageRepository from '../Repository/SlotMessageRepository.js';
|
|
16
|
+
import SlotMessageStampRepository from '../Repository/SlotMessageStampRepository.js';
|
|
17
|
+
import SlotRelationRepository from '../Repository/SlotRelationRepository.js';
|
|
18
|
+
import SlotRepository from '../Repository/SlotRepository.js';
|
|
19
|
+
import TemplateRepository from '../Repository/TemplateRepository.js';
|
|
20
|
+
import TimezoneRepository from '../Repository/TimezoneRepository.js';
|
|
5
21
|
import UserRepository from '../Repository/UserRepository.js';
|
|
6
22
|
|
|
7
23
|
const generatedRepositories = [
|
|
24
|
+
CardMessageRepository,
|
|
25
|
+
CardRelationRepository,
|
|
26
|
+
CardRepository,
|
|
27
|
+
ChunkRepository,
|
|
28
|
+
DocumentRepository,
|
|
29
|
+
EnvironmentRepository,
|
|
30
|
+
JobRepository,
|
|
8
31
|
MessageRepository,
|
|
9
32
|
MessageStampRepository,
|
|
33
|
+
NodeRepository,
|
|
10
34
|
RequestRepository,
|
|
35
|
+
ScenarioRepository,
|
|
11
36
|
SessionRepository,
|
|
37
|
+
SlotConfigRepository,
|
|
38
|
+
SlotMessageRepository,
|
|
39
|
+
SlotMessageStampRepository,
|
|
40
|
+
SlotRelationRepository,
|
|
41
|
+
SlotRepository,
|
|
42
|
+
TemplateRepository,
|
|
43
|
+
TimezoneRepository,
|
|
12
44
|
UserRepository,
|
|
13
45
|
];
|
|
14
46
|
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/card.json';
|
|
3
|
+
|
|
4
|
+
export default class Card extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'card';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/chunk.json';
|
|
3
|
+
|
|
4
|
+
export default class Chunk extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'chunk';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/document.json';
|
|
3
|
+
|
|
4
|
+
export default class Document extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'document';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/environment.json';
|
|
3
|
+
|
|
4
|
+
export default class Environment extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'environment';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/job.json';
|
|
3
|
+
|
|
4
|
+
export default class Job extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'job';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/src/Entity/Message.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AbstractApiEntity from '@wexample/js-api/Common/AbstractApiEntity';
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
2
|
import schema from '../data/entity/message_stamp.json';
|
|
3
3
|
|
|
4
4
|
export default class MessageStamp extends AbstractApiEntity {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/node.json';
|
|
3
|
+
|
|
4
|
+
export default class Node extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'node';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/src/Entity/Request.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/scenario.json';
|
|
3
|
+
|
|
4
|
+
export default class Scenario extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'scenario';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/src/Entity/Session.ts
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/slot.json';
|
|
3
|
+
|
|
4
|
+
export default class Slot extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'slot';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/slot_config.json';
|
|
3
|
+
|
|
4
|
+
export default class SlotConfig extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'slotConfig';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/slot_message.json';
|
|
3
|
+
|
|
4
|
+
export default class SlotMessage extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'slotMessage';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/slot_message_stamp.json';
|
|
3
|
+
|
|
4
|
+
export default class SlotMessageStamp extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'slotMessageStamp';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/slot_relation.json';
|
|
3
|
+
|
|
4
|
+
export default class SlotRelation extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'slotRelation';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/template.json';
|
|
3
|
+
|
|
4
|
+
export default class Template extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'template';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import AbstractApiEntity from '@wexample/js-api-entity/Common/AbstractApiEntity';
|
|
2
|
+
import schema from '../data/entity/timezone.json';
|
|
3
|
+
|
|
4
|
+
export default class Timezone extends AbstractApiEntity {
|
|
5
|
+
static readonly entityName = 'timezone';
|
|
6
|
+
|
|
7
|
+
static retrieveEntitySchema() {
|
|
8
|
+
return schema;
|
|
9
|
+
}
|
|
10
|
+
}
|
package/src/Entity/User.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import Document from '../Entity/Document.js';
|
|
3
|
+
|
|
4
|
+
export default class DocumentRepository extends AbstractApiRepository<Document> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return Document;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import Environment from '../Entity/Environment.js';
|
|
3
|
+
|
|
4
|
+
export default class EnvironmentRepository extends AbstractApiRepository<Environment> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return Environment;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AbstractApiRepository from '@wexample/js-api/Common/AbstractApiRepository';
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
2
|
import Message from '../Entity/Message.js';
|
|
3
3
|
|
|
4
4
|
export default class MessageRepository extends AbstractApiRepository<Message> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AbstractApiRepository from '@wexample/js-api/Common/AbstractApiRepository';
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
2
|
import MessageStamp from '../Entity/MessageStamp.js';
|
|
3
3
|
|
|
4
4
|
export default class MessageStampRepository extends AbstractApiRepository<MessageStamp> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AbstractApiRepository from '@wexample/js-api/Common/AbstractApiRepository';
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
2
|
import Request from '../Entity/Request.js';
|
|
3
3
|
|
|
4
4
|
export default class RequestRepository extends AbstractApiRepository<Request> {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import Scenario from '../Entity/Scenario.js';
|
|
3
|
+
|
|
4
|
+
export default class ScenarioRepository extends AbstractApiRepository<Scenario> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return Scenario;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import AbstractApiRepository from '@wexample/js-api/Common/AbstractApiRepository';
|
|
2
|
-
import ApiEnvelopeError from '@wexample/js-api/Common/Errors/ApiEnvelopeError';
|
|
3
|
-
import LiveUpdatesError from '@wexample/js-api/Common/Errors/LiveUpdatesError';
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import ApiEnvelopeError from '@wexample/js-api-entity/Common/Errors/ApiEnvelopeError';
|
|
3
|
+
import LiveUpdatesError from '@wexample/js-api-entity/Common/Errors/LiveUpdatesError';
|
|
4
4
|
import LiveUpdatesConnection, {
|
|
5
5
|
type LiveUpdatesConnectionStatus,
|
|
6
|
-
} from '@wexample/js-api/Common/LiveUpdates/LiveUpdatesConnection';
|
|
6
|
+
} from '@wexample/js-api-entity/Common/LiveUpdates/LiveUpdatesConnection';
|
|
7
7
|
import SessionSubscribeInfoDriver from '../Common/SessionSubscribeInfoDriver.js';
|
|
8
8
|
import type SyrtisClient from '../Common/SyrtisClient.js';
|
|
9
9
|
import Message from '../Entity/Message.js';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import SlotConfig from '../Entity/SlotConfig.js';
|
|
3
|
+
|
|
4
|
+
export default class SlotConfigRepository extends AbstractApiRepository<SlotConfig> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return SlotConfig;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import SlotMessage from '../Entity/SlotMessage.js';
|
|
3
|
+
|
|
4
|
+
export default class SlotMessageRepository extends AbstractApiRepository<SlotMessage> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return SlotMessage;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import SlotMessageStamp from '../Entity/SlotMessageStamp.js';
|
|
3
|
+
|
|
4
|
+
export default class SlotMessageStampRepository extends AbstractApiRepository<SlotMessageStamp> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return SlotMessageStamp;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import SlotRelation from '../Entity/SlotRelation.js';
|
|
3
|
+
|
|
4
|
+
export default class SlotRelationRepository extends AbstractApiRepository<SlotRelation> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return SlotRelation;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import Template from '../Entity/Template.js';
|
|
3
|
+
|
|
4
|
+
export default class TemplateRepository extends AbstractApiRepository<Template> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return Template;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import AbstractApiRepository from '@wexample/js-api-entity/Common/AbstractApiRepository';
|
|
2
|
+
import Timezone from '../Entity/Timezone.js';
|
|
3
|
+
|
|
4
|
+
export default class TimezoneRepository extends AbstractApiRepository<Timezone> {
|
|
5
|
+
static getEntityType() {
|
|
6
|
+
return Timezone;
|
|
7
|
+
}
|
|
8
|
+
}
|