@or-sdk/flows 0.29.0 → 1.0.1-beta.700.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/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/dist/cjs/Flows.js +101 -126
- package/dist/cjs/Flows.js.map +1 -1
- package/dist/cjs/constants.js +3 -5
- package/dist/cjs/constants.js.map +1 -1
- package/dist/cjs/index.js +1 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/Flows.js +73 -87
- package/dist/esm/Flows.js.map +1 -1
- package/dist/esm/constants.js +1 -9
- package/dist/esm/constants.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/Flows.d.ts +8 -7
- package/dist/types/Flows.d.ts.map +1 -1
- package/dist/types/constants.d.ts +1 -3
- package/dist/types/constants.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types.d.ts +45 -10
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +5 -6
- package/src/Flows.ts +126 -115
- package/src/constants.ts +1 -11
- package/src/index.ts +2 -0
- package/src/types.ts +50 -11
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
|
|
20
|
+
* Url of OneReach DataHubSvc api
|
|
22
21
|
*/
|
|
23
|
-
|
|
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
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
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
|
+
};
|