@droz-js/sdk 0.5.19 → 0.5.21

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.5.19",
4
+ "version": "0.5.21",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -65,6 +65,9 @@ export declare const DrozChatWs: new () => {
65
65
  createTicket(variables: import("./sdks/drozchat").Exact<{
66
66
  input: import("./sdks/drozchat").CreateTicketInput;
67
67
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMutation>;
68
+ updateTicket(variables: import("./sdks/drozchat").Exact<{
69
+ input: import("./sdks/drozchat").UpdateTicketInput;
70
+ }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateTicketMutation>;
68
71
  markTicketMessagesAsRead(variables: import("./sdks/drozchat").Exact<{
69
72
  input: import("./sdks/drozchat").MarkTicketMessagesAsReadInput;
70
73
  }>, options?: unknown): Promise<import("./sdks/drozchat").MarkTicketMessagesAsReadMutation>;
package/src/drozchat.d.ts CHANGED
@@ -68,6 +68,9 @@ export declare const DrozChat: new (options?: import("./client/http").HttpClient
68
68
  createTicket(variables: import("./sdks/drozchat").Exact<{
69
69
  input: import("./sdks/drozchat").CreateTicketInput;
70
70
  }>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMutation>;
71
+ updateTicket(variables: import("./sdks/drozchat").Exact<{
72
+ input: import("./sdks/drozchat").UpdateTicketInput;
73
+ }>, options?: unknown): Promise<import("./sdks/drozchat").UpdateTicketMutation>;
71
74
  markTicketMessagesAsRead(variables: import("./sdks/drozchat").Exact<{
72
75
  input: import("./sdks/drozchat").MarkTicketMessagesAsReadInput;
73
76
  }>, options?: unknown): Promise<import("./sdks/drozchat").MarkTicketMessagesAsReadMutation>;
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -120,6 +124,14 @@ export type CreateCasasBahiaInstanceInput = {
120
124
  isTest?: InputMaybe<Scalars['Boolean']['input']>;
121
125
  name: Scalars['String']['input'];
122
126
  };
127
+ export type I18nText = {
128
+ lang: Scalars['Locale']['output'];
129
+ value: Scalars['String']['output'];
130
+ };
131
+ export type I18nTextInput = {
132
+ lang: Scalars['Locale']['input'];
133
+ value: Scalars['String']['input'];
134
+ };
123
135
  export type Mutation = {
124
136
  applySolution?: Maybe<Scalars['Boolean']['output']>;
125
137
  createCasasBahiaInstance?: Maybe<CasasBahiaInstance>;
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -113,6 +117,14 @@ export type ChatWidgetSession = {
113
117
  export type CreateChatWidgetInput = {
114
118
  name: Scalars['String']['input'];
115
119
  };
120
+ export type I18nText = {
121
+ lang: Scalars['Locale']['output'];
122
+ value: Scalars['String']['output'];
123
+ };
124
+ export type I18nTextInput = {
125
+ lang: Scalars['Locale']['input'];
126
+ value: Scalars['String']['input'];
127
+ };
116
128
  export type Mutation = {
117
129
  createChatWidget?: Maybe<ChatWidget>;
118
130
  removeChatWidget?: Maybe<ChatWidget>;
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -135,6 +139,14 @@ export type DrozBotTicketComment = {
135
139
  id: Scalars['ID']['output'];
136
140
  ticketId: Scalars['ID']['output'];
137
141
  };
142
+ export type I18nText = {
143
+ lang: Scalars['Locale']['output'];
144
+ value: Scalars['String']['output'];
145
+ };
146
+ export type I18nTextInput = {
147
+ lang: Scalars['Locale']['input'];
148
+ value: Scalars['String']['input'];
149
+ };
138
150
  export type Mutation = {
139
151
  createDrozBotInstance: DrozBotInstance;
140
152
  createDrozBotTicket: DrozBotTicket;
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -162,6 +166,14 @@ export type DrozChatCustomer = {
162
166
  export type EnableDrozChatChannelInput = {
163
167
  id: Scalars['ID']['input'];
164
168
  };
169
+ export type I18nText = {
170
+ lang: Scalars['Locale']['output'];
171
+ value: Scalars['String']['output'];
172
+ };
173
+ export type I18nTextInput = {
174
+ lang: Scalars['Locale']['input'];
175
+ value: Scalars['String']['input'];
176
+ };
165
177
  export type MarkTicketMessagesAsReadInput = {
166
178
  channelId: Scalars['ID']['input'];
167
179
  ticketId: Scalars['ID']['input'];
@@ -186,6 +198,7 @@ export type Mutation = {
186
198
  transferTicketToChannel: Ticket;
187
199
  unassignTicket: Ticket;
188
200
  updateDrozChatChannel?: Maybe<DrozChatChannel>;
201
+ updateTicket: Ticket;
189
202
  version?: Maybe<Scalars['String']['output']>;
190
203
  };
191
204
  export type MutationAddDrozChatChannelAgentArgs = {
@@ -245,6 +258,9 @@ export type MutationUnassignTicketArgs = {
245
258
  export type MutationUpdateDrozChatChannelArgs = {
246
259
  input: UpdateDrozChatChannelInput;
247
260
  };
261
+ export type MutationUpdateTicketArgs = {
262
+ input: UpdateTicketInput;
263
+ };
248
264
  export type NumberFilterInput = {
249
265
  btw?: InputMaybe<Array<Scalars['Float']['input']>>;
250
266
  eq?: InputMaybe<Scalars['Float']['input']>;
@@ -513,6 +529,11 @@ export type UpdateDrozChatChannelInput = {
513
529
  id: Scalars['ID']['input'];
514
530
  name?: InputMaybe<Scalars['String']['input']>;
515
531
  };
532
+ export type UpdateTicketInput = {
533
+ id: Scalars['ID']['input'];
534
+ priority?: InputMaybe<TicketPriority>;
535
+ subject?: InputMaybe<Scalars['String']['input']>;
536
+ };
516
537
  export type DrozChatChannelFragment = Pick<DrozChatChannel, 'id' | 'name' | 'agentIds' | 'createdAt' | 'updatedAt'>;
517
538
  export type GetDrozChatChannelQueryVariables = Exact<{
518
539
  id: Scalars['ID']['input'];
@@ -597,7 +618,7 @@ export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>;
597
618
  export type TicketTriggerAppFragment = (Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName' | 'appColor'> & {
598
619
  channels: Array<Pick<TicketTriggerAppChannel, 'id' | 'main' | 'readonly' | 'hidden' | 'sources' | 'unreadMessagesCount'>>;
599
620
  });
600
- export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'status' | 'priority' | 'tags' | 'externalProviderId' | 'externalId' | 'createdAt' | 'updatedAt' | 'closedAt' | 'lastMessageAt' | 'firstAgentResponseAt' | 'timeToFirstAgentResponseInMs' | 'timeToCloseInMs' | 'messagesCount' | 'lastMessage' | 'unreadMessagesCount'> & {
621
+ export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'subject' | 'state' | 'status' | 'priority' | 'tags' | 'externalProviderId' | 'externalId' | 'createdAt' | 'updatedAt' | 'closedAt' | 'lastMessageAt' | 'firstAgentResponseAt' | 'timeToFirstAgentResponseInMs' | 'timeToCloseInMs' | 'messagesCount' | 'lastMessage' | 'unreadMessagesCount'> & {
601
622
  assignee?: Maybe<DrozChatAgentFragment>;
602
623
  customer: CustomerFragment;
603
624
  triggerApp?: Maybe<TicketTriggerAppFragment>;
@@ -668,6 +689,12 @@ export type CreateTicketMutationVariables = Exact<{
668
689
  export type CreateTicketMutation = {
669
690
  createTicket: TicketWithSessionFragment;
670
691
  };
692
+ export type UpdateTicketMutationVariables = Exact<{
693
+ input: UpdateTicketInput;
694
+ }>;
695
+ export type UpdateTicketMutation = {
696
+ updateTicket: TicketWithSessionFragment;
697
+ };
671
698
  export type MarkTicketMessagesAsReadMutationVariables = Exact<{
672
699
  input: MarkTicketMessagesAsReadInput;
673
700
  }>;
@@ -755,9 +782,9 @@ export declare const TagFragmentDoc = "\n fragment tag on Tag {\n name\n cr
755
782
  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 ";
756
783
  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 ";
757
784
  export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n ";
758
- export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\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 ";
785
+ export declare const TicketFragmentDoc = "\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 ";
759
786
  export declare const SessionAttributesFragmentDoc = "\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n ";
760
- 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 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 ";
787
+ 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 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 ";
761
788
  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 ";
762
789
  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 ";
763
790
  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 ";
@@ -771,24 +798,25 @@ export declare const RemoveDrozChatChannelAgentDocument = "\n mutation remove
771
798
  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 ";
772
799
  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 ";
773
800
  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 ";
774
- 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 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 ";
775
- 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 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 ";
776
- 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 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 ";
801
+ 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 ";
802
+ 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 ";
803
+ 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 ";
777
804
  export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \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 ";
778
- export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [String!], $page: Float) {\n searchTickets(q: $q, filters: $filters, sortBy: $sortBy, page: $page) {\n nodes {\n ...ticket\n }\n stats {\n found\n page\n perPage\n totalPages\n searchTime\n }\n facets {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\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 ";
779
- export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\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 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 ";
805
+ export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [String!], $page: Float) {\n searchTickets(q: $q, filters: $filters, sortBy: $sortBy, page: $page) {\n nodes {\n ...ticket\n }\n stats {\n found\n page\n perPage\n totalPages\n searchTime\n }\n facets {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\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 ";
806
+ export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\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 ";
807
+ export declare const UpdateTicketDocument = "\n mutation updateTicket($input: UpdateTicketInput!) {\n updateTicket(input: $input) {\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 ";
780
808
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
781
809
  export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \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 ";
782
810
  export declare const CreateTicketMessageForStorageDocument = "\n mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) {\n createTicketMessageForStorage(input: $input) {\n ...ticketMessage\n }\n}\n \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 ";
783
- export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\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 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 ";
784
- export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\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 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 ";
785
- export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\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 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 ";
786
- export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\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 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 ";
787
- export declare const AddTagsToTicketDocument = "\n mutation addTagsToTicket($input: AddTagsToTicketInput!) {\n addTagsToTicket(input: $input) {\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 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 ";
788
- export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {\n removeTagsFromTicket(input: $input) {\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 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 ";
789
- export declare const TransferTicketToChannelDocument = "\n mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {\n transferTicketToChannel(input: $input) {\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 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 ";
790
- export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\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 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 ";
791
- export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\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 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 ";
811
+ export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\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 ";
812
+ export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\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 ";
813
+ export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\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 ";
814
+ export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\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 ";
815
+ export declare const AddTagsToTicketDocument = "\n mutation addTagsToTicket($input: AddTagsToTicketInput!) {\n addTagsToTicket(input: $input) {\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 ";
816
+ export declare const RemoveTagsFromTicketDocument = "\n mutation removeTagsFromTicket($input: RemoveTagsFromTicketInput!) {\n removeTagsFromTicket(input: $input) {\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 ";
817
+ export declare const TransferTicketToChannelDocument = "\n mutation transferTicketToChannel($input: TransferTicketToChannelInput!) {\n transferTicketToChannel(input: $input) {\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 ";
818
+ export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticketWithSession\n }\n action\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 ";
819
+ export declare const OnTicketByStateDocument = "\n subscription onTicketByState($state: TicketState!) {\n onTicketByState(state: $state) {\n ticket {\n ...ticketWithSession\n }\n action\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 ";
792
820
  export declare const OnTicketMessageDocument = "\n subscription onTicketMessage($ticketId: ID!) {\n onTicketMessage(ticketId: $ticketId) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \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 ";
793
821
  export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
794
822
  export declare function getSdk<C>(requester: Requester<C>): {
@@ -810,6 +838,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
810
838
  listTicketMessages(variables: ListTicketMessagesQueryVariables, options?: C): Promise<ListTicketMessagesQuery>;
811
839
  searchTickets(variables?: SearchTicketsQueryVariables, options?: C): Promise<SearchTicketsQuery>;
812
840
  createTicket(variables: CreateTicketMutationVariables, options?: C): Promise<CreateTicketMutation>;
841
+ updateTicket(variables: UpdateTicketMutationVariables, options?: C): Promise<UpdateTicketMutation>;
813
842
  markTicketMessagesAsRead(variables: MarkTicketMessagesAsReadMutationVariables, options?: C): Promise<MarkTicketMessagesAsReadMutation>;
814
843
  createTicketMessage(variables: CreateTicketMessageMutationVariables, options?: C): Promise<CreateTicketMessageMutation>;
815
844
  createTicketMessageForStorage(variables: CreateTicketMessageForStorageMutationVariables, options?: C): Promise<CreateTicketMessageForStorageMutation>;
@@ -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.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.SearchTicketsDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = 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.TagFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0;
4
+ exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketByStateDocument = exports.OnTicketInProgressMineDocument = exports.TransferTicketToChannelDocument = exports.RemoveTagsFromTicketDocument = exports.AddTagsToTicketDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.UpdateTicketDocument = exports.CreateTicketDocument = exports.SearchTicketsDocument = exports.ListTicketMessagesDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.DeleteTagsDocument = exports.CreateTagsDocument = exports.ListTagsDocument = 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.TagFragmentDoc = 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";
@@ -111,6 +111,7 @@ exports.TicketFragmentDoc = `
111
111
  fragment ticket on Ticket {
112
112
  channelId
113
113
  id
114
+ subject
114
115
  state
115
116
  status
116
117
  priority
@@ -353,6 +354,13 @@ exports.CreateTicketDocument = `
353
354
  }
354
355
  }
355
356
  ${exports.TicketWithSessionFragmentDoc}`;
357
+ exports.UpdateTicketDocument = `
358
+ mutation updateTicket($input: UpdateTicketInput!) {
359
+ updateTicket(input: $input) {
360
+ ...ticketWithSession
361
+ }
362
+ }
363
+ ${exports.TicketWithSessionFragmentDoc}`;
356
364
  exports.MarkTicketMessagesAsReadDocument = `
357
365
  mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {
358
366
  markTicketMessagesAsRead(input: $input)
@@ -507,6 +515,9 @@ function getSdk(requester) {
507
515
  createTicket(variables, options) {
508
516
  return requester(exports.CreateTicketDocument, variables, options);
509
517
  },
518
+ updateTicket(variables, options) {
519
+ return requester(exports.UpdateTicketDocument, variables, options);
520
+ },
510
521
  markTicketMessagesAsRead(variables, options) {
511
522
  return requester(exports.MarkTicketMessagesAsReadDocument, variables, options);
512
523
  },
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -180,6 +184,14 @@ export type GitRepository = {
180
184
  id: Scalars['ID']['output'];
181
185
  name: Scalars['String']['output'];
182
186
  };
187
+ export type I18nText = {
188
+ lang: Scalars['Locale']['output'];
189
+ value: Scalars['String']['output'];
190
+ };
191
+ export type I18nTextInput = {
192
+ lang: Scalars['Locale']['input'];
193
+ value: Scalars['String']['input'];
194
+ };
183
195
  export type Mutation = {
184
196
  batchDeploy: Array<Deployment>;
185
197
  createTenant: Tenant;
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -136,6 +140,14 @@ export type DrozNexoUsageStatistics = {
136
140
  totalConnections: Scalars['Int']['output'];
137
141
  totalSecrets: Scalars['Int']['output'];
138
142
  };
143
+ export type I18nText = {
144
+ lang: Scalars['Locale']['output'];
145
+ value: Scalars['String']['output'];
146
+ };
147
+ export type I18nTextInput = {
148
+ lang: Scalars['Locale']['input'];
149
+ value: Scalars['String']['input'];
150
+ };
139
151
  export type Mutation = {
140
152
  createDrozNexoConnection: DrozNexoConnection;
141
153
  removeDrozNexoConnection: DrozNexoConnection;
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -293,6 +297,14 @@ export type GetOrCreateCustomerInput = {
293
297
  name?: InputMaybe<Scalars['String']['input']>;
294
298
  phone?: InputMaybe<Scalars['PhoneNumber']['input']>;
295
299
  };
300
+ export type I18nText = {
301
+ lang: Scalars['Locale']['output'];
302
+ value: Scalars['String']['output'];
303
+ };
304
+ export type I18nTextInput = {
305
+ lang: Scalars['Locale']['input'];
306
+ value: Scalars['String']['input'];
307
+ };
296
308
  export type ICredentials = {
297
309
  createdAt: Scalars['DateTime']['output'];
298
310
  description: Scalars['String']['output'];
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -103,6 +107,14 @@ export type ForceReSyncReclameAquiTicketInput = {
103
107
  ticketId: Scalars['ID']['input'];
104
108
  ticketIdType: ReclameAquiTicketIdType;
105
109
  };
110
+ export type I18nText = {
111
+ lang: Scalars['Locale']['output'];
112
+ value: Scalars['String']['output'];
113
+ };
114
+ export type I18nTextInput = {
115
+ lang: Scalars['Locale']['input'];
116
+ value: Scalars['String']['input'];
117
+ };
106
118
  export type Mutation = {
107
119
  createReclameAquiInstance?: Maybe<ReclameAquiInstance>;
108
120
  forceReSyncReclameAquiTicket?: Maybe<Scalars['Boolean']['output']>;
@@ -0,0 +1,230 @@
1
+ export type Maybe<T> = T;
2
+ export type InputMaybe<T> = T;
3
+ export type Exact<T extends {
4
+ [key: string]: unknown;
5
+ }> = {
6
+ [K in keyof T]: T[K];
7
+ };
8
+ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
9
+ [SubKey in K]?: Maybe<T[SubKey]>;
10
+ };
11
+ export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
12
+ [SubKey in K]: Maybe<T[SubKey]>;
13
+ };
14
+ export type MakeEmpty<T extends {
15
+ [key: string]: unknown;
16
+ }, K extends keyof T> = {
17
+ [_ in K]?: never;
18
+ };
19
+ export type Incremental<T> = T | {
20
+ [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
21
+ };
22
+ /** All built-in and custom scalars, mapped to their actual values */
23
+ export type Scalars = {
24
+ ID: {
25
+ input: string;
26
+ output: string;
27
+ };
28
+ String: {
29
+ input: string;
30
+ output: string;
31
+ };
32
+ Boolean: {
33
+ input: boolean;
34
+ output: boolean;
35
+ };
36
+ Int: {
37
+ input: number;
38
+ output: number;
39
+ };
40
+ Float: {
41
+ input: number;
42
+ output: number;
43
+ };
44
+ Base64: {
45
+ input: object;
46
+ output: string;
47
+ };
48
+ DRN: {
49
+ input: string;
50
+ output: string;
51
+ };
52
+ Date: {
53
+ input: Date;
54
+ output: Date;
55
+ };
56
+ DateTime: {
57
+ input: Date;
58
+ output: Date;
59
+ };
60
+ EmailAddress: {
61
+ input: string;
62
+ output: string;
63
+ };
64
+ JSON: {
65
+ input: any;
66
+ output: any;
67
+ };
68
+ JSONObject: {
69
+ input: any;
70
+ output: any;
71
+ };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
76
+ PhoneNumber: {
77
+ input: string;
78
+ output: string;
79
+ };
80
+ Set: {
81
+ input: any;
82
+ output: any[];
83
+ };
84
+ URL: {
85
+ input: string;
86
+ output: string;
87
+ };
88
+ Void: {
89
+ input: void;
90
+ output: void;
91
+ };
92
+ };
93
+ export declare enum AppInstanceStatus {
94
+ Active = "Active",
95
+ Failing = "Failing",
96
+ Inactive = "Inactive"
97
+ }
98
+ export type CreateEchoAppInput = {
99
+ messages: Array<I18nTextInput>;
100
+ name: Scalars['String']['input'];
101
+ };
102
+ export type EchoInstance = {
103
+ createdAt: Scalars['DateTime']['output'];
104
+ id: Scalars['ID']['output'];
105
+ messages: Array<I18nText>;
106
+ name: Scalars['String']['output'];
107
+ updatedAt: Scalars['DateTime']['output'];
108
+ };
109
+ export type I18nText = {
110
+ lang: Scalars['Locale']['output'];
111
+ value: Scalars['String']['output'];
112
+ };
113
+ export type I18nTextInput = {
114
+ lang: Scalars['Locale']['input'];
115
+ value: Scalars['String']['input'];
116
+ };
117
+ export type Mutation = {
118
+ createEchoInstance?: Maybe<EchoInstance>;
119
+ removeEchoInstance?: Maybe<EchoInstance>;
120
+ updateEchoInstance?: Maybe<EchoInstance>;
121
+ version?: Maybe<Scalars['String']['output']>;
122
+ };
123
+ export type MutationCreateEchoInstanceArgs = {
124
+ input: CreateEchoAppInput;
125
+ };
126
+ export type MutationRemoveEchoInstanceArgs = {
127
+ id: Scalars['ID']['input'];
128
+ };
129
+ export type MutationUpdateEchoInstanceArgs = {
130
+ input: UpdateEchoAppInput;
131
+ };
132
+ export type NumberFilterInput = {
133
+ btw?: InputMaybe<Array<Scalars['Float']['input']>>;
134
+ eq?: InputMaybe<Scalars['Float']['input']>;
135
+ gt?: InputMaybe<Scalars['Float']['input']>;
136
+ gte?: InputMaybe<Scalars['Float']['input']>;
137
+ lt?: InputMaybe<Scalars['Float']['input']>;
138
+ lte?: InputMaybe<Scalars['Float']['input']>;
139
+ ne?: InputMaybe<Scalars['Float']['input']>;
140
+ };
141
+ export type PageInfo = {
142
+ hasNext: Scalars['Boolean']['output'];
143
+ next?: Maybe<Scalars['Base64']['output']>;
144
+ };
145
+ export type Query = {
146
+ app?: Maybe<Scalars['DRN']['output']>;
147
+ getEchoInstance?: Maybe<EchoInstance>;
148
+ getHttpEndpoint?: Maybe<Scalars['String']['output']>;
149
+ version?: Maybe<Scalars['String']['output']>;
150
+ };
151
+ export type QueryGetEchoInstanceArgs = {
152
+ id: Scalars['ID']['input'];
153
+ };
154
+ export type SearchResultsFacet = {
155
+ name: Scalars['String']['output'];
156
+ stats?: Maybe<SearchResultsFacetStats>;
157
+ values?: Maybe<Array<SearchResultsFacetValue>>;
158
+ };
159
+ export type SearchResultsFacetStats = {
160
+ max?: Maybe<Scalars['Float']['output']>;
161
+ min?: Maybe<Scalars['Float']['output']>;
162
+ };
163
+ export type SearchResultsFacetValue = {
164
+ count: Scalars['Float']['output'];
165
+ value: Scalars['String']['output'];
166
+ };
167
+ export type SearchResultsStats = {
168
+ found: Scalars['Float']['output'];
169
+ page: Scalars['Float']['output'];
170
+ perPage: Scalars['Float']['output'];
171
+ searchTime: Scalars['Float']['output'];
172
+ totalPages: Scalars['Float']['output'];
173
+ };
174
+ export type StringFilterInput = {
175
+ eq?: InputMaybe<Scalars['String']['input']>;
176
+ in?: InputMaybe<Array<Scalars['String']['input']>>;
177
+ ne?: InputMaybe<Scalars['String']['input']>;
178
+ };
179
+ export declare enum Typenames {
180
+ Any = "Any",
181
+ Echo = "Echo",
182
+ GraphqlConnections = "GraphqlConnections",
183
+ GraphqlSubscriptions = "GraphqlSubscriptions"
184
+ }
185
+ export type UpdateEchoAppInput = {
186
+ id: Scalars['ID']['input'];
187
+ messages?: InputMaybe<Array<I18nTextInput>>;
188
+ name?: InputMaybe<Scalars['String']['input']>;
189
+ };
190
+ export type EchoInstanceFragment = (Pick<EchoInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & {
191
+ messages: Array<Pick<I18nText, 'lang' | 'value'>>;
192
+ });
193
+ export type GetEchoInstanceQueryVariables = Exact<{
194
+ id: Scalars['ID']['input'];
195
+ }>;
196
+ export type GetEchoInstanceQuery = {
197
+ getEchoInstance?: Maybe<EchoInstanceFragment>;
198
+ };
199
+ export type CreateEchoInstanceMutationVariables = Exact<{
200
+ input: CreateEchoAppInput;
201
+ }>;
202
+ export type CreateEchoInstanceMutation = {
203
+ createEchoInstance?: Maybe<EchoInstanceFragment>;
204
+ };
205
+ export type UpdateEchoInstanceMutationVariables = Exact<{
206
+ input: UpdateEchoAppInput;
207
+ }>;
208
+ export type UpdateEchoInstanceMutation = {
209
+ updateEchoInstance?: Maybe<EchoInstanceFragment>;
210
+ };
211
+ export type RemoveEchoInstanceMutationVariables = Exact<{
212
+ id: Scalars['ID']['input'];
213
+ }>;
214
+ export type RemoveEchoInstanceMutation = {
215
+ removeEchoInstance?: Maybe<EchoInstanceFragment>;
216
+ };
217
+ export declare const EchoInstanceFragmentDoc = "\n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n ";
218
+ export declare const GetEchoInstanceDocument = "\n query getEchoInstance($id: ID!) {\n getEchoInstance(id: $id) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n ";
219
+ export declare const CreateEchoInstanceDocument = "\n mutation createEchoInstance($input: CreateEchoAppInput!) {\n createEchoInstance(input: $input) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n ";
220
+ export declare const UpdateEchoInstanceDocument = "\n mutation updateEchoInstance($input: UpdateEchoAppInput!) {\n updateEchoInstance(input: $input) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n ";
221
+ export declare const RemoveEchoInstanceDocument = "\n mutation removeEchoInstance($id: ID!) {\n removeEchoInstance(id: $id) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n ";
222
+ export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
223
+ export declare function getSdk<C>(requester: Requester<C>): {
224
+ getEchoInstance(variables: GetEchoInstanceQueryVariables, options?: C): Promise<GetEchoInstanceQuery>;
225
+ createEchoInstance(variables: CreateEchoInstanceMutationVariables, options?: C): Promise<CreateEchoInstanceMutation>;
226
+ updateEchoInstance(variables: UpdateEchoInstanceMutationVariables, options?: C): Promise<UpdateEchoInstanceMutation>;
227
+ removeEchoInstance(variables: RemoveEchoInstanceMutationVariables, options?: C): Promise<RemoveEchoInstanceMutation>;
228
+ };
229
+ export type Sdk = ReturnType<typeof getSdk>;
230
+ export declare const serviceName = "@droz/utilities";
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /* istanbul ignore file */
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.serviceName = exports.getSdk = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.GetEchoInstanceDocument = exports.EchoInstanceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0;
5
+ var AppInstanceStatus;
6
+ (function (AppInstanceStatus) {
7
+ AppInstanceStatus["Active"] = "Active";
8
+ AppInstanceStatus["Failing"] = "Failing";
9
+ AppInstanceStatus["Inactive"] = "Inactive";
10
+ })(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {}));
11
+ var Typenames;
12
+ (function (Typenames) {
13
+ Typenames["Any"] = "Any";
14
+ Typenames["Echo"] = "Echo";
15
+ Typenames["GraphqlConnections"] = "GraphqlConnections";
16
+ Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
17
+ })(Typenames || (exports.Typenames = Typenames = {}));
18
+ exports.EchoInstanceFragmentDoc = `
19
+ fragment echoInstance on EchoInstance {
20
+ id
21
+ name
22
+ messages {
23
+ lang
24
+ value
25
+ }
26
+ createdAt
27
+ updatedAt
28
+ }
29
+ `;
30
+ exports.GetEchoInstanceDocument = `
31
+ query getEchoInstance($id: ID!) {
32
+ getEchoInstance(id: $id) {
33
+ ...echoInstance
34
+ }
35
+ }
36
+ ${exports.EchoInstanceFragmentDoc}`;
37
+ exports.CreateEchoInstanceDocument = `
38
+ mutation createEchoInstance($input: CreateEchoAppInput!) {
39
+ createEchoInstance(input: $input) {
40
+ ...echoInstance
41
+ }
42
+ }
43
+ ${exports.EchoInstanceFragmentDoc}`;
44
+ exports.UpdateEchoInstanceDocument = `
45
+ mutation updateEchoInstance($input: UpdateEchoAppInput!) {
46
+ updateEchoInstance(input: $input) {
47
+ ...echoInstance
48
+ }
49
+ }
50
+ ${exports.EchoInstanceFragmentDoc}`;
51
+ exports.RemoveEchoInstanceDocument = `
52
+ mutation removeEchoInstance($id: ID!) {
53
+ removeEchoInstance(id: $id) {
54
+ ...echoInstance
55
+ }
56
+ }
57
+ ${exports.EchoInstanceFragmentDoc}`;
58
+ function getSdk(requester) {
59
+ return {
60
+ getEchoInstance(variables, options) {
61
+ return requester(exports.GetEchoInstanceDocument, variables, options);
62
+ },
63
+ createEchoInstance(variables, options) {
64
+ return requester(exports.CreateEchoInstanceDocument, variables, options);
65
+ },
66
+ updateEchoInstance(variables, options) {
67
+ return requester(exports.UpdateEchoInstanceDocument, variables, options);
68
+ },
69
+ removeEchoInstance(variables, options) {
70
+ return requester(exports.RemoveEchoInstanceDocument, variables, options);
71
+ }
72
+ };
73
+ }
74
+ exports.getSdk = getSdk;
75
+ exports.serviceName = '@droz/utilities';
@@ -69,6 +69,10 @@ export type Scalars = {
69
69
  input: any;
70
70
  output: any;
71
71
  };
72
+ Locale: {
73
+ input: any;
74
+ output: any;
75
+ };
72
76
  PhoneNumber: {
73
77
  input: string;
74
78
  output: string;
@@ -99,6 +103,14 @@ export type CreateZendeskInstanceInput = {
99
103
  name: Scalars['String']['input'];
100
104
  sessionFieldMappings?: InputMaybe<Array<ZendeskSessionFieldMappingInput>>;
101
105
  };
106
+ export type I18nText = {
107
+ lang: Scalars['Locale']['output'];
108
+ value: Scalars['String']['output'];
109
+ };
110
+ export type I18nTextInput = {
111
+ lang: Scalars['Locale']['input'];
112
+ value: Scalars['String']['input'];
113
+ };
102
114
  export type Mutation = {
103
115
  createZendeskInstance?: Maybe<ZendeskInstance>;
104
116
  removeZendeskInstance?: Maybe<ZendeskInstance>;