@droz-js/sdk
Advanced tools
Comparing version 0.2.1 to 0.2.2
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"private": false, | ||
@@ -19,5 +19,3 @@ "exports": { | ||
"dependencies": { | ||
"cross-fetch": "^3.1.8", | ||
"graphql": "^16.8.1", | ||
"graphql-tag": "^2.12.6", | ||
"graphql-ws": "^5.14.1", | ||
@@ -24,0 +22,0 @@ "inbatches": "^0.0.10" |
@@ -1,6 +0,3 @@ | ||
export declare const emptyAsyncIterator: <R>() => { | ||
[Symbol.asyncIterator](): AsyncIterator<R, any, undefined>; | ||
}; | ||
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>; | ||
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
export declare function HttpClientBuilder<Sdk>(serviceName: string, getSdk: (requester: Requester<Sdk>) => Sdk): new () => Sdk; | ||
export {}; |
@@ -12,10 +12,17 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.HttpClientBuilder = exports.emptyAsyncIterator = void 0; | ||
exports.HttpClientBuilder = void 0; | ||
const inbatches_1 = require("inbatches"); | ||
const config_1 = require("./config"); | ||
const utils_1 = require("./utils"); | ||
const emptyAsyncIterator = () => ({ | ||
async *[Symbol.asyncIterator]() { } | ||
}); | ||
exports.emptyAsyncIterator = emptyAsyncIterator; | ||
// create an empty AsyncIterableIterator | ||
function emptyAsyncIterator() { | ||
return { | ||
[Symbol.asyncIterator]() { | ||
return this; | ||
}, | ||
async next() { | ||
return { done: true, value: undefined }; | ||
} | ||
}; | ||
} | ||
function buildRequestInfo(req) { | ||
@@ -36,3 +43,3 @@ const operationNames = Array.isArray(req) ? req.map(r => r.operationName) : [req.operationName]; | ||
if (query.match(/subscription .*{/)) | ||
return (0, exports.emptyAsyncIterator)(); | ||
return emptyAsyncIterator(); | ||
// extract operation name and enqueue the request to be executed in batches | ||
@@ -39,0 +46,0 @@ const operationName = /(?:query|mutation) ([^({ ]*)/.exec(query)?.[1]; |
@@ -1,3 +0,3 @@ | ||
import { ExecutionResult } from 'graphql/index'; | ||
import type { ExecutionResult } from 'graphql'; | ||
export declare function mapGraphqlResponse<T>(response: ExecutionResult<T> | Error): T; | ||
export declare function mapAsyncIterableGraphqlResponse<T>(iterable: AsyncIterableIterator<ExecutionResult<T, any>>): AsyncGenerator<Awaited<T>, void, unknown>; |
import { Client } from 'graphql-ws'; | ||
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>; | ||
type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
type Connect = { | ||
@@ -4,0 +4,0 @@ connect(): Promise<Client>; |
@@ -68,2 +68,39 @@ export * from './sdks/nucleus'; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetStateMachineQuery>; | ||
listLiveStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").ListLiveStateMachineConfigsQuery>; | ||
listDraftStateMachineConfigs(variables?: import("./sdks/nucleus").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").ListDraftStateMachineConfigsQuery>; | ||
listStateMachineConfigVersions(variables: import("./sdks/nucleus").Exact<{ | ||
id: string; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").ListStateMachineConfigVersionsQuery>; | ||
getXStateMachineConfig(variables: import("./sdks/nucleus").Exact<{ | ||
id: string; | ||
versionId: string; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetXStateMachineConfigQuery>; | ||
createStateMachineConfig(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").CreateStateMachineConfigInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateStateMachineConfigMutation>; | ||
updateStateMachineConfig(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").UpdateStateMachineConfigInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateStateMachineConfigMutation>; | ||
removeStateMachineConfig(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").RemoveStateMachineConfigInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveStateMachineConfigMutation>; | ||
editStateMachineConfig(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").EditStateMachineConfigInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").EditStateMachineConfigMutation>; | ||
publishStateMachineConfig(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").PublishStateMachineConfigInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").PublishStateMachineConfigMutation>; | ||
createStateMachineConfigState(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").CreateStateMachineConfigStateInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").CreateStateMachineConfigStateMutation>; | ||
updateStateMachineConfigState(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").UpdateStateMachineConfigStateInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").UpdateStateMachineConfigStateMutation>; | ||
removeStateMachineConfigState(variables: import("./sdks/nucleus").Exact<{ | ||
input: import("./sdks/nucleus").RemoveStateMachineConfigStateInput; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveStateMachineConfigStateMutation>; | ||
}; |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
Set: { | ||
input: any; | ||
output: any; | ||
input: Set<any>; | ||
output: any[]; | ||
}; | ||
@@ -77,0 +77,0 @@ URL: { |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
Set: { | ||
input: any; | ||
output: any; | ||
input: Set<any>; | ||
output: any[]; | ||
}; | ||
@@ -476,3 +476,3 @@ URL: { | ||
export declare const CustomerFragmentDoc = "\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n "; | ||
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n "; | ||
@@ -483,18 +483,18 @@ export declare const CreateCustomerDocument = "\n mutation createCustomer($input: CreateCustomerInput!) {\n createCustomer(input: $input) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetCustomerDocument = "\n query getCustomer($id: ID!) {\n getCustomer(id: $id) {\n ...customer\n }\n}\n \n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetTicketDocument = "\n query getTicket($id: ID!) {\n getTicket(id: $id) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsDocument = "\n query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) {\n listTickets(state: $state, assigneeId: $assigneeId, next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsInQueueDocument = "\n query listTicketsInQueue($next: Base64) {\n listTicketsInQueue(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsInProgressMineDocument = "\n query listTicketsInProgressMine($next: Base64) {\n listTicketsInProgressMine(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketsClosedDocument = "\n query listTicketsClosed($next: Base64) {\n listTicketsClosed(next: $next) {\n nodes {\n ...ticket\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTicketMessagesDocument = "\n query listTicketMessages($ticketId: ID!, $next: Base64) {\n listTicketMessages(ticketId: $ticketId, 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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateTicketDocument = "\n mutation createTicket($input: CreateTicketInput!) {\n createTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const MarkTicketMessagesAsReadDocument = "\n mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) {\n markTicketMessagesAsRead(input: $input)\n}\n "; | ||
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 sentBy\n type\n contentType\n body\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 id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n\n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\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 id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const OnTicketInQueueDocument = "\n subscription onTicketInQueue {\n onTicketInQueue {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const OnTicketInProgressMineDocument = "\n subscription onTicketInProgressMine {\n onTicketInProgressMine {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
export declare const OnTicketClosedDocument = "\n subscription onTicketClosed {\n onTicketClosed {\n ticket {\n ...ticket\n }\n action\n }\n}\n \n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...agent\n }\n customer {\n ...customer\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment agent on Agent {\n id\n name\n email\n}\n \n\n fragment customer on Customer {\n id\n name\n email\n createdAt\n updatedAt\n}\n "; | ||
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 sentBy\n type\n contentType\n body\n createdAt\n updatedAt\n}\n "; | ||
@@ -501,0 +501,0 @@ export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>; |
@@ -83,3 +83,4 @@ "use strict"; | ||
} | ||
`; | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
exports.TicketMessageFragmentDoc = ` | ||
@@ -137,5 +138,3 @@ fragment ticketMessage on TicketMessage { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.ListTicketsDocument = ` | ||
@@ -153,5 +152,3 @@ query listTickets($state: TicketState!, $assigneeId: ID, $next: Base64) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.ListTicketsInQueueDocument = ` | ||
@@ -169,5 +166,3 @@ query listTicketsInQueue($next: Base64) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.ListTicketsInProgressMineDocument = ` | ||
@@ -185,5 +180,3 @@ query listTicketsInProgressMine($next: Base64) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.ListTicketsClosedDocument = ` | ||
@@ -201,5 +194,3 @@ query listTicketsClosed($next: Base64) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.ListTicketMessagesDocument = ` | ||
@@ -224,5 +215,3 @@ query listTicketMessages($ticketId: ID!, $next: Base64) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.MarkTicketMessagesAsReadDocument = ` | ||
@@ -246,5 +235,3 @@ mutation markTicketMessagesAsRead($input: MarkTicketMessagesAsReadInput!) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.AssignTicketMyselfDocument = ` | ||
@@ -256,5 +243,3 @@ mutation assignTicketMyself($input: AssignTicketMyselfInput!) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.UnassignTicketDocument = ` | ||
@@ -266,5 +251,3 @@ mutation unassignTicket($input: UnassignTicketInput!) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.CloseTicketDocument = ` | ||
@@ -276,5 +259,3 @@ mutation closeTicket($input: CloseTicketInput!) { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.OnTicketInQueueDocument = ` | ||
@@ -289,5 +270,3 @@ subscription onTicketInQueue { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.OnTicketInProgressMineDocument = ` | ||
@@ -302,5 +281,3 @@ subscription onTicketInProgressMine { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.OnTicketClosedDocument = ` | ||
@@ -315,5 +292,3 @@ subscription onTicketClosed { | ||
} | ||
${exports.TicketFragmentDoc} | ||
${exports.AgentFragmentDoc} | ||
${exports.CustomerFragmentDoc}`; | ||
${exports.TicketFragmentDoc}`; | ||
exports.OnTicketMessageDocument = ` | ||
@@ -320,0 +295,0 @@ subscription onTicketMessage($ticketId: ID!) { |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
Set: { | ||
input: any; | ||
output: any; | ||
input: Set<any>; | ||
output: any[]; | ||
}; | ||
@@ -203,6 +203,6 @@ URL: { | ||
export declare const AgentGroupFragmentDoc = "\n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n "; | ||
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n\n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...agent\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n\n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n\n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const AgentFragmentDoc = "\n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateAgentDocument = "\n mutation createAgent($input: CreateAgentInput!) {\n createAgent(input: $input) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListAgentsDocument = "\n query listAgents($next: Base64) {\n listAgents(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...agent\n }\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetAgentDocument = "\n query getAgent($id: ID!) {\n getAgent(id: $id) {\n ...agent\n }\n}\n \n fragment agent on Agent {\n id\n name\n groupIds\n createdAt\n updatedAt\n groups {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateAgentGroupDocument = "\n mutation createAgentGroup($input: CreateAgentGroupInput!) {\n createAgentGroup(input: $input) {\n ...agentGroup\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
@@ -209,0 +209,0 @@ export declare const ListAgentGroupsDocument = "\n query listAgentGroups($next: Base64) {\n listAgentGroups(next: $next) {\n pageInfo {\n hasNext\n next\n }\n nodes {\n ...agentGroup\n }\n }\n}\n \n fragment agentGroup on AgentGroup {\n id\n name\n createdAt\n updatedAt\n}\n "; |
@@ -38,3 +38,3 @@ "use strict"; | ||
} | ||
`; | ||
${exports.AgentGroupFragmentDoc}`; | ||
exports.CreateAgentDocument = ` | ||
@@ -46,4 +46,3 @@ mutation createAgent($input: CreateAgentInput!) { | ||
} | ||
${exports.AgentFragmentDoc} | ||
${exports.AgentGroupFragmentDoc}`; | ||
${exports.AgentFragmentDoc}`; | ||
exports.ListAgentsDocument = ` | ||
@@ -61,4 +60,3 @@ query listAgents($next: Base64) { | ||
} | ||
${exports.AgentFragmentDoc} | ||
${exports.AgentGroupFragmentDoc}`; | ||
${exports.AgentFragmentDoc}`; | ||
exports.GetAgentDocument = ` | ||
@@ -70,4 +68,3 @@ query getAgent($id: ID!) { | ||
} | ||
${exports.AgentFragmentDoc} | ||
${exports.AgentGroupFragmentDoc}`; | ||
${exports.AgentFragmentDoc}`; | ||
exports.CreateAgentGroupDocument = ` | ||
@@ -74,0 +71,0 @@ mutation createAgentGroup($input: CreateAgentGroupInput!) { |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
Set: { | ||
input: any; | ||
output: any; | ||
input: Set<any>; | ||
output: any[]; | ||
}; | ||
@@ -77,0 +77,0 @@ URL: { |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
Set: { | ||
input: any; | ||
output: any; | ||
input: Set<any>; | ||
output: any[]; | ||
}; | ||
@@ -147,2 +147,8 @@ URL: { | ||
}; | ||
export type CreateStateMachineConfigInput = { | ||
description?: InputMaybe<Scalars['String']['input']>; | ||
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>; | ||
title?: InputMaybe<Scalars['String']['input']>; | ||
triggers?: InputMaybe<Scalars['Set']['input']>; | ||
}; | ||
export type CreateStateMachineConfigStateInput = { | ||
@@ -160,8 +166,2 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type CreateStateMachineInput = { | ||
description?: InputMaybe<Scalars['String']['input']>; | ||
states?: InputMaybe<Array<CreateStateMachineConfigWithStateInput>>; | ||
title?: InputMaybe<Scalars['String']['input']>; | ||
triggers?: InputMaybe<Scalars['Set']['input']>; | ||
}; | ||
export type Credentials = ApiKeyCredentialsType | BasicCredentialsType | OAuth2CredentialsType; | ||
@@ -184,3 +184,3 @@ export declare enum CredentialsType { | ||
}; | ||
export type EditStateMachineInput = { | ||
export type EditStateMachineConfigInput = { | ||
id: Scalars['ID']['input']; | ||
@@ -200,3 +200,3 @@ }; | ||
patchSessionData?: Maybe<Scalars['JSON']['output']>; | ||
promoteStateMachineConfig?: Maybe<StateMachineConfig>; | ||
publishStateMachineConfig?: Maybe<StateMachineConfig>; | ||
removeCredentials?: Maybe<SafeCredentials>; | ||
@@ -220,3 +220,3 @@ removeCronJob: CronJob; | ||
export type MutationCreateStateMachineConfigArgs = { | ||
input: CreateStateMachineInput; | ||
input: CreateStateMachineConfigInput; | ||
}; | ||
@@ -227,3 +227,3 @@ export type MutationCreateStateMachineConfigStateArgs = { | ||
export type MutationEditStateMachineConfigArgs = { | ||
input: EditStateMachineInput; | ||
input: EditStateMachineConfigInput; | ||
}; | ||
@@ -233,4 +233,4 @@ export type MutationPatchSessionDataArgs = { | ||
}; | ||
export type MutationPromoteStateMachineConfigArgs = { | ||
input: PromoteStateMachineInput; | ||
export type MutationPublishStateMachineConfigArgs = { | ||
input: PublishStateMachineConfigInput; | ||
}; | ||
@@ -244,3 +244,3 @@ export type MutationRemoveCredentialsArgs = { | ||
export type MutationRemoveStateMachineConfigArgs = { | ||
input: RemoveStateMachineInput; | ||
input: RemoveStateMachineConfigInput; | ||
}; | ||
@@ -260,3 +260,3 @@ export type MutationRemoveStateMachineConfigStateArgs = { | ||
export type MutationUpdateStateMachineConfigArgs = { | ||
input: UpdateStateMachineInput; | ||
input: UpdateStateMachineConfigInput; | ||
}; | ||
@@ -297,3 +297,3 @@ export type MutationUpdateStateMachineConfigStateArgs = { | ||
}; | ||
export type PromoteStateMachineInput = { | ||
export type PublishStateMachineConfigInput = { | ||
id: Scalars['ID']['input']; | ||
@@ -317,2 +317,5 @@ versionId: Scalars['ID']['input']; | ||
listCronJobsByAppId: Array<SecureCronJob>; | ||
listDraftStateMachineConfigs: StateMachineConfigConnection; | ||
listLiveStateMachineConfigs: StateMachineConfigConnection; | ||
listStateMachineConfigVersions: Array<StateMachineConfig>; | ||
resolveSession?: Maybe<Session>; | ||
@@ -358,2 +361,5 @@ version?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type QueryListStateMachineConfigVersionsArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type QueryResolveSessionArgs = { | ||
@@ -370,9 +376,9 @@ sessionId?: InputMaybe<Scalars['ID']['input']>; | ||
}; | ||
export type RemoveStateMachineConfigStateInput = { | ||
export type RemoveStateMachineConfigInput = { | ||
id: Scalars['ID']['input']; | ||
stateId: Scalars['ID']['input']; | ||
versionId: Scalars['ID']['input']; | ||
}; | ||
export type RemoveStateMachineInput = { | ||
export type RemoveStateMachineConfigStateInput = { | ||
id: Scalars['ID']['input']; | ||
stateId: Scalars['ID']['input']; | ||
versionId: Scalars['ID']['input']; | ||
@@ -416,2 +422,6 @@ }; | ||
}; | ||
export type StateMachineConfigConnection = { | ||
nodes: Array<StateMachineConfig>; | ||
pageInfo: PageInfo; | ||
}; | ||
export type StateMachineConfigState = { | ||
@@ -466,2 +476,10 @@ meta?: Maybe<Scalars['JSON']['output']>; | ||
}; | ||
export type UpdateStateMachineConfigInput = { | ||
description?: InputMaybe<Scalars['String']['input']>; | ||
id: Scalars['ID']['input']; | ||
states?: InputMaybe<Array<UpdateStateMachineConfigWithStateInput>>; | ||
title?: InputMaybe<Scalars['String']['input']>; | ||
triggers?: InputMaybe<Scalars['Set']['input']>; | ||
versionId: Scalars['ID']['input']; | ||
}; | ||
export type UpdateStateMachineConfigStateInput = { | ||
@@ -479,10 +497,2 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type UpdateStateMachineInput = { | ||
description?: InputMaybe<Scalars['String']['input']>; | ||
id: Scalars['ID']['input']; | ||
states?: InputMaybe<Array<UpdateStateMachineConfigWithStateInput>>; | ||
title?: InputMaybe<Scalars['String']['input']>; | ||
triggers?: InputMaybe<Scalars['Set']['input']>; | ||
versionId: Scalars['ID']['input']; | ||
}; | ||
export type AppFragment = Pick<App, 'id' | 'type' | 'name' | 'description'>; | ||
@@ -616,2 +626,13 @@ export type AppInstanceFragment = Pick<AppInstance, 'appId' | 'appType' | 'drn' | 'name' | 'transitions'>; | ||
export type PatchSessionDataMutation = Pick<Mutation, 'patchSessionData'>; | ||
export type StateMachineConfigStateOnFragment = Pick<StateMachineConfigStatesOn, 'event' | 'target'>; | ||
export type StateMachineConfigStateFragment = (Pick<StateMachineConfigState, 'stateId' | 'meta'> & { | ||
on: Array<StateMachineConfigStateOnFragment>; | ||
}); | ||
export type StateMachineConfigFragment = (Pick<StateMachineConfig, 'id' | 'versionId' | 'stateMachineId' | 'title' | 'description' | 'status' | 'triggers'> & { | ||
states: Array<StateMachineConfigStateFragment>; | ||
}); | ||
export type StateMachineConfigConnectionFragment = { | ||
nodes: Array<StateMachineConfigFragment>; | ||
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>; | ||
}; | ||
export type GetStateMachineQueryVariables = Exact<{ | ||
@@ -622,13 +643,84 @@ id: Scalars['ID']['input']; | ||
export type GetStateMachineQuery = { | ||
getStateMachineConfig?: Maybe<(Pick<StateMachineConfig, 'id' | 'versionId' | 'stateMachineId' | 'title' | 'description' | 'status'> & { | ||
states: Array<(Pick<StateMachineConfigState, 'stateId' | 'meta'> & { | ||
on: Array<Pick<StateMachineConfigStatesOn, 'event' | 'target'>>; | ||
})>; | ||
})>; | ||
getStateMachineConfig?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type ListLiveStateMachineConfigsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListLiveStateMachineConfigsQuery = { | ||
listLiveStateMachineConfigs: StateMachineConfigConnectionFragment; | ||
}; | ||
export type ListDraftStateMachineConfigsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListDraftStateMachineConfigsQuery = { | ||
listDraftStateMachineConfigs: StateMachineConfigConnectionFragment; | ||
}; | ||
export type ListStateMachineConfigVersionsQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type ListStateMachineConfigVersionsQuery = { | ||
listStateMachineConfigVersions: Array<StateMachineConfigFragment>; | ||
}; | ||
export type GetXStateMachineConfigQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
versionId: Scalars['ID']['input']; | ||
}>; | ||
export type GetXStateMachineConfigQuery = Pick<Query, 'getXStateMachineConfig'>; | ||
export type CreateStateMachineConfigMutationVariables = Exact<{ | ||
input: CreateStateMachineConfigInput; | ||
}>; | ||
export type CreateStateMachineConfigMutation = { | ||
createStateMachineConfig?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type UpdateStateMachineConfigMutationVariables = Exact<{ | ||
input: UpdateStateMachineConfigInput; | ||
}>; | ||
export type UpdateStateMachineConfigMutation = { | ||
updateStateMachineConfig?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type RemoveStateMachineConfigMutationVariables = Exact<{ | ||
input: RemoveStateMachineConfigInput; | ||
}>; | ||
export type RemoveStateMachineConfigMutation = { | ||
removeStateMachineConfig?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type EditStateMachineConfigMutationVariables = Exact<{ | ||
input: EditStateMachineConfigInput; | ||
}>; | ||
export type EditStateMachineConfigMutation = { | ||
editStateMachineConfig?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type PublishStateMachineConfigMutationVariables = Exact<{ | ||
input: PublishStateMachineConfigInput; | ||
}>; | ||
export type PublishStateMachineConfigMutation = { | ||
publishStateMachineConfig?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type CreateStateMachineConfigStateMutationVariables = Exact<{ | ||
input: CreateStateMachineConfigStateInput; | ||
}>; | ||
export type CreateStateMachineConfigStateMutation = { | ||
createStateMachineConfigState?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type UpdateStateMachineConfigStateMutationVariables = Exact<{ | ||
input: UpdateStateMachineConfigStateInput; | ||
}>; | ||
export type UpdateStateMachineConfigStateMutation = { | ||
updateStateMachineConfigState?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export type RemoveStateMachineConfigStateMutationVariables = Exact<{ | ||
input: RemoveStateMachineConfigStateInput; | ||
}>; | ||
export type RemoveStateMachineConfigStateMutation = { | ||
removeStateMachineConfigState?: Maybe<StateMachineConfigFragment>; | ||
}; | ||
export declare const AppFragmentDoc = "\n fragment app on App {\n id\n type\n name\n description\n}\n "; | ||
export declare const AppInstanceFragmentDoc = "\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n "; | ||
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n "; | ||
export declare const AppWithInstancesFragmentDoc = "\n fragment appWithInstances on App {\n ...app\n instances {\n ...appInstance\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n "; | ||
export declare const SafeCredentialsFragmentDoc = "\n fragment safeCredentials on SafeCredentials {\n id\n type\n description\n}\n "; | ||
export declare const CronJobFragmentDoc = "\n fragment cronJob on CronJob {\n appId\n id\n description\n expression\n event\n payload\n status\n timestamp\n runs\n}\n "; | ||
export declare const StateMachineConfigStateOnFragmentDoc = "\n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const StateMachineConfigStateFragmentDoc = "\n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const StateMachineConfigFragmentDoc = "\n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const StateMachineConfigConnectionFragmentDoc = "\n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n "; | ||
@@ -652,3 +744,15 @@ export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n}\n "; | ||
export declare const PatchSessionDataDocument = "\n mutation patchSessionData($input: PatchSessionDataInput!) {\n patchSessionData(input: $input)\n}\n "; | ||
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n id\n versionId\n stateMachineId\n title\n description\n status\n states {\n stateId\n on {\n event\n target\n }\n meta\n }\n }\n}\n "; | ||
export declare const GetStateMachineDocument = "\n query getStateMachine($id: ID!, $versionId: ID!) {\n getStateMachineConfig(id: $id, versionId: $versionId) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const ListLiveStateMachineConfigsDocument = "\n query listLiveStateMachineConfigs {\n listLiveStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const ListDraftStateMachineConfigsDocument = "\n query listDraftStateMachineConfigs {\n listDraftStateMachineConfigs {\n ...stateMachineConfigConnection\n }\n}\n \n fragment stateMachineConfigConnection on StateMachineConfigConnection {\n nodes {\n ...stateMachineConfig\n }\n pageInfo {\n hasNext\n next\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const ListStateMachineConfigVersionsDocument = "\n query listStateMachineConfigVersions($id: ID!) {\n listStateMachineConfigVersions(id: $id) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const GetXStateMachineConfigDocument = "\n query getXStateMachineConfig($id: ID!, $versionId: ID!) {\n getXStateMachineConfig(id: $id, versionId: $versionId)\n}\n "; | ||
export declare const CreateStateMachineConfigDocument = "\n mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) {\n createStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const UpdateStateMachineConfigDocument = "\n mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) {\n updateStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const RemoveStateMachineConfigDocument = "\n mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) {\n removeStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const EditStateMachineConfigDocument = "\n mutation editStateMachineConfig($input: EditStateMachineConfigInput!) {\n editStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const PublishStateMachineConfigDocument = "\n mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) {\n publishStateMachineConfig(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const CreateStateMachineConfigStateDocument = "\n mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) {\n createStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const UpdateStateMachineConfigStateDocument = "\n mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) {\n updateStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export declare const RemoveStateMachineConfigStateDocument = "\n mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) {\n removeStateMachineConfigState(input: $input) {\n ...stateMachineConfig\n }\n}\n \n fragment stateMachineConfig on StateMachineConfig {\n id\n versionId\n stateMachineId\n title\n description\n status\n triggers\n states {\n ...stateMachineConfigState\n }\n}\n \n fragment stateMachineConfigState on StateMachineConfigState {\n stateId\n on {\n ...stateMachineConfigStateOn\n }\n meta\n}\n \n fragment stateMachineConfigStateOn on StateMachineConfigStatesOn {\n event\n target\n}\n "; | ||
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterable<R>; | ||
@@ -675,4 +779,16 @@ export declare function getSdk<C, E>(requester: Requester<C, E>): { | ||
getStateMachine(variables: GetStateMachineQueryVariables, options?: C): Promise<GetStateMachineQuery>; | ||
listLiveStateMachineConfigs(variables?: ListLiveStateMachineConfigsQueryVariables, options?: C): Promise<ListLiveStateMachineConfigsQuery>; | ||
listDraftStateMachineConfigs(variables?: ListDraftStateMachineConfigsQueryVariables, options?: C): Promise<ListDraftStateMachineConfigsQuery>; | ||
listStateMachineConfigVersions(variables: ListStateMachineConfigVersionsQueryVariables, options?: C): Promise<ListStateMachineConfigVersionsQuery>; | ||
getXStateMachineConfig(variables: GetXStateMachineConfigQueryVariables, options?: C): Promise<GetXStateMachineConfigQuery>; | ||
createStateMachineConfig(variables: CreateStateMachineConfigMutationVariables, options?: C): Promise<CreateStateMachineConfigMutation>; | ||
updateStateMachineConfig(variables: UpdateStateMachineConfigMutationVariables, options?: C): Promise<UpdateStateMachineConfigMutation>; | ||
removeStateMachineConfig(variables: RemoveStateMachineConfigMutationVariables, options?: C): Promise<RemoveStateMachineConfigMutation>; | ||
editStateMachineConfig(variables: EditStateMachineConfigMutationVariables, options?: C): Promise<EditStateMachineConfigMutation>; | ||
publishStateMachineConfig(variables: PublishStateMachineConfigMutationVariables, options?: C): Promise<PublishStateMachineConfigMutation>; | ||
createStateMachineConfigState(variables: CreateStateMachineConfigStateMutationVariables, options?: C): Promise<CreateStateMachineConfigStateMutation>; | ||
updateStateMachineConfigState(variables: UpdateStateMachineConfigStateMutationVariables, options?: C): Promise<UpdateStateMachineConfigStateMutation>; | ||
removeStateMachineConfigState(variables: RemoveStateMachineConfigStateMutationVariables, options?: C): Promise<RemoveStateMachineConfigStateMutation>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
export declare const serviceName = "@droz/nucleus"; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.PatchSessionDataDocument = exports.SetSessionDataDocument = exports.GetSessionDataDocument = exports.ResolveSessionDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.ListAppInstancesDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.CronJobFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CredentialsType = exports.AppType = void 0; | ||
var AppType; | ||
@@ -71,3 +71,4 @@ (function (AppType) { | ||
} | ||
`; | ||
${exports.AppFragmentDoc} | ||
${exports.AppInstanceFragmentDoc}`; | ||
exports.SafeCredentialsFragmentDoc = ` | ||
@@ -93,2 +94,42 @@ fragment safeCredentials on SafeCredentials { | ||
`; | ||
exports.StateMachineConfigStateOnFragmentDoc = ` | ||
fragment stateMachineConfigStateOn on StateMachineConfigStatesOn { | ||
event | ||
target | ||
} | ||
`; | ||
exports.StateMachineConfigStateFragmentDoc = ` | ||
fragment stateMachineConfigState on StateMachineConfigState { | ||
stateId | ||
on { | ||
...stateMachineConfigStateOn | ||
} | ||
meta | ||
} | ||
${exports.StateMachineConfigStateOnFragmentDoc}`; | ||
exports.StateMachineConfigFragmentDoc = ` | ||
fragment stateMachineConfig on StateMachineConfig { | ||
id | ||
versionId | ||
stateMachineId | ||
title | ||
description | ||
status | ||
triggers | ||
states { | ||
...stateMachineConfigState | ||
} | ||
} | ||
${exports.StateMachineConfigStateFragmentDoc}`; | ||
exports.StateMachineConfigConnectionFragmentDoc = ` | ||
fragment stateMachineConfigConnection on StateMachineConfigConnection { | ||
nodes { | ||
...stateMachineConfig | ||
} | ||
pageInfo { | ||
hasNext | ||
next | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.GetAppDocument = ` | ||
@@ -253,19 +294,88 @@ query getApp($appId: ID!, $withInstances: Boolean = false) { | ||
getStateMachineConfig(id: $id, versionId: $versionId) { | ||
id | ||
versionId | ||
stateMachineId | ||
title | ||
description | ||
status | ||
states { | ||
stateId | ||
on { | ||
event | ||
target | ||
} | ||
meta | ||
} | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.ListLiveStateMachineConfigsDocument = ` | ||
query listLiveStateMachineConfigs { | ||
listLiveStateMachineConfigs { | ||
...stateMachineConfigConnection | ||
} | ||
} | ||
${exports.StateMachineConfigConnectionFragmentDoc}`; | ||
exports.ListDraftStateMachineConfigsDocument = ` | ||
query listDraftStateMachineConfigs { | ||
listDraftStateMachineConfigs { | ||
...stateMachineConfigConnection | ||
} | ||
} | ||
${exports.StateMachineConfigConnectionFragmentDoc}`; | ||
exports.ListStateMachineConfigVersionsDocument = ` | ||
query listStateMachineConfigVersions($id: ID!) { | ||
listStateMachineConfigVersions(id: $id) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.GetXStateMachineConfigDocument = ` | ||
query getXStateMachineConfig($id: ID!, $versionId: ID!) { | ||
getXStateMachineConfig(id: $id, versionId: $versionId) | ||
} | ||
`; | ||
exports.CreateStateMachineConfigDocument = ` | ||
mutation createStateMachineConfig($input: CreateStateMachineConfigInput!) { | ||
createStateMachineConfig(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.UpdateStateMachineConfigDocument = ` | ||
mutation updateStateMachineConfig($input: UpdateStateMachineConfigInput!) { | ||
updateStateMachineConfig(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.RemoveStateMachineConfigDocument = ` | ||
mutation removeStateMachineConfig($input: RemoveStateMachineConfigInput!) { | ||
removeStateMachineConfig(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.EditStateMachineConfigDocument = ` | ||
mutation editStateMachineConfig($input: EditStateMachineConfigInput!) { | ||
editStateMachineConfig(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.PublishStateMachineConfigDocument = ` | ||
mutation publishStateMachineConfig($input: PublishStateMachineConfigInput!) { | ||
publishStateMachineConfig(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.CreateStateMachineConfigStateDocument = ` | ||
mutation createStateMachineConfigState($input: CreateStateMachineConfigStateInput!) { | ||
createStateMachineConfigState(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.UpdateStateMachineConfigStateDocument = ` | ||
mutation updateStateMachineConfigState($input: UpdateStateMachineConfigStateInput!) { | ||
updateStateMachineConfigState(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
exports.RemoveStateMachineConfigStateDocument = ` | ||
mutation removeStateMachineConfigState($input: RemoveStateMachineConfigStateInput!) { | ||
removeStateMachineConfigState(input: $input) { | ||
...stateMachineConfig | ||
} | ||
} | ||
${exports.StateMachineConfigFragmentDoc}`; | ||
function getSdk(requester) { | ||
@@ -329,2 +439,38 @@ return { | ||
return requester(exports.GetStateMachineDocument, variables, options); | ||
}, | ||
listLiveStateMachineConfigs(variables, options) { | ||
return requester(exports.ListLiveStateMachineConfigsDocument, variables, options); | ||
}, | ||
listDraftStateMachineConfigs(variables, options) { | ||
return requester(exports.ListDraftStateMachineConfigsDocument, variables, options); | ||
}, | ||
listStateMachineConfigVersions(variables, options) { | ||
return requester(exports.ListStateMachineConfigVersionsDocument, variables, options); | ||
}, | ||
getXStateMachineConfig(variables, options) { | ||
return requester(exports.GetXStateMachineConfigDocument, variables, options); | ||
}, | ||
createStateMachineConfig(variables, options) { | ||
return requester(exports.CreateStateMachineConfigDocument, variables, options); | ||
}, | ||
updateStateMachineConfig(variables, options) { | ||
return requester(exports.UpdateStateMachineConfigDocument, variables, options); | ||
}, | ||
removeStateMachineConfig(variables, options) { | ||
return requester(exports.RemoveStateMachineConfigDocument, variables, options); | ||
}, | ||
editStateMachineConfig(variables, options) { | ||
return requester(exports.EditStateMachineConfigDocument, variables, options); | ||
}, | ||
publishStateMachineConfig(variables, options) { | ||
return requester(exports.PublishStateMachineConfigDocument, variables, options); | ||
}, | ||
createStateMachineConfigState(variables, options) { | ||
return requester(exports.CreateStateMachineConfigStateDocument, variables, options); | ||
}, | ||
updateStateMachineConfigState(variables, options) { | ||
return requester(exports.UpdateStateMachineConfigStateDocument, variables, options); | ||
}, | ||
removeStateMachineConfigState(variables, options) { | ||
return requester(exports.RemoveStateMachineConfigStateDocument, variables, options); | ||
} | ||
@@ -331,0 +477,0 @@ }; |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
Set: { | ||
input: any; | ||
output: any; | ||
input: Set<any>; | ||
output: any[]; | ||
}; | ||
@@ -77,0 +77,0 @@ URL: { |
@@ -73,4 +73,4 @@ export type Maybe<T> = T; | ||
Set: { | ||
input: any; | ||
output: any; | ||
input: Set<any>; | ||
output: any[]; | ||
}; | ||
@@ -77,0 +77,0 @@ URL: { |
195420
3
4394
- Removedcross-fetch@^3.1.8
- Removedgraphql-tag@^2.12.6
- Removedcross-fetch@3.2.0(transitive)
- Removedgraphql-tag@2.12.6(transitive)
- Removednode-fetch@2.7.0(transitive)
- Removedtr46@0.0.3(transitive)
- Removedtslib@2.8.1(transitive)
- Removedwebidl-conversions@3.0.1(transitive)
- Removedwhatwg-url@5.0.0(transitive)