@or-sdk/flows 0.28.0 → 0.29.0

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/src/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Token } from '@or-sdk/base';
2
+ import { Flow } from '@or-sdk/deployer';
2
3
 
3
4
  export type FlowsConfig = {
4
5
  /**
@@ -17,9 +18,9 @@ export type FlowsConfig = {
17
18
  accountId?: string;
18
19
 
19
20
  /**
20
- * Url of OneReach DataHubSvc api
21
+ * Url of OneReach DataHub api
21
22
  */
22
- dataHubSvcUrl?: string;
23
+ dataHubUrl?: string;
23
24
 
24
25
  /**
25
26
  * Url of OneReach Deployer api
@@ -27,59 +28,19 @@ export type FlowsConfig = {
27
28
  deployerUrl?: string;
28
29
  };
29
30
 
30
- export type ListFlowsParams = {
31
- includeDeleted?: boolean;
32
- includeExisting?: boolean;
33
- query?: {
34
- [key: string]: unknown;
35
- };
36
- projection?: string[];
37
- group?: string[];
38
- sandbox?: boolean;
39
- };
40
-
41
- export type ListDataOutsParams = {
42
- query?: {
43
- [key: string]: unknown;
44
- };
45
- projection?: string[];
46
- group?: string[];
47
- sandbox?: boolean;
31
+ export type FlowListResponse = {
32
+ count: number;
33
+ items: Flow[];
34
+ last?: string;
48
35
  };
49
36
 
50
- export type PaginationOptions = {
51
- limit?: number;
52
- offset?: number;
53
- };
54
-
55
- export type GetFlowParams = {
56
- query?: {
57
- [key: string]: unknown;
58
- };
59
- projection?: string[];
60
- sandbox?: boolean;
61
- };
62
-
63
- export type DataOut = {
64
- flowId: string;
65
- botId: string;
66
- name: string;
67
- type: string;
68
- ttl: number;
69
- meta: string;
70
- outputExample: string;
71
- stepLabel: string;
72
- stepId: string;
37
+ export type ListFlowsParams = {
38
+ includeDeleted: boolean;
39
+ includeExisting: boolean;
40
+ projection: string[];
73
41
  };
74
42
 
75
43
  export type StepTemplateToDelete = {
76
44
  id: string;
77
45
  [key: string]: unknown;
78
46
  };
79
-
80
- export type DownloadTemplateResult = {
81
- id: string;
82
- data: {
83
- label: string;
84
- };
85
- };