@droz-js/sdk 0.16.11 → 0.16.12

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.16.11",
4
+ "version": "0.16.12",
5
5
  "private": false,
6
6
  "repository": {
7
7
  "type": "git",
@@ -1141,7 +1141,7 @@ export type Trigger = {
1141
1141
  updatedAt: Scalars['DateTime']['output'];
1142
1142
  };
1143
1143
  export type TriggerAction = {
1144
- parameters: TriggerActionParametersOutput;
1144
+ parameters?: Maybe<TriggerActionParametersOutput>;
1145
1145
  type: TriggerActionType;
1146
1146
  };
1147
1147
  export type TriggerActionInput = {
@@ -1159,7 +1159,7 @@ export type TriggerActionParameters = {
1159
1159
  priority?: InputMaybe<TicketPriority>;
1160
1160
  sentBy?: InputMaybe<Scalars['String']['input']>;
1161
1161
  status?: InputMaybe<TicketStatus>;
1162
- tag?: InputMaybe<Scalars['String']['input']>;
1162
+ tags?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
1163
1163
  type?: InputMaybe<TicketMessageType>;
1164
1164
  };
1165
1165
  export type TriggerActionParametersOutput = {
@@ -1173,7 +1173,7 @@ export type TriggerActionParametersOutput = {
1173
1173
  priority?: Maybe<TicketPriority>;
1174
1174
  sentBy?: Maybe<Scalars['String']['output']>;
1175
1175
  status?: Maybe<TicketStatus>;
1176
- tag?: Maybe<Scalars['String']['output']>;
1176
+ tags?: Maybe<Array<Maybe<Scalars['String']['output']>>>;
1177
1177
  type?: Maybe<TicketMessageType>;
1178
1178
  };
1179
1179
  export declare enum TriggerActionType {
@@ -1877,7 +1877,7 @@ export type TriggerConditionFieldsFragment = {
1877
1877
  };
1878
1878
  export type TriggerFragment = (Pick<Trigger, 'id' | 'name' | 'description' | 'eventType' | 'priority' | 'isActive' | 'scope' | 'createdBy' | 'createdAt' | 'updatedAt'> & {
1879
1879
  actions: Array<(Pick<TriggerAction, 'type'> & {
1880
- parameters: Pick<TriggerActionParametersOutput, 'channelId' | 'channelName' | 'agentId' | 'agentName' | 'priority' | 'tag' | 'status' | 'message' | 'content' | 'contentType' | 'type' | 'sentBy'>;
1880
+ parameters?: Maybe<Pick<TriggerActionParametersOutput, 'channelId' | 'channelName' | 'agentId' | 'agentName' | 'priority' | 'tags' | 'status' | 'message' | 'content' | 'contentType' | 'type' | 'sentBy'>>;
1881
1881
  })>;
1882
1882
  conditions: Array<({
1883
1883
  AND?: Maybe<Array<({
@@ -1987,7 +1987,7 @@ export declare const DrozChatUserFragmentDoc = "\n fragment drozChatUser on D
1987
1987
  export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n recipients {\n to {\n email\n name\n }\n cc {\n email\n name\n }\n bcc {\n email\n name\n }\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n ";
1988
1988
  export declare const FacetsFragmentDoc = "\n fragment facets on TicketsSearchResultsFacet {\n ... on SearchResultsFacet {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n ... on AgentSearchResultsFacet {\n name\n values {\n value\n agent {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on CustomerSearchResultsFacet {\n name\n values {\n value\n customer {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n ... on ChannelSearchResultsFacet {\n name\n values {\n value\n channel {\n id\n name\n }\n count\n }\n stats {\n min\n max\n }\n }\n}\n ";
1989
1989
  export declare const TriggerConditionFieldsFragmentDoc = "\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
1990
- export declare const TriggerFragmentDoc = "\n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tag\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n ";
1990
+ export declare const TriggerFragmentDoc = "\n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tags\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n ";
1991
1991
  export declare const ViewFragmentDoc = "\n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
1992
1992
  export declare const GenerateAnalyticsTokenDocument = "\n mutation generateAnalyticsToken {\n generateAnalyticsToken {\n token\n }\n}\n ";
1993
1993
  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 drn\n agentIds\n groupIds\n ticketAutoAssigner\n ticketAutoAssignerType\n createdAt\n updatedAt\n deletedAt\n}\n ";
@@ -2058,12 +2058,12 @@ export declare const OnTicketInProgressMineDocument = "\n subscription onTick
2058
2058
  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\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 createdAt\n updatedAt\n deletedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n reviewRequest\n review\n tags\n}\n ";
2059
2059
  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 sender {\n ...drozChatUser\n }\n recipients {\n to {\n email\n name\n }\n cc {\n email\n name\n }\n bcc {\n email\n name\n }\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n ... on DrozChatExternalParticipant {\n email\n externalName: name\n }\n}\n ";
2060
2060
  export declare const OnMessageByStateMineDocument = "\n subscription onMessageByStateMine($state: OpenTicketState!) {\n onMessageByStateMine(state: $state) {\n message {\n ...ticketMessage\n }\n action\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n sender {\n ...drozChatUser\n }\n recipients {\n to {\n email\n name\n }\n cc {\n email\n name\n }\n bcc {\n email\n name\n }\n }\n channelId\n contentType\n content\n fragments {\n body\n quote\n signature\n }\n filename\n size\n type\n createdAt\n updatedAt\n}\n \n\n fragment drozChatUser on DrozChatUser {\n ... on DrozChatAgent {\n id\n name\n }\n ... on DrozChatCustomer {\n id\n name\n }\n ... on DrozChatExternalParticipant {\n email\n externalName: name\n }\n}\n ";
2061
- export declare const ListTriggersDocument = "\n query listTriggers {\n listTriggers {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tag\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2062
- export declare const GetTriggerDocument = "\n query getTrigger($id: ID!) {\n getTrigger(id: $id) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tag\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2063
- export declare const CreateTriggerDocument = "\n mutation createTrigger($input: CreateTriggerInput!) {\n createTrigger(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tag\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2064
- export declare const UpdateTriggerDocument = "\n mutation updateTrigger($input: UpdateTriggerInput!) {\n updateTrigger(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tag\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2061
+ export declare const ListTriggersDocument = "\n query listTriggers {\n listTriggers {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tags\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2062
+ export declare const GetTriggerDocument = "\n query getTrigger($id: ID!) {\n getTrigger(id: $id) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tags\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2063
+ export declare const CreateTriggerDocument = "\n mutation createTrigger($input: CreateTriggerInput!) {\n createTrigger(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tags\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2064
+ export declare const UpdateTriggerDocument = "\n mutation updateTrigger($input: UpdateTriggerInput!) {\n updateTrigger(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tags\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2065
2065
  export declare const DeleteTriggerDocument = "\n mutation deleteTrigger($id: ID!) {\n deleteTrigger(id: $id)\n}\n ";
2066
- export declare const ReorderTriggersByEventTypeDocument = "\n mutation reorderTriggersByEventType($input: ReorderTriggersByEventTypeInput!) {\n reorderTriggersByEventType(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tag\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2066
+ export declare const ReorderTriggersByEventTypeDocument = "\n mutation reorderTriggersByEventType($input: ReorderTriggersByEventTypeInput!) {\n reorderTriggersByEventType(input: $input) {\n ...trigger\n }\n}\n \n fragment trigger on Trigger {\n id\n name\n description\n eventType\n priority\n isActive\n scope\n createdBy\n createdAt\n updatedAt\n actions {\n type\n parameters {\n channelId\n channelName\n agentId\n agentName\n priority\n tags\n status\n message\n content\n contentType\n type\n sentBy\n }\n }\n conditions {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n OR {\n ...triggerConditionFields\n AND {\n ...triggerConditionFields\n }\n OR {\n ...triggerConditionFields\n }\n }\n }\n}\n \n\n fragment triggerConditionFields on TicketTriggerFilter {\n channelId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n assigneeId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n status {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n priority {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n tags {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n triggerApp {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n origin {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerId {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n protocol {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n state {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingType {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n ratingValue {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n subject {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n customerEmailDomain {\n eq\n ne\n ct\n cti\n eqi\n in\n }\n createdAt {\n eq\n ne\n gt\n gte\n lt\n lte\n }\n}\n ";
2067
2067
  export declare const GetViewDocument = "\n query getView($id: ID!) {\n getView(id: $id) {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
2068
2068
  export declare const ListViewsDocument = "\n query listViews {\n listViews {\n ...view\n }\n}\n \n fragment view on View {\n id\n name\n filters\n createdAt\n updatedAt\n}\n ";
2069
2069
  export declare const ListTicketsByViewDocument = "\n query listTicketsByView($id: ID!) {\n listTicketsByView(id: $id) {\n ...ticket\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 createdAt\n updatedAt\n deletedAt\n}\n ";
@@ -667,7 +667,7 @@ exports.TriggerFragmentDoc = `
667
667
  agentId
668
668
  agentName
669
669
  priority
670
- tag
670
+ tags
671
671
  status
672
672
  message
673
673
  content