@byted-apaas/server-sdk-node 1.1.25-beta.0 → 1.1.26-beta.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/package.json +2 -2
- package/request/openapi.js +0 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@byted-apaas/server-sdk-node",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.26-beta.1",
|
|
4
4
|
"description": "aPaaS Server SDK",
|
|
5
5
|
"author": "zhouwexin <zhouwexin@bytedance.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"clean": "tsc --build --clean && rm -rf **/*.js.map"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@byted-apaas/server-common-node": "^2.0.
|
|
16
|
+
"@byted-apaas/server-common-node": "^2.0.25-beta.1",
|
|
17
17
|
"@jorgeferrero/stream-to-buffer": "^2.0.6",
|
|
18
18
|
"dayjs": "^1.9.6",
|
|
19
19
|
"form-data": "^3.0.0",
|
package/request/openapi.js
CHANGED
|
@@ -1409,7 +1409,6 @@ async function getExecutionUserTaskInfo(executionId) {
|
|
|
1409
1409
|
let options = commonHttp.getOptions(null, constants_2.openapiHttpPath.getExecutionUserTaskInfo);
|
|
1410
1410
|
let urlPath = options._reqPath.replace(replaceKeys.namespace, await (0, common_1.getNamespaceForOpenAndFaaSSDK)()).replace(replaceKeys.id, `${executionId}`);
|
|
1411
1411
|
urlPath += `?operator=${utils.getUserIDFromCtx()}`;
|
|
1412
|
-
options.headers.User = utils.getUserIDFromCtx();
|
|
1413
1412
|
let res = await openapi.doRequest(null, urlPath, options);
|
|
1414
1413
|
if (!res) {
|
|
1415
1414
|
throw new exceptions.InternalError('getExecutionUserTaskInfo result is empty');
|
|
@@ -1423,7 +1422,6 @@ async function executeFlow(apiName, option, async) {
|
|
|
1423
1422
|
}
|
|
1424
1423
|
let options = commonHttp.getOptions(null, constants_2.openapiHttpPath.executeFlow);
|
|
1425
1424
|
const urlPath = options._reqPath.replace(replaceKeys.namespace, await (0, common_1.getNamespaceForOpenAndFaaSSDK)()).replace(replaceKeys.apiName, apiName);
|
|
1426
|
-
options.headers.User = utils.getUserIDFromCtx();
|
|
1427
1425
|
options.json = {
|
|
1428
1426
|
'operator': utils.getUserIDFromCtx(),
|
|
1429
1427
|
'variables': (0, common_1.transMapToFlowVariable)(option.params),
|
|
@@ -1448,7 +1446,6 @@ async function revokeExecution(executionId, revokeOptions) {
|
|
|
1448
1446
|
}
|
|
1449
1447
|
let options = commonHttp.getOptions(null, constants_2.openapiHttpPath.revokeExecution);
|
|
1450
1448
|
let urlPath = options._reqPath.replace(replaceKeys.namespace, await (0, common_1.getNamespaceForOpenAndFaaSSDK)()).replace(replaceKeys.id, `${executionId}`);
|
|
1451
|
-
options.headers.User = utils.getUserIDFromCtx();
|
|
1452
1449
|
let reason = undefined;
|
|
1453
1450
|
if (revokeOptions && revokeOptions.reason) {
|
|
1454
1451
|
reason = {
|
|
@@ -1470,7 +1467,6 @@ async function getExecutionInfo(executionId) {
|
|
|
1470
1467
|
let options = commonHttp.getOptions(null, constants_2.openapiHttpPath.getExecutionInfo);
|
|
1471
1468
|
let urlPath = options._reqPath.replace(replaceKeys.namespace, await (0, common_1.getNamespaceForOpenAndFaaSSDK)()).replace(replaceKeys.id, `${executionId}`);
|
|
1472
1469
|
urlPath += `?operator=${utils.getUserIDFromCtx()}`;
|
|
1473
|
-
options.headers.User = utils.getUserIDFromCtx();
|
|
1474
1470
|
let res = await openapi.doRequest(null, urlPath, options);
|
|
1475
1471
|
if (!res || !res.executionInfo) {
|
|
1476
1472
|
throw new exceptions.InternalError(`getExecutionInfo result is empty`);
|