@droz-js/sdk 0.1.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/README.md +44 -0
- package/package.json +32 -0
- package/src/client/config.d.ts +19 -0
- package/src/client/config.js +68 -0
- package/src/client/http.d.ts +4 -0
- package/src/client/http.js +67 -0
- package/src/client/ws.d.ts +4 -0
- package/src/client/ws.js +72 -0
- package/src/drozbot.d.ts +20 -0
- package/src/drozbot.js +23 -0
- package/src/drozchat-ws.d.ts +18 -0
- package/src/drozchat-ws.js +21 -0
- package/src/drozchat.d.ts +20 -0
- package/src/drozchat.js +23 -0
- package/src/droznexo.d.ts +18 -0
- package/src/droznexo.js +21 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +5 -0
- package/src/nucleus.d.ts +68 -0
- package/src/nucleus.js +21 -0
- package/src/reclameaqui.d.ts +20 -0
- package/src/reclameaqui.js +23 -0
- package/src/sdks/drozbot.d.ts +190 -0
- package/src/sdks/drozbot.js +76 -0
- package/src/sdks/drozchat.d.ts +524 -0
- package/src/sdks/drozchat.js +383 -0
- package/src/sdks/droznexo.d.ts +218 -0
- package/src/sdks/droznexo.js +109 -0
- package/src/sdks/nucleus.d.ts +658 -0
- package/src/sdks/nucleus.js +330 -0
- package/src/sdks/reclameaqui.d.ts +188 -0
- package/src/sdks/reclameaqui.js +75 -0
- package/src/sdks/zendesk.d.ts +205 -0
- package/src/sdks/zendesk.js +76 -0
- package/src/zendesk.d.ts +20 -0
- package/src/zendesk.js +23 -0
|
@@ -0,0 +1,658 @@
|
|
|
1
|
+
import Observable from 'zen-observable';
|
|
2
|
+
export type Maybe<T> = T;
|
|
3
|
+
export type InputMaybe<T> = T;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type MakeEmpty<T extends {
|
|
16
|
+
[key: string]: unknown;
|
|
17
|
+
}, K extends keyof T> = {
|
|
18
|
+
[_ in K]?: never;
|
|
19
|
+
};
|
|
20
|
+
export type Incremental<T> = T | {
|
|
21
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
22
|
+
};
|
|
23
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
24
|
+
export type Scalars = {
|
|
25
|
+
ID: {
|
|
26
|
+
input: string;
|
|
27
|
+
output: string;
|
|
28
|
+
};
|
|
29
|
+
String: {
|
|
30
|
+
input: string;
|
|
31
|
+
output: string;
|
|
32
|
+
};
|
|
33
|
+
Boolean: {
|
|
34
|
+
input: boolean;
|
|
35
|
+
output: boolean;
|
|
36
|
+
};
|
|
37
|
+
Int: {
|
|
38
|
+
input: number;
|
|
39
|
+
output: number;
|
|
40
|
+
};
|
|
41
|
+
Float: {
|
|
42
|
+
input: number;
|
|
43
|
+
output: number;
|
|
44
|
+
};
|
|
45
|
+
Base64: {
|
|
46
|
+
input: object;
|
|
47
|
+
output: string;
|
|
48
|
+
};
|
|
49
|
+
DRN: {
|
|
50
|
+
input: string;
|
|
51
|
+
output: string;
|
|
52
|
+
};
|
|
53
|
+
Date: {
|
|
54
|
+
input: Date;
|
|
55
|
+
output: Date;
|
|
56
|
+
};
|
|
57
|
+
DateTime: {
|
|
58
|
+
input: Date;
|
|
59
|
+
output: Date;
|
|
60
|
+
};
|
|
61
|
+
EmailAddress: {
|
|
62
|
+
input: string;
|
|
63
|
+
output: string;
|
|
64
|
+
};
|
|
65
|
+
JSON: {
|
|
66
|
+
input: any;
|
|
67
|
+
output: any;
|
|
68
|
+
};
|
|
69
|
+
JSONObject: {
|
|
70
|
+
input: any;
|
|
71
|
+
output: any;
|
|
72
|
+
};
|
|
73
|
+
Set: {
|
|
74
|
+
input: any;
|
|
75
|
+
output: any;
|
|
76
|
+
};
|
|
77
|
+
URL: {
|
|
78
|
+
input: string;
|
|
79
|
+
output: string;
|
|
80
|
+
};
|
|
81
|
+
Void: {
|
|
82
|
+
input: void;
|
|
83
|
+
output: void;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
export type ApiKeyCredentials = {
|
|
87
|
+
apiKey: Scalars['String']['output'];
|
|
88
|
+
};
|
|
89
|
+
export type ApiKeyCredentialsType = ICredentials & {
|
|
90
|
+
credentials: ApiKeyCredentials;
|
|
91
|
+
description: Scalars['String']['output'];
|
|
92
|
+
id: Scalars['ID']['output'];
|
|
93
|
+
type: CredentialsType;
|
|
94
|
+
};
|
|
95
|
+
export type App = {
|
|
96
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
97
|
+
id: Scalars['ID']['output'];
|
|
98
|
+
instances: Array<AppInstance>;
|
|
99
|
+
name: Scalars['String']['output'];
|
|
100
|
+
type: AppType;
|
|
101
|
+
};
|
|
102
|
+
export type AppInstance = {
|
|
103
|
+
app: App;
|
|
104
|
+
appId: Scalars['ID']['output'];
|
|
105
|
+
appType: AppType;
|
|
106
|
+
drn: Scalars['DRN']['output'];
|
|
107
|
+
name: Scalars['String']['output'];
|
|
108
|
+
transitions?: Maybe<Array<Scalars['String']['output']>>;
|
|
109
|
+
};
|
|
110
|
+
export declare enum AppType {
|
|
111
|
+
Regular = "Regular",
|
|
112
|
+
Trigger = "Trigger"
|
|
113
|
+
}
|
|
114
|
+
export type AuthInfo = {
|
|
115
|
+
authenticationEndpoint: Scalars['String']['output'];
|
|
116
|
+
cognitoConfig: CognitoConfig;
|
|
117
|
+
jwtIssuer: Scalars['String']['output'];
|
|
118
|
+
loginUrl: Scalars['String']['output'];
|
|
119
|
+
logoutUrl: Scalars['String']['output'];
|
|
120
|
+
};
|
|
121
|
+
export type BasicCredentials = {
|
|
122
|
+
password: Scalars['String']['output'];
|
|
123
|
+
username: Scalars['String']['output'];
|
|
124
|
+
};
|
|
125
|
+
export type BasicCredentialsType = ICredentials & {
|
|
126
|
+
credentials: BasicCredentials;
|
|
127
|
+
description: Scalars['String']['output'];
|
|
128
|
+
id: Scalars['ID']['output'];
|
|
129
|
+
type: CredentialsType;
|
|
130
|
+
};
|
|
131
|
+
export type CognitoConfig = {
|
|
132
|
+
region: Scalars['String']['output'];
|
|
133
|
+
userPoolId: Scalars['String']['output'];
|
|
134
|
+
userPoolWebClientId: Scalars['String']['output'];
|
|
135
|
+
};
|
|
136
|
+
export type CreateCredentialsInput = {
|
|
137
|
+
credentials: Scalars['JSON']['input'];
|
|
138
|
+
description: Scalars['String']['input'];
|
|
139
|
+
type: CredentialsType;
|
|
140
|
+
};
|
|
141
|
+
export type CreateCronJobInput = {
|
|
142
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
143
|
+
event: Scalars['String']['input'];
|
|
144
|
+
expression: Scalars['String']['input'];
|
|
145
|
+
payload: Scalars['JSON']['input'];
|
|
146
|
+
};
|
|
147
|
+
export type CreateStateMachineConfigStateInput = {
|
|
148
|
+
id: Scalars['ID']['input'];
|
|
149
|
+
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
150
|
+
on: Array<StateMachineConfigStatesOnInput>;
|
|
151
|
+
stateId: Scalars['ID']['input'];
|
|
152
|
+
versionId: Scalars['ID']['input'];
|
|
153
|
+
};
|
|
154
|
+
export type CreateStateMachineConfigWithStateInput = {
|
|
155
|
+
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
156
|
+
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
157
|
+
stateId: Scalars['ID']['input'];
|
|
158
|
+
};
|
|
159
|
+
export type CreateStateMachineInput = {
|
|
160
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
161
|
+
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>;
|
|
162
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
163
|
+
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
164
|
+
};
|
|
165
|
+
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | OAuth2CredentialsType;
|
|
166
|
+
export declare enum CredentialsType {
|
|
167
|
+
ApiKey = "ApiKey",
|
|
168
|
+
Basic = "Basic",
|
|
169
|
+
OAuth2 = "OAuth2"
|
|
170
|
+
}
|
|
171
|
+
export type CronJob = {
|
|
172
|
+
appId: Scalars['ID']['output'];
|
|
173
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
174
|
+
event: Scalars['String']['output'];
|
|
175
|
+
expression: Scalars['String']['output'];
|
|
176
|
+
id: Scalars['ID']['output'];
|
|
177
|
+
payload: Scalars['JSON']['output'];
|
|
178
|
+
runs: Scalars['Float']['output'];
|
|
179
|
+
status: Scalars['String']['output'];
|
|
180
|
+
timestamp: Scalars['DateTime']['output'];
|
|
181
|
+
};
|
|
182
|
+
export type EditStateMachineInput = {
|
|
183
|
+
id: Scalars['ID']['input'];
|
|
184
|
+
};
|
|
185
|
+
export type ICredentials = {
|
|
186
|
+
description: Scalars['String']['output'];
|
|
187
|
+
id: Scalars['ID']['output'];
|
|
188
|
+
type: CredentialsType;
|
|
189
|
+
};
|
|
190
|
+
export type Mutation = {
|
|
191
|
+
createCredentials: SafeCredentials;
|
|
192
|
+
createCronJob: CronJob;
|
|
193
|
+
createStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
194
|
+
createStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
195
|
+
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
196
|
+
patchSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
197
|
+
promoteStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
198
|
+
removeCredentials?: Maybe<SafeCredentials>;
|
|
199
|
+
removeCronJob: CronJob;
|
|
200
|
+
removeStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
201
|
+
removeStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
202
|
+
setSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
203
|
+
updateCredentials: SafeCredentials;
|
|
204
|
+
updateCronJob: CronJob;
|
|
205
|
+
updateStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
206
|
+
updateStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
207
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
208
|
+
};
|
|
209
|
+
export type MutationCreateCredentialsArgs = {
|
|
210
|
+
input: CreateCredentialsInput;
|
|
211
|
+
};
|
|
212
|
+
export type MutationCreateCronJobArgs = {
|
|
213
|
+
input: CreateCronJobInput;
|
|
214
|
+
};
|
|
215
|
+
export type MutationCreateStateMachineConfigArgs = {
|
|
216
|
+
input: CreateStateMachineInput;
|
|
217
|
+
};
|
|
218
|
+
export type MutationCreateStateMachineConfigStateArgs = {
|
|
219
|
+
input: CreateStateMachineConfigStateInput;
|
|
220
|
+
};
|
|
221
|
+
export type MutationEditStateMachineConfigArgs = {
|
|
222
|
+
input: EditStateMachineInput;
|
|
223
|
+
};
|
|
224
|
+
export type MutationPatchSessionDataArgs = {
|
|
225
|
+
input: PatchSessionDataInput;
|
|
226
|
+
};
|
|
227
|
+
export type MutationPromoteStateMachineConfigArgs = {
|
|
228
|
+
input: PromoteStateMachineInput;
|
|
229
|
+
};
|
|
230
|
+
export type MutationRemoveCredentialsArgs = {
|
|
231
|
+
input?: InputMaybe<RemoveCredentialsInput>;
|
|
232
|
+
};
|
|
233
|
+
export type MutationRemoveCronJobArgs = {
|
|
234
|
+
input: RemoveCronJobInput;
|
|
235
|
+
};
|
|
236
|
+
export type MutationRemoveStateMachineConfigArgs = {
|
|
237
|
+
input: RemoveStateMachineInput;
|
|
238
|
+
};
|
|
239
|
+
export type MutationRemoveStateMachineConfigStateArgs = {
|
|
240
|
+
input: RemoveStateMachineConfigStateInput;
|
|
241
|
+
};
|
|
242
|
+
export type MutationSetSessionDataArgs = {
|
|
243
|
+
input: SetSessionDataInput;
|
|
244
|
+
};
|
|
245
|
+
export type MutationUpdateCredentialsArgs = {
|
|
246
|
+
input: UpdateCredentialsInput;
|
|
247
|
+
};
|
|
248
|
+
export type MutationUpdateCronJobArgs = {
|
|
249
|
+
input: UpdateCronJobInput;
|
|
250
|
+
};
|
|
251
|
+
export type MutationUpdateStateMachineConfigArgs = {
|
|
252
|
+
input: UpdateStateMachineInput;
|
|
253
|
+
};
|
|
254
|
+
export type MutationUpdateStateMachineConfigStateArgs = {
|
|
255
|
+
input: UpdateStateMachineConfigStateInput;
|
|
256
|
+
};
|
|
257
|
+
export type OAuth2Credentials = {
|
|
258
|
+
clientId: Scalars['String']['output'];
|
|
259
|
+
clientSecret: Scalars['String']['output'];
|
|
260
|
+
};
|
|
261
|
+
export type OAuth2CredentialsType = ICredentials & {
|
|
262
|
+
credentials: OAuth2Credentials;
|
|
263
|
+
description: Scalars['String']['output'];
|
|
264
|
+
id: Scalars['ID']['output'];
|
|
265
|
+
type: CredentialsType;
|
|
266
|
+
};
|
|
267
|
+
export type PageInfo = {
|
|
268
|
+
hasNext: Scalars['Boolean']['output'];
|
|
269
|
+
next?: Maybe<Scalars['Base64']['output']>;
|
|
270
|
+
};
|
|
271
|
+
export type PatchInput = {
|
|
272
|
+
op: PatchOperation;
|
|
273
|
+
path: Scalars['String']['input'];
|
|
274
|
+
value?: InputMaybe<Scalars['JSON']['input']>;
|
|
275
|
+
};
|
|
276
|
+
export declare enum PatchOperation {
|
|
277
|
+
Add = "add",
|
|
278
|
+
Copy = "copy",
|
|
279
|
+
Move = "move",
|
|
280
|
+
Remove = "remove",
|
|
281
|
+
Replace = "replace",
|
|
282
|
+
Test = "test"
|
|
283
|
+
}
|
|
284
|
+
export type PatchSessionDataInput = {
|
|
285
|
+
patches: Array<PatchInput>;
|
|
286
|
+
sessionId: Scalars['ID']['input'];
|
|
287
|
+
};
|
|
288
|
+
export type PromoteStateMachineInput = {
|
|
289
|
+
id: Scalars['ID']['input'];
|
|
290
|
+
versionId: Scalars['ID']['input'];
|
|
291
|
+
};
|
|
292
|
+
export type Query = {
|
|
293
|
+
app?: Maybe<Scalars['DRN']['output']>;
|
|
294
|
+
authInfo?: Maybe<AuthInfo>;
|
|
295
|
+
getApp?: Maybe<App>;
|
|
296
|
+
getCredentials?: Maybe<SafeCredentials>;
|
|
297
|
+
getCredentialsSecret?: Maybe<Credentials>;
|
|
298
|
+
getCronJob?: Maybe<CronJob>;
|
|
299
|
+
getSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
300
|
+
getStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
301
|
+
getXStateMachineConfig?: Maybe<Scalars['JSON']['output']>;
|
|
302
|
+
listAppInstances: Array<AppInstance>;
|
|
303
|
+
listApps: Array<App>;
|
|
304
|
+
listCredentials: Array<SafeCredentials>;
|
|
305
|
+
listCronJobs: Array<CronJob>;
|
|
306
|
+
listCronJobsByAppId: Array<SecureCronJob>;
|
|
307
|
+
resolveSession?: Maybe<Session>;
|
|
308
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
309
|
+
};
|
|
310
|
+
export type QueryGetAppArgs = {
|
|
311
|
+
appId: Scalars['ID']['input'];
|
|
312
|
+
};
|
|
313
|
+
export type QueryGetCredentialsArgs = {
|
|
314
|
+
id: Scalars['ID']['input'];
|
|
315
|
+
};
|
|
316
|
+
export type QueryGetCredentialsSecretArgs = {
|
|
317
|
+
id: Scalars['ID']['input'];
|
|
318
|
+
};
|
|
319
|
+
export type QueryGetCronJobArgs = {
|
|
320
|
+
id: Scalars['ID']['input'];
|
|
321
|
+
};
|
|
322
|
+
export type QueryGetSessionDataArgs = {
|
|
323
|
+
namespace?: InputMaybe<Scalars['ID']['input']>;
|
|
324
|
+
sessionId: Scalars['ID']['input'];
|
|
325
|
+
};
|
|
326
|
+
export type QueryGetStateMachineConfigArgs = {
|
|
327
|
+
id: Scalars['ID']['input'];
|
|
328
|
+
versionId: Scalars['ID']['input'];
|
|
329
|
+
};
|
|
330
|
+
export type QueryGetXStateMachineConfigArgs = {
|
|
331
|
+
id: Scalars['ID']['input'];
|
|
332
|
+
versionId: Scalars['ID']['input'];
|
|
333
|
+
};
|
|
334
|
+
export type QueryListAppInstancesArgs = {
|
|
335
|
+
appId?: InputMaybe<Scalars['ID']['input']>;
|
|
336
|
+
appType?: InputMaybe<AppType>;
|
|
337
|
+
};
|
|
338
|
+
export type QueryListAppsArgs = {
|
|
339
|
+
type?: InputMaybe<AppType>;
|
|
340
|
+
};
|
|
341
|
+
export type QueryListCredentialsArgs = {
|
|
342
|
+
type?: InputMaybe<CredentialsType>;
|
|
343
|
+
};
|
|
344
|
+
export type QueryListCronJobsByAppIdArgs = {
|
|
345
|
+
appId: Scalars['ID']['input'];
|
|
346
|
+
};
|
|
347
|
+
export type QueryResolveSessionArgs = {
|
|
348
|
+
sessionId?: InputMaybe<Scalars['ID']['input']>;
|
|
349
|
+
triggerDrn: Scalars['DRN']['input'];
|
|
350
|
+
userId?: InputMaybe<Scalars['ID']['input']>;
|
|
351
|
+
};
|
|
352
|
+
export type RemoveCredentialsInput = {
|
|
353
|
+
id: Scalars['ID']['input'];
|
|
354
|
+
};
|
|
355
|
+
export type RemoveCronJobInput = {
|
|
356
|
+
id: Scalars['ID']['input'];
|
|
357
|
+
};
|
|
358
|
+
export type RemoveStateMachineConfigStateInput = {
|
|
359
|
+
id: Scalars['ID']['input'];
|
|
360
|
+
stateId: Scalars['ID']['input'];
|
|
361
|
+
versionId: Scalars['ID']['input'];
|
|
362
|
+
};
|
|
363
|
+
export type RemoveStateMachineInput = {
|
|
364
|
+
id: Scalars['ID']['input'];
|
|
365
|
+
versionId: Scalars['ID']['input'];
|
|
366
|
+
};
|
|
367
|
+
export type SafeCredentials = ICredentials & {
|
|
368
|
+
description: Scalars['String']['output'];
|
|
369
|
+
id: Scalars['ID']['output'];
|
|
370
|
+
type: CredentialsType;
|
|
371
|
+
};
|
|
372
|
+
export type SecureCronJob = {
|
|
373
|
+
appId: Scalars['ID']['output'];
|
|
374
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
375
|
+
event: Scalars['String']['output'];
|
|
376
|
+
expression: Scalars['String']['output'];
|
|
377
|
+
id: Scalars['ID']['output'];
|
|
378
|
+
runs: Scalars['Float']['output'];
|
|
379
|
+
status: Scalars['String']['output'];
|
|
380
|
+
timestamp: Scalars['DateTime']['output'];
|
|
381
|
+
};
|
|
382
|
+
export type Session = {
|
|
383
|
+
sessionId: Scalars['ID']['output'];
|
|
384
|
+
stateMachineId: Scalars['ID']['output'];
|
|
385
|
+
triggerDrn: Scalars['ID']['output'];
|
|
386
|
+
userId?: Maybe<Scalars['ID']['output']>;
|
|
387
|
+
};
|
|
388
|
+
export type SetSessionDataInput = {
|
|
389
|
+
data: Scalars['JSON']['input'];
|
|
390
|
+
namespace: Scalars['ID']['input'];
|
|
391
|
+
sessionId: Scalars['ID']['input'];
|
|
392
|
+
};
|
|
393
|
+
export type StateMachineConfig = {
|
|
394
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
395
|
+
id: Scalars['ID']['output'];
|
|
396
|
+
stateMachineId: Scalars['ID']['output'];
|
|
397
|
+
states: Array<StateMachineConfigState>;
|
|
398
|
+
status: StateMachineConfigStatus;
|
|
399
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
400
|
+
triggers?: Maybe<Scalars['Set']['output']>;
|
|
401
|
+
versionId: Scalars['ID']['output'];
|
|
402
|
+
};
|
|
403
|
+
export type StateMachineConfigState = {
|
|
404
|
+
meta?: Maybe<Scalars['JSON']['output']>;
|
|
405
|
+
on: Array<StateMachineConfigStatesOn>;
|
|
406
|
+
stateId: Scalars['ID']['output'];
|
|
407
|
+
};
|
|
408
|
+
export type StateMachineConfigStatesOn = {
|
|
409
|
+
event: Scalars['String']['output'];
|
|
410
|
+
target: Scalars['String']['output'];
|
|
411
|
+
};
|
|
412
|
+
export type StateMachineConfigStatesOnInput = {
|
|
413
|
+
event: Scalars['String']['input'];
|
|
414
|
+
target: Scalars['String']['input'];
|
|
415
|
+
};
|
|
416
|
+
export declare enum StateMachineConfigStatus {
|
|
417
|
+
Draft = "Draft",
|
|
418
|
+
Live = "Live",
|
|
419
|
+
Published = "Published"
|
|
420
|
+
}
|
|
421
|
+
export type Subscription = {
|
|
422
|
+
version?: Maybe<Scalars['String']['output']>;
|
|
423
|
+
};
|
|
424
|
+
export declare enum Typenames {
|
|
425
|
+
Any = "Any",
|
|
426
|
+
App = "App",
|
|
427
|
+
AppInstances = "AppInstances",
|
|
428
|
+
Credentials = "Credentials",
|
|
429
|
+
CronJobs = "CronJobs",
|
|
430
|
+
GraphqlConnections = "GraphqlConnections",
|
|
431
|
+
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
432
|
+
MachineConfigAliases = "MachineConfigAliases",
|
|
433
|
+
MachineConfigs = "MachineConfigs",
|
|
434
|
+
MachineStates = "MachineStates",
|
|
435
|
+
SessionMappings = "SessionMappings",
|
|
436
|
+
SessionStorage = "SessionStorage",
|
|
437
|
+
Sessions = "Sessions"
|
|
438
|
+
}
|
|
439
|
+
export type UpdateCredentialsInput = {
|
|
440
|
+
credentials: Scalars['JSON']['input'];
|
|
441
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
442
|
+
id: Scalars['ID']['input'];
|
|
443
|
+
type: CredentialsType;
|
|
444
|
+
};
|
|
445
|
+
export type UpdateCronJobInput = {
|
|
446
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
447
|
+
event: Scalars['String']['input'];
|
|
448
|
+
expression: Scalars['String']['input'];
|
|
449
|
+
id: Scalars['ID']['input'];
|
|
450
|
+
payload: Scalars['JSON']['input'];
|
|
451
|
+
};
|
|
452
|
+
export type UpdateStateMachineConfigStateInput = {
|
|
453
|
+
id: Scalars['ID']['input'];
|
|
454
|
+
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
455
|
+
on: Array<StateMachineConfigStatesOnInput>;
|
|
456
|
+
stateId: Scalars['ID']['input'];
|
|
457
|
+
versionId: Scalars['ID']['input'];
|
|
458
|
+
};
|
|
459
|
+
export type UpdateStateMachineConfigWithStateInput = {
|
|
460
|
+
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
461
|
+
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
462
|
+
stateId: Scalars['ID']['input'];
|
|
463
|
+
};
|
|
464
|
+
export type UpdateStateMachineInput = {
|
|
465
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
466
|
+
id: Scalars['ID']['input'];
|
|
467
|
+
states?: InputMaybe<Array<UpdateStateMachineConfigWithStateInput>>;
|
|
468
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
469
|
+
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
470
|
+
versionId: Scalars['ID']['input'];
|
|
471
|
+
};
|
|
472
|
+
export type AppFragment = Pick<App, 'id' | 'type' | 'name' | 'description'>;
|
|
473
|
+
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions'>;
|
|
474
|
+
export type AppWithInstancesFragment = ({
|
|
475
|
+
instances: Array<AppInstanceFragment>;
|
|
476
|
+
} & AppFragment);
|
|
477
|
+
export type GetAppQueryVariables = Exact<{
|
|
478
|
+
appId: Scalars['ID']['input'];
|
|
479
|
+
withInstances?: InputMaybe<Scalars['Boolean']['input']>;
|
|
480
|
+
}>;
|
|
481
|
+
export type GetAppQuery = {
|
|
482
|
+
getApp?: Maybe<({
|
|
483
|
+
instances?: Array<AppInstanceFragment>;
|
|
484
|
+
} & AppFragment)>;
|
|
485
|
+
};
|
|
486
|
+
export type GetAppsQueryVariables = Exact<{
|
|
487
|
+
type?: InputMaybe<AppType>;
|
|
488
|
+
withInstances?: InputMaybe<Scalars['Boolean']['input']>;
|
|
489
|
+
}>;
|
|
490
|
+
export type GetAppsQuery = {
|
|
491
|
+
listApps: Array<({
|
|
492
|
+
instances?: Array<AppInstanceFragment>;
|
|
493
|
+
} & AppFragment)>;
|
|
494
|
+
};
|
|
495
|
+
export type ListAppInstancesQueryVariables = Exact<{
|
|
496
|
+
appId?: InputMaybe<Scalars['ID']['input']>;
|
|
497
|
+
appType?: InputMaybe<AppType>;
|
|
498
|
+
withApp?: InputMaybe<Scalars['Boolean']['input']>;
|
|
499
|
+
}>;
|
|
500
|
+
export type ListAppInstancesQuery = {
|
|
501
|
+
listAppInstances: Array<({
|
|
502
|
+
app?: AppFragment;
|
|
503
|
+
} & AppInstanceFragment)>;
|
|
504
|
+
};
|
|
505
|
+
export type SafeCredentialsFragment = Pick<SafeCredentials, 'id' | 'type' | 'description'>;
|
|
506
|
+
export type GetCredentialsQueryVariables = Exact<{
|
|
507
|
+
id: Scalars['ID']['input'];
|
|
508
|
+
}>;
|
|
509
|
+
export type GetCredentialsQuery = {
|
|
510
|
+
getCredentials?: Maybe<SafeCredentialsFragment>;
|
|
511
|
+
};
|
|
512
|
+
export type GetCredentialsSecretQueryVariables = Exact<{
|
|
513
|
+
id: Scalars['ID']['input'];
|
|
514
|
+
}>;
|
|
515
|
+
export type GetCredentialsSecretQuery = {
|
|
516
|
+
getCredentialsSecret?: Maybe<(Pick<ApiKeyCredentialsType, 'id' | 'type' | 'description'> & {
|
|
517
|
+
credentials: Pick<ApiKeyCredentials, 'apiKey'>;
|
|
518
|
+
}) | (Pick<BasicCredentialsType, 'id' | 'type' | 'description'> & {
|
|
519
|
+
credentials: Pick<BasicCredentials, 'username' | 'password'>;
|
|
520
|
+
}) | (Pick<OAuth2CredentialsType, 'id' | 'type' | 'description'> & {
|
|
521
|
+
credentials: Pick<OAuth2Credentials, 'clientId' | 'clientSecret'>;
|
|
522
|
+
})>;
|
|
523
|
+
};
|
|
524
|
+
export type ListCredentialsQueryVariables = Exact<{
|
|
525
|
+
type?: InputMaybe<CredentialsType>;
|
|
526
|
+
}>;
|
|
527
|
+
export type ListCredentialsQuery = {
|
|
528
|
+
listCredentials: Array<SafeCredentialsFragment>;
|
|
529
|
+
};
|
|
530
|
+
export type CreateCredentialsMutationVariables = Exact<{
|
|
531
|
+
input: CreateCredentialsInput;
|
|
532
|
+
}>;
|
|
533
|
+
export type CreateCredentialsMutation = {
|
|
534
|
+
createCredentials: SafeCredentialsFragment;
|
|
535
|
+
};
|
|
536
|
+
export type UpdateCredentialsMutationVariables = Exact<{
|
|
537
|
+
input: UpdateCredentialsInput;
|
|
538
|
+
}>;
|
|
539
|
+
export type UpdateCredentialsMutation = {
|
|
540
|
+
updateCredentials: SafeCredentialsFragment;
|
|
541
|
+
};
|
|
542
|
+
export type RemoveCredentialsMutationVariables = Exact<{
|
|
543
|
+
input: RemoveCredentialsInput;
|
|
544
|
+
}>;
|
|
545
|
+
export type RemoveCredentialsMutation = {
|
|
546
|
+
removeCredentials?: Maybe<SafeCredentialsFragment>;
|
|
547
|
+
};
|
|
548
|
+
export type CronJobFragment = Pick<CronJob, 'appId' | 'id' | 'description' | 'expression' | 'event' | 'payload' | 'status' | 'timestamp' | 'runs'>;
|
|
549
|
+
export type GetCronJobQueryVariables = Exact<{
|
|
550
|
+
id: Scalars['ID']['input'];
|
|
551
|
+
}>;
|
|
552
|
+
export type GetCronJobQuery = {
|
|
553
|
+
getCronJob?: Maybe<CronJobFragment>;
|
|
554
|
+
};
|
|
555
|
+
export type ListCronJobsQueryVariables = Exact<{
|
|
556
|
+
[key: string]: never;
|
|
557
|
+
}>;
|
|
558
|
+
export type ListCronJobsQuery = {
|
|
559
|
+
listCronJobs: Array<CronJobFragment>;
|
|
560
|
+
};
|
|
561
|
+
export type CreateCronJobMutationVariables = Exact<{
|
|
562
|
+
input: CreateCronJobInput;
|
|
563
|
+
}>;
|
|
564
|
+
export type CreateCronJobMutation = {
|
|
565
|
+
createCronJob: CronJobFragment;
|
|
566
|
+
};
|
|
567
|
+
export type UpdateCronJobMutationVariables = Exact<{
|
|
568
|
+
input: UpdateCronJobInput;
|
|
569
|
+
}>;
|
|
570
|
+
export type UpdateCronJobMutation = {
|
|
571
|
+
updateCronJob: CronJobFragment;
|
|
572
|
+
};
|
|
573
|
+
export type RemoveCronJobMutationVariables = Exact<{
|
|
574
|
+
input: RemoveCronJobInput;
|
|
575
|
+
}>;
|
|
576
|
+
export type RemoveCronJobMutation = {
|
|
577
|
+
removeCronJob: CronJobFragment;
|
|
578
|
+
};
|
|
579
|
+
export type ResolveSessionQueryVariables = Exact<{
|
|
580
|
+
sessionId?: InputMaybe<Scalars['ID']['input']>;
|
|
581
|
+
userId?: InputMaybe<Scalars['ID']['input']>;
|
|
582
|
+
triggerDrn: Scalars['DRN']['input'];
|
|
583
|
+
}>;
|
|
584
|
+
export type ResolveSessionQuery = {
|
|
585
|
+
resolveSession?: Maybe<Pick<Session, 'sessionId' | 'userId' | 'stateMachineId' | 'triggerDrn'>>;
|
|
586
|
+
};
|
|
587
|
+
export type GetSessionDataQueryVariables = Exact<{
|
|
588
|
+
sessionId: Scalars['ID']['input'];
|
|
589
|
+
namespace?: InputMaybe<Scalars['ID']['input']>;
|
|
590
|
+
}>;
|
|
591
|
+
export type GetSessionDataQuery = Pick<Query, 'getSessionData'>;
|
|
592
|
+
export type SetSessionDataMutationVariables = Exact<{
|
|
593
|
+
input: SetSessionDataInput;
|
|
594
|
+
}>;
|
|
595
|
+
export type SetSessionDataMutation = Pick<Mutation, 'setSessionData'>;
|
|
596
|
+
export type PatchSessionDataMutationVariables = Exact<{
|
|
597
|
+
input: PatchSessionDataInput;
|
|
598
|
+
}>;
|
|
599
|
+
export type PatchSessionDataMutation = Pick<Mutation, 'patchSessionData'>;
|
|
600
|
+
export type GetStateMachineQueryVariables = Exact<{
|
|
601
|
+
id: Scalars['ID']['input'];
|
|
602
|
+
versionId: Scalars['ID']['input'];
|
|
603
|
+
}>;
|
|
604
|
+
export type GetStateMachineQuery = {
|
|
605
|
+
getStateMachineConfig?: Maybe<(Pick<StateMachineConfig, 'id' | 'versionId' | 'stateMachineId' | 'title' | 'description' | 'status'> & {
|
|
606
|
+
states: Array<(Pick<StateMachineConfigState, 'stateId' | 'meta'> & {
|
|
607
|
+
on: Array<Pick<StateMachineConfigStatesOn, 'event' | 'target'>>;
|
|
608
|
+
})>;
|
|
609
|
+
})>;
|
|
610
|
+
};
|
|
611
|
+
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
612
|
+
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
613
|
+
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
614
|
+
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n ";
|
|
615
|
+
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 ";
|
|
616
|
+
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 ";
|
|
617
|
+
export declare const GetAppsDocument = "\n query getApps($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 ";
|
|
618
|
+
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 ";
|
|
619
|
+
export declare const GetCredentialsDocument = "\n query getCredentials($id: ID!) {\n getCredentials(id: $id) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n ";
|
|
620
|
+
export declare const GetCredentialsSecretDocument = "\n query getCredentialsSecret($id: ID!) {\n getCredentialsSecret(id: $id) {\n ... on ICredentials {\n id\n type\n description\n }\n ... on BasicCredentialsType {\n credentials {\n username\n password\n }\n }\n ... on ApiKeyCredentialsType {\n credentials {\n apiKey\n }\n }\n ... on OAuth2CredentialsType {\n credentials {\n clientId\n clientSecret\n }\n }\n }\n}\n ";
|
|
621
|
+
export declare const ListCredentialsDocument = "\n query listCredentials($type: CredentialsType) {\n listCredentials(type: $type) {\n ...safeCredentials\n }\n}\n \n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n ";
|
|
622
|
+
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}\n ";
|
|
623
|
+
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}\n ";
|
|
624
|
+
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}\n ";
|
|
625
|
+
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 ";
|
|
626
|
+
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 ";
|
|
627
|
+
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 ";
|
|
628
|
+
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 ";
|
|
629
|
+
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 ";
|
|
630
|
+
export declare const ResolveSessionDocument = "\n query resolveSession($sessionId: ID, $userId: ID, $triggerDrn: DRN!) {\n resolveSession(sessionId: $sessionId, userId: $userId, triggerDrn: $triggerDrn) {\n sessionId\n userId\n stateMachineId\n triggerDrn\n }\n}\n ";
|
|
631
|
+
export declare const GetSessionDataDocument = "\n query getSessionData($sessionId: ID!, $namespace: ID) {\n getSessionData(sessionId: $sessionId, namespace: $namespace)\n}\n ";
|
|
632
|
+
export declare const SetSessionDataDocument = "\n mutation setSessionData($input: SetSessionDataInput!) {\n setSessionData(input: $input)\n}\n ";
|
|
633
|
+
export declare const PatchSessionDataDocument = "\n mutation patchSessionData($input: PatchSessionDataInput!) {\n patchSessionData(input: $input)\n}\n ";
|
|
634
|
+
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n id\n versionId\n stateMachineId\n title\n description\n status\n states {\n stateId\n on {\n event\n target\n }\n meta\n }\n }\n}\n ";
|
|
635
|
+
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | Observable<R>;
|
|
636
|
+
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
637
|
+
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
638
|
+
getApps(variables?: GetAppsQueryVariables, options?: C): Promise<GetAppsQuery>;
|
|
639
|
+
listAppInstances(variables?: ListAppInstancesQueryVariables, options?: C): Promise<ListAppInstancesQuery>;
|
|
640
|
+
getCredentials(variables: GetCredentialsQueryVariables, options?: C): Promise<GetCredentialsQuery>;
|
|
641
|
+
getCredentialsSecret(variables: GetCredentialsSecretQueryVariables, options?: C): Promise<GetCredentialsSecretQuery>;
|
|
642
|
+
listCredentials(variables?: ListCredentialsQueryVariables, options?: C): Promise<ListCredentialsQuery>;
|
|
643
|
+
createCredentials(variables: CreateCredentialsMutationVariables, options?: C): Promise<CreateCredentialsMutation>;
|
|
644
|
+
updateCredentials(variables: UpdateCredentialsMutationVariables, options?: C): Promise<UpdateCredentialsMutation>;
|
|
645
|
+
removeCredentials(variables: RemoveCredentialsMutationVariables, options?: C): Promise<RemoveCredentialsMutation>;
|
|
646
|
+
getCronJob(variables: GetCronJobQueryVariables, options?: C): Promise<GetCronJobQuery>;
|
|
647
|
+
listCronJobs(variables?: ListCronJobsQueryVariables, options?: C): Promise<ListCronJobsQuery>;
|
|
648
|
+
createCronJob(variables: CreateCronJobMutationVariables, options?: C): Promise<CreateCronJobMutation>;
|
|
649
|
+
updateCronJob(variables: UpdateCronJobMutationVariables, options?: C): Promise<UpdateCronJobMutation>;
|
|
650
|
+
removeCronJob(variables: RemoveCronJobMutationVariables, options?: C): Promise<RemoveCronJobMutation>;
|
|
651
|
+
resolveSession(variables: ResolveSessionQueryVariables, options?: C): Promise<ResolveSessionQuery>;
|
|
652
|
+
getSessionData(variables: GetSessionDataQueryVariables, options?: C): Promise<GetSessionDataQuery>;
|
|
653
|
+
setSessionData(variables: SetSessionDataMutationVariables, options?: C): Promise<SetSessionDataMutation>;
|
|
654
|
+
patchSessionData(variables: PatchSessionDataMutationVariables, options?: C): Promise<PatchSessionDataMutation>;
|
|
655
|
+
getStateMachine(variables: GetStateMachineQueryVariables, options?: C): Promise<GetStateMachineQuery>;
|
|
656
|
+
};
|
|
657
|
+
export type Sdk = ReturnType<typeof getSdk>;
|
|
658
|
+
export declare const serviceName = "@droz/nucleus";
|