@droz-js/sdk 0.2.15 → 0.2.16
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 +2 -2
- package/src/client/http.js +1 -1
- package/src/drozchat-ws.d.ts +0 -9
- package/src/drozchat.d.ts +0 -9
- package/src/droznexo.d.ts +12 -0
- package/src/nucleus.d.ts +4 -2
- package/src/sdks/chatwidget.d.ts +1 -1
- package/src/sdks/drozbot.d.ts +1 -1
- package/src/sdks/drozchat.d.ts +28 -83
- package/src/sdks/drozchat.js +2 -44
- package/src/sdks/drozcommons.d.ts +1 -1
- package/src/sdks/droznexo.d.ts +101 -1
- package/src/sdks/droznexo.js +84 -1
- package/src/sdks/mercadolivre.d.ts +1 -1
- package/src/sdks/nucleus.d.ts +34 -20
- package/src/sdks/nucleus.js +13 -9
- package/src/sdks/reclameaqui.d.ts +1 -1
- package/src/sdks/zendesk.d.ts +1 -1
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.16",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"graphql": "^16.8.1",
|
|
20
|
-
"graphql-ws": "^5.14.
|
|
20
|
+
"graphql-ws": "^5.14.2",
|
|
21
21
|
"inbatches": "^0.0.10"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
package/src/client/http.js
CHANGED
|
@@ -98,7 +98,7 @@ class HttpRequester {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
__decorate([
|
|
101
|
-
(0, inbatches_1.InBatches)({ maxBatchSize:
|
|
101
|
+
(0, inbatches_1.InBatches)({ maxBatchSize: 20 }),
|
|
102
102
|
__metadata("design:type", Function),
|
|
103
103
|
__metadata("design:paramtypes", [Object]),
|
|
104
104
|
__metadata("design:returntype", Promise)
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -3,15 +3,6 @@ export declare const DrozChatWs: new () => {
|
|
|
3
3
|
readonly ws: any;
|
|
4
4
|
connect(): Promise<void>;
|
|
5
5
|
} & {
|
|
6
|
-
createDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
7
|
-
input: import("./sdks/drozchat").CreateDrozChatAgentInput;
|
|
8
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatAgentMutation>;
|
|
9
|
-
listDrozChatAgents(variables?: import("./sdks/drozchat").Exact<{
|
|
10
|
-
next?: object;
|
|
11
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentsQuery>;
|
|
12
|
-
getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
13
|
-
id: string;
|
|
14
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
|
|
15
6
|
getTicket(variables: import("./sdks/drozchat").Exact<{
|
|
16
7
|
id: string;
|
|
17
8
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -5,15 +5,6 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
|
|
|
5
5
|
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): any;
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
} & {
|
|
8
|
-
createDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
9
|
-
input: import("./sdks/drozchat").CreateDrozChatAgentInput;
|
|
10
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatAgentMutation>;
|
|
11
|
-
listDrozChatAgents(variables?: import("./sdks/drozchat").Exact<{
|
|
12
|
-
next?: object;
|
|
13
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatAgentsQuery>;
|
|
14
|
-
getDrozChatAgent(variables: import("./sdks/drozchat").Exact<{
|
|
15
|
-
id: string;
|
|
16
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatAgentQuery>;
|
|
17
8
|
getTicket(variables: import("./sdks/drozchat").Exact<{
|
|
18
9
|
id: string;
|
|
19
10
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
|
package/src/droznexo.d.ts
CHANGED
|
@@ -20,4 +20,16 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
|
|
|
20
20
|
listDrozNexoAgentGroups(variables?: import("./sdks/droznexo").Exact<{
|
|
21
21
|
next?: object;
|
|
22
22
|
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoAgentGroupsQuery>;
|
|
23
|
+
listDrozNexoSuggestions(variables?: import("./sdks/droznexo").Exact<{
|
|
24
|
+
[key: string]: never;
|
|
25
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoSuggestionsQuery>;
|
|
26
|
+
listDrozNexoConnections(variables?: import("./sdks/droznexo").Exact<{
|
|
27
|
+
next?: object;
|
|
28
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoConnectionsQuery>;
|
|
29
|
+
createDrozNexoConnection(variables: import("./sdks/droznexo").Exact<{
|
|
30
|
+
input: import("./sdks/droznexo").CreateDrozNexoConnectionInput;
|
|
31
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateDrozNexoConnectionMutation>;
|
|
32
|
+
removeDrozNexoConnection(variables: import("./sdks/droznexo").Exact<{
|
|
33
|
+
input: import("./sdks/droznexo").RemoveDrozNexoConnectionInput;
|
|
34
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").RemoveDrozNexoConnectionMutation>;
|
|
23
35
|
};
|
package/src/nucleus.d.ts
CHANGED
|
@@ -110,10 +110,12 @@ export declare const Nucleus: new (options?: import("./client/http").HttpClientO
|
|
|
110
110
|
versionId: string;
|
|
111
111
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetStateMachineQuery>;
|
|
112
112
|
listLiveStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{
|
|
113
|
-
|
|
113
|
+
createdByAppId?: string;
|
|
114
|
+
next?: object;
|
|
114
115
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListLiveStateMachineConfigsQuery>;
|
|
115
116
|
listDraftStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{
|
|
116
|
-
|
|
117
|
+
createdByAppId?: string;
|
|
118
|
+
next?: object;
|
|
117
119
|
}>, options?: unknown): Promise<import("./sdks/nucleus").ListDraftStateMachineConfigsQuery>;
|
|
118
120
|
listStateMachineConfigVersions(variables: import("./sdks/nucleus").Exact<{
|
|
119
121
|
id: string;
|
package/src/sdks/chatwidget.d.ts
CHANGED
package/src/sdks/drozbot.d.ts
CHANGED
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export type Scalars = {
|
|
|
74
74
|
output: string;
|
|
75
75
|
};
|
|
76
76
|
Set: {
|
|
77
|
-
input:
|
|
77
|
+
input: any;
|
|
78
78
|
output: any[];
|
|
79
79
|
};
|
|
80
80
|
URL: {
|
|
@@ -101,10 +101,6 @@ export type AssignTicketMyselfInput = {
|
|
|
101
101
|
export type CloseTicketInput = {
|
|
102
102
|
ticketId: Scalars['ID']['input'];
|
|
103
103
|
};
|
|
104
|
-
export type CreateDrozChatAgentInput = {
|
|
105
|
-
email: Scalars['EmailAddress']['input'];
|
|
106
|
-
name: Scalars['String']['input'];
|
|
107
|
-
};
|
|
108
104
|
export type CreateTicketInput = {
|
|
109
105
|
customerId: Scalars['ID']['input'];
|
|
110
106
|
subject: Scalars['String']['input'];
|
|
@@ -116,19 +112,18 @@ export type CreateTicketMessageInput = {
|
|
|
116
112
|
type: TicketMessageType;
|
|
117
113
|
};
|
|
118
114
|
export type DrozChatAgent = {
|
|
119
|
-
createdAt: Scalars['
|
|
120
|
-
email: Scalars['EmailAddress']['output'];
|
|
121
|
-
extension?: Maybe<DrozChatAgentExtension>;
|
|
115
|
+
createdAt: Scalars['String']['output'];
|
|
122
116
|
id: Scalars['ID']['output'];
|
|
123
117
|
name: Scalars['String']['output'];
|
|
124
|
-
updatedAt: Scalars['
|
|
118
|
+
updatedAt: Scalars['String']['output'];
|
|
125
119
|
};
|
|
126
|
-
export type
|
|
120
|
+
export type DrozChatCustomer = {
|
|
121
|
+
createdAt: Scalars['String']['output'];
|
|
122
|
+
email: Scalars['String']['output'];
|
|
127
123
|
id: Scalars['ID']['output'];
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
pageInfo: PageInfo;
|
|
124
|
+
name: Scalars['String']['output'];
|
|
125
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
126
|
+
updatedAt: Scalars['String']['output'];
|
|
132
127
|
};
|
|
133
128
|
export type MarkTicketMessagesAsReadInput = {
|
|
134
129
|
ticketId: Scalars['ID']['input'];
|
|
@@ -137,7 +132,6 @@ export type Mutation = {
|
|
|
137
132
|
assignTicket: Ticket;
|
|
138
133
|
assignTicketMyself: Ticket;
|
|
139
134
|
closeTicket: Ticket;
|
|
140
|
-
createDrozChatAgent: DrozChatAgent;
|
|
141
135
|
createTicket: Ticket;
|
|
142
136
|
createTicketMessage: TicketMessage;
|
|
143
137
|
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
|
|
@@ -153,9 +147,6 @@ export type MutationAssignTicketMyselfArgs = {
|
|
|
153
147
|
export type MutationCloseTicketArgs = {
|
|
154
148
|
input: CloseTicketInput;
|
|
155
149
|
};
|
|
156
|
-
export type MutationCreateDrozChatAgentArgs = {
|
|
157
|
-
input: CreateDrozChatAgentInput;
|
|
158
|
-
};
|
|
159
150
|
export type MutationCreateTicketArgs = {
|
|
160
151
|
input: CreateTicketInput;
|
|
161
152
|
};
|
|
@@ -174,11 +165,9 @@ export type PageInfo = {
|
|
|
174
165
|
};
|
|
175
166
|
export type Query = {
|
|
176
167
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
177
|
-
getDrozChatAgent?: Maybe<DrozChatAgent>;
|
|
178
168
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
179
169
|
getTicket?: Maybe<Ticket>;
|
|
180
170
|
getWsEndpoint?: Maybe<Scalars['String']['output']>;
|
|
181
|
-
listDrozChatAgents: DrozChatAgentsConnection;
|
|
182
171
|
listTicketMessages: TicketMessagesConnection;
|
|
183
172
|
listTickets: TicketsConnection;
|
|
184
173
|
listTicketsClosed: TicketsConnection;
|
|
@@ -187,15 +176,9 @@ export type Query = {
|
|
|
187
176
|
listTicketsInQueue: TicketsConnection;
|
|
188
177
|
version?: Maybe<Scalars['String']['output']>;
|
|
189
178
|
};
|
|
190
|
-
export type QueryGetDrozChatAgentArgs = {
|
|
191
|
-
id: Scalars['ID']['input'];
|
|
192
|
-
};
|
|
193
179
|
export type QueryGetTicketArgs = {
|
|
194
180
|
id: Scalars['ID']['input'];
|
|
195
181
|
};
|
|
196
|
-
export type QueryListDrozChatAgentsArgs = {
|
|
197
|
-
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
198
|
-
};
|
|
199
182
|
export type QueryListTicketMessagesArgs = {
|
|
200
183
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
201
184
|
ticketId: Scalars['ID']['input'];
|
|
@@ -237,7 +220,7 @@ export type Ticket = {
|
|
|
237
220
|
assigneeId?: Maybe<Scalars['ID']['output']>;
|
|
238
221
|
channel?: Maybe<TicketChannel>;
|
|
239
222
|
createdAt: Scalars['DateTime']['output'];
|
|
240
|
-
customer:
|
|
223
|
+
customer: DrozChatCustomer;
|
|
241
224
|
customerId: Scalars['ID']['output'];
|
|
242
225
|
id: Scalars['ID']['output'];
|
|
243
226
|
lastMessage?: Maybe<Scalars['String']['output']>;
|
|
@@ -257,14 +240,6 @@ export type TicketChannel = {
|
|
|
257
240
|
drn?: Maybe<Scalars['DRN']['output']>;
|
|
258
241
|
name?: Maybe<Scalars['String']['output']>;
|
|
259
242
|
};
|
|
260
|
-
export type TicketCustomer = {
|
|
261
|
-
createdAt: Scalars['String']['output'];
|
|
262
|
-
email: Scalars['String']['output'];
|
|
263
|
-
id: Scalars['ID']['output'];
|
|
264
|
-
name: Scalars['String']['output'];
|
|
265
|
-
phone?: Maybe<Scalars['String']['output']>;
|
|
266
|
-
updatedAt: Scalars['String']['output'];
|
|
267
|
-
};
|
|
268
243
|
export type TicketMessage = {
|
|
269
244
|
body: Scalars['String']['output'];
|
|
270
245
|
contentType: Scalars['String']['output'];
|
|
@@ -316,7 +291,6 @@ export type TicketsConnection = {
|
|
|
316
291
|
};
|
|
317
292
|
export declare enum Typenames {
|
|
318
293
|
Any = "Any",
|
|
319
|
-
DrozChatAgentExtension = "DrozChatAgentExtension",
|
|
320
294
|
GraphqlConnections = "GraphqlConnections",
|
|
321
295
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
322
296
|
TicketMappings = "TicketMappings",
|
|
@@ -326,31 +300,8 @@ export declare enum Typenames {
|
|
|
326
300
|
export type UnassignTicketInput = {
|
|
327
301
|
ticketId: Scalars['ID']['input'];
|
|
328
302
|
};
|
|
329
|
-
export type
|
|
330
|
-
|
|
331
|
-
});
|
|
332
|
-
export type CreateDrozChatAgentMutationVariables = Exact<{
|
|
333
|
-
input: CreateDrozChatAgentInput;
|
|
334
|
-
}>;
|
|
335
|
-
export type CreateDrozChatAgentMutation = {
|
|
336
|
-
createDrozChatAgent: DrozChatAgentFragment;
|
|
337
|
-
};
|
|
338
|
-
export type ListDrozChatAgentsQueryVariables = Exact<{
|
|
339
|
-
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
340
|
-
}>;
|
|
341
|
-
export type ListDrozChatAgentsQuery = {
|
|
342
|
-
listDrozChatAgents: {
|
|
343
|
-
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
344
|
-
nodes: Array<DrozChatAgentFragment>;
|
|
345
|
-
};
|
|
346
|
-
};
|
|
347
|
-
export type GetDrozChatAgentQueryVariables = Exact<{
|
|
348
|
-
id: Scalars['ID']['input'];
|
|
349
|
-
}>;
|
|
350
|
-
export type GetDrozChatAgentQuery = {
|
|
351
|
-
getDrozChatAgent?: Maybe<DrozChatAgentFragment>;
|
|
352
|
-
};
|
|
353
|
-
export type CustomerFragment = Pick<TicketCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
|
|
303
|
+
export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
|
|
304
|
+
export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
|
|
354
305
|
export type DrozChatChannelFragment = Pick<TicketChannel, 'drn' | 'name' | 'appId' | 'appName'>;
|
|
355
306
|
export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & {
|
|
356
307
|
assignee?: Maybe<DrozChatAgentFragment>;
|
|
@@ -484,36 +435,30 @@ export type OnTicketMessageSubscription = {
|
|
|
484
435
|
message: TicketMessageFragment;
|
|
485
436
|
});
|
|
486
437
|
};
|
|
487
|
-
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
488
|
-
export declare const CustomerFragmentDoc = "\n fragment customer on
|
|
438
|
+
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
439
|
+
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
489
440
|
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
490
|
-
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
441
|
+
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
491
442
|
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 ";
|
|
492
|
-
export declare const
|
|
493
|
-
export declare const
|
|
494
|
-
export declare const
|
|
495
|
-
export declare const
|
|
496
|
-
export declare const
|
|
497
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
498
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
499
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n id\n }\n}\n \n\n fragment customer on TicketCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
443
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
444
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
445
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
446
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
447
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
500
448
|
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 ";
|
|
501
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
449
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
502
450
|
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
|
|
503
451
|
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 ";
|
|
504
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
505
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
506
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
507
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
508
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
509
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
510
|
-
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n
|
|
452
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
453
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
454
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
455
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
456
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
457
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
458
|
+
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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n ";
|
|
511
459
|
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 ";
|
|
512
460
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
513
461
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
514
|
-
createDrozChatAgent(variables: CreateDrozChatAgentMutationVariables, options?: C): Promise<CreateDrozChatAgentMutation>;
|
|
515
|
-
listDrozChatAgents(variables?: ListDrozChatAgentsQueryVariables, options?: C): Promise<ListDrozChatAgentsQuery>;
|
|
516
|
-
getDrozChatAgent(variables: GetDrozChatAgentQueryVariables, options?: C): Promise<GetDrozChatAgentQuery>;
|
|
517
462
|
getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
|
|
518
463
|
listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
|
|
519
464
|
listTicketsInQueue(variables?: ListTicketsInQueueQueryVariables, options?: C): Promise<ListTicketsInQueueQuery>;
|
package/src/sdks/drozchat.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.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -44,7 +44,6 @@ var TicketStatus;
|
|
|
44
44
|
var Typenames;
|
|
45
45
|
(function (Typenames) {
|
|
46
46
|
Typenames["Any"] = "Any";
|
|
47
|
-
Typenames["DrozChatAgentExtension"] = "DrozChatAgentExtension";
|
|
48
47
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
49
48
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
50
49
|
Typenames["TicketMappings"] = "TicketMappings";
|
|
@@ -55,15 +54,10 @@ exports.DrozChatAgentFragmentDoc = `
|
|
|
55
54
|
fragment drozChatAgent on DrozChatAgent {
|
|
56
55
|
id
|
|
57
56
|
name
|
|
58
|
-
createdAt
|
|
59
|
-
updatedAt
|
|
60
|
-
extension {
|
|
61
|
-
id
|
|
62
|
-
}
|
|
63
57
|
}
|
|
64
58
|
`;
|
|
65
59
|
exports.CustomerFragmentDoc = `
|
|
66
|
-
fragment customer on
|
|
60
|
+
fragment customer on DrozChatCustomer {
|
|
67
61
|
id
|
|
68
62
|
name
|
|
69
63
|
email
|
|
@@ -117,33 +111,6 @@ exports.TicketMessageFragmentDoc = `
|
|
|
117
111
|
updatedAt
|
|
118
112
|
}
|
|
119
113
|
`;
|
|
120
|
-
exports.CreateDrozChatAgentDocument = `
|
|
121
|
-
mutation createDrozChatAgent($input: CreateDrozChatAgentInput!) {
|
|
122
|
-
createDrozChatAgent(input: $input) {
|
|
123
|
-
...drozChatAgent
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
${exports.DrozChatAgentFragmentDoc}`;
|
|
127
|
-
exports.ListDrozChatAgentsDocument = `
|
|
128
|
-
query listDrozChatAgents($next: Base64) {
|
|
129
|
-
listDrozChatAgents(next: $next) {
|
|
130
|
-
pageInfo {
|
|
131
|
-
hasNext
|
|
132
|
-
next
|
|
133
|
-
}
|
|
134
|
-
nodes {
|
|
135
|
-
...drozChatAgent
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
${exports.DrozChatAgentFragmentDoc}`;
|
|
140
|
-
exports.GetDrozChatAgentDocument = `
|
|
141
|
-
query getDrozChatAgent($id: ID!) {
|
|
142
|
-
getDrozChatAgent(id: $id) {
|
|
143
|
-
...drozChatAgent
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
${exports.DrozChatAgentFragmentDoc}`;
|
|
147
114
|
exports.GetTicketDocument = `
|
|
148
115
|
query getTicket($id: ID!) {
|
|
149
116
|
getTicket(id: $id) {
|
|
@@ -305,15 +272,6 @@ exports.OnTicketMessageDocument = `
|
|
|
305
272
|
${exports.TicketMessageFragmentDoc}`;
|
|
306
273
|
function getSdk(requester) {
|
|
307
274
|
return {
|
|
308
|
-
createDrozChatAgent(variables, options) {
|
|
309
|
-
return requester(exports.CreateDrozChatAgentDocument, variables, options);
|
|
310
|
-
},
|
|
311
|
-
listDrozChatAgents(variables, options) {
|
|
312
|
-
return requester(exports.ListDrozChatAgentsDocument, variables, options);
|
|
313
|
-
},
|
|
314
|
-
getDrozChatAgent(variables, options) {
|
|
315
|
-
return requester(exports.GetDrozChatAgentDocument, variables, options);
|
|
316
|
-
},
|
|
317
275
|
getTicket(variables, options) {
|
|
318
276
|
return requester(exports.GetTicketDocument, variables, options);
|
|
319
277
|
},
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export type Scalars = {
|
|
|
74
74
|
output: string;
|
|
75
75
|
};
|
|
76
76
|
Set: {
|
|
77
|
-
input:
|
|
77
|
+
input: any;
|
|
78
78
|
output: any[];
|
|
79
79
|
};
|
|
80
80
|
URL: {
|
|
@@ -99,6 +99,10 @@ export type CreateDrozNexoAgentInput = {
|
|
|
99
99
|
groupIds: Scalars['Set']['input'];
|
|
100
100
|
name: Scalars['String']['input'];
|
|
101
101
|
};
|
|
102
|
+
export type CreateDrozNexoConnectionInput = {
|
|
103
|
+
destinationDrn: Scalars['DRN']['input'];
|
|
104
|
+
triggerDrn: Scalars['DRN']['input'];
|
|
105
|
+
};
|
|
102
106
|
export type DrozNexoAgent = {
|
|
103
107
|
createdAt: Scalars['DateTime']['output'];
|
|
104
108
|
email: Scalars['EmailAddress']['output'];
|
|
@@ -125,9 +129,40 @@ export type DrozNexoAgentsConnection = {
|
|
|
125
129
|
nodes: Array<DrozNexoAgent>;
|
|
126
130
|
pageInfo: PageInfo;
|
|
127
131
|
};
|
|
132
|
+
export type DrozNexoApp = {
|
|
133
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
134
|
+
id: Scalars['ID']['output'];
|
|
135
|
+
name: Scalars['String']['output'];
|
|
136
|
+
};
|
|
137
|
+
export type DrozNexoAppAndAppInstance = {
|
|
138
|
+
app: DrozNexoApp;
|
|
139
|
+
appInstance: DrozNexoAppInstance;
|
|
140
|
+
};
|
|
141
|
+
export type DrozNexoAppInstance = {
|
|
142
|
+
createdAt: Scalars['DateTime']['output'];
|
|
143
|
+
drn: Scalars['DRN']['output'];
|
|
144
|
+
name: Scalars['String']['output'];
|
|
145
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
146
|
+
};
|
|
147
|
+
export type DrozNexoConnection = {
|
|
148
|
+
destination: DrozNexoAppAndAppInstance;
|
|
149
|
+
id: Scalars['ID']['output'];
|
|
150
|
+
trigger: DrozNexoAppAndAppInstance;
|
|
151
|
+
versionId: Scalars['ID']['output'];
|
|
152
|
+
};
|
|
153
|
+
export type DrozNexoConnectionConnection = {
|
|
154
|
+
nodes: Array<DrozNexoConnection>;
|
|
155
|
+
pageInfo: PageInfo;
|
|
156
|
+
};
|
|
157
|
+
export type DrozNexoConnectionSuggestion = {
|
|
158
|
+
destination: DrozNexoAppAndAppInstance;
|
|
159
|
+
trigger: DrozNexoAppAndAppInstance;
|
|
160
|
+
};
|
|
128
161
|
export type Mutation = {
|
|
129
162
|
createDrozNexoAgent: DrozNexoAgent;
|
|
130
163
|
createDrozNexoAgentGroup: DrozNexoAgentGroup;
|
|
164
|
+
createDrozNexoConnection: DrozNexoConnection;
|
|
165
|
+
removeDrozNexoConnection: DrozNexoConnection;
|
|
131
166
|
version?: Maybe<Scalars['String']['output']>;
|
|
132
167
|
};
|
|
133
168
|
export type MutationCreateDrozNexoAgentArgs = {
|
|
@@ -136,6 +171,12 @@ export type MutationCreateDrozNexoAgentArgs = {
|
|
|
136
171
|
export type MutationCreateDrozNexoAgentGroupArgs = {
|
|
137
172
|
input: CreateDrozNexoAgentGroupInput;
|
|
138
173
|
};
|
|
174
|
+
export type MutationCreateDrozNexoConnectionArgs = {
|
|
175
|
+
input: CreateDrozNexoConnectionInput;
|
|
176
|
+
};
|
|
177
|
+
export type MutationRemoveDrozNexoConnectionArgs = {
|
|
178
|
+
input: RemoveDrozNexoConnectionInput;
|
|
179
|
+
};
|
|
139
180
|
export type PageInfo = {
|
|
140
181
|
hasNext: Scalars['Boolean']['output'];
|
|
141
182
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
@@ -146,6 +187,8 @@ export type Query = {
|
|
|
146
187
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
147
188
|
listDrozNexoAgentGroups: DrozNexoAgentGroupsConnection;
|
|
148
189
|
listDrozNexoAgents: DrozNexoAgentsConnection;
|
|
190
|
+
listDrozNexoConnections: DrozNexoConnectionConnection;
|
|
191
|
+
listDrozNexoSuggestions: Array<DrozNexoConnectionSuggestion>;
|
|
149
192
|
version?: Maybe<Scalars['String']['output']>;
|
|
150
193
|
};
|
|
151
194
|
export type QueryGetDrozNexoAgentArgs = {
|
|
@@ -157,6 +200,13 @@ export type QueryListDrozNexoAgentGroupsArgs = {
|
|
|
157
200
|
export type QueryListDrozNexoAgentsArgs = {
|
|
158
201
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
159
202
|
};
|
|
203
|
+
export type QueryListDrozNexoConnectionsArgs = {
|
|
204
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
205
|
+
};
|
|
206
|
+
export type RemoveDrozNexoConnectionInput = {
|
|
207
|
+
id: Scalars['ID']['input'];
|
|
208
|
+
versionId: Scalars['ID']['input'];
|
|
209
|
+
};
|
|
160
210
|
export declare enum Typenames {
|
|
161
211
|
Any = "Any",
|
|
162
212
|
DrozNexoAgentExtension = "DrozNexoAgentExtension",
|
|
@@ -206,13 +256,59 @@ export type ListDrozNexoAgentGroupsQuery = {
|
|
|
206
256
|
nodes: Array<DrozNexoAgentGroupFragment>;
|
|
207
257
|
};
|
|
208
258
|
};
|
|
259
|
+
export type DrozNexoAppInstanceFragment = {
|
|
260
|
+
app: Pick<DrozNexoApp, 'id' | 'name' | 'description'>;
|
|
261
|
+
appInstance: Pick<DrozNexoAppInstance, 'drn' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
262
|
+
};
|
|
263
|
+
export type DrozNexoSuggestionFragment = {
|
|
264
|
+
trigger: DrozNexoAppInstanceFragment;
|
|
265
|
+
destination: DrozNexoAppInstanceFragment;
|
|
266
|
+
};
|
|
267
|
+
export type DrozNexoConnectionFragment = (Pick<DrozNexoConnection, 'id' | 'versionId'> & {
|
|
268
|
+
trigger: DrozNexoAppInstanceFragment;
|
|
269
|
+
destination: DrozNexoAppInstanceFragment;
|
|
270
|
+
});
|
|
271
|
+
export type ListDrozNexoSuggestionsQueryVariables = Exact<{
|
|
272
|
+
[key: string]: never;
|
|
273
|
+
}>;
|
|
274
|
+
export type ListDrozNexoSuggestionsQuery = {
|
|
275
|
+
listDrozNexoSuggestions: Array<DrozNexoSuggestionFragment>;
|
|
276
|
+
};
|
|
277
|
+
export type ListDrozNexoConnectionsQueryVariables = Exact<{
|
|
278
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
279
|
+
}>;
|
|
280
|
+
export type ListDrozNexoConnectionsQuery = {
|
|
281
|
+
listDrozNexoConnections: {
|
|
282
|
+
nodes: Array<DrozNexoConnectionFragment>;
|
|
283
|
+
pageInfo: Pick<PageInfo, 'next' | 'hasNext'>;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
export type CreateDrozNexoConnectionMutationVariables = Exact<{
|
|
287
|
+
input: CreateDrozNexoConnectionInput;
|
|
288
|
+
}>;
|
|
289
|
+
export type CreateDrozNexoConnectionMutation = {
|
|
290
|
+
createDrozNexoConnection: DrozNexoConnectionFragment;
|
|
291
|
+
};
|
|
292
|
+
export type RemoveDrozNexoConnectionMutationVariables = Exact<{
|
|
293
|
+
input: RemoveDrozNexoConnectionInput;
|
|
294
|
+
}>;
|
|
295
|
+
export type RemoveDrozNexoConnectionMutation = {
|
|
296
|
+
removeDrozNexoConnection: DrozNexoConnectionFragment;
|
|
297
|
+
};
|
|
209
298
|
export declare const DrozNexoAgentGroupFragmentDoc = "\n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
210
299
|
export declare const DrozNexoAgentFragmentDoc = "\n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
300
|
+
export declare const DrozNexoAppInstanceFragmentDoc = "\n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
301
|
+
export declare const DrozNexoSuggestionFragmentDoc = "\n fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
302
|
+
export declare const DrozNexoConnectionFragmentDoc = "\n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
211
303
|
export declare const CreateDrozNexoAgentDocument = "\n mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {\n createDrozNexoAgent(input: $input) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
212
304
|
export declare const ListDrozNexoAgentsDocument = "\n query listDrozNexoAgents($next: Base64) {\n listDrozNexoAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgent\n }\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
213
305
|
export declare const GetDrozNexoAgentDocument = "\n query getDrozNexoAgent($id: ID!) {\n getDrozNexoAgent(id: $id) {\n ...drozNexoAgent\n }\n}\n \n fragment drozNexoAgent on DrozNexoAgent {\n id\n name\n createdAt\n updatedAt\n extension {\n groupIds\n groups {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
214
306
|
export declare const CreateDrozNexoAgentGroupDocument = "\n mutation createDrozNexoAgentGroup($input: CreateDrozNexoAgentGroupInput!) {\n createDrozNexoAgentGroup(input: $input) {\n ...drozNexoAgentGroup\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
215
307
|
export declare const ListDrozNexoAgentGroupsDocument = "\n query listDrozNexoAgentGroups($next: Base64) {\n listDrozNexoAgentGroups(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...drozNexoAgentGroup\n }\n }\n}\n \n fragment drozNexoAgentGroup on DrozNexoAgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
308
|
+
export declare const ListDrozNexoSuggestionsDocument = "\n query listDrozNexoSuggestions {\n listDrozNexoSuggestions {\n ...drozNexoSuggestion\n }\n}\n \n fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
309
|
+
export declare const ListDrozNexoConnectionsDocument = "\n query listDrozNexoConnections($next: Base64) {\n listDrozNexoConnections(next: $next) {\n nodes {\n ...drozNexoConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
310
|
+
export declare const CreateDrozNexoConnectionDocument = "\n mutation createDrozNexoConnection($input: CreateDrozNexoConnectionInput!) {\n createDrozNexoConnection(input: $input) {\n ...drozNexoConnection\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
311
|
+
export declare const RemoveDrozNexoConnectionDocument = "\n mutation removeDrozNexoConnection($input: RemoveDrozNexoConnectionInput!) {\n removeDrozNexoConnection(input: $input) {\n ...drozNexoConnection\n }\n}\n \n fragment drozNexoConnection on DrozNexoConnection {\n id\n versionId\n trigger {\n ...drozNexoAppInstance\n }\n destination {\n ...drozNexoAppInstance\n }\n}\n \n fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n createdAt\n updatedAt\n }\n}\n ";
|
|
216
312
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
217
313
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
218
314
|
createDrozNexoAgent(variables: CreateDrozNexoAgentMutationVariables, options?: C): Promise<CreateDrozNexoAgentMutation>;
|
|
@@ -220,6 +316,10 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
220
316
|
getDrozNexoAgent(variables: GetDrozNexoAgentQueryVariables, options?: C): Promise<GetDrozNexoAgentQuery>;
|
|
221
317
|
createDrozNexoAgentGroup(variables: CreateDrozNexoAgentGroupMutationVariables, options?: C): Promise<CreateDrozNexoAgentGroupMutation>;
|
|
222
318
|
listDrozNexoAgentGroups(variables?: ListDrozNexoAgentGroupsQueryVariables, options?: C): Promise<ListDrozNexoAgentGroupsQuery>;
|
|
319
|
+
listDrozNexoSuggestions(variables?: ListDrozNexoSuggestionsQueryVariables, options?: C): Promise<ListDrozNexoSuggestionsQuery>;
|
|
320
|
+
listDrozNexoConnections(variables?: ListDrozNexoConnectionsQueryVariables, options?: C): Promise<ListDrozNexoConnectionsQuery>;
|
|
321
|
+
createDrozNexoConnection(variables: CreateDrozNexoConnectionMutationVariables, options?: C): Promise<CreateDrozNexoConnectionMutation>;
|
|
322
|
+
removeDrozNexoConnection(variables: RemoveDrozNexoConnectionMutationVariables, options?: C): Promise<RemoveDrozNexoConnectionMutation>;
|
|
223
323
|
};
|
|
224
324
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
225
325
|
export declare const serviceName = "@droz/droznexo";
|
package/src/sdks/droznexo.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.ListDrozNexoAgentGroupsDocument = exports.CreateDrozNexoAgentGroupDocument = exports.GetDrozNexoAgentDocument = exports.ListDrozNexoAgentsDocument = exports.CreateDrozNexoAgentDocument = exports.DrozNexoAgentFragmentDoc = exports.DrozNexoAgentGroupFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveDrozNexoConnectionDocument = exports.CreateDrozNexoConnectionDocument = exports.ListDrozNexoConnectionsDocument = exports.ListDrozNexoSuggestionsDocument = exports.ListDrozNexoAgentGroupsDocument = exports.CreateDrozNexoAgentGroupDocument = exports.GetDrozNexoAgentDocument = exports.ListDrozNexoAgentsDocument = exports.CreateDrozNexoAgentDocument = exports.DrozNexoConnectionFragmentDoc = exports.DrozNexoSuggestionFragmentDoc = exports.DrozNexoAppInstanceFragmentDoc = exports.DrozNexoAgentFragmentDoc = exports.DrozNexoAgentGroupFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -38,6 +38,43 @@ exports.DrozNexoAgentFragmentDoc = `
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
41
|
+
exports.DrozNexoAppInstanceFragmentDoc = `
|
|
42
|
+
fragment drozNexoAppInstance on DrozNexoAppAndAppInstance {
|
|
43
|
+
app {
|
|
44
|
+
id
|
|
45
|
+
name
|
|
46
|
+
description
|
|
47
|
+
}
|
|
48
|
+
appInstance {
|
|
49
|
+
drn
|
|
50
|
+
name
|
|
51
|
+
createdAt
|
|
52
|
+
updatedAt
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`;
|
|
56
|
+
exports.DrozNexoSuggestionFragmentDoc = `
|
|
57
|
+
fragment drozNexoSuggestion on DrozNexoConnectionSuggestion {
|
|
58
|
+
trigger {
|
|
59
|
+
...drozNexoAppInstance
|
|
60
|
+
}
|
|
61
|
+
destination {
|
|
62
|
+
...drozNexoAppInstance
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
${exports.DrozNexoAppInstanceFragmentDoc}`;
|
|
66
|
+
exports.DrozNexoConnectionFragmentDoc = `
|
|
67
|
+
fragment drozNexoConnection on DrozNexoConnection {
|
|
68
|
+
id
|
|
69
|
+
versionId
|
|
70
|
+
trigger {
|
|
71
|
+
...drozNexoAppInstance
|
|
72
|
+
}
|
|
73
|
+
destination {
|
|
74
|
+
...drozNexoAppInstance
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
${exports.DrozNexoAppInstanceFragmentDoc}`;
|
|
41
78
|
exports.CreateDrozNexoAgentDocument = `
|
|
42
79
|
mutation createDrozNexoAgent($input: CreateDrozNexoAgentInput!) {
|
|
43
80
|
createDrozNexoAgent(input: $input) {
|
|
@@ -85,6 +122,40 @@ exports.ListDrozNexoAgentGroupsDocument = `
|
|
|
85
122
|
}
|
|
86
123
|
}
|
|
87
124
|
${exports.DrozNexoAgentGroupFragmentDoc}`;
|
|
125
|
+
exports.ListDrozNexoSuggestionsDocument = `
|
|
126
|
+
query listDrozNexoSuggestions {
|
|
127
|
+
listDrozNexoSuggestions {
|
|
128
|
+
...drozNexoSuggestion
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
${exports.DrozNexoSuggestionFragmentDoc}`;
|
|
132
|
+
exports.ListDrozNexoConnectionsDocument = `
|
|
133
|
+
query listDrozNexoConnections($next: Base64) {
|
|
134
|
+
listDrozNexoConnections(next: $next) {
|
|
135
|
+
nodes {
|
|
136
|
+
...drozNexoConnection
|
|
137
|
+
}
|
|
138
|
+
pageInfo {
|
|
139
|
+
next
|
|
140
|
+
hasNext
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
${exports.DrozNexoConnectionFragmentDoc}`;
|
|
145
|
+
exports.CreateDrozNexoConnectionDocument = `
|
|
146
|
+
mutation createDrozNexoConnection($input: CreateDrozNexoConnectionInput!) {
|
|
147
|
+
createDrozNexoConnection(input: $input) {
|
|
148
|
+
...drozNexoConnection
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
${exports.DrozNexoConnectionFragmentDoc}`;
|
|
152
|
+
exports.RemoveDrozNexoConnectionDocument = `
|
|
153
|
+
mutation removeDrozNexoConnection($input: RemoveDrozNexoConnectionInput!) {
|
|
154
|
+
removeDrozNexoConnection(input: $input) {
|
|
155
|
+
...drozNexoConnection
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
${exports.DrozNexoConnectionFragmentDoc}`;
|
|
88
159
|
function getSdk(requester) {
|
|
89
160
|
return {
|
|
90
161
|
createDrozNexoAgent(variables, options) {
|
|
@@ -101,6 +172,18 @@ function getSdk(requester) {
|
|
|
101
172
|
},
|
|
102
173
|
listDrozNexoAgentGroups(variables, options) {
|
|
103
174
|
return requester(exports.ListDrozNexoAgentGroupsDocument, variables, options);
|
|
175
|
+
},
|
|
176
|
+
listDrozNexoSuggestions(variables, options) {
|
|
177
|
+
return requester(exports.ListDrozNexoSuggestionsDocument, variables, options);
|
|
178
|
+
},
|
|
179
|
+
listDrozNexoConnections(variables, options) {
|
|
180
|
+
return requester(exports.ListDrozNexoConnectionsDocument, variables, options);
|
|
181
|
+
},
|
|
182
|
+
createDrozNexoConnection(variables, options) {
|
|
183
|
+
return requester(exports.CreateDrozNexoConnectionDocument, variables, options);
|
|
184
|
+
},
|
|
185
|
+
removeDrozNexoConnection(variables, options) {
|
|
186
|
+
return requester(exports.RemoveDrozNexoConnectionDocument, variables, options);
|
|
104
187
|
}
|
|
105
188
|
};
|
|
106
189
|
}
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ export type Scalars = {
|
|
|
74
74
|
output: string;
|
|
75
75
|
};
|
|
76
76
|
Set: {
|
|
77
|
-
input:
|
|
77
|
+
input: any;
|
|
78
78
|
output: any[];
|
|
79
79
|
};
|
|
80
80
|
URL: {
|
|
@@ -213,6 +213,7 @@ export type CronJob = {
|
|
|
213
213
|
timestamp: Scalars['DateTime']['output'];
|
|
214
214
|
};
|
|
215
215
|
export type Customer = {
|
|
216
|
+
apps?: Maybe<Array<App>>;
|
|
216
217
|
createdAt: Scalars['DateTime']['output'];
|
|
217
218
|
email: Scalars['String']['output'];
|
|
218
219
|
externalId?: Maybe<Scalars['ID']['output']>;
|
|
@@ -234,11 +235,11 @@ export type EditStateMachineConfigInput = {
|
|
|
234
235
|
id: Scalars['ID']['input'];
|
|
235
236
|
};
|
|
236
237
|
export type GetOrCreateCustomerInput = {
|
|
237
|
-
email?: InputMaybe<Scalars['
|
|
238
|
+
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
238
239
|
externalId?: InputMaybe<Scalars['ID']['input']>;
|
|
239
240
|
id?: InputMaybe<Scalars['ID']['input']>;
|
|
240
241
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
241
|
-
phone?: InputMaybe<Scalars['
|
|
242
|
+
phone?: InputMaybe<Scalars['PhoneNumber']['input']>;
|
|
242
243
|
};
|
|
243
244
|
export type ICredentials = {
|
|
244
245
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -413,7 +414,7 @@ export type QueryGetAppArgs = {
|
|
|
413
414
|
appId: Scalars['ID']['input'];
|
|
414
415
|
};
|
|
415
416
|
export type QueryGetAppInstanceArgs = {
|
|
416
|
-
drn: Scalars['
|
|
417
|
+
drn: Scalars['ID']['input'];
|
|
417
418
|
};
|
|
418
419
|
export type QueryGetCredentialsArgs = {
|
|
419
420
|
id: Scalars['ID']['input'];
|
|
@@ -457,6 +458,14 @@ export type QueryListCronJobsByAppIdArgs = {
|
|
|
457
458
|
export type QueryListCustomersArgs = {
|
|
458
459
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
459
460
|
};
|
|
461
|
+
export type QueryListDraftStateMachineConfigsArgs = {
|
|
462
|
+
createdByAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
463
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
464
|
+
};
|
|
465
|
+
export type QueryListLiveStateMachineConfigsArgs = {
|
|
466
|
+
createdByAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
467
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
468
|
+
};
|
|
460
469
|
export type QueryListStateMachineConfigVersionsArgs = {
|
|
461
470
|
id: Scalars['ID']['input'];
|
|
462
471
|
};
|
|
@@ -520,6 +529,8 @@ export type StartSessionInput = {
|
|
|
520
529
|
};
|
|
521
530
|
export type StateMachineConfig = {
|
|
522
531
|
createdAt: Scalars['DateTime']['output'];
|
|
532
|
+
createdByApp?: Maybe<App>;
|
|
533
|
+
createdByAppId?: Maybe<Scalars['ID']['output']>;
|
|
523
534
|
description?: Maybe<Scalars['String']['output']>;
|
|
524
535
|
id: Scalars['ID']['output'];
|
|
525
536
|
stateMachineId: Scalars['ID']['output'];
|
|
@@ -667,12 +678,11 @@ export type ListAppsQuery = {
|
|
|
667
678
|
} & AppFragment)>;
|
|
668
679
|
};
|
|
669
680
|
export type GetAppInstanceQueryVariables = Exact<{
|
|
670
|
-
drn: Scalars['
|
|
681
|
+
drn: Scalars['ID']['input'];
|
|
671
682
|
}>;
|
|
672
683
|
export type GetAppInstanceQuery = {
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
} & AppInstanceFragment)>;
|
|
684
|
+
appInstance?: Maybe<AppInstanceFragment>;
|
|
685
|
+
app?: Maybe<AppFragment>;
|
|
676
686
|
};
|
|
677
687
|
export type ListAppInstancesQueryVariables = Exact<{
|
|
678
688
|
appId?: InputMaybe<Scalars['ID']['input']>;
|
|
@@ -751,7 +761,9 @@ export type RemoveCredentialsMutationVariables = Exact<{
|
|
|
751
761
|
export type RemoveCredentialsMutation = {
|
|
752
762
|
removeCredentials?: Maybe<SafeCredentialsFragment>;
|
|
753
763
|
};
|
|
754
|
-
export type CustomerFragment = Pick<Customer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'
|
|
764
|
+
export type CustomerFragment = (Pick<Customer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'> & {
|
|
765
|
+
apps?: Maybe<Array<Pick<App, 'id' | 'name'>>>;
|
|
766
|
+
});
|
|
755
767
|
export type GetCustomerQueryVariables = Exact<{
|
|
756
768
|
identifier: Scalars['ID']['input'];
|
|
757
769
|
}>;
|
|
@@ -851,13 +863,15 @@ export type GetStateMachineQuery = {
|
|
|
851
863
|
getStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
852
864
|
};
|
|
853
865
|
export type ListLiveStateMachineConfigsQueryVariables = Exact<{
|
|
854
|
-
[
|
|
866
|
+
createdByAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
867
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
855
868
|
}>;
|
|
856
869
|
export type ListLiveStateMachineConfigsQuery = {
|
|
857
870
|
listLiveStateMachineConfigs: StateMachineConfigConnectionFragment;
|
|
858
871
|
};
|
|
859
872
|
export type ListDraftStateMachineConfigsQueryVariables = Exact<{
|
|
860
|
-
[
|
|
873
|
+
createdByAppId?: InputMaybe<Scalars['ID']['input']>;
|
|
874
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
861
875
|
}>;
|
|
862
876
|
export type ListDraftStateMachineConfigsQuery = {
|
|
863
877
|
listDraftStateMachineConfigs: StateMachineConfigConnectionFragment;
|
|
@@ -926,7 +940,7 @@ export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type
|
|
|
926
940
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
927
941
|
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 createdAt\n updatedAt\n}\n ";
|
|
928
942
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
929
|
-
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
943
|
+
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
930
944
|
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 ";
|
|
931
945
|
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n ";
|
|
932
946
|
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
@@ -940,7 +954,7 @@ export declare const UpdateAgentDocument = "\n mutation updateAgent($input: U
|
|
|
940
954
|
export declare const RemoveAgentDocument = "\n mutation removeAgent($input: RemoveAgentInput!) {\n removeAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
941
955
|
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 createdAt\n updatedAt\n}\n ";
|
|
942
956
|
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 createdAt\n updatedAt\n}\n ";
|
|
943
|
-
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn:
|
|
957
|
+
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
944
958
|
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 createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
945
959
|
export declare const RegisterAppInstanceDocument = "\n mutation registerAppInstance($input: RegisterAppInstanceInput!) {\n registerAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
946
960
|
export declare const UnregisterAppInstanceDocument = "\n mutation unregisterAppInstance($input: UnregisterAppInstanceInput!) {\n unregisterAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
@@ -952,21 +966,21 @@ export declare const ListCredentialsDocument = "\n query listCredentials($typ
|
|
|
952
966
|
export declare const CreateCredentialsDocument = "\n mutation createCredentials($input: CreateCredentialsInput!) {\n createCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
953
967
|
export declare const UpdateCredentialsDocument = "\n mutation updateCredentials($input: UpdateCredentialsInput!) {\n updateCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
954
968
|
export declare const RemoveCredentialsDocument = "\n mutation removeCredentials($input: RemoveCredentialsInput!) {\n removeCredentials(input: $input) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n createdAt\n updatedAt\n}\n ";
|
|
955
|
-
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
956
|
-
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
957
|
-
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
969
|
+
export declare const GetCustomerDocument = "\n query getCustomer($identifier: ID!) {\n getCustomer(identifier: $identifier) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
970
|
+
export declare const ListCustomersDocument = "\n query listCustomers($next: Base64) {\n listCustomers(next: $next) {\n nodes {\n ...customer\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
971
|
+
export declare const GetOrCreateCustomerDocument = "\n mutation getOrCreateCustomer($input: GetOrCreateCustomerInput!) {\n getOrCreateCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
958
972
|
export declare const GetCronJobDocument = "\n query getCronJob($id: ID!) {\n getCronJob(id: $id) {\n ...cronJob\n }\n}\n \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 ";
|
|
959
973
|
export declare const ListCronJobsDocument = "\n query listCronJobs {\n listCronJobs {\n ...cronJob\n }\n}\n \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 ";
|
|
960
974
|
export declare const CreateCronJobDocument = "\n mutation createCronJob($input: CreateCronJobInput!) {\n createCronJob(input: $input) {\n ...cronJob\n }\n}\n \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 ";
|
|
961
975
|
export declare const UpdateCronJobDocument = "\n mutation updateCronJob($input: UpdateCronJobInput!) {\n updateCronJob(input: $input) {\n ...cronJob\n }\n}\n \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 ";
|
|
962
976
|
export declare const RemoveCronJobDocument = "\n mutation removeCronJob($input: RemoveCronJobInput!) {\n removeCronJob(input: $input) {\n ...cronJob\n }\n}\n \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 ";
|
|
963
|
-
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
964
|
-
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n ";
|
|
977
|
+
export declare const StartSessionDocument = "\n mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) {\n startSession(input: $input) {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n customer @include(if: $withCustomer) {\n ...customer\n }\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
978
|
+
export declare const GetSessionDocument = "\n query getSession($sessionId: ID!, $withCustomer: Boolean = true, $withAttributes: Boolean = true) {\n getSession(sessionId: $sessionId) {\n ...session\n customer @include(if: $withCustomer) {\n ...customer\n }\n attributes @include(if: $withAttributes)\n }\n}\n \n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n phone\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
965
979
|
export declare const SetSessionAttributeDocument = "\n mutation setSessionAttribute($input: SetSessionAttributeInput!) {\n setSessionAttribute(input: $input)\n}\n ";
|
|
966
980
|
export declare const PatchSessionAttributesDocument = "\n mutation patchSessionAttributes($input: PatchSessionAttributesInput!) {\n patchSessionAttributes(input: $input)\n}\n ";
|
|
967
981
|
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 createdAt\n updatedAt\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 ";
|
|
968
|
-
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 createdAt\n updatedAt\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 ";
|
|
969
|
-
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 createdAt\n updatedAt\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 ";
|
|
982
|
+
export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs($createdByAppId: ID, $next: Base64) {\n listLiveStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {\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 createdAt\n updatedAt\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 ";
|
|
983
|
+
export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs($createdByAppId: ID, $next: Base64) {\n listDraftStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {\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 createdAt\n updatedAt\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 ";
|
|
970
984
|
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 createdAt\n updatedAt\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 ";
|
|
971
985
|
export declare const GetXStateMachineConfigDocument = "\n query getXStateMachineConfig($id: ID!, $versionId: ID!) {\n getXStateMachineConfig(id: $id, versionId: $versionId)\n}\n ";
|
|
972
986
|
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 createdAt\n updatedAt\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 ";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -109,6 +109,10 @@ exports.CustomerFragmentDoc = `
|
|
|
109
109
|
name
|
|
110
110
|
email
|
|
111
111
|
phone
|
|
112
|
+
apps {
|
|
113
|
+
id
|
|
114
|
+
name
|
|
115
|
+
}
|
|
112
116
|
createdAt
|
|
113
117
|
updatedAt
|
|
114
118
|
}
|
|
@@ -240,12 +244,12 @@ exports.ListAppsDocument = `
|
|
|
240
244
|
${exports.AppFragmentDoc}
|
|
241
245
|
${exports.AppInstanceFragmentDoc}`;
|
|
242
246
|
exports.GetAppInstanceDocument = `
|
|
243
|
-
query getAppInstance($drn:
|
|
244
|
-
getAppInstance(drn: $drn) {
|
|
247
|
+
query getAppInstance($drn: ID!) {
|
|
248
|
+
appInstance: getAppInstance(drn: $drn) {
|
|
245
249
|
...appInstance
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
250
|
+
}
|
|
251
|
+
app: getApp(appId: $drn) {
|
|
252
|
+
...app
|
|
249
253
|
}
|
|
250
254
|
}
|
|
251
255
|
${exports.AppInstanceFragmentDoc}
|
|
@@ -465,15 +469,15 @@ exports.GetStateMachineDocument = `
|
|
|
465
469
|
}
|
|
466
470
|
${exports.StateMachineConfigFragmentDoc}`;
|
|
467
471
|
exports.ListLiveStateMachineConfigsDocument = `
|
|
468
|
-
query listLiveStateMachineConfigs {
|
|
469
|
-
listLiveStateMachineConfigs {
|
|
472
|
+
query listLiveStateMachineConfigs($createdByAppId: ID, $next: Base64) {
|
|
473
|
+
listLiveStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {
|
|
470
474
|
...stateMachineConfigConnection
|
|
471
475
|
}
|
|
472
476
|
}
|
|
473
477
|
${exports.StateMachineConfigConnectionFragmentDoc}`;
|
|
474
478
|
exports.ListDraftStateMachineConfigsDocument = `
|
|
475
|
-
query listDraftStateMachineConfigs {
|
|
476
|
-
listDraftStateMachineConfigs {
|
|
479
|
+
query listDraftStateMachineConfigs($createdByAppId: ID, $next: Base64) {
|
|
480
|
+
listDraftStateMachineConfigs(createdByAppId: $createdByAppId, next: $next) {
|
|
477
481
|
...stateMachineConfigConnection
|
|
478
482
|
}
|
|
479
483
|
}
|