@droz-js/sdk
Advanced tools
Comparing version 0.3.15 to 0.3.16
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.3.15", | ||
"version": "0.3.16", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -51,2 +51,5 @@ export * from './sdks/drozchat'; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMessageMutation>; | ||
createTicketMessageForStorage(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").CreateTicketMessageForStorageInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMessageForStorageMutation>; | ||
assignTicket(variables: import("./sdks/drozchat").Exact<{ | ||
@@ -53,0 +56,0 @@ input: import("./sdks/drozchat").AssignTicketInput; |
@@ -53,2 +53,5 @@ export * from './sdks/drozchat'; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMessageMutation>; | ||
createTicketMessageForStorage(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").CreateTicketMessageForStorageInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateTicketMessageForStorageMutation>; | ||
assignTicket(variables: import("./sdks/drozchat").Exact<{ | ||
@@ -55,0 +58,0 @@ input: import("./sdks/drozchat").AssignTicketInput; |
@@ -112,6 +112,11 @@ export type Maybe<T> = T; | ||
}; | ||
export type CreateTicketMessageForStorageInput = { | ||
from: TicketMessageRecipient; | ||
storageId: Scalars['ID']['input']; | ||
ticketId: Scalars['ID']['input']; | ||
to: TicketMessageRecipient; | ||
}; | ||
export type CreateTicketMessageInput = { | ||
content: Scalars['String']['input']; | ||
contentType: Scalars['String']['input']; | ||
filename?: InputMaybe<Scalars['String']['input']>; | ||
from: TicketMessageRecipient; | ||
@@ -151,2 +156,3 @@ ticketId: Scalars['ID']['input']; | ||
createTicketMessage: TicketMessage; | ||
createTicketMessageForStorage: TicketMessage; | ||
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>; | ||
@@ -176,2 +182,5 @@ removeDrozChatChannel?: Maybe<DrozChatChannel>; | ||
}; | ||
export type MutationCreateTicketMessageForStorageArgs = { | ||
input: CreateTicketMessageForStorageInput; | ||
}; | ||
export type MutationMarkTicketMessagesAsReadArgs = { | ||
@@ -457,2 +466,8 @@ input: MarkTicketMessagesAsReadInput; | ||
}; | ||
export type CreateTicketMessageForStorageMutationVariables = Exact<{ | ||
input: CreateTicketMessageForStorageInput; | ||
}>; | ||
export type CreateTicketMessageForStorageMutation = { | ||
createTicketMessageForStorage: TicketMessageFragment; | ||
}; | ||
export type AssignTicketMutationVariables = Exact<{ | ||
@@ -534,2 +549,3 @@ input: AssignTicketInput; | ||
export declare const CreateTicketMessageDocument = "\n mutation createTicketMessage($input: CreateTicketMessageInput!) {\n createTicketMessage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n contentType\n content\n filename\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateTicketMessageForStorageDocument = "\n mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) {\n createTicketMessageForStorage(input: $input) {\n ...ticketMessage\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n contentType\n content\n filename\n createdAt\n updatedAt\n}\n "; | ||
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\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 createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
@@ -559,2 +575,3 @@ export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\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 createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
createTicketMessage(variables: CreateTicketMessageMutationVariables, options?: C): Promise<CreateTicketMessageMutation>; | ||
createTicketMessageForStorage(variables: CreateTicketMessageForStorageMutationVariables, options?: C): Promise<CreateTicketMessageForStorageMutation>; | ||
assignTicket(variables: AssignTicketMutationVariables, options?: C): Promise<AssignTicketMutation>; | ||
@@ -561,0 +578,0 @@ assignTicketMyself(variables: AssignTicketMyselfMutationVariables, options?: C): Promise<AssignTicketMyselfMutation>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageForStorageDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageRecipient = exports.SubscriptionAction = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -252,2 +252,9 @@ (function (AppInstanceStatus) { | ||
${exports.TicketMessageFragmentDoc}`; | ||
exports.CreateTicketMessageForStorageDocument = ` | ||
mutation createTicketMessageForStorage($input: CreateTicketMessageForStorageInput!) { | ||
createTicketMessageForStorage(input: $input) { | ||
...ticketMessage | ||
} | ||
} | ||
${exports.TicketMessageFragmentDoc}`; | ||
exports.AssignTicketDocument = ` | ||
@@ -365,2 +372,5 @@ mutation assignTicket($input: AssignTicketInput!) { | ||
}, | ||
createTicketMessageForStorage(variables, options) { | ||
return requester(exports.CreateTicketMessageForStorageDocument, variables, options); | ||
}, | ||
assignTicket(variables, options) { | ||
@@ -367,0 +377,0 @@ return requester(exports.AssignTicketDocument, variables, options); |
328290
7333