@droz-js/sdk 0.6.4 → 0.6.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@droz-js/sdk",
3
3
  "description": "Droz SDK",
4
- "version": "0.6.4",
4
+ "version": "0.6.6",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -34,10 +34,10 @@ export declare const DrozChatWs: new () => {
34
34
  next?: object;
35
35
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
36
36
  createTags(variables: import("./sdks/drozchat").Exact<{
37
- input: import("./sdks/drozchat").CreateTagInput;
37
+ input: import("./sdks/drozchat").CreateTicketTagInput;
38
38
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateTagsMutation>;
39
39
  deleteTags(variables: import("./sdks/drozchat").Exact<{
40
- input: import("./sdks/drozchat").DeleteTagInput;
40
+ input: import("./sdks/drozchat").DeleteTicketTagInput;
41
41
  }>, options?: unknown): Promise<import("./sdks/drozchat").DeleteTagsMutation>;
42
42
  getTicket(variables: import("./sdks/drozchat").Exact<{
43
43
  id: string;
package/src/drozchat.d.ts CHANGED
@@ -37,10 +37,10 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
37
37
  next?: object;
38
38
  }>, options?: unknown): Promise<import("./sdks/drozchat").ListTagsQuery>;
39
39
  createTags(variables: import("./sdks/drozchat").Exact<{
40
- input: import("./sdks/drozchat").CreateTagInput;
40
+ input: import("./sdks/drozchat").CreateTicketTagInput;
41
41
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateTagsMutation>;
42
42
  deleteTags(variables: import("./sdks/drozchat").Exact<{
43
- input: import("./sdks/drozchat").DeleteTagInput;
43
+ input: import("./sdks/drozchat").DeleteTicketTagInput;
44
44
  }>, options?: unknown): Promise<import("./sdks/drozchat").DeleteTagsMutation>;
45
45
  getTicket(variables: import("./sdks/drozchat").Exact<{
46
46
  id: string;
package/src/nucleus.d.ts CHANGED
@@ -29,12 +29,18 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
29
29
  createApiKeyAgent(variables: import("./sdks/nucleus").Exact<{
30
30
  input: import("./sdks/nucleus").CreateApiKeyAgentInput;
31
31
  }>, options?: unknown): Promise<import("./sdks/nucleus").CreateApiKeyAgentMutation>;
32
+ createSystemApiKeyAgent(variables: import("./sdks/nucleus").Exact<{
33
+ input: import("./sdks/nucleus").CreateApiKeyAgentInput;
34
+ }>, options?: unknown): Promise<import("./sdks/nucleus").CreateSystemApiKeyAgentMutation>;
32
35
  updateAgent(variables: import("./sdks/nucleus").Exact<{
33
36
  input: import("./sdks/nucleus").UpdateAgentInput;
34
37
  }>, options?: unknown): Promise<import("./sdks/nucleus").UpdateAgentMutation>;
35
38
  removeAgent(variables: import("./sdks/nucleus").Exact<{
36
39
  input: import("./sdks/nucleus").RemoveAgentInput;
37
40
  }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveAgentMutation>;
41
+ removeSystemApiKeyAgent(variables: import("./sdks/nucleus").Exact<{
42
+ input: import("./sdks/nucleus").RemoveAgentInput;
43
+ }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveSystemApiKeyAgentMutation>;
38
44
  addRoleToAgent(variables: import("./sdks/nucleus").Exact<{
39
45
  input: import("./sdks/nucleus").AddRoleToAgentInput;
40
46
  }>, options?: unknown): Promise<import("./sdks/nucleus").AddRoleToAgentMutation>;
@@ -90,12 +96,18 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
90
96
  createCredentials(variables: import("./sdks/nucleus").Exact<{
91
97
  input: import("./sdks/nucleus").CreateCredentialsInput;
92
98
  }>, options?: unknown): Promise<import("./sdks/nucleus").CreateCredentialsMutation>;
99
+ createSystemCredentials(variables: import("./sdks/nucleus").Exact<{
100
+ input: import("./sdks/nucleus").CreateCredentialsInput;
101
+ }>, options?: unknown): Promise<import("./sdks/nucleus").CreateSystemCredentialsMutation>;
93
102
  updateCredentials(variables: import("./sdks/nucleus").Exact<{
94
103
  input: import("./sdks/nucleus").UpdateCredentialsInput;
95
104
  }>, options?: unknown): Promise<import("./sdks/nucleus").UpdateCredentialsMutation>;
96
105
  removeCredentials(variables: import("./sdks/nucleus").Exact<{
97
106
  input: import("./sdks/nucleus").RemoveCredentialsInput;
98
107
  }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveCredentialsMutation>;
108
+ removeSystemCredentials(variables: import("./sdks/nucleus").Exact<{
109
+ input: import("./sdks/nucleus").RemoveCredentialsInput;
110
+ }>, options?: unknown): Promise<import("./sdks/nucleus").RemoveSystemCredentialsMutation>;
99
111
  getCustomer(variables: import("./sdks/nucleus").Exact<{
100
112
  identifier: string;
101
113
  }>, options?: unknown): Promise<import("./sdks/nucleus").GetCustomerQuery>;
package/src/sdks/ai.d.ts CHANGED
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;
@@ -153,11 +161,11 @@ export type NlpInstance = {
153
161
  };
154
162
  export type NlpOption = {
155
163
  samples: Array<Scalars['String']['output']>;
156
- transition: Scalars['String']['output'];
164
+ transition: Scalars['VariableName']['output'];
157
165
  };
158
166
  export type NlpOptionInput = {
159
167
  samples: Array<Scalars['String']['input']>;
160
- transition: Scalars['String']['input'];
168
+ transition: Scalars['VariableName']['input'];
161
169
  };
162
170
  export type NumberFilterInput = {
163
171
  btw?: InputMaybe<Array<Scalars['Float']['input']>>;
@@ -218,7 +226,7 @@ export type StringFilterInput = {
218
226
  };
219
227
  export type TestNlpInstanceResult = {
220
228
  confidence?: Maybe<Scalars['Float']['output']>;
221
- transition?: Maybe<Scalars['String']['output']>;
229
+ transition?: Maybe<Scalars['VariableName']['output']>;
222
230
  };
223
231
  export declare enum Typenames {
224
232
  Any = "Any",
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;
@@ -138,9 +146,6 @@ export type CloseTicketInput = {
138
146
  export type CreateDrozChatChannelInput = {
139
147
  name?: InputMaybe<Scalars['String']['input']>;
140
148
  };
141
- export type CreateTagInput = {
142
- tags: Array<Scalars['String']['input']>;
143
- };
144
149
  export type CreateTicketInput = {
145
150
  channelId: Scalars['ID']['input'];
146
151
  customerId: Scalars['ID']['input'];
@@ -157,7 +162,10 @@ export type CreateTicketMessageInput = {
157
162
  contentType: Scalars['String']['input'];
158
163
  ticketId: Scalars['ID']['input'];
159
164
  };
160
- export type DeleteTagInput = {
165
+ export type CreateTicketTagInput = {
166
+ tags: Array<Scalars['String']['input']>;
167
+ };
168
+ export type DeleteTicketTagInput = {
161
169
  tags: Array<Scalars['String']['input']>;
162
170
  };
163
171
  export type DisableDrozChatChannelInput = {
@@ -207,11 +215,11 @@ export type Mutation = {
207
215
  assignTicketMyself: Ticket;
208
216
  closeTicket: Ticket;
209
217
  createDrozChatChannel?: Maybe<DrozChatChannel>;
210
- createTags: Array<Tag>;
218
+ createTags: Array<TicketTag>;
211
219
  createTicket: Ticket;
212
220
  createTicketMessage: TicketMessage;
213
221
  createTicketMessageForStorage: TicketMessage;
214
- deleteTags: Array<Tag>;
222
+ deleteTags: Array<Maybe<TicketTag>>;
215
223
  disableDrozChatChannel?: Maybe<DrozChatChannel>;
216
224
  enableDrozChatChannel?: Maybe<DrozChatChannel>;
217
225
  markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>;
@@ -242,7 +250,7 @@ export type MutationCreateDrozChatChannelArgs = {
242
250
  input: CreateDrozChatChannelInput;
243
251
  };
244
252
  export type MutationCreateTagsArgs = {
245
- input: CreateTagInput;
253
+ input: CreateTicketTagInput;
246
254
  };
247
255
  export type MutationCreateTicketArgs = {
248
256
  input: CreateTicketInput;
@@ -254,7 +262,7 @@ export type MutationCreateTicketMessageForStorageArgs = {
254
262
  input: CreateTicketMessageForStorageInput;
255
263
  };
256
264
  export type MutationDeleteTagsArgs = {
257
- input: DeleteTagInput;
265
+ input: DeleteTicketTagInput;
258
266
  };
259
267
  export type MutationDisableDrozChatChannelArgs = {
260
268
  input: DisableDrozChatChannelInput;
@@ -304,7 +312,7 @@ export type Query = {
304
312
  getWsEndpoint?: Maybe<Scalars['String']['output']>;
305
313
  listDrozChatAgentChannels: Array<DrozChatChannel>;
306
314
  listDrozChatChannels: Array<DrozChatChannel>;
307
- listTags: TagsConnection;
315
+ listTags: TicketTagsConnection;
308
316
  listTicketMessages: TicketMessagesConnection;
309
317
  listTickets: TicketsConnection;
310
318
  listTicketsInProgressMine: TicketsConnection;
@@ -395,16 +403,6 @@ export declare enum SubscriptionAction {
395
403
  Removed = "REMOVED",
396
404
  Updated = "UPDATED"
397
405
  }
398
- export type Tag = {
399
- createdAt: Scalars['DateTime']['output'];
400
- createdBy?: Maybe<DrozChatAgent>;
401
- name: Scalars['String']['output'];
402
- updatedAt: Scalars['DateTime']['output'];
403
- };
404
- export type TagsConnection = {
405
- nodes: Array<Tag>;
406
- pageInfo: PageInfo;
407
- };
408
406
  export type Ticket = {
409
407
  assignee?: Maybe<DrozChatAgent>;
410
408
  assigneeId?: Maybe<Scalars['ID']['output']>;
@@ -514,6 +512,16 @@ export type TicketSubscription = {
514
512
  action: SubscriptionAction;
515
513
  ticket: Ticket;
516
514
  };
515
+ export type TicketTag = {
516
+ createdAt: Scalars['DateTime']['output'];
517
+ createdBy?: Maybe<DrozChatAgent>;
518
+ name: Scalars['Tag']['output'];
519
+ updatedAt: Scalars['DateTime']['output'];
520
+ };
521
+ export type TicketTagsConnection = {
522
+ nodes: Array<TicketTag>;
523
+ pageInfo: PageInfo;
524
+ };
517
525
  export type TicketTriggerApp = {
518
526
  appColor?: Maybe<Scalars['String']['output']>;
519
527
  appId?: Maybe<Scalars['ID']['output']>;
@@ -624,7 +632,7 @@ export type RemoveDrozChatChannelAgentMutationVariables = Exact<{
624
632
  export type RemoveDrozChatChannelAgentMutation = {
625
633
  removeDrozChatChannelAgent?: Maybe<DrozChatChannelFragment>;
626
634
  };
627
- export type TagFragment = (Pick<Tag, 'name' | 'createdAt' | 'updatedAt'> & {
635
+ export type TagFragment = (Pick<TicketTag, 'name' | 'createdAt' | 'updatedAt'> & {
628
636
  createdBy?: Maybe<DrozChatAgentFragment>;
629
637
  });
630
638
  export type ListTagsQueryVariables = Exact<{
@@ -637,16 +645,16 @@ export type ListTagsQuery = {
637
645
  };
638
646
  };
639
647
  export type CreateTagsMutationVariables = Exact<{
640
- input: CreateTagInput;
648
+ input: CreateTicketTagInput;
641
649
  }>;
642
650
  export type CreateTagsMutation = {
643
651
  createTags: Array<TagFragment>;
644
652
  };
645
653
  export type DeleteTagsMutationVariables = Exact<{
646
- input: DeleteTagInput;
654
+ input: DeleteTicketTagInput;
647
655
  }>;
648
656
  export type DeleteTagsMutation = {
649
- deleteTags: Array<TagFragment>;
657
+ deleteTags: Array<Maybe<TagFragment>>;
650
658
  };
651
659
  export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'document' | 'createdAt' | 'updatedAt'>;
652
660
  export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
@@ -814,7 +822,7 @@ export type OnTicketMessageSubscription = {
814
822
  });
815
823
  };
816
824
  export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
817
- export declare const TagFragmentDoc = "\n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
825
+ export declare const TagFragmentDoc = "\n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
818
826
  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 ";
819
827
  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 ";
820
828
  export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
@@ -831,9 +839,9 @@ export declare const DisableDrozChatChannelDocument = "\n mutation disableDro
831
839
  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 ";
832
840
  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 ";
833
841
  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 ";
834
- export declare const ListTagsDocument = "\n query listTags($next: Base64) {\n listTags(next: $next) {\n nodes {\n ...tag\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
835
- export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
836
- export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on Tag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
842
+ export declare const ListTagsDocument = "\n query listTags($next: Base64) {\n listTags(next: $next) {\n nodes {\n ...tag\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
843
+ export declare const CreateTagsDocument = "\n mutation createTags($input: CreateTicketTagInput!) {\n createTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
844
+ export declare const DeleteTagsDocument = "\n mutation deleteTags($input: DeleteTicketTagInput!) {\n deleteTags(input: $input) {\n ...tag\n }\n}\n \n fragment tag on TicketTag {\n name\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
837
845
  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 subject\n state\n status\n priority\n tags\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 createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 ";
838
846
  export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $status: [TicketStatus!], $assigneeId: ID, $next: Base64) {\n listTickets(\n state: $state\n status: $status\n assigneeId: $assigneeId\n next: $next\n ) {\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 subject\n state\n status\n priority\n tags\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 createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 ";
839
847
  export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(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 subject\n state\n status\n priority\n tags\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 createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\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 ";
@@ -81,7 +81,7 @@ exports.DrozChatAgentFragmentDoc = `
81
81
  }
82
82
  `;
83
83
  exports.TagFragmentDoc = `
84
- fragment tag on Tag {
84
+ fragment tag on TicketTag {
85
85
  name
86
86
  createdBy {
87
87
  ...drozChatAgent
@@ -276,14 +276,14 @@ exports.ListTagsDocument = `
276
276
  }
277
277
  ${exports.TagFragmentDoc}`;
278
278
  exports.CreateTagsDocument = `
279
- mutation createTags($input: CreateTagInput!) {
279
+ mutation createTags($input: CreateTicketTagInput!) {
280
280
  createTags(input: $input) {
281
281
  ...tag
282
282
  }
283
283
  }
284
284
  ${exports.TagFragmentDoc}`;
285
285
  exports.DeleteTagsDocument = `
286
- mutation deleteTags($input: DeleteTagInput!) {
286
+ mutation deleteTags($input: DeleteTicketTagInput!) {
287
287
  deleteTags(input: $input) {
288
288
  ...tag
289
289
  }
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;
@@ -93,6 +93,10 @@ export type Scalars = {
93
93
  input: any;
94
94
  output: any[];
95
95
  };
96
+ Tag: {
97
+ input: string;
98
+ output: string;
99
+ };
96
100
  Timezone: {
97
101
  input: string;
98
102
  output: string;
@@ -101,6 +105,10 @@ export type Scalars = {
101
105
  input: string;
102
106
  output: string;
103
107
  };
108
+ VariableName: {
109
+ input: string;
110
+ output: string;
111
+ };
104
112
  Void: {
105
113
  input: void;
106
114
  output: void;