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