@droz-js/sdk 0.19.10 → 0.19.12
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/drozchat-ws.d.ts +18 -0
- package/src/drozchat.d.ts +18 -0
- package/src/sdks/drozchat.d.ts +126 -0
- package/src/sdks/drozchat.js +104 -3
package/package.json
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -18,6 +18,24 @@ declare const DrozChatWs_base: new () => {
|
|
|
18
18
|
generateAnalyticsToken(variables?: import("./sdks/drozchat").Exact<{
|
|
19
19
|
[key: string]: never;
|
|
20
20
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GenerateAnalyticsTokenMutation>;
|
|
21
|
+
getBulkCloseRoutineConfig(variables?: import("./sdks/drozchat").Exact<{
|
|
22
|
+
[key: string]: never;
|
|
23
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetBulkCloseRoutineConfigQuery>;
|
|
24
|
+
createBulkCloseRoutineConfig(variables: import("./sdks/drozchat").Exact<{
|
|
25
|
+
input: import("./sdks/drozchat").CreateBulkCloseRoutineConfigInput;
|
|
26
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateBulkCloseRoutineConfigMutation>;
|
|
27
|
+
updateBulkCloseRoutineConfig(variables: import("./sdks/drozchat").Exact<{
|
|
28
|
+
input: import("./sdks/drozchat").UpdateBulkCloseRoutineConfigInput;
|
|
29
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateBulkCloseRoutineConfigMutation>;
|
|
30
|
+
enableBulkCloseRoutineConfig(variables?: import("./sdks/drozchat").Exact<{
|
|
31
|
+
[key: string]: never;
|
|
32
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").EnableBulkCloseRoutineConfigMutation>;
|
|
33
|
+
disableBulkCloseRoutineConfig(variables?: import("./sdks/drozchat").Exact<{
|
|
34
|
+
[key: string]: never;
|
|
35
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableBulkCloseRoutineConfigMutation>;
|
|
36
|
+
getBulkCloseRuns(variables?: import("./sdks/drozchat").Exact<{
|
|
37
|
+
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
38
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetBulkCloseRunsQuery>;
|
|
21
39
|
getDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
22
40
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
23
41
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatChannelQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -21,6 +21,24 @@ declare const DrozChat_base: new (options?: import("./client/http").HttpClientOp
|
|
|
21
21
|
generateAnalyticsToken(variables?: import("./sdks/drozchat").Exact<{
|
|
22
22
|
[key: string]: never;
|
|
23
23
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GenerateAnalyticsTokenMutation>;
|
|
24
|
+
getBulkCloseRoutineConfig(variables?: import("./sdks/drozchat").Exact<{
|
|
25
|
+
[key: string]: never;
|
|
26
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetBulkCloseRoutineConfigQuery>;
|
|
27
|
+
createBulkCloseRoutineConfig(variables: import("./sdks/drozchat").Exact<{
|
|
28
|
+
input: import("./sdks/drozchat").CreateBulkCloseRoutineConfigInput;
|
|
29
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateBulkCloseRoutineConfigMutation>;
|
|
30
|
+
updateBulkCloseRoutineConfig(variables: import("./sdks/drozchat").Exact<{
|
|
31
|
+
input: import("./sdks/drozchat").UpdateBulkCloseRoutineConfigInput;
|
|
32
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateBulkCloseRoutineConfigMutation>;
|
|
33
|
+
enableBulkCloseRoutineConfig(variables?: import("./sdks/drozchat").Exact<{
|
|
34
|
+
[key: string]: never;
|
|
35
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").EnableBulkCloseRoutineConfigMutation>;
|
|
36
|
+
disableBulkCloseRoutineConfig(variables?: import("./sdks/drozchat").Exact<{
|
|
37
|
+
[key: string]: never;
|
|
38
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").DisableBulkCloseRoutineConfigMutation>;
|
|
39
|
+
getBulkCloseRuns(variables?: import("./sdks/drozchat").Exact<{
|
|
40
|
+
next?: import("./sdks/drozchat").InputMaybe<import("./sdks/drozchat").Scalars["Base64"]["input"]>;
|
|
41
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").GetBulkCloseRunsQuery>;
|
|
24
42
|
getDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
25
43
|
id: import("./sdks/drozchat").Scalars["ID"]["input"];
|
|
26
44
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatChannelQuery>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -220,6 +220,43 @@ export type AssignTicketInput = {
|
|
|
220
220
|
export type AssignTicketMyselfInput = {
|
|
221
221
|
ticketId: Scalars['ID']['input'];
|
|
222
222
|
};
|
|
223
|
+
export type BulkCloseRoutineConfig = {
|
|
224
|
+
batchSize: Scalars['Int']['output'];
|
|
225
|
+
createdAt: Scalars['DateTime']['output'];
|
|
226
|
+
cronExpression: Scalars['String']['output'];
|
|
227
|
+
cronJobId?: Maybe<Scalars['ID']['output']>;
|
|
228
|
+
cutoffDays: Scalars['Int']['output'];
|
|
229
|
+
enabled: Scalars['Boolean']['output'];
|
|
230
|
+
id: Scalars['ID']['output'];
|
|
231
|
+
maxTicketsPerRun: Scalars['Int']['output'];
|
|
232
|
+
/**
|
|
233
|
+
* E-mail exato (`no-reply@joinville.sc.gov.br`), prefixo (`no-reply@*`) ou domínio
|
|
234
|
+
* (`*@amazonses.com`). Um único `*` no início ou no fim do valor.
|
|
235
|
+
*/
|
|
236
|
+
senderAllowlist: Array<Scalars['String']['output']>;
|
|
237
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
238
|
+
};
|
|
239
|
+
export type BulkCloseRun = {
|
|
240
|
+
createdAt: Scalars['DateTime']['output'];
|
|
241
|
+
finishedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
242
|
+
id: Scalars['ID']['output'];
|
|
243
|
+
startedAt: Scalars['DateTime']['output'];
|
|
244
|
+
status: Scalars['String']['output'];
|
|
245
|
+
totals?: Maybe<BulkCloseRunTotals>;
|
|
246
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
247
|
+
windowStart: Scalars['DateTime']['output'];
|
|
248
|
+
};
|
|
249
|
+
export type BulkCloseRunTotals = {
|
|
250
|
+
alreadyClosed: Scalars['Int']['output'];
|
|
251
|
+
closed: Scalars['Int']['output'];
|
|
252
|
+
errors: Scalars['Int']['output'];
|
|
253
|
+
planned: Scalars['Int']['output'];
|
|
254
|
+
uncreated?: Maybe<Scalars['Int']['output']>;
|
|
255
|
+
};
|
|
256
|
+
export type BulkCloseRunsConnection = {
|
|
257
|
+
nodes: Array<BulkCloseRun>;
|
|
258
|
+
pageInfo: PageInfo;
|
|
259
|
+
};
|
|
223
260
|
export declare enum Can {
|
|
224
261
|
Manage = "manage",
|
|
225
262
|
Read = "read",
|
|
@@ -264,6 +301,13 @@ export type CloneViewInput = {
|
|
|
264
301
|
export type CloseTicketInput = {
|
|
265
302
|
ticketId: Scalars['ID']['input'];
|
|
266
303
|
};
|
|
304
|
+
export type CreateBulkCloseRoutineConfigInput = {
|
|
305
|
+
batchSize: Scalars['Int']['input'];
|
|
306
|
+
cronExpression: Scalars['String']['input'];
|
|
307
|
+
cutoffDays: Scalars['Int']['input'];
|
|
308
|
+
maxTicketsPerRun: Scalars['Int']['input'];
|
|
309
|
+
senderAllowlist: Array<Scalars['String']['input']>;
|
|
310
|
+
};
|
|
267
311
|
export type CreateCustomerNoteInput = {
|
|
268
312
|
customerId: Scalars['String']['input'];
|
|
269
313
|
note: Scalars['String']['input'];
|
|
@@ -539,6 +583,7 @@ export type Mutation = {
|
|
|
539
583
|
clearMaxSimultaneousAttendances?: Maybe<GlobalConfiguration>;
|
|
540
584
|
cloneView: View;
|
|
541
585
|
closeTicket: Ticket;
|
|
586
|
+
createBulkCloseRoutineConfig: BulkCloseRoutineConfig;
|
|
542
587
|
createDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
543
588
|
createDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
544
589
|
createNote: CustomerNote;
|
|
@@ -555,9 +600,11 @@ export type Mutation = {
|
|
|
555
600
|
deleteTags: Array<Maybe<TicketTag>>;
|
|
556
601
|
deleteTrigger: Scalars['Boolean']['output'];
|
|
557
602
|
deleteView: View;
|
|
603
|
+
disableBulkCloseRoutineConfig: BulkCloseRoutineConfig;
|
|
558
604
|
disableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
559
605
|
disableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
560
606
|
disableSurvey: Survey;
|
|
607
|
+
enableBulkCloseRoutineConfig: BulkCloseRoutineConfig;
|
|
561
608
|
enableDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
562
609
|
enableDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
563
610
|
/** Announce/refresh that the current agent is viewing the ticket (call on open + heartbeat). */
|
|
@@ -574,6 +621,7 @@ export type Mutation = {
|
|
|
574
621
|
setMaxSimultaneousAttendances: GlobalConfiguration;
|
|
575
622
|
transferTicketToChannel: Ticket;
|
|
576
623
|
unassignTicket: Ticket;
|
|
624
|
+
updateBulkCloseRoutineConfig: BulkCloseRoutineConfig;
|
|
577
625
|
updateDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
578
626
|
updateDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
579
627
|
updateNote: CustomerNote;
|
|
@@ -611,6 +659,9 @@ export type MutationCloneViewArgs = {
|
|
|
611
659
|
export type MutationCloseTicketArgs = {
|
|
612
660
|
input: CloseTicketInput;
|
|
613
661
|
};
|
|
662
|
+
export type MutationCreateBulkCloseRoutineConfigArgs = {
|
|
663
|
+
input: CreateBulkCloseRoutineConfigInput;
|
|
664
|
+
};
|
|
614
665
|
export type MutationCreateDrozChatAgentGroupArgs = {
|
|
615
666
|
input: CreateDrozChatAgentGroupInput;
|
|
616
667
|
};
|
|
@@ -704,6 +755,9 @@ export type MutationTransferTicketToChannelArgs = {
|
|
|
704
755
|
export type MutationUnassignTicketArgs = {
|
|
705
756
|
input: UnassignTicketInput;
|
|
706
757
|
};
|
|
758
|
+
export type MutationUpdateBulkCloseRoutineConfigArgs = {
|
|
759
|
+
input: UpdateBulkCloseRoutineConfigInput;
|
|
760
|
+
};
|
|
707
761
|
export type MutationUpdateDrozChatAgentGroupArgs = {
|
|
708
762
|
input: UpdateDrozChatAgentGroupInput;
|
|
709
763
|
};
|
|
@@ -762,6 +816,8 @@ export type Query = {
|
|
|
762
816
|
agentRemainingCapacity: Scalars['Boolean']['output'];
|
|
763
817
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
764
818
|
assertChatActions: ChatActions;
|
|
819
|
+
getBulkCloseRoutineConfig?: Maybe<BulkCloseRoutineConfig>;
|
|
820
|
+
getBulkCloseRuns: BulkCloseRunsConnection;
|
|
765
821
|
getDrozChatAgentGroup?: Maybe<DrozChatAgentGroup>;
|
|
766
822
|
getDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
767
823
|
getGlobalConfiguration?: Maybe<GlobalConfiguration>;
|
|
@@ -805,6 +861,9 @@ export type QueryAgentRemainingCapacityArgs = {
|
|
|
805
861
|
export type QueryAssertChatActionsArgs = {
|
|
806
862
|
ticketId: Scalars['ID']['input'];
|
|
807
863
|
};
|
|
864
|
+
export type QueryGetBulkCloseRunsArgs = {
|
|
865
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
866
|
+
};
|
|
808
867
|
export type QueryGetDrozChatAgentGroupArgs = {
|
|
809
868
|
id: Scalars['ID']['input'];
|
|
810
869
|
};
|
|
@@ -1387,6 +1446,9 @@ export declare enum Typenames {
|
|
|
1387
1446
|
AgentGroup = "AgentGroup",
|
|
1388
1447
|
AgentPresence = "AgentPresence",
|
|
1389
1448
|
Any = "Any",
|
|
1449
|
+
BulkCloseBatches = "BulkCloseBatches",
|
|
1450
|
+
BulkCloseRoutineConfig = "BulkCloseRoutineConfig",
|
|
1451
|
+
BulkCloseRuns = "BulkCloseRuns",
|
|
1390
1452
|
CajCloseBatches = "CajCloseBatches",
|
|
1391
1453
|
CajCloseRuns = "CajCloseRuns",
|
|
1392
1454
|
ChannelLastAssignee = "ChannelLastAssignee",
|
|
@@ -1413,6 +1475,13 @@ export declare enum Typenames {
|
|
|
1413
1475
|
export type UnassignTicketInput = {
|
|
1414
1476
|
ticketId: Scalars['ID']['input'];
|
|
1415
1477
|
};
|
|
1478
|
+
export type UpdateBulkCloseRoutineConfigInput = {
|
|
1479
|
+
batchSize?: InputMaybe<Scalars['Int']['input']>;
|
|
1480
|
+
cronExpression?: InputMaybe<Scalars['String']['input']>;
|
|
1481
|
+
cutoffDays?: InputMaybe<Scalars['Int']['input']>;
|
|
1482
|
+
maxTicketsPerRun?: InputMaybe<Scalars['Int']['input']>;
|
|
1483
|
+
senderAllowlist?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1484
|
+
};
|
|
1416
1485
|
export type UpdateCustomerNoteInput = {
|
|
1417
1486
|
customerId: Scalars['String']['input'];
|
|
1418
1487
|
id: Scalars['String']['input'];
|
|
@@ -1504,6 +1573,49 @@ export type GenerateAnalyticsTokenMutationVariables = Exact<{
|
|
|
1504
1573
|
export type GenerateAnalyticsTokenMutation = {
|
|
1505
1574
|
generateAnalyticsToken?: Maybe<Pick<AnalyticsToken, 'token'>>;
|
|
1506
1575
|
};
|
|
1576
|
+
export type BulkCloseRoutineConfigFragment = Pick<BulkCloseRoutineConfig, 'id' | 'enabled' | 'senderAllowlist' | 'cutoffDays' | 'batchSize' | 'maxTicketsPerRun' | 'cronExpression' | 'cronJobId' | 'createdAt' | 'updatedAt'>;
|
|
1577
|
+
export type GetBulkCloseRoutineConfigQueryVariables = Exact<{
|
|
1578
|
+
[key: string]: never;
|
|
1579
|
+
}>;
|
|
1580
|
+
export type GetBulkCloseRoutineConfigQuery = {
|
|
1581
|
+
getBulkCloseRoutineConfig?: Maybe<BulkCloseRoutineConfigFragment>;
|
|
1582
|
+
};
|
|
1583
|
+
export type CreateBulkCloseRoutineConfigMutationVariables = Exact<{
|
|
1584
|
+
input: CreateBulkCloseRoutineConfigInput;
|
|
1585
|
+
}>;
|
|
1586
|
+
export type CreateBulkCloseRoutineConfigMutation = {
|
|
1587
|
+
createBulkCloseRoutineConfig: BulkCloseRoutineConfigFragment;
|
|
1588
|
+
};
|
|
1589
|
+
export type UpdateBulkCloseRoutineConfigMutationVariables = Exact<{
|
|
1590
|
+
input: UpdateBulkCloseRoutineConfigInput;
|
|
1591
|
+
}>;
|
|
1592
|
+
export type UpdateBulkCloseRoutineConfigMutation = {
|
|
1593
|
+
updateBulkCloseRoutineConfig: BulkCloseRoutineConfigFragment;
|
|
1594
|
+
};
|
|
1595
|
+
export type EnableBulkCloseRoutineConfigMutationVariables = Exact<{
|
|
1596
|
+
[key: string]: never;
|
|
1597
|
+
}>;
|
|
1598
|
+
export type EnableBulkCloseRoutineConfigMutation = {
|
|
1599
|
+
enableBulkCloseRoutineConfig: BulkCloseRoutineConfigFragment;
|
|
1600
|
+
};
|
|
1601
|
+
export type DisableBulkCloseRoutineConfigMutationVariables = Exact<{
|
|
1602
|
+
[key: string]: never;
|
|
1603
|
+
}>;
|
|
1604
|
+
export type DisableBulkCloseRoutineConfigMutation = {
|
|
1605
|
+
disableBulkCloseRoutineConfig: BulkCloseRoutineConfigFragment;
|
|
1606
|
+
};
|
|
1607
|
+
export type BulkCloseRunFragment = (Pick<BulkCloseRun, 'id' | 'status' | 'windowStart' | 'startedAt' | 'finishedAt' | 'createdAt' | 'updatedAt'> & {
|
|
1608
|
+
totals?: Maybe<Pick<BulkCloseRunTotals, 'planned' | 'closed' | 'alreadyClosed' | 'errors' | 'uncreated'>>;
|
|
1609
|
+
});
|
|
1610
|
+
export type GetBulkCloseRunsQueryVariables = Exact<{
|
|
1611
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
1612
|
+
}>;
|
|
1613
|
+
export type GetBulkCloseRunsQuery = {
|
|
1614
|
+
getBulkCloseRuns: {
|
|
1615
|
+
nodes: Array<BulkCloseRunFragment>;
|
|
1616
|
+
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>;
|
|
1617
|
+
};
|
|
1618
|
+
};
|
|
1507
1619
|
export type DrozChatChannelFragment = Pick<DrozChatChannel, 'id' | 'name' | 'drn' | 'agentIds' | 'groupIds' | 'ticketAutoAssigner' | 'ticketAutoAssignerType' | 'maxSimultaneousAttendances' | 'createdAt' | 'updatedAt' | 'deletedAt'>;
|
|
1508
1620
|
export type GetDrozChatChannelQueryVariables = Exact<{
|
|
1509
1621
|
id: Scalars['ID']['input'];
|
|
@@ -2207,6 +2319,8 @@ export type DeleteViewMutation = {
|
|
|
2207
2319
|
deleteView: ViewFragment;
|
|
2208
2320
|
};
|
|
2209
2321
|
export declare const AgentPresenceFragmentDoc = "\n fragment agentPresence on AgentPresence {\n agentId\n status\n since\n}\n ";
|
|
2322
|
+
export declare const BulkCloseRoutineConfigFragmentDoc = "\n fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {\n id\n enabled\n senderAllowlist\n cutoffDays\n batchSize\n maxTicketsPerRun\n cronExpression\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
2323
|
+
export declare const BulkCloseRunFragmentDoc = "\n fragment bulkCloseRun on BulkCloseRun {\n id\n status\n windowStart\n startedAt\n finishedAt\n totals {\n planned\n closed\n alreadyClosed\n errors\n uncreated\n }\n createdAt\n updatedAt\n}\n ";
|
|
2210
2324
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
2211
2325
|
export declare const CustomerNoteFragmentDoc = "\n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n ";
|
|
2212
2326
|
export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
|
|
@@ -2237,6 +2351,12 @@ export declare const MyPresenceDocument = "\n query myPresence {\n myPresenc
|
|
|
2237
2351
|
export declare const AgentHeartbeatDocument = "\n mutation agentHeartbeat {\n agentHeartbeat {\n ...agentPresence\n }\n}\n \n fragment agentPresence on AgentPresence {\n agentId\n status\n since\n}\n ";
|
|
2238
2352
|
export declare const AgentLogoffDocument = "\n mutation agentLogoff {\n agentLogoff {\n ...agentPresence\n }\n}\n \n fragment agentPresence on AgentPresence {\n agentId\n status\n since\n}\n ";
|
|
2239
2353
|
export declare const GenerateAnalyticsTokenDocument = "\n mutation generateAnalyticsToken {\n generateAnalyticsToken {\n token\n }\n}\n ";
|
|
2354
|
+
export declare const GetBulkCloseRoutineConfigDocument = "\n query getBulkCloseRoutineConfig {\n getBulkCloseRoutineConfig {\n ...bulkCloseRoutineConfig\n }\n}\n \n fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {\n id\n enabled\n senderAllowlist\n cutoffDays\n batchSize\n maxTicketsPerRun\n cronExpression\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
2355
|
+
export declare const CreateBulkCloseRoutineConfigDocument = "\n mutation createBulkCloseRoutineConfig($input: CreateBulkCloseRoutineConfigInput!) {\n createBulkCloseRoutineConfig(input: $input) {\n ...bulkCloseRoutineConfig\n }\n}\n \n fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {\n id\n enabled\n senderAllowlist\n cutoffDays\n batchSize\n maxTicketsPerRun\n cronExpression\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
2356
|
+
export declare const UpdateBulkCloseRoutineConfigDocument = "\n mutation updateBulkCloseRoutineConfig($input: UpdateBulkCloseRoutineConfigInput!) {\n updateBulkCloseRoutineConfig(input: $input) {\n ...bulkCloseRoutineConfig\n }\n}\n \n fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {\n id\n enabled\n senderAllowlist\n cutoffDays\n batchSize\n maxTicketsPerRun\n cronExpression\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
2357
|
+
export declare const EnableBulkCloseRoutineConfigDocument = "\n mutation enableBulkCloseRoutineConfig {\n enableBulkCloseRoutineConfig {\n ...bulkCloseRoutineConfig\n }\n}\n \n fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {\n id\n enabled\n senderAllowlist\n cutoffDays\n batchSize\n maxTicketsPerRun\n cronExpression\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
2358
|
+
export declare const DisableBulkCloseRoutineConfigDocument = "\n mutation disableBulkCloseRoutineConfig {\n disableBulkCloseRoutineConfig {\n ...bulkCloseRoutineConfig\n }\n}\n \n fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {\n id\n enabled\n senderAllowlist\n cutoffDays\n batchSize\n maxTicketsPerRun\n cronExpression\n cronJobId\n createdAt\n updatedAt\n}\n ";
|
|
2359
|
+
export declare const GetBulkCloseRunsDocument = "\n query getBulkCloseRuns($next: Base64) {\n getBulkCloseRuns(next: $next) {\n nodes {\n ...bulkCloseRun\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment bulkCloseRun on BulkCloseRun {\n id\n status\n windowStart\n startedAt\n finishedAt\n totals {\n planned\n closed\n alreadyClosed\n errors\n uncreated\n }\n createdAt\n updatedAt\n}\n ";
|
|
2240
2360
|
export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2241
2361
|
export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
2242
2362
|
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 drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
|
|
@@ -2328,6 +2448,12 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
2328
2448
|
agentHeartbeat(variables?: AgentHeartbeatMutationVariables, options?: C): Promise<AgentHeartbeatMutation>;
|
|
2329
2449
|
agentLogoff(variables?: AgentLogoffMutationVariables, options?: C): Promise<AgentLogoffMutation>;
|
|
2330
2450
|
generateAnalyticsToken(variables?: GenerateAnalyticsTokenMutationVariables, options?: C): Promise<GenerateAnalyticsTokenMutation>;
|
|
2451
|
+
getBulkCloseRoutineConfig(variables?: GetBulkCloseRoutineConfigQueryVariables, options?: C): Promise<GetBulkCloseRoutineConfigQuery>;
|
|
2452
|
+
createBulkCloseRoutineConfig(variables: CreateBulkCloseRoutineConfigMutationVariables, options?: C): Promise<CreateBulkCloseRoutineConfigMutation>;
|
|
2453
|
+
updateBulkCloseRoutineConfig(variables: UpdateBulkCloseRoutineConfigMutationVariables, options?: C): Promise<UpdateBulkCloseRoutineConfigMutation>;
|
|
2454
|
+
enableBulkCloseRoutineConfig(variables?: EnableBulkCloseRoutineConfigMutationVariables, options?: C): Promise<EnableBulkCloseRoutineConfigMutation>;
|
|
2455
|
+
disableBulkCloseRoutineConfig(variables?: DisableBulkCloseRoutineConfigMutationVariables, options?: C): Promise<DisableBulkCloseRoutineConfigMutation>;
|
|
2456
|
+
getBulkCloseRuns(variables?: GetBulkCloseRunsQueryVariables, options?: C): Promise<GetBulkCloseRunsQuery>;
|
|
2331
2457
|
getDrozChatChannel(variables: GetDrozChatChannelQueryVariables, options?: C): Promise<GetDrozChatChannelQuery>;
|
|
2332
2458
|
listDrozChatChannels(variables?: ListDrozChatChannelsQueryVariables, options?: C): Promise<ListDrozChatChannelsQuery>;
|
|
2333
2459
|
listDrozChatAgentChannels(variables: ListDrozChatAgentChannelsQueryVariables, options?: C): Promise<ListDrozChatAgentChannelsQuery>;
|
package/src/sdks/drozchat.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageEnvelopeDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AgentRemainingCapacityDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = void 0;
|
|
4
|
+
exports.TriggerFragmentDoc = exports.TriggerConditionFieldsFragmentDoc = exports.FacetsFragmentDoc = exports.TicketMessageFragmentDoc = exports.DrozChatUserFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.CustomerFragmentDoc = exports.TicketWithoutCustomerFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.TagFragmentDoc = exports.QuickAnswerFacetsFragmentDoc = exports.QuickAnswerFragmentDoc = exports.TicketPresenceFragmentDoc = exports.SurveyFragmentDoc = exports.LiveSummaryFragmentDoc = exports.LiveAgentLoadFragmentDoc = exports.LiveQueueSummaryFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.DrozChatAgentGroupFragmentDoc = exports.GlobalConfigurationFragmentDoc = exports.CustomerNoteFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.BulkCloseRunFragmentDoc = exports.BulkCloseRoutineConfigFragmentDoc = exports.AgentPresenceFragmentDoc = exports.Typenames = exports.TriggerScope = exports.TriggerEventType = exports.TriggerActionType = exports.TicketStatus = exports.TicketState = exports.TicketSearchSortBy = exports.TicketPriority = exports.TicketOrigin = exports.TicketMessageType = exports.TicketMessageRecipient = exports.TicketAutoAssignerType = exports.TicketAssessType = exports.SurveyTypes = exports.SurveyChannels = exports.SubscriptionAction = exports.QuickAnswersSortBy = exports.OpenTicketState = exports.LiveAgentStatus = exports.Can = exports.AppInstanceStatus = exports.AgentPresenceStatus = exports.ActiveDispatchConnector = void 0;
|
|
5
|
+
exports.CreateQuickAnswerDocument = exports.SearchQuickAnswersDocument = exports.ListQuickAnswersDocument = exports.OnTicketPresenceDocument = exports.LeaveTicketPresenceDocument = exports.EnterTicketPresenceDocument = exports.TicketPresenceDocument = exports.DisableSurveyDocument = exports.UpsertSurveyDocument = exports.GetSurveyDocument = exports.LiveSummaryDocument = exports.RemoveDrozChatAgentGroupDocument = exports.AddDrozChatAgentGroupDocument = exports.EnableDrozChatAgentGroupDocument = exports.DisableDrozChatAgentGroupDocument = exports.UpdateDrozChatAgentGroupDocument = exports.CreateDrozChatAgentGroupDocument = exports.ListDrozChatAgentGroupsDocument = exports.ListDrozChatGroupsDocument = exports.GetDrozChatAgentGroupDocument = exports.ClearMaxSimultaneousAttendancesDocument = exports.SetMaxSimultaneousAttendancesDocument = exports.GetGlobalConfigurationDocument = exports.DeleteNoteDocument = exports.UpdateNoteDocument = exports.CreateNoteDocument = exports.ListNotesDocument = exports.RemoveDrozChatChannelGroupDocument = exports.AddDrozChatChannelGroupDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.EnableDrozChatChannelDocument = exports.DisableDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatAgentChannelsDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.GetBulkCloseRunsDocument = exports.DisableBulkCloseRoutineConfigDocument = exports.EnableBulkCloseRoutineConfigDocument = exports.UpdateBulkCloseRoutineConfigDocument = exports.CreateBulkCloseRoutineConfigDocument = exports.GetBulkCloseRoutineConfigDocument = exports.GenerateAnalyticsTokenDocument = exports.AgentLogoffDocument = exports.AgentHeartbeatDocument = exports.MyPresenceDocument = exports.ActiveDispatchDocument = exports.ViewFragmentDoc = void 0;
|
|
6
|
+
exports.serviceName = exports.DeleteViewDocument = exports.UpdateViewDocument = exports.CloneViewDocument = exports.CreateViewDocument = exports.ListTicketsByViewDocument = exports.ListViewsDocument = exports.GetViewDocument = exports.ReorderTriggersByEventTypeDocument = exports.DeleteTriggerDocument = exports.UpdateTriggerDocument = exports.CreateTriggerDocument = exports.GetTriggerDocument = exports.ListTriggersDocument = exports.OnMessageByStateMineDocument = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageEnvelopeDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.AgentRemainingCapacityDocument = exports.AssertChatActionsDocument = exports.UnsafeSearchTicketsDocument = exports.SearchTicketsWithoutCustomerDocument = exports.SearchTicketsDocument = exports.ListTicketInternalNotesDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineWithoutCustomerDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = exports.UpdateQuickAnswerDocument = exports.DeleteQuickAnswerDocument = void 0;
|
|
7
7
|
exports.getSdk = getSdk;
|
|
8
8
|
var ActiveDispatchConnector;
|
|
9
9
|
(function (ActiveDispatchConnector) {
|
|
@@ -158,6 +158,9 @@ var Typenames;
|
|
|
158
158
|
Typenames["AgentGroup"] = "AgentGroup";
|
|
159
159
|
Typenames["AgentPresence"] = "AgentPresence";
|
|
160
160
|
Typenames["Any"] = "Any";
|
|
161
|
+
Typenames["BulkCloseBatches"] = "BulkCloseBatches";
|
|
162
|
+
Typenames["BulkCloseRoutineConfig"] = "BulkCloseRoutineConfig";
|
|
163
|
+
Typenames["BulkCloseRuns"] = "BulkCloseRuns";
|
|
161
164
|
Typenames["CajCloseBatches"] = "CajCloseBatches";
|
|
162
165
|
Typenames["CajCloseRuns"] = "CajCloseRuns";
|
|
163
166
|
Typenames["ChannelLastAssignee"] = "ChannelLastAssignee";
|
|
@@ -188,6 +191,38 @@ exports.AgentPresenceFragmentDoc = `
|
|
|
188
191
|
since
|
|
189
192
|
}
|
|
190
193
|
`;
|
|
194
|
+
exports.BulkCloseRoutineConfigFragmentDoc = `
|
|
195
|
+
fragment bulkCloseRoutineConfig on BulkCloseRoutineConfig {
|
|
196
|
+
id
|
|
197
|
+
enabled
|
|
198
|
+
senderAllowlist
|
|
199
|
+
cutoffDays
|
|
200
|
+
batchSize
|
|
201
|
+
maxTicketsPerRun
|
|
202
|
+
cronExpression
|
|
203
|
+
cronJobId
|
|
204
|
+
createdAt
|
|
205
|
+
updatedAt
|
|
206
|
+
}
|
|
207
|
+
`;
|
|
208
|
+
exports.BulkCloseRunFragmentDoc = `
|
|
209
|
+
fragment bulkCloseRun on BulkCloseRun {
|
|
210
|
+
id
|
|
211
|
+
status
|
|
212
|
+
windowStart
|
|
213
|
+
startedAt
|
|
214
|
+
finishedAt
|
|
215
|
+
totals {
|
|
216
|
+
planned
|
|
217
|
+
closed
|
|
218
|
+
alreadyClosed
|
|
219
|
+
errors
|
|
220
|
+
uncreated
|
|
221
|
+
}
|
|
222
|
+
createdAt
|
|
223
|
+
updatedAt
|
|
224
|
+
}
|
|
225
|
+
`;
|
|
191
226
|
exports.DrozChatAgentFragmentDoc = `
|
|
192
227
|
fragment drozChatAgent on DrozChatAgent {
|
|
193
228
|
id
|
|
@@ -856,6 +891,54 @@ exports.GenerateAnalyticsTokenDocument = `
|
|
|
856
891
|
}
|
|
857
892
|
}
|
|
858
893
|
`;
|
|
894
|
+
exports.GetBulkCloseRoutineConfigDocument = `
|
|
895
|
+
query getBulkCloseRoutineConfig {
|
|
896
|
+
getBulkCloseRoutineConfig {
|
|
897
|
+
...bulkCloseRoutineConfig
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
${exports.BulkCloseRoutineConfigFragmentDoc}`;
|
|
901
|
+
exports.CreateBulkCloseRoutineConfigDocument = `
|
|
902
|
+
mutation createBulkCloseRoutineConfig($input: CreateBulkCloseRoutineConfigInput!) {
|
|
903
|
+
createBulkCloseRoutineConfig(input: $input) {
|
|
904
|
+
...bulkCloseRoutineConfig
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
${exports.BulkCloseRoutineConfigFragmentDoc}`;
|
|
908
|
+
exports.UpdateBulkCloseRoutineConfigDocument = `
|
|
909
|
+
mutation updateBulkCloseRoutineConfig($input: UpdateBulkCloseRoutineConfigInput!) {
|
|
910
|
+
updateBulkCloseRoutineConfig(input: $input) {
|
|
911
|
+
...bulkCloseRoutineConfig
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
${exports.BulkCloseRoutineConfigFragmentDoc}`;
|
|
915
|
+
exports.EnableBulkCloseRoutineConfigDocument = `
|
|
916
|
+
mutation enableBulkCloseRoutineConfig {
|
|
917
|
+
enableBulkCloseRoutineConfig {
|
|
918
|
+
...bulkCloseRoutineConfig
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
${exports.BulkCloseRoutineConfigFragmentDoc}`;
|
|
922
|
+
exports.DisableBulkCloseRoutineConfigDocument = `
|
|
923
|
+
mutation disableBulkCloseRoutineConfig {
|
|
924
|
+
disableBulkCloseRoutineConfig {
|
|
925
|
+
...bulkCloseRoutineConfig
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
${exports.BulkCloseRoutineConfigFragmentDoc}`;
|
|
929
|
+
exports.GetBulkCloseRunsDocument = `
|
|
930
|
+
query getBulkCloseRuns($next: Base64) {
|
|
931
|
+
getBulkCloseRuns(next: $next) {
|
|
932
|
+
nodes {
|
|
933
|
+
...bulkCloseRun
|
|
934
|
+
}
|
|
935
|
+
pageInfo {
|
|
936
|
+
hasNext
|
|
937
|
+
next
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
${exports.BulkCloseRunFragmentDoc}`;
|
|
859
942
|
exports.GetDrozChatChannelDocument = `
|
|
860
943
|
query getDrozChatChannel($id: ID!) {
|
|
861
944
|
getDrozChatChannel(id: $id) {
|
|
@@ -1728,6 +1811,24 @@ function getSdk(requester) {
|
|
|
1728
1811
|
generateAnalyticsToken(variables, options) {
|
|
1729
1812
|
return requester(exports.GenerateAnalyticsTokenDocument, variables, options);
|
|
1730
1813
|
},
|
|
1814
|
+
getBulkCloseRoutineConfig(variables, options) {
|
|
1815
|
+
return requester(exports.GetBulkCloseRoutineConfigDocument, variables, options);
|
|
1816
|
+
},
|
|
1817
|
+
createBulkCloseRoutineConfig(variables, options) {
|
|
1818
|
+
return requester(exports.CreateBulkCloseRoutineConfigDocument, variables, options);
|
|
1819
|
+
},
|
|
1820
|
+
updateBulkCloseRoutineConfig(variables, options) {
|
|
1821
|
+
return requester(exports.UpdateBulkCloseRoutineConfigDocument, variables, options);
|
|
1822
|
+
},
|
|
1823
|
+
enableBulkCloseRoutineConfig(variables, options) {
|
|
1824
|
+
return requester(exports.EnableBulkCloseRoutineConfigDocument, variables, options);
|
|
1825
|
+
},
|
|
1826
|
+
disableBulkCloseRoutineConfig(variables, options) {
|
|
1827
|
+
return requester(exports.DisableBulkCloseRoutineConfigDocument, variables, options);
|
|
1828
|
+
},
|
|
1829
|
+
getBulkCloseRuns(variables, options) {
|
|
1830
|
+
return requester(exports.GetBulkCloseRunsDocument, variables, options);
|
|
1831
|
+
},
|
|
1731
1832
|
getDrozChatChannel(variables, options) {
|
|
1732
1833
|
return requester(exports.GetDrozChatChannelDocument, variables, options);
|
|
1733
1834
|
},
|