@droz-js/sdk 0.6.19 → 0.6.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/sdks/droznexo.d.ts +17 -11
- package/src/sdks/droznexo.js +3 -0
- package/src/sdks/utilities.d.ts +45 -0
- package/src/sdks/utilities.js +72 -1
- package/src/utilities.d.ts +15 -0
package/package.json
CHANGED
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -138,6 +138,7 @@ export declare enum Can {
|
|
|
138
138
|
}
|
|
139
139
|
export type CreateFlowInput = {
|
|
140
140
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
141
|
+
languages: Array<Scalars['String']['input']>;
|
|
141
142
|
title: Scalars['String']['input'];
|
|
142
143
|
};
|
|
143
144
|
export type CreateSimpleConnectionInput = {
|
|
@@ -177,6 +178,7 @@ export type Edge = {
|
|
|
177
178
|
source: Scalars['ID']['output'];
|
|
178
179
|
sourceHandle: Scalars['String']['output'];
|
|
179
180
|
target: Scalars['ID']['output'];
|
|
181
|
+
targetType: Scalars['String']['output'];
|
|
180
182
|
type: Scalars['String']['output'];
|
|
181
183
|
uidata?: Maybe<Scalars['JSON']['output']>;
|
|
182
184
|
};
|
|
@@ -185,6 +187,7 @@ export type EdgeInput = {
|
|
|
185
187
|
source: Scalars['ID']['input'];
|
|
186
188
|
sourceHandle: Scalars['String']['input'];
|
|
187
189
|
target: Scalars['ID']['input'];
|
|
190
|
+
targetType: Scalars['String']['input'];
|
|
188
191
|
type: Scalars['String']['input'];
|
|
189
192
|
uidata?: InputMaybe<Scalars['JSON']['input']>;
|
|
190
193
|
};
|
|
@@ -193,9 +196,11 @@ export type EditFlowInput = {
|
|
|
193
196
|
};
|
|
194
197
|
export type Flow = {
|
|
195
198
|
createdAt: Scalars['DateTime']['output'];
|
|
199
|
+
createdBy: Scalars['String']['output'];
|
|
196
200
|
description?: Maybe<Scalars['String']['output']>;
|
|
197
201
|
edges: Array<Edge>;
|
|
198
202
|
id: Scalars['ID']['output'];
|
|
203
|
+
languages: Array<Scalars['String']['output']>;
|
|
199
204
|
nodes: Array<Node>;
|
|
200
205
|
stateMachineId: Scalars['ID']['output'];
|
|
201
206
|
status: FlowStatus;
|
|
@@ -399,6 +404,7 @@ export type UpdateFlowInput = {
|
|
|
399
404
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
400
405
|
edges: Array<EdgeInput>;
|
|
401
406
|
id: Scalars['ID']['input'];
|
|
407
|
+
languages?: InputMaybe<Array<InputMaybe<Scalars['String']['input']>>>;
|
|
402
408
|
nodes: Array<NodeInput>;
|
|
403
409
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
404
410
|
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
@@ -419,8 +425,8 @@ export type SimpleConnectionFragment = (Pick<SimpleConnection, 'id' | 'versionId
|
|
|
419
425
|
export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
|
|
420
426
|
data: AppAndAppInstanceFragment;
|
|
421
427
|
});
|
|
422
|
-
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'type' | 'sourceHandle' | 'uidata'>;
|
|
423
|
-
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'createdAt' | 'updatedAt'> & {
|
|
428
|
+
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'targetType' | 'type' | 'sourceHandle' | 'uidata'>;
|
|
429
|
+
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'status' | 'languages' | 'createdBy' | 'createdAt' | 'updatedAt'> & {
|
|
424
430
|
triggers: Array<AppAndAppInstanceFragment>;
|
|
425
431
|
nodes: Array<NodeFragment>;
|
|
426
432
|
edges: Array<EdgeFragment>;
|
|
@@ -520,19 +526,19 @@ export declare const AppAndAppInstanceFragmentDoc = "\n fragment appAndAppIns
|
|
|
520
526
|
export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\n }\n}\n ";
|
|
521
527
|
export declare const SimpleConnectionFragmentDoc = "\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 ";
|
|
522
528
|
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\n}\n ";
|
|
523
|
-
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
524
|
-
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 ";
|
|
529
|
+
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 ";
|
|
530
|
+
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 ";
|
|
525
531
|
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
|
|
526
532
|
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 ";
|
|
527
|
-
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 ";
|
|
528
|
-
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 ";
|
|
533
|
+
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 ";
|
|
534
|
+
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 ";
|
|
529
535
|
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 ";
|
|
530
536
|
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 ";
|
|
531
|
-
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 ";
|
|
532
|
-
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 ";
|
|
533
|
-
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 ";
|
|
534
|
-
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 ";
|
|
535
|
-
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 ";
|
|
537
|
+
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 ";
|
|
538
|
+
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 ";
|
|
539
|
+
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 ";
|
|
540
|
+
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 ";
|
|
541
|
+
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 ";
|
|
536
542
|
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 ";
|
|
537
543
|
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 ";
|
|
538
544
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
package/src/sdks/droznexo.js
CHANGED
|
@@ -87,6 +87,7 @@ exports.EdgeFragmentDoc = `
|
|
|
87
87
|
id
|
|
88
88
|
source
|
|
89
89
|
target
|
|
90
|
+
targetType
|
|
90
91
|
type
|
|
91
92
|
sourceHandle
|
|
92
93
|
uidata
|
|
@@ -99,6 +100,8 @@ exports.FlowFragmentDoc = `
|
|
|
99
100
|
title
|
|
100
101
|
description
|
|
101
102
|
status
|
|
103
|
+
languages
|
|
104
|
+
createdBy
|
|
102
105
|
triggers {
|
|
103
106
|
...appAndAppInstance
|
|
104
107
|
}
|
package/src/sdks/utilities.d.ts
CHANGED
|
@@ -680,6 +680,40 @@ export type RemoveHttpInstanceMutationVariables = Exact<{
|
|
|
680
680
|
export type RemoveHttpInstanceMutation = {
|
|
681
681
|
removeHttpInstance?: Maybe<HttpInstanceFragment>;
|
|
682
682
|
};
|
|
683
|
+
export type PrompInstanceFragment = (Pick<PromptInstance, 'id' | 'name' | 'variableName' | 'createdAt' | 'updatedAt'> & {
|
|
684
|
+
validationMessages: Array<Pick<I18nText, 'lang' | 'value'>>;
|
|
685
|
+
validations?: Maybe<Array<Pick<Validation, 'code' | 'assert' | 'max' | 'min' | 'regex'>>>;
|
|
686
|
+
});
|
|
687
|
+
export type GetPromptInstanceQueryVariables = Exact<{
|
|
688
|
+
id: Scalars['ID']['input'];
|
|
689
|
+
}>;
|
|
690
|
+
export type GetPromptInstanceQuery = {
|
|
691
|
+
getPromptInstance?: Maybe<PrompInstanceFragment>;
|
|
692
|
+
};
|
|
693
|
+
export type ListPromptInstancesQueryVariables = Exact<{
|
|
694
|
+
[key: string]: never;
|
|
695
|
+
}>;
|
|
696
|
+
export type ListPromptInstancesQuery = {
|
|
697
|
+
listPromptInstances?: Maybe<Array<Maybe<PrompInstanceFragment>>>;
|
|
698
|
+
};
|
|
699
|
+
export type CreatePromptInstanceMutationVariables = Exact<{
|
|
700
|
+
input: CreatePromptAppInput;
|
|
701
|
+
}>;
|
|
702
|
+
export type CreatePromptInstanceMutation = {
|
|
703
|
+
createPromptInstance?: Maybe<PrompInstanceFragment>;
|
|
704
|
+
};
|
|
705
|
+
export type UpdatePromptInstanceMutationVariables = Exact<{
|
|
706
|
+
input: UpdatePromptAppInput;
|
|
707
|
+
}>;
|
|
708
|
+
export type UpdatePromptInstanceMutation = {
|
|
709
|
+
updatePromptInstance?: Maybe<PrompInstanceFragment>;
|
|
710
|
+
};
|
|
711
|
+
export type RemovePromptInstanceMutationVariables = Exact<{
|
|
712
|
+
input: RemovePromptAppInput;
|
|
713
|
+
}>;
|
|
714
|
+
export type RemovePromptInstanceMutation = {
|
|
715
|
+
removePromptInstance?: Maybe<PrompInstanceFragment>;
|
|
716
|
+
};
|
|
683
717
|
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 ";
|
|
684
718
|
export declare const StringMatcherFragmentDoc = "\n fragment stringMatcher on StringMatcher {\n eq\n in\n ne\n}\n ";
|
|
685
719
|
export declare const RecursiveConditionsFragmentDoc = "\n fragment recursiveConditions on RecursiveConditions {\n fact\n operator {\n ...stringMatcher\n }\n OR {\n fact\n operator {\n ...stringMatcher\n }\n AND {\n fact\n operator {\n ...stringMatcher\n }\n AND {\n fact\n operator {\n ...stringMatcher\n }\n }\n OR {\n fact\n operator {\n ...stringMatcher\n }\n }\n }\n OR {\n fact\n operator {\n ...stringMatcher\n }\n AND {\n fact\n operator {\n ...stringMatcher\n }\n }\n OR {\n fact\n operator {\n ...stringMatcher\n }\n }\n }\n }\n AND {\n fact\n operator {\n ...stringMatcher\n }\n AND {\n fact\n operator {\n ...stringMatcher\n }\n AND {\n fact\n operator {\n ...stringMatcher\n }\n }\n OR {\n fact\n operator {\n ...stringMatcher\n }\n }\n }\n OR {\n fact\n operator {\n ...stringMatcher\n }\n AND {\n fact\n operator {\n ...stringMatcher\n }\n }\n OR {\n fact\n operator {\n ...stringMatcher\n }\n }\n }\n }\n}\n ";
|
|
@@ -687,6 +721,7 @@ export declare const ConditionsFragmentDoc = "\n fragment conditions on Condi
|
|
|
687
721
|
export declare const ConditionalsInstanceFragmentDoc = "\n fragment conditionalsInstance on ConditionalsInstance {\n id\n name\n rules {\n transition\n conditions {\n ...conditions\n }\n }\n}\n ";
|
|
688
722
|
export declare const EchoInstanceFragmentDoc = "\n fragment echoInstance on EchoInstance {\n id\n name\n messages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n ";
|
|
689
723
|
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 ";
|
|
724
|
+
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 ";
|
|
690
725
|
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 ";
|
|
691
726
|
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 ";
|
|
692
727
|
export declare const CreateChoicesInstanceDocument = "\n mutation createChoicesInstance($input: CreateChoicesInstanceInput!) {\n createChoicesInstance(input: $input) {\n ...choicesInstance\n }\n}\n \n fragment choicesInstance on ChoicesInstance {\n id\n name\n options {\n messages {\n lang\n value\n }\n transition\n }\n errorMessages {\n lang\n value\n }\n createdAt\n updatedAt\n}\n ";
|
|
@@ -707,6 +742,11 @@ export declare const ListHttpInstancesDocument = "\n query listHttpInstances
|
|
|
707
742
|
export declare const CreateHttpInstanceDocument = "\n mutation createHttpInstance($input: CreateHttpInstanceInput!) {\n createHttpInstance(input: $input) {\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 ";
|
|
708
743
|
export declare const UpdateHttpInstanceDocument = "\n mutation updateHttpInstance($input: UpdateHttpInstanceInput!) {\n updateHttpInstance(input: $input) {\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 ";
|
|
709
744
|
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 ";
|
|
745
|
+
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 ";
|
|
746
|
+
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 ";
|
|
747
|
+
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 ";
|
|
748
|
+
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 ";
|
|
749
|
+
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 ";
|
|
710
750
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
711
751
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
712
752
|
getChoicesInstance(variables: GetChoicesInstanceQueryVariables, options?: C): Promise<GetChoicesInstanceQuery>;
|
|
@@ -729,6 +769,11 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
729
769
|
createHttpInstance(variables: CreateHttpInstanceMutationVariables, options?: C): Promise<CreateHttpInstanceMutation>;
|
|
730
770
|
updateHttpInstance(variables: UpdateHttpInstanceMutationVariables, options?: C): Promise<UpdateHttpInstanceMutation>;
|
|
731
771
|
removeHttpInstance(variables: RemoveHttpInstanceMutationVariables, options?: C): Promise<RemoveHttpInstanceMutation>;
|
|
772
|
+
getPromptInstance(variables: GetPromptInstanceQueryVariables, options?: C): Promise<GetPromptInstanceQuery>;
|
|
773
|
+
listPromptInstances(variables?: ListPromptInstancesQueryVariables, options?: C): Promise<ListPromptInstancesQuery>;
|
|
774
|
+
createPromptInstance(variables: CreatePromptInstanceMutationVariables, options?: C): Promise<CreatePromptInstanceMutation>;
|
|
775
|
+
updatePromptInstance(variables: UpdatePromptInstanceMutationVariables, options?: C): Promise<UpdatePromptInstanceMutation>;
|
|
776
|
+
removePromptInstance(variables: RemovePromptInstanceMutationVariables, options?: C): Promise<RemovePromptInstanceMutation>;
|
|
732
777
|
};
|
|
733
778
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
734
779
|
export declare const serviceName = "@droz/utilities";
|
package/src/sdks/utilities.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
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;
|
|
4
|
+
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;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -212,6 +212,27 @@ exports.HttpInstanceFragmentDoc = `
|
|
|
212
212
|
updatedAt
|
|
213
213
|
}
|
|
214
214
|
`;
|
|
215
|
+
exports.PrompInstanceFragmentDoc = `
|
|
216
|
+
fragment prompInstance on PromptInstance {
|
|
217
|
+
id
|
|
218
|
+
name
|
|
219
|
+
validationMessages {
|
|
220
|
+
lang
|
|
221
|
+
value
|
|
222
|
+
}
|
|
223
|
+
validations {
|
|
224
|
+
code
|
|
225
|
+
assert
|
|
226
|
+
assert
|
|
227
|
+
max
|
|
228
|
+
min
|
|
229
|
+
regex
|
|
230
|
+
}
|
|
231
|
+
variableName
|
|
232
|
+
createdAt
|
|
233
|
+
updatedAt
|
|
234
|
+
}
|
|
235
|
+
`;
|
|
215
236
|
exports.GetChoicesInstanceDocument = `
|
|
216
237
|
query getChoicesInstance($id: ID!) {
|
|
217
238
|
getChoicesInstance(id: $id) {
|
|
@@ -367,6 +388,41 @@ exports.RemoveHttpInstanceDocument = `
|
|
|
367
388
|
}
|
|
368
389
|
}
|
|
369
390
|
${exports.HttpInstanceFragmentDoc}`;
|
|
391
|
+
exports.GetPromptInstanceDocument = `
|
|
392
|
+
query getPromptInstance($id: ID!) {
|
|
393
|
+
getPromptInstance(id: $id) {
|
|
394
|
+
...prompInstance
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
${exports.PrompInstanceFragmentDoc}`;
|
|
398
|
+
exports.ListPromptInstancesDocument = `
|
|
399
|
+
query listPromptInstances {
|
|
400
|
+
listPromptInstances {
|
|
401
|
+
...prompInstance
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
${exports.PrompInstanceFragmentDoc}`;
|
|
405
|
+
exports.CreatePromptInstanceDocument = `
|
|
406
|
+
mutation createPromptInstance($input: CreatePromptAppInput!) {
|
|
407
|
+
createPromptInstance(input: $input) {
|
|
408
|
+
...prompInstance
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
${exports.PrompInstanceFragmentDoc}`;
|
|
412
|
+
exports.UpdatePromptInstanceDocument = `
|
|
413
|
+
mutation updatePromptInstance($input: UpdatePromptAppInput!) {
|
|
414
|
+
updatePromptInstance(input: $input) {
|
|
415
|
+
...prompInstance
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
${exports.PrompInstanceFragmentDoc}`;
|
|
419
|
+
exports.RemovePromptInstanceDocument = `
|
|
420
|
+
mutation removePromptInstance($input: RemovePromptAppInput!) {
|
|
421
|
+
removePromptInstance(input: $input) {
|
|
422
|
+
...prompInstance
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
${exports.PrompInstanceFragmentDoc}`;
|
|
370
426
|
function getSdk(requester) {
|
|
371
427
|
return {
|
|
372
428
|
getChoicesInstance(variables, options) {
|
|
@@ -428,6 +484,21 @@ function getSdk(requester) {
|
|
|
428
484
|
},
|
|
429
485
|
removeHttpInstance(variables, options) {
|
|
430
486
|
return requester(exports.RemoveHttpInstanceDocument, variables, options);
|
|
487
|
+
},
|
|
488
|
+
getPromptInstance(variables, options) {
|
|
489
|
+
return requester(exports.GetPromptInstanceDocument, variables, options);
|
|
490
|
+
},
|
|
491
|
+
listPromptInstances(variables, options) {
|
|
492
|
+
return requester(exports.ListPromptInstancesDocument, variables, options);
|
|
493
|
+
},
|
|
494
|
+
createPromptInstance(variables, options) {
|
|
495
|
+
return requester(exports.CreatePromptInstanceDocument, variables, options);
|
|
496
|
+
},
|
|
497
|
+
updatePromptInstance(variables, options) {
|
|
498
|
+
return requester(exports.UpdatePromptInstanceDocument, variables, options);
|
|
499
|
+
},
|
|
500
|
+
removePromptInstance(variables, options) {
|
|
501
|
+
return requester(exports.RemovePromptInstanceDocument, variables, options);
|
|
431
502
|
}
|
|
432
503
|
};
|
|
433
504
|
}
|
package/src/utilities.d.ts
CHANGED
|
@@ -66,4 +66,19 @@ export declare const DrozUtilities: new (options?: import("./client/http").HttpC
|
|
|
66
66
|
removeHttpInstance(variables: import("./sdks/utilities").Exact<{
|
|
67
67
|
id: string;
|
|
68
68
|
}>, options?: unknown): Promise<import("./sdks/utilities").RemoveHttpInstanceMutation>;
|
|
69
|
+
getPromptInstance(variables: import("./sdks/utilities").Exact<{
|
|
70
|
+
id: string;
|
|
71
|
+
}>, options?: unknown): Promise<import("./sdks/utilities").GetPromptInstanceQuery>;
|
|
72
|
+
listPromptInstances(variables?: import("./sdks/utilities").Exact<{
|
|
73
|
+
[key: string]: never;
|
|
74
|
+
}>, options?: unknown): Promise<import("./sdks/utilities").ListPromptInstancesQuery>;
|
|
75
|
+
createPromptInstance(variables: import("./sdks/utilities").Exact<{
|
|
76
|
+
input: import("./sdks/utilities").CreatePromptAppInput;
|
|
77
|
+
}>, options?: unknown): Promise<import("./sdks/utilities").CreatePromptInstanceMutation>;
|
|
78
|
+
updatePromptInstance(variables: import("./sdks/utilities").Exact<{
|
|
79
|
+
input: import("./sdks/utilities").UpdatePromptAppInput;
|
|
80
|
+
}>, options?: unknown): Promise<import("./sdks/utilities").UpdatePromptInstanceMutation>;
|
|
81
|
+
removePromptInstance(variables: import("./sdks/utilities").Exact<{
|
|
82
|
+
input: import("./sdks/utilities").RemovePromptAppInput;
|
|
83
|
+
}>, options?: unknown): Promise<import("./sdks/utilities").RemovePromptInstanceMutation>;
|
|
69
84
|
};
|