@droz-js/sdk 0.5.0 → 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/client/ws.js +1 -1
- package/src/drozchat-ws.d.ts +6 -0
- package/src/drozchat.d.ts +6 -0
- package/src/sdks/drozchat.d.ts +40 -7
- package/src/sdks/drozchat.js +22 -1
package/package.json
CHANGED
package/src/client/ws.js
CHANGED
package/src/drozchat-ws.d.ts
CHANGED
|
@@ -18,6 +18,12 @@ export declare const DrozChatWs: new () => {
|
|
|
18
18
|
removeDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
19
19
|
input: import("./sdks/drozchat").RemoveDrozChatChannelInput;
|
|
20
20
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelMutation>;
|
|
21
|
+
addDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
22
|
+
input: import("./sdks/drozchat").AddDrozChatChannelAgentInput;
|
|
23
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").AddDrozChatChannelAgentMutation>;
|
|
24
|
+
removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
25
|
+
input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
|
|
26
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
|
|
21
27
|
getTicket(variables: import("./sdks/drozchat").Exact<{
|
|
22
28
|
id: string;
|
|
23
29
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
|
package/src/drozchat.d.ts
CHANGED
|
@@ -20,6 +20,12 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
|
|
|
20
20
|
removeDrozChatChannel(variables: import("./sdks/drozchat").Exact<{
|
|
21
21
|
input: import("./sdks/drozchat").RemoveDrozChatChannelInput;
|
|
22
22
|
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelMutation>;
|
|
23
|
+
addDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
24
|
+
input: import("./sdks/drozchat").AddDrozChatChannelAgentInput;
|
|
25
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").AddDrozChatChannelAgentMutation>;
|
|
26
|
+
removeDrozChatChannelAgent(variables: import("./sdks/drozchat").Exact<{
|
|
27
|
+
input: import("./sdks/drozchat").RemoveDrozChatChannelAgentInput;
|
|
28
|
+
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelAgentMutation>;
|
|
23
29
|
getTicket(variables: import("./sdks/drozchat").Exact<{
|
|
24
30
|
id: string;
|
|
25
31
|
}>, options?: unknown): Promise<import("./sdks/drozchat").GetTicketQuery>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -86,6 +86,10 @@ export type Scalars = {
|
|
|
86
86
|
output: void;
|
|
87
87
|
};
|
|
88
88
|
};
|
|
89
|
+
export type AddDrozChatChannelAgentInput = {
|
|
90
|
+
agentId: Scalars['ID']['input'];
|
|
91
|
+
channelId: Scalars['ID']['input'];
|
|
92
|
+
};
|
|
89
93
|
export declare enum AppInstanceStatus {
|
|
90
94
|
Active = "Active",
|
|
91
95
|
Failing = "Failing",
|
|
@@ -127,6 +131,7 @@ export type DrozChatAgent = {
|
|
|
127
131
|
updatedAt: Scalars['String']['output'];
|
|
128
132
|
};
|
|
129
133
|
export type DrozChatChannel = {
|
|
134
|
+
agentIds?: Maybe<Array<Scalars['ID']['output']>>;
|
|
130
135
|
createdAt: Scalars['DateTime']['output'];
|
|
131
136
|
id: Scalars['ID']['output'];
|
|
132
137
|
name: Scalars['String']['output'];
|
|
@@ -146,6 +151,7 @@ export type MarkTicketMessagesAsReadInput = {
|
|
|
146
151
|
ticketId: Scalars['ID']['input'];
|
|
147
152
|
};
|
|
148
153
|
export type Mutation = {
|
|
154
|
+
addDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
149
155
|
assignTicket: Ticket;
|
|
150
156
|
assignTicketMyself: Ticket;
|
|
151
157
|
closeTicket: Ticket;
|
|
@@ -155,10 +161,14 @@ export type Mutation = {
|
|
|
155
161
|
createTicketMessageForStorage: TicketMessage;
|
|
156
162
|
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
|
|
157
163
|
removeDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
164
|
+
removeDrozChatChannelAgent?: Maybe<DrozChatChannel>;
|
|
158
165
|
unassignTicket: Ticket;
|
|
159
166
|
updateDrozChatChannel?: Maybe<DrozChatChannel>;
|
|
160
167
|
version?: Maybe<Scalars['String']['output']>;
|
|
161
168
|
};
|
|
169
|
+
export type MutationAddDrozChatChannelAgentArgs = {
|
|
170
|
+
input: AddDrozChatChannelAgentInput;
|
|
171
|
+
};
|
|
162
172
|
export type MutationAssignTicketArgs = {
|
|
163
173
|
input: AssignTicketInput;
|
|
164
174
|
};
|
|
@@ -186,6 +196,9 @@ export type MutationMarkTicketMessagesAsReadArgs = {
|
|
|
186
196
|
export type MutationRemoveDrozChatChannelArgs = {
|
|
187
197
|
input: RemoveDrozChatChannelInput;
|
|
188
198
|
};
|
|
199
|
+
export type MutationRemoveDrozChatChannelAgentArgs = {
|
|
200
|
+
input: RemoveDrozChatChannelAgentInput;
|
|
201
|
+
};
|
|
189
202
|
export type MutationUnassignTicketArgs = {
|
|
190
203
|
input: UnassignTicketInput;
|
|
191
204
|
};
|
|
@@ -239,6 +252,10 @@ export type QueryListTicketsInProgressMineArgs = {
|
|
|
239
252
|
export type QueryListTicketsInQueueArgs = {
|
|
240
253
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
241
254
|
};
|
|
255
|
+
export type RemoveDrozChatChannelAgentInput = {
|
|
256
|
+
agentId: Scalars['ID']['input'];
|
|
257
|
+
channelId: Scalars['ID']['input'];
|
|
258
|
+
};
|
|
242
259
|
export type RemoveDrozChatChannelInput = {
|
|
243
260
|
id: Scalars['ID']['input'];
|
|
244
261
|
};
|
|
@@ -379,7 +396,7 @@ export type UpdateDrozChatChannelInput = {
|
|
|
379
396
|
id: Scalars['ID']['input'];
|
|
380
397
|
name?: InputMaybe<Scalars['String']['input']>;
|
|
381
398
|
};
|
|
382
|
-
export type DrozChatChannelFragment = Pick<DrozChatChannel, 'id' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
399
|
+
export type DrozChatChannelFragment = Pick<DrozChatChannel, 'id' | 'name' | 'agentIds' | 'createdAt' | 'updatedAt'>;
|
|
383
400
|
export type GetDrozChatChannelQueryVariables = Exact<{
|
|
384
401
|
id: Scalars['ID']['input'];
|
|
385
402
|
}>;
|
|
@@ -410,6 +427,18 @@ export type RemoveDrozChatChannelMutationVariables = Exact<{
|
|
|
410
427
|
export type RemoveDrozChatChannelMutation = {
|
|
411
428
|
removeDrozChatChannel?: Maybe<DrozChatChannelFragment>;
|
|
412
429
|
};
|
|
430
|
+
export type AddDrozChatChannelAgentMutationVariables = Exact<{
|
|
431
|
+
input: AddDrozChatChannelAgentInput;
|
|
432
|
+
}>;
|
|
433
|
+
export type AddDrozChatChannelAgentMutation = {
|
|
434
|
+
addDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
|
|
435
|
+
};
|
|
436
|
+
export type RemoveDrozChatChannelAgentMutationVariables = Exact<{
|
|
437
|
+
input: RemoveDrozChatChannelAgentInput;
|
|
438
|
+
}>;
|
|
439
|
+
export type RemoveDrozChatChannelAgentMutation = {
|
|
440
|
+
removeDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
|
|
441
|
+
};
|
|
413
442
|
export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'>;
|
|
414
443
|
export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
|
|
415
444
|
export type TicketTriggerAppFragment = (Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
|
|
@@ -558,7 +587,7 @@ export type OnTicketMessageSubscription = {
|
|
|
558
587
|
message: TicketMessageFragment;
|
|
559
588
|
});
|
|
560
589
|
};
|
|
561
|
-
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
590
|
+
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
562
591
|
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
|
|
563
592
|
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n ";
|
|
564
593
|
export declare const TicketTriggerAppFragmentDoc = "\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 ";
|
|
@@ -566,11 +595,13 @@ export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n c
|
|
|
566
595
|
export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
567
596
|
export declare const TicketWithSessionFragmentDoc = "\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 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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
568
597
|
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n ";
|
|
569
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
570
|
-
export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
571
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
572
|
-
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 createdAt\n updatedAt\n}\n ";
|
|
573
|
-
export declare const RemoveDrozChatChannelDocument = "\n mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) {\n removeDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n ";
|
|
598
|
+
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 agentIds\n createdAt\n updatedAt\n}\n ";
|
|
599
|
+
export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
600
|
+
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 ";
|
|
601
|
+
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 ";
|
|
602
|
+
export declare const RemoveDrozChatChannelDocument = "\n mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) {\n removeDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
|
|
603
|
+
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 ";
|
|
604
|
+
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 ";
|
|
574
605
|
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 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 sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
|
|
575
606
|
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\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 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 ";
|
|
576
607
|
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\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 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 ";
|
|
@@ -596,6 +627,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
596
627
|
createDrozChatChannel(variables: CreateDrozChatChannelMutationVariables, options?: C): Promise<CreateDrozChatChannelMutation>;
|
|
597
628
|
updateDrozChatChannel(variables: UpdateDrozChatChannelMutationVariables, options?: C): Promise<UpdateDrozChatChannelMutation>;
|
|
598
629
|
removeDrozChatChannel(variables: RemoveDrozChatChannelMutationVariables, options?: C): Promise<RemoveDrozChatChannelMutation>;
|
|
630
|
+
addDrozChatChannelAgent(variables: AddDrozChatChannelAgentMutationVariables, options?: C): Promise<AddDrozChatChannelAgentMutation>;
|
|
631
|
+
removeDrozChatChannelAgent(variables: RemoveDrozChatChannelAgentMutationVariables, options?: C): Promise<RemoveDrozChatChannelAgentMutation>;
|
|
599
632
|
getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>;
|
|
600
633
|
listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>;
|
|
601
634
|
listTicketsInQueue(variables?: ListTicketsInQueueQueryVariables, options?: C): Promise<ListTicketsInQueueQuery>;
|
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.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelAgentDocument = exports.AddDrozChatChannelAgentDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketWithSessionFragmentDoc = exports.SessionAttributesFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = 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";
|
|
@@ -57,6 +57,7 @@ exports.DrozChatChannelFragmentDoc = `
|
|
|
57
57
|
fragment drozChatChannel on DrozChatChannel {
|
|
58
58
|
id
|
|
59
59
|
name
|
|
60
|
+
agentIds
|
|
60
61
|
createdAt
|
|
61
62
|
updatedAt
|
|
62
63
|
}
|
|
@@ -192,6 +193,20 @@ exports.RemoveDrozChatChannelDocument = `
|
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
${exports.DrozChatChannelFragmentDoc}`;
|
|
196
|
+
exports.AddDrozChatChannelAgentDocument = `
|
|
197
|
+
mutation addDrozChatChannelAgent($input: AddDrozChatChannelAgentInput!) {
|
|
198
|
+
addDrozChatChannelAgent(input: $input) {
|
|
199
|
+
...drozChatChannel
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
${exports.DrozChatChannelFragmentDoc}`;
|
|
203
|
+
exports.RemoveDrozChatChannelAgentDocument = `
|
|
204
|
+
mutation removeDrozChatChannelAgent($input: RemoveDrozChatChannelAgentInput!) {
|
|
205
|
+
removeDrozChatChannelAgent(input: $input) {
|
|
206
|
+
...drozChatChannel
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
${exports.DrozChatChannelFragmentDoc}`;
|
|
195
210
|
exports.GetTicketDocument = `
|
|
196
211
|
query getTicket($id: ID!) {
|
|
197
212
|
getTicket(id: $id) {
|
|
@@ -375,6 +390,12 @@ function getSdk(requester) {
|
|
|
375
390
|
removeDrozChatChannel(variables, options) {
|
|
376
391
|
return requester(exports.RemoveDrozChatChannelDocument, variables, options);
|
|
377
392
|
},
|
|
393
|
+
addDrozChatChannelAgent(variables, options) {
|
|
394
|
+
return requester(exports.AddDrozChatChannelAgentDocument, variables, options);
|
|
395
|
+
},
|
|
396
|
+
removeDrozChatChannelAgent(variables, options) {
|
|
397
|
+
return requester(exports.RemoveDrozChatChannelAgentDocument, variables, options);
|
|
398
|
+
},
|
|
378
399
|
getTicket(variables, options) {
|
|
379
400
|
return requester(exports.GetTicketDocument, variables, options);
|
|
380
401
|
},
|