@droz-js/sdk 0.16.10 → 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 +1 -1
- package/src/email.d.ts +6 -0
- package/src/sdks/drozchat.d.ts +10 -10
- package/src/sdks/drozchat.js +1 -1
- package/src/sdks/email.d.ts +42 -9
- package/src/sdks/email.js +22 -1
package/package.json
CHANGED
package/src/email.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ declare const Email_base: new (options?: import("./client/http").HttpClientOptio
|
|
|
39
39
|
setEmailBcc(variables: import("./sdks/email").Exact<{
|
|
40
40
|
input: import("./sdks/email").SetEmailBccInput;
|
|
41
41
|
}>, options?: unknown): Promise<import("./sdks/email").SetEmailBccMutation>;
|
|
42
|
+
addEmailBlocklistEntry(variables: import("./sdks/email").Exact<{
|
|
43
|
+
input: import("./sdks/email").AddEmailBlocklistEntryInput;
|
|
44
|
+
}>, options?: unknown): Promise<import("./sdks/email").AddEmailBlocklistEntryMutation>;
|
|
45
|
+
removeEmailBlocklistEntry(variables: import("./sdks/email").Exact<{
|
|
46
|
+
input: import("./sdks/email").RemoveEmailBlocklistEntryInput;
|
|
47
|
+
}>, options?: unknown): Promise<import("./sdks/email").RemoveEmailBlocklistEntryMutation>;
|
|
42
48
|
processSendGridEventWebhook(variables: import("./sdks/email").Exact<{
|
|
43
49
|
input: import("./sdks/email").SendGridEventWebhookInput;
|
|
44
50
|
}>, options?: unknown): Promise<import("./sdks/email").ProcessSendGridEventWebhookMutation>;
|
package/src/sdks/drozchat.d.ts
CHANGED
|
@@ -1141,7 +1141,7 @@ export type Trigger = {
|
|
|
1141
1141
|
updatedAt: Scalars['DateTime']['output'];
|
|
1142
1142
|
};
|
|
1143
1143
|
export type TriggerAction = {
|
|
1144
|
-
parameters
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 ";
|
package/src/sdks/drozchat.js
CHANGED
package/src/sdks/email.d.ts
CHANGED
|
@@ -122,6 +122,10 @@ export type Scalars = {
|
|
|
122
122
|
output: void;
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
|
+
export type AddEmailBlocklistEntryInput = {
|
|
126
|
+
entries: Array<Scalars['String']['input']>;
|
|
127
|
+
id: Scalars['ID']['input'];
|
|
128
|
+
};
|
|
125
129
|
export type AgentInfo = {
|
|
126
130
|
id: Scalars['ID']['output'];
|
|
127
131
|
name: Scalars['String']['output'];
|
|
@@ -172,6 +176,7 @@ export type EmailDnsRecord = {
|
|
|
172
176
|
type?: Maybe<Scalars['String']['output']>;
|
|
173
177
|
};
|
|
174
178
|
export type EmailInstance = {
|
|
179
|
+
blocklist: Array<Scalars['String']['output']>;
|
|
175
180
|
createdAt: Scalars['DateTime']['output'];
|
|
176
181
|
credentialId: Scalars['ID']['output'];
|
|
177
182
|
dns: EmailDns;
|
|
@@ -248,9 +253,11 @@ export type I18nTextInput = {
|
|
|
248
253
|
value: Scalars['String']['input'];
|
|
249
254
|
};
|
|
250
255
|
export type Mutation = {
|
|
256
|
+
addEmailBlocklistEntry: EmailInstance;
|
|
251
257
|
createEmailInstance: EmailInstance;
|
|
252
258
|
enableEmailInstanceSignature: EmailInstance;
|
|
253
259
|
processSendGridEventWebhook?: Maybe<Scalars['Void']['output']>;
|
|
260
|
+
removeEmailBlocklistEntry: EmailInstance;
|
|
254
261
|
removeEmailInstance?: Maybe<Scalars['Void']['output']>;
|
|
255
262
|
removeEmailInstanceSignature: EmailInstance;
|
|
256
263
|
setEmailBcc?: Maybe<Scalars['Void']['output']>;
|
|
@@ -260,6 +267,9 @@ export type Mutation = {
|
|
|
260
267
|
validateInstanceDomain: Scalars['Boolean']['output'];
|
|
261
268
|
version?: Maybe<Scalars['String']['output']>;
|
|
262
269
|
};
|
|
270
|
+
export type MutationAddEmailBlocklistEntryArgs = {
|
|
271
|
+
input: AddEmailBlocklistEntryInput;
|
|
272
|
+
};
|
|
263
273
|
export type MutationCreateEmailInstanceArgs = {
|
|
264
274
|
input: CreateEmailInstanceInput;
|
|
265
275
|
};
|
|
@@ -269,6 +279,9 @@ export type MutationEnableEmailInstanceSignatureArgs = {
|
|
|
269
279
|
export type MutationProcessSendGridEventWebhookArgs = {
|
|
270
280
|
input: SendGridEventWebhookInput;
|
|
271
281
|
};
|
|
282
|
+
export type MutationRemoveEmailBlocklistEntryArgs = {
|
|
283
|
+
input: RemoveEmailBlocklistEntryInput;
|
|
284
|
+
};
|
|
272
285
|
export type MutationRemoveEmailInstanceArgs = {
|
|
273
286
|
input: RemoveEmailInstanceInput;
|
|
274
287
|
};
|
|
@@ -327,6 +340,10 @@ export type QueryGetEmailInstanceArgs = {
|
|
|
327
340
|
export type QueryListThreadingBySessionIdArgs = {
|
|
328
341
|
sessionId: Scalars['ID']['input'];
|
|
329
342
|
};
|
|
343
|
+
export type RemoveEmailBlocklistEntryInput = {
|
|
344
|
+
entries: Array<Scalars['String']['input']>;
|
|
345
|
+
id: Scalars['ID']['input'];
|
|
346
|
+
};
|
|
330
347
|
export type RemoveEmailInstanceInput = {
|
|
331
348
|
id: Scalars['ID']['input'];
|
|
332
349
|
};
|
|
@@ -426,7 +443,7 @@ export type UpdateEmailInstanceInput = {
|
|
|
426
443
|
export type ValidateInstanceDomainInput = {
|
|
427
444
|
id: Scalars['ID']['input'];
|
|
428
445
|
};
|
|
429
|
-
export type EmailInstanceFieldsFragment = (Pick<EmailInstance, 'id' | 'name' | 'drn' | 'credentialId' | 'senderEmail' | 'senderName' | 'domain' | 'subdomain' | 'status' | 'failingReason' | 'createdAt' | 'updatedAt'> & {
|
|
446
|
+
export type EmailInstanceFieldsFragment = (Pick<EmailInstance, 'id' | 'name' | 'drn' | 'credentialId' | 'senderEmail' | 'senderName' | 'domain' | 'subdomain' | 'blocklist' | 'status' | 'failingReason' | 'createdAt' | 'updatedAt'> & {
|
|
430
447
|
signature?: Maybe<Pick<EmailSignature, 'content' | 'contentType' | 'imageUrl' | 'enabled'>>;
|
|
431
448
|
dns: {
|
|
432
449
|
mailCname?: Maybe<Pick<EmailDnsRecord, 'type' | 'host' | 'data'>>;
|
|
@@ -499,6 +516,18 @@ export type SetEmailBccMutationVariables = Exact<{
|
|
|
499
516
|
input: SetEmailBccInput;
|
|
500
517
|
}>;
|
|
501
518
|
export type SetEmailBccMutation = Pick<Mutation, 'setEmailBcc'>;
|
|
519
|
+
export type AddEmailBlocklistEntryMutationVariables = Exact<{
|
|
520
|
+
input: AddEmailBlocklistEntryInput;
|
|
521
|
+
}>;
|
|
522
|
+
export type AddEmailBlocklistEntryMutation = {
|
|
523
|
+
addEmailBlocklistEntry: EmailInstanceFieldsFragment;
|
|
524
|
+
};
|
|
525
|
+
export type RemoveEmailBlocklistEntryMutationVariables = Exact<{
|
|
526
|
+
input: RemoveEmailBlocklistEntryInput;
|
|
527
|
+
}>;
|
|
528
|
+
export type RemoveEmailBlocklistEntryMutation = {
|
|
529
|
+
removeEmailBlocklistEntry: EmailInstanceFieldsFragment;
|
|
530
|
+
};
|
|
502
531
|
export type ProcessSendGridEventWebhookMutationVariables = Exact<{
|
|
503
532
|
input: SendGridEventWebhookInput;
|
|
504
533
|
}>;
|
|
@@ -512,21 +541,23 @@ export type ListThreadingBySessionIdQuery = {
|
|
|
512
541
|
replies: Array<EmailThreadReplyFieldsFragment>;
|
|
513
542
|
}>;
|
|
514
543
|
};
|
|
515
|
-
export declare const EmailInstanceFieldsFragmentDoc = "\n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
544
|
+
export declare const EmailInstanceFieldsFragmentDoc = "\n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
516
545
|
export declare const EmailAttachmentMetadataFieldsFragmentDoc = "\n fragment emailAttachmentMetadataFields on EmailAttachmentMetadata {\n sourceId\n filename\n mime\n size\n checksum\n url\n origin\n}\n ";
|
|
517
546
|
export declare const EmailThreadRootFieldsFragmentDoc = "\n fragment emailThreadRootFields on EmailThreadRoot {\n messageId\n sessionId\n instanceId\n direction\n status\n subject\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n ";
|
|
518
547
|
export declare const EmailThreadReplyFieldsFragmentDoc = "\n fragment emailThreadReplyFields on EmailThreadReply {\n id\n replyId\n messageId\n direction\n status\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n ";
|
|
519
|
-
export declare const GetEmailInstanceDocument = "\n query getEmailInstance($id: ID!) {\n getEmailInstance(id: $id) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
520
|
-
export declare const ListEmailInstancesDocument = "\n query listEmailInstances {\n listEmailInstances {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
521
|
-
export declare const CreateEmailInstanceDocument = "\n mutation createEmailInstance($input: CreateEmailInstanceInput!) {\n createEmailInstance(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
522
|
-
export declare const UpdateEmailInstanceDocument = "\n mutation updateEmailInstance($input: UpdateEmailInstanceInput!) {\n updateEmailInstance(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
523
|
-
export declare const SetEmailInstanceSignatureDocument = "\n mutation setEmailInstanceSignature($input: SetEmailInstanceSignatureInput!) {\n setEmailInstanceSignature(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
524
|
-
export declare const RemoveEmailInstanceSignatureDocument = "\n mutation removeEmailInstanceSignature($input: RemoveEmailInstanceSignatureInput!) {\n removeEmailInstanceSignature(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
525
|
-
export declare const EnableEmailInstanceSignatureDocument = "\n mutation enableEmailInstanceSignature($input: EnableEmailInstanceSignatureInput!) {\n enableEmailInstanceSignature(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
548
|
+
export declare const GetEmailInstanceDocument = "\n query getEmailInstance($id: ID!) {\n getEmailInstance(id: $id) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
549
|
+
export declare const ListEmailInstancesDocument = "\n query listEmailInstances {\n listEmailInstances {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
550
|
+
export declare const CreateEmailInstanceDocument = "\n mutation createEmailInstance($input: CreateEmailInstanceInput!) {\n createEmailInstance(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
551
|
+
export declare const UpdateEmailInstanceDocument = "\n mutation updateEmailInstance($input: UpdateEmailInstanceInput!) {\n updateEmailInstance(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
552
|
+
export declare const SetEmailInstanceSignatureDocument = "\n mutation setEmailInstanceSignature($input: SetEmailInstanceSignatureInput!) {\n setEmailInstanceSignature(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
553
|
+
export declare const RemoveEmailInstanceSignatureDocument = "\n mutation removeEmailInstanceSignature($input: RemoveEmailInstanceSignatureInput!) {\n removeEmailInstanceSignature(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
554
|
+
export declare const EnableEmailInstanceSignatureDocument = "\n mutation enableEmailInstanceSignature($input: EnableEmailInstanceSignatureInput!) {\n enableEmailInstanceSignature(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
526
555
|
export declare const RemoveEmailInstanceDocument = "\n mutation removeEmailInstance($input: RemoveEmailInstanceInput!) {\n removeEmailInstance(input: $input)\n}\n ";
|
|
527
556
|
export declare const ValidateInstanceDomainDocument = "\n mutation validateInstanceDomain($input: ValidateInstanceDomainInput!) {\n validateInstanceDomain(input: $input)\n}\n ";
|
|
528
557
|
export declare const SetEmailCcDocument = "\n mutation setEmailCc($input: SetEmailCcInput!) {\n setEmailCc(input: $input)\n}\n ";
|
|
529
558
|
export declare const SetEmailBccDocument = "\n mutation setEmailBcc($input: SetEmailBccInput!) {\n setEmailBcc(input: $input)\n}\n ";
|
|
559
|
+
export declare const AddEmailBlocklistEntryDocument = "\n mutation addEmailBlocklistEntry($input: AddEmailBlocklistEntryInput!) {\n addEmailBlocklistEntry(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
560
|
+
export declare const RemoveEmailBlocklistEntryDocument = "\n mutation removeEmailBlocklistEntry($input: RemoveEmailBlocklistEntryInput!) {\n removeEmailBlocklistEntry(input: $input) {\n ...emailInstanceFields\n }\n}\n \n fragment emailInstanceFields on EmailInstance {\n id\n name\n drn\n credentialId\n senderEmail\n senderName\n domain\n subdomain\n signature {\n content\n contentType\n imageUrl\n enabled\n }\n dns {\n mailCname {\n type\n host\n data\n }\n dkim1 {\n type\n host\n data\n }\n dkim2 {\n type\n host\n data\n }\n }\n blocklist\n status\n failingReason\n createdAt\n updatedAt\n}\n ";
|
|
530
561
|
export declare const ProcessSendGridEventWebhookDocument = "\n mutation processSendGridEventWebhook($input: SendGridEventWebhookInput!) {\n processSendGridEventWebhook(input: $input)\n}\n ";
|
|
531
562
|
export declare const ListThreadingBySessionIdDocument = "\n query listThreadingBySessionId($sessionId: ID!) {\n listThreadingBySessionId(sessionId: $sessionId) {\n root {\n ...emailThreadRootFields\n }\n replies {\n ...emailThreadReplyFields\n }\n }\n}\n \n fragment emailThreadRootFields on EmailThreadRoot {\n messageId\n sessionId\n instanceId\n direction\n status\n subject\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n \n\n fragment emailAttachmentMetadataFields on EmailAttachmentMetadata {\n sourceId\n filename\n mime\n size\n checksum\n url\n origin\n}\n \n\n fragment emailThreadReplyFields on EmailThreadReply {\n id\n replyId\n messageId\n direction\n status\n attachments {\n ...emailAttachmentMetadataFields\n }\n createdAt\n updatedAt\n}\n ";
|
|
532
563
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
@@ -542,6 +573,8 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
542
573
|
validateInstanceDomain(variables: ValidateInstanceDomainMutationVariables, options?: C): Promise<ValidateInstanceDomainMutation>;
|
|
543
574
|
setEmailCc(variables: SetEmailCcMutationVariables, options?: C): Promise<SetEmailCcMutation>;
|
|
544
575
|
setEmailBcc(variables: SetEmailBccMutationVariables, options?: C): Promise<SetEmailBccMutation>;
|
|
576
|
+
addEmailBlocklistEntry(variables: AddEmailBlocklistEntryMutationVariables, options?: C): Promise<AddEmailBlocklistEntryMutation>;
|
|
577
|
+
removeEmailBlocklistEntry(variables: RemoveEmailBlocklistEntryMutationVariables, options?: C): Promise<RemoveEmailBlocklistEntryMutation>;
|
|
545
578
|
processSendGridEventWebhook(variables: ProcessSendGridEventWebhookMutationVariables, options?: C): Promise<ProcessSendGridEventWebhookMutation>;
|
|
546
579
|
listThreadingBySessionId(variables: ListThreadingBySessionIdQueryVariables, options?: C): Promise<ListThreadingBySessionIdQuery>;
|
|
547
580
|
};
|
package/src/sdks/email.js
CHANGED
|
@@ -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.ListThreadingBySessionIdDocument = exports.ProcessSendGridEventWebhookDocument = exports.SetEmailBccDocument = exports.SetEmailCcDocument = exports.ValidateInstanceDomainDocument = exports.RemoveEmailInstanceDocument = exports.EnableEmailInstanceSignatureDocument = exports.RemoveEmailInstanceSignatureDocument = exports.SetEmailInstanceSignatureDocument = exports.UpdateEmailInstanceDocument = exports.CreateEmailInstanceDocument = exports.ListEmailInstancesDocument = exports.GetEmailInstanceDocument = exports.EmailThreadReplyFieldsFragmentDoc = exports.EmailThreadRootFieldsFragmentDoc = exports.EmailAttachmentMetadataFieldsFragmentDoc = exports.EmailInstanceFieldsFragmentDoc = exports.Typenames = exports.EmailStatus = exports.EmailSignatureContentType = exports.EmailDirection = exports.Can = exports.AppInstanceStatus = void 0;
|
|
4
|
+
exports.serviceName = exports.ListThreadingBySessionIdDocument = exports.ProcessSendGridEventWebhookDocument = exports.RemoveEmailBlocklistEntryDocument = exports.AddEmailBlocklistEntryDocument = exports.SetEmailBccDocument = exports.SetEmailCcDocument = exports.ValidateInstanceDomainDocument = exports.RemoveEmailInstanceDocument = exports.EnableEmailInstanceSignatureDocument = exports.RemoveEmailInstanceSignatureDocument = exports.SetEmailInstanceSignatureDocument = exports.UpdateEmailInstanceDocument = exports.CreateEmailInstanceDocument = exports.ListEmailInstancesDocument = exports.GetEmailInstanceDocument = exports.EmailThreadReplyFieldsFragmentDoc = exports.EmailThreadRootFieldsFragmentDoc = exports.EmailAttachmentMetadataFieldsFragmentDoc = exports.EmailInstanceFieldsFragmentDoc = exports.Typenames = exports.EmailStatus = exports.EmailSignatureContentType = exports.EmailDirection = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
exports.getSdk = getSdk;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
@@ -78,6 +78,7 @@ exports.EmailInstanceFieldsFragmentDoc = `
|
|
|
78
78
|
data
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
|
+
blocklist
|
|
81
82
|
status
|
|
82
83
|
failingReason
|
|
83
84
|
createdAt
|
|
@@ -193,6 +194,20 @@ exports.SetEmailBccDocument = `
|
|
|
193
194
|
setEmailBcc(input: $input)
|
|
194
195
|
}
|
|
195
196
|
`;
|
|
197
|
+
exports.AddEmailBlocklistEntryDocument = `
|
|
198
|
+
mutation addEmailBlocklistEntry($input: AddEmailBlocklistEntryInput!) {
|
|
199
|
+
addEmailBlocklistEntry(input: $input) {
|
|
200
|
+
...emailInstanceFields
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
${exports.EmailInstanceFieldsFragmentDoc}`;
|
|
204
|
+
exports.RemoveEmailBlocklistEntryDocument = `
|
|
205
|
+
mutation removeEmailBlocklistEntry($input: RemoveEmailBlocklistEntryInput!) {
|
|
206
|
+
removeEmailBlocklistEntry(input: $input) {
|
|
207
|
+
...emailInstanceFields
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
${exports.EmailInstanceFieldsFragmentDoc}`;
|
|
196
211
|
exports.ProcessSendGridEventWebhookDocument = `
|
|
197
212
|
mutation processSendGridEventWebhook($input: SendGridEventWebhookInput!) {
|
|
198
213
|
processSendGridEventWebhook(input: $input)
|
|
@@ -247,6 +262,12 @@ function getSdk(requester) {
|
|
|
247
262
|
setEmailBcc(variables, options) {
|
|
248
263
|
return requester(exports.SetEmailBccDocument, variables, options);
|
|
249
264
|
},
|
|
265
|
+
addEmailBlocklistEntry(variables, options) {
|
|
266
|
+
return requester(exports.AddEmailBlocklistEntryDocument, variables, options);
|
|
267
|
+
},
|
|
268
|
+
removeEmailBlocklistEntry(variables, options) {
|
|
269
|
+
return requester(exports.RemoveEmailBlocklistEntryDocument, variables, options);
|
|
270
|
+
},
|
|
250
271
|
processSendGridEventWebhook(variables, options) {
|
|
251
272
|
return requester(exports.ProcessSendGridEventWebhookDocument, variables, options);
|
|
252
273
|
},
|