@apaas-ai/code-sdk-core
Advanced tools
Comparing version 0.1.0-beta.7 to 0.1.0-beta.9
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.callAction = void 0; | ||
exports.callAction = callAction; | ||
const axios_1 = require("axios"); | ||
@@ -23,5 +23,5 @@ const util_1 = require("../common/util"); | ||
}; | ||
function callAction(actionApiName, actionData, options, isAsync = false) { | ||
var _a; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
function callAction(actionApiName_1, actionData_1, options_1) { | ||
return __awaiter(this, arguments, void 0, function* (actionApiName, actionData, options, isAsync = false) { | ||
var _a; | ||
const credential = new credential_1.AppCredential(); | ||
@@ -73,3 +73,2 @@ const token = yield credential.getToken(); | ||
} | ||
exports.callAction = callAction; | ||
//# sourceMappingURL=callAction.js.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getHTTPInstance = void 0; | ||
exports.getHTTPInstance = getHTTPInstance; | ||
const axios_1 = __importDefault(require("axios")); | ||
@@ -33,3 +33,2 @@ const nodeClsCtx_1 = require("../credential/nodeClsCtx"); | ||
} | ||
exports.getHTTPInstance = getHTTPInstance; | ||
//# sourceMappingURL=util.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getReporterCtx = exports.getByHeaders = exports.getDomain = exports.getClientSecret = exports.getClientId = exports.getReqCtx = void 0; | ||
exports.getReqCtx = getReqCtx; | ||
exports.getClientId = getClientId; | ||
exports.getClientSecret = getClientSecret; | ||
exports.getDomain = getDomain; | ||
exports.getByHeaders = getByHeaders; | ||
exports.getReporterCtx = getReporterCtx; | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires, import/no-unresolved | ||
const nodeCls = require('node-cls'); | ||
const NodeClsKey = 'x-aily-cls'; | ||
const NodeClsKey = 'x-apaas-node-cls'; | ||
function getReqCtx() { | ||
@@ -25,15 +30,11 @@ var _a, _b, _c; | ||
} | ||
exports.getReqCtx = getReqCtx; | ||
function getClientId() { | ||
return getReqCtx().credential.clientID; | ||
} | ||
exports.getClientId = getClientId; | ||
function getClientSecret() { | ||
return getReqCtx().credential.clientSecret; | ||
} | ||
exports.getClientSecret = getClientSecret; | ||
function getDomain() { | ||
return getReqCtx().credential.domain; | ||
} | ||
exports.getDomain = getDomain; | ||
function getByHeaders(key) { | ||
@@ -46,3 +47,2 @@ const reqCtx = getReqCtx(); | ||
} | ||
exports.getByHeaders = getByHeaders; | ||
function getReporterCtx() { | ||
@@ -52,3 +52,2 @@ const reporter = nodeCls.get('x-apaas-node-cls').frame_skill_faas_reporter; | ||
} | ||
exports.getReporterCtx = getReporterCtx; | ||
//# sourceMappingURL=nodeClsCtx.js.map |
@@ -12,3 +12,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getEnvInfo = void 0; | ||
exports.getEnvInfo = getEnvInfo; | ||
const credential_1 = require("../credential/credential"); | ||
@@ -32,3 +32,2 @@ function getEnvInfo() { | ||
} | ||
exports.getEnvInfo = getEnvInfo; | ||
//# sourceMappingURL=getEnvInfo.js.map |
@@ -16,3 +16,3 @@ "use strict"; | ||
DataRecordFieldTypeEnum["Markdown"] = "markdown"; | ||
})(DataRecordFieldTypeEnum = exports.DataRecordFieldTypeEnum || (exports.DataRecordFieldTypeEnum = {})); | ||
})(DataRecordFieldTypeEnum || (exports.DataRecordFieldTypeEnum = DataRecordFieldTypeEnum = {})); | ||
class DataRecord extends base_component_1.BaseComponent { | ||
@@ -19,0 +19,0 @@ constructor() { |
@@ -16,3 +16,3 @@ "use strict"; | ||
TableColumnTypeEnum["Markdown"] = "markdown"; | ||
})(TableColumnTypeEnum = exports.TableColumnTypeEnum || (exports.TableColumnTypeEnum = {})); | ||
})(TableColumnTypeEnum || (exports.TableColumnTypeEnum = TableColumnTypeEnum = {})); | ||
class Table extends base_component_1.BaseComponent { | ||
@@ -19,0 +19,0 @@ constructor() { |
@@ -19,3 +19,3 @@ "use strict"; | ||
TitleStyleEnum["DEFAULT"] = "default"; | ||
})(TitleStyleEnum = exports.TitleStyleEnum || (exports.TitleStyleEnum = {})); | ||
})(TitleStyleEnum || (exports.TitleStyleEnum = TitleStyleEnum = {})); | ||
class Title extends base_component_1.BaseComponent { | ||
@@ -22,0 +22,0 @@ constructor() { |
@@ -10,3 +10,3 @@ "use strict"; | ||
TenantType[TenantType["SANDBOX"] = 4] = "SANDBOX"; | ||
})(TenantType = exports.TenantType || (exports.TenantType = {})); | ||
})(TenantType || (exports.TenantType = TenantType = {})); | ||
//# sourceMappingURL=type.js.map |
{ | ||
"name": "@apaas-ai/code-sdk-core", | ||
"version": "0.1.0-beta.7", | ||
"version": "0.1.0-beta.9", | ||
"description": "Aily Code SDK Core", | ||
@@ -5,0 +5,0 @@ "license": "ISC", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
77730
1438