@droz-js/sdk 0.5.21 → 0.5.22

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.21",
4
+ "version": "0.5.22",
5
5
  "private": false,
6
6
  "exports": {
7
7
  ".": "./src/index.js",
@@ -196,6 +196,7 @@ export type SearchResultsFacetValue = {
196
196
  };
197
197
  export type SearchResultsStats = {
198
198
  found: Scalars['Float']['output'];
199
+ outOf: Scalars['Float']['output'];
199
200
  page: Scalars['Float']['output'];
200
201
  perPage: Scalars['Float']['output'];
201
202
  searchTime: Scalars['Float']['output'];
@@ -190,6 +190,7 @@ export type SearchResultsFacetValue = {
190
190
  };
191
191
  export type SearchResultsStats = {
192
192
  found: Scalars['Float']['output'];
193
+ outOf: Scalars['Float']['output'];
193
194
  page: Scalars['Float']['output'];
194
195
  perPage: Scalars['Float']['output'];
195
196
  searchTime: Scalars['Float']['output'];
@@ -211,6 +211,7 @@ export type SearchResultsFacetValue = {
211
211
  };
212
212
  export type SearchResultsStats = {
213
213
  found: Scalars['Float']['output'];
214
+ outOf: Scalars['Float']['output'];
214
215
  page: Scalars['Float']['output'];
215
216
  perPage: Scalars['Float']['output'];
216
217
  searchTime: Scalars['Float']['output'];
@@ -344,6 +344,7 @@ export type SearchResultsFacetValue = {
344
344
  };
345
345
  export type SearchResultsStats = {
346
346
  found: Scalars['Float']['output'];
347
+ outOf: Scalars['Float']['output'];
347
348
  page: Scalars['Float']['output'];
348
349
  perPage: Scalars['Float']['output'];
349
350
  searchTime: Scalars['Float']['output'];
@@ -676,7 +677,7 @@ export type SearchTicketsQueryVariables = Exact<{
676
677
  export type SearchTicketsQuery = {
677
678
  searchTickets?: Maybe<{
678
679
  nodes: Array<TicketFragment>;
679
- stats: Pick<SearchResultsStats, 'found' | 'page' | 'perPage' | 'totalPages' | 'searchTime'>;
680
+ stats: Pick<SearchResultsStats, 'found' | 'outOf' | 'page' | 'totalPages' | 'perPage' | 'searchTime'>;
680
681
  facets: Array<(Pick<SearchResultsFacet, 'name'> & {
681
682
  values?: Maybe<Array<Pick<SearchResultsFacetValue, 'value' | 'count'>>>;
682
683
  stats?: Maybe<Pick<SearchResultsFacetStats, 'min' | 'max'>>;
@@ -802,7 +803,7 @@ export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n g
802
803
  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
804
  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 ";
804
805
  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 ";
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 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 outOf\n page\n totalPages\n perPage\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
807
  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
808
  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 ";
808
809
  export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n ";
@@ -328,9 +328,10 @@ exports.SearchTicketsDocument = `
328
328
  }
329
329
  stats {
330
330
  found
331
+ outOf
331
332
  page
332
- perPage
333
333
  totalPages
334
+ perPage
334
335
  searchTime
335
336
  }
336
337
  facets {
@@ -305,6 +305,7 @@ export type SearchResultsFacetValue = {
305
305
  };
306
306
  export type SearchResultsStats = {
307
307
  found: Scalars['Float']['output'];
308
+ outOf: Scalars['Float']['output'];
308
309
  page: Scalars['Float']['output'];
309
310
  perPage: Scalars['Float']['output'];
310
311
  searchTime: Scalars['Float']['output'];
@@ -202,6 +202,7 @@ export type SearchResultsFacetValue = {
202
202
  };
203
203
  export type SearchResultsStats = {
204
204
  found: Scalars['Float']['output'];
205
+ outOf: Scalars['Float']['output'];
205
206
  page: Scalars['Float']['output'];
206
207
  perPage: Scalars['Float']['output'];
207
208
  searchTime: Scalars['Float']['output'];
@@ -659,6 +659,7 @@ export type SearchResultsFacetValue = {
659
659
  };
660
660
  export type SearchResultsStats = {
661
661
  found: Scalars['Float']['output'];
662
+ outOf: Scalars['Float']['output'];
662
663
  page: Scalars['Float']['output'];
663
664
  perPage: Scalars['Float']['output'];
664
665
  searchTime: Scalars['Float']['output'];
@@ -227,6 +227,7 @@ export type SearchResultsFacetValue = {
227
227
  };
228
228
  export type SearchResultsStats = {
229
229
  found: Scalars['Float']['output'];
230
+ outOf: Scalars['Float']['output'];
230
231
  page: Scalars['Float']['output'];
231
232
  perPage: Scalars['Float']['output'];
232
233
  searchTime: Scalars['Float']['output'];
@@ -166,6 +166,7 @@ export type SearchResultsFacetValue = {
166
166
  };
167
167
  export type SearchResultsStats = {
168
168
  found: Scalars['Float']['output'];
169
+ outOf: Scalars['Float']['output'];
169
170
  page: Scalars['Float']['output'];
170
171
  perPage: Scalars['Float']['output'];
171
172
  searchTime: Scalars['Float']['output'];
@@ -190,6 +190,7 @@ export type SearchResultsFacetValue = {
190
190
  };
191
191
  export type SearchResultsStats = {
192
192
  found: Scalars['Float']['output'];
193
+ outOf: Scalars['Float']['output'];
193
194
  page: Scalars['Float']['output'];
194
195
  perPage: Scalars['Float']['output'];
195
196
  searchTime: Scalars['Float']['output'];