@droz-js/sdk 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/chatwidget.d.ts +1 -0
- package/src/client/helpers.d.ts +1 -1
- package/src/client/helpers.js +1 -1
- package/src/client/http.d.ts +3 -0
- package/src/client/http.js +13 -0
- package/src/drozadmin.d.ts +18 -0
- package/src/drozadmin.js +21 -0
- package/src/drozbot.d.ts +1 -0
- package/src/drozchat-ws.d.ts +0 -12
- package/src/drozchat.d.ts +1 -12
- package/src/droznexo.d.ts +1 -0
- package/src/mercadolivre.d.ts +1 -0
- package/src/nucleus.d.ts +30 -14
- package/src/reclameaqui.d.ts +1 -0
- package/src/sdks/chatwidget.d.ts +6 -0
- package/src/sdks/chatwidget.js +7 -1
- package/src/sdks/drozbot.d.ts +5 -0
- package/src/sdks/drozbot.js +7 -1
- package/src/sdks/drozchat.d.ts +30 -90
- package/src/sdks/drozchat.js +8 -49
- package/src/sdks/drozcommons.d.ts +172 -0
- package/src/sdks/drozcommons.js +77 -0
- package/src/sdks/droznexo.d.ts +5 -9
- package/src/sdks/droznexo.js +7 -7
- package/src/sdks/mercadolivre.d.ts +5 -0
- package/src/sdks/mercadolivre.js +7 -1
- package/src/sdks/nucleus.d.ts +160 -45
- package/src/sdks/nucleus.js +124 -28
- package/src/sdks/reclameaqui.d.ts +14 -7
- package/src/sdks/reclameaqui.js +9 -1
- package/src/sdks/zendesk.d.ts +5 -0
- package/src/sdks/zendesk.js +7 -1
- package/src/zendesk.d.ts +1 -0
package/src/sdks/droznexo.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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.
|
|
5
|
-
var
|
|
6
|
-
(function (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})(
|
|
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;
|
|
5
|
+
var AppInstanceStatus;
|
|
6
|
+
(function (AppInstanceStatus) {
|
|
7
|
+
AppInstanceStatus["Active"] = "Active";
|
|
8
|
+
AppInstanceStatus["Failing"] = "Failing";
|
|
9
|
+
AppInstanceStatus["Inactive"] = "Inactive";
|
|
10
|
+
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
11
11
|
var Typenames;
|
|
12
12
|
(function (Typenames) {
|
|
13
13
|
Typenames["Any"] = "Any";
|
|
@@ -86,6 +86,11 @@ export type Scalars = {
|
|
|
86
86
|
output: void;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
export declare enum AppInstanceStatus {
|
|
90
|
+
Active = "Active",
|
|
91
|
+
Failing = "Failing",
|
|
92
|
+
Inactive = "Inactive"
|
|
93
|
+
}
|
|
89
94
|
export type CreateMercadoLivreInstanceInput = {
|
|
90
95
|
credentialId?: InputMaybe<Scalars['ID']['input']>;
|
|
91
96
|
name: Scalars['String']['input'];
|
package/src/sdks/mercadolivre.js
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.RemoveMercadoLivreInstanceDocument = exports.UpdateMercadoLivreInstanceDocument = exports.CreateMercadoLivreInstanceDocument = exports.ListMercadoLivreInstancesDocument = exports.GetMercadoLivreInstanceDocument = exports.ReclameAquiInstanceFragmentDoc = exports.Typenames = exports.MercadoLivreInstanceType = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveMercadoLivreInstanceDocument = exports.UpdateMercadoLivreInstanceDocument = exports.CreateMercadoLivreInstanceDocument = exports.ListMercadoLivreInstancesDocument = exports.GetMercadoLivreInstanceDocument = exports.ReclameAquiInstanceFragmentDoc = exports.Typenames = exports.MercadoLivreInstanceType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
var AppInstanceStatus;
|
|
6
|
+
(function (AppInstanceStatus) {
|
|
7
|
+
AppInstanceStatus["Active"] = "Active";
|
|
8
|
+
AppInstanceStatus["Failing"] = "Failing";
|
|
9
|
+
AppInstanceStatus["Inactive"] = "Inactive";
|
|
10
|
+
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
|
|
5
11
|
var MercadoLivreInstanceType;
|
|
6
12
|
(function (MercadoLivreInstanceType) {
|
|
7
13
|
MercadoLivreInstanceType["PosVenda"] = "POS_VENDA";
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -129,6 +129,11 @@ export type AppInstance = {
|
|
|
129
129
|
transitions?: Maybe<Array<Scalars['String']['output']>>;
|
|
130
130
|
updatedAt: Scalars['DateTime']['output'];
|
|
131
131
|
};
|
|
132
|
+
export declare enum AppInstanceStatus {
|
|
133
|
+
Active = "Active",
|
|
134
|
+
Failing = "Failing",
|
|
135
|
+
Inactive = "Inactive"
|
|
136
|
+
}
|
|
132
137
|
export declare enum AppType {
|
|
133
138
|
Regular = "Regular",
|
|
134
139
|
Trigger = "Trigger"
|
|
@@ -207,9 +212,34 @@ export type CronJob = {
|
|
|
207
212
|
status: Scalars['String']['output'];
|
|
208
213
|
timestamp: Scalars['DateTime']['output'];
|
|
209
214
|
};
|
|
215
|
+
export type Customer = {
|
|
216
|
+
createdAt: Scalars['DateTime']['output'];
|
|
217
|
+
email: Scalars['String']['output'];
|
|
218
|
+
externalId?: Maybe<Scalars['ID']['output']>;
|
|
219
|
+
id: Scalars['ID']['output'];
|
|
220
|
+
name: Scalars['String']['output'];
|
|
221
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
222
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
223
|
+
};
|
|
224
|
+
export declare enum CustomerIndex {
|
|
225
|
+
ByEmail = "byEmail",
|
|
226
|
+
ByExternalId = "byExternalId",
|
|
227
|
+
ByPhone = "byPhone"
|
|
228
|
+
}
|
|
229
|
+
export type CustomersConnection = {
|
|
230
|
+
nodes: Array<Customer>;
|
|
231
|
+
pageInfo: PageInfo;
|
|
232
|
+
};
|
|
210
233
|
export type EditStateMachineConfigInput = {
|
|
211
234
|
id: Scalars['ID']['input'];
|
|
212
235
|
};
|
|
236
|
+
export type GetOrCreateCustomerInput = {
|
|
237
|
+
email?: InputMaybe<Scalars['String']['input']>;
|
|
238
|
+
externalId?: InputMaybe<Scalars['ID']['input']>;
|
|
239
|
+
id?: InputMaybe<Scalars['ID']['input']>;
|
|
240
|
+
name?: InputMaybe<Scalars['String']['input']>;
|
|
241
|
+
phone?: InputMaybe<Scalars['String']['input']>;
|
|
242
|
+
};
|
|
213
243
|
export type ICredentials = {
|
|
214
244
|
createdAt: Scalars['DateTime']['output'];
|
|
215
245
|
description: Scalars['String']['output'];
|
|
@@ -224,14 +254,18 @@ export type Mutation = {
|
|
|
224
254
|
createStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
225
255
|
createStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
226
256
|
editStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
227
|
-
|
|
257
|
+
getOrCreateCustomer: Customer;
|
|
258
|
+
patchSessionAttributes?: Maybe<Scalars['JSON']['output']>;
|
|
228
259
|
publishStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
260
|
+
registerAppInstance: AppInstance;
|
|
229
261
|
removeAgent?: Maybe<Agent>;
|
|
230
262
|
removeCredentials?: Maybe<SafeCredentials>;
|
|
231
263
|
removeCronJob: CronJob;
|
|
232
264
|
removeStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
233
265
|
removeStateMachineConfigState?: Maybe<StateMachineConfig>;
|
|
234
|
-
|
|
266
|
+
setSessionAttribute?: Maybe<Scalars['JSON']['output']>;
|
|
267
|
+
startSession?: Maybe<Session>;
|
|
268
|
+
unregisterAppInstance?: Maybe<AppInstance>;
|
|
235
269
|
updateAgent?: Maybe<Agent>;
|
|
236
270
|
updateCredentials: SafeCredentials;
|
|
237
271
|
updateCronJob: CronJob;
|
|
@@ -257,12 +291,18 @@ export type MutationCreateStateMachineConfigStateArgs = {
|
|
|
257
291
|
export type MutationEditStateMachineConfigArgs = {
|
|
258
292
|
input: EditStateMachineConfigInput;
|
|
259
293
|
};
|
|
260
|
-
export type
|
|
261
|
-
input:
|
|
294
|
+
export type MutationGetOrCreateCustomerArgs = {
|
|
295
|
+
input: GetOrCreateCustomerInput;
|
|
296
|
+
};
|
|
297
|
+
export type MutationPatchSessionAttributesArgs = {
|
|
298
|
+
input: PatchSessionAttributesInput;
|
|
262
299
|
};
|
|
263
300
|
export type MutationPublishStateMachineConfigArgs = {
|
|
264
301
|
input: PublishStateMachineConfigInput;
|
|
265
302
|
};
|
|
303
|
+
export type MutationRegisterAppInstanceArgs = {
|
|
304
|
+
input: RegisterAppInstanceInput;
|
|
305
|
+
};
|
|
266
306
|
export type MutationRemoveAgentArgs = {
|
|
267
307
|
input: RemoveAgentInput;
|
|
268
308
|
};
|
|
@@ -278,8 +318,14 @@ export type MutationRemoveStateMachineConfigArgs = {
|
|
|
278
318
|
export type MutationRemoveStateMachineConfigStateArgs = {
|
|
279
319
|
input: RemoveStateMachineConfigStateInput;
|
|
280
320
|
};
|
|
281
|
-
export type
|
|
282
|
-
input:
|
|
321
|
+
export type MutationSetSessionAttributeArgs = {
|
|
322
|
+
input: SetSessionAttributeInput;
|
|
323
|
+
};
|
|
324
|
+
export type MutationStartSessionArgs = {
|
|
325
|
+
input: StartSessionInput;
|
|
326
|
+
};
|
|
327
|
+
export type MutationUnregisterAppInstanceArgs = {
|
|
328
|
+
input: UnregisterAppInstanceInput;
|
|
283
329
|
};
|
|
284
330
|
export type MutationUpdateAgentArgs = {
|
|
285
331
|
input: UpdateAgentInput;
|
|
@@ -325,7 +371,7 @@ export declare enum PatchOperation {
|
|
|
325
371
|
Replace = "replace",
|
|
326
372
|
Test = "test"
|
|
327
373
|
}
|
|
328
|
-
export type
|
|
374
|
+
export type PatchSessionAttributesInput = {
|
|
329
375
|
patches: Array<PatchInput>;
|
|
330
376
|
sessionId: Scalars['ID']['input'];
|
|
331
377
|
};
|
|
@@ -343,8 +389,9 @@ export type Query = {
|
|
|
343
389
|
getCredentials?: Maybe<SafeCredentials>;
|
|
344
390
|
getCredentialsSecret?: Maybe<Credentials>;
|
|
345
391
|
getCronJob?: Maybe<CronJob>;
|
|
392
|
+
getCustomer?: Maybe<Customer>;
|
|
346
393
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
347
|
-
|
|
394
|
+
getSession?: Maybe<Session>;
|
|
348
395
|
getStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
349
396
|
getXStateMachineConfig?: Maybe<Scalars['JSON']['output']>;
|
|
350
397
|
listAgents: AgentConnection;
|
|
@@ -353,10 +400,10 @@ export type Query = {
|
|
|
353
400
|
listCredentials: Array<SafeCredentials>;
|
|
354
401
|
listCronJobs: Array<CronJob>;
|
|
355
402
|
listCronJobsByAppId: Array<SecureCronJob>;
|
|
403
|
+
listCustomers?: Maybe<CustomersConnection>;
|
|
356
404
|
listDraftStateMachineConfigs: StateMachineConfigConnection;
|
|
357
405
|
listLiveStateMachineConfigs: StateMachineConfigConnection;
|
|
358
406
|
listStateMachineConfigVersions: Array<StateMachineConfig>;
|
|
359
|
-
resolveSession?: Maybe<Session>;
|
|
360
407
|
version?: Maybe<Scalars['String']['output']>;
|
|
361
408
|
};
|
|
362
409
|
export type QueryGetAgentArgs = {
|
|
@@ -377,8 +424,10 @@ export type QueryGetCredentialsSecretArgs = {
|
|
|
377
424
|
export type QueryGetCronJobArgs = {
|
|
378
425
|
id: Scalars['ID']['input'];
|
|
379
426
|
};
|
|
380
|
-
export type
|
|
381
|
-
|
|
427
|
+
export type QueryGetCustomerArgs = {
|
|
428
|
+
identifier: Scalars['ID']['input'];
|
|
429
|
+
};
|
|
430
|
+
export type QueryGetSessionArgs = {
|
|
382
431
|
sessionId: Scalars['ID']['input'];
|
|
383
432
|
};
|
|
384
433
|
export type QueryGetStateMachineConfigArgs = {
|
|
@@ -405,13 +454,16 @@ export type QueryListCredentialsArgs = {
|
|
|
405
454
|
export type QueryListCronJobsByAppIdArgs = {
|
|
406
455
|
appId: Scalars['ID']['input'];
|
|
407
456
|
};
|
|
457
|
+
export type QueryListCustomersArgs = {
|
|
458
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
459
|
+
};
|
|
408
460
|
export type QueryListStateMachineConfigVersionsArgs = {
|
|
409
461
|
id: Scalars['ID']['input'];
|
|
410
462
|
};
|
|
411
|
-
export type
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
463
|
+
export type RegisterAppInstanceInput = {
|
|
464
|
+
drn: Scalars['DRN']['input'];
|
|
465
|
+
name: Scalars['String']['input'];
|
|
466
|
+
transitions?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
415
467
|
};
|
|
416
468
|
export type RemoveAgentInput = {
|
|
417
469
|
id: Scalars['ID']['input'];
|
|
@@ -449,15 +501,22 @@ export type SecureCronJob = {
|
|
|
449
501
|
timestamp: Scalars['DateTime']['output'];
|
|
450
502
|
};
|
|
451
503
|
export type Session = {
|
|
504
|
+
attributes: Scalars['JSON']['output'];
|
|
505
|
+
customer: Customer;
|
|
506
|
+
customerId: Scalars['ID']['output'];
|
|
452
507
|
sessionId: Scalars['ID']['output'];
|
|
453
508
|
stateMachineId: Scalars['ID']['output'];
|
|
454
509
|
triggerDrn: Scalars['ID']['output'];
|
|
455
|
-
userId?: Maybe<Scalars['ID']['output']>;
|
|
456
510
|
};
|
|
457
|
-
export type
|
|
458
|
-
|
|
459
|
-
namespace: Scalars['ID']['input'];
|
|
511
|
+
export type SetSessionAttributeInput = {
|
|
512
|
+
attribute: Scalars['ID']['input'];
|
|
460
513
|
sessionId: Scalars['ID']['input'];
|
|
514
|
+
value: Scalars['JSON']['input'];
|
|
515
|
+
};
|
|
516
|
+
export type StartSessionInput = {
|
|
517
|
+
context?: InputMaybe<Scalars['JSON']['input']>;
|
|
518
|
+
customer: GetOrCreateCustomerInput;
|
|
519
|
+
triggerDrn: Scalars['ID']['input'];
|
|
461
520
|
};
|
|
462
521
|
export type StateMachineConfig = {
|
|
463
522
|
createdAt: Scalars['DateTime']['output'];
|
|
@@ -500,15 +559,18 @@ export declare enum Typenames {
|
|
|
500
559
|
AppInstances = "AppInstances",
|
|
501
560
|
Credentials = "Credentials",
|
|
502
561
|
CronJobs = "CronJobs",
|
|
562
|
+
Customers = "Customers",
|
|
563
|
+
CustomersIndex = "CustomersIndex",
|
|
503
564
|
GraphqlConnections = "GraphqlConnections",
|
|
504
565
|
GraphqlSubscriptions = "GraphqlSubscriptions",
|
|
505
|
-
MachineConfigAliases = "MachineConfigAliases",
|
|
506
566
|
MachineConfigs = "MachineConfigs",
|
|
507
567
|
MachineStates = "MachineStates",
|
|
508
|
-
|
|
509
|
-
SessionStorage = "SessionStorage",
|
|
568
|
+
SessionAttributes = "SessionAttributes",
|
|
510
569
|
Sessions = "Sessions"
|
|
511
570
|
}
|
|
571
|
+
export type UnregisterAppInstanceInput = {
|
|
572
|
+
drn: Scalars['DRN']['input'];
|
|
573
|
+
};
|
|
512
574
|
export type UpdateAgentInput = {
|
|
513
575
|
email?: InputMaybe<Scalars['EmailAddress']['input']>;
|
|
514
576
|
id: Scalars['ID']['input'];
|
|
@@ -622,6 +684,18 @@ export type ListAppInstancesQuery = {
|
|
|
622
684
|
app?: AppFragment;
|
|
623
685
|
} & AppInstanceFragment)>;
|
|
624
686
|
};
|
|
687
|
+
export type RegisterAppInstanceMutationVariables = Exact<{
|
|
688
|
+
input: RegisterAppInstanceInput;
|
|
689
|
+
}>;
|
|
690
|
+
export type RegisterAppInstanceMutation = {
|
|
691
|
+
registerAppInstance: AppInstanceFragment;
|
|
692
|
+
};
|
|
693
|
+
export type UnregisterAppInstanceMutationVariables = Exact<{
|
|
694
|
+
input: UnregisterAppInstanceInput;
|
|
695
|
+
}>;
|
|
696
|
+
export type UnregisterAppInstanceMutation = {
|
|
697
|
+
unregisterAppInstance?: Maybe<AppInstanceFragment>;
|
|
698
|
+
};
|
|
625
699
|
export type GetAmplifyConfigQueryVariables = Exact<{
|
|
626
700
|
[key: string]: never;
|
|
627
701
|
}>;
|
|
@@ -677,6 +751,28 @@ export type RemoveCredentialsMutationVariables = Exact<{
|
|
|
677
751
|
export type RemoveCredentialsMutation = {
|
|
678
752
|
removeCredentials?: Maybe<SafeCredentialsFragment>;
|
|
679
753
|
};
|
|
754
|
+
export type CustomerFragment = Pick<Customer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>;
|
|
755
|
+
export type GetCustomerQueryVariables = Exact<{
|
|
756
|
+
identifier: Scalars['ID']['input'];
|
|
757
|
+
}>;
|
|
758
|
+
export type GetCustomerQuery = {
|
|
759
|
+
getCustomer?: Maybe<CustomerFragment>;
|
|
760
|
+
};
|
|
761
|
+
export type ListCustomersQueryVariables = Exact<{
|
|
762
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
763
|
+
}>;
|
|
764
|
+
export type ListCustomersQuery = {
|
|
765
|
+
listCustomers?: Maybe<{
|
|
766
|
+
nodes: Array<CustomerFragment>;
|
|
767
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
768
|
+
}>;
|
|
769
|
+
};
|
|
770
|
+
export type GetOrCreateCustomerMutationVariables = Exact<{
|
|
771
|
+
input: GetOrCreateCustomerInput;
|
|
772
|
+
}>;
|
|
773
|
+
export type GetOrCreateCustomerMutation = {
|
|
774
|
+
getOrCreateCustomer: CustomerFragment;
|
|
775
|
+
};
|
|
680
776
|
export type CronJobFragment = Pick<CronJob, 'appId' | 'id' | 'description' | 'expression' | 'event' | 'payload' | 'status' | 'timestamp' | 'runs'>;
|
|
681
777
|
export type GetCronJobQueryVariables = Exact<{
|
|
682
778
|
id: Scalars['ID']['input'];
|
|
@@ -708,27 +804,34 @@ export type RemoveCronJobMutationVariables = Exact<{
|
|
|
708
804
|
export type RemoveCronJobMutation = {
|
|
709
805
|
removeCronJob: CronJobFragment;
|
|
710
806
|
};
|
|
711
|
-
export type
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
807
|
+
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn'>;
|
|
808
|
+
export type StartSessionMutationVariables = Exact<{
|
|
809
|
+
input: StartSessionInput;
|
|
810
|
+
withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
|
|
715
811
|
}>;
|
|
716
|
-
export type
|
|
717
|
-
|
|
812
|
+
export type StartSessionMutation = {
|
|
813
|
+
startSession?: Maybe<(Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn'> & {
|
|
814
|
+
customer?: CustomerFragment;
|
|
815
|
+
})>;
|
|
718
816
|
};
|
|
719
|
-
export type
|
|
817
|
+
export type GetSessionQueryVariables = Exact<{
|
|
720
818
|
sessionId: Scalars['ID']['input'];
|
|
721
|
-
|
|
819
|
+
withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
|
|
820
|
+
withAttributes?: InputMaybe<Scalars['Boolean']['input']>;
|
|
722
821
|
}>;
|
|
723
|
-
export type
|
|
724
|
-
|
|
725
|
-
|
|
822
|
+
export type GetSessionQuery = {
|
|
823
|
+
getSession?: Maybe<(MakeOptional<Pick<Session, 'attributes'>, 'attributes'> & {
|
|
824
|
+
customer?: CustomerFragment;
|
|
825
|
+
} & SessionFragment)>;
|
|
826
|
+
};
|
|
827
|
+
export type SetSessionAttributeMutationVariables = Exact<{
|
|
828
|
+
input: SetSessionAttributeInput;
|
|
726
829
|
}>;
|
|
727
|
-
export type
|
|
728
|
-
export type
|
|
729
|
-
input:
|
|
830
|
+
export type SetSessionAttributeMutation = Pick<Mutation, 'setSessionAttribute'>;
|
|
831
|
+
export type PatchSessionAttributesMutationVariables = Exact<{
|
|
832
|
+
input: PatchSessionAttributesInput;
|
|
730
833
|
}>;
|
|
731
|
-
export type
|
|
834
|
+
export type PatchSessionAttributesMutation = Pick<Mutation, 'patchSessionAttributes'>;
|
|
732
835
|
export type StateMachineConfigStateOnFragment = Pick<StateMachineConfigStatesOn, 'event' | 'target'>;
|
|
733
836
|
export type StateMachineConfigStateFragment = (Pick<StateMachineConfigState, 'stateId' | 'meta'> & {
|
|
734
837
|
on: Array<StateMachineConfigStateOnFragment>;
|
|
@@ -823,7 +926,9 @@ export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type
|
|
|
823
926
|
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 ";
|
|
824
927
|
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 ";
|
|
825
928
|
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 ";
|
|
826
930
|
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
|
+
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n ";
|
|
827
932
|
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
828
933
|
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 ";
|
|
829
934
|
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 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 ";
|
|
@@ -837,6 +942,8 @@ export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInst
|
|
|
837
942
|
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 ";
|
|
838
943
|
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: DRN!) {\n getAppInstance(drn: $drn) {\n ...appInstance\n app {\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 ";
|
|
839
944
|
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
|
+
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
|
+
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 ";
|
|
840
947
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig {\n amplifyConfig\n}\n ";
|
|
841
948
|
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n ";
|
|
842
949
|
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 createdAt\n updatedAt\n}\n ";
|
|
@@ -845,15 +952,18 @@ export declare const ListCredentialsDocument = "\n query listCredentials($typ
|
|
|
845
952
|
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 ";
|
|
846
953
|
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 ";
|
|
847
954
|
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 ";
|
|
848
958
|
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 ";
|
|
849
959
|
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 ";
|
|
850
960
|
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 ";
|
|
851
961
|
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 ";
|
|
852
962
|
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 ";
|
|
853
|
-
export declare const
|
|
854
|
-
export declare const
|
|
855
|
-
export declare const
|
|
856
|
-
export declare const
|
|
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 ";
|
|
965
|
+
export declare const SetSessionAttributeDocument = "\n mutation setSessionAttribute($input: SetSessionAttributeInput!) {\n setSessionAttribute(input: $input)\n}\n ";
|
|
966
|
+
export declare const PatchSessionAttributesDocument = "\n mutation patchSessionAttributes($input: PatchSessionAttributesInput!) {\n patchSessionAttributes(input: $input)\n}\n ";
|
|
857
967
|
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 ";
|
|
858
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 ";
|
|
859
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 ";
|
|
@@ -878,6 +988,8 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
878
988
|
listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
|
|
879
989
|
getAppInstance(variables: GetAppInstanceQueryVariables, options?: C): Promise<GetAppInstanceQuery>;
|
|
880
990
|
listAppInstances(variables?: ListAppInstancesQueryVariables, options?: C): Promise<ListAppInstancesQuery>;
|
|
991
|
+
registerAppInstance(variables: RegisterAppInstanceMutationVariables, options?: C): Promise<RegisterAppInstanceMutation>;
|
|
992
|
+
unregisterAppInstance(variables: UnregisterAppInstanceMutationVariables, options?: C): Promise<UnregisterAppInstanceMutation>;
|
|
881
993
|
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
882
994
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
883
995
|
getCredentials(variables: GetCredentialsQueryVariables, options?: C): Promise<GetCredentialsQuery>;
|
|
@@ -886,15 +998,18 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): {
|
|
|
886
998
|
createCredentials(variables: CreateCredentialsMutationVariables, options?: C): Promise<CreateCredentialsMutation>;
|
|
887
999
|
updateCredentials(variables: UpdateCredentialsMutationVariables, options?: C): Promise<UpdateCredentialsMutation>;
|
|
888
1000
|
removeCredentials(variables: RemoveCredentialsMutationVariables, options?: C): Promise<RemoveCredentialsMutation>;
|
|
1001
|
+
getCustomer(variables: GetCustomerQueryVariables, options?: C): Promise<GetCustomerQuery>;
|
|
1002
|
+
listCustomers(variables?: ListCustomersQueryVariables, options?: C): Promise<ListCustomersQuery>;
|
|
1003
|
+
getOrCreateCustomer(variables: GetOrCreateCustomerMutationVariables, options?: C): Promise<GetOrCreateCustomerMutation>;
|
|
889
1004
|
getCronJob(variables: GetCronJobQueryVariables, options?: C): Promise<GetCronJobQuery>;
|
|
890
1005
|
listCronJobs(variables?: ListCronJobsQueryVariables, options?: C): Promise<ListCronJobsQuery>;
|
|
891
1006
|
createCronJob(variables: CreateCronJobMutationVariables, options?: C): Promise<CreateCronJobMutation>;
|
|
892
1007
|
updateCronJob(variables: UpdateCronJobMutationVariables, options?: C): Promise<UpdateCronJobMutation>;
|
|
893
1008
|
removeCronJob(variables: RemoveCronJobMutationVariables, options?: C): Promise<RemoveCronJobMutation>;
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
1009
|
+
startSession(variables: StartSessionMutationVariables, options?: C): Promise<StartSessionMutation>;
|
|
1010
|
+
getSession(variables: GetSessionQueryVariables, options?: C): Promise<GetSessionQuery>;
|
|
1011
|
+
setSessionAttribute(variables: SetSessionAttributeMutationVariables, options?: C): Promise<SetSessionAttributeMutation>;
|
|
1012
|
+
patchSessionAttributes(variables: PatchSessionAttributesMutationVariables, options?: C): Promise<PatchSessionAttributesMutation>;
|
|
898
1013
|
getStateMachine(variables: GetStateMachineQueryVariables, options?: C): Promise<GetStateMachineQuery>;
|
|
899
1014
|
listLiveStateMachineConfigs(variables?: ListLiveStateMachineConfigsQueryVariables, options?: C): Promise<ListLiveStateMachineConfigsQuery>;
|
|
900
1015
|
listDraftStateMachineConfigs(variables?: ListDraftStateMachineConfigsQueryVariables, options?: C): Promise<ListDraftStateMachineConfigsQuery>;
|