@droz-js/sdk
Advanced tools
Comparing version 0.5.24 to 0.5.25
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.5.24", | ||
"version": "0.5.25", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -64,2 +64,3 @@ export * from './sdks/drozchat'; | ||
page?: number; | ||
perPage?: number; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").SearchTicketsQuery>; | ||
@@ -66,0 +67,0 @@ createTicket(variables: import("./sdks/drozchat").Exact<{ |
@@ -67,2 +67,3 @@ export * from './sdks/drozchat'; | ||
page?: number; | ||
perPage?: number; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").SearchTicketsQuery>; | ||
@@ -69,0 +70,0 @@ createTicket(variables: import("./sdks/drozchat").Exact<{ |
@@ -151,2 +151,5 @@ import { CreatePresignedUploadUrlInput } from './sdks/nucleus'; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").AddTagsToSessionAttributesMutation>; | ||
removeTagsFromSessionAttributes(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").RemoveTagsFromSessionAttributesInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveTagsFromSessionAttributesMutation>; | ||
getStateMachine(variables: import("./sdks/nucleus").Exact<{ | ||
@@ -153,0 +156,0 @@ id: string; |
@@ -237,3 +237,3 @@ export type Maybe<T> = T; | ||
export type ChatWidgetFragment = Pick<ChatWidget, 'id' | 'name' | 'createdAt' | 'updatedAt'>; | ||
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id'> & { | ||
export type ChatWidgetMessageFragment = (Pick<ChatWidgetMessage, 'id' | 'sessionClosed'> & { | ||
payload: Array<Pick<ChatWidgetMessagePayload, 'contentType' | 'content' | 'filename'>>; | ||
@@ -288,3 +288,3 @@ }); | ||
export declare const ChatWidgetFragmentDoc = "\n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n}\n "; | ||
export declare const ChatWidgetMessageFragmentDoc = "\n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n sessionClosed\n}\n "; | ||
export declare const GetChatWidgetDocument = "\n query getChatWidget($id: ID!) {\n getChatWidget(id: $id) {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
@@ -297,3 +297,3 @@ export declare const ListChatWidgetsDocument = "\n query listChatWidgets {\n listChatWidgets {\n ...chatWidget\n }\n}\n \n fragment chatWidget on ChatWidget {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const SendMessageToChatWidgetDocument = "\n mutation sendMessageToChatWidget($input: SendMessageToChatWidgetInput!) {\n sendMessageToChatWidget(input: $input)\n}\n "; | ||
export declare const OnChatWidgetMessageDocument = "\n subscription onChatWidgetMessage($sessionId: ID!) {\n onChatWidgetMessage(sessionId: $sessionId) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n}\n "; | ||
export declare const OnChatWidgetMessageDocument = "\n subscription onChatWidgetMessage($sessionId: ID!) {\n onChatWidgetMessage(sessionId: $sessionId) {\n ...chatWidgetMessage\n }\n}\n \n fragment chatWidgetMessage on ChatWidgetMessage {\n id\n payload {\n contentType\n content\n filename\n }\n sessionClosed\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -300,0 +300,0 @@ export declare function getSdk<C>(requester: Requester<C>): { |
@@ -41,2 +41,3 @@ "use strict"; | ||
} | ||
sessionClosed | ||
} | ||
@@ -43,0 +44,0 @@ `; |
@@ -321,2 +321,3 @@ export type Maybe<T> = T; | ||
page?: InputMaybe<Scalars['Int']['input']>; | ||
perPage?: InputMaybe<Scalars['Int']['input']>; | ||
q?: InputMaybe<Scalars['String']['input']>; | ||
@@ -688,2 +689,3 @@ sortBy?: InputMaybe<Array<TicketSearchSortBy>>; | ||
page?: InputMaybe<Scalars['Int']['input']>; | ||
perPage?: InputMaybe<Scalars['Int']['input']>; | ||
}>; | ||
@@ -819,3 +821,3 @@ export type SearchTicketsQuery = { | ||
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $channelId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, channelId: $channelId, next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...ticketMessage\n }\n }\n}\n \n fragment ticketMessage on TicketMessage {\n id\n ticketId\n from\n to\n channelId\n contentType\n content\n filename\n size\n createdAt\n updatedAt\n}\n "; | ||
export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Int) {\n searchTickets(q: $q, filters: $filters, sortBy: $sortBy, page: $page) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n "; | ||
export declare const SearchTicketsDocument = "\n query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Int, $perPage: Int) {\n searchTickets(\n q: $q\n filters: $filters\n sortBy: $sortBy\n page: $page\n perPage: $perPage\n ) {\n nodes {\n ...ticket\n }\n stats {\n found\n outOf\n page\n totalPages\n perPage\n searchTime\n }\n facets {\n name\n values {\n value\n count\n }\n stats {\n min\n max\n }\n }\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n "; | ||
@@ -822,0 +824,0 @@ export declare const UpdateTicketDocument = "\n mutation updateTicket($input: UpdateTicketInput!) {\n updateTicket(input: $input) {\n ...ticketWithSession\n }\n}\n \n fragment ticketWithSession on Ticket {\n ...ticket\n sessionAttributes {\n ...sessionAttributes\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n subject\n state\n status\n priority\n tags\n externalProviderId\n externalId\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n channel {\n ...drozChatChannel\n }\n createdAt\n updatedAt\n closedAt\n lastMessageAt\n firstAgentResponseAt\n timeToFirstAgentResponseInMs\n timeToCloseInMs\n messagesCount\n lastMessage\n unreadMessagesCount\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n document\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n appColor\n channels {\n id\n main\n readonly\n hidden\n sources\n unreadMessagesCount\n }\n}\n \n\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n agentIds\n createdAt\n updatedAt\n}\n \n\n fragment sessionAttributes on TicketSessionAttributes {\n organization\n source\n order\n products\n review\n tags\n}\n "; |
@@ -337,4 +337,10 @@ "use strict"; | ||
exports.SearchTicketsDocument = ` | ||
query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Int) { | ||
searchTickets(q: $q, filters: $filters, sortBy: $sortBy, page: $page) { | ||
query searchTickets($q: String, $filters: [TicketSearchFilterInput!], $sortBy: [TicketSearchSortBy!], $page: Int, $perPage: Int) { | ||
searchTickets( | ||
q: $q | ||
filters: $filters | ||
sortBy: $sortBy | ||
page: $page | ||
perPage: $perPage | ||
) { | ||
nodes { | ||
@@ -341,0 +347,0 @@ ...ticket |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = void 0; | ||
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = void 0; | ||
var AppInstanceStatus; | ||
@@ -625,2 +625,7 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.RemoveTagsFromSessionAttributesDocument = ` | ||
mutation removeTagsFromSessionAttributes($input: RemoveTagsFromSessionAttributesInput!) { | ||
removeTagsFromSessionAttributes(input: $input) | ||
} | ||
`; | ||
exports.GetStateMachineDocument = ` | ||
@@ -876,2 +881,5 @@ query getStateMachine($id: ID!, $versionId: ID!) { | ||
}, | ||
removeTagsFromSessionAttributes(variables, options) { | ||
return requester(exports.RemoveTagsFromSessionAttributesDocument, variables, options); | ||
}, | ||
getStateMachine(variables, options) { | ||
@@ -878,0 +886,0 @@ return requester(exports.GetStateMachineDocument, variables, options); |
@@ -98,2 +98,15 @@ export type Maybe<T> = T; | ||
} | ||
export type ChoicesInstance = { | ||
createdAt: Scalars['DateTime']['output']; | ||
errorMessages: Array<I18nText>; | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
options: Array<Option>; | ||
updatedAt: Scalars['DateTime']['output']; | ||
}; | ||
export type CreateChoicesAppInput = { | ||
errorMessages: Array<I18nTextInput>; | ||
name: Scalars['String']['input']; | ||
options: Array<OptionInput>; | ||
}; | ||
export type CreateEchoAppInput = { | ||
@@ -146,6 +159,9 @@ messages: Array<I18nTextInput>; | ||
export type Mutation = { | ||
createChoicesInstance?: Maybe<ChoicesInstance>; | ||
createEchoInstance?: Maybe<EchoInstance>; | ||
createHttpInstance?: Maybe<HttpInstance>; | ||
removeChoicesInstance?: Maybe<ChoicesInstance>; | ||
removeEchoInstance?: Maybe<EchoInstance>; | ||
removeHttpInstance?: Maybe<HttpInstance>; | ||
updateChoicesInstance?: Maybe<ChoicesInstance>; | ||
updateEchoInstance?: Maybe<EchoInstance>; | ||
@@ -155,2 +171,5 @@ updateHttpInstance?: Maybe<HttpInstance>; | ||
}; | ||
export type MutationCreateChoicesInstanceArgs = { | ||
input: CreateChoicesAppInput; | ||
}; | ||
export type MutationCreateEchoInstanceArgs = { | ||
@@ -162,2 +181,5 @@ input: CreateEchoAppInput; | ||
}; | ||
export type MutationRemoveChoicesInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type MutationRemoveEchoInstanceArgs = { | ||
@@ -169,2 +191,5 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type MutationUpdateChoicesInstanceArgs = { | ||
input: UpdateChoicesAppInput; | ||
}; | ||
export type MutationUpdateEchoInstanceArgs = { | ||
@@ -185,2 +210,10 @@ input: UpdateEchoAppInput; | ||
}; | ||
export type Option = { | ||
messages: Array<I18nText>; | ||
transition: Scalars['String']['output']; | ||
}; | ||
export type OptionInput = { | ||
messages: Array<I18nTextInput>; | ||
transition?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type PageInfo = { | ||
@@ -192,5 +225,7 @@ hasNext: Scalars['Boolean']['output']; | ||
app?: Maybe<Scalars['DRN']['output']>; | ||
getChoicesInstance?: Maybe<ChoicesInstance>; | ||
getEchoInstance?: Maybe<EchoInstance>; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
getHttpInstance?: Maybe<HttpInstance>; | ||
listChoicesInstances: Array<ChoicesInstance>; | ||
listEchoInstances?: Maybe<Array<Maybe<EchoInstance>>>; | ||
@@ -200,2 +235,5 @@ listHttpInstances?: Maybe<Array<Maybe<HttpInstance>>>; | ||
}; | ||
export type QueryGetChoicesInstanceArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type QueryGetEchoInstanceArgs = { | ||
@@ -235,2 +273,3 @@ id: Scalars['ID']['input']; | ||
Any = "Any", | ||
Choices = "Choices", | ||
Echo = "Echo", | ||
@@ -241,2 +280,8 @@ GraphqlConnections = "GraphqlConnections", | ||
} | ||
export type UpdateChoicesAppInput = { | ||
errorMessages: Array<I18nTextInput>; | ||
id: Scalars['ID']['input']; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
options: Array<OptionInput>; | ||
}; | ||
export type UpdateEchoAppInput = { | ||
@@ -257,2 +302,38 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type ChoicesInstanceFragment = (Pick<ChoicesInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & { | ||
options: Array<(Pick<Option, 'transition'> & { | ||
messages: Array<Pick<I18nText, 'lang' | 'value'>>; | ||
})>; | ||
errorMessages: Array<Pick<I18nText, 'lang' | 'value'>>; | ||
}); | ||
export type GetChoicesInstanceQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type GetChoicesInstanceQuery = { | ||
getChoicesInstance?: Maybe<ChoicesInstanceFragment>; | ||
}; | ||
export type ListChoicesInstancesQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListChoicesInstancesQuery = { | ||
listChoicesInstances: Array<ChoicesInstanceFragment>; | ||
}; | ||
export type CreateChoicesInstanceMutationVariables = Exact<{ | ||
input: CreateChoicesAppInput; | ||
}>; | ||
export type CreateChoicesInstanceMutation = { | ||
createChoicesInstance?: Maybe<ChoicesInstanceFragment>; | ||
}; | ||
export type UpdateChoicesInstanceMutationVariables = Exact<{ | ||
input: UpdateChoicesAppInput; | ||
}>; | ||
export type UpdateChoicesInstanceMutation = { | ||
updateChoicesInstance?: Maybe<ChoicesInstanceFragment>; | ||
}; | ||
export type RemoveChoicesInstanceMutationVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type RemoveChoicesInstanceMutation = { | ||
removeChoicesInstance?: Maybe<ChoicesInstanceFragment>; | ||
}; | ||
export type EchoInstanceFragment = (Pick<EchoInstance, 'id' | 'name' | 'createdAt' | 'updatedAt'> & { | ||
@@ -322,4 +403,10 @@ messages: Array<Pick<I18nText, 'lang' | 'value'>>; | ||
}; | ||
export declare const ChoicesInstanceFragmentDoc = "\n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const EchoInstanceFragmentDoc = "\n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const HttpInstanceFragmentDoc = "\n fragment httpInstance on HttpInstance {\n id\n name\n url\n key\n method\n headers\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetChoicesInstanceDocument = "\n query getChoicesInstance($id: ID!) {\n getChoicesInstance(id: $id) {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListChoicesInstancesDocument = "\n query listChoicesInstances {\n listChoicesInstances {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateChoicesInstanceDocument = "\n mutation createChoicesInstance($input: CreateChoicesAppInput!) {\n createChoicesInstance(input: $input) {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateChoicesInstanceDocument = "\n mutation updateChoicesInstance($input: UpdateChoicesAppInput!) {\n updateChoicesInstance(input: $input) {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveChoicesInstanceDocument = "\n mutation removeChoicesInstance($id: ID!) {\n removeChoicesInstance(id: $id) {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetEchoInstanceDocument = "\n query getEchoInstance($id: ID!) {\n getEchoInstance(id: $id) {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
@@ -337,2 +424,7 @@ export declare const ListEchoInstancesDocument = "\n query listEchoInstances {\n listEchoInstances {\n ...echoInstance\n }\n}\n \n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare function getSdk<C>(requester: Requester<C>): { | ||
getChoicesInstance(variables: GetChoicesInstanceQueryVariables, options?: C): Promise<GetChoicesInstanceQuery>; | ||
listChoicesInstances(variables?: ListChoicesInstancesQueryVariables, options?: C): Promise<ListChoicesInstancesQuery>; | ||
createChoicesInstance(variables: CreateChoicesInstanceMutationVariables, options?: C): Promise<CreateChoicesInstanceMutation>; | ||
updateChoicesInstance(variables: UpdateChoicesInstanceMutationVariables, options?: C): Promise<UpdateChoicesInstanceMutation>; | ||
removeChoicesInstance(variables: RemoveChoicesInstanceMutationVariables, options?: C): Promise<RemoveChoicesInstanceMutation>; | ||
getEchoInstance(variables: GetEchoInstanceQueryVariables, options?: C): Promise<GetEchoInstanceQuery>; | ||
@@ -339,0 +431,0 @@ listEchoInstances(variables?: ListEchoInstancesQueryVariables, options?: C): Promise<ListEchoInstancesQuery>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.RemoveHttpInstanceDocument = exports.UpdateHttpInstanceDocument = exports.CreateHttpInstanceDocument = exports.ListHttpInstancesDocument = exports.GetHttpInstanceDocument = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.ListEchoInstancesDocument = exports.GetEchoInstanceDocument = exports.HttpInstanceFragmentDoc = exports.EchoInstanceFragmentDoc = exports.Typenames = exports.HttpMethod = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemoveHttpInstanceDocument = exports.UpdateHttpInstanceDocument = exports.CreateHttpInstanceDocument = exports.ListHttpInstancesDocument = exports.GetHttpInstanceDocument = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.ListEchoInstancesDocument = exports.GetEchoInstanceDocument = exports.RemoveChoicesInstanceDocument = exports.UpdateChoicesInstanceDocument = exports.CreateChoicesInstanceDocument = exports.ListChoicesInstancesDocument = exports.GetChoicesInstanceDocument = exports.HttpInstanceFragmentDoc = exports.EchoInstanceFragmentDoc = exports.ChoicesInstanceFragmentDoc = exports.Typenames = exports.HttpMethod = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -22,2 +22,3 @@ (function (AppInstanceStatus) { | ||
Typenames["Any"] = "Any"; | ||
Typenames["Choices"] = "Choices"; | ||
Typenames["Echo"] = "Echo"; | ||
@@ -28,2 +29,21 @@ Typenames["GraphqlConnections"] = "GraphqlConnections"; | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
exports.ChoicesInstanceFragmentDoc = ` | ||
fragment choicesInstance on ChoicesInstance { | ||
id | ||
name | ||
options { | ||
messages { | ||
lang | ||
value | ||
} | ||
transition | ||
} | ||
errorMessages { | ||
lang | ||
value | ||
} | ||
createdAt | ||
updatedAt | ||
} | ||
`; | ||
exports.EchoInstanceFragmentDoc = ` | ||
@@ -54,2 +74,37 @@ fragment echoInstance on EchoInstance { | ||
`; | ||
exports.GetChoicesInstanceDocument = ` | ||
query getChoicesInstance($id: ID!) { | ||
getChoicesInstance(id: $id) { | ||
...choicesInstance | ||
} | ||
} | ||
${exports.ChoicesInstanceFragmentDoc}`; | ||
exports.ListChoicesInstancesDocument = ` | ||
query listChoicesInstances { | ||
listChoicesInstances { | ||
...choicesInstance | ||
} | ||
} | ||
${exports.ChoicesInstanceFragmentDoc}`; | ||
exports.CreateChoicesInstanceDocument = ` | ||
mutation createChoicesInstance($input: CreateChoicesAppInput!) { | ||
createChoicesInstance(input: $input) { | ||
...choicesInstance | ||
} | ||
} | ||
${exports.ChoicesInstanceFragmentDoc}`; | ||
exports.UpdateChoicesInstanceDocument = ` | ||
mutation updateChoicesInstance($input: UpdateChoicesAppInput!) { | ||
updateChoicesInstance(input: $input) { | ||
...choicesInstance | ||
} | ||
} | ||
${exports.ChoicesInstanceFragmentDoc}`; | ||
exports.RemoveChoicesInstanceDocument = ` | ||
mutation removeChoicesInstance($id: ID!) { | ||
removeChoicesInstance(id: $id) { | ||
...choicesInstance | ||
} | ||
} | ||
${exports.ChoicesInstanceFragmentDoc}`; | ||
exports.GetEchoInstanceDocument = ` | ||
@@ -127,2 +182,17 @@ query getEchoInstance($id: ID!) { | ||
return { | ||
getChoicesInstance(variables, options) { | ||
return requester(exports.GetChoicesInstanceDocument, variables, options); | ||
}, | ||
listChoicesInstances(variables, options) { | ||
return requester(exports.ListChoicesInstancesDocument, variables, options); | ||
}, | ||
createChoicesInstance(variables, options) { | ||
return requester(exports.CreateChoicesInstanceDocument, variables, options); | ||
}, | ||
updateChoicesInstance(variables, options) { | ||
return requester(exports.UpdateChoicesInstanceDocument, variables, options); | ||
}, | ||
removeChoicesInstance(variables, options) { | ||
return requester(exports.RemoveChoicesInstanceDocument, variables, options); | ||
}, | ||
getEchoInstance(variables, options) { | ||
@@ -129,0 +199,0 @@ return requester(exports.GetEchoInstanceDocument, variables, options); |
Sorry, the diff of this file is too big to display
455064
56
9918