@droz-js/sdk 0.5.27 → 0.6.0
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/droznexo.d.ts +34 -12
- package/src/nucleus.d.ts +3 -0
- package/src/sdks/droznexo.d.ts +247 -70
- package/src/sdks/droznexo.js +175 -49
- package/src/sdks/nucleus.d.ts +15 -1
- package/src/sdks/nucleus.js +16 -2
package/package.json
CHANGED
package/src/droznexo.d.ts
CHANGED
|
@@ -6,19 +6,41 @@ export declare const DrozNexo: new (options?: import("./client/http").HttpClient
|
|
|
6
6
|
withCustomHeaders(headers: () => Record<string, string>): any;
|
|
7
7
|
withHttpRequestExecutor(httpRequestExecutor: import("./client/http").HttpRequestExecutor): any;
|
|
8
8
|
} & {
|
|
9
|
-
listDrozNexoSuggestions(variables?: import("./sdks/droznexo").Exact<{
|
|
10
|
-
[key: string]: never;
|
|
11
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoSuggestionsQuery>;
|
|
12
|
-
listDrozNexoConnections(variables?: import("./sdks/droznexo").Exact<{
|
|
13
|
-
next?: object;
|
|
14
|
-
}>, options?: unknown): Promise<import("./sdks/droznexo").ListDrozNexoConnectionsQuery>;
|
|
15
9
|
getUsageStatistics(variables?: import("./sdks/droznexo").Exact<{
|
|
16
10
|
[key: string]: never;
|
|
17
11
|
}>, options?: unknown): Promise<import("./sdks/droznexo").GetUsageStatisticsQuery>;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
getFlow(variables: import("./sdks/droznexo").Exact<{
|
|
13
|
+
id: string;
|
|
14
|
+
versionId: string;
|
|
15
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").GetFlowQuery>;
|
|
16
|
+
listFlows(variables?: import("./sdks/droznexo").Exact<{
|
|
17
|
+
[key: string]: never;
|
|
18
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").ListFlowsQuery>;
|
|
19
|
+
listSimpleSuggestions(variables?: import("./sdks/droznexo").Exact<{
|
|
20
|
+
[key: string]: never;
|
|
21
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").ListSimpleSuggestionsQuery>;
|
|
22
|
+
listSimpleConnections(variables?: import("./sdks/droznexo").Exact<{
|
|
23
|
+
next?: object;
|
|
24
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").ListSimpleConnectionsQuery>;
|
|
25
|
+
createFlow(variables: import("./sdks/droznexo").Exact<{
|
|
26
|
+
input: import("./sdks/droznexo").CreateFlowInput;
|
|
27
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateFlowMutation>;
|
|
28
|
+
editFlow(variables: import("./sdks/droznexo").Exact<{
|
|
29
|
+
input: import("./sdks/droznexo").EditFlowInput;
|
|
30
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").EditFlowMutation>;
|
|
31
|
+
updateFlow(variables: import("./sdks/droznexo").Exact<{
|
|
32
|
+
input: import("./sdks/droznexo").UpdateFlowInput;
|
|
33
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").UpdateFlowMutation>;
|
|
34
|
+
publishFlow(variables: import("./sdks/droznexo").Exact<{
|
|
35
|
+
input: import("./sdks/droznexo").PublishFlowInput;
|
|
36
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").PublishFlowMutation>;
|
|
37
|
+
removeFlow(variables: import("./sdks/droznexo").Exact<{
|
|
38
|
+
input: import("./sdks/droznexo").RemoveFlowInput;
|
|
39
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").RemoveFlowMutation>;
|
|
40
|
+
createSimpleConnection(variables: import("./sdks/droznexo").Exact<{
|
|
41
|
+
input: import("./sdks/droznexo").CreateSimpleConnectionInput;
|
|
42
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").CreateSimpleConnectionMutation>;
|
|
43
|
+
removeSimpleConnection(variables: import("./sdks/droznexo").Exact<{
|
|
44
|
+
input: import("./sdks/droznexo").RemoveSimpleConnectionInput;
|
|
45
|
+
}>, options?: unknown): Promise<import("./sdks/droznexo").RemoveSimpleConnectionMutation>;
|
|
24
46
|
};
|
package/src/nucleus.d.ts
CHANGED
|
@@ -52,6 +52,9 @@ declare const Nucleus_base: new (options?: import("./client/http").HttpClientOpt
|
|
|
52
52
|
getAppInstance(variables: import("./sdks/nucleus").Exact<{
|
|
53
53
|
drn: string;
|
|
54
54
|
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAppInstanceQuery>;
|
|
55
|
+
getAppInstances(variables: import("./sdks/nucleus").Exact<{
|
|
56
|
+
drns: string | string[];
|
|
57
|
+
}>, options?: unknown): Promise<import("./sdks/nucleus").GetAppInstancesQuery>;
|
|
55
58
|
listAppInstances(variables?: import("./sdks/nucleus").Exact<{
|
|
56
59
|
appId?: string;
|
|
57
60
|
appType?: import("./sdks/nucleus").AppType;
|
package/src/sdks/droznexo.d.ts
CHANGED
|
@@ -90,6 +90,10 @@ export type Scalars = {
|
|
|
90
90
|
output: void;
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
+
export type AppAndAppInstance = {
|
|
94
|
+
app: DrozNexoApp;
|
|
95
|
+
appInstance: DrozNexoAppInstance;
|
|
96
|
+
};
|
|
93
97
|
export declare enum AppInstanceStatus {
|
|
94
98
|
Active = "Active",
|
|
95
99
|
Failing = "Failing",
|
|
@@ -101,7 +105,11 @@ export declare enum Can {
|
|
|
101
105
|
Remove = "remove",
|
|
102
106
|
Write = "write"
|
|
103
107
|
}
|
|
104
|
-
export type
|
|
108
|
+
export type CreateFlowInput = {
|
|
109
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
110
|
+
title: Scalars['String']['input'];
|
|
111
|
+
};
|
|
112
|
+
export type CreateSimpleConnectionInput = {
|
|
105
113
|
description?: InputMaybe<Scalars['String']['input']>;
|
|
106
114
|
destinationDrn: Scalars['DRN']['input'];
|
|
107
115
|
title?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -112,40 +120,60 @@ export type DrozNexoApp = {
|
|
|
112
120
|
id: Scalars['ID']['output'];
|
|
113
121
|
name: Scalars['String']['output'];
|
|
114
122
|
};
|
|
115
|
-
export type DrozNexoAppAndAppInstance = {
|
|
116
|
-
app: DrozNexoApp;
|
|
117
|
-
appInstance: DrozNexoAppInstance;
|
|
118
|
-
};
|
|
119
123
|
export type DrozNexoAppInstance = {
|
|
120
124
|
createdAt: Scalars['DateTime']['output'];
|
|
121
125
|
drn: Scalars['DRN']['output'];
|
|
122
126
|
name: Scalars['String']['output'];
|
|
127
|
+
transitions: Array<Scalars['String']['output']>;
|
|
123
128
|
updatedAt: Scalars['DateTime']['output'];
|
|
124
129
|
};
|
|
125
|
-
export type
|
|
130
|
+
export type DrozNexoUsageStatistics = {
|
|
131
|
+
totalAppInstances: Scalars['Int']['output'];
|
|
132
|
+
totalConnections: Scalars['Int']['output'];
|
|
133
|
+
totalSecrets: Scalars['Int']['output'];
|
|
134
|
+
};
|
|
135
|
+
export type Edge = {
|
|
136
|
+
id: Scalars['ID']['output'];
|
|
137
|
+
source: Scalars['ID']['output'];
|
|
138
|
+
sourceHandle: Scalars['String']['output'];
|
|
139
|
+
target: Scalars['ID']['output'];
|
|
140
|
+
type: Scalars['String']['output'];
|
|
141
|
+
uidata?: Maybe<Scalars['JSON']['output']>;
|
|
142
|
+
};
|
|
143
|
+
export type EdgeInput = {
|
|
144
|
+
id: Scalars['ID']['input'];
|
|
145
|
+
source: Scalars['ID']['input'];
|
|
146
|
+
sourceHandle: Scalars['String']['input'];
|
|
147
|
+
target: Scalars['ID']['input'];
|
|
148
|
+
type: Scalars['String']['input'];
|
|
149
|
+
uidata?: InputMaybe<Scalars['JSON']['input']>;
|
|
150
|
+
};
|
|
151
|
+
export type EditFlowInput = {
|
|
152
|
+
id: Scalars['ID']['input'];
|
|
153
|
+
};
|
|
154
|
+
export type Flow = {
|
|
126
155
|
createdAt: Scalars['DateTime']['output'];
|
|
127
156
|
description?: Maybe<Scalars['String']['output']>;
|
|
128
|
-
|
|
157
|
+
edges: Array<Edge>;
|
|
129
158
|
id: Scalars['ID']['output'];
|
|
130
|
-
|
|
131
|
-
|
|
159
|
+
nodes: Array<Node>;
|
|
160
|
+
stateMachineId: Scalars['ID']['output'];
|
|
161
|
+
status: FlowStatus;
|
|
162
|
+
title: Scalars['String']['output'];
|
|
163
|
+
triggers: Array<AppAndAppInstance>;
|
|
132
164
|
updatedAt: Scalars['DateTime']['output'];
|
|
133
165
|
versionId: Scalars['ID']['output'];
|
|
134
166
|
};
|
|
135
|
-
export type
|
|
136
|
-
nodes: Array<
|
|
167
|
+
export type FlowConnection = {
|
|
168
|
+
nodes: Array<Flow>;
|
|
137
169
|
pageInfo: PageInfo;
|
|
138
170
|
};
|
|
139
|
-
export
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
totalAppInstances: Scalars['Int']['output'];
|
|
146
|
-
totalConnections: Scalars['Int']['output'];
|
|
147
|
-
totalSecrets: Scalars['Int']['output'];
|
|
148
|
-
};
|
|
171
|
+
export declare enum FlowStatus {
|
|
172
|
+
Draft = "Draft",
|
|
173
|
+
Live = "Live",
|
|
174
|
+
Published = "Published",
|
|
175
|
+
Removed = "Removed"
|
|
176
|
+
}
|
|
149
177
|
export type I18nText = {
|
|
150
178
|
lang: Scalars['Locale']['output'];
|
|
151
179
|
value: Scalars['String']['output'];
|
|
@@ -155,15 +183,46 @@ export type I18nTextInput = {
|
|
|
155
183
|
value: Scalars['String']['input'];
|
|
156
184
|
};
|
|
157
185
|
export type Mutation = {
|
|
158
|
-
|
|
159
|
-
|
|
186
|
+
createFlow: Flow;
|
|
187
|
+
createSimpleConnection: SimpleConnection;
|
|
188
|
+
editFlow: Flow;
|
|
189
|
+
publishFlow: Flow;
|
|
190
|
+
removeFlow: Flow;
|
|
191
|
+
removeSimpleConnection: SimpleConnection;
|
|
192
|
+
updateFlow: Flow;
|
|
160
193
|
version?: Maybe<Scalars['String']['output']>;
|
|
161
194
|
};
|
|
162
|
-
export type
|
|
163
|
-
input:
|
|
195
|
+
export type MutationCreateFlowArgs = {
|
|
196
|
+
input: CreateFlowInput;
|
|
197
|
+
};
|
|
198
|
+
export type MutationCreateSimpleConnectionArgs = {
|
|
199
|
+
input: CreateSimpleConnectionInput;
|
|
164
200
|
};
|
|
165
|
-
export type
|
|
166
|
-
input:
|
|
201
|
+
export type MutationEditFlowArgs = {
|
|
202
|
+
input: EditFlowInput;
|
|
203
|
+
};
|
|
204
|
+
export type MutationPublishFlowArgs = {
|
|
205
|
+
input: PublishFlowInput;
|
|
206
|
+
};
|
|
207
|
+
export type MutationRemoveFlowArgs = {
|
|
208
|
+
input: RemoveFlowInput;
|
|
209
|
+
};
|
|
210
|
+
export type MutationRemoveSimpleConnectionArgs = {
|
|
211
|
+
input: RemoveSimpleConnectionInput;
|
|
212
|
+
};
|
|
213
|
+
export type MutationUpdateFlowArgs = {
|
|
214
|
+
input: UpdateFlowInput;
|
|
215
|
+
};
|
|
216
|
+
export type Node = {
|
|
217
|
+
data: AppAndAppInstance;
|
|
218
|
+
id: Scalars['ID']['output'];
|
|
219
|
+
type: Scalars['String']['output'];
|
|
220
|
+
uidata?: Maybe<Scalars['JSON']['output']>;
|
|
221
|
+
};
|
|
222
|
+
export type NodeInput = {
|
|
223
|
+
id: Scalars['ID']['input'];
|
|
224
|
+
type: Scalars['String']['input'];
|
|
225
|
+
uidata?: InputMaybe<Scalars['JSON']['input']>;
|
|
167
226
|
};
|
|
168
227
|
export type NumberFilterInput = {
|
|
169
228
|
btw?: InputMaybe<Array<Scalars['Float']['input']>>;
|
|
@@ -178,18 +237,35 @@ export type PageInfo = {
|
|
|
178
237
|
hasNext: Scalars['Boolean']['output'];
|
|
179
238
|
next?: Maybe<Scalars['Base64']['output']>;
|
|
180
239
|
};
|
|
240
|
+
export type PublishFlowInput = {
|
|
241
|
+
id: Scalars['ID']['input'];
|
|
242
|
+
versionId: Scalars['ID']['input'];
|
|
243
|
+
};
|
|
181
244
|
export type Query = {
|
|
182
245
|
app?: Maybe<Scalars['DRN']['output']>;
|
|
246
|
+
getFlow: Flow;
|
|
183
247
|
getHttpEndpoint?: Maybe<Scalars['String']['output']>;
|
|
184
248
|
getUsageStatistics?: Maybe<DrozNexoUsageStatistics>;
|
|
185
|
-
|
|
186
|
-
|
|
249
|
+
listFlows: FlowConnection;
|
|
250
|
+
listSimpleConnectionSuggestions: Array<SimpleConnectionSuggestion>;
|
|
251
|
+
listSimpleConnections: SimpleConnectionConnection;
|
|
187
252
|
version?: Maybe<Scalars['String']['output']>;
|
|
188
253
|
};
|
|
189
|
-
export type
|
|
254
|
+
export type QueryGetFlowArgs = {
|
|
255
|
+
id: Scalars['ID']['input'];
|
|
256
|
+
versionId: Scalars['ID']['input'];
|
|
257
|
+
};
|
|
258
|
+
export type QueryListFlowsArgs = {
|
|
190
259
|
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
191
260
|
};
|
|
192
|
-
export type
|
|
261
|
+
export type QueryListSimpleConnectionsArgs = {
|
|
262
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
263
|
+
};
|
|
264
|
+
export type RemoveFlowInput = {
|
|
265
|
+
id: Scalars['ID']['input'];
|
|
266
|
+
versionId: Scalars['ID']['input'];
|
|
267
|
+
};
|
|
268
|
+
export type RemoveSimpleConnectionInput = {
|
|
193
269
|
id: Scalars['ID']['input'];
|
|
194
270
|
versionId: Scalars['ID']['input'];
|
|
195
271
|
};
|
|
@@ -214,6 +290,25 @@ export type SearchResultsStats = {
|
|
|
214
290
|
searchTime: Scalars['Float']['output'];
|
|
215
291
|
totalPages: Scalars['Float']['output'];
|
|
216
292
|
};
|
|
293
|
+
export type SimpleConnection = {
|
|
294
|
+
createdAt: Scalars['DateTime']['output'];
|
|
295
|
+
description?: Maybe<Scalars['String']['output']>;
|
|
296
|
+
destination: AppAndAppInstance;
|
|
297
|
+
id: Scalars['ID']['output'];
|
|
298
|
+
title?: Maybe<Scalars['String']['output']>;
|
|
299
|
+
trigger: AppAndAppInstance;
|
|
300
|
+
updatedAt: Scalars['DateTime']['output'];
|
|
301
|
+
versionId: Scalars['ID']['output'];
|
|
302
|
+
};
|
|
303
|
+
export type SimpleConnectionConnection = {
|
|
304
|
+
nodes: Array<SimpleConnection>;
|
|
305
|
+
pageInfo: PageInfo;
|
|
306
|
+
};
|
|
307
|
+
export type SimpleConnectionSuggestion = {
|
|
308
|
+
destination: AppAndAppInstance;
|
|
309
|
+
title: Scalars['String']['output'];
|
|
310
|
+
trigger: AppAndAppInstance;
|
|
311
|
+
};
|
|
217
312
|
export type StringFilterInput = {
|
|
218
313
|
eq?: InputMaybe<Scalars['String']['input']>;
|
|
219
314
|
in?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
@@ -221,69 +316,151 @@ export type StringFilterInput = {
|
|
|
221
316
|
};
|
|
222
317
|
export declare enum Typenames {
|
|
223
318
|
Any = "Any",
|
|
319
|
+
Flows = "Flows",
|
|
224
320
|
GraphqlConnections = "GraphqlConnections",
|
|
225
321
|
GraphqlSubscriptions = "GraphqlSubscriptions"
|
|
226
322
|
}
|
|
227
|
-
export type
|
|
323
|
+
export type UpdateFlowInput = {
|
|
324
|
+
description?: InputMaybe<Scalars['String']['input']>;
|
|
325
|
+
edges: Array<EdgeInput>;
|
|
326
|
+
id: Scalars['ID']['input'];
|
|
327
|
+
nodes: Array<NodeInput>;
|
|
328
|
+
title?: InputMaybe<Scalars['String']['input']>;
|
|
329
|
+
triggers?: InputMaybe<Scalars['Set']['input']>;
|
|
330
|
+
versionId: Scalars['ID']['input'];
|
|
331
|
+
};
|
|
332
|
+
export type AppAndAppInstanceFragment = {
|
|
228
333
|
app: Pick<DrozNexoApp, 'id' | 'name' | 'description'>;
|
|
229
|
-
appInstance: Pick<DrozNexoAppInstance, 'drn' | 'name' | 'createdAt' | 'updatedAt'>;
|
|
334
|
+
appInstance: Pick<DrozNexoAppInstance, 'drn' | 'name' | 'transitions' | 'createdAt' | 'updatedAt'>;
|
|
230
335
|
};
|
|
231
|
-
export type
|
|
232
|
-
trigger:
|
|
233
|
-
destination:
|
|
336
|
+
export type SimpleConnectionSuggestionFragment = (Pick<SimpleConnectionSuggestion, 'title'> & {
|
|
337
|
+
trigger: AppAndAppInstanceFragment;
|
|
338
|
+
destination: AppAndAppInstanceFragment;
|
|
234
339
|
});
|
|
235
|
-
export type
|
|
236
|
-
trigger:
|
|
237
|
-
destination:
|
|
340
|
+
export type SimpleConnectionFragment = (Pick<SimpleConnection, 'id' | 'versionId' | 'title' | 'description' | 'createdAt' | 'updatedAt'> & {
|
|
341
|
+
trigger: AppAndAppInstanceFragment;
|
|
342
|
+
destination: AppAndAppInstanceFragment;
|
|
238
343
|
});
|
|
239
|
-
export type
|
|
344
|
+
export type NodeFragment = (Pick<Node, 'id' | 'type' | 'uidata'> & {
|
|
345
|
+
data: AppAndAppInstanceFragment;
|
|
346
|
+
});
|
|
347
|
+
export type EdgeFragment = Pick<Edge, 'id' | 'source' | 'target' | 'type' | 'sourceHandle' | 'uidata'>;
|
|
348
|
+
export type FlowFragment = (Pick<Flow, 'id' | 'versionId' | 'title' | 'description' | 'createdAt' | 'updatedAt'> & {
|
|
349
|
+
triggers: Array<AppAndAppInstanceFragment>;
|
|
350
|
+
nodes: Array<NodeFragment>;
|
|
351
|
+
edges: Array<EdgeFragment>;
|
|
352
|
+
});
|
|
353
|
+
export type GetUsageStatisticsQueryVariables = Exact<{
|
|
240
354
|
[key: string]: never;
|
|
241
355
|
}>;
|
|
242
|
-
export type
|
|
243
|
-
|
|
356
|
+
export type GetUsageStatisticsQuery = {
|
|
357
|
+
getUsageStatistics?: Maybe<Pick<DrozNexoUsageStatistics, 'totalSecrets' | 'totalAppInstances' | 'totalConnections'>>;
|
|
244
358
|
};
|
|
245
|
-
export type
|
|
246
|
-
|
|
359
|
+
export type GetFlowQueryVariables = Exact<{
|
|
360
|
+
id: Scalars['ID']['input'];
|
|
361
|
+
versionId: Scalars['ID']['input'];
|
|
362
|
+
}>;
|
|
363
|
+
export type GetFlowQuery = {
|
|
364
|
+
getFlow: FlowFragment;
|
|
365
|
+
};
|
|
366
|
+
export type ListFlowsQueryVariables = Exact<{
|
|
367
|
+
[key: string]: never;
|
|
247
368
|
}>;
|
|
248
|
-
export type
|
|
249
|
-
|
|
250
|
-
nodes: Array<
|
|
369
|
+
export type ListFlowsQuery = {
|
|
370
|
+
listFlows: {
|
|
371
|
+
nodes: Array<FlowFragment>;
|
|
251
372
|
pageInfo: Pick<PageInfo, 'next' | 'hasNext'>;
|
|
252
373
|
};
|
|
253
374
|
};
|
|
254
|
-
export type
|
|
375
|
+
export type ListSimpleSuggestionsQueryVariables = Exact<{
|
|
255
376
|
[key: string]: never;
|
|
256
377
|
}>;
|
|
257
|
-
export type
|
|
258
|
-
|
|
378
|
+
export type ListSimpleSuggestionsQuery = {
|
|
379
|
+
listSimpleConnectionSuggestions: Array<SimpleConnectionSuggestionFragment>;
|
|
380
|
+
};
|
|
381
|
+
export type ListSimpleConnectionsQueryVariables = Exact<{
|
|
382
|
+
next?: InputMaybe<Scalars['Base64']['input']>;
|
|
383
|
+
}>;
|
|
384
|
+
export type ListSimpleConnectionsQuery = {
|
|
385
|
+
listSimpleConnections: {
|
|
386
|
+
nodes: Array<SimpleConnectionFragment>;
|
|
387
|
+
pageInfo: Pick<PageInfo, 'next' | 'hasNext'>;
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
export type CreateFlowMutationVariables = Exact<{
|
|
391
|
+
input: CreateFlowInput;
|
|
392
|
+
}>;
|
|
393
|
+
export type CreateFlowMutation = {
|
|
394
|
+
createFlow: FlowFragment;
|
|
395
|
+
};
|
|
396
|
+
export type EditFlowMutationVariables = Exact<{
|
|
397
|
+
input: EditFlowInput;
|
|
398
|
+
}>;
|
|
399
|
+
export type EditFlowMutation = {
|
|
400
|
+
editFlow: FlowFragment;
|
|
401
|
+
};
|
|
402
|
+
export type UpdateFlowMutationVariables = Exact<{
|
|
403
|
+
input: UpdateFlowInput;
|
|
404
|
+
}>;
|
|
405
|
+
export type UpdateFlowMutation = {
|
|
406
|
+
updateFlow: FlowFragment;
|
|
407
|
+
};
|
|
408
|
+
export type PublishFlowMutationVariables = Exact<{
|
|
409
|
+
input: PublishFlowInput;
|
|
410
|
+
}>;
|
|
411
|
+
export type PublishFlowMutation = {
|
|
412
|
+
publishFlow: FlowFragment;
|
|
413
|
+
};
|
|
414
|
+
export type RemoveFlowMutationVariables = Exact<{
|
|
415
|
+
input: RemoveFlowInput;
|
|
416
|
+
}>;
|
|
417
|
+
export type RemoveFlowMutation = {
|
|
418
|
+
removeFlow: FlowFragment;
|
|
259
419
|
};
|
|
260
|
-
export type
|
|
261
|
-
input:
|
|
420
|
+
export type CreateSimpleConnectionMutationVariables = Exact<{
|
|
421
|
+
input: CreateSimpleConnectionInput;
|
|
262
422
|
}>;
|
|
263
|
-
export type
|
|
264
|
-
|
|
423
|
+
export type CreateSimpleConnectionMutation = {
|
|
424
|
+
createSimpleConnection: SimpleConnectionFragment;
|
|
265
425
|
};
|
|
266
|
-
export type
|
|
267
|
-
input:
|
|
426
|
+
export type RemoveSimpleConnectionMutationVariables = Exact<{
|
|
427
|
+
input: RemoveSimpleConnectionInput;
|
|
268
428
|
}>;
|
|
269
|
-
export type
|
|
270
|
-
|
|
271
|
-
};
|
|
272
|
-
export declare const
|
|
273
|
-
export declare const
|
|
274
|
-
export declare const
|
|
275
|
-
export declare const
|
|
276
|
-
export declare const
|
|
429
|
+
export type RemoveSimpleConnectionMutation = {
|
|
430
|
+
removeSimpleConnection: SimpleConnectionFragment;
|
|
431
|
+
};
|
|
432
|
+
export declare const AppAndAppInstanceFragmentDoc = "\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 ";
|
|
433
|
+
export declare const SimpleConnectionSuggestionFragmentDoc = "\n fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {\n title\n trigger {\n ...appAndAppInstance\n }\n destination {\n ...appAndAppInstance\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 ";
|
|
434
|
+
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 \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 ";
|
|
435
|
+
export declare const NodeFragmentDoc = "\n fragment node on Node {\n id\n type\n data {\n ...appAndAppInstance\n }\n uidata\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 ";
|
|
436
|
+
export declare const EdgeFragmentDoc = "\n fragment edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
437
|
+
export declare const FlowFragmentDoc = "\n fragment flow on Flow {\n id\n versionId\n title\n description\n triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
277
438
|
export declare const GetUsageStatisticsDocument = "\n query getUsageStatistics {\n getUsageStatistics {\n totalSecrets\n totalAppInstances\n totalConnections\n }\n}\n ";
|
|
278
|
-
export declare const
|
|
279
|
-
export declare const
|
|
439
|
+
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 triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
440
|
+
export declare const ListFlowsDocument = "\n query listFlows {\n listFlows {\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 triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
441
|
+
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 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 ";
|
|
442
|
+
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 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 ";
|
|
443
|
+
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 triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
444
|
+
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 triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
445
|
+
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 triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
446
|
+
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 triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
447
|
+
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 triggers {\n ...appAndAppInstance\n }\n nodes {\n ...node\n }\n edges {\n ...edge\n }\n createdAt\n updatedAt\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 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 edge on Edge {\n id\n source\n target\n type\n sourceHandle\n uidata\n}\n ";
|
|
448
|
+
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 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 ";
|
|
449
|
+
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 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 ";
|
|
280
450
|
export type Requester<C = {}> = <R, V>(doc: string, vars?: V, options?: C) => Promise<R> | AsyncIterableIterator<R>;
|
|
281
451
|
export declare function getSdk<C>(requester: Requester<C>): {
|
|
282
|
-
listDrozNexoSuggestions(variables?: ListDrozNexoSuggestionsQueryVariables, options?: C): Promise<ListDrozNexoSuggestionsQuery>;
|
|
283
|
-
listDrozNexoConnections(variables?: ListDrozNexoConnectionsQueryVariables, options?: C): Promise<ListDrozNexoConnectionsQuery>;
|
|
284
452
|
getUsageStatistics(variables?: GetUsageStatisticsQueryVariables, options?: C): Promise<GetUsageStatisticsQuery>;
|
|
285
|
-
|
|
286
|
-
|
|
453
|
+
getFlow(variables: GetFlowQueryVariables, options?: C): Promise<GetFlowQuery>;
|
|
454
|
+
listFlows(variables?: ListFlowsQueryVariables, options?: C): Promise<ListFlowsQuery>;
|
|
455
|
+
listSimpleSuggestions(variables?: ListSimpleSuggestionsQueryVariables, options?: C): Promise<ListSimpleSuggestionsQuery>;
|
|
456
|
+
listSimpleConnections(variables?: ListSimpleConnectionsQueryVariables, options?: C): Promise<ListSimpleConnectionsQuery>;
|
|
457
|
+
createFlow(variables: CreateFlowMutationVariables, options?: C): Promise<CreateFlowMutation>;
|
|
458
|
+
editFlow(variables: EditFlowMutationVariables, options?: C): Promise<EditFlowMutation>;
|
|
459
|
+
updateFlow(variables: UpdateFlowMutationVariables, options?: C): Promise<UpdateFlowMutation>;
|
|
460
|
+
publishFlow(variables: PublishFlowMutationVariables, options?: C): Promise<PublishFlowMutation>;
|
|
461
|
+
removeFlow(variables: RemoveFlowMutationVariables, options?: C): Promise<RemoveFlowMutation>;
|
|
462
|
+
createSimpleConnection(variables: CreateSimpleConnectionMutationVariables, options?: C): Promise<CreateSimpleConnectionMutation>;
|
|
463
|
+
removeSimpleConnection(variables: RemoveSimpleConnectionMutationVariables, options?: C): Promise<RemoveSimpleConnectionMutation>;
|
|
287
464
|
};
|
|
288
465
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
289
466
|
export declare const serviceName = "@droz/droznexo";
|
package/src/sdks/droznexo.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.
|
|
4
|
+
exports.serviceName = exports.getSdk = exports.RemoveSimpleConnectionDocument = exports.CreateSimpleConnectionDocument = exports.RemoveFlowDocument = exports.PublishFlowDocument = exports.UpdateFlowDocument = exports.EditFlowDocument = exports.CreateFlowDocument = exports.ListSimpleConnectionsDocument = exports.ListSimpleSuggestionsDocument = exports.ListFlowsDocument = exports.GetFlowDocument = exports.GetUsageStatisticsDocument = exports.FlowFragmentDoc = exports.EdgeFragmentDoc = exports.NodeFragmentDoc = exports.SimpleConnectionFragmentDoc = exports.SimpleConnectionSuggestionFragmentDoc = exports.AppAndAppInstanceFragmentDoc = exports.Typenames = exports.FlowStatus = exports.Can = exports.AppInstanceStatus = void 0;
|
|
5
5
|
var AppInstanceStatus;
|
|
6
6
|
(function (AppInstanceStatus) {
|
|
7
7
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -15,14 +15,22 @@ var Can;
|
|
|
15
15
|
Can["Remove"] = "remove";
|
|
16
16
|
Can["Write"] = "write";
|
|
17
17
|
})(Can || (exports.Can = Can = {}));
|
|
18
|
+
var FlowStatus;
|
|
19
|
+
(function (FlowStatus) {
|
|
20
|
+
FlowStatus["Draft"] = "Draft";
|
|
21
|
+
FlowStatus["Live"] = "Live";
|
|
22
|
+
FlowStatus["Published"] = "Published";
|
|
23
|
+
FlowStatus["Removed"] = "Removed";
|
|
24
|
+
})(FlowStatus || (exports.FlowStatus = FlowStatus = {}));
|
|
18
25
|
var Typenames;
|
|
19
26
|
(function (Typenames) {
|
|
20
27
|
Typenames["Any"] = "Any";
|
|
28
|
+
Typenames["Flows"] = "Flows";
|
|
21
29
|
Typenames["GraphqlConnections"] = "GraphqlConnections";
|
|
22
30
|
Typenames["GraphqlSubscriptions"] = "GraphqlSubscriptions";
|
|
23
31
|
})(Typenames || (exports.Typenames = Typenames = {}));
|
|
24
|
-
exports.
|
|
25
|
-
fragment
|
|
32
|
+
exports.AppAndAppInstanceFragmentDoc = `
|
|
33
|
+
fragment appAndAppInstance on AppAndAppInstance {
|
|
26
34
|
app {
|
|
27
35
|
id
|
|
28
36
|
name
|
|
@@ -31,58 +39,80 @@ exports.DrozNexoAppInstanceFragmentDoc = `
|
|
|
31
39
|
appInstance {
|
|
32
40
|
drn
|
|
33
41
|
name
|
|
42
|
+
transitions
|
|
34
43
|
createdAt
|
|
35
44
|
updatedAt
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
`;
|
|
39
|
-
exports.
|
|
40
|
-
fragment
|
|
48
|
+
exports.SimpleConnectionSuggestionFragmentDoc = `
|
|
49
|
+
fragment simpleConnectionSuggestion on SimpleConnectionSuggestion {
|
|
41
50
|
title
|
|
42
51
|
trigger {
|
|
43
|
-
...
|
|
52
|
+
...appAndAppInstance
|
|
44
53
|
}
|
|
45
54
|
destination {
|
|
46
|
-
...
|
|
55
|
+
...appAndAppInstance
|
|
47
56
|
}
|
|
48
57
|
}
|
|
49
|
-
${exports.
|
|
50
|
-
exports.
|
|
51
|
-
fragment
|
|
58
|
+
${exports.AppAndAppInstanceFragmentDoc}`;
|
|
59
|
+
exports.SimpleConnectionFragmentDoc = `
|
|
60
|
+
fragment simpleConnection on SimpleConnection {
|
|
52
61
|
id
|
|
53
62
|
versionId
|
|
54
63
|
title
|
|
55
64
|
description
|
|
56
65
|
trigger {
|
|
57
|
-
...
|
|
66
|
+
...appAndAppInstance
|
|
58
67
|
}
|
|
59
68
|
destination {
|
|
60
|
-
...
|
|
69
|
+
...appAndAppInstance
|
|
61
70
|
}
|
|
62
71
|
createdAt
|
|
63
72
|
updatedAt
|
|
64
73
|
}
|
|
65
|
-
${exports.
|
|
66
|
-
exports.
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
74
|
+
${exports.AppAndAppInstanceFragmentDoc}`;
|
|
75
|
+
exports.NodeFragmentDoc = `
|
|
76
|
+
fragment node on Node {
|
|
77
|
+
id
|
|
78
|
+
type
|
|
79
|
+
data {
|
|
80
|
+
...appAndAppInstance
|
|
70
81
|
}
|
|
82
|
+
uidata
|
|
71
83
|
}
|
|
72
|
-
${exports.
|
|
73
|
-
exports.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
${exports.AppAndAppInstanceFragmentDoc}`;
|
|
85
|
+
exports.EdgeFragmentDoc = `
|
|
86
|
+
fragment edge on Edge {
|
|
87
|
+
id
|
|
88
|
+
source
|
|
89
|
+
target
|
|
90
|
+
type
|
|
91
|
+
sourceHandle
|
|
92
|
+
uidata
|
|
93
|
+
}
|
|
94
|
+
`;
|
|
95
|
+
exports.FlowFragmentDoc = `
|
|
96
|
+
fragment flow on Flow {
|
|
97
|
+
id
|
|
98
|
+
versionId
|
|
99
|
+
title
|
|
100
|
+
description
|
|
101
|
+
triggers {
|
|
102
|
+
...appAndAppInstance
|
|
103
|
+
}
|
|
104
|
+
nodes {
|
|
105
|
+
...node
|
|
83
106
|
}
|
|
107
|
+
edges {
|
|
108
|
+
...edge
|
|
109
|
+
}
|
|
110
|
+
createdAt
|
|
111
|
+
updatedAt
|
|
84
112
|
}
|
|
85
|
-
${exports.
|
|
113
|
+
${exports.AppAndAppInstanceFragmentDoc}
|
|
114
|
+
${exports.NodeFragmentDoc}
|
|
115
|
+
${exports.EdgeFragmentDoc}`;
|
|
86
116
|
exports.GetUsageStatisticsDocument = `
|
|
87
117
|
query getUsageStatistics {
|
|
88
118
|
getUsageStatistics {
|
|
@@ -92,36 +122,132 @@ exports.GetUsageStatisticsDocument = `
|
|
|
92
122
|
}
|
|
93
123
|
}
|
|
94
124
|
`;
|
|
95
|
-
exports.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
...
|
|
125
|
+
exports.GetFlowDocument = `
|
|
126
|
+
query getFlow($id: ID!, $versionId: ID!) {
|
|
127
|
+
getFlow(id: $id, versionId: $versionId) {
|
|
128
|
+
...flow
|
|
99
129
|
}
|
|
100
130
|
}
|
|
101
|
-
${exports.
|
|
102
|
-
exports.
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
131
|
+
${exports.FlowFragmentDoc}`;
|
|
132
|
+
exports.ListFlowsDocument = `
|
|
133
|
+
query listFlows {
|
|
134
|
+
listFlows {
|
|
135
|
+
nodes {
|
|
136
|
+
...flow
|
|
137
|
+
}
|
|
138
|
+
pageInfo {
|
|
139
|
+
next
|
|
140
|
+
hasNext
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
${exports.FlowFragmentDoc}`;
|
|
145
|
+
exports.ListSimpleSuggestionsDocument = `
|
|
146
|
+
query listSimpleSuggestions {
|
|
147
|
+
listSimpleConnectionSuggestions {
|
|
148
|
+
...simpleConnectionSuggestion
|
|
106
149
|
}
|
|
107
150
|
}
|
|
108
|
-
${exports.
|
|
151
|
+
${exports.SimpleConnectionSuggestionFragmentDoc}`;
|
|
152
|
+
exports.ListSimpleConnectionsDocument = `
|
|
153
|
+
query listSimpleConnections($next: Base64) {
|
|
154
|
+
listSimpleConnections(next: $next) {
|
|
155
|
+
nodes {
|
|
156
|
+
...simpleConnection
|
|
157
|
+
}
|
|
158
|
+
pageInfo {
|
|
159
|
+
next
|
|
160
|
+
hasNext
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
${exports.SimpleConnectionFragmentDoc}`;
|
|
165
|
+
exports.CreateFlowDocument = `
|
|
166
|
+
mutation createFlow($input: CreateFlowInput!) {
|
|
167
|
+
createFlow(input: $input) {
|
|
168
|
+
...flow
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
${exports.FlowFragmentDoc}`;
|
|
172
|
+
exports.EditFlowDocument = `
|
|
173
|
+
mutation editFlow($input: EditFlowInput!) {
|
|
174
|
+
editFlow(input: $input) {
|
|
175
|
+
...flow
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
${exports.FlowFragmentDoc}`;
|
|
179
|
+
exports.UpdateFlowDocument = `
|
|
180
|
+
mutation updateFlow($input: UpdateFlowInput!) {
|
|
181
|
+
updateFlow(input: $input) {
|
|
182
|
+
...flow
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
${exports.FlowFragmentDoc}`;
|
|
186
|
+
exports.PublishFlowDocument = `
|
|
187
|
+
mutation publishFlow($input: PublishFlowInput!) {
|
|
188
|
+
publishFlow(input: $input) {
|
|
189
|
+
...flow
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
${exports.FlowFragmentDoc}`;
|
|
193
|
+
exports.RemoveFlowDocument = `
|
|
194
|
+
mutation removeFlow($input: RemoveFlowInput!) {
|
|
195
|
+
removeFlow(input: $input) {
|
|
196
|
+
...flow
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
${exports.FlowFragmentDoc}`;
|
|
200
|
+
exports.CreateSimpleConnectionDocument = `
|
|
201
|
+
mutation createSimpleConnection($input: CreateSimpleConnectionInput!) {
|
|
202
|
+
createSimpleConnection(input: $input) {
|
|
203
|
+
...simpleConnection
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
${exports.SimpleConnectionFragmentDoc}`;
|
|
207
|
+
exports.RemoveSimpleConnectionDocument = `
|
|
208
|
+
mutation removeSimpleConnection($input: RemoveSimpleConnectionInput!) {
|
|
209
|
+
removeSimpleConnection(input: $input) {
|
|
210
|
+
...simpleConnection
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
${exports.SimpleConnectionFragmentDoc}`;
|
|
109
214
|
function getSdk(requester) {
|
|
110
215
|
return {
|
|
111
|
-
listDrozNexoSuggestions(variables, options) {
|
|
112
|
-
return requester(exports.ListDrozNexoSuggestionsDocument, variables, options);
|
|
113
|
-
},
|
|
114
|
-
listDrozNexoConnections(variables, options) {
|
|
115
|
-
return requester(exports.ListDrozNexoConnectionsDocument, variables, options);
|
|
116
|
-
},
|
|
117
216
|
getUsageStatistics(variables, options) {
|
|
118
217
|
return requester(exports.GetUsageStatisticsDocument, variables, options);
|
|
119
218
|
},
|
|
120
|
-
|
|
121
|
-
return requester(exports.
|
|
219
|
+
getFlow(variables, options) {
|
|
220
|
+
return requester(exports.GetFlowDocument, variables, options);
|
|
221
|
+
},
|
|
222
|
+
listFlows(variables, options) {
|
|
223
|
+
return requester(exports.ListFlowsDocument, variables, options);
|
|
224
|
+
},
|
|
225
|
+
listSimpleSuggestions(variables, options) {
|
|
226
|
+
return requester(exports.ListSimpleSuggestionsDocument, variables, options);
|
|
227
|
+
},
|
|
228
|
+
listSimpleConnections(variables, options) {
|
|
229
|
+
return requester(exports.ListSimpleConnectionsDocument, variables, options);
|
|
230
|
+
},
|
|
231
|
+
createFlow(variables, options) {
|
|
232
|
+
return requester(exports.CreateFlowDocument, variables, options);
|
|
233
|
+
},
|
|
234
|
+
editFlow(variables, options) {
|
|
235
|
+
return requester(exports.EditFlowDocument, variables, options);
|
|
236
|
+
},
|
|
237
|
+
updateFlow(variables, options) {
|
|
238
|
+
return requester(exports.UpdateFlowDocument, variables, options);
|
|
239
|
+
},
|
|
240
|
+
publishFlow(variables, options) {
|
|
241
|
+
return requester(exports.PublishFlowDocument, variables, options);
|
|
242
|
+
},
|
|
243
|
+
removeFlow(variables, options) {
|
|
244
|
+
return requester(exports.RemoveFlowDocument, variables, options);
|
|
245
|
+
},
|
|
246
|
+
createSimpleConnection(variables, options) {
|
|
247
|
+
return requester(exports.CreateSimpleConnectionDocument, variables, options);
|
|
122
248
|
},
|
|
123
|
-
|
|
124
|
-
return requester(exports.
|
|
249
|
+
removeSimpleConnection(variables, options) {
|
|
250
|
+
return requester(exports.RemoveSimpleConnectionDocument, variables, options);
|
|
125
251
|
}
|
|
126
252
|
};
|
|
127
253
|
}
|
package/src/sdks/nucleus.d.ts
CHANGED
|
@@ -152,7 +152,7 @@ export type AppInstance = {
|
|
|
152
152
|
createdAt: Scalars['DateTime']['output'];
|
|
153
153
|
drn: Scalars['DRN']['output'];
|
|
154
154
|
name: Scalars['String']['output'];
|
|
155
|
-
transitions
|
|
155
|
+
transitions: Array<Scalars['String']['output']>;
|
|
156
156
|
updatedAt: Scalars['DateTime']['output'];
|
|
157
157
|
};
|
|
158
158
|
export declare enum AppInstanceStatus {
|
|
@@ -504,6 +504,7 @@ export type Query = {
|
|
|
504
504
|
getAgent?: Maybe<Agent>;
|
|
505
505
|
getApp?: Maybe<App>;
|
|
506
506
|
getAppInstance?: Maybe<AppInstance>;
|
|
507
|
+
getAppInstances: Array<AppInstance>;
|
|
507
508
|
getCredentials?: Maybe<SafeCredentials>;
|
|
508
509
|
getCredentialsSecret?: Maybe<Credentials>;
|
|
509
510
|
getCronJob?: Maybe<CronJob>;
|
|
@@ -548,6 +549,9 @@ export type QueryGetAppArgs = {
|
|
|
548
549
|
export type QueryGetAppInstanceArgs = {
|
|
549
550
|
drn: Scalars['ID']['input'];
|
|
550
551
|
};
|
|
552
|
+
export type QueryGetAppInstancesArgs = {
|
|
553
|
+
drns: Array<Scalars['ID']['input']>;
|
|
554
|
+
};
|
|
551
555
|
export type QueryGetCredentialsArgs = {
|
|
552
556
|
id: Scalars['ID']['input'];
|
|
553
557
|
};
|
|
@@ -939,6 +943,14 @@ export type GetAppInstanceQuery = {
|
|
|
939
943
|
appInstance?: Maybe<AppInstanceFragment>;
|
|
940
944
|
app?: Maybe<AppFragment>;
|
|
941
945
|
};
|
|
946
|
+
export type GetAppInstancesQueryVariables = Exact<{
|
|
947
|
+
drns: Array<Scalars['ID']['input']> | Scalars['ID']['input'];
|
|
948
|
+
}>;
|
|
949
|
+
export type GetAppInstancesQuery = {
|
|
950
|
+
getAppInstances: Array<({
|
|
951
|
+
app: AppFragment;
|
|
952
|
+
} & AppInstanceFragment)>;
|
|
953
|
+
};
|
|
942
954
|
export type ListAppInstancesQueryVariables = Exact<{
|
|
943
955
|
appId?: InputMaybe<Scalars['ID']['input']>;
|
|
944
956
|
appType?: InputMaybe<AppType>;
|
|
@@ -1295,6 +1307,7 @@ export declare const RemoveRoleFromAgentDocument = "\n mutation removeRoleFro
|
|
|
1295
1307
|
export declare const GetAppDocument = "\n query getApp($appId: ID!, $withInstances: Boolean = false) {\n getApp(appId: $appId) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1296
1308
|
export declare const ListAppsDocument = "\n query listApps($type: AppType, $withInstances: Boolean = false) {\n listApps(type: $type) {\n ...app\n instances @include(if: $withInstances) {\n ...appInstance\n }\n }\n}\n \n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n \n\n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
1297
1309
|
export declare const GetAppInstanceDocument = "\n query getAppInstance($drn: ID!) {\n appInstance: getAppInstance(drn: $drn) {\n ...appInstance\n }\n app: getApp(appId: $drn) {\n ...app\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1310
|
+
export declare const GetAppInstancesDocument = "\n query getAppInstances($drns: [ID!]!) {\n getAppInstances(drns: $drns) {\n ...appInstance\n app {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1298
1311
|
export declare const ListAppInstancesDocument = "\n query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {\n listAppInstances(appId: $appId, appType: $appType) {\n ...appInstance\n app @include(if: $withApp) {\n ...app\n }\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n \n\n fragment app on App {\n id\n type\n name\n description\n color\n channels {\n id\n sources\n main\n readonly\n hidden\n }\n}\n ";
|
|
1299
1312
|
export declare const CountAppInstancesDocument = "\n query countAppInstances {\n countAppInstances\n}\n ";
|
|
1300
1313
|
export declare const RegisterAppInstanceDocument = "\n mutation registerAppInstance($input: RegisterAppInstanceInput!) {\n registerAppInstance(input: $input) {\n ...appInstance\n }\n}\n \n fragment appInstance on AppInstance {\n appId\n appType\n drn\n name\n transitions\n createdAt\n updatedAt\n}\n ";
|
|
@@ -1360,6 +1373,7 @@ export declare function getSdk<C>(requester: Requester<C>): {
|
|
|
1360
1373
|
getApp(variables: GetAppQueryVariables, options?: C): Promise<GetAppQuery>;
|
|
1361
1374
|
listApps(variables?: ListAppsQueryVariables, options?: C): Promise<ListAppsQuery>;
|
|
1362
1375
|
getAppInstance(variables: GetAppInstanceQueryVariables, options?: C): Promise<GetAppInstanceQuery>;
|
|
1376
|
+
getAppInstances(variables: GetAppInstancesQueryVariables, options?: C): Promise<GetAppInstancesQuery>;
|
|
1363
1377
|
listAppInstances(variables?: ListAppInstancesQueryVariables, options?: C): Promise<ListAppInstancesQuery>;
|
|
1364
1378
|
countAppInstances(variables?: CountAppInstancesQueryVariables, options?: C): Promise<CountAppInstancesQuery>;
|
|
1365
1379
|
registerAppInstance(variables: RegisterAppInstanceMutationVariables, options?: C): Promise<RegisterAppInstanceMutation>;
|
package/src/sdks/nucleus.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* istanbul ignore file */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = void 0;
|
|
4
|
+
exports.CountCredentialsDocument = exports.ListCredentialsDocument = exports.GetCredentialsSecretDocument = exports.GetCredentialsDocument = exports.GetAuthInfoDocument = exports.GetAmplifyConfigDocument = exports.UnregisterAppInstanceDocument = exports.RegisterAppInstanceDocument = exports.CountAppInstancesDocument = exports.ListAppInstancesDocument = exports.GetAppInstancesDocument = exports.GetAppInstanceDocument = exports.ListAppsDocument = exports.GetAppDocument = exports.RemoveRoleFromAgentDocument = exports.AddRoleToAgentDocument = exports.RemoveAgentDocument = exports.UpdateAgentDocument = exports.CreateApiKeyAgentDocument = exports.CreateAgentDocument = exports.UpdateMyProfileDocument = exports.ListApiKeyAgentsDocument = exports.ListAgentsDocument = exports.GetAgentDocument = exports.GetMeDocument = exports.StorageFragmentDoc = exports.StateMachineConfigConnectionFragmentDoc = exports.StateMachineConfigFragmentDoc = exports.StateMachineConfigStateFragmentDoc = exports.StateMachineConfigStateOnFragmentDoc = exports.SessionSchemaFragmentDoc = exports.SessionFragmentDoc = exports.RoleFragmentDoc = exports.PolicyFragmentDoc = exports.CronJobFragmentDoc = exports.CustomerFragmentDoc = exports.SafeCredentialsFragmentDoc = exports.AppWithInstancesFragmentDoc = exports.AppInstanceFragmentDoc = exports.AppFragmentDoc = exports.ApiKeyFragmentDoc = exports.AgentFragmentDoc = exports.Typenames = exports.StateMachineConfigStatus = exports.PatchOperation = exports.CustomerIndex = exports.CredentialsType = exports.Can = exports.AppType = exports.AppInstanceStatus = void 0;
|
|
5
|
+
exports.serviceName = exports.getSdk = exports.CreatePresignedUploadUrlDocument = exports.GetStorageDocument = exports.RemoveStateMachineConfigStateDocument = exports.UpdateStateMachineConfigStateDocument = exports.CreateStateMachineConfigStateDocument = exports.PublishStateMachineConfigDocument = exports.EditStateMachineConfigDocument = exports.RemoveStateMachineConfigDocument = exports.UpdateStateMachineConfigDocument = exports.CreateStateMachineConfigDocument = exports.IsAppInstanceInUseDocument = exports.GetXStateMachineConfigDocument = exports.ListStateMachineConfigVersionsDocument = exports.ListDraftStateMachineConfigsDocument = exports.ListLiveStateMachineConfigsDocument = exports.CountLiveStateMachineConfigsDocument = exports.GetStateMachineDocument = exports.RemoveTagsFromSessionAttributesDocument = exports.AddTagsToSessionAttributesDocument = exports.PatchSessionAttributesDocument = exports.SetSessionAttributeDocument = exports.GetSessionSchemaForAppIdDocument = exports.GetSessionSchemaDocument = exports.GetSessionDocument = exports.StartSessionDocument = exports.CheckPermissionsDocument = exports.GetSystemRoleDocument = exports.ListSystemRolesDocument = exports.RemoveCronJobDocument = exports.UpdateCronJobDocument = exports.CreateCronJobDocument = exports.ListCronJobsDocument = exports.GetCronJobDocument = exports.GetOrCreateCustomerDocument = exports.ListCustomersDocument = exports.GetCustomerDocument = exports.RemoveCredentialsDocument = exports.UpdateCredentialsDocument = exports.CreateCredentialsDocument = void 0;
|
|
6
6
|
var AppInstanceStatus;
|
|
7
7
|
(function (AppInstanceStatus) {
|
|
8
8
|
AppInstanceStatus["Active"] = "Active";
|
|
@@ -378,6 +378,17 @@ exports.GetAppInstanceDocument = `
|
|
|
378
378
|
}
|
|
379
379
|
${exports.AppInstanceFragmentDoc}
|
|
380
380
|
${exports.AppFragmentDoc}`;
|
|
381
|
+
exports.GetAppInstancesDocument = `
|
|
382
|
+
query getAppInstances($drns: [ID!]!) {
|
|
383
|
+
getAppInstances(drns: $drns) {
|
|
384
|
+
...appInstance
|
|
385
|
+
app {
|
|
386
|
+
...app
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
${exports.AppInstanceFragmentDoc}
|
|
391
|
+
${exports.AppFragmentDoc}`;
|
|
381
392
|
exports.ListAppInstancesDocument = `
|
|
382
393
|
query listAppInstances($appId: ID, $appType: AppType, $withApp: Boolean = false) {
|
|
383
394
|
listAppInstances(appId: $appId, appType: $appType) {
|
|
@@ -798,6 +809,9 @@ function getSdk(requester) {
|
|
|
798
809
|
getAppInstance(variables, options) {
|
|
799
810
|
return requester(exports.GetAppInstanceDocument, variables, options);
|
|
800
811
|
},
|
|
812
|
+
getAppInstances(variables, options) {
|
|
813
|
+
return requester(exports.GetAppInstancesDocument, variables, options);
|
|
814
|
+
},
|
|
801
815
|
listAppInstances(variables, options) {
|
|
802
816
|
return requester(exports.ListAppInstancesDocument, variables, options);
|
|
803
817
|
},
|