backendless
Version:
Backendless JavaScript SDK for Node.js and the browser
21 lines (20 loc) • 667 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isExecutionType = exports.ExecutionTypes = exports.EXECUTION_TYPE_HEADER = void 0;
var EXECUTION_TYPE_HEADER = 'bl-execution-type';
exports.EXECUTION_TYPE_HEADER = EXECUTION_TYPE_HEADER;
var ExecutionTypes = {
SYNC: 'sync',
ASYNC: 'async',
ASYNC_LOW_PRIORITY: 'async-low-priority'
};
exports.ExecutionTypes = ExecutionTypes;
var executionTypesList = Object.keys(ExecutionTypes).map(function (k) {
return ExecutionTypes[k];
});
var isExecutionType = function isExecutionType(type) {
return executionTypesList.includes(type);
};
exports.isExecutionType = isExecutionType;