@droz-js/sdk 0.20.16 → 0.20.17

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.20.16",
4
+ "version": "0.20.17",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
@@ -401,6 +401,7 @@ export type CustomField = {
401
401
  id: Scalars['ID']['output'];
402
402
  isActive: Scalars['Boolean']['output'];
403
403
  isRequired: Scalars['Boolean']['output'];
404
+ maxLength?: Maybe<Scalars['Int']['output']>;
404
405
  name: Scalars['String']['output'];
405
406
  options: Array<CustomFieldOption>;
406
407
  order: Scalars['Int']['output'];
@@ -1254,6 +1255,7 @@ export declare enum TicketAutoAssignerType {
1254
1255
  }
1255
1256
  export type TicketCustomFieldValue = {
1256
1257
  field: CustomField;
1258
+ isMissingRequired: Scalars['Boolean']['output'];
1257
1259
  value: Scalars['JSON']['output'];
1258
1260
  };
1259
1261
  export type TicketMessage = {
@@ -1859,10 +1861,10 @@ export type DeleteNoteMutationVariables = Exact<{
1859
1861
  export type DeleteNoteMutation = {
1860
1862
  deleteNote: CustomerNoteFragment;
1861
1863
  };
1862
- export type CustomFieldFragment = (Pick<CustomField, 'id' | 'name' | 'type' | 'isRequired' | 'order' | 'isActive' | 'usedInTicket' | 'createdAt' | 'updatedAt'> & {
1864
+ export type CustomFieldFragment = (Pick<CustomField, 'id' | 'name' | 'type' | 'isRequired' | 'order' | 'isActive' | 'usedInTicket' | 'maxLength' | 'createdAt' | 'updatedAt'> & {
1863
1865
  options: Array<Pick<CustomFieldOption, 'label' | 'tag'>>;
1864
1866
  });
1865
- export type TicketCustomFieldValueFragment = (Pick<TicketCustomFieldValue, 'value'> & {
1867
+ export type TicketCustomFieldValueFragment = (Pick<TicketCustomFieldValue, 'value' | 'isMissingRequired'> & {
1866
1868
  field: CustomFieldFragment;
1867
1869
  });
1868
1870
  export type TicketWithCustomFieldValuesFragment = ({
@@ -2556,8 +2558,8 @@ export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatC
2556
2558
  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 ";
2557
2559
  export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n ";
2558
2560
  export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n ";
2559
- export declare const CustomFieldFragmentDoc = "\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2560
- export declare const TicketCustomFieldValueFragmentDoc = "\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n ";
2561
+ export declare const CustomFieldFragmentDoc = "\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2562
+ export declare const TicketCustomFieldValueFragmentDoc = "\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n ";
2561
2563
  export declare const TicketWithCustomFieldValuesFragmentDoc = "\n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n ";
2562
2564
  export declare const GlobalConfigurationFragmentDoc = "\n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
2563
2565
  export declare const DrozChatAgentGroupFragmentDoc = "\n fragment drozChatAgentGroup on DrozChatAgentGroup {\n id\n name\n description\n agentIds\n drn\n createdAt\n updatedAt\n deletedAt\n}\n ";
@@ -2606,15 +2608,15 @@ export declare const ListNotesDocument = "\n query listNotes($customerId: Str
2606
2608
  export declare const CreateNoteDocument = "\n mutation createNote($input: CreateCustomerNoteInput!) {\n createNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
2607
2609
  export declare const UpdateNoteDocument = "\n mutation updateNote($input: UpdateCustomerNoteInput!) {\n updateNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
2608
2610
  export declare const DeleteNoteDocument = "\n mutation deleteNote($input: DeleteCustomerNoteInput!) {\n deleteNote(input: $input) {\n ...customerNote\n }\n}\n \n fragment customerNote on CustomerNote {\n id\n note\n createdBy {\n ...drozChatAgent\n }\n createdAt\n updatedAt\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n ";
2609
- export declare const ListCustomFieldsDocument = "\n query listCustomFields {\n listCustomFields {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2610
- export declare const CreateCustomFieldDocument = "\n mutation createCustomField($input: CreateCustomFieldInput!) {\n createCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2611
- export declare const UpdateCustomFieldDocument = "\n mutation updateCustomField($input: UpdateCustomFieldInput!) {\n updateCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2611
+ export declare const ListCustomFieldsDocument = "\n query listCustomFields {\n listCustomFields {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2612
+ export declare const CreateCustomFieldDocument = "\n mutation createCustomField($input: CreateCustomFieldInput!) {\n createCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2613
+ export declare const UpdateCustomFieldDocument = "\n mutation updateCustomField($input: UpdateCustomFieldInput!) {\n updateCustomField(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2612
2614
  export declare const DeleteCustomFieldDocument = "\n mutation deleteCustomField($id: ID!) {\n deleteCustomField(id: $id)\n}\n ";
2613
- export declare const ReorderCustomFieldsDocument = "\n mutation reorderCustomFields($input: ReorderCustomFieldsInput!) {\n reorderCustomFields(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2614
- export declare const SearchTicketsWithCustomFieldValuesDocument = "\n query searchTicketsWithCustomFieldValues($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticketWithCustomFieldValues\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\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 drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2615
- export declare const SetCustomFieldValueDocument = "\n mutation setCustomFieldValue($input: SetCustomFieldValueInput!) {\n setCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2616
- export declare const ClearCustomFieldValueDocument = "\n mutation clearCustomFieldValue($input: ClearCustomFieldValueInput!) {\n clearCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2617
- export declare const CustomFieldValuesForTicketDocument = "\n query customFieldValuesForTicket($ticketId: ID!) {\n customFieldValuesForTicket(ticketId: $ticketId) {\n ...ticketCustomFieldValue\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n createdAt\n updatedAt\n}\n ";
2615
+ export declare const ReorderCustomFieldsDocument = "\n mutation reorderCustomFields($input: ReorderCustomFieldsInput!) {\n reorderCustomFields(input: $input) {\n ...customField\n }\n}\n \n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2616
+ export declare const SearchTicketsWithCustomFieldValuesDocument = "\n query searchTicketsWithCustomFieldValues($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Number, $perPage: Number) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticketWithCustomFieldValues\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n }\n}\n \n fragment ticketWithCustomFieldValues on Ticket {\n ...ticket\n customFieldValues {\n ...ticketCustomFieldValue\n }\n}\n \n\n fragment ticket on Ticket {\n channelId\n id\n subject\n description\n state\n status\n priority\n tags\n externalProviderId\n externalId\n protocol\n assignee {\n ...drozChatAgent\n }\n modifiedBy {\n ...drozChatAgent\n }\n closedBy {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n assignedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n participants {\n email\n name\n }\n unreadMessagesCount\n}\n \n\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n alternateName\n email\n phone\n document\n externalId\n emails\n phones\n documents\n externalIds\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 drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n maxSimultaneousAttendances\n createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2617
+ export declare const SetCustomFieldValueDocument = "\n mutation setCustomFieldValue($input: SetCustomFieldValueInput!) {\n setCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2618
+ export declare const ClearCustomFieldValueDocument = "\n mutation clearCustomFieldValue($input: ClearCustomFieldValueInput!) {\n clearCustomFieldValue(input: $input) {\n id\n customFieldValues {\n ...ticketCustomFieldValue\n }\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2619
+ export declare const CustomFieldValuesForTicketDocument = "\n query customFieldValuesForTicket($ticketId: ID!) {\n customFieldValuesForTicket(ticketId: $ticketId) {\n ...ticketCustomFieldValue\n }\n}\n \n fragment ticketCustomFieldValue on TicketCustomFieldValue {\n field {\n ...customField\n }\n value\n isMissingRequired\n}\n \n\n fragment customField on CustomField {\n id\n name\n type\n options {\n label\n tag\n }\n isRequired\n order\n isActive\n usedInTicket\n maxLength\n createdAt\n updatedAt\n}\n ";
2618
2620
  export declare const GetGlobalConfigurationDocument = "\n query getGlobalConfiguration {\n getGlobalConfiguration {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
2619
2621
  export declare const SetMaxSimultaneousAttendancesDocument = "\n mutation setMaxSimultaneousAttendances($input: SetMaxSimultaneousAttendancesInput!) {\n setMaxSimultaneousAttendances(input: $input) {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
2620
2622
  export declare const ClearMaxSimultaneousAttendancesDocument = "\n mutation clearMaxSimultaneousAttendances {\n clearMaxSimultaneousAttendances {\n ...globalConfiguration\n }\n}\n \n fragment globalConfiguration on GlobalConfiguration {\n maxSimultaneousAttendances\n createdAt\n updatedAt\n}\n ";
@@ -359,6 +359,7 @@ exports.CustomFieldFragmentDoc = `
359
359
  order
360
360
  isActive
361
361
  usedInTicket
362
+ maxLength
362
363
  createdAt
363
364
  updatedAt
364
365
  }
@@ -369,6 +370,7 @@ exports.TicketCustomFieldValueFragmentDoc = `
369
370
  ...customField
370
371
  }
371
372
  value
373
+ isMissingRequired
372
374
  }
373
375
  `;
374
376
  exports.TicketWithCustomFieldValuesFragmentDoc = `