@rlvt/workflows-openapi-client 0.0.0-c52f049 → 0.0.0-ea125dc
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/build/api.d.ts +142 -322
- package/build/api.js +29 -32
- package/build/definitions.d.ts +99 -117
- package/build/definitions.js +1 -1
- package/package.json +1 -1
package/build/api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AxiosInstance, AxiosRequestConfig } from "axios";
|
|
2
|
-
import
|
|
3
|
-
export
|
|
2
|
+
import type { WorkflowTemplates, Workflows, WorkflowStatus, Pick_SerializedWorkflow_name_or_description_or_resourceGroupIds_, Partial_SerializedWorkflow_, Partial_SerializedWorkflowVersions_, AnyValue, WithoutReadonly, WithoutWriteonly } from "./definitions";
|
|
3
|
+
export type { WorkflowTemplates, Workflows, WorkflowStatus, Pick_SerializedWorkflow_name_or_description_or_resourceGroupIds_, Partial_SerializedWorkflow_, Partial_SerializedWorkflowVersions_, AnyValue, WithoutReadonly, WithoutWriteonly };
|
|
4
4
|
export default class {
|
|
5
5
|
axios: AxiosInstance;
|
|
6
6
|
constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
|
|
@@ -30,30 +30,25 @@ export default class {
|
|
|
30
30
|
code?: number;
|
|
31
31
|
message: string;
|
|
32
32
|
data: {
|
|
33
|
+
name: string;
|
|
34
|
+
categories: string[];
|
|
33
35
|
readonly id: string & {
|
|
34
36
|
readonly?: "__readonly";
|
|
35
37
|
};
|
|
36
|
-
|
|
38
|
+
metadata?: {};
|
|
37
39
|
icon: string;
|
|
38
40
|
slug: string;
|
|
39
|
-
categories: string[];
|
|
40
41
|
feature?: string;
|
|
41
42
|
template: {
|
|
42
43
|
entrypoints: {
|
|
43
44
|
node: string;
|
|
44
45
|
type: "email" | "raw";
|
|
45
46
|
}[];
|
|
46
|
-
nodes: {
|
|
47
|
-
[x: string]: {
|
|
48
|
-
name: string;
|
|
49
|
-
metadata: {};
|
|
50
|
-
dependencies: string[];
|
|
51
|
-
};
|
|
52
|
-
};
|
|
47
|
+
nodes: {};
|
|
53
48
|
};
|
|
54
49
|
}[];
|
|
55
50
|
}>>;
|
|
56
|
-
listTemplateCategories: (
|
|
51
|
+
listTemplateCategories: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
57
52
|
status: "success";
|
|
58
53
|
program: string;
|
|
59
54
|
version: string;
|
|
@@ -65,7 +60,7 @@ export default class {
|
|
|
65
60
|
list: (params: {
|
|
66
61
|
name?: string;
|
|
67
62
|
resourceGroupIds?: string[];
|
|
68
|
-
status?:
|
|
63
|
+
status?: WorkflowStatus[];
|
|
69
64
|
sortBy?: "updatedAt" | "createdAt";
|
|
70
65
|
sortOrder?: "desc" | "asc";
|
|
71
66
|
page?: number;
|
|
@@ -82,23 +77,36 @@ export default class {
|
|
|
82
77
|
message: string;
|
|
83
78
|
data: {
|
|
84
79
|
description?: string;
|
|
80
|
+
name: string;
|
|
81
|
+
readonly updatedAt: Date & {
|
|
82
|
+
readonly?: "__readonly";
|
|
83
|
+
};
|
|
84
|
+
readonly createdAt: Date & {
|
|
85
|
+
readonly?: "__readonly";
|
|
86
|
+
};
|
|
87
|
+
resourceGroupIds: string[];
|
|
88
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
89
|
+
readonly?: "__readonly";
|
|
90
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
91
|
+
readonly?: "__readonly";
|
|
92
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
93
|
+
readonly?: "__readonly";
|
|
94
|
+
}) | (WorkflowStatus.ERROR & {
|
|
95
|
+
readonly?: "__readonly";
|
|
96
|
+
});
|
|
85
97
|
readonly id: string & {
|
|
86
98
|
readonly?: "__readonly";
|
|
87
99
|
};
|
|
88
|
-
name: string;
|
|
89
100
|
readonly companyId: string & {
|
|
90
101
|
readonly?: "__readonly";
|
|
91
102
|
};
|
|
92
|
-
resourceGroupIds: string[];
|
|
93
103
|
readonly versions: {
|
|
94
|
-
metadata?: {
|
|
95
|
-
|
|
96
|
-
};
|
|
97
|
-
readonly state: (Types.WorkflowVersionState.DRAFT & {
|
|
104
|
+
metadata?: {};
|
|
105
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
98
106
|
readonly?: "__readonly";
|
|
99
|
-
}) | (
|
|
107
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
100
108
|
readonly?: "__readonly";
|
|
101
|
-
}) | (
|
|
109
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
102
110
|
readonly?: "__readonly";
|
|
103
111
|
});
|
|
104
112
|
definition: {
|
|
@@ -106,68 +114,22 @@ export default class {
|
|
|
106
114
|
node: string;
|
|
107
115
|
type: "email" | "raw";
|
|
108
116
|
}[];
|
|
109
|
-
nodes: {
|
|
110
|
-
[x: string]: {
|
|
111
|
-
name: string;
|
|
112
|
-
metadata: {};
|
|
113
|
-
dependencies: string[];
|
|
114
|
-
edges: {
|
|
115
|
-
node: string;
|
|
116
|
-
config: {
|
|
117
|
-
[x: string]: {
|
|
118
|
-
type: "static";
|
|
119
|
-
value: any;
|
|
120
|
-
} | {
|
|
121
|
-
type: "dynamic";
|
|
122
|
-
value: any;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
}[];
|
|
126
|
-
} | {
|
|
127
|
-
name: string;
|
|
128
|
-
config: {
|
|
129
|
-
[x: string]: {
|
|
130
|
-
type: "static";
|
|
131
|
-
value: any;
|
|
132
|
-
} | {
|
|
133
|
-
type: "dynamic";
|
|
134
|
-
value: any;
|
|
135
|
-
};
|
|
136
|
-
};
|
|
137
|
-
metadata: {};
|
|
138
|
-
dependencies: string[];
|
|
139
|
-
};
|
|
140
|
-
};
|
|
117
|
+
nodes: {};
|
|
141
118
|
};
|
|
142
119
|
readonly analyze: {
|
|
143
|
-
outputsForEntrypoint: {
|
|
144
|
-
[x: string]: string[];
|
|
145
|
-
};
|
|
146
|
-
entrypointsForOuput: {
|
|
147
|
-
[x: string]: string[];
|
|
148
|
-
};
|
|
149
|
-
datasForEntrypoint: {
|
|
150
|
-
[x: string]: string[];
|
|
151
|
-
};
|
|
152
120
|
readonly?: "__readonly";
|
|
121
|
+
outputsForEntrypoint: {};
|
|
122
|
+
entrypointsForOuput: {};
|
|
123
|
+
datasForEntrypoint: {};
|
|
153
124
|
};
|
|
154
125
|
}[];
|
|
155
126
|
readonly urls?: {
|
|
156
|
-
display: string;
|
|
157
127
|
click: string;
|
|
128
|
+
display: string;
|
|
158
129
|
}[];
|
|
159
|
-
readonly status: (Types.WorkflowStatus.DRAFT & {
|
|
160
|
-
readonly?: "__readonly";
|
|
161
|
-
}) | (Types.WorkflowStatus.PUBLISHING & {
|
|
162
|
-
readonly?: "__readonly";
|
|
163
|
-
}) | (Types.WorkflowStatus.PUBLISHED & {
|
|
164
|
-
readonly?: "__readonly";
|
|
165
|
-
}) | (Types.WorkflowStatus.ERROR & {
|
|
166
|
-
readonly?: "__readonly";
|
|
167
|
-
});
|
|
168
130
|
}[];
|
|
169
131
|
}>>;
|
|
170
|
-
create: (
|
|
132
|
+
create: (data: {
|
|
171
133
|
description?: string;
|
|
172
134
|
name: string;
|
|
173
135
|
resourceGroupIds: string[];
|
|
@@ -180,23 +142,36 @@ export default class {
|
|
|
180
142
|
message: string;
|
|
181
143
|
data: {
|
|
182
144
|
description?: string;
|
|
145
|
+
name: string;
|
|
146
|
+
readonly updatedAt: Date & {
|
|
147
|
+
readonly?: "__readonly";
|
|
148
|
+
};
|
|
149
|
+
readonly createdAt: Date & {
|
|
150
|
+
readonly?: "__readonly";
|
|
151
|
+
};
|
|
152
|
+
resourceGroupIds: string[];
|
|
153
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
154
|
+
readonly?: "__readonly";
|
|
155
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
156
|
+
readonly?: "__readonly";
|
|
157
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
158
|
+
readonly?: "__readonly";
|
|
159
|
+
}) | (WorkflowStatus.ERROR & {
|
|
160
|
+
readonly?: "__readonly";
|
|
161
|
+
});
|
|
183
162
|
readonly id: string & {
|
|
184
163
|
readonly?: "__readonly";
|
|
185
164
|
};
|
|
186
|
-
name: string;
|
|
187
165
|
readonly companyId: string & {
|
|
188
166
|
readonly?: "__readonly";
|
|
189
167
|
};
|
|
190
|
-
resourceGroupIds: string[];
|
|
191
168
|
readonly versions: {
|
|
192
|
-
metadata?: {
|
|
193
|
-
|
|
194
|
-
};
|
|
195
|
-
readonly state: (Types.WorkflowVersionState.DRAFT & {
|
|
169
|
+
metadata?: {};
|
|
170
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
196
171
|
readonly?: "__readonly";
|
|
197
|
-
}) | (
|
|
172
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
198
173
|
readonly?: "__readonly";
|
|
199
|
-
}) | (
|
|
174
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
200
175
|
readonly?: "__readonly";
|
|
201
176
|
});
|
|
202
177
|
definition: {
|
|
@@ -204,65 +179,19 @@ export default class {
|
|
|
204
179
|
node: string;
|
|
205
180
|
type: "email" | "raw";
|
|
206
181
|
}[];
|
|
207
|
-
nodes: {
|
|
208
|
-
[x: string]: {
|
|
209
|
-
name: string;
|
|
210
|
-
metadata: {};
|
|
211
|
-
dependencies: string[];
|
|
212
|
-
edges: {
|
|
213
|
-
node: string;
|
|
214
|
-
config: {
|
|
215
|
-
[x: string]: {
|
|
216
|
-
type: "static";
|
|
217
|
-
value: any;
|
|
218
|
-
} | {
|
|
219
|
-
type: "dynamic";
|
|
220
|
-
value: any;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
}[];
|
|
224
|
-
} | {
|
|
225
|
-
name: string;
|
|
226
|
-
config: {
|
|
227
|
-
[x: string]: {
|
|
228
|
-
type: "static";
|
|
229
|
-
value: any;
|
|
230
|
-
} | {
|
|
231
|
-
type: "dynamic";
|
|
232
|
-
value: any;
|
|
233
|
-
};
|
|
234
|
-
};
|
|
235
|
-
metadata: {};
|
|
236
|
-
dependencies: string[];
|
|
237
|
-
};
|
|
238
|
-
};
|
|
182
|
+
nodes: {};
|
|
239
183
|
};
|
|
240
184
|
readonly analyze: {
|
|
241
|
-
outputsForEntrypoint: {
|
|
242
|
-
[x: string]: string[];
|
|
243
|
-
};
|
|
244
|
-
entrypointsForOuput: {
|
|
245
|
-
[x: string]: string[];
|
|
246
|
-
};
|
|
247
|
-
datasForEntrypoint: {
|
|
248
|
-
[x: string]: string[];
|
|
249
|
-
};
|
|
250
185
|
readonly?: "__readonly";
|
|
186
|
+
outputsForEntrypoint: {};
|
|
187
|
+
entrypointsForOuput: {};
|
|
188
|
+
datasForEntrypoint: {};
|
|
251
189
|
};
|
|
252
190
|
}[];
|
|
253
191
|
readonly urls?: {
|
|
254
|
-
display: string;
|
|
255
192
|
click: string;
|
|
193
|
+
display: string;
|
|
256
194
|
}[];
|
|
257
|
-
readonly status: (Types.WorkflowStatus.DRAFT & {
|
|
258
|
-
readonly?: "__readonly";
|
|
259
|
-
}) | (Types.WorkflowStatus.PUBLISHING & {
|
|
260
|
-
readonly?: "__readonly";
|
|
261
|
-
}) | (Types.WorkflowStatus.PUBLISHED & {
|
|
262
|
-
readonly?: "__readonly";
|
|
263
|
-
}) | (Types.WorkflowStatus.ERROR & {
|
|
264
|
-
readonly?: "__readonly";
|
|
265
|
-
});
|
|
266
195
|
};
|
|
267
196
|
}>>;
|
|
268
197
|
get: (params: {
|
|
@@ -276,23 +205,36 @@ export default class {
|
|
|
276
205
|
message: string;
|
|
277
206
|
data: {
|
|
278
207
|
description?: string;
|
|
208
|
+
name: string;
|
|
209
|
+
readonly updatedAt: Date & {
|
|
210
|
+
readonly?: "__readonly";
|
|
211
|
+
};
|
|
212
|
+
readonly createdAt: Date & {
|
|
213
|
+
readonly?: "__readonly";
|
|
214
|
+
};
|
|
215
|
+
resourceGroupIds: string[];
|
|
216
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
217
|
+
readonly?: "__readonly";
|
|
218
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
219
|
+
readonly?: "__readonly";
|
|
220
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
221
|
+
readonly?: "__readonly";
|
|
222
|
+
}) | (WorkflowStatus.ERROR & {
|
|
223
|
+
readonly?: "__readonly";
|
|
224
|
+
});
|
|
279
225
|
readonly id: string & {
|
|
280
226
|
readonly?: "__readonly";
|
|
281
227
|
};
|
|
282
|
-
name: string;
|
|
283
228
|
readonly companyId: string & {
|
|
284
229
|
readonly?: "__readonly";
|
|
285
230
|
};
|
|
286
|
-
resourceGroupIds: string[];
|
|
287
231
|
readonly versions: {
|
|
288
|
-
metadata?: {
|
|
289
|
-
|
|
290
|
-
};
|
|
291
|
-
readonly state: (Types.WorkflowVersionState.DRAFT & {
|
|
232
|
+
metadata?: {};
|
|
233
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
292
234
|
readonly?: "__readonly";
|
|
293
|
-
}) | (
|
|
235
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
294
236
|
readonly?: "__readonly";
|
|
295
|
-
}) | (
|
|
237
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
296
238
|
readonly?: "__readonly";
|
|
297
239
|
});
|
|
298
240
|
definition: {
|
|
@@ -300,65 +242,19 @@ export default class {
|
|
|
300
242
|
node: string;
|
|
301
243
|
type: "email" | "raw";
|
|
302
244
|
}[];
|
|
303
|
-
nodes: {
|
|
304
|
-
[x: string]: {
|
|
305
|
-
name: string;
|
|
306
|
-
metadata: {};
|
|
307
|
-
dependencies: string[];
|
|
308
|
-
edges: {
|
|
309
|
-
node: string;
|
|
310
|
-
config: {
|
|
311
|
-
[x: string]: {
|
|
312
|
-
type: "static";
|
|
313
|
-
value: any;
|
|
314
|
-
} | {
|
|
315
|
-
type: "dynamic";
|
|
316
|
-
value: any;
|
|
317
|
-
};
|
|
318
|
-
};
|
|
319
|
-
}[];
|
|
320
|
-
} | {
|
|
321
|
-
name: string;
|
|
322
|
-
config: {
|
|
323
|
-
[x: string]: {
|
|
324
|
-
type: "static";
|
|
325
|
-
value: any;
|
|
326
|
-
} | {
|
|
327
|
-
type: "dynamic";
|
|
328
|
-
value: any;
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
metadata: {};
|
|
332
|
-
dependencies: string[];
|
|
333
|
-
};
|
|
334
|
-
};
|
|
245
|
+
nodes: {};
|
|
335
246
|
};
|
|
336
247
|
readonly analyze: {
|
|
337
|
-
outputsForEntrypoint: {
|
|
338
|
-
[x: string]: string[];
|
|
339
|
-
};
|
|
340
|
-
entrypointsForOuput: {
|
|
341
|
-
[x: string]: string[];
|
|
342
|
-
};
|
|
343
|
-
datasForEntrypoint: {
|
|
344
|
-
[x: string]: string[];
|
|
345
|
-
};
|
|
346
248
|
readonly?: "__readonly";
|
|
249
|
+
outputsForEntrypoint: {};
|
|
250
|
+
entrypointsForOuput: {};
|
|
251
|
+
datasForEntrypoint: {};
|
|
347
252
|
};
|
|
348
253
|
}[];
|
|
349
254
|
readonly urls?: {
|
|
350
|
-
display: string;
|
|
351
255
|
click: string;
|
|
256
|
+
display: string;
|
|
352
257
|
}[];
|
|
353
|
-
readonly status: (Types.WorkflowStatus.DRAFT & {
|
|
354
|
-
readonly?: "__readonly";
|
|
355
|
-
}) | (Types.WorkflowStatus.PUBLISHING & {
|
|
356
|
-
readonly?: "__readonly";
|
|
357
|
-
}) | (Types.WorkflowStatus.PUBLISHED & {
|
|
358
|
-
readonly?: "__readonly";
|
|
359
|
-
}) | (Types.WorkflowStatus.ERROR & {
|
|
360
|
-
readonly?: "__readonly";
|
|
361
|
-
});
|
|
362
258
|
};
|
|
363
259
|
}>>;
|
|
364
260
|
update: (params: {
|
|
@@ -368,21 +264,13 @@ export default class {
|
|
|
368
264
|
name?: string;
|
|
369
265
|
resourceGroupIds?: string[];
|
|
370
266
|
} & {
|
|
371
|
-
metadata?: {
|
|
372
|
-
[x: string]: any;
|
|
373
|
-
};
|
|
267
|
+
metadata?: {};
|
|
374
268
|
definition?: {
|
|
375
269
|
entrypoints: {
|
|
376
270
|
node: string;
|
|
377
271
|
type: "email" | "raw";
|
|
378
272
|
}[];
|
|
379
|
-
nodes: {
|
|
380
|
-
[x: string]: {
|
|
381
|
-
name: string;
|
|
382
|
-
metadata: {};
|
|
383
|
-
dependencies: string[];
|
|
384
|
-
};
|
|
385
|
-
};
|
|
273
|
+
nodes: {};
|
|
386
274
|
};
|
|
387
275
|
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
388
276
|
status: "success";
|
|
@@ -393,23 +281,36 @@ export default class {
|
|
|
393
281
|
message: string;
|
|
394
282
|
data: {
|
|
395
283
|
description?: string;
|
|
284
|
+
name: string;
|
|
285
|
+
readonly updatedAt: Date & {
|
|
286
|
+
readonly?: "__readonly";
|
|
287
|
+
};
|
|
288
|
+
readonly createdAt: Date & {
|
|
289
|
+
readonly?: "__readonly";
|
|
290
|
+
};
|
|
291
|
+
resourceGroupIds: string[];
|
|
292
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
293
|
+
readonly?: "__readonly";
|
|
294
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
295
|
+
readonly?: "__readonly";
|
|
296
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
297
|
+
readonly?: "__readonly";
|
|
298
|
+
}) | (WorkflowStatus.ERROR & {
|
|
299
|
+
readonly?: "__readonly";
|
|
300
|
+
});
|
|
396
301
|
readonly id: string & {
|
|
397
302
|
readonly?: "__readonly";
|
|
398
303
|
};
|
|
399
|
-
name: string;
|
|
400
304
|
readonly companyId: string & {
|
|
401
305
|
readonly?: "__readonly";
|
|
402
306
|
};
|
|
403
|
-
resourceGroupIds: string[];
|
|
404
307
|
readonly versions: {
|
|
405
|
-
metadata?: {
|
|
406
|
-
|
|
407
|
-
};
|
|
408
|
-
readonly state: (Types.WorkflowVersionState.DRAFT & {
|
|
308
|
+
metadata?: {};
|
|
309
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
409
310
|
readonly?: "__readonly";
|
|
410
|
-
}) | (
|
|
311
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
411
312
|
readonly?: "__readonly";
|
|
412
|
-
}) | (
|
|
313
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
413
314
|
readonly?: "__readonly";
|
|
414
315
|
});
|
|
415
316
|
definition: {
|
|
@@ -417,65 +318,19 @@ export default class {
|
|
|
417
318
|
node: string;
|
|
418
319
|
type: "email" | "raw";
|
|
419
320
|
}[];
|
|
420
|
-
nodes: {
|
|
421
|
-
[x: string]: {
|
|
422
|
-
name: string;
|
|
423
|
-
metadata: {};
|
|
424
|
-
dependencies: string[];
|
|
425
|
-
edges: {
|
|
426
|
-
node: string;
|
|
427
|
-
config: {
|
|
428
|
-
[x: string]: {
|
|
429
|
-
type: "static";
|
|
430
|
-
value: any;
|
|
431
|
-
} | {
|
|
432
|
-
type: "dynamic";
|
|
433
|
-
value: any;
|
|
434
|
-
};
|
|
435
|
-
};
|
|
436
|
-
}[];
|
|
437
|
-
} | {
|
|
438
|
-
name: string;
|
|
439
|
-
config: {
|
|
440
|
-
[x: string]: {
|
|
441
|
-
type: "static";
|
|
442
|
-
value: any;
|
|
443
|
-
} | {
|
|
444
|
-
type: "dynamic";
|
|
445
|
-
value: any;
|
|
446
|
-
};
|
|
447
|
-
};
|
|
448
|
-
metadata: {};
|
|
449
|
-
dependencies: string[];
|
|
450
|
-
};
|
|
451
|
-
};
|
|
321
|
+
nodes: {};
|
|
452
322
|
};
|
|
453
323
|
readonly analyze: {
|
|
454
|
-
outputsForEntrypoint: {
|
|
455
|
-
[x: string]: string[];
|
|
456
|
-
};
|
|
457
|
-
entrypointsForOuput: {
|
|
458
|
-
[x: string]: string[];
|
|
459
|
-
};
|
|
460
|
-
datasForEntrypoint: {
|
|
461
|
-
[x: string]: string[];
|
|
462
|
-
};
|
|
463
324
|
readonly?: "__readonly";
|
|
325
|
+
outputsForEntrypoint: {};
|
|
326
|
+
entrypointsForOuput: {};
|
|
327
|
+
datasForEntrypoint: {};
|
|
464
328
|
};
|
|
465
329
|
}[];
|
|
466
330
|
readonly urls?: {
|
|
467
|
-
display: string;
|
|
468
331
|
click: string;
|
|
332
|
+
display: string;
|
|
469
333
|
}[];
|
|
470
|
-
readonly status: (Types.WorkflowStatus.DRAFT & {
|
|
471
|
-
readonly?: "__readonly";
|
|
472
|
-
}) | (Types.WorkflowStatus.PUBLISHING & {
|
|
473
|
-
readonly?: "__readonly";
|
|
474
|
-
}) | (Types.WorkflowStatus.PUBLISHED & {
|
|
475
|
-
readonly?: "__readonly";
|
|
476
|
-
}) | (Types.WorkflowStatus.ERROR & {
|
|
477
|
-
readonly?: "__readonly";
|
|
478
|
-
});
|
|
479
334
|
};
|
|
480
335
|
}>>;
|
|
481
336
|
delete: (params: {
|
|
@@ -500,23 +355,36 @@ export default class {
|
|
|
500
355
|
message: string;
|
|
501
356
|
data: {
|
|
502
357
|
description?: string;
|
|
358
|
+
name: string;
|
|
359
|
+
readonly updatedAt: Date & {
|
|
360
|
+
readonly?: "__readonly";
|
|
361
|
+
};
|
|
362
|
+
readonly createdAt: Date & {
|
|
363
|
+
readonly?: "__readonly";
|
|
364
|
+
};
|
|
365
|
+
resourceGroupIds: string[];
|
|
366
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
367
|
+
readonly?: "__readonly";
|
|
368
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
369
|
+
readonly?: "__readonly";
|
|
370
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
371
|
+
readonly?: "__readonly";
|
|
372
|
+
}) | (WorkflowStatus.ERROR & {
|
|
373
|
+
readonly?: "__readonly";
|
|
374
|
+
});
|
|
503
375
|
readonly id: string & {
|
|
504
376
|
readonly?: "__readonly";
|
|
505
377
|
};
|
|
506
|
-
name: string;
|
|
507
378
|
readonly companyId: string & {
|
|
508
379
|
readonly?: "__readonly";
|
|
509
380
|
};
|
|
510
|
-
resourceGroupIds: string[];
|
|
511
381
|
readonly versions: {
|
|
512
|
-
metadata?: {
|
|
513
|
-
|
|
514
|
-
};
|
|
515
|
-
readonly state: (Types.WorkflowVersionState.DRAFT & {
|
|
382
|
+
metadata?: {};
|
|
383
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
516
384
|
readonly?: "__readonly";
|
|
517
|
-
}) | (
|
|
385
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
518
386
|
readonly?: "__readonly";
|
|
519
|
-
}) | (
|
|
387
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
520
388
|
readonly?: "__readonly";
|
|
521
389
|
});
|
|
522
390
|
definition: {
|
|
@@ -524,65 +392,19 @@ export default class {
|
|
|
524
392
|
node: string;
|
|
525
393
|
type: "email" | "raw";
|
|
526
394
|
}[];
|
|
527
|
-
nodes: {
|
|
528
|
-
[x: string]: {
|
|
529
|
-
name: string;
|
|
530
|
-
metadata: {};
|
|
531
|
-
dependencies: string[];
|
|
532
|
-
edges: {
|
|
533
|
-
node: string;
|
|
534
|
-
config: {
|
|
535
|
-
[x: string]: {
|
|
536
|
-
type: "static";
|
|
537
|
-
value: any;
|
|
538
|
-
} | {
|
|
539
|
-
type: "dynamic";
|
|
540
|
-
value: any;
|
|
541
|
-
};
|
|
542
|
-
};
|
|
543
|
-
}[];
|
|
544
|
-
} | {
|
|
545
|
-
name: string;
|
|
546
|
-
config: {
|
|
547
|
-
[x: string]: {
|
|
548
|
-
type: "static";
|
|
549
|
-
value: any;
|
|
550
|
-
} | {
|
|
551
|
-
type: "dynamic";
|
|
552
|
-
value: any;
|
|
553
|
-
};
|
|
554
|
-
};
|
|
555
|
-
metadata: {};
|
|
556
|
-
dependencies: string[];
|
|
557
|
-
};
|
|
558
|
-
};
|
|
395
|
+
nodes: {};
|
|
559
396
|
};
|
|
560
397
|
readonly analyze: {
|
|
561
|
-
outputsForEntrypoint: {
|
|
562
|
-
[x: string]: string[];
|
|
563
|
-
};
|
|
564
|
-
entrypointsForOuput: {
|
|
565
|
-
[x: string]: string[];
|
|
566
|
-
};
|
|
567
|
-
datasForEntrypoint: {
|
|
568
|
-
[x: string]: string[];
|
|
569
|
-
};
|
|
570
398
|
readonly?: "__readonly";
|
|
399
|
+
outputsForEntrypoint: {};
|
|
400
|
+
entrypointsForOuput: {};
|
|
401
|
+
datasForEntrypoint: {};
|
|
571
402
|
};
|
|
572
403
|
}[];
|
|
573
404
|
readonly urls?: {
|
|
574
|
-
display: string;
|
|
575
405
|
click: string;
|
|
406
|
+
display: string;
|
|
576
407
|
}[];
|
|
577
|
-
readonly status: (Types.WorkflowStatus.DRAFT & {
|
|
578
|
-
readonly?: "__readonly";
|
|
579
|
-
}) | (Types.WorkflowStatus.PUBLISHING & {
|
|
580
|
-
readonly?: "__readonly";
|
|
581
|
-
}) | (Types.WorkflowStatus.PUBLISHED & {
|
|
582
|
-
readonly?: "__readonly";
|
|
583
|
-
}) | (Types.WorkflowStatus.ERROR & {
|
|
584
|
-
readonly?: "__readonly";
|
|
585
|
-
});
|
|
586
408
|
};
|
|
587
409
|
}>>;
|
|
588
410
|
};
|
|
@@ -593,8 +415,6 @@ export default class {
|
|
|
593
415
|
'~ru~': string;
|
|
594
416
|
mode?: "click" | "display";
|
|
595
417
|
'no-cache'?: string;
|
|
596
|
-
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<
|
|
597
|
-
[x: string]: any;
|
|
598
|
-
}>>;
|
|
418
|
+
}, options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<any>>;
|
|
599
419
|
};
|
|
600
420
|
}
|
package/build/api.js
CHANGED
|
@@ -1,60 +1,49 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
-
if (k2 === undefined) k2 = k;
|
|
6
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
7
|
-
}) : (function(o, m, k, k2) {
|
|
8
|
-
if (k2 === undefined) k2 = k;
|
|
9
|
-
o[k2] = m[k];
|
|
10
|
-
}));
|
|
11
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
12
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
13
|
-
};
|
|
14
4
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15
5
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
16
6
|
};
|
|
17
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
8
|
const axios_1 = __importDefault(require("axios"));
|
|
19
|
-
__exportStar(require("./definitions"), exports);
|
|
20
|
-
function pick(obj, ...keys) {
|
|
21
|
-
const ret = {};
|
|
22
|
-
keys.forEach(key => {
|
|
23
|
-
if (key in obj)
|
|
24
|
-
ret[key] = obj[key];
|
|
25
|
-
});
|
|
26
|
-
return ret;
|
|
27
|
-
}
|
|
28
9
|
class default_1 {
|
|
29
10
|
constructor(configOrInstance) {
|
|
30
|
-
this.axios = 'interceptors' in configOrInstance
|
|
11
|
+
this.axios = 'interceptors' in configOrInstance
|
|
12
|
+
? configOrInstance
|
|
13
|
+
: axios_1.default.create(configOrInstance);
|
|
31
14
|
}
|
|
32
15
|
listTemplatesWorkflow(params, options) {
|
|
33
|
-
return this.axios.get("/workflows/templates", Object.assign({}, {
|
|
16
|
+
return this.axios.get("/workflows/templates", Object.assign({}, {
|
|
17
|
+
params: pick(params, "name", "categories", "page", "perPage"),
|
|
18
|
+
}, options));
|
|
34
19
|
}
|
|
35
|
-
listTemplateCategoriesWorkflow(
|
|
36
|
-
return this.axios.get("/workflows/templates/categories",
|
|
20
|
+
listTemplateCategoriesWorkflow(options) {
|
|
21
|
+
return this.axios.get("/workflows/templates/categories", options);
|
|
37
22
|
}
|
|
38
23
|
listWorkflow(params, options) {
|
|
39
|
-
return this.axios.get("/workflows", Object.assign({}, {
|
|
24
|
+
return this.axios.get("/workflows", Object.assign({}, {
|
|
25
|
+
params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
|
|
26
|
+
}, options));
|
|
40
27
|
}
|
|
41
|
-
createWorkflow(
|
|
42
|
-
return this.axios.post("/workflows", data,
|
|
28
|
+
createWorkflow(data, options) {
|
|
29
|
+
return this.axios.post("/workflows", data, options);
|
|
43
30
|
}
|
|
44
31
|
getWorkflow(params, options) {
|
|
45
|
-
return this.axios.get("/workflows/{id}".replace(/{id}/, String(params["id"])),
|
|
32
|
+
return this.axios.get("/workflows/{id}".replace(/{id}/, String(params["id"])), options);
|
|
46
33
|
}
|
|
47
34
|
updateWorkflow(params, data, options) {
|
|
48
|
-
return this.axios.patch("/workflows/{id}".replace(/{id}/, String(params["id"])), data,
|
|
35
|
+
return this.axios.patch("/workflows/{id}".replace(/{id}/, String(params["id"])), data, options);
|
|
49
36
|
}
|
|
50
37
|
deleteWorkflow(params, options) {
|
|
51
|
-
return this.axios.delete("/workflows/{id}".replace(/{id}/, String(params["id"])),
|
|
38
|
+
return this.axios.delete("/workflows/{id}".replace(/{id}/, String(params["id"])), options);
|
|
52
39
|
}
|
|
53
40
|
publishWorkflow(params, options) {
|
|
54
|
-
return this.axios.post("/workflows/{id}/publish".replace(/{id}/, String(params["id"])), {},
|
|
41
|
+
return this.axios.post("/workflows/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
|
|
55
42
|
}
|
|
56
43
|
run(params, options) {
|
|
57
|
-
return this.axios.get("/workflows/run/{id}/{index}".replace(/{id}/, String(params["id"])).replace(/{index}/, String(params["index"])), Object.assign({}, {
|
|
44
|
+
return this.axios.get("/workflows/run/{id}/{index}".replace(/{id}/, String(params["id"])).replace(/{index}/, String(params["index"])), Object.assign({}, {
|
|
45
|
+
params: pick(params, "~ru~", "mode", "no-cache"),
|
|
46
|
+
}, options));
|
|
58
47
|
}
|
|
59
48
|
get Workflow() {
|
|
60
49
|
return {
|
|
@@ -75,4 +64,12 @@ class default_1 {
|
|
|
75
64
|
}
|
|
76
65
|
}
|
|
77
66
|
exports.default = default_1;
|
|
78
|
-
|
|
67
|
+
function pick(obj, ...keys) {
|
|
68
|
+
const ret = {};
|
|
69
|
+
keys.forEach(key => {
|
|
70
|
+
if (obj && Object.keys(obj).includes(key))
|
|
71
|
+
ret[key] = obj[key];
|
|
72
|
+
});
|
|
73
|
+
return ret;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7OztBQUVwQixrREFBaUU7QUFlakU7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3hDLENBQUM7SUFFTyxxQkFBcUIsQ0FBQyxNQUs3QixFQUFFLE9BQTRCO1FBQzNCLE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBWWpCLHNCQUFzQixFQUN0QixNQUFNLENBQUMsTUFBTSxDQUNULEVBQUUsRUFDRjtZQUNJLE1BQU0sRUFBRSxJQUFJLENBQUMsTUFBTSxFQUFFLE1BQU0sRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLFNB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RQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
|
package/build/definitions.d.ts
CHANGED
|
@@ -1,70 +1,66 @@
|
|
|
1
1
|
declare type readonlyP = {
|
|
2
2
|
readonly?: '__readonly';
|
|
3
3
|
};
|
|
4
|
-
declare type
|
|
5
|
-
|
|
4
|
+
declare type writeonlyP = {
|
|
5
|
+
writeonly?: '__writeonly';
|
|
6
6
|
};
|
|
7
7
|
declare type Primitive = string | Function | number | boolean | Symbol | undefined | null | Date;
|
|
8
|
-
declare type
|
|
9
|
-
[
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
declare type
|
|
18
|
-
[key in keyof T]:
|
|
19
|
-
};
|
|
20
|
-
export declare type
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'type': 'email' | 'raw';
|
|
8
|
+
declare type PropsWithoutReadonly<T> = {
|
|
9
|
+
[key in keyof T]: T[key] extends readonlyP ? NonNullable<T[key]['readonly']> extends '__readonly' ? never : key : key;
|
|
10
|
+
}[keyof T];
|
|
11
|
+
export declare type WithoutReadonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutReadonly<U>[] : {
|
|
12
|
+
[key in keyof Pick<T, PropsWithoutReadonly<T>>]: Pick<T, PropsWithoutReadonly<T>>[key] extends any ? WithoutReadonly<Pick<T, PropsWithoutReadonly<T>>[key]> : never;
|
|
13
|
+
} : never;
|
|
14
|
+
declare type PropsWithoutWriteonly<T> = {
|
|
15
|
+
[key in keyof T]: T[key] extends writeonlyP ? NonNullable<T[key]['writeonly']> extends '__writeonly' ? never : key : key;
|
|
16
|
+
}[keyof T];
|
|
17
|
+
export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
|
|
18
|
+
[key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
|
|
19
|
+
} : never;
|
|
20
|
+
export declare type _node_string_type_email_or_raw__ = {
|
|
21
|
+
node: string;
|
|
22
|
+
type: "email" | "raw";
|
|
24
23
|
};
|
|
25
24
|
export declare type __ = {};
|
|
26
25
|
export declare type AnyValue = any | null;
|
|
27
|
-
export declare type
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
};
|
|
31
|
-
export declare type
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
export declare type
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
'metadata': __;
|
|
52
|
-
'dependencies': (string)[];
|
|
26
|
+
export declare type _type_static_value_any__ = {
|
|
27
|
+
type: "static";
|
|
28
|
+
value: AnyValue;
|
|
29
|
+
};
|
|
30
|
+
export declare type _type_dynamic_value_any__ = {
|
|
31
|
+
type: "dynamic";
|
|
32
|
+
value: AnyValue;
|
|
33
|
+
};
|
|
34
|
+
export declare type __x_string___type_static_value_any___or__type_dynamic_value_any____ = {};
|
|
35
|
+
export declare type _node_string_config___x_string___type_static_value_any___or__type_dynamic_value_any______ = {
|
|
36
|
+
node: string;
|
|
37
|
+
config: __x_string___type_static_value_any___or__type_dynamic_value_any____;
|
|
38
|
+
};
|
|
39
|
+
export declare type _name_string_metadata____dependencies_string_Array_edges_NonEmptyArray__node_string_config___x_string___type_static_value_any___or__type_dynamic_value_any_________ = {
|
|
40
|
+
name: string;
|
|
41
|
+
metadata: __;
|
|
42
|
+
dependencies: string[];
|
|
43
|
+
edges: (_node_string_config___x_string___type_static_value_any___or__type_dynamic_value_any______ | _node_string_config___x_string___type_static_value_any___or__type_dynamic_value_any______)[] | (_node_string_config___x_string___type_static_value_any___or__type_dynamic_value_any______ | _node_string_config___x_string___type_static_value_any___or__type_dynamic_value_any______)[];
|
|
44
|
+
};
|
|
45
|
+
export declare type _name_string_config___x_string___type_static_value_any___or__type_dynamic_value_any_____metadata____dependencies_string_Array__ = {
|
|
46
|
+
name: string;
|
|
47
|
+
config: __x_string___type_static_value_any___or__type_dynamic_value_any____;
|
|
48
|
+
metadata: __;
|
|
49
|
+
dependencies: string[];
|
|
53
50
|
};
|
|
54
51
|
export declare type Workflow = {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
[key: string]: _name_string__metadata_____dependencies_string_Array__edges_NonEmptyArray__node_string__config___x_string___type_static__value_any____or__type_dynamic__value_any_____________ | _name_string__config___x_string___type_static__value_any____or__type_dynamic__value_any________metadata_____dependencies_string_Array___;
|
|
58
|
-
};
|
|
52
|
+
entrypoints: _node_string_type_email_or_raw__[];
|
|
53
|
+
nodes: {};
|
|
59
54
|
};
|
|
60
55
|
export declare type SerializedWorkflowTemplates = {
|
|
61
|
-
readonly
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
readonly id: (string) & readonlyP;
|
|
57
|
+
name: string;
|
|
58
|
+
icon: string;
|
|
59
|
+
slug: string;
|
|
60
|
+
categories: string[];
|
|
61
|
+
feature?: string;
|
|
62
|
+
template: Workflow;
|
|
63
|
+
metadata?: {};
|
|
68
64
|
};
|
|
69
65
|
export declare type WorkflowTemplates = SerializedWorkflowTemplates;
|
|
70
66
|
export declare enum WorkflowVersionState {
|
|
@@ -73,21 +69,13 @@ export declare enum WorkflowVersionState {
|
|
|
73
69
|
INACTIVE = "inactive"
|
|
74
70
|
}
|
|
75
71
|
export declare type SerializedWorkflowVersions = {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
readonly
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
[key: string]: (string)[];
|
|
84
|
-
};
|
|
85
|
-
'entrypointsForOuput': {
|
|
86
|
-
[key: string]: (string)[];
|
|
87
|
-
};
|
|
88
|
-
'datasForEntrypoint': {
|
|
89
|
-
[key: string]: (string)[];
|
|
90
|
-
};
|
|
72
|
+
metadata?: {};
|
|
73
|
+
readonly state: (WorkflowVersionState) & readonlyP;
|
|
74
|
+
definition: Workflow;
|
|
75
|
+
readonly analyze: ({
|
|
76
|
+
outputsForEntrypoint: {};
|
|
77
|
+
entrypointsForOuput: {};
|
|
78
|
+
datasForEntrypoint: {};
|
|
91
79
|
}) & readonlyP;
|
|
92
80
|
};
|
|
93
81
|
export declare type WorkflowVersions = SerializedWorkflowVersions;
|
|
@@ -98,60 +86,54 @@ export declare enum WorkflowStatus {
|
|
|
98
86
|
ERROR = "error"
|
|
99
87
|
}
|
|
100
88
|
export declare type SerializedWorkflow = {
|
|
101
|
-
readonly
|
|
102
|
-
readonly
|
|
103
|
-
|
|
104
|
-
readonly
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
89
|
+
readonly id: (string) & readonlyP;
|
|
90
|
+
readonly companyId: (string) & readonlyP;
|
|
91
|
+
resourceGroupIds: string[];
|
|
92
|
+
readonly versions: (WorkflowVersions[]) & readonlyP;
|
|
93
|
+
readonly createdAt: (Date) & readonlyP;
|
|
94
|
+
readonly updatedAt: (Date) & readonlyP;
|
|
95
|
+
name: string;
|
|
96
|
+
description?: string;
|
|
97
|
+
readonly urls?: ({
|
|
98
|
+
display: string;
|
|
99
|
+
click: string;
|
|
100
|
+
}[]) & readonlyP;
|
|
101
|
+
readonly status: (WorkflowStatus) & readonlyP;
|
|
112
102
|
};
|
|
113
103
|
export declare type Workflows = SerializedWorkflow;
|
|
114
104
|
export declare type Pick_SerializedWorkflow_name_or_description_or_resourceGroupIds_ = {
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
};
|
|
119
|
-
export declare type Error = {
|
|
120
|
-
'path': string;
|
|
121
|
-
'message': string;
|
|
122
|
-
'payload'?: {
|
|
123
|
-
[key: string]: AnyValue;
|
|
124
|
-
};
|
|
105
|
+
name: string;
|
|
106
|
+
description?: string;
|
|
107
|
+
resourceGroupIds: string[];
|
|
125
108
|
};
|
|
126
109
|
export declare type Partial_SerializedWorkflow_ = {
|
|
127
|
-
readonly
|
|
128
|
-
readonly
|
|
129
|
-
|
|
130
|
-
readonly
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
110
|
+
readonly id?: (string) & readonlyP;
|
|
111
|
+
readonly companyId?: (string) & readonlyP;
|
|
112
|
+
resourceGroupIds?: string[];
|
|
113
|
+
readonly versions?: (WorkflowVersions[]) & readonlyP;
|
|
114
|
+
readonly createdAt?: (Date) & readonlyP;
|
|
115
|
+
readonly updatedAt?: (Date) & readonlyP;
|
|
116
|
+
name?: string;
|
|
117
|
+
description?: string;
|
|
118
|
+
readonly urls?: ({
|
|
119
|
+
display: string;
|
|
120
|
+
click: string;
|
|
121
|
+
}[]) & readonlyP;
|
|
122
|
+
readonly status?: (WorkflowStatus) & readonlyP;
|
|
138
123
|
};
|
|
139
124
|
export declare type Partial_SerializedWorkflowVersions_ = {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
readonly
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
[key: string]: (string)[];
|
|
148
|
-
};
|
|
149
|
-
'entrypointsForOuput': {
|
|
150
|
-
[key: string]: (string)[];
|
|
151
|
-
};
|
|
152
|
-
'datasForEntrypoint': {
|
|
153
|
-
[key: string]: (string)[];
|
|
154
|
-
};
|
|
125
|
+
metadata?: {};
|
|
126
|
+
readonly state?: (WorkflowVersionState) & readonlyP;
|
|
127
|
+
definition?: Workflow;
|
|
128
|
+
readonly analyze?: ({
|
|
129
|
+
outputsForEntrypoint: {};
|
|
130
|
+
entrypointsForOuput: {};
|
|
131
|
+
datasForEntrypoint: {};
|
|
155
132
|
}) & readonlyP;
|
|
156
133
|
};
|
|
134
|
+
export declare type Error = {
|
|
135
|
+
path: string;
|
|
136
|
+
message: string;
|
|
137
|
+
payload?: {};
|
|
138
|
+
};
|
|
157
139
|
export {};
|
package/build/definitions.js
CHANGED
|
@@ -16,4 +16,4 @@ var WorkflowStatus;
|
|
|
16
16
|
WorkflowStatus["PUBLISHED"] = "published";
|
|
17
17
|
WorkflowStatus["ERROR"] = "error";
|
|
18
18
|
})(WorkflowStatus = exports.WorkflowStatus || (exports.WorkflowStatus = {}));
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBOEVwQixJQUFZLG9CQUlYO0FBSkQsV0FBWSxvQkFBb0I7SUFDNUIsdUNBQWUsQ0FBQTtJQUNmLHFDQUFhLENBQUE7SUFDYiw2Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsb0JBQW9CLEdBQXBCLDRCQUFvQixLQUFwQiw0QkFBb0IsUUFJL0I7QUFjRCxJQUFZLGNBS1g7QUFMRCxXQUFZLGNBQWM7SUFDdEIsaUNBQWUsQ0FBQTtJQUNmLDJDQUF5QixDQUFBO0lBQ3pCLHlDQUF1QixDQUFBO0lBQ3ZCLGlDQUFlLENBQUE7QUFDbkIsQ0FBQyxFQUxXLGNBQWMsR0FBZCxzQkFBYyxLQUFkLHNCQUFjLFFBS3pCIn0=
|
package/package.json
CHANGED