@droz-js/sdk 0.2.1 → 0.2.3
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 +2 -2
- package/package.json +1 -3
- package/src/client/config.d.ts +23 -13
- package/src/client/config.js +52 -51
- package/src/client/helpers.d.ts +9 -0
- package/src/client/helpers.js +45 -0
- package/src/client/http.d.ts +6 -6
- package/src/client/http.js +48 -19
- package/src/client/ws.d.ts +5 -7
- package/src/client/ws.js +12 -11
- package/src/drozbot.d.ts +4 -0
- package/src/drozchat-ws.d.ts +3 -2
- package/src/drozchat.d.ts +4 -0
- package/src/droznexo.d.ts +4 -0
- package/src/mercadolivre.d.ts +4 -0
- package/src/nucleus.d.ts +41 -0
- package/src/reclameaqui.d.ts +4 -0
- package/src/sdks/drozbot.d.ts +3 -5
- package/src/sdks/drozchat.d.ts +17 -16
- package/src/sdks/drozchat.js +15 -40
- package/src/sdks/droznexo.d.ts +7 -6
- package/src/sdks/droznexo.js +4 -7
- package/src/sdks/mercadolivre.d.ts +3 -5
- package/src/sdks/nucleus.d.ts +152 -38
- package/src/sdks/nucleus.js +162 -16
- package/src/sdks/reclameaqui.d.ts +3 -5
- package/src/sdks/zendesk.d.ts +3 -5
- package/src/zendesk.d.ts +4 -0
- package/src/client/utils.d.ts +0 -3
- package/src/client/utils.js +0 -18
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export type Scalars = {
|
|
|
70
70
|
output: any;
|
|
71
71
|
};
|
|
72
72
|
Set: {
|
|
73
|
-
input: any
|
|
74
|
-
output: any;
|
|
73
|
+
input: Set<any>;
|
|
74
|
+
output: any[];
|
|
75
75
|
};
|
|
76
76
|
URL: {
|
|
77
77
|
input: string;
|
|
@@ -143,6 +143,12 @@ export type CreateCronJobInput = {
|
|
|
143
143
|
expression: Scalars['String']['input'];
|
|
144
144
|
payload: Scalars['JSON']['input'];
|
|
145
145
|
};
|
|
146
|
+
export type CreateStateMachineConfigInput = {
|
|
147
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
148
|
+
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>;
|
|
149
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
150
|
+
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
151
|
+
};
|
|
146
152
|
export type CreateStateMachineConfigStateInput = {
|
|
147
153
|
id: Scalars['ID']['input'];
|
|
148
154
|
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -155,12 +161,6 @@ export type CreateStateMachineConfigWithStateInput = {
|
|
|
155
161
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
156
162
|
stateId: Scalars['ID']['input'];
|
|
157
163
|
};
|
|
158
|
-
export type CreateStateMachineInput = {
|
|
159
|
-
description?: InputMaybe<Scalars['String']['input']>;
|
|
160
|
-
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>;
|
|
161
|
-
title?: InputMaybe<Scalars['String']['input']>;
|
|
162
|
-
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
163
|
-
};
|
|
164
164
|
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | OAuth2CredentialsType;
|
|
165
165
|
export declare enum CredentialsType {
|
|
166
166
|
ApiKey = "ApiKey",
|
|
@@ -178,7 +178,7 @@ export type CronJob = {
|
|
|
178
178
|
status: Scalars['String']['output'];
|
|
179
179
|
timestamp: Scalars['DateTime']['output'];
|
|
180
180
|
};
|
|
181
|
-
export type
|
|
181
|
+
export type EditStateMachineConfigInput = {
|
|
182
182
|
id: Scalars['ID']['input'];
|
|
183
183
|
};
|
|
184
184
|
export type ICredentials = {
|
|
@@ -193,7 +193,7 @@ export type Mutation = {
|
|
|
193
193
|
createStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
194
194
|
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
195
195
|
patchSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
196
|
-
|
|
196
|
+
publishStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
197
197
|
removeCredentials?: Maybe<SafeCredentials>;
|
|
198
198
|
removeCronJob: CronJob;
|
|
199
199
|
removeStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
@@ -212,19 +212,19 @@ export type MutationCreateCronJobArgs = {
|
|
|
212
212
|
input: CreateCronJobInput;
|
|
213
213
|
};
|
|
214
214
|
export type MutationCreateStateMachineConfigArgs = {
|
|
215
|
-
input:
|
|
215
|
+
input: CreateStateMachineConfigInput;
|
|
216
216
|
};
|
|
217
217
|
export type MutationCreateStateMachineConfigStateArgs = {
|
|
218
218
|
input: CreateStateMachineConfigStateInput;
|
|
219
219
|
};
|
|
220
220
|
export type MutationEditStateMachineConfigArgs = {
|
|
221
|
-
input:
|
|
221
|
+
input: EditStateMachineConfigInput;
|
|
222
222
|
};
|
|
223
223
|
export type MutationPatchSessionDataArgs = {
|
|
224
224
|
input: PatchSessionDataInput;
|
|
225
225
|
};
|
|
226
|
-
export type
|
|
227
|
-
input:
|
|
226
|
+
export type MutationPublishStateMachineConfigArgs = {
|
|
227
|
+
input: PublishStateMachineConfigInput;
|
|
228
228
|
};
|
|
229
229
|
export type MutationRemoveCredentialsArgs = {
|
|
230
230
|
input?: InputMaybe<RemoveCredentialsInput>;
|
|
@@ -233,7 +233,7 @@ export type MutationRemoveCronJobArgs = {
|
|
|
233
233
|
input: RemoveCronJobInput;
|
|
234
234
|
};
|
|
235
235
|
export type MutationRemoveStateMachineConfigArgs = {
|
|
236
|
-
input:
|
|
236
|
+
input: RemoveStateMachineConfigInput;
|
|
237
237
|
};
|
|
238
238
|
export type MutationRemoveStateMachineConfigStateArgs = {
|
|
239
239
|
input: RemoveStateMachineConfigStateInput;
|
|
@@ -248,7 +248,7 @@ export type MutationUpdateCronJobArgs = {
|
|
|
248
248
|
input: UpdateCronJobInput;
|
|
249
249
|
};
|
|
250
250
|
export type MutationUpdateStateMachineConfigArgs = {
|
|
251
|
-
input:
|
|
251
|
+
input: UpdateStateMachineConfigInput;
|
|
252
252
|
};
|
|
253
253
|
export type MutationUpdateStateMachineConfigStateArgs = {
|
|
254
254
|
input: UpdateStateMachineConfigStateInput;
|
|
@@ -284,7 +284,7 @@ export type PatchSessionDataInput = {
|
|
|
284
284
|
patches: Array<PatchInput>;
|
|
285
285
|
sessionId: Scalars['ID']['input'];
|
|
286
286
|
};
|
|
287
|
-
export type
|
|
287
|
+
export type PublishStateMachineConfigInput = {
|
|
288
288
|
id: Scalars['ID']['input'];
|
|
289
289
|
versionId: Scalars['ID']['input'];
|
|
290
290
|
};
|
|
@@ -295,6 +295,7 @@ export type Query = {
|
|
|
295
295
|
getCredentials?: Maybe<SafeCredentials>;
|
|
296
296
|
getCredentialsSecret?: Maybe<Credentials>;
|
|
297
297
|
getCronJob?: Maybe<CronJob>;
|
|
298
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
298
299
|
getSessionData?: Maybe<Scalars['JSON']['output']>;
|
|
299
300
|
getStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
300
301
|
getXStateMachineConfig?: Maybe<Scalars['JSON']['output']>;
|
|
@@ -303,6 +304,9 @@ export type Query = {
|
|
|
303
304
|
listCredentials: Array<SafeCredentials>;
|
|
304
305
|
listCronJobs: Array<CronJob>;
|
|
305
306
|
listCronJobsByAppId: Array<SecureCronJob>;
|
|
307
|
+
listDraftStateMachineConfigs: StateMachineConfigConnection;
|
|
308
|
+
listLiveStateMachineConfigs: StateMachineConfigConnection;
|
|
309
|
+
listStateMachineConfigVersions: Array<StateMachineConfig>;
|
|
306
310
|
resolveSession?: Maybe<Session>;
|
|
307
311
|
version?: Maybe<Scalars['String']['output']>;
|
|
308
312
|
};
|
|
@@ -343,6 +347,9 @@ export type QueryListCredentialsArgs = {
|
|
|
343
347
|
export type QueryListCronJobsByAppIdArgs = {
|
|
344
348
|
appId: Scalars['ID']['input'];
|
|
345
349
|
};
|
|
350
|
+
export type QueryListStateMachineConfigVersionsArgs = {
|
|
351
|
+
id: Scalars['ID']['input'];
|
|
352
|
+
};
|
|
346
353
|
export type QueryResolveSessionArgs = {
|
|
347
354
|
sessionId?: InputMaybe<Scalars['ID']['input']>;
|
|
348
355
|
triggerDrn: Scalars['DRN']['input'];
|
|
@@ -354,13 +361,13 @@ export type RemoveCredentialsInput = {
|
|
|
354
361
|
export type RemoveCronJobInput = {
|
|
355
362
|
id: Scalars['ID']['input'];
|
|
356
363
|
};
|
|
357
|
-
export type
|
|
364
|
+
export type RemoveStateMachineConfigInput = {
|
|
358
365
|
id: Scalars['ID']['input'];
|
|
359
|
-
stateId: Scalars['ID']['input'];
|
|
360
366
|
versionId: Scalars['ID']['input'];
|
|
361
367
|
};
|
|
362
|
-
export type
|
|
368
|
+
export type RemoveStateMachineConfigStateInput = {
|
|
363
369
|
id: Scalars['ID']['input'];
|
|
370
|
+
stateId: Scalars['ID']['input'];
|
|
364
371
|
versionId: Scalars['ID']['input'];
|
|
365
372
|
};
|
|
366
373
|
export type SafeCredentials = ICredentials & {
|
|
@@ -399,6 +406,10 @@ export type StateMachineConfig = {
|
|
|
399
406
|
triggers?: Maybe<Scalars['Set']['output']>;
|
|
400
407
|
versionId: Scalars['ID']['output'];
|
|
401
408
|
};
|
|
409
|
+
export type StateMachineConfigConnection = {
|
|
410
|
+
nodes: Array<StateMachineConfig>;
|
|
411
|
+
pageInfo: PageInfo;
|
|
412
|
+
};
|
|
402
413
|
export type StateMachineConfigState = {
|
|
403
414
|
meta?: Maybe<Scalars['JSON']['output']>;
|
|
404
415
|
on: Array<StateMachineConfigStatesOn>;
|
|
@@ -417,9 +428,6 @@ export declare enum StateMachineConfigStatus {
|
|
|
417
428
|
Live = "Live",
|
|
418
429
|
Published = "Published"
|
|
419
430
|
}
|
|
420
|
-
export type Subscription = {
|
|
421
|
-
version?: Maybe<Scalars['String']['output']>;
|
|
422
|
-
};
|
|
423
431
|
export declare enum Typenames {
|
|
424
432
|
Any = "Any",
|
|
425
433
|
App = "App",
|
|
@@ -448,6 +456,14 @@ export type UpdateCronJobInput = {
|
|
|
448
456
|
id: Scalars['ID']['input'];
|
|
449
457
|
payload: Scalars['JSON']['input'];
|
|
450
458
|
};
|
|
459
|
+
export type UpdateStateMachineConfigInput = {
|
|
460
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
461
|
+
id: Scalars['ID']['input'];
|
|
462
|
+
states?: InputMaybe<Array<UpdateStateMachineConfigWithStateInput>>;
|
|
463
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
464
|
+
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
465
|
+
versionId: Scalars['ID']['input'];
|
|
466
|
+
};
|
|
451
467
|
export type UpdateStateMachineConfigStateInput = {
|
|
452
468
|
id: Scalars['ID']['input'];
|
|
453
469
|
meta?: InputMaybe<Scalars['JSON']['input']>;
|
|
@@ -460,14 +476,6 @@ export type UpdateStateMachineConfigWithStateInput = {
|
|
|
460
476
|
on?: InputMaybe<Array<StateMachineConfigStatesOnInput>>;
|
|
461
477
|
stateId: Scalars['ID']['input'];
|
|
462
478
|
};
|
|
463
|
-
export type UpdateStateMachineInput = {
|
|
464
|
-
description?: InputMaybe<Scalars['String']['input']>;
|
|
465
|
-
id: Scalars['ID']['input'];
|
|
466
|
-
states?: InputMaybe<Array<UpdateStateMachineConfigWithStateInput>>;
|
|
467
|
-
title?: InputMaybe<Scalars['String']['input']>;
|
|
468
|
-
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
469
|
-
versionId: Scalars['ID']['input'];
|
|
470
|
-
};
|
|
471
479
|
export type AppFragment = Pick<App, 'id' | 'type' | 'name' | 'description'>;
|
|
472
480
|
export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions'>;
|
|
473
481
|
export type AppWithInstancesFragment = ({
|
|
@@ -596,22 +604,104 @@ export type PatchSessionDataMutationVariables = Exact<{
|
|
|
596
604
|
input: PatchSessionDataInput;
|
|
597
605
|
}>;
|
|
598
606
|
export type PatchSessionDataMutation = Pick<Mutation, 'patchSessionData'>;
|
|
607
|
+
export type StateMachineConfigStateOnFragment = Pick<StateMachineConfigStatesOn, 'event' | 'target'>;
|
|
608
|
+
export type StateMachineConfigStateFragment = (Pick<StateMachineConfigState, 'stateId' | 'meta'> & {
|
|
609
|
+
on: Array<StateMachineConfigStateOnFragment>;
|
|
610
|
+
});
|
|
611
|
+
export type StateMachineConfigFragment = (Pick<StateMachineConfig, 'id' | 'versionId' | 'stateMachineId' | 'title' | 'description' | 'status' | 'triggers'> & {
|
|
612
|
+
states: Array<StateMachineConfigStateFragment>;
|
|
613
|
+
});
|
|
614
|
+
export type StateMachineConfigConnectionFragment = {
|
|
615
|
+
nodes: Array<StateMachineConfigFragment>;
|
|
616
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
617
|
+
};
|
|
599
618
|
export type GetStateMachineQueryVariables = Exact<{
|
|
600
619
|
id: Scalars['ID']['input'];
|
|
601
620
|
versionId: Scalars['ID']['input'];
|
|
602
621
|
}>;
|
|
603
622
|
export type GetStateMachineQuery = {
|
|
604
|
-
getStateMachineConfig?: Maybe<
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
623
|
+
getStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
624
|
+
};
|
|
625
|
+
export type ListLiveStateMachineConfigsQueryVariables = Exact<{
|
|
626
|
+
[key: string]: never;
|
|
627
|
+
}>;
|
|
628
|
+
export type ListLiveStateMachineConfigsQuery = {
|
|
629
|
+
listLiveStateMachineConfigs: StateMachineConfigConnectionFragment;
|
|
630
|
+
};
|
|
631
|
+
export type ListDraftStateMachineConfigsQueryVariables = Exact<{
|
|
632
|
+
[key: string]: never;
|
|
633
|
+
}>;
|
|
634
|
+
export type ListDraftStateMachineConfigsQuery = {
|
|
635
|
+
listDraftStateMachineConfigs: StateMachineConfigConnectionFragment;
|
|
636
|
+
};
|
|
637
|
+
export type ListStateMachineConfigVersionsQueryVariables = Exact<{
|
|
638
|
+
id: Scalars['ID']['input'];
|
|
639
|
+
}>;
|
|
640
|
+
export type ListStateMachineConfigVersionsQuery = {
|
|
641
|
+
listStateMachineConfigVersions: Array<StateMachineConfigFragment>;
|
|
642
|
+
};
|
|
643
|
+
export type GetXStateMachineConfigQueryVariables = Exact<{
|
|
644
|
+
id: Scalars['ID']['input'];
|
|
645
|
+
versionId: Scalars['ID']['input'];
|
|
646
|
+
}>;
|
|
647
|
+
export type GetXStateMachineConfigQuery = Pick<Query, 'getXStateMachineConfig'>;
|
|
648
|
+
export type CreateStateMachineConfigMutationVariables = Exact<{
|
|
649
|
+
input: CreateStateMachineConfigInput;
|
|
650
|
+
}>;
|
|
651
|
+
export type CreateStateMachineConfigMutation = {
|
|
652
|
+
createStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
653
|
+
};
|
|
654
|
+
export type UpdateStateMachineConfigMutationVariables = Exact<{
|
|
655
|
+
input: UpdateStateMachineConfigInput;
|
|
656
|
+
}>;
|
|
657
|
+
export type UpdateStateMachineConfigMutation = {
|
|
658
|
+
updateStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
659
|
+
};
|
|
660
|
+
export type RemoveStateMachineConfigMutationVariables = Exact<{
|
|
661
|
+
input: RemoveStateMachineConfigInput;
|
|
662
|
+
}>;
|
|
663
|
+
export type RemoveStateMachineConfigMutation = {
|
|
664
|
+
removeStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
665
|
+
};
|
|
666
|
+
export type EditStateMachineConfigMutationVariables = Exact<{
|
|
667
|
+
input: EditStateMachineConfigInput;
|
|
668
|
+
}>;
|
|
669
|
+
export type EditStateMachineConfigMutation = {
|
|
670
|
+
editStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
671
|
+
};
|
|
672
|
+
export type PublishStateMachineConfigMutationVariables = Exact<{
|
|
673
|
+
input: PublishStateMachineConfigInput;
|
|
674
|
+
}>;
|
|
675
|
+
export type PublishStateMachineConfigMutation = {
|
|
676
|
+
publishStateMachineConfig?: Maybe<StateMachineConfigFragment>;
|
|
677
|
+
};
|
|
678
|
+
export type CreateStateMachineConfigStateMutationVariables = Exact<{
|
|
679
|
+
input: CreateStateMachineConfigStateInput;
|
|
680
|
+
}>;
|
|
681
|
+
export type CreateStateMachineConfigStateMutation = {
|
|
682
|
+
createStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
683
|
+
};
|
|
684
|
+
export type UpdateStateMachineConfigStateMutationVariables = Exact<{
|
|
685
|
+
input: UpdateStateMachineConfigStateInput;
|
|
686
|
+
}>;
|
|
687
|
+
export type UpdateStateMachineConfigStateMutation = {
|
|
688
|
+
updateStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
689
|
+
};
|
|
690
|
+
export type RemoveStateMachineConfigStateMutationVariables = Exact<{
|
|
691
|
+
input: RemoveStateMachineConfigStateInput;
|
|
692
|
+
}>;
|
|
693
|
+
export type RemoveStateMachineConfigStateMutation = {
|
|
694
|
+
removeStateMachineConfigState?: Maybe<StateMachineConfigFragment>;
|
|
609
695
|
};
|
|
610
696
|
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
611
697
|
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
612
|
-
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n ";
|
|
698
|
+
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
613
699
|
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n ";
|
|
614
700
|
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 ";
|
|
701
|
+
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
702
|
+
export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
703
|
+
export declare const StateMachineConfigFragmentDoc = "\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
704
|
+
export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
615
705
|
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
616
706
|
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n ";
|
|
617
707
|
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n}\n ";
|
|
@@ -630,7 +720,19 @@ export declare const ResolveSessionDocument = "\n query resolveSession($sessi
|
|
|
630
720
|
export declare const GetSessionDataDocument = "\n query getSessionData($sessionId: ID!, $namespace: ID) {\n getSessionData(sessionId: $sessionId, namespace: $namespace)\n}\n ";
|
|
631
721
|
export declare const SetSessionDataDocument = "\n mutation setSessionData($input: SetSessionDataInput!) {\n setSessionData(input: $input)\n}\n ";
|
|
632
722
|
export declare const PatchSessionDataDocument = "\n mutation patchSessionData($input: PatchSessionDataInput!) {\n patchSessionData(input: $input)\n}\n ";
|
|
633
|
-
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n id\n
|
|
723
|
+
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
724
|
+
export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs {\n listLiveStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
725
|
+
export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs {\n listDraftStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
726
|
+
export declare const ListStateMachineConfigVersionsDocument = "\n query listStateMachineConfigVersions($id: ID!) {\n listStateMachineConfigVersions(id: $id) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
727
|
+
export declare const GetXStateMachineConfigDocument = "\n query getXStateMachineConfig($id: ID!, $versionId: ID!) {\n getXStateMachineConfig(id: $id, versionId: $versionId)\n}\n ";
|
|
728
|
+
export declare const CreateStateMachineConfigDocument = "\n mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) {\n createStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
729
|
+
export declare const UpdateStateMachineConfigDocument = "\n mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) {\n updateStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
730
|
+
export declare const RemoveStateMachineConfigDocument = "\n mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) {\n removeStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
731
|
+
export declare const EditStateMachineConfigDocument = "\n mutation editStateMachineConfig($input: EditStateMachineConfigInput!) {\n editStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
732
|
+
export declare const PublishStateMachineConfigDocument = "\n mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) {\n publishStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
733
|
+
export declare const CreateStateMachineConfigStateDocument = "\n mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) {\n createStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
734
|
+
export declare const UpdateStateMachineConfigStateDocument = "\n mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) {\n updateStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
735
|
+
export declare const RemoveStateMachineConfigStateDocument = "\n mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {\n removeStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
634
736
|
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>;
|
|
635
737
|
export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
636
738
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
@@ -652,6 +754,18 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
652
754
|
setSessionData(variables: SetSessionDataMutationVariables, options?: C): Promise<SetSessionDataMutation>;
|
|
653
755
|
patchSessionData(variables: PatchSessionDataMutationVariables, options?: C): Promise<PatchSessionDataMutation>;
|
|
654
756
|
getStateMachine(variables: GetStateMachineQueryVariables, options?: C): Promise<GetStateMachineQuery>;
|
|
757
|
+
listLiveStateMachineConfigs(variables?: ListLiveStateMachineConfigsQueryVariables, options?: C): Promise<ListLiveStateMachineConfigsQuery>;
|
|
758
|
+
listDraftStateMachineConfigs(variables?: ListDraftStateMachineConfigsQueryVariables, options?: C): Promise<ListDraftStateMachineConfigsQuery>;
|
|
759
|
+
listStateMachineConfigVersions(variables: ListStateMachineConfigVersionsQueryVariables, options?: C): Promise<ListStateMachineConfigVersionsQuery>;
|
|
760
|
+
getXStateMachineConfig(variables: GetXStateMachineConfigQueryVariables, options?: C): Promise<GetXStateMachineConfigQuery>;
|
|
761
|
+
createStateMachineConfig(variables: CreateStateMachineConfigMutationVariables, options?: C): Promise<CreateStateMachineConfigMutation>;
|
|
762
|
+
updateStateMachineConfig(variables: UpdateStateMachineConfigMutationVariables, options?: C): Promise<UpdateStateMachineConfigMutation>;
|
|
763
|
+
removeStateMachineConfig(variables: RemoveStateMachineConfigMutationVariables, options?: C): Promise<RemoveStateMachineConfigMutation>;
|
|
764
|
+
editStateMachineConfig(variables: EditStateMachineConfigMutationVariables, options?: C): Promise<EditStateMachineConfigMutation>;
|
|
765
|
+
publishStateMachineConfig(variables: PublishStateMachineConfigMutationVariables, options?: C): Promise<PublishStateMachineConfigMutation>;
|
|
766
|
+
createStateMachineConfigState(variables: CreateStateMachineConfigStateMutationVariables, options?: C): Promise<CreateStateMachineConfigStateMutation>;
|
|
767
|
+
updateStateMachineConfigState(variables: UpdateStateMachineConfigStateMutationVariables, options?: C): Promise<UpdateStateMachineConfigStateMutation>;
|
|
768
|
+
removeStateMachineConfigState(variables: RemoveStateMachineConfigStateMutationVariables, options?: C): Promise<RemoveStateMachineConfigStateMutation>;
|
|
655
769
|
};
|
|
656
770
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
657
771
|
export declare const serviceName = "@droz/nucleus";
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0;
|
|
5
5
|
var AppType;
|
|
6
6
|
(function (AppType) {
|
|
7
7
|
AppType["Regular"] = "Regular";
|
|
@@ -68,7 +68,8 @@ exports.AppWithInstancesFragmentDoc = `
|
|
|
68
68
|
...appInstance
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
|
|
71
|
+
${exports.AppFragmentDoc}
|
|
72
|
+
${exports.AppInstanceFragmentDoc}`;
|
|
72
73
|
exports.SafeCredentialsFragmentDoc = `
|
|
73
74
|
fragment safeCredentials on SafeCredentials {
|
|
74
75
|
id
|
|
@@ -89,6 +90,46 @@ exports.CronJobFragmentDoc = `
|
|
|
89
90
|
runs
|
|
90
91
|
}
|
|
91
92
|
`;
|
|
93
|
+
exports.StateMachineConfigStateOnFragmentDoc = `
|
|
94
|
+
fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {
|
|
95
|
+
event
|
|
96
|
+
target
|
|
97
|
+
}
|
|
98
|
+
`;
|
|
99
|
+
exports.StateMachineConfigStateFragmentDoc = `
|
|
100
|
+
fragment stateMachineConfigState on StateMachineConfigState {
|
|
101
|
+
stateId
|
|
102
|
+
on {
|
|
103
|
+
...stateMachineConfigStateOn
|
|
104
|
+
}
|
|
105
|
+
meta
|
|
106
|
+
}
|
|
107
|
+
${exports.StateMachineConfigStateOnFragmentDoc}`;
|
|
108
|
+
exports.StateMachineConfigFragmentDoc = `
|
|
109
|
+
fragment stateMachineConfig on StateMachineConfig {
|
|
110
|
+
id
|
|
111
|
+
versionId
|
|
112
|
+
stateMachineId
|
|
113
|
+
title
|
|
114
|
+
description
|
|
115
|
+
status
|
|
116
|
+
triggers
|
|
117
|
+
states {
|
|
118
|
+
...stateMachineConfigState
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
${exports.StateMachineConfigStateFragmentDoc}`;
|
|
122
|
+
exports.StateMachineConfigConnectionFragmentDoc = `
|
|
123
|
+
fragment stateMachineConfigConnection on StateMachineConfigConnection {
|
|
124
|
+
nodes {
|
|
125
|
+
...stateMachineConfig
|
|
126
|
+
}
|
|
127
|
+
pageInfo {
|
|
128
|
+
hasNext
|
|
129
|
+
next
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
92
133
|
exports.GetAppDocument = `
|
|
93
134
|
query getApp($appId: ID!, $withInstances: Boolean = false) {
|
|
94
135
|
getApp(appId: $appId) {
|
|
@@ -248,23 +289,92 @@ exports.PatchSessionDataDocument = `
|
|
|
248
289
|
exports.GetStateMachineDocument = `
|
|
249
290
|
query getStateMachine($id: ID!, $versionId: ID!) {
|
|
250
291
|
getStateMachineConfig(id: $id, versionId: $versionId) {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
on {
|
|
260
|
-
event
|
|
261
|
-
target
|
|
262
|
-
}
|
|
263
|
-
meta
|
|
264
|
-
}
|
|
292
|
+
...stateMachineConfig
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
296
|
+
exports.ListLiveStateMachineConfigsDocument = `
|
|
297
|
+
query listLiveStateMachineConfigs {
|
|
298
|
+
listLiveStateMachineConfigs {
|
|
299
|
+
...stateMachineConfigConnection
|
|
265
300
|
}
|
|
301
|
+
}
|
|
302
|
+
${exports.StateMachineConfigConnectionFragmentDoc}`;
|
|
303
|
+
exports.ListDraftStateMachineConfigsDocument = `
|
|
304
|
+
query listDraftStateMachineConfigs {
|
|
305
|
+
listDraftStateMachineConfigs {
|
|
306
|
+
...stateMachineConfigConnection
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
${exports.StateMachineConfigConnectionFragmentDoc}`;
|
|
310
|
+
exports.ListStateMachineConfigVersionsDocument = `
|
|
311
|
+
query listStateMachineConfigVersions($id: ID!) {
|
|
312
|
+
listStateMachineConfigVersions(id: $id) {
|
|
313
|
+
...stateMachineConfig
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
317
|
+
exports.GetXStateMachineConfigDocument = `
|
|
318
|
+
query getXStateMachineConfig($id: ID!, $versionId: ID!) {
|
|
319
|
+
getXStateMachineConfig(id: $id, versionId: $versionId)
|
|
266
320
|
}
|
|
267
321
|
`;
|
|
322
|
+
exports.CreateStateMachineConfigDocument = `
|
|
323
|
+
mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) {
|
|
324
|
+
createStateMachineConfig(input: $input) {
|
|
325
|
+
...stateMachineConfig
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
329
|
+
exports.UpdateStateMachineConfigDocument = `
|
|
330
|
+
mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) {
|
|
331
|
+
updateStateMachineConfig(input: $input) {
|
|
332
|
+
...stateMachineConfig
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
336
|
+
exports.RemoveStateMachineConfigDocument = `
|
|
337
|
+
mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) {
|
|
338
|
+
removeStateMachineConfig(input: $input) {
|
|
339
|
+
...stateMachineConfig
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
343
|
+
exports.EditStateMachineConfigDocument = `
|
|
344
|
+
mutation editStateMachineConfig($input: EditStateMachineConfigInput!) {
|
|
345
|
+
editStateMachineConfig(input: $input) {
|
|
346
|
+
...stateMachineConfig
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
350
|
+
exports.PublishStateMachineConfigDocument = `
|
|
351
|
+
mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) {
|
|
352
|
+
publishStateMachineConfig(input: $input) {
|
|
353
|
+
...stateMachineConfig
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
357
|
+
exports.CreateStateMachineConfigStateDocument = `
|
|
358
|
+
mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) {
|
|
359
|
+
createStateMachineConfigState(input: $input) {
|
|
360
|
+
...stateMachineConfig
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
364
|
+
exports.UpdateStateMachineConfigStateDocument = `
|
|
365
|
+
mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) {
|
|
366
|
+
updateStateMachineConfigState(input: $input) {
|
|
367
|
+
...stateMachineConfig
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
371
|
+
exports.RemoveStateMachineConfigStateDocument = `
|
|
372
|
+
mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {
|
|
373
|
+
removeStateMachineConfigState(input: $input) {
|
|
374
|
+
...stateMachineConfig
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
${exports.StateMachineConfigFragmentDoc}`;
|
|
268
378
|
function getSdk(requester) {
|
|
269
379
|
return {
|
|
270
380
|
getApp(variables, options) {
|
|
@@ -323,6 +433,42 @@ function getSdk(requester) {
|
|
|
323
433
|
},
|
|
324
434
|
getStateMachine(variables, options) {
|
|
325
435
|
return requester(exports.GetStateMachineDocument, variables, options);
|
|
436
|
+
},
|
|
437
|
+
listLiveStateMachineConfigs(variables, options) {
|
|
438
|
+
return requester(exports.ListLiveStateMachineConfigsDocument, variables, options);
|
|
439
|
+
},
|
|
440
|
+
listDraftStateMachineConfigs(variables, options) {
|
|
441
|
+
return requester(exports.ListDraftStateMachineConfigsDocument, variables, options);
|
|
442
|
+
},
|
|
443
|
+
listStateMachineConfigVersions(variables, options) {
|
|
444
|
+
return requester(exports.ListStateMachineConfigVersionsDocument, variables, options);
|
|
445
|
+
},
|
|
446
|
+
getXStateMachineConfig(variables, options) {
|
|
447
|
+
return requester(exports.GetXStateMachineConfigDocument, variables, options);
|
|
448
|
+
},
|
|
449
|
+
createStateMachineConfig(variables, options) {
|
|
450
|
+
return requester(exports.CreateStateMachineConfigDocument, variables, options);
|
|
451
|
+
},
|
|
452
|
+
updateStateMachineConfig(variables, options) {
|
|
453
|
+
return requester(exports.UpdateStateMachineConfigDocument, variables, options);
|
|
454
|
+
},
|
|
455
|
+
removeStateMachineConfig(variables, options) {
|
|
456
|
+
return requester(exports.RemoveStateMachineConfigDocument, variables, options);
|
|
457
|
+
},
|
|
458
|
+
editStateMachineConfig(variables, options) {
|
|
459
|
+
return requester(exports.EditStateMachineConfigDocument, variables, options);
|
|
460
|
+
},
|
|
461
|
+
publishStateMachineConfig(variables, options) {
|
|
462
|
+
return requester(exports.PublishStateMachineConfigDocument, variables, options);
|
|
463
|
+
},
|
|
464
|
+
createStateMachineConfigState(variables, options) {
|
|
465
|
+
return requester(exports.CreateStateMachineConfigStateDocument, variables, options);
|
|
466
|
+
},
|
|
467
|
+
updateStateMachineConfigState(variables, options) {
|
|
468
|
+
return requester(exports.UpdateStateMachineConfigStateDocument, variables, options);
|
|
469
|
+
},
|
|
470
|
+
removeStateMachineConfigState(variables, options) {
|
|
471
|
+
return requester(exports.RemoveStateMachineConfigStateDocument, variables, options);
|
|
326
472
|
}
|
|
327
473
|
};
|
|
328
474
|
}
|
|
@@ -70,8 +70,8 @@ export type Scalars = {
|
|
|
70
70
|
output: any;
|
|
71
71
|
};
|
|
72
72
|
Set: {
|
|
73
|
-
input: any
|
|
74
|
-
output: any;
|
|
73
|
+
input: Set<any>;
|
|
74
|
+
output: any[];
|
|
75
75
|
};
|
|
76
76
|
URL: {
|
|
77
77
|
input: string;
|
|
@@ -108,6 +108,7 @@ export type PageInfo = {
|
|
|
108
108
|
};
|
|
109
109
|
export type Query = {
|
|
110
110
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
111
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
111
112
|
getReclameAquiInstance?: Maybe<ReclameAquiInstance>;
|
|
112
113
|
listReclameAquiInstances: Array<ReclameAquiInstance>;
|
|
113
114
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -124,9 +125,6 @@ export type ReclameAquiInstance = {
|
|
|
124
125
|
export type RemoveReclameAquiInstanceInput = {
|
|
125
126
|
id: Scalars['ID']['input'];
|
|
126
127
|
};
|
|
127
|
-
export type Subscription = {
|
|
128
|
-
version?: Maybe<Scalars['String']['output']>;
|
|
129
|
-
};
|
|
130
128
|
export declare enum Typenames {
|
|
131
129
|
Any = "Any",
|
|
132
130
|
GraphqlConnections = "GraphqlConnections",
|
package/src/sdks/zendesk.d.ts
CHANGED
|
@@ -70,8 +70,8 @@ export type Scalars = {
|
|
|
70
70
|
output: any;
|
|
71
71
|
};
|
|
72
72
|
Set: {
|
|
73
|
-
input: any
|
|
74
|
-
output: any;
|
|
73
|
+
input: Set<any>;
|
|
74
|
+
output: any[];
|
|
75
75
|
};
|
|
76
76
|
URL: {
|
|
77
77
|
input: string;
|
|
@@ -113,6 +113,7 @@ export type PageInfo = {
|
|
|
113
113
|
};
|
|
114
114
|
export type Query = {
|
|
115
115
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
116
|
+
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
116
117
|
getZendeskInstance?: Maybe<ZendeskInstance>;
|
|
117
118
|
listZendeskInstances: Array<ZendeskInstance>;
|
|
118
119
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -123,9 +124,6 @@ export type QueryGetZendeskInstanceArgs = {
|
|
|
123
124
|
export type RemoveZendeskInstanceInput = {
|
|
124
125
|
id: Scalars['ID']['input'];
|
|
125
126
|
};
|
|
126
|
-
export type Subscription = {
|
|
127
|
-
version?: Maybe<Scalars['String']['output']>;
|
|
128
|
-
};
|
|
129
127
|
export declare enum Typenames {
|
|
130
128
|
Any = "Any",
|
|
131
129
|
GraphqlConnections = "GraphqlConnections",
|
package/src/zendesk.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
export * from './sdks/zendesk';
|
|
2
2
|
export declare const Zendesk: new () => {
|
|
3
|
+
readonly http: any;
|
|
4
|
+
forTenant(tenant: string): void;
|
|
5
|
+
withAuthorization(authorization: import("./client/helpers").AuthorizationProvider): void;
|
|
6
|
+
} & {
|
|
3
7
|
getZendeskInstance(variables: import("./sdks/zendesk").Exact<{
|
|
4
8
|
id: string;
|
|
5
9
|
}>, options?: unknown): Promise<import("./sdks/zendesk").GetZendeskInstanceQuery>;
|
package/src/client/utils.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ExecutionResult } from 'graphql/index';
|
|
2
|
-
export declare function mapGraphqlResponse<T>(response: ExecutionResult<T> | Error): T;
|
|
3
|
-
export declare function mapAsyncIterableGraphqlResponse<T>(iterable: AsyncIterableIterator<ExecutionResult<T, any>>): AsyncGenerator<Awaited<T>, void, unknown>;
|