@or-sdk/deployer 0.4.0 → 0.7.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/dist/cjs/Deployer.js +13 -6
- package/dist/cjs/Deployer.js.map +1 -1
- package/dist/esm/Deployer.js +11 -5
- package/dist/esm/Deployer.js.map +1 -1
- package/dist/types/Deployer.d.ts +1 -1
- package/dist/types/types.d.ts +8 -5
- package/package.json +3 -3
- package/src/Deployer.ts +32 -14
- package/src/types.ts +10 -7
package/dist/cjs/Deployer.js
CHANGED
|
@@ -66,19 +66,23 @@ var Deployer = (function (_super) {
|
|
|
66
66
|
}) || this;
|
|
67
67
|
return _this;
|
|
68
68
|
}
|
|
69
|
-
Deployer.prototype.activateFlow = function (_a) {
|
|
70
|
-
var id = _a.id,
|
|
69
|
+
Deployer.prototype.activateFlow = function (_a, interactiveDebug) {
|
|
70
|
+
var id = _a.id, role = _a.data.deploy.role;
|
|
71
|
+
if (interactiveDebug === void 0) { interactiveDebug = false; }
|
|
71
72
|
return __awaiter(this, void 0, void 0, function () {
|
|
72
73
|
var flowAlias, data, route, requestId;
|
|
73
74
|
return __generator(this, function (_b) {
|
|
74
75
|
switch (_b.label) {
|
|
75
76
|
case 0:
|
|
77
|
+
if (!id) {
|
|
78
|
+
throw new Error('Id is required');
|
|
79
|
+
}
|
|
76
80
|
flowAlias = "v-" + Date.now();
|
|
77
81
|
data = {
|
|
78
82
|
flowId: id,
|
|
79
83
|
flowAlias: flowAlias,
|
|
80
|
-
interactiveDebug: interactiveDebug
|
|
81
|
-
role: role
|
|
84
|
+
interactiveDebug: interactiveDebug,
|
|
85
|
+
role: role,
|
|
82
86
|
};
|
|
83
87
|
route = '/flows/deploy';
|
|
84
88
|
return [4, this.callApi({
|
|
@@ -101,13 +105,16 @@ var Deployer = (function (_super) {
|
|
|
101
105
|
return __generator(this, function (_b) {
|
|
102
106
|
switch (_b.label) {
|
|
103
107
|
case 0:
|
|
108
|
+
if (!id) {
|
|
109
|
+
throw new Error('Id is required');
|
|
110
|
+
}
|
|
104
111
|
data = {
|
|
105
112
|
flow: {
|
|
106
|
-
id: id
|
|
113
|
+
id: id,
|
|
107
114
|
},
|
|
108
115
|
flowAlias: flowAlias,
|
|
109
116
|
role: role,
|
|
110
|
-
deleteLambda: deleteLambda
|
|
117
|
+
deleteLambda: deleteLambda,
|
|
111
118
|
};
|
|
112
119
|
route = '/flows/deploy';
|
|
113
120
|
return [4, this.callApi({
|
package/dist/cjs/Deployer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deployer.js","sourceRoot":"","sources":["../../src/Deployer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA6C;AAO7C,yCAA0C;AAS1C;IAA8B,4BAAI;
|
|
1
|
+
{"version":3,"file":"Deployer.js","sourceRoot":"","sources":["../../src/Deployer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qCAA6C;AAO7C,yCAA0C;AAS1C;IAA8B,4BAAI;IAOhC,kBAAY,MAAsB;QAAlC,iBAQC;QAPS,IAAA,KAAK,GAAmB,MAAM,MAAzB,EAAE,YAAY,GAAK,MAAM,aAAX,CAAY;QAEvC,QAAA,kBAAM;YACJ,KAAK,OAAA;YACL,YAAY,cAAA;YACZ,UAAU,EAAE,uBAAW;SACxB,CAAC,SAAC;;IACL,CAAC;IAQY,+BAAY,GAAzB,UAA0B,EAAwC,EAAE,gBAAwB;YAAhE,EAAE,QAAA,EAAoB,IAAI,sBAAA;QAAc,iCAAA,EAAA,wBAAwB;;;;;;wBAC1F,IAAI,CAAC,EAAE,EAAE;4BACP,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;yBACnC;wBAEK,SAAS,GAAG,OAAK,IAAI,CAAC,GAAG,EAAI,CAAC;wBAE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;wBAAnB,SAAmB,CAAC;wBAEL,WAAM,IAAI,CAAC,OAAO,CAAgB;gCAC/C,MAAM,EAAE,KAAK;gCACb,KAAK,OAAA;6BACN,CAAC,EAAA;;wBAHI,MAAM,GAAG,SAGb;wBAEF,IAAK,MAA+B,CAAC,MAAM,KAAK,SAAS,EAAE;4BACzD,IAAK,MAA6B,CAAC,SAAS,EAAE;gCAC5C,MAAM,MAAM,CAAC;6BACd;4BAED,WAAO,MAAW,EAAC;yBACpB;;;4BACM,OAAO,GAAG,GAAG;;4BAEtB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;;;;KACxC;IAEH,eAAC;AAAD,CAAC,AA1GD,CAA8B,WAAI,GA0GjC;AA1GY,4BAAQ"}
|
package/dist/esm/Deployer.js
CHANGED
|
@@ -18,14 +18,17 @@ export class Deployer extends Base {
|
|
|
18
18
|
serviceKey: SERVICE_KEY,
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
activateFlow({ id,
|
|
21
|
+
activateFlow({ id, data: { deploy: { role } } }, interactiveDebug = false) {
|
|
22
22
|
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
if (!id) {
|
|
24
|
+
throw new Error('Id is required');
|
|
25
|
+
}
|
|
23
26
|
const flowAlias = `v-${Date.now()}`;
|
|
24
27
|
const data = {
|
|
25
28
|
flowId: id,
|
|
26
29
|
flowAlias,
|
|
27
|
-
interactiveDebug: interactiveDebug
|
|
28
|
-
role
|
|
30
|
+
interactiveDebug: interactiveDebug,
|
|
31
|
+
role,
|
|
29
32
|
};
|
|
30
33
|
const route = '/flows/deploy';
|
|
31
34
|
const { requestId } = yield this.callApi({
|
|
@@ -38,13 +41,16 @@ export class Deployer extends Base {
|
|
|
38
41
|
}
|
|
39
42
|
deactivateFlow({ id, data: { deploy: { role } } }, flowAlias, deleteLambda = false) {
|
|
40
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
if (!id) {
|
|
45
|
+
throw new Error('Id is required');
|
|
46
|
+
}
|
|
41
47
|
const data = {
|
|
42
48
|
flow: {
|
|
43
|
-
id
|
|
49
|
+
id,
|
|
44
50
|
},
|
|
45
51
|
flowAlias,
|
|
46
52
|
role,
|
|
47
|
-
deleteLambda
|
|
53
|
+
deleteLambda,
|
|
48
54
|
};
|
|
49
55
|
const route = '/flows/deploy';
|
|
50
56
|
const { requestId } = yield this.callApi({
|
package/dist/esm/Deployer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Deployer.js","sourceRoot":"","sources":["../../src/Deployer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAO7C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C,MAAM,OAAO,QAAS,SAAQ,IAAI;
|
|
1
|
+
{"version":3,"file":"Deployer.js","sourceRoot":"","sources":["../../src/Deployer.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAO7C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAS1C,MAAM,OAAO,QAAS,SAAQ,IAAI;IAOhC,YAAY,MAAsB;QAChC,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,MAAM,CAAC;QAEvC,KAAK,CAAC;YACJ,KAAK;YACL,YAAY;YACZ,UAAU,EAAE,WAAW;SACxB,CAAC,CAAC;IACL,CAAC;IAQY,YAAY,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,EAAQ,EAAE,gBAAgB,GAAG,KAAK;;YAC1F,IAAI,CAAC,EAAE,EAAE;gBACP,MAAM,IAAI,KAAK,CAAC,gBAAgB,CAAC,CAAC;aACnC;YAED,MAAM,SAAS,GAAG,KAAK,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC;YAEpC,MAA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MAAM,EAAE,KAAK;oBACb,KAAK;iBACN,CAAC,CAAC;gBAEH,IAAK,MAA+B,CAAC,MAAM,KAAK,SAAS,EAAE;oBACzD,IAAK,MAA6B,CAAC,SAAS,EAAE;wBAC5C,MAAM,MAAM,CAAC;qBACd;oBAED,OAAO,MAAW,CAAC;iBACpB;aACF,QAAQ,OAAO,GAAG,GAAG,EAAE;YAExB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;KAAA;CAEF"}
|
package/dist/types/Deployer.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Base } from '@or-sdk/base';
|
|
|
2
2
|
import { DeployerConfig, Flow, PollingResultActivateSuccess, PollingResultDeactivateSuccess } from './types';
|
|
3
3
|
export declare class Deployer extends Base {
|
|
4
4
|
constructor(params: DeployerConfig);
|
|
5
|
-
activateFlow({ id,
|
|
5
|
+
activateFlow({ id, data: { deploy: { role } } }: Flow, interactiveDebug?: boolean): Promise<PollingResultActivateSuccess>;
|
|
6
6
|
deactivateFlow({ id, data: { deploy: { role } } }: Flow, flowAlias: string, deleteLambda?: boolean): Promise<PollingResultDeactivateSuccess>;
|
|
7
7
|
private pollResult;
|
|
8
8
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export declare type Flow = {
|
|
|
41
41
|
data: {
|
|
42
42
|
label: string;
|
|
43
43
|
isHidden: boolean;
|
|
44
|
-
type:
|
|
44
|
+
type: unknown;
|
|
45
45
|
deploy: {
|
|
46
46
|
timeout?: number;
|
|
47
47
|
memory?: number;
|
|
@@ -51,8 +51,10 @@ export declare type Flow = {
|
|
|
51
51
|
trees: {
|
|
52
52
|
[key: string]: Tree;
|
|
53
53
|
};
|
|
54
|
-
packages:
|
|
55
|
-
meta:
|
|
54
|
+
packages: unknown;
|
|
55
|
+
meta: {
|
|
56
|
+
[key: string]: unknown;
|
|
57
|
+
};
|
|
56
58
|
color: string | null;
|
|
57
59
|
categories: string[] | null;
|
|
58
60
|
annotations: Annotation[] | null;
|
|
@@ -60,7 +62,6 @@ export declare type Flow = {
|
|
|
60
62
|
botId: string;
|
|
61
63
|
id?: string;
|
|
62
64
|
version: string;
|
|
63
|
-
interactiveDebug?: boolean;
|
|
64
65
|
};
|
|
65
66
|
export declare type Trigger = {
|
|
66
67
|
name: string;
|
|
@@ -72,7 +73,9 @@ export declare type Trigger = {
|
|
|
72
73
|
path?: string;
|
|
73
74
|
};
|
|
74
75
|
};
|
|
75
|
-
reporting: {
|
|
76
|
+
reporting: {
|
|
77
|
+
[key: string]: unknown;
|
|
78
|
+
};
|
|
76
79
|
processed: boolean;
|
|
77
80
|
};
|
|
78
81
|
export declare type PollingResultPending = {
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.7.0",
|
|
3
3
|
"name": "@or-sdk/deployer",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"access": "public"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@or-sdk/base": "^0.
|
|
27
|
+
"@or-sdk/base": "^0.7.0",
|
|
28
28
|
"lodash": "^4.17.21"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "836cfcb137cdc452b1ee3088fec811d1f4901255"
|
|
31
31
|
}
|
package/src/Deployer.ts
CHANGED
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
DeployerConfig,
|
|
4
4
|
Flow,
|
|
5
5
|
PollingResult,
|
|
6
|
-
PollingResultActivateSuccess, PollingResultDeactivateSuccess, PollingResultError, PollingResultPending
|
|
6
|
+
PollingResultActivateSuccess, PollingResultDeactivateSuccess, PollingResultError, PollingResultPending,
|
|
7
7
|
} from './types';
|
|
8
8
|
import { SERVICE_KEY } from './constants';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* OneReach Deployer service client
|
|
12
|
-
*
|
|
12
|
+
* ## Installation:
|
|
13
13
|
* ```
|
|
14
14
|
* $ npm i @or-sdk/deployer
|
|
15
15
|
* ```
|
|
@@ -17,10 +17,8 @@ import { SERVICE_KEY } from './constants';
|
|
|
17
17
|
export class Deployer extends Base {
|
|
18
18
|
/**
|
|
19
19
|
* ```typescript
|
|
20
|
-
*
|
|
21
20
|
* import { Deployer } from '@or-sdk/deployer'
|
|
22
21
|
* const deployer = new Deployer({token: 'my-account-token-string', discoveryUrl: 'http://example.tables/endpoint'});
|
|
23
|
-
*
|
|
24
22
|
* ```
|
|
25
23
|
*/
|
|
26
24
|
constructor(params: DeployerConfig) {
|
|
@@ -33,47 +31,67 @@ export class Deployer extends Base {
|
|
|
33
31
|
});
|
|
34
32
|
}
|
|
35
33
|
|
|
36
|
-
|
|
34
|
+
/**
|
|
35
|
+
* Activate flow
|
|
36
|
+
* ```typescript
|
|
37
|
+
* const triggerList = await deployer.activateFlow(flowSource, false);
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
public async activateFlow({ id, data: { deploy: { role } } }: Flow, interactiveDebug = false): Promise<PollingResultActivateSuccess> {
|
|
41
|
+
if (!id) {
|
|
42
|
+
throw new Error('Id is required');
|
|
43
|
+
}
|
|
44
|
+
|
|
37
45
|
const flowAlias = `v-${Date.now()}`;
|
|
38
46
|
|
|
39
47
|
const data = {
|
|
40
48
|
flowId: id,
|
|
41
49
|
flowAlias,
|
|
42
|
-
interactiveDebug: interactiveDebug
|
|
43
|
-
role
|
|
50
|
+
interactiveDebug: interactiveDebug,
|
|
51
|
+
role,
|
|
44
52
|
};
|
|
45
53
|
|
|
46
54
|
const route = '/flows/deploy';
|
|
47
55
|
|
|
48
|
-
const {requestId} = await this.callApi({
|
|
56
|
+
const { requestId } = await this.callApi({
|
|
49
57
|
method: 'POST',
|
|
50
58
|
route,
|
|
51
59
|
data,
|
|
52
60
|
});
|
|
53
61
|
|
|
54
|
-
return this.pollResult<PollingResultActivateSuccess>(id
|
|
62
|
+
return this.pollResult<PollingResultActivateSuccess>(id, requestId);
|
|
55
63
|
}
|
|
56
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Deactivate flow
|
|
67
|
+
* ```typescript
|
|
68
|
+
* const deactivatedFlowList = await deployer.deactivateFlow(flowSource, 'flowAlias', false);
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
57
71
|
//TODO: possibly remove flowAlias https://gitlab.com/onereach/platform/deployer/-/issues/57
|
|
58
|
-
public async deactivateFlow({ id, data: { deploy: { role }}}: Flow, flowAlias: string, deleteLambda
|
|
72
|
+
public async deactivateFlow({ id, data: { deploy: { role } } }: Flow, flowAlias: string, deleteLambda = false): Promise<PollingResultDeactivateSuccess> {
|
|
73
|
+
if (!id) {
|
|
74
|
+
throw new Error('Id is required');
|
|
75
|
+
}
|
|
76
|
+
|
|
59
77
|
const data = {
|
|
60
78
|
flow: {
|
|
61
|
-
id
|
|
79
|
+
id,
|
|
62
80
|
},
|
|
63
81
|
flowAlias,
|
|
64
82
|
role,
|
|
65
|
-
deleteLambda
|
|
83
|
+
deleteLambda,
|
|
66
84
|
};
|
|
67
85
|
|
|
68
86
|
const route = '/flows/deploy';
|
|
69
87
|
|
|
70
|
-
const {requestId} = await this.callApi({
|
|
88
|
+
const { requestId } = await this.callApi({
|
|
71
89
|
method: 'DELETE',
|
|
72
90
|
route,
|
|
73
91
|
data,
|
|
74
92
|
});
|
|
75
93
|
|
|
76
|
-
return this.pollResult<PollingResultDeactivateSuccess>(id
|
|
94
|
+
return this.pollResult<PollingResultDeactivateSuccess>(id, requestId);
|
|
77
95
|
}
|
|
78
96
|
|
|
79
97
|
private async pollResult<T>(flowId: string, requestId: string): Promise<T> {
|
package/src/types.ts
CHANGED
|
@@ -54,18 +54,20 @@ export type Flow = {
|
|
|
54
54
|
data: {
|
|
55
55
|
label: string;
|
|
56
56
|
isHidden: boolean;
|
|
57
|
-
type:
|
|
57
|
+
type: unknown;
|
|
58
58
|
deploy: {
|
|
59
59
|
timeout?: number;
|
|
60
60
|
memory?: number;
|
|
61
|
-
role: string
|
|
61
|
+
role: string;
|
|
62
62
|
};
|
|
63
63
|
description: string;
|
|
64
64
|
trees: {
|
|
65
65
|
[key: string]: Tree;
|
|
66
66
|
};
|
|
67
|
-
packages:
|
|
68
|
-
meta:
|
|
67
|
+
packages: unknown;
|
|
68
|
+
meta: {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
};
|
|
69
71
|
color: string | null;
|
|
70
72
|
categories: string[] | null;
|
|
71
73
|
annotations: Annotation[] | null;
|
|
@@ -73,7 +75,6 @@ export type Flow = {
|
|
|
73
75
|
botId: string;
|
|
74
76
|
id?: string;
|
|
75
77
|
version: string;
|
|
76
|
-
interactiveDebug?: boolean;
|
|
77
78
|
};
|
|
78
79
|
|
|
79
80
|
export type Trigger = {
|
|
@@ -84,9 +85,11 @@ export type Trigger = {
|
|
|
84
85
|
params?: {
|
|
85
86
|
method?: string;
|
|
86
87
|
path?: string;
|
|
87
|
-
}
|
|
88
|
+
};
|
|
88
89
|
};
|
|
89
|
-
reporting: {
|
|
90
|
+
reporting: {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
}; //TODO: always empty?
|
|
90
93
|
processed: boolean;
|
|
91
94
|
};
|
|
92
95
|
|