@rlvt/workflows-openapi-client 0.0.0-1cb597e → 0.0.0-1cb8dbe

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