@droz-js/sdk
Advanced tools
Comparing version 0.6.19 to 0.6.20
{ | ||
"name": "@droz-js/sdk", | ||
"description": "Droz SDK", | ||
"version": "0.6.19", | ||
"version": "0.6.20", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "exports": { |
@@ -141,2 +141,3 @@ export type Maybe<T> = T; | ||
description?: InputMaybe<Scalars['String']['input']>; | ||
languages: Array<Scalars['String']['input']>; | ||
title: Scalars['String']['input']; | ||
@@ -181,2 +182,3 @@ }; | ||
target: Scalars['ID']['output']; | ||
targetType: Scalars['String']['output']; | ||
type: Scalars['String']['output']; | ||
@@ -190,2 +192,3 @@ uidata?: Maybe<Scalars['JSON']['output']>; | ||
target: Scalars['ID']['input']; | ||
targetType: Scalars['String']['input']; | ||
type: Scalars['String']['input']; | ||
@@ -199,5 +202,7 @@ uidata?: InputMaybe<Scalars['JSON']['input']>; | ||
createdAt: Scalars['DateTime']['output']; | ||
createdBy: Scalars['String']['output']; | ||
description?: Maybe<Scalars['String']['output']>; | ||
edges: Array<Edge>; | ||
id: Scalars['ID']['output']; | ||
languages: Array<Scalars['String']['output']>; | ||
nodes: Array<Node>; | ||
@@ -406,2 +411,3 @@ stateMachineId: Scalars['ID']['output']; | ||
id: Scalars['ID']['input']; | ||
languages?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>; | ||
nodes: Array<NodeInput>; | ||
@@ -427,4 +433,4 @@ title?: InputMaybe<Scalars['String']['input']>; | ||
}); | ||
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'type' | 'sourceHandle' | 'uidata'>; | ||
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'createdAt' | 'updatedAt'> & { | ||
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'targetType' | 'type' | 'sourceHandle' | 'uidata'>; | ||
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdBy' | 'createdAt' | 'updatedAt'> & { | ||
triggers: Array<AppAndAppInstanceFragment>; | ||
@@ -529,15 +535,15 @@ nodes: Array<NodeFragment>; | ||
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n "; | ||
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n "; | ||
export declare const GetLicenceDocument = "\n query getLicence {\n getLicence {\n tenantId\n name\n billing {\n automate {\n isEnabled\n }\n reclameaqui {\n cutoffSyncDays\n }\n }\n }\n}\n "; | ||
export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const GetFlowDocument = "\n query getFlow($id: ID!, $versionId: ID!) {\n getFlow(id: $id, versionId: $versionId) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const ListFlowsDocument = "\n query listFlows($statuses: [FlowStatus], $next: Base64) {\n listFlows(next: $next, statuses: $statuses) {\n nodes {\n ...flow\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const ListSimpleSuggestionsDocument = "\n query listSimpleSuggestions {\n listSimpleConnectionSuggestions {\n ...simpleConnectionSuggestion\n }\n}\n \n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n "; | ||
export declare const ListSimpleConnectionsDocument = "\n query listSimpleConnections($next: Base64) {\n listSimpleConnections(next: $next) {\n nodes {\n ...simpleConnection\n }\n pageInfo {\n next\n hasNext\n }\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n "; | ||
export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const CreateFlowDocument = "\n mutation createFlow($input: CreateFlowInput!) {\n createFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const EditFlowDocument = "\n mutation editFlow($input: EditFlowInput!) {\n editFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const UpdateFlowDocument = "\n mutation updateFlow($input: UpdateFlowInput!) {\n updateFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const PublishFlowDocument = "\n mutation publishFlow($input: PublishFlowInput!) {\n publishFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const RemoveFlowDocument = "\n mutation removeFlow($input: RemoveFlowInput!) {\n removeFlow(input: $input) {\n ...flow\n }\n}\n \n fragment flow on Flow {\n id\n versionId\n title\n description\n status\n languages\n createdBy\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n \n\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n \n\n fragment edge on Edge {\n id\n source\n target\n targetType\n type\n sourceHandle\n uidata\n}\n "; | ||
export declare const CreateSimpleConnectionDocument = "\n mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {\n createSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n "; | ||
@@ -544,0 +550,0 @@ export declare const RemoveSimpleConnectionDocument = "\n mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {\n removeSimpleConnection(input: $input) {\n ...simpleConnection\n }\n}\n \n fragment simpleConnection on SimpleConnection {\n id\n versionId\n title\n description\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n createdAt\n updatedAt\n}\n \n\n fragment appAndAppInstance on AppAndAppInstance {\n app {\n id\n name\n description\n }\n appInstance {\n drn\n name\n transitions\n createdAt\n updatedAt\n }\n}\n "; |
@@ -90,2 +90,3 @@ "use strict"; | ||
target | ||
targetType | ||
type | ||
@@ -103,2 +104,4 @@ sourceHandle | ||
status | ||
languages | ||
createdBy | ||
triggers { | ||
@@ -105,0 +108,0 @@ ...appAndAppInstance |
@@ -683,2 +683,36 @@ export type Maybe<T> = T; | ||
}; | ||
export type PrompInstanceFragment = (Pick<PromptInstance, 'id' | 'name' | 'variableName' | 'createdAt' | 'updatedAt'> & { | ||
validationMessages: Array<Pick<I18nText, 'lang' | 'value'>>; | ||
validations?: Maybe<Array<Pick<Validation, 'code' | 'assert' | 'max' | 'min' | 'regex'>>>; | ||
}); | ||
export type GetPromptInstanceQueryVariables = Exact<{ | ||
id: Scalars['ID']['input']; | ||
}>; | ||
export type GetPromptInstanceQuery = { | ||
getPromptInstance?: Maybe<PrompInstanceFragment>; | ||
}; | ||
export type ListPromptInstancesQueryVariables = Exact<{ | ||
[key: string]: never; | ||
}>; | ||
export type ListPromptInstancesQuery = { | ||
listPromptInstances?: Maybe<Array<Maybe<PrompInstanceFragment>>>; | ||
}; | ||
export type CreatePromptInstanceMutationVariables = Exact<{ | ||
input: CreatePromptAppInput; | ||
}>; | ||
export type CreatePromptInstanceMutation = { | ||
createPromptInstance?: Maybe<PrompInstanceFragment>; | ||
}; | ||
export type UpdatePromptInstanceMutationVariables = Exact<{ | ||
input: UpdatePromptAppInput; | ||
}>; | ||
export type UpdatePromptInstanceMutation = { | ||
updatePromptInstance?: Maybe<PrompInstanceFragment>; | ||
}; | ||
export type RemovePromptInstanceMutationVariables = Exact<{ | ||
input: RemovePromptAppInput; | ||
}>; | ||
export type RemovePromptInstanceMutation = { | ||
removePromptInstance?: Maybe<PrompInstanceFragment>; | ||
}; | ||
export declare const ChoicesInstanceFragmentDoc = "\n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
@@ -691,2 +725,3 @@ export declare const StringMatcherFragmentDoc = "\n fragment stringMatcher on StringMatcher {\n eq\n in\n ne\n}\n "; | ||
export declare const HttpInstanceFragmentDoc = "\n fragment httpInstance on HttpInstance {\n id\n name\n url\n variableName\n method\n headers\n credentialId\n credentialsHeader\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const PrompInstanceFragmentDoc = "\n fragment prompInstance on PromptInstance {\n id\n name\n validationMessages {\n lang\n value\n }\n validations {\n code\n assert\n assert\n max\n min\n regex\n }\n variableName\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetChoicesInstanceDocument = "\n query getChoicesInstance($id: ID!) {\n getChoicesInstance(id: $id) {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
@@ -712,2 +747,7 @@ export declare const ListChoicesInstancesDocument = "\n query listChoicesInstances {\n listChoicesInstances {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemoveHttpInstanceDocument = "\n mutation removeHttpInstance($id: ID!) {\n removeHttpInstance(id: $id) {\n ...httpInstance\n }\n}\n \n fragment httpInstance on HttpInstance {\n id\n name\n url\n variableName\n method\n headers\n credentialId\n credentialsHeader\n body\n createdAt\n updatedAt\n}\n "; | ||
export declare const GetPromptInstanceDocument = "\n query getPromptInstance($id: ID!) {\n getPromptInstance(id: $id) {\n ...prompInstance\n }\n}\n \n fragment prompInstance on PromptInstance {\n id\n name\n validationMessages {\n lang\n value\n }\n validations {\n code\n assert\n assert\n max\n min\n regex\n }\n variableName\n createdAt\n updatedAt\n}\n "; | ||
export declare const ListPromptInstancesDocument = "\n query listPromptInstances {\n listPromptInstances {\n ...prompInstance\n }\n}\n \n fragment prompInstance on PromptInstance {\n id\n name\n validationMessages {\n lang\n value\n }\n validations {\n code\n assert\n assert\n max\n min\n regex\n }\n variableName\n createdAt\n updatedAt\n}\n "; | ||
export declare const CreatePromptInstanceDocument = "\n mutation createPromptInstance($input: CreatePromptAppInput!) {\n createPromptInstance(input: $input) {\n ...prompInstance\n }\n}\n \n fragment prompInstance on PromptInstance {\n id\n name\n validationMessages {\n lang\n value\n }\n validations {\n code\n assert\n assert\n max\n min\n regex\n }\n variableName\n createdAt\n updatedAt\n}\n "; | ||
export declare const UpdatePromptInstanceDocument = "\n mutation updatePromptInstance($input: UpdatePromptAppInput!) {\n updatePromptInstance(input: $input) {\n ...prompInstance\n }\n}\n \n fragment prompInstance on PromptInstance {\n id\n name\n validationMessages {\n lang\n value\n }\n validations {\n code\n assert\n assert\n max\n min\n regex\n }\n variableName\n createdAt\n updatedAt\n}\n "; | ||
export declare const RemovePromptInstanceDocument = "\n mutation removePromptInstance($input: RemovePromptAppInput!) {\n removePromptInstance(input: $input) {\n ...prompInstance\n }\n}\n \n fragment prompInstance on PromptInstance {\n id\n name\n validationMessages {\n lang\n value\n }\n validations {\n code\n assert\n assert\n max\n min\n regex\n }\n variableName\n createdAt\n updatedAt\n}\n "; | ||
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>; | ||
@@ -735,4 +775,9 @@ export declare function getSdk<C>(requester: Requester<C>): { | ||
removeHttpInstance(variables: RemoveHttpInstanceMutationVariables, options?: C): Promise<RemoveHttpInstanceMutation>; | ||
getPromptInstance(variables: GetPromptInstanceQueryVariables, options?: C): Promise<GetPromptInstanceQuery>; | ||
listPromptInstances(variables?: ListPromptInstancesQueryVariables, options?: C): Promise<ListPromptInstancesQuery>; | ||
createPromptInstance(variables: CreatePromptInstanceMutationVariables, options?: C): Promise<CreatePromptInstanceMutation>; | ||
updatePromptInstance(variables: UpdatePromptInstanceMutationVariables, options?: C): Promise<UpdatePromptInstanceMutation>; | ||
removePromptInstance(variables: RemovePromptInstanceMutationVariables, options?: C): Promise<RemovePromptInstanceMutation>; | ||
}; | ||
export type Sdk = ReturnType<typeof getSdk>; | ||
export declare const serviceName = "@droz/utilities"; |
"use strict"; | ||
/* istanbul ignore file */ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.serviceName = exports.getSdk = exports.RemoveHttpInstanceDocument = exports.UpdateHttpInstanceDocument = exports.CreateHttpInstanceDocument = exports.ListHttpInstancesDocument = exports.GetHttpInstanceDocument = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.ListEchoInstancesDocument = exports.GetEchoInstanceDocument = exports.RemoveConditionalsInstanceDocument = exports.UpdateConditionalsInstanceDocument = exports.CreateConditionalsInstanceDocument = exports.ListConditionalsInstancesDocument = exports.GetConditionalsInstanceDocument = exports.RemoveChoicesInstanceDocument = exports.UpdateChoicesInstanceDocument = exports.CreateChoicesInstanceDocument = exports.ListChoicesInstancesDocument = exports.GetChoicesInstanceDocument = exports.HttpInstanceFragmentDoc = exports.EchoInstanceFragmentDoc = exports.ConditionalsInstanceFragmentDoc = exports.ConditionsFragmentDoc = exports.RecursiveConditionsFragmentDoc = exports.StringMatcherFragmentDoc = exports.ChoicesInstanceFragmentDoc = exports.Typenames = exports.HttpMethod = exports.Can = exports.Asserts = exports.AppInstanceStatus = void 0; | ||
exports.serviceName = exports.getSdk = exports.RemovePromptInstanceDocument = exports.UpdatePromptInstanceDocument = exports.CreatePromptInstanceDocument = exports.ListPromptInstancesDocument = exports.GetPromptInstanceDocument = exports.RemoveHttpInstanceDocument = exports.UpdateHttpInstanceDocument = exports.CreateHttpInstanceDocument = exports.ListHttpInstancesDocument = exports.GetHttpInstanceDocument = exports.RemoveEchoInstanceDocument = exports.UpdateEchoInstanceDocument = exports.CreateEchoInstanceDocument = exports.ListEchoInstancesDocument = exports.GetEchoInstanceDocument = exports.RemoveConditionalsInstanceDocument = exports.UpdateConditionalsInstanceDocument = exports.CreateConditionalsInstanceDocument = exports.ListConditionalsInstancesDocument = exports.GetConditionalsInstanceDocument = exports.RemoveChoicesInstanceDocument = exports.UpdateChoicesInstanceDocument = exports.CreateChoicesInstanceDocument = exports.ListChoicesInstancesDocument = exports.GetChoicesInstanceDocument = exports.PrompInstanceFragmentDoc = exports.HttpInstanceFragmentDoc = exports.EchoInstanceFragmentDoc = exports.ConditionalsInstanceFragmentDoc = exports.ConditionsFragmentDoc = exports.RecursiveConditionsFragmentDoc = exports.StringMatcherFragmentDoc = exports.ChoicesInstanceFragmentDoc = exports.Typenames = exports.HttpMethod = exports.Can = exports.Asserts = exports.AppInstanceStatus = void 0; | ||
var AppInstanceStatus; | ||
@@ -215,2 +215,23 @@ (function (AppInstanceStatus) { | ||
`; | ||
exports.PrompInstanceFragmentDoc = ` | ||
fragment prompInstance on PromptInstance { | ||
id | ||
name | ||
validationMessages { | ||
lang | ||
value | ||
} | ||
validations { | ||
code | ||
assert | ||
assert | ||
max | ||
min | ||
regex | ||
} | ||
variableName | ||
createdAt | ||
updatedAt | ||
} | ||
`; | ||
exports.GetChoicesInstanceDocument = ` | ||
@@ -371,2 +392,37 @@ query getChoicesInstance($id: ID!) { | ||
${exports.HttpInstanceFragmentDoc}`; | ||
exports.GetPromptInstanceDocument = ` | ||
query getPromptInstance($id: ID!) { | ||
getPromptInstance(id: $id) { | ||
...prompInstance | ||
} | ||
} | ||
${exports.PrompInstanceFragmentDoc}`; | ||
exports.ListPromptInstancesDocument = ` | ||
query listPromptInstances { | ||
listPromptInstances { | ||
...prompInstance | ||
} | ||
} | ||
${exports.PrompInstanceFragmentDoc}`; | ||
exports.CreatePromptInstanceDocument = ` | ||
mutation createPromptInstance($input: CreatePromptAppInput!) { | ||
createPromptInstance(input: $input) { | ||
...prompInstance | ||
} | ||
} | ||
${exports.PrompInstanceFragmentDoc}`; | ||
exports.UpdatePromptInstanceDocument = ` | ||
mutation updatePromptInstance($input: UpdatePromptAppInput!) { | ||
updatePromptInstance(input: $input) { | ||
...prompInstance | ||
} | ||
} | ||
${exports.PrompInstanceFragmentDoc}`; | ||
exports.RemovePromptInstanceDocument = ` | ||
mutation removePromptInstance($input: RemovePromptAppInput!) { | ||
removePromptInstance(input: $input) { | ||
...prompInstance | ||
} | ||
} | ||
${exports.PrompInstanceFragmentDoc}`; | ||
function getSdk(requester) { | ||
@@ -433,2 +489,17 @@ return { | ||
return requester(exports.RemoveHttpInstanceDocument, variables, options); | ||
}, | ||
getPromptInstance(variables, options) { | ||
return requester(exports.GetPromptInstanceDocument, variables, options); | ||
}, | ||
listPromptInstances(variables, options) { | ||
return requester(exports.ListPromptInstancesDocument, variables, options); | ||
}, | ||
createPromptInstance(variables, options) { | ||
return requester(exports.CreatePromptInstanceDocument, variables, options); | ||
}, | ||
updatePromptInstance(variables, options) { | ||
return requester(exports.UpdatePromptInstanceDocument, variables, options); | ||
}, | ||
removePromptInstance(variables, options) { | ||
return requester(exports.RemovePromptInstanceDocument, variables, options); | ||
} | ||
@@ -435,0 +506,0 @@ }; |
@@ -69,2 +69,17 @@ export * from './sdks/utilities'; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").RemoveHttpInstanceMutation>; | ||
getPromptInstance(variables: import("./sdks/utilities").Exact<{ | ||
id: string; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").GetPromptInstanceQuery>; | ||
listPromptInstances(variables?: import("./sdks/utilities").Exact<{ | ||
[key: string]: never; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").ListPromptInstancesQuery>; | ||
createPromptInstance(variables: import("./sdks/utilities").Exact<{ | ||
input: import("./sdks/utilities").CreatePromptAppInput; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").CreatePromptInstanceMutation>; | ||
updatePromptInstance(variables: import("./sdks/utilities").Exact<{ | ||
input: import("./sdks/utilities").UpdatePromptAppInput; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").UpdatePromptInstanceMutation>; | ||
removePromptInstance(variables: import("./sdks/utilities").Exact<{ | ||
input: import("./sdks/utilities").RemovePromptAppInput; | ||
}>, options?: unknown): Promise<import("./sdks/utilities").RemovePromptInstanceMutation>; | ||
}; |
651303
14532