@droz-js/sdk 0.2.1 → 0.2.2
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/package.json +1 -3
- package/src/client/http.d.ts +1 -4
- package/src/client/http.js +13 -6
- package/src/client/utils.d.ts +1 -1
- package/src/client/ws.d.ts +1 -1
- package/src/nucleus.d.ts +37 -0
- package/src/sdks/drozbot.d.ts +2 -2
- package/src/sdks/drozchat.d.ts +16 -16
- package/src/sdks/drozchat.js +15 -40
- package/src/sdks/droznexo.d.ts +6 -6
- package/src/sdks/droznexo.js +4 -7
- package/src/sdks/mercadolivre.d.ts +2 -2
- package/src/sdks/nucleus.d.ts +151 -35
- package/src/sdks/nucleus.js +162 -16
- package/src/sdks/reclameaqui.d.ts +2 -2
- package/src/sdks/zendesk.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -16,9 +16,7 @@
|
|
|
16
16
|
"prepublishOnly": "npm run build"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"cross-fetch": "^3.1.8",
|
|
20
19
|
"graphql": "^16.8.1",
|
|
21
|
-
"graphql-tag": "^2.12.6",
|
|
22
20
|
"graphql-ws": "^5.14.1",
|
|
23
21
|
"inbatches": "^0.0.10"
|
|
24
22
|
},
|
package/src/client/http.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
[Symbol.asyncIterator](): AsyncIterator<R, any, undefined>;
|
|
3
|
-
};
|
|
4
|
-
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
|
1
|
+
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
5
2
|
export declare function HttpClientBuilder<Sdk>(serviceName: string, getSdk: (requester: Requester<Sdk>) => Sdk): new () => Sdk;
|
|
6
3
|
export {};
|
package/src/client/http.js
CHANGED
|
@@ -9,14 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.HttpClientBuilder =
|
|
12
|
+
exports.HttpClientBuilder = void 0;
|
|
13
13
|
const inbatches_1 = require("inbatches");
|
|
14
14
|
const config_1 = require("./config");
|
|
15
15
|
const utils_1 = require("./utils");
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
// create an empty AsyncIterableIterator
|
|
17
|
+
function emptyAsyncIterator() {
|
|
18
|
+
return {
|
|
19
|
+
[Symbol.asyncIterator]() {
|
|
20
|
+
return this;
|
|
21
|
+
},
|
|
22
|
+
async next() {
|
|
23
|
+
return { done: true, value: undefined };
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
20
27
|
function buildRequestInfo(req) {
|
|
21
28
|
const operationNames = Array.isArray(req) ? req.map(r => r.operationName) : [req.operationName];
|
|
22
29
|
return [...new Set(operationNames)].join(',');
|
|
@@ -32,7 +39,7 @@ class HttpSdkRequesterBuilder {
|
|
|
32
39
|
requester(query, variables) {
|
|
33
40
|
// subscriptions are not executable with the http sdk
|
|
34
41
|
if (query.match(/subscription .*{/))
|
|
35
|
-
return
|
|
42
|
+
return emptyAsyncIterator();
|
|
36
43
|
// extract operation name and enqueue the request to be executed in batches
|
|
37
44
|
const operationName = /(?:query|mutation) ([^({ ]*)/.exec(query)?.[1];
|
|
38
45
|
return this.inbatches({ query, variables, operationName }).then(utils_1.mapGraphqlResponse);
|
package/src/client/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ExecutionResult } from 'graphql
|
|
1
|
+
import type { ExecutionResult } from 'graphql';
|
|
2
2
|
export declare function mapGraphqlResponse<T>(response: ExecutionResult<T> | Error): T;
|
|
3
3
|
export declare function mapAsyncIterableGraphqlResponse<T>(iterable: AsyncIterableIterator<ExecutionResult<T, any>>): AsyncGenerator<Awaited<T>, void, unknown>;
|
package/src/client/ws.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Client } from 'graphql-ws';
|
|
2
|
-
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> |
|
|
2
|
+
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
3
3
|
type Connect = {
|
|
4
4
|
connect(): Promise<Client>;
|
|
5
5
|
};
|
package/src/nucleus.d.ts
CHANGED
|
@@ -65,4 +65,41 @@ export declare const Nucleus: new () => {
|
|
|
65
65
|
id: string;
|
|
66
66
|
versionId: string;
|
|
67
67
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetStateMachineQuery>;
|
|
68
|
+
listLiveStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{
|
|
69
|
+
[key: string]: never;
|
|
70
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").ListLiveStateMachineConfigsQuery>;
|
|
71
|
+
listDraftStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{
|
|
72
|
+
[key: string]: never;
|
|
73
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").ListDraftStateMachineConfigsQuery>;
|
|
74
|
+
listStateMachineConfigVersions(variables: import("./sdks/nucleus").Exact<{
|
|
75
|
+
id: string;
|
|
76
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").ListStateMachineConfigVersionsQuery>;
|
|
77
|
+
getXStateMachineConfig(variables: import("./sdks/nucleus").Exact<{
|
|
78
|
+
id: string;
|
|
79
|
+
versionId: string;
|
|
80
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetXStateMachineConfigQuery>;
|
|
81
|
+
createStateMachineConfig(variables: import("./sdks/nucleus").Exact<{
|
|
82
|
+
input: import("./sdks/nucleus").CreateStateMachineConfigInput;
|
|
83
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateStateMachineConfigMutation>;
|
|
84
|
+
updateStateMachineConfig(variables: import("./sdks/nucleus").Exact<{
|
|
85
|
+
input: import("./sdks/nucleus").UpdateStateMachineConfigInput;
|
|
86
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateStateMachineConfigMutation>;
|
|
87
|
+
removeStateMachineConfig(variables: import("./sdks/nucleus").Exact<{
|
|
88
|
+
input: import("./sdks/nucleus").RemoveStateMachineConfigInput;
|
|
89
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveStateMachineConfigMutation>;
|
|
90
|
+
editStateMachineConfig(variables: import("./sdks/nucleus").Exact<{
|
|
91
|
+
input: import("./sdks/nucleus").EditStateMachineConfigInput;
|
|
92
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").EditStateMachineConfigMutation>;
|
|
93
|
+
publishStateMachineConfig(variables: import("./sdks/nucleus").Exact<{
|
|
94
|
+
input: import("./sdks/nucleus").PublishStateMachineConfigInput;
|
|
95
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").PublishStateMachineConfigMutation>;
|
|
96
|
+
createStateMachineConfigState(variables: import("./sdks/nucleus").Exact<{
|
|
97
|
+
input: import("./sdks/nucleus").CreateStateMachineConfigStateInput;
|
|
98
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateStateMachineConfigStateMutation>;
|
|
99
|
+
updateStateMachineConfigState(variables: import("./sdks/nucleus").Exact<{
|
|
100
|
+
input: import("./sdks/nucleus").UpdateStateMachineConfigStateInput;
|
|
101
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateStateMachineConfigStateMutation>;
|
|
102
|
+
removeStateMachineConfigState(variables: import("./sdks/nucleus").Exact<{
|
|
103
|
+
input: import("./sdks/nucleus").RemoveStateMachineConfigStateInput;
|
|
104
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveStateMachineConfigStateMutation>;
|
|
68
105
|
};
|
package/src/sdks/drozbot.d.ts
CHANGED
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export type Scalars = {
|
|
|
70
70
|
output: any;
|
|
71
71
|
};
|
|
72
72
|
Set: {
|
|
73
|
-
input: any
|
|
74
|
-
output: any;
|
|
73
|
+
input: Set<any>;
|
|
74
|
+
output: any[];
|
|
75
75
|
};
|
|
76
76
|
URL: {
|
|
77
77
|
input: string;
|
|
@@ -472,28 +472,28 @@ export type OnTicketMessageSubscription = {
|
|
|
472
472
|
};
|
|
473
473
|
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n email\n}\n ";
|
|
474
474
|
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
475
|
-
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n ";
|
|
475
|
+
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
476
476
|
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
477
477
|
export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput!) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
478
478
|
export declare const UpdateCustomerDocument = "\n mutation updateCustomer($input: UpdateCustomerInput!) {\n updateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
479
479
|
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
480
480
|
export declare const GetCustomerDocument = "\n query getCustomer($id: ID!) {\n getCustomer(id: $id) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
481
|
-
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
482
|
-
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
483
|
-
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
484
|
-
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
485
|
-
export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
481
|
+
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
482
|
+
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
483
|
+
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
484
|
+
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
485
|
+
export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
486
486
|
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
487
|
-
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
487
|
+
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
488
488
|
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
|
|
489
489
|
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
490
|
-
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
491
|
-
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
492
|
-
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
493
|
-
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
494
|
-
export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
495
|
-
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
496
|
-
export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n
|
|
490
|
+
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
491
|
+
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
492
|
+
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
493
|
+
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
494
|
+
export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
495
|
+
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
496
|
+
export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n ";
|
|
497
497
|
export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n ";
|
|
498
498
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
|
499
499
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -80,7 +80,8 @@ exports.TicketFragmentDoc = `
|
|
|
80
80
|
createdAt
|
|
81
81
|
updatedAt
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
${exports.AgentFragmentDoc}
|
|
84
|
+
${exports.CustomerFragmentDoc}`;
|
|
84
85
|
exports.TicketMessageFragmentDoc = `
|
|
85
86
|
fragment ticketMessage on TicketMessage {
|
|
86
87
|
id
|
|
@@ -133,9 +134,7 @@ exports.GetTicketDocument = `
|
|
|
133
134
|
...ticket
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
|
-
${exports.TicketFragmentDoc}
|
|
137
|
-
${exports.AgentFragmentDoc}
|
|
138
|
-
${exports.CustomerFragmentDoc}`;
|
|
137
|
+
${exports.TicketFragmentDoc}`;
|
|
139
138
|
exports.ListTicketsDocument = `
|
|
140
139
|
query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {
|
|
141
140
|
listTickets(state: $state, assigneeId: $assigneeId, next: $next) {
|
|
@@ -148,9 +147,7 @@ exports.ListTicketsDocument = `
|
|
|
148
147
|
}
|
|
149
148
|
}
|
|
150
149
|
}
|
|
151
|
-
${exports.TicketFragmentDoc}
|
|
152
|
-
${exports.AgentFragmentDoc}
|
|
153
|
-
${exports.CustomerFragmentDoc}`;
|
|
150
|
+
${exports.TicketFragmentDoc}`;
|
|
154
151
|
exports.ListTicketsInQueueDocument = `
|
|
155
152
|
query listTicketsInQueue($next: Base64) {
|
|
156
153
|
listTicketsInQueue(next: $next) {
|
|
@@ -163,9 +160,7 @@ exports.ListTicketsInQueueDocument = `
|
|
|
163
160
|
}
|
|
164
161
|
}
|
|
165
162
|
}
|
|
166
|
-
${exports.TicketFragmentDoc}
|
|
167
|
-
${exports.AgentFragmentDoc}
|
|
168
|
-
${exports.CustomerFragmentDoc}`;
|
|
163
|
+
${exports.TicketFragmentDoc}`;
|
|
169
164
|
exports.ListTicketsInProgressMineDocument = `
|
|
170
165
|
query listTicketsInProgressMine($next: Base64) {
|
|
171
166
|
listTicketsInProgressMine(next: $next) {
|
|
@@ -178,9 +173,7 @@ exports.ListTicketsInProgressMineDocument = `
|
|
|
178
173
|
}
|
|
179
174
|
}
|
|
180
175
|
}
|
|
181
|
-
${exports.TicketFragmentDoc}
|
|
182
|
-
${exports.AgentFragmentDoc}
|
|
183
|
-
${exports.CustomerFragmentDoc}`;
|
|
176
|
+
${exports.TicketFragmentDoc}`;
|
|
184
177
|
exports.ListTicketsClosedDocument = `
|
|
185
178
|
query listTicketsClosed($next: Base64) {
|
|
186
179
|
listTicketsClosed(next: $next) {
|
|
@@ -193,9 +186,7 @@ exports.ListTicketsClosedDocument = `
|
|
|
193
186
|
}
|
|
194
187
|
}
|
|
195
188
|
}
|
|
196
|
-
${exports.TicketFragmentDoc}
|
|
197
|
-
${exports.AgentFragmentDoc}
|
|
198
|
-
${exports.CustomerFragmentDoc}`;
|
|
189
|
+
${exports.TicketFragmentDoc}`;
|
|
199
190
|
exports.ListTicketMessagesDocument = `
|
|
200
191
|
query listTicketMessages($ticketId: ID!, $next: Base64) {
|
|
201
192
|
listTicketMessages(ticketId: $ticketId, next: $next) {
|
|
@@ -215,9 +206,7 @@ exports.CreateTicketDocument = `
|
|
|
215
206
|
...ticket
|
|
216
207
|
}
|
|
217
208
|
}
|
|
218
|
-
${exports.TicketFragmentDoc}
|
|
219
|
-
${exports.AgentFragmentDoc}
|
|
220
|
-
${exports.CustomerFragmentDoc}`;
|
|
209
|
+
${exports.TicketFragmentDoc}`;
|
|
221
210
|
exports.MarkTicketMessagesAsReadDocument = `
|
|
222
211
|
mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {
|
|
223
212
|
markTicketMessagesAsRead(input: $input)
|
|
@@ -236,36 +225,28 @@ exports.AssignTicketDocument = `
|
|
|
236
225
|
...ticket
|
|
237
226
|
}
|
|
238
227
|
}
|
|
239
|
-
${exports.TicketFragmentDoc}
|
|
240
|
-
${exports.AgentFragmentDoc}
|
|
241
|
-
${exports.CustomerFragmentDoc}`;
|
|
228
|
+
${exports.TicketFragmentDoc}`;
|
|
242
229
|
exports.AssignTicketMyselfDocument = `
|
|
243
230
|
mutation assignTicketMyself($input: AssignTicketMyselfInput!) {
|
|
244
231
|
assignTicketMyself(input: $input) {
|
|
245
232
|
...ticket
|
|
246
233
|
}
|
|
247
234
|
}
|
|
248
|
-
${exports.TicketFragmentDoc}
|
|
249
|
-
${exports.AgentFragmentDoc}
|
|
250
|
-
${exports.CustomerFragmentDoc}`;
|
|
235
|
+
${exports.TicketFragmentDoc}`;
|
|
251
236
|
exports.UnassignTicketDocument = `
|
|
252
237
|
mutation unassignTicket($input: UnassignTicketInput!) {
|
|
253
238
|
unassignTicket(input: $input) {
|
|
254
239
|
...ticket
|
|
255
240
|
}
|
|
256
241
|
}
|
|
257
|
-
${exports.TicketFragmentDoc}
|
|
258
|
-
${exports.AgentFragmentDoc}
|
|
259
|
-
${exports.CustomerFragmentDoc}`;
|
|
242
|
+
${exports.TicketFragmentDoc}`;
|
|
260
243
|
exports.CloseTicketDocument = `
|
|
261
244
|
mutation closeTicket($input: CloseTicketInput!) {
|
|
262
245
|
closeTicket(input: $input) {
|
|
263
246
|
...ticket
|
|
264
247
|
}
|
|
265
248
|
}
|
|
266
|
-
${exports.TicketFragmentDoc}
|
|
267
|
-
${exports.AgentFragmentDoc}
|
|
268
|
-
${exports.CustomerFragmentDoc}`;
|
|
249
|
+
${exports.TicketFragmentDoc}`;
|
|
269
250
|
exports.OnTicketInQueueDocument = `
|
|
270
251
|
subscription onTicketInQueue {
|
|
271
252
|
onTicketInQueue {
|
|
@@ -275,9 +256,7 @@ exports.OnTicketInQueueDocument = `
|
|
|
275
256
|
action
|
|
276
257
|
}
|
|
277
258
|
}
|
|
278
|
-
${exports.TicketFragmentDoc}
|
|
279
|
-
${exports.AgentFragmentDoc}
|
|
280
|
-
${exports.CustomerFragmentDoc}`;
|
|
259
|
+
${exports.TicketFragmentDoc}`;
|
|
281
260
|
exports.OnTicketInProgressMineDocument = `
|
|
282
261
|
subscription onTicketInProgressMine {
|
|
283
262
|
onTicketInProgressMine {
|
|
@@ -287,9 +266,7 @@ exports.OnTicketInProgressMineDocument = `
|
|
|
287
266
|
action
|
|
288
267
|
}
|
|
289
268
|
}
|
|
290
|
-
${exports.TicketFragmentDoc}
|
|
291
|
-
${exports.AgentFragmentDoc}
|
|
292
|
-
${exports.CustomerFragmentDoc}`;
|
|
269
|
+
${exports.TicketFragmentDoc}`;
|
|
293
270
|
exports.OnTicketClosedDocument = `
|
|
294
271
|
subscription onTicketClosed {
|
|
295
272
|
onTicketClosed {
|
|
@@ -299,9 +276,7 @@ exports.OnTicketClosedDocument = `
|
|
|
299
276
|
action
|
|
300
277
|
}
|
|
301
278
|
}
|
|
302
|
-
${exports.TicketFragmentDoc}
|
|
303
|
-
${exports.AgentFragmentDoc}
|
|
304
|
-
${exports.CustomerFragmentDoc}`;
|
|
279
|
+
${exports.TicketFragmentDoc}`;
|
|
305
280
|
exports.OnTicketMessageDocument = `
|
|
306
281
|
subscription onTicketMessage($ticketId: ID!) {
|
|
307
282
|
onTicketMessage(ticketId: $ticketId) {
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export type Scalars = {
|
|
|
70
70
|
output: any;
|
|
71
71
|
};
|
|
72
72
|
Set: {
|
|
73
|
-
input: any
|
|
74
|
-
output: any;
|
|
73
|
+
input: Set<any>;
|
|
74
|
+
output: any[];
|
|
75
75
|
};
|
|
76
76
|
URL: {
|
|
77
77
|
input: string;
|
|
@@ -199,10 +199,10 @@ export type ListAgentGroupsQuery = {
|
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
201
|
export declare const AgentGroupFragmentDoc = "\n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
202
|
-
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n ";
|
|
203
|
-
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n
|
|
204
|
-
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...agent\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n
|
|
205
|
-
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n
|
|
202
|
+
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
203
|
+
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
204
|
+
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...agent\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
205
|
+
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
206
206
|
export declare const CreateAgentGroupDocument = "\n mutation createAgentGroup($input: CreateAgentGroupInput!) {\n createAgentGroup(input: $input) {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
207
207
|
export declare const ListAgentGroupsDocument = "\n query listAgentGroups($next: Base64) {\n listAgentGroups(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...agentGroup\n }\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
208
208
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
package/src/sdks/droznexo.js
CHANGED
|
@@ -35,15 +35,14 @@ exports.AgentFragmentDoc = `
|
|
|
35
35
|
...agentGroup
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
`;
|
|
38
|
+
${exports.AgentGroupFragmentDoc}`;
|
|
39
39
|
exports.CreateAgentDocument = `
|
|
40
40
|
mutation createAgent($input: CreateAgentInput!) {
|
|
41
41
|
createAgent(input: $input) {
|
|
42
42
|
...agent
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
${exports.AgentFragmentDoc}
|
|
46
|
-
${exports.AgentGroupFragmentDoc}`;
|
|
45
|
+
${exports.AgentFragmentDoc}`;
|
|
47
46
|
exports.ListAgentsDocument = `
|
|
48
47
|
query listAgents($next: Base64) {
|
|
49
48
|
listAgents(next: $next) {
|
|
@@ -56,16 +55,14 @@ exports.ListAgentsDocument = `
|
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
57
|
}
|
|
59
|
-
${exports.AgentFragmentDoc}
|
|
60
|
-
${exports.AgentGroupFragmentDoc}`;
|
|
58
|
+
${exports.AgentFragmentDoc}`;
|
|
61
59
|
exports.GetAgentDocument = `
|
|
62
60
|
query getAgent($id: ID!) {
|
|
63
61
|
getAgent(id: $id) {
|
|
64
62
|
...agent
|
|
65
63
|
}
|
|
66
64
|
}
|
|
67
|
-
${exports.AgentFragmentDoc}
|
|
68
|
-
${exports.AgentGroupFragmentDoc}`;
|
|
65
|
+
${exports.AgentFragmentDoc}`;
|
|
69
66
|
exports.CreateAgentGroupDocument = `
|
|
70
67
|
mutation createAgentGroup($input: CreateAgentGroupInput!) {
|
|
71
68
|
createAgentGroup(input: $input) {
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export type Scalars = {
|
|
|
70
70
|
output: any;
|
|
71
71
|
};
|
|
72
72
|
Set: {
|
|
73
|
-
input: any
|
|
74
|
-
output: any;
|
|
73
|
+
input: Set<any>;
|
|
74
|
+
output: any[];
|
|
75
75
|
};
|
|
76
76
|
URL: {
|
|
77
77
|
input: string;
|
|
@@ -143,6 +143,12 @@ export type CreateCronJobInput = {
|
|
|
143
143
|
expression: Scalars['String']['input'];
|
|
144
144
|
payload: Scalars['JSON']['input'];
|
|
145
145
|
};
|
|
146
|
+
export type CreateStateMachineConfigInput = {
|
|
147
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
148
|
+
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>;
|
|
149
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
150
|
+
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
151
|
+
};
|
|
146
152
|
export type CreateStateMachineConfigStateInput = {
|
|
147
153
|
id: Scalars['ID']['input'];
|
|
148
154
|
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -155,12 +161,6 @@ export type CreateStateMachineConfigWithStateInput = {
|
|
|
155
161
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
156
162
|
stateId: Scalars['ID']['input'];
|
|
157
163
|
};
|
|
158
|
-
export type CreateStateMachineInput = {
|
|
159
|
-
description?: InputMaybe<Scalars['String']['input']>;
|
|
160
|
-
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>;
|
|
161
|
-
title?: InputMaybe<Scalars['String']['input']>;
|
|
162
|
-
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
163
|
-
};
|
|
164
164
|
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | OAuth2CredentialsType;
|
|
165
165
|
export declare enum CredentialsType {
|
|
166
166
|
ApiKey = "ApiKey",
|
|
@@ -178,7 +178,7 @@ export type CronJob = {
|
|
|
178
178
|
status: Scalars['String']['output'];
|
|
179
179
|
timestamp: Scalars['DateTime']['output'];
|
|
180
180
|
};
|
|
181
|
-
export type
|
|
181
|
+
export type EditStateMachineConfigInput = {
|
|
182
182
|
id: Scalars['ID']['input'];
|
|
183
183
|
};
|
|
184
184
|
export type ICredentials = {
|
|
@@ -193,7 +193,7 @@ export type Mutation = {
|
|
|
193
193
|
createStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
194
194
|
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
195
195
|
patchSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
196
|
-
|
|
196
|
+
publishStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
197
197
|
removeCredentials?: Maybe<SafeCredentials>;
|
|
198
198
|
removeCronJob: CronJob;
|
|
199
199
|
removeStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
@@ -212,19 +212,19 @@ export type MutationCreateCronJobArgs = {
|
|
|
212
212
|
input: CreateCronJobInput;
|
|
213
213
|
};
|
|
214
214
|
export type MutationCreateStateMachineConfigArgs = {
|
|
215
|
-
input:
|
|
215
|
+
input: CreateStateMachineConfigInput;
|
|
216
216
|
};
|
|
217
217
|
export type MutationCreateStateMachineConfigStateArgs = {
|
|
218
218
|
input: CreateStateMachineConfigStateInput;
|
|
219
219
|
};
|
|
220
220
|
export type MutationEditStateMachineConfigArgs = {
|
|
221
|
-
input:
|
|
221
|
+
input: EditStateMachineConfigInput;
|
|
222
222
|
};
|
|
223
223
|
export type MutationPatchSessionDataArgs = {
|
|
224
224
|
input: PatchSessionDataInput;
|
|
225
225
|
};
|
|
226
|
-
export type
|
|
227
|
-
input:
|
|
226
|
+
export type MutationPublishStateMachineConfigArgs = {
|
|
227
|
+
input: PublishStateMachineConfigInput;
|
|
228
228
|
};
|
|
229
229
|
export type MutationRemoveCredentialsArgs = {
|
|
230
230
|
input?: InputMaybe<RemoveCredentialsInput>;
|
|
@@ -233,7 +233,7 @@ export type MutationRemoveCronJobArgs = {
|
|
|
233
233
|
input: RemoveCronJobInput;
|
|
234
234
|
};
|
|
235
235
|
export type MutationRemoveStateMachineConfigArgs = {
|
|
236
|
-
input:
|
|
236
|
+
input: RemoveStateMachineConfigInput;
|
|
237
237
|
};
|
|
238
238
|
export type MutationRemoveStateMachineConfigStateArgs = {
|
|
239
239
|
input: RemoveStateMachineConfigStateInput;
|
|
@@ -248,7 +248,7 @@ export type MutationUpdateCronJobArgs = {
|
|
|
248
248
|
input: UpdateCronJobInput;
|
|
249
249
|
};
|
|
250
250
|
export type MutationUpdateStateMachineConfigArgs = {
|
|
251
|
-
input:
|
|
251
|
+
input: UpdateStateMachineConfigInput;
|
|
252
252
|
};
|
|
253
253
|
export type MutationUpdateStateMachineConfigStateArgs = {
|
|
254
254
|
input: UpdateStateMachineConfigStateInput;
|
|
@@ -284,7 +284,7 @@ export type PatchSessionDataInput = {
|
|
|
284
284
|
patches: Array<PatchInput>;
|
|
285
285
|
sessionId: Scalars['ID']['input'];
|
|
286
286
|
};
|
|
287
|
-
export type
|
|
287
|
+
export type PublishStateMachineConfigInput = {
|
|
288
288
|
id: Scalars['ID']['input'];
|
|
289
289
|
versionId: Scalars['ID']['input'];
|
|
290
290
|
};
|
|
@@ -303,6 +303,9 @@ export type Query = {
|
|
|
303
303
|
listCredentials: Array<SafeCredentials>;
|
|
304
304
|
listCronJobs: Array<CronJob>;
|
|
305
305
|
listCronJobsByAppId: Array<SecureCronJob>;
|
|
306
|
+
listDraftStateMachineConfigs: StateMachineConfigConnection;
|
|
307
|
+
listLiveStateMachineConfigs: StateMachineConfigConnection;
|
|
308
|
+
listStateMachineConfigVersions: Array<StateMachineConfig>;
|
|
306
309
|
resolveSession?: Maybe<Session>;
|
|
307
310
|
version?: Maybe<Scalars['String']['output']>;
|
|
308
311
|
};
|
|
@@ -343,6 +346,9 @@ export type QueryListCredentialsArgs = {
|
|
|
343
346
|
export type QueryListCronJobsByAppIdArgs = {
|
|
344
347
|
appId: Scalars['ID']['input'];
|
|
345
348
|
};
|
|
349
|
+
export type QueryListStateMachineConfigVersionsArgs = {
|
|
350
|
+
id: Scalars['ID']['input'];
|
|
351
|
+
};
|
|
346
352
|
export type QueryResolveSessionArgs = {
|
|
347
353
|
sessionId?: InputMaybe<Scalars['ID']['input']>;
|
|
348
354
|
triggerDrn: Scalars['DRN']['input'];
|
|
@@ -354,13 +360,13 @@ export type RemoveCredentialsInput = {
|
|
|
354
360
|
export type RemoveCronJobInput = {
|
|
355
361
|
id: Scalars['ID']['input'];
|
|
356
362
|
};
|
|
357
|
-
export type
|
|
363
|
+
export type RemoveStateMachineConfigInput = {
|
|
358
364
|
id: Scalars['ID']['input'];
|
|
359
|
-
stateId: Scalars['ID']['input'];
|
|
360
365
|
versionId: Scalars['ID']['input'];
|
|
361
366
|
};
|
|
362
|
-
export type
|
|
367
|
+
export type RemoveStateMachineConfigStateInput = {
|
|
363
368
|
id: Scalars['ID']['input'];
|
|
369
|
+
stateId: Scalars['ID']['input'];
|
|
364
370
|
versionId: Scalars['ID']['input'];
|
|
365
371
|
};
|
|
366
372
|
export type SafeCredentials = ICredentials & {
|
|
@@ -399,6 +405,10 @@ export type StateMachineConfig = {
|
|
|
399
405
|
triggers?: Maybe<Scalars['Set']['output']>;
|
|
400
406
|
versionId: Scalars['ID']['output'];
|
|
401
407
|
};
|
|
408
|
+
export type StateMachineConfigConnection = {
|
|
409
|
+
nodes: Array<StateMachineConfig>;
|
|
410
|
+
pageInfo: PageInfo;
|
|
411
|
+
};
|
|
402
412
|
export type StateMachineConfigState = {
|
|
403
413
|
meta?: Maybe<Scalars['JSON']['output']>;
|
|
404
414
|
on: Array<StateMachineConfigStatesOn>;
|
|
@@ -448,6 +458,14 @@ export type UpdateCronJobInput = {
|
|
|
448
458
|
id: Scalars['ID']['input'];
|
|
449
459
|
payload: Scalars['JSON']['input'];
|
|
450
460
|
};
|
|
461
|
+
export type UpdateStateMachineConfigInput = {
|
|
462
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
463
|
+
id: Scalars['ID']['input'];
|
|
464
|
+
states?: InputMaybe<Array<UpdateStateMachineConfigWithStateInput>>;
|
|
465
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
466
|
+
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
467
|
+
versionId: Scalars['ID']['input'];
|
|
468
|
+
};
|
|
451
469
|
export type UpdateStateMachineConfigStateInput = {
|
|
452
470
|
id: Scalars['ID']['input'];
|
|
453
471
|
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -460,14 +478,6 @@ export type UpdateStateMachineConfigWithStateInput = {
|
|
|
460
478
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
461
479
|
stateId: Scalars['ID']['input'];
|
|
462
480
|
};
|
|
463
|
-
export type UpdateStateMachineInput = {
|
|
464
|
-
description?: InputMaybe<Scalars['String']['input']>;
|
|
465
|
-
id: Scalars['ID']['input'];
|
|
466
|
-
states?: InputMaybe<Array<UpdateStateMachineConfigWithStateInput>>;
|
|
467
|
-
title?: InputMaybe<Scalars['String']['input']>;
|
|
468
|
-
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
469
|
-
versionId: Scalars['ID']['input'];
|
|
470
|
-
};
|
|
471
481
|
export type AppFragment = Pick<App, 'id' | 'type' | 'name' | 'description'>;
|
|
472
482
|
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions'>;
|
|
473
483
|
export type AppWithInstancesFragment = ({
|
|
@@ -596,22 +606,104 @@ export type PatchSessionDataMutationVariables = Exact<{
|
|
|
596
606
|
input: PatchSessionDataInput;
|
|
597
607
|
}>;
|
|
598
608
|
export type PatchSessionDataMutation = Pick<Mutation, 'patchSessionData'>;
|
|
609
|
+
export type StateMachineConfigStateOnFragment = Pick<StateMachineConfigStatesOn, 'event' | 'target'>;
|
|
610
|
+
export type StateMachineConfigStateFragment = (Pick<StateMachineConfigState, 'stateId' | 'meta'> & {
|
|
611
|
+
on: Array<StateMachineConfigStateOnFragment>;
|
|
612
|
+
});
|
|
613
|
+
export type StateMachineConfigFragment = (Pick<StateMachineConfig, 'id' | 'versionId' | 'stateMachineId' | 'title' | 'description' | 'status' | 'triggers'> & {
|
|
614
|
+
states: Array<StateMachineConfigStateFragment>;
|
|
615
|
+
});
|
|
616
|
+
export type StateMachineConfigConnectionFragment = {
|
|
617
|
+
nodes: Array<StateMachineConfigFragment>;
|
|
618
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
619
|
+
};
|
|
599
620
|
export type GetStateMachineQueryVariables = Exact<{
|
|
600
621
|
id: Scalars['ID']['input'];
|
|
601
622
|
versionId: Scalars['ID']['input'];
|
|
602
623
|
}>;
|
|
603
624
|
export type GetStateMachineQuery = {
|
|
604
|
-
getStateMachineConfig?: Maybe<
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
625
|
+
getStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
626
|
+
};
|
|
627
|
+
export type ListLiveStateMachineConfigsQueryVariables = Exact<{
|
|
628
|
+
[key: string]: never;
|
|
629
|
+
}>;
|
|
630
|
+
export type ListLiveStateMachineConfigsQuery = {
|
|
631
|
+
listLiveStateMachineConfigs: StateMachineConfigConnectionFragment;
|
|
632
|
+
};
|
|
633
|
+
export type ListDraftStateMachineConfigsQueryVariables = Exact<{
|
|
634
|
+
[key: string]: never;
|
|
635
|
+
}>;
|
|
636
|
+
export type ListDraftStateMachineConfigsQuery = {
|
|
637
|
+
listDraftStateMachineConfigs: StateMachineConfigConnectionFragment;
|
|
638
|
+
};
|
|
639
|
+
export type ListStateMachineConfigVersionsQueryVariables = Exact<{
|
|
640
|
+
id: Scalars['ID']['input'];
|
|
641
|
+
}>;
|
|
642
|
+
export type ListStateMachineConfigVersionsQuery = {
|
|
643
|
+
listStateMachineConfigVersions: Array<StateMachineConfigFragment>;
|
|
644
|
+
};
|
|
645
|
+
export type GetXStateMachineConfigQueryVariables = Exact<{
|
|
646
|
+
id: Scalars['ID']['input'];
|
|
647
|
+
versionId: Scalars['ID']['input'];
|
|
648
|
+
}>;
|
|
649
|
+
export type GetXStateMachineConfigQuery = Pick<Query, 'getXStateMachineConfig'>;
|
|
650
|
+
export type CreateStateMachineConfigMutationVariables = Exact<{
|
|
651
|
+
input: CreateStateMachineConfigInput;
|
|
652
|
+
}>;
|
|
653
|
+
export type CreateStateMachineConfigMutation = {
|
|
654
|
+
createStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
655
|
+
};
|
|
656
|
+
export type UpdateStateMachineConfigMutationVariables = Exact<{
|
|
657
|
+
input: UpdateStateMachineConfigInput;
|
|
658
|
+
}>;
|
|
659
|
+
export type UpdateStateMachineConfigMutation = {
|
|
660
|
+
updateStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
661
|
+
};
|
|
662
|
+
export type RemoveStateMachineConfigMutationVariables = Exact<{
|
|
663
|
+
input: RemoveStateMachineConfigInput;
|
|
664
|
+
}>;
|
|
665
|
+
export type RemoveStateMachineConfigMutation = {
|
|
666
|
+
removeStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
667
|
+
};
|
|
668
|
+
export type EditStateMachineConfigMutationVariables = Exact<{
|
|
669
|
+
input: EditStateMachineConfigInput;
|
|
670
|
+
}>;
|
|
671
|
+
export type EditStateMachineConfigMutation = {
|
|
672
|
+
editStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
673
|
+
};
|
|
674
|
+
export type PublishStateMachineConfigMutationVariables = Exact<{
|
|
675
|
+
input: PublishStateMachineConfigInput;
|
|
676
|
+
}>;
|
|
677
|
+
export type PublishStateMachineConfigMutation = {
|
|
678
|
+
publishStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
679
|
+
};
|
|
680
|
+
export type CreateStateMachineConfigStateMutationVariables = Exact<{
|
|
681
|
+
input: CreateStateMachineConfigStateInput;
|
|
682
|
+
}>;
|
|
683
|
+
export type CreateStateMachineConfigStateMutation = {
|
|
684
|
+
createStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
685
|
+
};
|
|
686
|
+
export type UpdateStateMachineConfigStateMutationVariables = Exact<{
|
|
687
|
+
input: UpdateStateMachineConfigStateInput;
|
|
688
|
+
}>;
|
|
689
|
+
export type UpdateStateMachineConfigStateMutation = {
|
|
690
|
+
updateStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
691
|
+
};
|
|
692
|
+
export type RemoveStateMachineConfigStateMutationVariables = Exact<{
|
|
693
|
+
input: RemoveStateMachineConfigStateInput;
|
|
694
|
+
}>;
|
|
695
|
+
export type RemoveStateMachineConfigStateMutation = {
|
|
696
|
+
removeStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
609
697
|
};
|
|
610
698
|
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
611
699
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
612
|
-
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
700
|
+
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
613
701
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n ";
|
|
614
702
|
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n ";
|
|
703
|
+
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
704
|
+
export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
705
|
+
export declare const StateMachineConfigFragmentDoc = "\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
706
|
+
export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
615
707
|
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
616
708
|
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
617
709
|
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
@@ -630,7 +722,19 @@ export declare const ResolveSessionDocument = "\n query resolveSession($sessi
|
|
|
630
722
|
export declare const GetSessionDataDocument = "\n query getSessionData($sessionId: ID!, $namespace: ID) {\n getSessionData(sessionId: $sessionId, namespace: $namespace)\n}\n ";
|
|
631
723
|
export declare const SetSessionDataDocument = "\n mutation setSessionData($input: SetSessionDataInput!) {\n setSessionData(input: $input)\n}\n ";
|
|
632
724
|
export declare const PatchSessionDataDocument = "\n mutation patchSessionData($input: PatchSessionDataInput!) {\n patchSessionData(input: $input)\n}\n ";
|
|
633
|
-
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n id\n
|
|
725
|
+
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
726
|
+
export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs {\n listLiveStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
727
|
+
export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs {\n listDraftStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
728
|
+
export declare const ListStateMachineConfigVersionsDocument = "\n query listStateMachineConfigVersions($id: ID!) {\n listStateMachineConfigVersions(id: $id) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
729
|
+
export declare const GetXStateMachineConfigDocument = "\n query getXStateMachineConfig($id: ID!, $versionId: ID!) {\n getXStateMachineConfig(id: $id, versionId: $versionId)\n}\n ";
|
|
730
|
+
export declare const CreateStateMachineConfigDocument = "\n mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) {\n createStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
731
|
+
export declare const UpdateStateMachineConfigDocument = "\n mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) {\n updateStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
732
|
+
export declare const RemoveStateMachineConfigDocument = "\n mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) {\n removeStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
733
|
+
export declare const EditStateMachineConfigDocument = "\n mutation editStateMachineConfig($input: EditStateMachineConfigInput!) {\n editStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
734
|
+
export declare const PublishStateMachineConfigDocument = "\n mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) {\n publishStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
735
|
+
export declare const CreateStateMachineConfigStateDocument = "\n mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) {\n createStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
736
|
+
export declare const UpdateStateMachineConfigStateDocument = "\n mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) {\n updateStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
737
|
+
export declare const RemoveStateMachineConfigStateDocument = "\n mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {\n removeStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
634
738
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
|
635
739
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
636
740
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
@@ -652,6 +756,18 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
652
756
|
setSessionData(variables: SetSessionDataMutationVariables, options?: C): Promise<SetSessionDataMutation>;
|
|
653
757
|
patchSessionData(variables: PatchSessionDataMutationVariables, options?: C): Promise<PatchSessionDataMutation>;
|
|
654
758
|
getStateMachine(variables: GetStateMachineQueryVariables, options?: C): Promise<GetStateMachineQuery>;
|
|
759
|
+
listLiveStateMachineConfigs(variables?: ListLiveStateMachineConfigsQueryVariables, options?: C): Promise<ListLiveStateMachineConfigsQuery>;
|
|
760
|
+
listDraftStateMachineConfigs(variables?: ListDraftStateMachineConfigsQueryVariables, options?: C): Promise<ListDraftStateMachineConfigsQuery>;
|
|
761
|
+
listStateMachineConfigVersions(variables: ListStateMachineConfigVersionsQueryVariables, options?: C): Promise<ListStateMachineConfigVersionsQuery>;
|
|
762
|
+
getXStateMachineConfig(variables: GetXStateMachineConfigQueryVariables, options?: C): Promise<GetXStateMachineConfigQuery>;
|
|
763
|
+
createStateMachineConfig(variables: CreateStateMachineConfigMutationVariables, options?: C): Promise<CreateStateMachineConfigMutation>;
|
|
764
|
+
updateStateMachineConfig(variables: UpdateStateMachineConfigMutationVariables, options?: C): Promise<UpdateStateMachineConfigMutation>;
|
|
765
|
+
removeStateMachineConfig(variables: RemoveStateMachineConfigMutationVariables, options?: C): Promise<RemoveStateMachineConfigMutation>;
|
|
766
|
+
editStateMachineConfig(variables: EditStateMachineConfigMutationVariables, options?: C): Promise<EditStateMachineConfigMutation>;
|
|
767
|
+
publishStateMachineConfig(variables: PublishStateMachineConfigMutationVariables, options?: C): Promise<PublishStateMachineConfigMutation>;
|
|
768
|
+
createStateMachineConfigState(variables: CreateStateMachineConfigStateMutationVariables, options?: C): Promise<CreateStateMachineConfigStateMutation>;
|
|
769
|
+
updateStateMachineConfigState(variables: UpdateStateMachineConfigStateMutationVariables, options?: C): Promise<UpdateStateMachineConfigStateMutation>;
|
|
770
|
+
removeStateMachineConfigState(variables: RemoveStateMachineConfigStateMutationVariables, options?: C): Promise<RemoveStateMachineConfigStateMutation>;
|
|
655
771
|
};
|
|
656
772
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
657
773
|
export declare const serviceName = "@droz/nucleus";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0;
|
|
5
5
|
var AppType;
|
|
6
6
|
(function (AppType) {
|
|
7
7
|
AppType["Regular"] = "Regular";
|
|
@@ -68,7 +68,8 @@ exports.AppWithInstancesFragmentDoc = `
|
|
|
68
68
|
...appInstance
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
${exports.AppFragmentDoc}
|
|
72
|
+
${exports.AppInstanceFragmentDoc}`;
|
|
72
73
|
exports.SafeCredentialsFragmentDoc = `
|
|
73
74
|
fragment safeCredentials on SafeCredentials {
|
|
74
75
|
id
|
|
@@ -89,6 +90,46 @@ exports.CronJobFragmentDoc = `
|
|
|
89
90
|
runs
|
|
90
91
|
}
|
|
91
92
|
`;
|
|
93
|
+
exports.StateMachineConfigStateOnFragmentDoc = `
|
|
94
|
+
fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {
|
|
95
|
+
event
|
|
96
|
+
target
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
exports.StateMachineConfigStateFragmentDoc = `
|
|
100
|
+
fragment stateMachineConfigState on StateMachineConfigState {
|
|
101
|
+
stateId
|
|
102
|
+
on {
|
|
103
|
+
...stateMachineConfigStateOn
|
|
104
|
+
}
|
|
105
|
+
meta
|
|
106
|
+
}
|
|
107
|
+
${exports.StateMachineConfigStateOnFragmentDoc}`;
|
|
108
|
+
exports.StateMachineConfigFragmentDoc = `
|
|
109
|
+
fragment stateMachineConfig on StateMachineConfig {
|
|
110
|
+
id
|
|
111
|
+
versionId
|
|
112
|
+
stateMachineId
|
|
113
|
+
title
|
|
114
|
+
description
|
|
115
|
+
status
|
|
116
|
+
triggers
|
|
117
|
+
states {
|
|
118
|
+
...stateMachineConfigState
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
${exports.StateMachineConfigStateFragmentDoc}`;
|
|
122
|
+
exports.StateMachineConfigConnectionFragmentDoc = `
|
|
123
|
+
fragment stateMachineConfigConnection on StateMachineConfigConnection {
|
|
124
|
+
nodes {
|
|
125
|
+
...stateMachineConfig
|
|
126
|
+
}
|
|
127
|
+
pageInfo {
|
|
128
|
+
hasNext
|
|
129
|
+
next
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
92
133
|
exports.GetAppDocument = `
|
|
93
134
|
query getApp($appId: ID!, $withInstances: Boolean = false) {
|
|
94
135
|
getApp(appId: $appId) {
|
|
@@ -248,23 +289,92 @@ exports.PatchSessionDataDocument = `
|
|
|
248
289
|
exports.GetStateMachineDocument = `
|
|
249
290
|
query getStateMachine($id: ID!, $versionId: ID!) {
|
|
250
291
|
getStateMachineConfig(id: $id, versionId: $versionId) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
on {
|
|
260
|
-
event
|
|
261
|
-
target
|
|
262
|
-
}
|
|
263
|
-
meta
|
|
264
|
-
}
|
|
292
|
+
...stateMachineConfig
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
296
|
+
exports.ListLiveStateMachineConfigsDocument = `
|
|
297
|
+
query listLiveStateMachineConfigs {
|
|
298
|
+
listLiveStateMachineConfigs {
|
|
299
|
+
...stateMachineConfigConnection
|
|
265
300
|
}
|
|
301
|
+
}
|
|
302
|
+
${exports.StateMachineConfigConnectionFragmentDoc}`;
|
|
303
|
+
exports.ListDraftStateMachineConfigsDocument = `
|
|
304
|
+
query listDraftStateMachineConfigs {
|
|
305
|
+
listDraftStateMachineConfigs {
|
|
306
|
+
...stateMachineConfigConnection
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
${exports.StateMachineConfigConnectionFragmentDoc}`;
|
|
310
|
+
exports.ListStateMachineConfigVersionsDocument = `
|
|
311
|
+
query listStateMachineConfigVersions($id: ID!) {
|
|
312
|
+
listStateMachineConfigVersions(id: $id) {
|
|
313
|
+
...stateMachineConfig
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
317
|
+
exports.GetXStateMachineConfigDocument = `
|
|
318
|
+
query getXStateMachineConfig($id: ID!, $versionId: ID!) {
|
|
319
|
+
getXStateMachineConfig(id: $id, versionId: $versionId)
|
|
266
320
|
}
|
|
267
321
|
`;
|
|
322
|
+
exports.CreateStateMachineConfigDocument = `
|
|
323
|
+
mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) {
|
|
324
|
+
createStateMachineConfig(input: $input) {
|
|
325
|
+
...stateMachineConfig
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
329
|
+
exports.UpdateStateMachineConfigDocument = `
|
|
330
|
+
mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) {
|
|
331
|
+
updateStateMachineConfig(input: $input) {
|
|
332
|
+
...stateMachineConfig
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
336
|
+
exports.RemoveStateMachineConfigDocument = `
|
|
337
|
+
mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) {
|
|
338
|
+
removeStateMachineConfig(input: $input) {
|
|
339
|
+
...stateMachineConfig
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
343
|
+
exports.EditStateMachineConfigDocument = `
|
|
344
|
+
mutation editStateMachineConfig($input: EditStateMachineConfigInput!) {
|
|
345
|
+
editStateMachineConfig(input: $input) {
|
|
346
|
+
...stateMachineConfig
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
350
|
+
exports.PublishStateMachineConfigDocument = `
|
|
351
|
+
mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) {
|
|
352
|
+
publishStateMachineConfig(input: $input) {
|
|
353
|
+
...stateMachineConfig
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
357
|
+
exports.CreateStateMachineConfigStateDocument = `
|
|
358
|
+
mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) {
|
|
359
|
+
createStateMachineConfigState(input: $input) {
|
|
360
|
+
...stateMachineConfig
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
364
|
+
exports.UpdateStateMachineConfigStateDocument = `
|
|
365
|
+
mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) {
|
|
366
|
+
updateStateMachineConfigState(input: $input) {
|
|
367
|
+
...stateMachineConfig
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
371
|
+
exports.RemoveStateMachineConfigStateDocument = `
|
|
372
|
+
mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {
|
|
373
|
+
removeStateMachineConfigState(input: $input) {
|
|
374
|
+
...stateMachineConfig
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
268
378
|
function getSdk(requester) {
|
|
269
379
|
return {
|
|
270
380
|
getApp(variables, options) {
|
|
@@ -323,6 +433,42 @@ function getSdk(requester) {
|
|
|
323
433
|
},
|
|
324
434
|
getStateMachine(variables, options) {
|
|
325
435
|
return requester(exports.GetStateMachineDocument, variables, options);
|
|
436
|
+
},
|
|
437
|
+
listLiveStateMachineConfigs(variables, options) {
|
|
438
|
+
return requester(exports.ListLiveStateMachineConfigsDocument, variables, options);
|
|
439
|
+
},
|
|
440
|
+
listDraftStateMachineConfigs(variables, options) {
|
|
441
|
+
return requester(exports.ListDraftStateMachineConfigsDocument, variables, options);
|
|
442
|
+
},
|
|
443
|
+
listStateMachineConfigVersions(variables, options) {
|
|
444
|
+
return requester(exports.ListStateMachineConfigVersionsDocument, variables, options);
|
|
445
|
+
},
|
|
446
|
+
getXStateMachineConfig(variables, options) {
|
|
447
|
+
return requester(exports.GetXStateMachineConfigDocument, variables, options);
|
|
448
|
+
},
|
|
449
|
+
createStateMachineConfig(variables, options) {
|
|
450
|
+
return requester(exports.CreateStateMachineConfigDocument, variables, options);
|
|
451
|
+
},
|
|
452
|
+
updateStateMachineConfig(variables, options) {
|
|
453
|
+
return requester(exports.UpdateStateMachineConfigDocument, variables, options);
|
|
454
|
+
},
|
|
455
|
+
removeStateMachineConfig(variables, options) {
|
|
456
|
+
return requester(exports.RemoveStateMachineConfigDocument, variables, options);
|
|
457
|
+
},
|
|
458
|
+
editStateMachineConfig(variables, options) {
|
|
459
|
+
return requester(exports.EditStateMachineConfigDocument, variables, options);
|
|
460
|
+
},
|
|
461
|
+
publishStateMachineConfig(variables, options) {
|
|
462
|
+
return requester(exports.PublishStateMachineConfigDocument, variables, options);
|
|
463
|
+
},
|
|
464
|
+
createStateMachineConfigState(variables, options) {
|
|
465
|
+
return requester(exports.CreateStateMachineConfigStateDocument, variables, options);
|
|
466
|
+
},
|
|
467
|
+
updateStateMachineConfigState(variables, options) {
|
|
468
|
+
return requester(exports.UpdateStateMachineConfigStateDocument, variables, options);
|
|
469
|
+
},
|
|
470
|
+
removeStateMachineConfigState(variables, options) {
|
|
471
|
+
return requester(exports.RemoveStateMachineConfigStateDocument, variables, options);
|
|
326
472
|
}
|
|
327
473
|
};
|
|
328
474
|
}
|