@or-sdk/flows 0.29.0 → 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/src/types.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { Token } from '@or-sdk/base';
2
- import { Flow } from '@or-sdk/deployer';
3
2
 
4
3
  export type FlowsConfig = {
5
4
  /**
@@ -18,9 +17,9 @@ export type FlowsConfig = {
18
17
  accountId?: string;
19
18
 
20
19
  /**
21
- * Url of OneReach DataHub api
20
+ * Url of OneReach DataHubSvc api
22
21
  */
23
- dataHubUrl?: string;
22
+ dataHubSvcUrl?: string;
24
23
 
25
24
  /**
26
25
  * Url of OneReach Deployer api
@@ -28,19 +27,59 @@ export type FlowsConfig = {
28
27
  deployerUrl?: string;
29
28
  };
30
29
 
31
- export type FlowListResponse = {
32
- count: number;
33
- items: Flow[];
34
- last?: string;
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;
35
39
  };
36
40
 
37
- export type ListFlowsParams = {
38
- includeDeleted: boolean;
39
- includeExisting: boolean;
40
- projection: string[];
41
+ export type ListDataOutsParams = {
42
+ query?: {
43
+ [key: string]: unknown;
44
+ };
45
+ projection?: string[];
46
+ group?: string[];
47
+ sandbox?: boolean;
48
+ };
49
+
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;
41
73
  };
42
74
 
43
75
  export type StepTemplateToDelete = {
44
76
  id: string;
45
77
  [key: string]: unknown;
46
78
  };
79
+
80
+ export type DownloadTemplateResult = {
81
+ id: string;
82
+ data: {
83
+ label: string;
84
+ };
85
+ };