@rlvt/workflows-openapi-client 0.0.0-1cb8dbe → 0.0.0-27ff2e8

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