@rlvt/workflows-openapi-client 0.0.0-9e8afbf → 0.0.0-a45260c
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 +57 -138
- package/build/api.js +32 -32
- package/build/definitions.d.ts +88 -92
- 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 { WorkflowStatus } from "./definitions";
|
|
3
|
+
export { WorkflowTemplates, Workflows, WorkflowStatus, Pick_SerializedWorkflow_name_or_description_or_resourceGroupIds_, Partial_SerializedWorkflow_, Partial_SerializedWorkflowVersions_, AnyValue, WithoutReadonly, WithoutWriteonly } from "./definitions";
|
|
4
4
|
export default class {
|
|
5
5
|
axios: AxiosInstance;
|
|
6
6
|
constructor(configOrInstance: AxiosRequestConfig | AxiosInstance);
|
|
@@ -35,6 +35,9 @@ export default class {
|
|
|
35
35
|
readonly id: string & {
|
|
36
36
|
readonly?: "__readonly";
|
|
37
37
|
};
|
|
38
|
+
metadata?: {
|
|
39
|
+
[x: string]: any;
|
|
40
|
+
};
|
|
38
41
|
icon: string;
|
|
39
42
|
slug: string;
|
|
40
43
|
feature?: string;
|
|
@@ -51,13 +54,7 @@ export default class {
|
|
|
51
54
|
edges: {
|
|
52
55
|
node: string;
|
|
53
56
|
config: {
|
|
54
|
-
[x: string]:
|
|
55
|
-
type: "static";
|
|
56
|
-
value: any;
|
|
57
|
-
} | {
|
|
58
|
-
type: "dynamic";
|
|
59
|
-
value: any;
|
|
60
|
-
};
|
|
57
|
+
[x: string]: any;
|
|
61
58
|
};
|
|
62
59
|
}[];
|
|
63
60
|
} | {
|
|
@@ -65,20 +62,14 @@ export default class {
|
|
|
65
62
|
metadata: {};
|
|
66
63
|
dependencies: string[];
|
|
67
64
|
config: {
|
|
68
|
-
[x: string]:
|
|
69
|
-
type: "static";
|
|
70
|
-
value: any;
|
|
71
|
-
} | {
|
|
72
|
-
type: "dynamic";
|
|
73
|
-
value: any;
|
|
74
|
-
};
|
|
65
|
+
[x: string]: any;
|
|
75
66
|
};
|
|
76
67
|
};
|
|
77
68
|
};
|
|
78
69
|
};
|
|
79
70
|
}[];
|
|
80
71
|
}>>;
|
|
81
|
-
listTemplateCategories: (
|
|
72
|
+
listTemplateCategories: (options?: AxiosRequestConfig) => Promise<import("axios").AxiosResponse<{
|
|
82
73
|
status: "success";
|
|
83
74
|
program: string;
|
|
84
75
|
version: string;
|
|
@@ -90,7 +81,7 @@ export default class {
|
|
|
90
81
|
list: (params: {
|
|
91
82
|
name?: string;
|
|
92
83
|
resourceGroupIds?: string[];
|
|
93
|
-
status?:
|
|
84
|
+
status?: WorkflowStatus[];
|
|
94
85
|
sortBy?: "updatedAt" | "createdAt";
|
|
95
86
|
sortOrder?: "desc" | "asc";
|
|
96
87
|
page?: number;
|
|
@@ -115,13 +106,13 @@ export default class {
|
|
|
115
106
|
readonly?: "__readonly";
|
|
116
107
|
};
|
|
117
108
|
resourceGroupIds: string[];
|
|
118
|
-
readonly status: (
|
|
109
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
119
110
|
readonly?: "__readonly";
|
|
120
|
-
}) | (
|
|
111
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
121
112
|
readonly?: "__readonly";
|
|
122
|
-
}) | (
|
|
113
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
123
114
|
readonly?: "__readonly";
|
|
124
|
-
}) | (
|
|
115
|
+
}) | (WorkflowStatus.ERROR & {
|
|
125
116
|
readonly?: "__readonly";
|
|
126
117
|
});
|
|
127
118
|
readonly id: string & {
|
|
@@ -134,11 +125,11 @@ export default class {
|
|
|
134
125
|
metadata?: {
|
|
135
126
|
[x: string]: any;
|
|
136
127
|
};
|
|
137
|
-
readonly state: (
|
|
128
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
138
129
|
readonly?: "__readonly";
|
|
139
|
-
}) | (
|
|
130
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
140
131
|
readonly?: "__readonly";
|
|
141
|
-
}) | (
|
|
132
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
142
133
|
readonly?: "__readonly";
|
|
143
134
|
});
|
|
144
135
|
definition: {
|
|
@@ -154,13 +145,7 @@ export default class {
|
|
|
154
145
|
edges: {
|
|
155
146
|
node: string;
|
|
156
147
|
config: {
|
|
157
|
-
[x: string]:
|
|
158
|
-
type: "static";
|
|
159
|
-
value: any;
|
|
160
|
-
} | {
|
|
161
|
-
type: "dynamic";
|
|
162
|
-
value: any;
|
|
163
|
-
};
|
|
148
|
+
[x: string]: any;
|
|
164
149
|
};
|
|
165
150
|
}[];
|
|
166
151
|
} | {
|
|
@@ -168,13 +153,7 @@ export default class {
|
|
|
168
153
|
metadata: {};
|
|
169
154
|
dependencies: string[];
|
|
170
155
|
config: {
|
|
171
|
-
[x: string]:
|
|
172
|
-
type: "static";
|
|
173
|
-
value: any;
|
|
174
|
-
} | {
|
|
175
|
-
type: "dynamic";
|
|
176
|
-
value: any;
|
|
177
|
-
};
|
|
156
|
+
[x: string]: any;
|
|
178
157
|
};
|
|
179
158
|
};
|
|
180
159
|
};
|
|
@@ -198,7 +177,7 @@ export default class {
|
|
|
198
177
|
}[];
|
|
199
178
|
}[];
|
|
200
179
|
}>>;
|
|
201
|
-
create: (
|
|
180
|
+
create: (data: {
|
|
202
181
|
description?: string;
|
|
203
182
|
name: string;
|
|
204
183
|
resourceGroupIds: string[];
|
|
@@ -219,13 +198,13 @@ export default class {
|
|
|
219
198
|
readonly?: "__readonly";
|
|
220
199
|
};
|
|
221
200
|
resourceGroupIds: string[];
|
|
222
|
-
readonly status: (
|
|
201
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
223
202
|
readonly?: "__readonly";
|
|
224
|
-
}) | (
|
|
203
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
225
204
|
readonly?: "__readonly";
|
|
226
|
-
}) | (
|
|
205
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
227
206
|
readonly?: "__readonly";
|
|
228
|
-
}) | (
|
|
207
|
+
}) | (WorkflowStatus.ERROR & {
|
|
229
208
|
readonly?: "__readonly";
|
|
230
209
|
});
|
|
231
210
|
readonly id: string & {
|
|
@@ -238,11 +217,11 @@ export default class {
|
|
|
238
217
|
metadata?: {
|
|
239
218
|
[x: string]: any;
|
|
240
219
|
};
|
|
241
|
-
readonly state: (
|
|
220
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
242
221
|
readonly?: "__readonly";
|
|
243
|
-
}) | (
|
|
222
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
244
223
|
readonly?: "__readonly";
|
|
245
|
-
}) | (
|
|
224
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
246
225
|
readonly?: "__readonly";
|
|
247
226
|
});
|
|
248
227
|
definition: {
|
|
@@ -258,13 +237,7 @@ export default class {
|
|
|
258
237
|
edges: {
|
|
259
238
|
node: string;
|
|
260
239
|
config: {
|
|
261
|
-
[x: string]:
|
|
262
|
-
type: "static";
|
|
263
|
-
value: any;
|
|
264
|
-
} | {
|
|
265
|
-
type: "dynamic";
|
|
266
|
-
value: any;
|
|
267
|
-
};
|
|
240
|
+
[x: string]: any;
|
|
268
241
|
};
|
|
269
242
|
}[];
|
|
270
243
|
} | {
|
|
@@ -272,13 +245,7 @@ export default class {
|
|
|
272
245
|
metadata: {};
|
|
273
246
|
dependencies: string[];
|
|
274
247
|
config: {
|
|
275
|
-
[x: string]:
|
|
276
|
-
type: "static";
|
|
277
|
-
value: any;
|
|
278
|
-
} | {
|
|
279
|
-
type: "dynamic";
|
|
280
|
-
value: any;
|
|
281
|
-
};
|
|
248
|
+
[x: string]: any;
|
|
282
249
|
};
|
|
283
250
|
};
|
|
284
251
|
};
|
|
@@ -321,13 +288,13 @@ export default class {
|
|
|
321
288
|
readonly?: "__readonly";
|
|
322
289
|
};
|
|
323
290
|
resourceGroupIds: string[];
|
|
324
|
-
readonly status: (
|
|
291
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
325
292
|
readonly?: "__readonly";
|
|
326
|
-
}) | (
|
|
293
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
327
294
|
readonly?: "__readonly";
|
|
328
|
-
}) | (
|
|
295
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
329
296
|
readonly?: "__readonly";
|
|
330
|
-
}) | (
|
|
297
|
+
}) | (WorkflowStatus.ERROR & {
|
|
331
298
|
readonly?: "__readonly";
|
|
332
299
|
});
|
|
333
300
|
readonly id: string & {
|
|
@@ -340,11 +307,11 @@ export default class {
|
|
|
340
307
|
metadata?: {
|
|
341
308
|
[x: string]: any;
|
|
342
309
|
};
|
|
343
|
-
readonly state: (
|
|
310
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
344
311
|
readonly?: "__readonly";
|
|
345
|
-
}) | (
|
|
312
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
346
313
|
readonly?: "__readonly";
|
|
347
|
-
}) | (
|
|
314
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
348
315
|
readonly?: "__readonly";
|
|
349
316
|
});
|
|
350
317
|
definition: {
|
|
@@ -360,13 +327,7 @@ export default class {
|
|
|
360
327
|
edges: {
|
|
361
328
|
node: string;
|
|
362
329
|
config: {
|
|
363
|
-
[x: string]:
|
|
364
|
-
type: "static";
|
|
365
|
-
value: any;
|
|
366
|
-
} | {
|
|
367
|
-
type: "dynamic";
|
|
368
|
-
value: any;
|
|
369
|
-
};
|
|
330
|
+
[x: string]: any;
|
|
370
331
|
};
|
|
371
332
|
}[];
|
|
372
333
|
} | {
|
|
@@ -374,13 +335,7 @@ export default class {
|
|
|
374
335
|
metadata: {};
|
|
375
336
|
dependencies: string[];
|
|
376
337
|
config: {
|
|
377
|
-
[x: string]:
|
|
378
|
-
type: "static";
|
|
379
|
-
value: any;
|
|
380
|
-
} | {
|
|
381
|
-
type: "dynamic";
|
|
382
|
-
value: any;
|
|
383
|
-
};
|
|
338
|
+
[x: string]: any;
|
|
384
339
|
};
|
|
385
340
|
};
|
|
386
341
|
};
|
|
@@ -427,13 +382,7 @@ export default class {
|
|
|
427
382
|
edges: {
|
|
428
383
|
node: string;
|
|
429
384
|
config: {
|
|
430
|
-
[x: string]:
|
|
431
|
-
type: "static";
|
|
432
|
-
value: any;
|
|
433
|
-
} | {
|
|
434
|
-
type: "dynamic";
|
|
435
|
-
value: any;
|
|
436
|
-
};
|
|
385
|
+
[x: string]: any;
|
|
437
386
|
};
|
|
438
387
|
}[];
|
|
439
388
|
} | {
|
|
@@ -441,13 +390,7 @@ export default class {
|
|
|
441
390
|
metadata: {};
|
|
442
391
|
dependencies: string[];
|
|
443
392
|
config: {
|
|
444
|
-
[x: string]:
|
|
445
|
-
type: "static";
|
|
446
|
-
value: any;
|
|
447
|
-
} | {
|
|
448
|
-
type: "dynamic";
|
|
449
|
-
value: any;
|
|
450
|
-
};
|
|
393
|
+
[x: string]: any;
|
|
451
394
|
};
|
|
452
395
|
};
|
|
453
396
|
};
|
|
@@ -469,13 +412,13 @@ export default class {
|
|
|
469
412
|
readonly?: "__readonly";
|
|
470
413
|
};
|
|
471
414
|
resourceGroupIds: string[];
|
|
472
|
-
readonly status: (
|
|
415
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
473
416
|
readonly?: "__readonly";
|
|
474
|
-
}) | (
|
|
417
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
475
418
|
readonly?: "__readonly";
|
|
476
|
-
}) | (
|
|
419
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
477
420
|
readonly?: "__readonly";
|
|
478
|
-
}) | (
|
|
421
|
+
}) | (WorkflowStatus.ERROR & {
|
|
479
422
|
readonly?: "__readonly";
|
|
480
423
|
});
|
|
481
424
|
readonly id: string & {
|
|
@@ -488,11 +431,11 @@ export default class {
|
|
|
488
431
|
metadata?: {
|
|
489
432
|
[x: string]: any;
|
|
490
433
|
};
|
|
491
|
-
readonly state: (
|
|
434
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
492
435
|
readonly?: "__readonly";
|
|
493
|
-
}) | (
|
|
436
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
494
437
|
readonly?: "__readonly";
|
|
495
|
-
}) | (
|
|
438
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
496
439
|
readonly?: "__readonly";
|
|
497
440
|
});
|
|
498
441
|
definition: {
|
|
@@ -508,13 +451,7 @@ export default class {
|
|
|
508
451
|
edges: {
|
|
509
452
|
node: string;
|
|
510
453
|
config: {
|
|
511
|
-
[x: string]:
|
|
512
|
-
type: "static";
|
|
513
|
-
value: any;
|
|
514
|
-
} | {
|
|
515
|
-
type: "dynamic";
|
|
516
|
-
value: any;
|
|
517
|
-
};
|
|
454
|
+
[x: string]: any;
|
|
518
455
|
};
|
|
519
456
|
}[];
|
|
520
457
|
} | {
|
|
@@ -522,13 +459,7 @@ export default class {
|
|
|
522
459
|
metadata: {};
|
|
523
460
|
dependencies: string[];
|
|
524
461
|
config: {
|
|
525
|
-
[x: string]:
|
|
526
|
-
type: "static";
|
|
527
|
-
value: any;
|
|
528
|
-
} | {
|
|
529
|
-
type: "dynamic";
|
|
530
|
-
value: any;
|
|
531
|
-
};
|
|
462
|
+
[x: string]: any;
|
|
532
463
|
};
|
|
533
464
|
};
|
|
534
465
|
};
|
|
@@ -582,13 +513,13 @@ export default class {
|
|
|
582
513
|
readonly?: "__readonly";
|
|
583
514
|
};
|
|
584
515
|
resourceGroupIds: string[];
|
|
585
|
-
readonly status: (
|
|
516
|
+
readonly status: (WorkflowStatus.DRAFT & {
|
|
586
517
|
readonly?: "__readonly";
|
|
587
|
-
}) | (
|
|
518
|
+
}) | (WorkflowStatus.PUBLISHING & {
|
|
588
519
|
readonly?: "__readonly";
|
|
589
|
-
}) | (
|
|
520
|
+
}) | (WorkflowStatus.PUBLISHED & {
|
|
590
521
|
readonly?: "__readonly";
|
|
591
|
-
}) | (
|
|
522
|
+
}) | (WorkflowStatus.ERROR & {
|
|
592
523
|
readonly?: "__readonly";
|
|
593
524
|
});
|
|
594
525
|
readonly id: string & {
|
|
@@ -601,11 +532,11 @@ export default class {
|
|
|
601
532
|
metadata?: {
|
|
602
533
|
[x: string]: any;
|
|
603
534
|
};
|
|
604
|
-
readonly state: (
|
|
535
|
+
readonly state: (import("./definitions").WorkflowVersionState.DRAFT & {
|
|
605
536
|
readonly?: "__readonly";
|
|
606
|
-
}) | (
|
|
537
|
+
}) | (import("./definitions").WorkflowVersionState.LIVE & {
|
|
607
538
|
readonly?: "__readonly";
|
|
608
|
-
}) | (
|
|
539
|
+
}) | (import("./definitions").WorkflowVersionState.INACTIVE & {
|
|
609
540
|
readonly?: "__readonly";
|
|
610
541
|
});
|
|
611
542
|
definition: {
|
|
@@ -621,13 +552,7 @@ export default class {
|
|
|
621
552
|
edges: {
|
|
622
553
|
node: string;
|
|
623
554
|
config: {
|
|
624
|
-
[x: string]:
|
|
625
|
-
type: "static";
|
|
626
|
-
value: any;
|
|
627
|
-
} | {
|
|
628
|
-
type: "dynamic";
|
|
629
|
-
value: any;
|
|
630
|
-
};
|
|
555
|
+
[x: string]: any;
|
|
631
556
|
};
|
|
632
557
|
}[];
|
|
633
558
|
} | {
|
|
@@ -635,13 +560,7 @@ export default class {
|
|
|
635
560
|
metadata: {};
|
|
636
561
|
dependencies: string[];
|
|
637
562
|
config: {
|
|
638
|
-
[x: string]:
|
|
639
|
-
type: "static";
|
|
640
|
-
value: any;
|
|
641
|
-
} | {
|
|
642
|
-
type: "dynamic";
|
|
643
|
-
value: any;
|
|
644
|
-
};
|
|
563
|
+
[x: string]: any;
|
|
645
564
|
};
|
|
646
565
|
};
|
|
647
566
|
};
|
package/build/api.js
CHANGED
|
@@ -1,60 +1,52 @@
|
|
|
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 });
|
|
8
|
+
exports.WorkflowStatus = void 0;
|
|
18
9
|
const axios_1 = __importDefault(require("axios"));
|
|
19
|
-
|
|
20
|
-
function
|
|
21
|
-
const ret = {};
|
|
22
|
-
keys.forEach(key => {
|
|
23
|
-
if (key in obj)
|
|
24
|
-
ret[key] = obj[key];
|
|
25
|
-
});
|
|
26
|
-
return ret;
|
|
27
|
-
}
|
|
10
|
+
var definitions_1 = require("./definitions");
|
|
11
|
+
Object.defineProperty(exports, "WorkflowStatus", { enumerable: true, get: function () { return definitions_1.WorkflowStatus; } });
|
|
28
12
|
class default_1 {
|
|
29
13
|
constructor(configOrInstance) {
|
|
30
|
-
this.axios = 'interceptors' in configOrInstance
|
|
14
|
+
this.axios = 'interceptors' in configOrInstance
|
|
15
|
+
? configOrInstance
|
|
16
|
+
: axios_1.default.create(configOrInstance);
|
|
31
17
|
}
|
|
32
18
|
listTemplatesWorkflow(params, options) {
|
|
33
|
-
return this.axios.get("/workflows/templates", Object.assign({}, {
|
|
19
|
+
return this.axios.get("/workflows/templates", Object.assign({}, {
|
|
20
|
+
params: pick(params, "name", "categories", "page", "perPage"),
|
|
21
|
+
}, options));
|
|
34
22
|
}
|
|
35
|
-
listTemplateCategoriesWorkflow(
|
|
36
|
-
return this.axios.get("/workflows/templates/categories",
|
|
23
|
+
listTemplateCategoriesWorkflow(options) {
|
|
24
|
+
return this.axios.get("/workflows/templates/categories", options);
|
|
37
25
|
}
|
|
38
26
|
listWorkflow(params, options) {
|
|
39
|
-
return this.axios.get("/workflows", Object.assign({}, {
|
|
27
|
+
return this.axios.get("/workflows", Object.assign({}, {
|
|
28
|
+
params: pick(params, "name", "resourceGroupIds", "status", "sortBy", "sortOrder", "page", "perPage"),
|
|
29
|
+
}, options));
|
|
40
30
|
}
|
|
41
|
-
createWorkflow(
|
|
42
|
-
return this.axios.post("/workflows", data,
|
|
31
|
+
createWorkflow(data, options) {
|
|
32
|
+
return this.axios.post("/workflows", data, options);
|
|
43
33
|
}
|
|
44
34
|
getWorkflow(params, options) {
|
|
45
|
-
return this.axios.get("/workflows/{id}".replace(/{id}/, String(params["id"])),
|
|
35
|
+
return this.axios.get("/workflows/{id}".replace(/{id}/, String(params["id"])), options);
|
|
46
36
|
}
|
|
47
37
|
updateWorkflow(params, data, options) {
|
|
48
|
-
return this.axios.patch("/workflows/{id}".replace(/{id}/, String(params["id"])), data,
|
|
38
|
+
return this.axios.patch("/workflows/{id}".replace(/{id}/, String(params["id"])), data, options);
|
|
49
39
|
}
|
|
50
40
|
deleteWorkflow(params, options) {
|
|
51
|
-
return this.axios.delete("/workflows/{id}".replace(/{id}/, String(params["id"])),
|
|
41
|
+
return this.axios.delete("/workflows/{id}".replace(/{id}/, String(params["id"])), options);
|
|
52
42
|
}
|
|
53
43
|
publishWorkflow(params, options) {
|
|
54
|
-
return this.axios.post("/workflows/{id}/publish".replace(/{id}/, String(params["id"])), {},
|
|
44
|
+
return this.axios.post("/workflows/{id}/publish".replace(/{id}/, String(params["id"])), {}, options);
|
|
55
45
|
}
|
|
56
46
|
run(params, options) {
|
|
57
|
-
return this.axios.get("/workflows/run/{id}/{index}".replace(/{id}/, String(params["id"])).replace(/{index}/, String(params["index"])), Object.assign({}, {
|
|
47
|
+
return this.axios.get("/workflows/run/{id}/{index}".replace(/{id}/, String(params["id"])).replace(/{index}/, String(params["index"])), Object.assign({}, {
|
|
48
|
+
params: pick(params, "~ru~", "mode", "no-cache"),
|
|
49
|
+
}, options));
|
|
58
50
|
}
|
|
59
51
|
get Workflow() {
|
|
60
52
|
return {
|
|
@@ -75,4 +67,12 @@ class default_1 {
|
|
|
75
67
|
}
|
|
76
68
|
}
|
|
77
69
|
exports.default = default_1;
|
|
78
|
-
|
|
70
|
+
function pick(obj, ...keys) {
|
|
71
|
+
const ret = {};
|
|
72
|
+
keys.forEach(key => {
|
|
73
|
+
if (obj && Object.keys(obj).includes(key))
|
|
74
|
+
ret[key] = obj[key];
|
|
75
|
+
});
|
|
76
|
+
return ret;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7QUFBQSxvQkFBb0I7QUFDcEIsb0JBQW9COzs7Ozs7QUFFcEIsa0RBQWlFO0FBR2pFLDZDQUE4UDtBQUF2Tiw2R0FBQSxjQUFjLE9BQUE7QUFFckQ7SUFHSSxZQUFZLGdCQUFvRDtRQUM1RCxJQUFJLENBQUMsS0FBSyxHQUFHLGNBQWMsSUFBSSxnQkFBZ0I7WUFDM0MsQ0FBQyxDQUFDLGdCQUFnQjtZQUNsQixDQUFDLENBQUMsZUFBSyxDQUFDLE1BQU0sQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFBO0lBQ3hDLENBQUM7SUFFTyxxQkFBcU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BQUMsSUFBSSxDQUFDLElBQUksQ0FBQztTQUMzQixDQUFDO0lBQ04sQ0FBQztDQUNKO0FBdk1ELDRCQXVNQztBQUVELFNBQVMsSUFBSSxDQUF1QixHQUFNLEVBQUUsR0FBRyxJQUFTO0lBQ3BELE1BQU0sR0FBRyxHQUFlLEVBQWdCLENBQUM7SUFDekMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUNmLElBQUksR0FBRyxJQUFJLE1BQU0sQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQWEsQ0FBQztZQUMvQyxHQUFHLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFDO0lBQ0gsT0FBTyxHQUFHLENBQUM7QUFDZixDQUFDIn0=
|
package/build/definitions.d.ts
CHANGED
|
@@ -17,53 +17,49 @@ declare type PropsWithoutWriteonly<T> = {
|
|
|
17
17
|
export declare type WithoutWriteonly<T> = T extends any ? T extends Primitive ? T : T extends Array<infer U> ? WithoutWriteonly<U>[] : {
|
|
18
18
|
[key in keyof Pick<T, PropsWithoutWriteonly<T>>]: Pick<T, PropsWithoutWriteonly<T>>[key] extends any ? WithoutWriteonly<Pick<T, PropsWithoutWriteonly<T>>[key]> : never;
|
|
19
19
|
} : never;
|
|
20
|
-
export declare type
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
export declare type _node_string_type_email_or_raw__ = {
|
|
21
|
+
node: string;
|
|
22
|
+
type: "email" | "raw";
|
|
23
23
|
};
|
|
24
24
|
export declare type __ = {};
|
|
25
25
|
export declare type AnyValue = any | null;
|
|
26
|
-
export declare type
|
|
27
|
-
|
|
28
|
-
'value': AnyValue;
|
|
26
|
+
export declare type __x_string__any__ = {
|
|
27
|
+
[key: string]: AnyValue;
|
|
29
28
|
};
|
|
30
|
-
export declare type
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
export declare type _node_string_config___x_string__any____ = {
|
|
30
|
+
node: string;
|
|
31
|
+
config: __x_string__any__;
|
|
33
32
|
};
|
|
34
|
-
export declare type
|
|
35
|
-
|
|
33
|
+
export declare type _name_string_metadata____dependencies_string_Array_edges__node_string_config___x_string__any_____Array__ = {
|
|
34
|
+
name: string;
|
|
35
|
+
metadata: __;
|
|
36
|
+
dependencies: string[];
|
|
37
|
+
edges: _node_string_config___x_string__any____[];
|
|
36
38
|
};
|
|
37
|
-
export declare type
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
export declare type _name_string_config___x_string__any___metadata____dependencies_string_Array__ = {
|
|
40
|
+
name: string;
|
|
41
|
+
config: __x_string__any__;
|
|
42
|
+
metadata: __;
|
|
43
|
+
dependencies: string[];
|
|
40
44
|
};
|
|
41
|
-
export declare type
|
|
42
|
-
|
|
43
|
-
'metadata': __;
|
|
44
|
-
'dependencies': (string)[];
|
|
45
|
-
'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_________)[];
|
|
46
|
-
};
|
|
47
|
-
export declare type _name_string__config___x_string___type_static__value_any____or__type_dynamic__value_any________metadata_____dependencies_string_Array___ = {
|
|
48
|
-
'name': string;
|
|
49
|
-
'config': __x_string___type_static__value_any____or__type_dynamic__value_any______;
|
|
50
|
-
'metadata': __;
|
|
51
|
-
'dependencies': (string)[];
|
|
45
|
+
export declare type __x_string___name_string_metadata____dependencies_string_Array_edges__node_string_config___x_string__any_____Array___or__name_string_config___x_string__any___metadata____dependencies_string_Array____ = {
|
|
46
|
+
[key: string]: _name_string_metadata____dependencies_string_Array_edges__node_string_config___x_string__any_____Array__ | _name_string_config___x_string__any___metadata____dependencies_string_Array__;
|
|
52
47
|
};
|
|
53
48
|
export declare type Workflow = {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
[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___;
|
|
57
|
-
};
|
|
49
|
+
entrypoints: _node_string_type_email_or_raw__[];
|
|
50
|
+
nodes: __x_string___name_string_metadata____dependencies_string_Array_edges__node_string_config___x_string__any_____Array___or__name_string_config___x_string__any___metadata____dependencies_string_Array____;
|
|
58
51
|
};
|
|
59
52
|
export declare type SerializedWorkflowTemplates = {
|
|
60
|
-
readonly
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
53
|
+
readonly id: (string) & readonlyP;
|
|
54
|
+
name: string;
|
|
55
|
+
icon: string;
|
|
56
|
+
slug: string;
|
|
57
|
+
categories: string[];
|
|
58
|
+
feature?: string;
|
|
59
|
+
template: Workflow;
|
|
60
|
+
metadata?: {
|
|
61
|
+
[key: string]: AnyValue;
|
|
62
|
+
};
|
|
67
63
|
};
|
|
68
64
|
export declare type WorkflowTemplates = SerializedWorkflowTemplates;
|
|
69
65
|
export declare enum WorkflowVersionState {
|
|
@@ -72,20 +68,20 @@ export declare enum WorkflowVersionState {
|
|
|
72
68
|
INACTIVE = "inactive"
|
|
73
69
|
}
|
|
74
70
|
export declare type SerializedWorkflowVersions = {
|
|
75
|
-
|
|
71
|
+
metadata?: {
|
|
76
72
|
[key: string]: AnyValue;
|
|
77
73
|
};
|
|
78
|
-
readonly
|
|
79
|
-
|
|
80
|
-
readonly
|
|
81
|
-
|
|
82
|
-
[key: string]:
|
|
74
|
+
readonly state: (WorkflowVersionState) & readonlyP;
|
|
75
|
+
definition: Workflow;
|
|
76
|
+
readonly analyze: ({
|
|
77
|
+
outputsForEntrypoint: {
|
|
78
|
+
[key: string]: string[];
|
|
83
79
|
};
|
|
84
|
-
|
|
85
|
-
[key: string]:
|
|
80
|
+
entrypointsForOuput: {
|
|
81
|
+
[key: string]: string[];
|
|
86
82
|
};
|
|
87
|
-
|
|
88
|
-
[key: string]:
|
|
83
|
+
datasForEntrypoint: {
|
|
84
|
+
[key: string]: string[];
|
|
89
85
|
};
|
|
90
86
|
}) & readonlyP;
|
|
91
87
|
};
|
|
@@ -97,64 +93,64 @@ export declare enum WorkflowStatus {
|
|
|
97
93
|
ERROR = "error"
|
|
98
94
|
}
|
|
99
95
|
export declare type SerializedWorkflow = {
|
|
100
|
-
readonly
|
|
101
|
-
readonly
|
|
102
|
-
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
105
|
-
readonly
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
readonly
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
readonly
|
|
96
|
+
readonly id: (string) & readonlyP;
|
|
97
|
+
readonly companyId: (string) & readonlyP;
|
|
98
|
+
resourceGroupIds: string[];
|
|
99
|
+
readonly versions: (WorkflowVersions[]) & readonlyP;
|
|
100
|
+
readonly createdAt: (Date) & readonlyP;
|
|
101
|
+
readonly updatedAt: (Date) & readonlyP;
|
|
102
|
+
name: string;
|
|
103
|
+
description?: string;
|
|
104
|
+
readonly urls?: ({
|
|
105
|
+
display: string;
|
|
106
|
+
click: string;
|
|
107
|
+
}[]) & readonlyP;
|
|
108
|
+
readonly status: (WorkflowStatus) & readonlyP;
|
|
113
109
|
};
|
|
114
110
|
export declare type Workflows = SerializedWorkflow;
|
|
115
111
|
export declare type Pick_SerializedWorkflow_name_or_description_or_resourceGroupIds_ = {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
};
|
|
120
|
-
export declare type Error = {
|
|
121
|
-
'path': string;
|
|
122
|
-
'message': string;
|
|
123
|
-
'payload'?: {
|
|
124
|
-
[key: string]: AnyValue;
|
|
125
|
-
};
|
|
112
|
+
name: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
resourceGroupIds: string[];
|
|
126
115
|
};
|
|
127
116
|
export declare type Partial_SerializedWorkflow_ = {
|
|
128
|
-
readonly
|
|
129
|
-
readonly
|
|
130
|
-
|
|
131
|
-
readonly
|
|
132
|
-
readonly
|
|
133
|
-
readonly
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
readonly
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
readonly
|
|
117
|
+
readonly id?: (string) & readonlyP;
|
|
118
|
+
readonly companyId?: (string) & readonlyP;
|
|
119
|
+
resourceGroupIds?: string[];
|
|
120
|
+
readonly versions?: (WorkflowVersions[]) & readonlyP;
|
|
121
|
+
readonly createdAt?: (Date) & readonlyP;
|
|
122
|
+
readonly updatedAt?: (Date) & readonlyP;
|
|
123
|
+
name?: string;
|
|
124
|
+
description?: string;
|
|
125
|
+
readonly urls?: ({
|
|
126
|
+
display: string;
|
|
127
|
+
click: string;
|
|
128
|
+
}[]) & readonlyP;
|
|
129
|
+
readonly status?: (WorkflowStatus) & readonlyP;
|
|
141
130
|
};
|
|
142
131
|
export declare type Partial_SerializedWorkflowVersions_ = {
|
|
143
|
-
|
|
132
|
+
metadata?: {
|
|
144
133
|
[key: string]: AnyValue;
|
|
145
134
|
};
|
|
146
|
-
readonly
|
|
147
|
-
|
|
148
|
-
readonly
|
|
149
|
-
|
|
150
|
-
[key: string]:
|
|
135
|
+
readonly state?: (WorkflowVersionState) & readonlyP;
|
|
136
|
+
definition?: Workflow;
|
|
137
|
+
readonly analyze?: ({
|
|
138
|
+
outputsForEntrypoint: {
|
|
139
|
+
[key: string]: string[];
|
|
151
140
|
};
|
|
152
|
-
|
|
153
|
-
[key: string]:
|
|
141
|
+
entrypointsForOuput: {
|
|
142
|
+
[key: string]: string[];
|
|
154
143
|
};
|
|
155
|
-
|
|
156
|
-
[key: string]:
|
|
144
|
+
datasForEntrypoint: {
|
|
145
|
+
[key: string]: string[];
|
|
157
146
|
};
|
|
158
147
|
}) & readonlyP;
|
|
159
148
|
};
|
|
149
|
+
export declare type Error = {
|
|
150
|
+
path: string;
|
|
151
|
+
message: string;
|
|
152
|
+
payload?: {
|
|
153
|
+
[key: string]: AnyValue;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
160
156
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVmaW5pdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9kZWZpbml0aW9ucy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsb0JBQW9CO0FBQ3BCLG9CQUFvQjs7O0FBNkVwQixJQUFZLG9CQUlYO0FBSkQsV0FBWSxvQkFBb0I7SUFDNUIsdUNBQWUsQ0FBQTtJQUNmLHFDQUFhLENBQUE7SUFDYiw2Q0FBcUIsQ0FBQTtBQUN6QixDQUFDLEVBSlcsb0JBQW9CLEdBQXBCLDRCQUFvQixLQUFwQiw0QkFBb0IsUUFJL0I7QUFzQkQsSUFBWSxjQUtYO0FBTEQsV0FBWSxjQUFjO0lBQ3RCLGlDQUFlLENBQUE7SUFDZiwyQ0FBeUIsQ0FBQTtJQUN6Qix5Q0FBdUIsQ0FBQTtJQUN2QixpQ0FBZSxDQUFBO0FBQ25CLENBQUMsRUFMVyxjQUFjLEdBQWQsc0JBQWMsS0FBZCxzQkFBYyxRQUt6QiJ9
|
package/package.json
CHANGED