@droz-js/sdk
Advanced tools
Comparing version 0.3.3 to 0.3.4
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -67,3 +67,3 @@ "use strict"; | ||
const [authorization, tenant] = await Promise.all([ | ||
config_1.DrozSdk.getAuthorization(this.authorization), | ||
config_1.DrozSdk.getAuthorization(this.authorization), // | ||
config_1.DrozSdk.getTenantConfig(this.tenant) | ||
@@ -70,0 +70,0 @@ ]); |
@@ -17,3 +17,3 @@ "use strict"; | ||
const [tenant, authorization] = await Promise.all([ | ||
config_1.DrozSdk.getTenantConfig(), | ||
config_1.DrozSdk.getTenantConfig(), // | ||
config_1.DrozSdk.getAuthorization() | ||
@@ -20,0 +20,0 @@ ]); |
@@ -8,2 +8,19 @@ export * from './sdks/drozcommons'; | ||
} & { | ||
getAuthInfo(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetAuthInfoQuery>; | ||
listAccounts(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListAccountsQuery>; | ||
listGitRepositories(variables?: import("./sdks/drozcommons").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitRepositoriesQuery>; | ||
listGitBranches(variables: import("./sdks/drozcommons").Exact<{ | ||
gitRepositoryId: string; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListGitBranchesQuery>; | ||
deploymentLogs(variables: import("./sdks/drozcommons").Exact<{ | ||
tenantId: string; | ||
deploymentId: string; | ||
next?: object; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").DeploymentLogsQuery>; | ||
listServices(variables: import("./sdks/drozcommons").Exact<{ | ||
@@ -15,6 +32,17 @@ tenantId: string; | ||
withServices?: boolean; | ||
withDeployments?: boolean; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").GetTenantQuery>; | ||
listTenants(variables?: import("./sdks/drozcommons").Exact<{ | ||
withServices?: boolean; | ||
withDeployments?: boolean; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").ListTenantsQuery>; | ||
createTenant(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").CreateTenantInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").CreateTenantMutation>; | ||
updateTenant(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").UpdateTenantInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").UpdateTenantMutation>; | ||
removeTenant(variables: import("./sdks/drozcommons").Exact<{ | ||
input: import("./sdks/drozcommons").RemoveTenantInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozcommons").RemoveTenantMutation>; | ||
}; |
@@ -6,2 +6,17 @@ export * from './sdks/drozchat'; | ||
} & { | ||
getDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
id: string; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatChannelQuery>; | ||
listDrozChatChannels(variables?: import("./sdks/drozchat").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatChannelsQuery>; | ||
createDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").CreateDrozChatChannelInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatChannelMutation>; | ||
updateDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").UpdateDrozChatChannelInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateDrozChatChannelMutation>; | ||
removeDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").RemoveDrozChatChannelInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelMutation>; | ||
getTicket(variables: import("./sdks/drozchat").Exact<{ | ||
@@ -8,0 +23,0 @@ id: string; |
@@ -8,2 +8,17 @@ export * from './sdks/drozchat'; | ||
} & { | ||
getDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
id: string; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").GetDrozChatChannelQuery>; | ||
listDrozChatChannels(variables?: import("./sdks/drozchat").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").ListDrozChatChannelsQuery>; | ||
createDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").CreateDrozChatChannelInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").CreateDrozChatChannelMutation>; | ||
updateDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").UpdateDrozChatChannelInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").UpdateDrozChatChannelMutation>; | ||
removeDrozChatChannel(variables: import("./sdks/drozchat").Exact<{ | ||
input: import("./sdks/drozchat").RemoveDrozChatChannelInput; | ||
}>, options?: unknown): Promise<import("./sdks/drozchat").RemoveDrozChatChannelMutation>; | ||
getTicket(variables: import("./sdks/drozchat").Exact<{ | ||
@@ -10,0 +25,0 @@ id: string; |
@@ -105,2 +105,8 @@ export * from './sdks/nucleus'; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").RemoveCronJobMutation>; | ||
listSystemRoles(variables?: import("./sdks/nucleus").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").ListSystemRolesQuery>; | ||
getSystemRole(variables: import("./sdks/nucleus").Exact<{ | ||
id: string; | ||
}>, options?: unknown): Promise<import("./sdks/nucleus").GetSystemRoleQuery>; | ||
startSession(variables: import("./sdks/nucleus").Exact<{ | ||
@@ -107,0 +113,0 @@ input: import("./sdks/nucleus").StartSessionInput; |
@@ -104,3 +104,7 @@ export type Maybe<T> = T; | ||
}; | ||
export type CreateDrozChatChannelInput = { | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type CreateTicketInput = { | ||
channelId: Scalars['ID']['input']; | ||
customerId: Scalars['ID']['input']; | ||
@@ -121,2 +125,8 @@ subject: Scalars['String']['input']; | ||
}; | ||
export type DrozChatChannel = { | ||
createdAt: Scalars['DateTime']['output']; | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
updatedAt: Scalars['DateTime']['output']; | ||
}; | ||
export type DrozChatCustomer = { | ||
@@ -137,6 +147,9 @@ createdAt: Scalars['String']['output']; | ||
closeTicket: Ticket; | ||
createDrozChatChannel?: Maybe<DrozChatChannel>; | ||
createTicket: Ticket; | ||
createTicketMessage: TicketMessage; | ||
markTicketMessagesAsRead?: Maybe<Scalars['Void']['output']>; | ||
removeDrozChatChannel?: Maybe<DrozChatChannel>; | ||
unassignTicket: Ticket; | ||
updateDrozChatChannel?: Maybe<DrozChatChannel>; | ||
version?: Maybe<Scalars['String']['output']>; | ||
@@ -153,2 +166,5 @@ }; | ||
}; | ||
export type MutationCreateDrozChatChannelArgs = { | ||
input: CreateDrozChatChannelInput; | ||
}; | ||
export type MutationCreateTicketArgs = { | ||
@@ -163,5 +179,11 @@ input: CreateTicketInput; | ||
}; | ||
export type MutationRemoveDrozChatChannelArgs = { | ||
input: RemoveDrozChatChannelInput; | ||
}; | ||
export type MutationUnassignTicketArgs = { | ||
input: UnassignTicketInput; | ||
}; | ||
export type MutationUpdateDrozChatChannelArgs = { | ||
input: UpdateDrozChatChannelInput; | ||
}; | ||
export type PageInfo = { | ||
@@ -173,5 +195,7 @@ hasNext: Scalars['Boolean']['output']; | ||
app?: Maybe<Scalars['DRN']['output']>; | ||
getDrozChatChannel?: Maybe<DrozChatChannel>; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
getTicket?: Maybe<Ticket>; | ||
getWsEndpoint?: Maybe<Scalars['String']['output']>; | ||
listDrozChatChannels: Array<DrozChatChannel>; | ||
listTicketMessages: TicketMessagesConnection; | ||
@@ -185,2 +209,5 @@ listTickets: TicketsConnection; | ||
}; | ||
export type QueryGetDrozChatChannelArgs = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type QueryGetTicketArgs = { | ||
@@ -210,2 +237,5 @@ id: Scalars['ID']['input']; | ||
}; | ||
export type RemoveDrozChatChannelInput = { | ||
id: Scalars['ID']['input']; | ||
}; | ||
export type Subscription = { | ||
@@ -229,3 +259,4 @@ onTicketClosed: TicketSubscription; | ||
assigneeId?: Maybe<Scalars['ID']['output']>; | ||
channel?: Maybe<TicketChannel>; | ||
channel: DrozChatChannel; | ||
channelId: Scalars['ID']['output']; | ||
createdAt: Scalars['DateTime']['output']; | ||
@@ -242,2 +273,3 @@ customer: DrozChatCustomer; | ||
subject?: Maybe<Scalars['String']['output']>; | ||
triggerApp?: Maybe<TicketTriggerApp>; | ||
triggerDrn?: Maybe<Scalars['DRN']['output']>; | ||
@@ -247,8 +279,2 @@ unreadMessagesCount: Scalars['Int']['output']; | ||
}; | ||
export type TicketChannel = { | ||
appId?: Maybe<Scalars['ID']['output']>; | ||
appName?: Maybe<Scalars['String']['output']>; | ||
drn?: Maybe<Scalars['DRN']['output']>; | ||
name?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type TicketMessage = { | ||
@@ -300,2 +326,8 @@ content: Scalars['String']['output']; | ||
}; | ||
export type TicketTriggerApp = { | ||
appId?: Maybe<Scalars['ID']['output']>; | ||
appName?: Maybe<Scalars['String']['output']>; | ||
drn?: Maybe<Scalars['DRN']['output']>; | ||
name?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type TicketsConnection = { | ||
@@ -307,2 +339,3 @@ nodes: Array<Ticket>; | ||
Any = "Any", | ||
DrozChatChannels = "DrozChatChannels", | ||
GraphqlConnections = "GraphqlConnections", | ||
@@ -317,9 +350,44 @@ GraphqlSubscriptions = "GraphqlSubscriptions", | ||
}; | ||
export type UpdateDrozChatChannelInput = { | ||
id: Scalars['ID']['input']; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
}; | ||
export type DrozChatChannelFragment = Pick<DrozChatChannel, 'id' | 'name' | 'createdAt' | 'updatedAt'>; | ||
export type GetDrozChatChannelQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type GetDrozChatChannelQuery = { | ||
getDrozChatChannel?: Maybe<DrozChatChannelFragment>; | ||
}; | ||
export type ListDrozChatChannelsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListDrozChatChannelsQuery = { | ||
listDrozChatChannels: Array<DrozChatChannelFragment>; | ||
}; | ||
export type CreateDrozChatChannelMutationVariables = Exact<{ | ||
input: CreateDrozChatChannelInput; | ||
}>; | ||
export type CreateDrozChatChannelMutation = { | ||
createDrozChatChannel?: Maybe<DrozChatChannelFragment>; | ||
}; | ||
export type UpdateDrozChatChannelMutationVariables = Exact<{ | ||
input: UpdateDrozChatChannelInput; | ||
}>; | ||
export type UpdateDrozChatChannelMutation = { | ||
updateDrozChatChannel?: Maybe<DrozChatChannelFragment>; | ||
}; | ||
export type RemoveDrozChatChannelMutationVariables = Exact<{ | ||
input: RemoveDrozChatChannelInput; | ||
}>; | ||
export type RemoveDrozChatChannelMutation = { | ||
removeDrozChatChannel?: Maybe<DrozChatChannelFragment>; | ||
}; | ||
export type CustomerFragment = Pick<DrozChatCustomer, 'id' | 'name' | 'email' | 'phone' | 'createdAt' | 'updatedAt'>; | ||
export type DrozChatAgentFragment = Pick<DrozChatAgent, 'id' | 'name'>; | ||
export type DrozChatChannelFragment = Pick<TicketChannel, 'drn' | 'name' | 'appId' | 'appName'>; | ||
export type TicketFragment = (Pick<Ticket, 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & { | ||
export type TicketTriggerAppFragment = Pick<TicketTriggerApp, 'drn' | 'name' | 'appId' | 'appName'>; | ||
export type TicketFragment = (Pick<Ticket, 'channelId' | 'id' | 'state' | 'status' | 'priority' | 'messagesCount' | 'lastMessage' | 'lastMessageAt' | 'unreadMessagesCount' | 'createdAt' | 'updatedAt'> & { | ||
assignee?: Maybe<DrozChatAgentFragment>; | ||
customer: CustomerFragment; | ||
channel?: Maybe<DrozChatChannelFragment>; | ||
triggerApp?: Maybe<TicketTriggerAppFragment>; | ||
}); | ||
@@ -453,26 +521,37 @@ export type TicketMessageFragment = Pick<TicketMessage, 'id' | 'ticketId' | 'sentBy' | 'type' | 'contentType' | 'content' | 'createdAt' | 'updatedAt'>; | ||
}; | ||
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const DrozChatAgentFragmentDoc = "\n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n "; | ||
export declare const CustomerFragmentDoc = "\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n "; | ||
export declare const DrozChatChannelFragmentDoc = "\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const TicketTriggerAppFragmentDoc = "\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const TicketFragmentDoc = "\n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const TicketMessageFragmentDoc = "\n fragment ticketMessage on TicketMessage {\n id\n ticketId\n sentBy\n type\n contentType\n content\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const GetDrozChatChannelDocument = "\n query getDrozChatChannel($id: ID!) {\n getDrozChatChannel(id: $id) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListDrozChatChannelsDocument = "\n query listDrozChatChannels {\n listDrozChatChannels {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateDrozChatChannelDocument = "\n mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) {\n createDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateDrozChatChannelDocument = "\n mutation updateDrozChatChannel($input: UpdateDrozChatChannelInput!) {\n updateDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveDrozChatChannelDocument = "\n mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) {\n removeDrozChatChannel(input: $input) {\n ...drozChatChannel\n }\n}\n \n fragment drozChatChannel on DrozChatChannel {\n id\n name\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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 content\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 content\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\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 ...drozChatAgent\n }\n customer {\n ...customer\n }\n channel {\n ...drozChatChannel\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment drozChatChannel on TicketChannel {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const AssignTicketDocument = "\n mutation assignTicket($input: AssignTicketInput!) {\n assignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const AssignTicketMyselfDocument = "\n mutation assignTicketMyself($input: AssignTicketMyselfInput!) {\n assignTicketMyself(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const UnassignTicketDocument = "\n mutation unassignTicket($input: UnassignTicketInput!) {\n unassignTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
export declare const CloseTicketDocument = "\n mutation closeTicket($input: CloseTicketInput!) {\n closeTicket(input: $input) {\n ...ticket\n }\n}\n \n fragment ticket on Ticket {\n channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 channelId\n id\n state\n status\n priority\n assignee {\n ...drozChatAgent\n }\n customer {\n ...customer\n }\n triggerApp {\n ...ticketTriggerApp\n }\n messagesCount\n lastMessage\n lastMessageAt\n unreadMessagesCount\n createdAt\n updatedAt\n}\n \n fragment drozChatAgent on DrozChatAgent {\n id\n name\n}\n \n\n fragment customer on DrozChatCustomer {\n id\n name\n email\n phone\n createdAt\n updatedAt\n}\n \n\n fragment ticketTriggerApp on TicketTriggerApp {\n drn\n name\n appId\n appName\n}\n "; | ||
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 content\n createdAt\n updatedAt\n}\n "; | ||
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
export declare function getSdk<C, E>(requester: Requester<C, E>): { | ||
getDrozChatChannel(variables: GetDrozChatChannelQueryVariables, options?: C): Promise<GetDrozChatChannelQuery>; | ||
listDrozChatChannels(variables?: ListDrozChatChannelsQueryVariables, options?: C): Promise<ListDrozChatChannelsQuery>; | ||
createDrozChatChannel(variables: CreateDrozChatChannelMutationVariables, options?: C): Promise<CreateDrozChatChannelMutation>; | ||
updateDrozChatChannel(variables: UpdateDrozChatChannelMutationVariables, options?: C): Promise<UpdateDrozChatChannelMutation>; | ||
removeDrozChatChannel(variables: RemoveDrozChatChannelMutationVariables, options?: C): Promise<RemoveDrozChatChannelMutation>; | ||
getTicket(variables: GetTicketQueryVariables, options?: C): Promise<GetTicketQuery>; | ||
@@ -479,0 +558,0 @@ listTickets(variables: ListTicketsQueryVariables, options?: C): Promise<ListTicketsQuery>; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.OnTicketMessageDocument = exports.OnTicketClosedDocument = exports.OnTicketInProgressMineDocument = exports.OnTicketInQueueDocument = exports.CloseTicketDocument = exports.UnassignTicketDocument = exports.AssignTicketMyselfDocument = exports.AssignTicketDocument = exports.CreateTicketMessageDocument = exports.MarkTicketMessagesAsReadDocument = exports.CreateTicketDocument = exports.ListTicketMessagesDocument = exports.ListTicketsClosedDocument = exports.ListTicketsInProgressMineDocument = exports.ListTicketsInQueueDocument = exports.ListTicketsDocument = exports.GetTicketDocument = exports.RemoveDrozChatChannelDocument = exports.UpdateDrozChatChannelDocument = exports.CreateDrozChatChannelDocument = exports.ListDrozChatChannelsDocument = exports.GetDrozChatChannelDocument = exports.TicketMessageFragmentDoc = exports.TicketFragmentDoc = exports.TicketTriggerAppFragmentDoc = exports.CustomerFragmentDoc = exports.DrozChatAgentFragmentDoc = exports.DrozChatChannelFragmentDoc = exports.Typenames = exports.TicketStatus = exports.TicketState = exports.TicketPriority = exports.TicketMessageType = exports.SubscriptionAction = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -48,2 +48,3 @@ (function (AppInstanceStatus) { | ||
Typenames["Any"] = "Any"; | ||
Typenames["DrozChatChannels"] = "DrozChatChannels"; | ||
Typenames["GraphqlConnections"] = "GraphqlConnections"; | ||
@@ -55,2 +56,10 @@ Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions"; | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
exports.DrozChatChannelFragmentDoc = ` | ||
fragment drozChatChannel on DrozChatChannel { | ||
id | ||
name | ||
createdAt | ||
updatedAt | ||
} | ||
`; | ||
exports.DrozChatAgentFragmentDoc = ` | ||
@@ -72,4 +81,4 @@ fragment drozChatAgent on DrozChatAgent { | ||
`; | ||
exports.DrozChatChannelFragmentDoc = ` | ||
fragment drozChatChannel on TicketChannel { | ||
exports.TicketTriggerAppFragmentDoc = ` | ||
fragment ticketTriggerApp on TicketTriggerApp { | ||
drn | ||
@@ -83,2 +92,3 @@ name | ||
fragment ticket on Ticket { | ||
channelId | ||
id | ||
@@ -94,4 +104,4 @@ state | ||
} | ||
channel { | ||
...drozChatChannel | ||
triggerApp { | ||
...ticketTriggerApp | ||
} | ||
@@ -107,3 +117,3 @@ messagesCount | ||
${exports.CustomerFragmentDoc} | ||
${exports.DrozChatChannelFragmentDoc}`; | ||
${exports.TicketTriggerAppFragmentDoc}`; | ||
exports.TicketMessageFragmentDoc = ` | ||
@@ -121,2 +131,37 @@ fragment ticketMessage on TicketMessage { | ||
`; | ||
exports.GetDrozChatChannelDocument = ` | ||
query getDrozChatChannel($id: ID!) { | ||
getDrozChatChannel(id: $id) { | ||
...drozChatChannel | ||
} | ||
} | ||
${exports.DrozChatChannelFragmentDoc}`; | ||
exports.ListDrozChatChannelsDocument = ` | ||
query listDrozChatChannels { | ||
listDrozChatChannels { | ||
...drozChatChannel | ||
} | ||
} | ||
${exports.DrozChatChannelFragmentDoc}`; | ||
exports.CreateDrozChatChannelDocument = ` | ||
mutation createDrozChatChannel($input: CreateDrozChatChannelInput!) { | ||
createDrozChatChannel(input: $input) { | ||
...drozChatChannel | ||
} | ||
} | ||
${exports.DrozChatChannelFragmentDoc}`; | ||
exports.UpdateDrozChatChannelDocument = ` | ||
mutation updateDrozChatChannel($input: UpdateDrozChatChannelInput!) { | ||
updateDrozChatChannel(input: $input) { | ||
...drozChatChannel | ||
} | ||
} | ||
${exports.DrozChatChannelFragmentDoc}`; | ||
exports.RemoveDrozChatChannelDocument = ` | ||
mutation removeDrozChatChannel($input: RemoveDrozChatChannelInput!) { | ||
removeDrozChatChannel(input: $input) { | ||
...drozChatChannel | ||
} | ||
} | ||
${exports.DrozChatChannelFragmentDoc}`; | ||
exports.GetTicketDocument = ` | ||
@@ -283,2 +328,17 @@ query getTicket($id: ID!) { | ||
return { | ||
getDrozChatChannel(variables, options) { | ||
return requester(exports.GetDrozChatChannelDocument, variables, options); | ||
}, | ||
listDrozChatChannels(variables, options) { | ||
return requester(exports.ListDrozChatChannelsDocument, variables, options); | ||
}, | ||
createDrozChatChannel(variables, options) { | ||
return requester(exports.CreateDrozChatChannelDocument, variables, options); | ||
}, | ||
updateDrozChatChannel(variables, options) { | ||
return requester(exports.UpdateDrozChatChannelDocument, variables, options); | ||
}, | ||
removeDrozChatChannel(variables, options) { | ||
return requester(exports.RemoveDrozChatChannelDocument, variables, options); | ||
}, | ||
getTicket(variables, options) { | ||
@@ -285,0 +345,0 @@ return requester(exports.GetTicketDocument, variables, options); |
@@ -94,5 +94,96 @@ export type Maybe<T> = T; | ||
} | ||
export type AuthInfo = { | ||
authenticationEndpoint: Scalars['String']['output']; | ||
cognitoConfig: CognitoConfig; | ||
jwtIssuer: Scalars['String']['output']; | ||
loginUrl: Scalars['String']['output']; | ||
logoutUrl: Scalars['String']['output']; | ||
}; | ||
export type AwsAccount = { | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
tenants: Array<Maybe<Tenant>>; | ||
tenantsCount: Scalars['Int']['output']; | ||
}; | ||
export type CognitoConfig = { | ||
region: Scalars['String']['output']; | ||
userPoolId: Scalars['String']['output']; | ||
userPoolWebClientId: Scalars['String']['output']; | ||
}; | ||
export type CreateTenantInput = { | ||
accountId: Scalars['ID']['input']; | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type DeployInput = { | ||
branch: Scalars['String']['input']; | ||
gitRepository: Scalars['String']['input']; | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type Deployment = { | ||
branch: Scalars['String']['output']; | ||
createdAt: Scalars['DateTime']['output']; | ||
deployedVersion?: Maybe<Scalars['String']['output']>; | ||
gitRepository: Scalars['String']['output']; | ||
id: Scalars['ID']['output']; | ||
message?: Maybe<Scalars['String']['output']>; | ||
status: DeploymentStatus; | ||
tenantId: Scalars['ID']['output']; | ||
updatedAt: Scalars['DateTime']['output']; | ||
}; | ||
export declare enum DeploymentCommands { | ||
Deploy = "DEPLOY", | ||
Destroy = "DESTROY" | ||
} | ||
export type DeploymentLog = { | ||
deploymentId: Scalars['ID']['output']; | ||
id: Scalars['ID']['output']; | ||
message: Scalars['String']['output']; | ||
timestamp: Scalars['DateTime']['output']; | ||
}; | ||
export type DeploymentLogConnection = { | ||
nodes: Array<DeploymentLog>; | ||
pageInfo: PageInfo; | ||
}; | ||
export declare enum DeploymentStatus { | ||
Failed = "FAILED", | ||
InProgress = "IN_PROGRESS", | ||
InQueue = "IN_QUEUE", | ||
Succeeded = "SUCCEEDED" | ||
} | ||
export type DestroyInput = { | ||
branch: Scalars['String']['input']; | ||
gitRepository: Scalars['String']['input']; | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type GitBranch = { | ||
name: Scalars['String']['output']; | ||
}; | ||
export type GitRepository = { | ||
id: Scalars['ID']['output']; | ||
name: Scalars['String']['output']; | ||
}; | ||
export type Mutation = { | ||
createTenant: Tenant; | ||
deploy: Deployment; | ||
destroy: Deployment; | ||
removeTenant: Tenant; | ||
updateTenant: Tenant; | ||
version?: Maybe<Scalars['String']['output']>; | ||
}; | ||
export type MutationCreateTenantArgs = { | ||
input: CreateTenantInput; | ||
}; | ||
export type MutationDeployArgs = { | ||
input: DeployInput; | ||
}; | ||
export type MutationDestroyArgs = { | ||
input: DestroyInput; | ||
}; | ||
export type MutationRemoveTenantArgs = { | ||
input: RemoveTenantInput; | ||
}; | ||
export type MutationUpdateTenantArgs = { | ||
input: UpdateTenantInput; | ||
}; | ||
export type PageInfo = { | ||
@@ -104,4 +195,9 @@ hasNext: Scalars['Boolean']['output']; | ||
app?: Maybe<Scalars['DRN']['output']>; | ||
authInfo?: Maybe<AuthInfo>; | ||
deploymentLogs: DeploymentLogConnection; | ||
getHttpEndpoint?: Maybe<Scalars['String']['output']>; | ||
getTenant?: Maybe<Tenant>; | ||
listAccounts: Array<AwsAccount>; | ||
listGitBranches: Array<GitBranch>; | ||
listGitRepositories: Array<GitRepository>; | ||
listServices: Array<Maybe<Service>>; | ||
@@ -111,8 +207,19 @@ listTenants: Array<Maybe<Tenant>>; | ||
}; | ||
export type QueryDeploymentLogsArgs = { | ||
deploymentId?: InputMaybe<Scalars['ID']['input']>; | ||
next?: InputMaybe<Scalars['Base64']['input']>; | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type QueryGetTenantArgs = { | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type QueryListGitBranchesArgs = { | ||
gitRepositoryId: Scalars['ID']['input']; | ||
}; | ||
export type QueryListServicesArgs = { | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type RemoveTenantInput = { | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type Service = { | ||
@@ -128,2 +235,5 @@ accountId: Scalars['ID']['output']; | ||
createdAt: Scalars['DateTime']['output']; | ||
deployedVersions?: Maybe<Scalars['JSON']['output']>; | ||
deployments: Array<Deployment>; | ||
disabled?: Maybe<Scalars['Boolean']['output']>; | ||
name?: Maybe<Scalars['String']['output']>; | ||
@@ -139,2 +249,47 @@ services: Array<Maybe<Service>>; | ||
} | ||
export type UpdateTenantInput = { | ||
name?: InputMaybe<Scalars['String']['input']>; | ||
tenantId: Scalars['ID']['input']; | ||
}; | ||
export type GetAuthInfoQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type GetAuthInfoQuery = { | ||
authInfo?: Maybe<(Pick<AuthInfo, 'authenticationEndpoint' | 'jwtIssuer' | 'loginUrl' | 'logoutUrl'> & { | ||
cognitoConfig: Pick<CognitoConfig, 'region' | 'userPoolId' | 'userPoolWebClientId'>; | ||
})>; | ||
}; | ||
export type DeploymentFragment = Pick<Deployment, 'id' | 'tenantId' | 'gitRepository' | 'branch' | 'status' | 'message' | 'deployedVersion' | 'createdAt' | 'updatedAt'>; | ||
export type GitRepositoryFragment = Pick<GitRepository, 'id' | 'name'>; | ||
export type GitBranchFragment = Pick<GitBranch, 'name'>; | ||
export type AwsAccountFragment = Pick<AwsAccount, 'id' | 'name' | 'tenantsCount'>; | ||
export type ListAccountsQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListAccountsQuery = { | ||
listAccounts: Array<AwsAccountFragment>; | ||
}; | ||
export type ListGitRepositoriesQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListGitRepositoriesQuery = { | ||
listGitRepositories: Array<GitRepositoryFragment>; | ||
}; | ||
export type ListGitBranchesQueryVariables = Exact<{ | ||
gitRepositoryId: Scalars['ID']['input']; | ||
}>; | ||
export type ListGitBranchesQuery = { | ||
listGitBranches: Array<Pick<GitBranch, 'name'>>; | ||
}; | ||
export type DeploymentLogsQueryVariables = Exact<{ | ||
tenantId: Scalars['ID']['input']; | ||
deploymentId: Scalars['ID']['input']; | ||
next?: InputMaybe<Scalars['Base64']['input']>; | ||
}>; | ||
export type DeploymentLogsQuery = { | ||
deploymentLogs: { | ||
nodes: Array<Pick<DeploymentLog, 'id' | 'deploymentId' | 'message' | 'timestamp'>>; | ||
pageInfo: Pick<PageInfo, 'hasNext' | 'next'>; | ||
}; | ||
}; | ||
export type ServiceFragment = Pick<Service, 'accountId' | 'tenantId' | 'serviceId' | 'type' | 'endpoint'>; | ||
@@ -147,6 +302,7 @@ export type ListServicesQueryVariables = Exact<{ | ||
}; | ||
export type TenantFragment = Pick<Tenant, 'tenantId' | 'name' | 'createdAt' | 'updatedAt'>; | ||
export type TenantFragment = Pick<Tenant, 'accountId' | 'tenantId' | 'name' | 'deployedVersions' | 'createdAt' | 'updatedAt'>; | ||
export type GetTenantQueryVariables = Exact<{ | ||
tenantId: Scalars['ID']['input']; | ||
withServices?: InputMaybe<Scalars['Boolean']['input']>; | ||
withDeployments?: InputMaybe<Scalars['Boolean']['input']>; | ||
}>; | ||
@@ -156,2 +312,3 @@ export type GetTenantQuery = { | ||
services?: Array<Maybe<ServiceFragment>>; | ||
deployments?: Array<DeploymentFragment>; | ||
} & TenantFragment)>; | ||
@@ -161,2 +318,3 @@ }; | ||
withServices?: InputMaybe<Scalars['Boolean']['input']>; | ||
withDeployments?: InputMaybe<Scalars['Boolean']['input']>; | ||
}>; | ||
@@ -166,16 +324,55 @@ export type ListTenantsQuery = { | ||
services?: Array<Maybe<ServiceFragment>>; | ||
deployments?: Array<DeploymentFragment>; | ||
} & TenantFragment)>>; | ||
}; | ||
export type CreateTenantMutationVariables = Exact<{ | ||
input: CreateTenantInput; | ||
}>; | ||
export type CreateTenantMutation = { | ||
createTenant: TenantFragment; | ||
}; | ||
export type UpdateTenantMutationVariables = Exact<{ | ||
input: UpdateTenantInput; | ||
}>; | ||
export type UpdateTenantMutation = { | ||
updateTenant: TenantFragment; | ||
}; | ||
export type RemoveTenantMutationVariables = Exact<{ | ||
input: RemoveTenantInput; | ||
}>; | ||
export type RemoveTenantMutation = { | ||
removeTenant: TenantFragment; | ||
}; | ||
export declare const DeploymentFragmentDoc = "\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n "; | ||
export declare const GitRepositoryFragmentDoc = "\n fragment gitRepository on GitRepository {\n id\n name\n}\n "; | ||
export declare const GitBranchFragmentDoc = "\n fragment gitBranch on GitBranch {\n name\n}\n "; | ||
export declare const AwsAccountFragmentDoc = "\n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n "; | ||
export declare const ServiceFragmentDoc = "\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n "; | ||
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n "; | ||
export declare const TenantFragmentDoc = "\n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetAuthInfoDocument = "\n query getAuthInfo {\n authInfo {\n authenticationEndpoint\n jwtIssuer\n loginUrl\n logoutUrl\n cognitoConfig {\n region\n userPoolId\n userPoolWebClientId\n }\n }\n}\n "; | ||
export declare const ListAccountsDocument = "\n query listAccounts {\n listAccounts {\n ...awsAccount\n }\n}\n \n fragment awsAccount on AwsAccount {\n id\n name\n tenantsCount\n}\n "; | ||
export declare const ListGitRepositoriesDocument = "\n query listGitRepositories {\n listGitRepositories {\n ...gitRepository\n }\n}\n \n fragment gitRepository on GitRepository {\n id\n name\n}\n "; | ||
export declare const ListGitBranchesDocument = "\n query listGitBranches($gitRepositoryId: ID!) {\n listGitBranches(gitRepositoryId: $gitRepositoryId) {\n name\n }\n}\n "; | ||
export declare const DeploymentLogsDocument = "\n query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) {\n deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) {\n nodes {\n id\n deploymentId\n message\n timestamp\n }\n pageInfo {\n hasNext\n next\n }\n }\n}\n "; | ||
export declare const ListServicesDocument = "\n query listServices($tenantId: ID!) {\n listServices(tenantId: $tenantId) {\n ...service\n }\n}\n \n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n "; | ||
export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n }\n}\n \n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n "; | ||
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n }\n}\n \n fragment tenant on Tenant {\n tenantId\n name\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n "; | ||
export declare const GetTenantDocument = "\n query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) {\n getTenant(tenantId: $tenantId) {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListTenantsDocument = "\n query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) {\n listTenants {\n ...tenant\n services @include(if: $withServices) {\n ...service\n }\n deployments @include(if: $withDeployments) {\n ...deployment\n }\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n \n\n fragment service on Service {\n accountId\n tenantId\n serviceId\n type\n endpoint\n}\n \n\n fragment deployment on Deployment {\n id\n tenantId\n gitRepository\n branch\n status\n message\n deployedVersion\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreateTenantDocument = "\n mutation createTenant($input: CreateTenantInput!) {\n createTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdateTenantDocument = "\n mutation updateTenant($input: UpdateTenantInput!) {\n updateTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveTenantDocument = "\n mutation removeTenant($input: RemoveTenantInput!) {\n removeTenant(input: $input) {\n ...tenant\n }\n}\n \n fragment tenant on Tenant {\n accountId\n tenantId\n name\n deployedVersions\n createdAt\n updatedAt\n}\n "; | ||
export type Requester<C = {}, E = unknown> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
export declare function getSdk<C, E>(requester: Requester<C, E>): { | ||
getAuthInfo(variables?: GetAuthInfoQueryVariables, options?: C): Promise<GetAuthInfoQuery>; | ||
listAccounts(variables?: ListAccountsQueryVariables, options?: C): Promise<ListAccountsQuery>; | ||
listGitRepositories(variables?: ListGitRepositoriesQueryVariables, options?: C): Promise<ListGitRepositoriesQuery>; | ||
listGitBranches(variables: ListGitBranchesQueryVariables, options?: C): Promise<ListGitBranchesQuery>; | ||
deploymentLogs(variables: DeploymentLogsQueryVariables, options?: C): Promise<DeploymentLogsQuery>; | ||
listServices(variables: ListServicesQueryVariables, options?: C): Promise<ListServicesQuery>; | ||
getTenant(variables: GetTenantQueryVariables, options?: C): Promise<GetTenantQuery>; | ||
listTenants(variables?: ListTenantsQueryVariables, options?: C): Promise<ListTenantsQuery>; | ||
createTenant(variables: CreateTenantMutationVariables, options?: C): Promise<CreateTenantMutation>; | ||
updateTenant(variables: UpdateTenantMutationVariables, options?: C): Promise<UpdateTenantMutation>; | ||
removeTenant(variables: RemoveTenantMutationVariables, options?: C): Promise<RemoveTenantMutation>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
export declare const serviceName = "@droz/drozcommons"; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.Typenames = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemoveTenantDocument = exports.UpdateTenantDocument = exports.CreateTenantDocument = exports.ListTenantsDocument = exports.GetTenantDocument = exports.ListServicesDocument = exports.DeploymentLogsDocument = exports.ListGitBranchesDocument = exports.ListGitRepositoriesDocument = exports.ListAccountsDocument = exports.GetAuthInfoDocument = exports.TenantFragmentDoc = exports.ServiceFragmentDoc = exports.AwsAccountFragmentDoc = exports.GitBranchFragmentDoc = exports.GitRepositoryFragmentDoc = exports.DeploymentFragmentDoc = exports.Typenames = exports.DeploymentStatus = exports.DeploymentCommands = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -11,2 +11,14 @@ (function (AppInstanceStatus) { | ||
})(AppInstanceStatus || (exports.AppInstanceStatus = AppInstanceStatus = {})); | ||
var DeploymentCommands; | ||
(function (DeploymentCommands) { | ||
DeploymentCommands["Deploy"] = "DEPLOY"; | ||
DeploymentCommands["Destroy"] = "DESTROY"; | ||
})(DeploymentCommands || (exports.DeploymentCommands = DeploymentCommands = {})); | ||
var DeploymentStatus; | ||
(function (DeploymentStatus) { | ||
DeploymentStatus["Failed"] = "FAILED"; | ||
DeploymentStatus["InProgress"] = "IN_PROGRESS"; | ||
DeploymentStatus["InQueue"] = "IN_QUEUE"; | ||
DeploymentStatus["Succeeded"] = "SUCCEEDED"; | ||
})(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {})); | ||
var Typenames; | ||
@@ -18,2 +30,33 @@ (function (Typenames) { | ||
})(Typenames || (exports.Typenames = Typenames = {})); | ||
exports.DeploymentFragmentDoc = ` | ||
fragment deployment on Deployment { | ||
id | ||
tenantId | ||
gitRepository | ||
branch | ||
status | ||
message | ||
deployedVersion | ||
createdAt | ||
updatedAt | ||
} | ||
`; | ||
exports.GitRepositoryFragmentDoc = ` | ||
fragment gitRepository on GitRepository { | ||
id | ||
name | ||
} | ||
`; | ||
exports.GitBranchFragmentDoc = ` | ||
fragment gitBranch on GitBranch { | ||
name | ||
} | ||
`; | ||
exports.AwsAccountFragmentDoc = ` | ||
fragment awsAccount on AwsAccount { | ||
id | ||
name | ||
tenantsCount | ||
} | ||
`; | ||
exports.ServiceFragmentDoc = ` | ||
@@ -30,4 +73,6 @@ fragment service on Service { | ||
fragment tenant on Tenant { | ||
accountId | ||
tenantId | ||
name | ||
deployedVersions | ||
createdAt | ||
@@ -37,2 +82,54 @@ updatedAt | ||
`; | ||
exports.GetAuthInfoDocument = ` | ||
query getAuthInfo { | ||
authInfo { | ||
authenticationEndpoint | ||
jwtIssuer | ||
loginUrl | ||
logoutUrl | ||
cognitoConfig { | ||
region | ||
userPoolId | ||
userPoolWebClientId | ||
} | ||
} | ||
} | ||
`; | ||
exports.ListAccountsDocument = ` | ||
query listAccounts { | ||
listAccounts { | ||
...awsAccount | ||
} | ||
} | ||
${exports.AwsAccountFragmentDoc}`; | ||
exports.ListGitRepositoriesDocument = ` | ||
query listGitRepositories { | ||
listGitRepositories { | ||
...gitRepository | ||
} | ||
} | ||
${exports.GitRepositoryFragmentDoc}`; | ||
exports.ListGitBranchesDocument = ` | ||
query listGitBranches($gitRepositoryId: ID!) { | ||
listGitBranches(gitRepositoryId: $gitRepositoryId) { | ||
name | ||
} | ||
} | ||
`; | ||
exports.DeploymentLogsDocument = ` | ||
query deploymentLogs($tenantId: ID!, $deploymentId: ID!, $next: Base64) { | ||
deploymentLogs(tenantId: $tenantId, deploymentId: $deploymentId, next: $next) { | ||
nodes { | ||
id | ||
deploymentId | ||
message | ||
timestamp | ||
} | ||
pageInfo { | ||
hasNext | ||
next | ||
} | ||
} | ||
} | ||
`; | ||
exports.ListServicesDocument = ` | ||
@@ -46,3 +143,3 @@ query listServices($tenantId: ID!) { | ||
exports.GetTenantDocument = ` | ||
query getTenant($tenantId: ID!, $withServices: Boolean = true) { | ||
query getTenant($tenantId: ID!, $withServices: Boolean = true, $withDeployments: Boolean = true) { | ||
getTenant(tenantId: $tenantId) { | ||
@@ -53,8 +150,12 @@ ...tenant | ||
} | ||
deployments @include(if: $withDeployments) { | ||
...deployment | ||
} | ||
} | ||
} | ||
${exports.TenantFragmentDoc} | ||
${exports.ServiceFragmentDoc}`; | ||
${exports.ServiceFragmentDoc} | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.ListTenantsDocument = ` | ||
query listTenants($withServices: Boolean = false) { | ||
query listTenants($withServices: Boolean = false, $withDeployments: Boolean = false) { | ||
listTenants { | ||
@@ -65,8 +166,48 @@ ...tenant | ||
} | ||
deployments @include(if: $withDeployments) { | ||
...deployment | ||
} | ||
} | ||
} | ||
${exports.TenantFragmentDoc} | ||
${exports.ServiceFragmentDoc}`; | ||
${exports.ServiceFragmentDoc} | ||
${exports.DeploymentFragmentDoc}`; | ||
exports.CreateTenantDocument = ` | ||
mutation createTenant($input: CreateTenantInput!) { | ||
createTenant(input: $input) { | ||
...tenant | ||
} | ||
} | ||
${exports.TenantFragmentDoc}`; | ||
exports.UpdateTenantDocument = ` | ||
mutation updateTenant($input: UpdateTenantInput!) { | ||
updateTenant(input: $input) { | ||
...tenant | ||
} | ||
} | ||
${exports.TenantFragmentDoc}`; | ||
exports.RemoveTenantDocument = ` | ||
mutation removeTenant($input: RemoveTenantInput!) { | ||
removeTenant(input: $input) { | ||
...tenant | ||
} | ||
} | ||
${exports.TenantFragmentDoc}`; | ||
function getSdk(requester) { | ||
return { | ||
getAuthInfo(variables, options) { | ||
return requester(exports.GetAuthInfoDocument, variables, options); | ||
}, | ||
listAccounts(variables, options) { | ||
return requester(exports.ListAccountsDocument, variables, options); | ||
}, | ||
listGitRepositories(variables, options) { | ||
return requester(exports.ListGitRepositoriesDocument, variables, options); | ||
}, | ||
listGitBranches(variables, options) { | ||
return requester(exports.ListGitBranchesDocument, variables, options); | ||
}, | ||
deploymentLogs(variables, options) { | ||
return requester(exports.DeploymentLogsDocument, variables, options); | ||
}, | ||
listServices(variables, options) { | ||
@@ -80,2 +221,11 @@ return requester(exports.ListServicesDocument, variables, options); | ||
return requester(exports.ListTenantsDocument, variables, options); | ||
}, | ||
createTenant(variables, options) { | ||
return requester(exports.CreateTenantDocument, variables, options); | ||
}, | ||
updateTenant(variables, options) { | ||
return requester(exports.UpdateTenantDocument, variables, options); | ||
}, | ||
removeTenant(variables, options) { | ||
return requester(exports.RemoveTenantDocument, variables, options); | ||
} | ||
@@ -82,0 +232,0 @@ }; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = 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.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = void 0; | ||
exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.ListAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateAgentDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.AppType = exports.AppInstanceStatus = 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.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = void 0; | ||
var AppInstanceStatus; | ||
@@ -141,2 +141,19 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.PolicyFragmentDoc = ` | ||
fragment policy on Policy { | ||
id | ||
action | ||
effect | ||
resource | ||
} | ||
`; | ||
exports.RoleFragmentDoc = ` | ||
fragment role on Role { | ||
id | ||
name | ||
policies { | ||
...policy | ||
} | ||
} | ||
${exports.PolicyFragmentDoc}`; | ||
exports.SessionFragmentDoc = ` | ||
@@ -472,2 +489,16 @@ fragment session on Session { | ||
${exports.CronJobFragmentDoc}`; | ||
exports.ListSystemRolesDocument = ` | ||
query listSystemRoles { | ||
listSystemRoles { | ||
...role | ||
} | ||
} | ||
${exports.RoleFragmentDoc}`; | ||
exports.GetSystemRoleDocument = ` | ||
query getSystemRole($id: ID!) { | ||
getSystemRole(id: $id) { | ||
...role | ||
} | ||
} | ||
${exports.RoleFragmentDoc}`; | ||
exports.StartSessionDocument = ` | ||
@@ -692,2 +723,8 @@ mutation startSession($input: StartSessionInput!, $withCustomer: Boolean = true) { | ||
}, | ||
listSystemRoles(variables, options) { | ||
return requester(exports.ListSystemRolesDocument, variables, options); | ||
}, | ||
getSystemRole(variables, options) { | ||
return requester(exports.GetSystemRoleDocument, variables, options); | ||
}, | ||
startSession(variables, options) { | ||
@@ -694,0 +731,0 @@ return requester(exports.StartSessionDocument, variables, options); |
Sorry, the diff of this file is too big to display
302801
6790