@droz-js/sdk 0.5.6 → 0.5.7
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 +4 -2
- package/src/drozadmin.d.ts +3 -0
- package/src/drozchat-ws.d.ts +6 -3
- package/src/drozchat.d.ts +6 -3
- package/src/nucleus.d.ts +7 -0
- package/src/sdks/drozchat.d.ts +28 -13
- package/src/sdks/drozchat.js +16 -6
- package/src/sdks/drozcommons.d.ts +16 -0
- package/src/sdks/drozcommons.js +16 -1
- package/src/sdks/nucleus.d.ts +38 -0
- package/src/sdks/nucleus.js +31 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@droz-js/sdk",
|
|
3
3
|
"description": "Droz SDK",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.7",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": "./src/index.js",
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
"./server/*": "./src/*.ts"
|
|
11
11
|
},
|
|
12
12
|
"scripts": {
|
|
13
|
+
"test": "jest",
|
|
14
|
+
"pretest": "npm run clean",
|
|
13
15
|
"clean": "npx rimraf src/*.js src/*.d.ts src/**/*.js src/**/*.d.ts",
|
|
14
16
|
"prebuild": "npm run clean",
|
|
15
17
|
"build": "tsc --project tsconfig-build.json",
|
|
@@ -30,4 +32,4 @@
|
|
|
30
32
|
"src/**/*.d.ts",
|
|
31
33
|
"README.md"
|
|
32
34
|
]
|
|
33
|
-
}
|
|
35
|
+
}
|
package/src/drozadmin.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export declare const DrozAdmin: new (options?: import("./client/http").HttpClien
|
|
|
14
14
|
listAccounts(variables?: import("./sdks/drozcommons").Exact<{
|
|
15
15
|
[key: string]: never;
|
|
16
16
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountsQuery>;
|
|
17
|
+
listRegions(variables?: import("./sdks/drozcommons").Exact<{
|
|
18
|
+
[key: string]: never;
|
|
19
|
+
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListRegionsQuery>;
|
|
17
20
|
listGitRepositories(variables?: import("./sdks/drozcommons").Exact<{
|
|
18
21
|
[key: string]: never;
|
|
19
22
|
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitRepositoriesQuery>;
|
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -18,9 +18,12 @@ export declare const DrozChatWs: new () => {
|
|
|
18
18
|
updateDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
19
19
|
input: import("./sdks/drozchat").UpdateDrozChatChannelInput;
|
|
20
20
|
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateDrozChatChannelMutation>;
|
|
21
|
-
|
|
22
|
-
input: import("./sdks/drozchat").
|
|
23
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").
|
|
21
|
+
disableDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
22
|
+
input: import("./sdks/drozchat").DisableDrozChatChannelInput;
|
|
23
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableDrozChatChannelMutation>;
|
|
24
|
+
enableDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
25
|
+
input: import("./sdks/drozchat").EnableDrozChatChannelInput;
|
|
26
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").EnableDrozChatChannelMutation>;
|
|
24
27
|
addDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
25
28
|
input: import("./sdks/drozchat").AddDrozChatChannelAgentInput;
|
|
26
29
|
}>, options?: unknown): Promise<import("./sdks/drozchat").AddDrozChatChannelAgentMutation>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -20,9 +20,12 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
|
|
|
20
20
|
updateDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
21
21
|
input: import("./sdks/drozchat").UpdateDrozChatChannelInput;
|
|
22
22
|
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateDrozChatChannelMutation>;
|
|
23
|
-
|
|
24
|
-
input: import("./sdks/drozchat").
|
|
25
|
-
}>, options?: unknown): Promise<import("./sdks/drozchat").
|
|
23
|
+
disableDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
24
|
+
input: import("./sdks/drozchat").DisableDrozChatChannelInput;
|
|
25
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableDrozChatChannelMutation>;
|
|
26
|
+
enableDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
27
|
+
input: import("./sdks/drozchat").EnableDrozChatChannelInput;
|
|
28
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").EnableDrozChatChannelMutation>;
|
|
26
29
|
addDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
27
30
|
input: import("./sdks/drozchat").AddDrozChatChannelAgentInput;
|
|
28
31
|
}>, options?: unknown): Promise<import("./sdks/drozchat").AddDrozChatChannelAgentMutation>;
|
package/src/nucleus.d.ts
CHANGED
|
@@ -131,6 +131,13 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
131
131
|
withCustomer?: boolean;
|
|
132
132
|
withAttributes?: boolean;
|
|
133
133
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetSessionQuery>;
|
|
134
|
+
getSessionSchema(variables?: import("./sdks/nucleus").Exact<{
|
|
135
|
+
lang?: string;
|
|
136
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetSessionSchemaQuery>;
|
|
137
|
+
getSessionSchemaForAppId(variables: import("./sdks/nucleus").Exact<{
|
|
138
|
+
appId: string;
|
|
139
|
+
lang?: string;
|
|
140
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetSessionSchemaForAppIdQuery>;
|
|
134
141
|
setSessionAttribute(variables: import("./sdks/nucleus").Exact<{
|
|
135
142
|
input: import("./sdks/nucleus").SetSessionAttributeInput;
|
|
136
143
|
}>, options?: unknown): Promise<import("./sdks/nucleus").SetSessionAttributeMutation>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -124,6 +124,9 @@ export type CreateTicketMessageInput = {
|
|
|
124
124
|
contentType: Scalars['String']['input'];
|
|
125
125
|
ticketId: Scalars['ID']['input'];
|
|
126
126
|
};
|
|
127
|
+
export type DisableDrozChatChannelInput = {
|
|
128
|
+
id: Scalars['ID']['input'];
|
|
129
|
+
};
|
|
127
130
|
export type DrozChatAgent = {
|
|
128
131
|
createdAt: Scalars['String']['output'];
|
|
129
132
|
id: Scalars['ID']['output'];
|
|
@@ -146,6 +149,9 @@ export type DrozChatCustomer = {
|
|
|
146
149
|
phone?: Maybe<Scalars['String']['output']>;
|
|
147
150
|
updatedAt: Scalars['String']['output'];
|
|
148
151
|
};
|
|
152
|
+
export type EnableDrozChatChannelInput = {
|
|
153
|
+
id: Scalars['ID']['input'];
|
|
154
|
+
};
|
|
149
155
|
export type MarkTicketMessagesAsReadInput = {
|
|
150
156
|
channelId: Scalars['ID']['input'];
|
|
151
157
|
ticketId: Scalars['ID']['input'];
|
|
@@ -159,8 +165,9 @@ export type Mutation = {
|
|
|
159
165
|
createTicket: Ticket;
|
|
160
166
|
createTicketMessage: TicketMessage;
|
|
161
167
|
createTicketMessageForStorage: TicketMessage;
|
|
168
|
+
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
169
|
+
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
162
170
|
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
|
|
163
|
-
removeDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
164
171
|
removeDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
165
172
|
transferTicketToChannel: Ticket;
|
|
166
173
|
unassignTicket: Ticket;
|
|
@@ -191,12 +198,15 @@ export type MutationCreateTicketMessageArgs = {
|
|
|
191
198
|
export type MutationCreateTicketMessageForStorageArgs = {
|
|
192
199
|
input: CreateTicketMessageForStorageInput;
|
|
193
200
|
};
|
|
201
|
+
export type MutationDisableDrozChatChannelArgs = {
|
|
202
|
+
input: DisableDrozChatChannelInput;
|
|
203
|
+
};
|
|
204
|
+
export type MutationEnableDrozChatChannelArgs = {
|
|
205
|
+
input: EnableDrozChatChannelInput;
|
|
206
|
+
};
|
|
194
207
|
export type MutationMarkTicketMessagesAsReadArgs = {
|
|
195
208
|
input: MarkTicketMessagesAsReadInput;
|
|
196
209
|
};
|
|
197
|
-
export type MutationRemoveDrozChatChannelArgs = {
|
|
198
|
-
input: RemoveDrozChatChannelInput;
|
|
199
|
-
};
|
|
200
210
|
export type MutationRemoveDrozChatChannelAgentArgs = {
|
|
201
211
|
input: RemoveDrozChatChannelAgentInput;
|
|
202
212
|
};
|
|
@@ -252,9 +262,6 @@ export type RemoveDrozChatChannelAgentInput = {
|
|
|
252
262
|
agentId: Scalars['ID']['input'];
|
|
253
263
|
channelId: Scalars['ID']['input'];
|
|
254
264
|
};
|
|
255
|
-
export type RemoveDrozChatChannelInput = {
|
|
256
|
-
id: Scalars['ID']['input'];
|
|
257
|
-
};
|
|
258
265
|
export type Subscription = {
|
|
259
266
|
onTicketByState: TicketSubscription;
|
|
260
267
|
onTicketInProgressMine: TicketSubscription;
|
|
@@ -429,11 +436,17 @@ export type UpdateDrozChatChannelMutationVariables = Exact<{
|
|
|
429
436
|
export type UpdateDrozChatChannelMutation = {
|
|
430
437
|
updateDrozChatChannel?: Maybe<DrozChatChannelFragment>;
|
|
431
438
|
};
|
|
432
|
-
export type
|
|
433
|
-
input:
|
|
439
|
+
export type DisableDrozChatChannelMutationVariables = Exact<{
|
|
440
|
+
input: DisableDrozChatChannelInput;
|
|
441
|
+
}>;
|
|
442
|
+
export type DisableDrozChatChannelMutation = {
|
|
443
|
+
disableDrozChatChannel?: Maybe<DrozChatChannelFragment>;
|
|
444
|
+
};
|
|
445
|
+
export type EnableDrozChatChannelMutationVariables = Exact<{
|
|
446
|
+
input: EnableDrozChatChannelInput;
|
|
434
447
|
}>;
|
|
435
|
-
export type
|
|
436
|
-
|
|
448
|
+
export type EnableDrozChatChannelMutation = {
|
|
449
|
+
enableDrozChatChannel?: Maybe<DrozChatChannelFragment>;
|
|
437
450
|
};
|
|
438
451
|
export type AddDrozChatChannelAgentMutationVariables = Exact<{
|
|
439
452
|
input: AddDrozChatChannelAgentInput;
|
|
@@ -589,7 +602,8 @@ export declare const ListDrozChatChannelsDocument = "\n query listDrozChatCha
|
|
|
589
602
|
export declare const ListDrozChatAgentChannelsDocument = "\n query listDrozChatAgentChannels($agentId: ID!) {\n listDrozChatAgentChannels(agentId: $agentId) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
590
603
|
export declare const CreateDrozChatChannelDocument = "\n mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) {\n createDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
591
604
|
export declare const UpdateDrozChatChannelDocument = "\n mutation updateDrozChatChannel($input: UpdateDrozChatChannelInput!) {\n updateDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
592
|
-
export declare const
|
|
605
|
+
export declare const DisableDrozChatChannelDocument = "\n mutation disableDrozChatChannel($input: DisableDrozChatChannelInput!) {\n disableDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
606
|
+
export declare const EnableDrozChatChannelDocument = "\n mutation enableDrozChatChannel($input: EnableDrozChatChannelInput!) {\n enableDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
593
607
|
export declare const AddDrozChatChannelAgentDocument = "\n mutation addDrozChatChannelAgent($input: AddDrozChatChannelAgentInput!) {\n addDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
594
608
|
export declare const RemoveDrozChatChannelAgentDocument = "\n mutation removeDrozChatChannelAgent($input: RemoveDrozChatChannelAgentInput!) {\n removeDrozChatChannelAgent(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
595
609
|
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
@@ -615,7 +629,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
615
629
|
listDrozChatAgentChannels(variables: ListDrozChatAgentChannelsQueryVariables, options?: C): Promise<ListDrozChatAgentChannelsQuery>;
|
|
616
630
|
createDrozChatChannel(variables: CreateDrozChatChannelMutationVariables, options?: C): Promise<CreateDrozChatChannelMutation>;
|
|
617
631
|
updateDrozChatChannel(variables: UpdateDrozChatChannelMutationVariables, options?: C): Promise<UpdateDrozChatChannelMutation>;
|
|
618
|
-
|
|
632
|
+
disableDrozChatChannel(variables: DisableDrozChatChannelMutationVariables, options?: C): Promise<DisableDrozChatChannelMutation>;
|
|
633
|
+
enableDrozChatChannel(variables: EnableDrozChatChannelMutationVariables, options?: C): Promise<EnableDrozChatChannelMutation>;
|
|
619
634
|
addDrozChatChannelAgent(variables: AddDrozChatChannelAgentMutationVariables, options?: C): Promise<AddDrozChatChannelAgentMutation>;
|
|
620
635
|
removeDrozChatChannelAgent(variables: RemoveDrozChatChannelAgentMutationVariables, options?: C): Promise<RemoveDrozChatChannelAgentMutation>;
|
|
621
636
|
getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -197,9 +197,16 @@ exports.UpdateDrozChatChannelDocument = `
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
${exports.DrozChatChannelFragmentDoc}`;
|
|
200
|
-
exports.
|
|
201
|
-
mutation
|
|
202
|
-
|
|
200
|
+
exports.DisableDrozChatChannelDocument = `
|
|
201
|
+
mutation disableDrozChatChannel($input: DisableDrozChatChannelInput!) {
|
|
202
|
+
disableDrozChatChannel(input: $input) {
|
|
203
|
+
...drozChatChannel
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
${exports.DrozChatChannelFragmentDoc}`;
|
|
207
|
+
exports.EnableDrozChatChannelDocument = `
|
|
208
|
+
mutation enableDrozChatChannel($input: EnableDrozChatChannelInput!) {
|
|
209
|
+
enableDrozChatChannel(input: $input) {
|
|
203
210
|
...drozChatChannel
|
|
204
211
|
}
|
|
205
212
|
}
|
|
@@ -372,8 +379,11 @@ function getSdk(requester) {
|
|
|
372
379
|
updateDrozChatChannel(variables, options) {
|
|
373
380
|
return requester(exports.UpdateDrozChatChannelDocument, variables, options);
|
|
374
381
|
},
|
|
375
|
-
|
|
376
|
-
return requester(exports.
|
|
382
|
+
disableDrozChatChannel(variables, options) {
|
|
383
|
+
return requester(exports.DisableDrozChatChannelDocument, variables, options);
|
|
384
|
+
},
|
|
385
|
+
enableDrozChatChannel(variables, options) {
|
|
386
|
+
return requester(exports.EnableDrozChatChannelDocument, variables, options);
|
|
377
387
|
},
|
|
378
388
|
addDrozChatChannelAgent(variables, options) {
|
|
379
389
|
return requester(exports.AddDrozChatChannelAgentDocument, variables, options);
|
|
@@ -121,6 +121,7 @@ export type CreateTenantInput = {
|
|
|
121
121
|
accountId: Scalars['ID']['input'];
|
|
122
122
|
billing?: InputMaybe<TenantBillingInput>;
|
|
123
123
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
124
|
+
region?: InputMaybe<Scalars['String']['input']>;
|
|
124
125
|
tenantId: Scalars['ID']['input'];
|
|
125
126
|
};
|
|
126
127
|
export type DeployInput = {
|
|
@@ -216,6 +217,7 @@ export type Query = {
|
|
|
216
217
|
listDeployments: Array<Deployment>;
|
|
217
218
|
listGitBranches: Array<GitBranch>;
|
|
218
219
|
listGitRepositories: Array<GitRepository>;
|
|
220
|
+
listRegions: Array<Region>;
|
|
219
221
|
listServices: Array<Maybe<Service>>;
|
|
220
222
|
listTenants: Array<Maybe<Tenant>>;
|
|
221
223
|
version?: Maybe<Scalars['String']['output']>;
|
|
@@ -251,6 +253,9 @@ export type ReclameAquiBilling = {
|
|
|
251
253
|
export type ReclameAquiBillingInput = {
|
|
252
254
|
cutoffSyncDays?: InputMaybe<Scalars['Float']['input']>;
|
|
253
255
|
};
|
|
256
|
+
export type Region = {
|
|
257
|
+
name: Scalars['String']['output'];
|
|
258
|
+
};
|
|
254
259
|
export type RemoveTenantInput = {
|
|
255
260
|
tenantId: Scalars['ID']['input'];
|
|
256
261
|
};
|
|
@@ -270,6 +275,7 @@ export type Tenant = {
|
|
|
270
275
|
deployments: Array<Deployment>;
|
|
271
276
|
disabled?: Maybe<Scalars['Boolean']['output']>;
|
|
272
277
|
name?: Maybe<Scalars['String']['output']>;
|
|
278
|
+
region: Scalars['String']['output'];
|
|
273
279
|
services: Array<Maybe<Service>>;
|
|
274
280
|
tenantId: Scalars['ID']['output'];
|
|
275
281
|
updatedAt: Scalars['DateTime']['output'];
|
|
@@ -305,12 +311,19 @@ export type GitRepositoryFragment = (Pick<GitRepository, 'id' | 'name'> & {
|
|
|
305
311
|
});
|
|
306
312
|
export type GitBranchFragment = Pick<GitBranch, 'name'>;
|
|
307
313
|
export type AwsAccountFragment = Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'>;
|
|
314
|
+
export type RegionFragment = Pick<Region, 'name'>;
|
|
308
315
|
export type ListAccountsQueryVariables = Exact<{
|
|
309
316
|
[key: string]: never;
|
|
310
317
|
}>;
|
|
311
318
|
export type ListAccountsQuery = {
|
|
312
319
|
listAccounts: Array<AwsAccountFragment>;
|
|
313
320
|
};
|
|
321
|
+
export type ListRegionsQueryVariables = Exact<{
|
|
322
|
+
[key: string]: never;
|
|
323
|
+
}>;
|
|
324
|
+
export type ListRegionsQuery = {
|
|
325
|
+
listRegions: Array<RegionFragment>;
|
|
326
|
+
};
|
|
314
327
|
export type ListGitRepositoriesQueryVariables = Exact<{
|
|
315
328
|
[key: string]: never;
|
|
316
329
|
}>;
|
|
@@ -422,11 +435,13 @@ export declare const DeploymentFragmentDoc = "\n fragment deployment on Deplo
|
|
|
422
435
|
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
423
436
|
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
424
437
|
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
438
|
+
export declare const RegionFragmentDoc = "\n fragment region on Region {\n name\n}\n ";
|
|
425
439
|
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n ";
|
|
426
440
|
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n disabled\n createdAt\n updatedAt\n billing {\n reclameaqui {\n cutoffSyncDays\n }\n }\n account {\n id\n name\n }\n}\n ";
|
|
427
441
|
export declare const GetAmplifyConfigDocument = "\n query getAmplifyConfig($forDev: Boolean) {\n amplifyConfig(forDev: $forDev)\n}\n ";
|
|
428
442
|
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 ";
|
|
429
443
|
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n ";
|
|
444
|
+
export declare const ListRegionsDocument = "\n query listRegions {\n listRegions {\n ...region\n }\n}\n \n fragment region on Region {\n name\n}\n ";
|
|
430
445
|
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n branches {\n ...gitBranch\n }\n}\n \n fragment gitBranch on GitBranch {\n name\n}\n ";
|
|
431
446
|
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n ";
|
|
432
447
|
export declare const GetDeploymentDocument = "\n query getDeployment($tenantId: ID!, $deploymentId: ID!) {\n getDeployment(tenantId: $tenantId, deploymentId: $deploymentId) {\n ...deployment\n }\n}\n \n fragment deployment on Deployment {\n id\n tenantId\n command\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n ";
|
|
@@ -446,6 +461,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
446
461
|
getAmplifyConfig(variables?: GetAmplifyConfigQueryVariables, options?: C): Promise<GetAmplifyConfigQuery>;
|
|
447
462
|
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>;
|
|
448
463
|
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>;
|
|
464
|
+
listRegions(variables?: ListRegionsQueryVariables, options?: C): Promise<ListRegionsQuery>;
|
|
449
465
|
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>;
|
|
450
466
|
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>;
|
|
451
467
|
getDeployment(variables: GetDeploymentQueryVariables, options?: C): Promise<GetDeploymentQuery>;
|
package/src/sdks/drozcommons.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.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.BatchDeployDocument = exports.DestroyDocument = exports.DeployDocument = exports.DeploymentLogsDocument = exports.ListDeploymentsDocument = exports.GetDeploymentDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListRegionsDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.RegionFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitRepositoryFragmentDoc = exports.GitBranchFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -61,6 +61,11 @@ exports.AwsAccountFragmentDoc = `
|
|
|
61
61
|
tenantsCount
|
|
62
62
|
}
|
|
63
63
|
`;
|
|
64
|
+
exports.RegionFragmentDoc = `
|
|
65
|
+
fragment region on Region {
|
|
66
|
+
name
|
|
67
|
+
}
|
|
68
|
+
`;
|
|
64
69
|
exports.ServiceFragmentDoc = `
|
|
65
70
|
fragment service on Service {
|
|
66
71
|
accountId
|
|
@@ -117,6 +122,13 @@ exports.ListAccountsDocument = `
|
|
|
117
122
|
}
|
|
118
123
|
}
|
|
119
124
|
${exports.AwsAccountFragmentDoc}`;
|
|
125
|
+
exports.ListRegionsDocument = `
|
|
126
|
+
query listRegions {
|
|
127
|
+
listRegions {
|
|
128
|
+
...region
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
${exports.RegionFragmentDoc}`;
|
|
120
132
|
exports.ListGitRepositoriesDocument = `
|
|
121
133
|
query listGitRepositories {
|
|
122
134
|
listGitRepositories {
|
|
@@ -251,6 +263,9 @@ function getSdk(requester) {
|
|
|
251
263
|
listAccounts(variables, options) {
|
|
252
264
|
return requester(exports.ListAccountsDocument, variables, options);
|
|
253
265
|
},
|
|
266
|
+
listRegions(variables, options) {
|
|
267
|
+
return requester(exports.ListRegionsDocument, variables, options);
|
|
268
|
+
},
|
|
254
269
|
listGitRepositories(variables, options) {
|
|
255
270
|
return requester(exports.ListGitRepositoriesDocument, variables, options);
|
|
256
271
|
},
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -156,6 +156,14 @@ export declare enum AppInstanceStatus {
|
|
|
156
156
|
Failing = "Failing",
|
|
157
157
|
Inactive = "Inactive"
|
|
158
158
|
}
|
|
159
|
+
export type AppSessionSchemaFieldDescription = {
|
|
160
|
+
description: Scalars['String']['output'];
|
|
161
|
+
name: Scalars['String']['output'];
|
|
162
|
+
};
|
|
163
|
+
export type AppSessionSchemaFields = {
|
|
164
|
+
fields: Array<AppSessionSchemaFieldDescription>;
|
|
165
|
+
name: Scalars['String']['output'];
|
|
166
|
+
};
|
|
159
167
|
export declare enum AppType {
|
|
160
168
|
Agent = "Agent",
|
|
161
169
|
User = "User",
|
|
@@ -468,6 +476,8 @@ export type Query = {
|
|
|
468
476
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
469
477
|
getMe?: Maybe<Agent>;
|
|
470
478
|
getSession?: Maybe<Session>;
|
|
479
|
+
getSessionSchema: Array<AppSessionSchemaFields>;
|
|
480
|
+
getSessionSchemaForAppId?: Maybe<AppSessionSchemaFields>;
|
|
471
481
|
getStateMachineConfig?: Maybe<StateMachineConfig>;
|
|
472
482
|
getStorage?: Maybe<Storage>;
|
|
473
483
|
getSystemRole?: Maybe<Role>;
|
|
@@ -514,6 +524,13 @@ export type QueryGetCustomerArgs = {
|
|
|
514
524
|
export type QueryGetSessionArgs = {
|
|
515
525
|
sessionId: Scalars['ID']['input'];
|
|
516
526
|
};
|
|
527
|
+
export type QueryGetSessionSchemaArgs = {
|
|
528
|
+
lang?: InputMaybe<Scalars['String']['input']>;
|
|
529
|
+
};
|
|
530
|
+
export type QueryGetSessionSchemaForAppIdArgs = {
|
|
531
|
+
appId: Scalars['ID']['input'];
|
|
532
|
+
lang?: InputMaybe<Scalars['String']['input']>;
|
|
533
|
+
};
|
|
517
534
|
export type QueryGetStateMachineConfigArgs = {
|
|
518
535
|
id: Scalars['ID']['input'];
|
|
519
536
|
versionId: Scalars['ID']['input'];
|
|
@@ -1008,6 +1025,9 @@ export type GetSystemRoleQuery = {
|
|
|
1008
1025
|
getSystemRole?: Maybe<RoleFragment>;
|
|
1009
1026
|
};
|
|
1010
1027
|
export type SessionFragment = Pick<Session, 'sessionId' | 'customerId' | 'stateMachineId' | 'triggerDrn'>;
|
|
1028
|
+
export type SessionSchemaFragment = (Pick<AppSessionSchemaFields, 'name'> & {
|
|
1029
|
+
fields: Array<Pick<AppSessionSchemaFieldDescription, 'name' | 'description'>>;
|
|
1030
|
+
});
|
|
1011
1031
|
export type StartSessionMutationVariables = Exact<{
|
|
1012
1032
|
input: StartSessionInput;
|
|
1013
1033
|
withCustomer?: InputMaybe<Scalars['Boolean']['input']>;
|
|
@@ -1027,6 +1047,19 @@ export type GetSessionQuery = {
|
|
|
1027
1047
|
customer?: CustomerFragment;
|
|
1028
1048
|
} & SessionFragment)>;
|
|
1029
1049
|
};
|
|
1050
|
+
export type GetSessionSchemaQueryVariables = Exact<{
|
|
1051
|
+
lang?: InputMaybe<Scalars['String']['input']>;
|
|
1052
|
+
}>;
|
|
1053
|
+
export type GetSessionSchemaQuery = {
|
|
1054
|
+
getSessionSchema: Array<SessionSchemaFragment>;
|
|
1055
|
+
};
|
|
1056
|
+
export type GetSessionSchemaForAppIdQueryVariables = Exact<{
|
|
1057
|
+
appId: Scalars['ID']['input'];
|
|
1058
|
+
lang?: InputMaybe<Scalars['String']['input']>;
|
|
1059
|
+
}>;
|
|
1060
|
+
export type GetSessionSchemaForAppIdQuery = {
|
|
1061
|
+
getSessionSchemaForAppId?: Maybe<SessionSchemaFragment>;
|
|
1062
|
+
};
|
|
1030
1063
|
export type SetSessionAttributeMutationVariables = Exact<{
|
|
1031
1064
|
input: SetSessionAttributeInput;
|
|
1032
1065
|
}>;
|
|
@@ -1162,6 +1195,7 @@ export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n
|
|
|
1162
1195
|
export declare const PolicyFragmentDoc = "\n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1163
1196
|
export declare const RoleFragmentDoc = "\n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1164
1197
|
export declare const SessionFragmentDoc = "\n fragment session on Session {\n sessionId\n customerId\n stateMachineId\n triggerDrn\n}\n ";
|
|
1198
|
+
export declare const SessionSchemaFragmentDoc = "\n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1165
1199
|
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n ";
|
|
1166
1200
|
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 ";
|
|
1167
1201
|
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 ";
|
|
@@ -1206,6 +1240,8 @@ export declare const ListSystemRolesDocument = "\n query listSystemRoles {\n
|
|
|
1206
1240
|
export declare const GetSystemRoleDocument = "\n query getSystemRole($id: ID!) {\n getSystemRole(id: $id) {\n ...role\n }\n}\n \n fragment role on Role {\n id\n name\n policies {\n ...policy\n }\n}\n \n fragment policy on Policy {\n id\n action\n effect\n resource\n}\n ";
|
|
1207
1241
|
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 document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1208
1242
|
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 document\n apps {\n id\n name\n }\n createdAt\n updatedAt\n}\n ";
|
|
1243
|
+
export declare const GetSessionSchemaDocument = "\n query getSessionSchema($lang: String) {\n getSessionSchema(lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1244
|
+
export declare const GetSessionSchemaForAppIdDocument = "\n query getSessionSchemaForAppId($appId: ID!, $lang: String) {\n getSessionSchemaForAppId(appId: $appId, lang: $lang) {\n ...sessionSchema\n }\n}\n \n fragment sessionSchema on AppSessionSchemaFields {\n name\n fields {\n name\n description\n }\n}\n ";
|
|
1209
1245
|
export declare const SetSessionAttributeDocument = "\n mutation setSessionAttribute($input: SetSessionAttributeInput!) {\n setSessionAttribute(input: $input)\n}\n ";
|
|
1210
1246
|
export declare const PatchSessionAttributesDocument = "\n mutation patchSessionAttributes($input: PatchSessionAttributesInput!) {\n patchSessionAttributes(input: $input)\n}\n ";
|
|
1211
1247
|
export declare const AddTagsToSessionAttributesDocument = "\n mutation addTagsToSessionAttributes($input: AddTagsToSessionAttributesInput!) {\n addTagsToSessionAttributes(input: $input)\n}\n ";
|
|
@@ -1267,6 +1303,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1267
1303
|
getSystemRole(variables: GetSystemRoleQueryVariables, options?: C): Promise<GetSystemRoleQuery>;
|
|
1268
1304
|
startSession(variables: StartSessionMutationVariables, options?: C): Promise<StartSessionMutation>;
|
|
1269
1305
|
getSession(variables: GetSessionQueryVariables, options?: C): Promise<GetSessionQuery>;
|
|
1306
|
+
getSessionSchema(variables?: GetSessionSchemaQueryVariables, options?: C): Promise<GetSessionSchemaQuery>;
|
|
1307
|
+
getSessionSchemaForAppId(variables: GetSessionSchemaForAppIdQueryVariables, options?: C): Promise<GetSessionSchemaForAppIdQuery>;
|
|
1270
1308
|
setSessionAttribute(variables: SetSessionAttributeMutationVariables, options?: C): Promise<SetSessionAttributeMutation>;
|
|
1271
1309
|
patchSessionAttributes(variables: PatchSessionAttributesMutationVariables, options?: C): Promise<PatchSessionAttributesMutation>;
|
|
1272
1310
|
addTagsToSessionAttributes(variables: AddTagsToSessionAttributesMutationVariables, options?: C): Promise<AddTagsToSessionAttributesMutation>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = void 0;
|
|
4
|
+
exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -184,6 +184,15 @@ exports.SessionFragmentDoc = `
|
|
|
184
184
|
triggerDrn
|
|
185
185
|
}
|
|
186
186
|
`;
|
|
187
|
+
exports.SessionSchemaFragmentDoc = `
|
|
188
|
+
fragment sessionSchema on AppSessionSchemaFields {
|
|
189
|
+
name
|
|
190
|
+
fields {
|
|
191
|
+
name
|
|
192
|
+
description
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
`;
|
|
187
196
|
exports.StateMachineConfigStateOnFragmentDoc = `
|
|
188
197
|
fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {
|
|
189
198
|
event
|
|
@@ -582,6 +591,20 @@ exports.GetSessionDocument = `
|
|
|
582
591
|
}
|
|
583
592
|
${exports.SessionFragmentDoc}
|
|
584
593
|
${exports.CustomerFragmentDoc}`;
|
|
594
|
+
exports.GetSessionSchemaDocument = `
|
|
595
|
+
query getSessionSchema($lang: String) {
|
|
596
|
+
getSessionSchema(lang: $lang) {
|
|
597
|
+
...sessionSchema
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
${exports.SessionSchemaFragmentDoc}`;
|
|
601
|
+
exports.GetSessionSchemaForAppIdDocument = `
|
|
602
|
+
query getSessionSchemaForAppId($appId: ID!, $lang: String) {
|
|
603
|
+
getSessionSchemaForAppId(appId: $appId, lang: $lang) {
|
|
604
|
+
...sessionSchema
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
${exports.SessionSchemaFragmentDoc}`;
|
|
585
608
|
exports.SetSessionAttributeDocument = `
|
|
586
609
|
mutation setSessionAttribute($input: SetSessionAttributeInput!) {
|
|
587
610
|
setSessionAttribute(input: $input)
|
|
@@ -832,6 +855,12 @@ function getSdk(requester) {
|
|
|
832
855
|
getSession(variables, options) {
|
|
833
856
|
return requester(exports.GetSessionDocument, variables, options);
|
|
834
857
|
},
|
|
858
|
+
getSessionSchema(variables, options) {
|
|
859
|
+
return requester(exports.GetSessionSchemaDocument, variables, options);
|
|
860
|
+
},
|
|
861
|
+
getSessionSchemaForAppId(variables, options) {
|
|
862
|
+
return requester(exports.GetSessionSchemaForAppIdDocument, variables, options);
|
|
863
|
+
},
|
|
835
864
|
setSessionAttribute(variables, options) {
|
|
836
865
|
return requester(exports.SetSessionAttributeDocument, variables, options);
|
|
837
866
|
},
|