@ultipa-graph/ultipa-node-sdk
Version:
NodeJS SDK for ultipa-server 4.0
61 lines • 2.28 kB
JavaScript
;
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestType = void 0;
const ULTIPA_RPC = __importStar(require("../proto/ultipa_pb"));
/**
* 请求参数命名空间
*/
var RequestType;
(function (RequestType) {
let TASK_STATUS;
(function (TASK_STATUS) {
TASK_STATUS["TASK_ALL"] = "*";
TASK_STATUS["TASK_PENDING"] = "pending";
TASK_STATUS["TASK_COMPUTING"] = "computing";
TASK_STATUS["TASK_WRITING"] = "writing";
TASK_STATUS["TASK_FAILED"] = "failed";
TASK_STATUS["TASK_DONE"] = "done";
TASK_STATUS["TASK_STOPPED"] = "stopped";
})(TASK_STATUS = RequestType.TASK_STATUS || (RequestType.TASK_STATUS = {}));
;
;
;
;
/**
* 获取插入类型
*/
function GetInsertType(insertTypeNormal, insertTypeOverwrite, insertTypeUpsert) {
if (insertTypeOverwrite) {
return ULTIPA_RPC.InsertType.OVERWRITE;
}
if (insertTypeUpsert) {
return ULTIPA_RPC.InsertType.UPSERT;
}
return ULTIPA_RPC.InsertType.NORMAL;
}
RequestType.GetInsertType = GetInsertType;
})(RequestType = exports.RequestType || (exports.RequestType = {}));
//# sourceMappingURL=types.extra.js.map