@ultipa-graph/ultipa-driver 5.1.5-s5.2 → 6.0.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/LICENSE +21 -0
- package/README.md +65 -0
- package/dist/client.d.ts +194 -0
- package/dist/client.js +390 -0
- package/dist/config.d.ts +65 -0
- package/dist/config.js +135 -0
- package/dist/connection.d.ts +30 -0
- package/dist/connection.js +190 -0
- package/dist/errors.d.ts +99 -0
- package/dist/errors.js +237 -0
- package/dist/index.d.ts +14 -5
- package/dist/index.js +88 -39
- package/dist/printers.d.ts +33 -0
- package/dist/printers.js +312 -0
- package/dist/proto/gqldb.proto +632 -0
- package/dist/response.d.ts +256 -0
- package/dist/response.js +723 -0
- package/dist/services/admin-service.d.ts +40 -0
- package/dist/services/admin-service.js +115 -0
- package/dist/services/bulk-import-service.d.ts +35 -0
- package/dist/services/bulk-import-service.js +108 -0
- package/dist/services/converters.d.ts +57 -0
- package/dist/services/converters.js +254 -0
- package/dist/services/data-service.d.ts +44 -0
- package/dist/services/data-service.js +206 -0
- package/dist/services/graph-service.d.ts +32 -0
- package/dist/services/graph-service.js +127 -0
- package/dist/services/health-service.d.ts +50 -0
- package/dist/services/health-service.js +78 -0
- package/dist/services/index.d.ts +13 -0
- package/dist/services/index.js +30 -0
- package/dist/services/query-service.d.ts +39 -0
- package/dist/services/query-service.js +112 -0
- package/dist/services/service-context.d.ts +39 -0
- package/dist/services/service-context.js +73 -0
- package/dist/services/session-service.d.ts +24 -0
- package/dist/services/session-service.js +66 -0
- package/dist/services/transaction-service.d.ts +33 -0
- package/dist/services/transaction-service.js +100 -0
- package/dist/services.d.ts +28 -0
- package/dist/services.js +122 -0
- package/dist/session.d.ts +45 -0
- package/dist/session.js +75 -0
- package/dist/transaction.d.ts +42 -0
- package/dist/transaction.js +89 -0
- package/dist/types/bulk_import.d.ts +53 -0
- package/dist/types/bulk_import.js +6 -0
- package/dist/types/data_types.d.ts +116 -0
- package/dist/types/data_types.js +122 -0
- package/dist/types/enums.d.ts +59 -0
- package/dist/types/enums.js +67 -0
- package/dist/types/graph_models.d.ts +54 -0
- package/dist/types/graph_models.js +6 -0
- package/dist/types/index.d.ts +11 -5
- package/dist/types/index.js +36 -37
- package/dist/types/metadata.d.ts +60 -0
- package/dist/types/metadata.js +6 -0
- package/dist/types/schema.d.ts +31 -0
- package/dist/types/schema.js +6 -0
- package/dist/types/typed_value.d.ts +25 -0
- package/dist/types/typed_value.js +1176 -0
- package/dist/types/wrappers.d.ts +23 -0
- package/dist/types/wrappers.js +39 -0
- package/dist/types.d.ts +7 -0
- package/dist/types.js +24 -0
- package/package.json +49 -62
- package/dist/connection/connection.final.d.ts +0 -14
- package/dist/connection/connection.final.js +0 -94
- package/dist/connection/connection.final.js.map +0 -1
- package/dist/connection/connection.pool.d.ts +0 -21
- package/dist/connection/connection.pool.js +0 -103
- package/dist/connection/connection.pool.js.map +0 -1
- package/dist/connection/extra/algos/algo.extra.d.ts +0 -34
- package/dist/connection/extra/algos/algo.extra.js +0 -69
- package/dist/connection/extra/algos/algo.extra.js.map +0 -1
- package/dist/connection/extra/algos/algo.utils.d.ts +0 -3
- package/dist/connection/extra/algos/algo.utils.js +0 -54
- package/dist/connection/extra/algos/algo.utils.js.map +0 -1
- package/dist/connection/extra/algos/community.d.ts +0 -27
- package/dist/connection/extra/algos/community.js +0 -76
- package/dist/connection/extra/algos/community.js.map +0 -1
- package/dist/connection/extra/algos/degrees.d.ts +0 -10
- package/dist/connection/extra/algos/degrees.js +0 -24
- package/dist/connection/extra/algos/degrees.js.map +0 -1
- package/dist/connection/extra/algos/embedding.d.ts +0 -13
- package/dist/connection/extra/algos/embedding.js +0 -33
- package/dist/connection/extra/algos/embedding.js.map +0 -1
- package/dist/connection/extra/algos/index.d.ts +0 -5
- package/dist/connection/extra/algos/index.js +0 -14
- package/dist/connection/extra/algos/index.js.map +0 -1
- package/dist/connection/extra/base.extra.d.ts +0 -18
- package/dist/connection/extra/base.extra.js +0 -111
- package/dist/connection/extra/base.extra.js.map +0 -1
- package/dist/connection/extra/batch.insert.extra.d.ts +0 -58
- package/dist/connection/extra/batch.insert.extra.js +0 -354
- package/dist/connection/extra/batch.insert.extra.js.map +0 -1
- package/dist/connection/extra/connection.base.d.ts +0 -112
- package/dist/connection/extra/connection.base.js +0 -530
- package/dist/connection/extra/connection.base.js.map +0 -1
- package/dist/connection/extra/connection.d.ts +0 -17
- package/dist/connection/extra/connection.js +0 -44
- package/dist/connection/extra/connection.js.map +0 -1
- package/dist/connection/extra/graph.extra.d.ts +0 -54
- package/dist/connection/extra/graph.extra.js +0 -151
- package/dist/connection/extra/graph.extra.js.map +0 -1
- package/dist/connection/extra/hdc.extra.d.ts +0 -89
- package/dist/connection/extra/hdc.extra.js +0 -322
- package/dist/connection/extra/hdc.extra.js.map +0 -1
- package/dist/connection/extra/index.extra.d.ts +0 -102
- package/dist/connection/extra/index.extra.js +0 -210
- package/dist/connection/extra/index.extra.js.map +0 -1
- package/dist/connection/extra/job.extra.d.ts +0 -32
- package/dist/connection/extra/job.extra.js +0 -122
- package/dist/connection/extra/job.extra.js.map +0 -1
- package/dist/connection/extra/meta.extra.d.ts +0 -36
- package/dist/connection/extra/meta.extra.js +0 -123
- package/dist/connection/extra/meta.extra.js.map +0 -1
- package/dist/connection/extra/policy.extra.d.ts +0 -32
- package/dist/connection/extra/policy.extra.js +0 -114
- package/dist/connection/extra/policy.extra.js.map +0 -1
- package/dist/connection/extra/privilege.extra.d.ts +0 -8
- package/dist/connection/extra/privilege.extra.js +0 -20
- package/dist/connection/extra/privilege.extra.js.map +0 -1
- package/dist/connection/extra/property.extra.d.ts +0 -66
- package/dist/connection/extra/property.extra.js +0 -190
- package/dist/connection/extra/property.extra.js.map +0 -1
- package/dist/connection/extra/schema.extra.d.ts +0 -108
- package/dist/connection/extra/schema.extra.js +0 -253
- package/dist/connection/extra/schema.extra.js.map +0 -1
- package/dist/connection/extra/search.extra.d.ts +0 -12
- package/dist/connection/extra/search.extra.js +0 -117
- package/dist/connection/extra/search.extra.js.map +0 -1
- package/dist/connection/extra/task.extra.d.ts +0 -24
- package/dist/connection/extra/task.extra.js +0 -107
- package/dist/connection/extra/task.extra.js.map +0 -1
- package/dist/connection/extra/user.extra.d.ts +0 -28
- package/dist/connection/extra/user.extra.js +0 -91
- package/dist/connection/extra/user.extra.js.map +0 -1
- package/dist/connection/extra/user.privilege.extra.d.ts +0 -64
- package/dist/connection/extra/user.privilege.extra.js +0 -273
- package/dist/connection/extra/user.privilege.extra.js.map +0 -1
- package/dist/connection/index.d.ts +0 -5
- package/dist/connection/index.js +0 -13
- package/dist/connection/index.js.map +0 -1
- package/dist/connection/network.manager.d.ts +0 -28
- package/dist/connection/network.manager.js +0 -179
- package/dist/connection/network.manager.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/printers/alias.d.ts +0 -2
- package/dist/printers/alias.js +0 -39
- package/dist/printers/alias.js.map +0 -1
- package/dist/printers/any.d.ts +0 -2
- package/dist/printers/any.js +0 -63
- package/dist/printers/any.js.map +0 -1
- package/dist/printers/array.aio.d.ts +0 -3
- package/dist/printers/array.aio.js +0 -259
- package/dist/printers/array.aio.js.map +0 -1
- package/dist/printers/common.d.ts +0 -0
- package/dist/printers/common.js +0 -1
- package/dist/printers/common.js.map +0 -1
- package/dist/printers/edge.d.ts +0 -5
- package/dist/printers/edge.js +0 -78
- package/dist/printers/edge.js.map +0 -1
- package/dist/printers/explain.plan.d.ts +0 -2
- package/dist/printers/explain.plan.js +0 -46
- package/dist/printers/explain.plan.js.map +0 -1
- package/dist/printers/index.d.ts +0 -24
- package/dist/printers/index.js +0 -43
- package/dist/printers/index.js.map +0 -1
- package/dist/printers/node.d.ts +0 -5
- package/dist/printers/node.js +0 -77
- package/dist/printers/node.js.map +0 -1
- package/dist/printers/path.d.ts +0 -3
- package/dist/printers/path.js +0 -62
- package/dist/printers/path.js.map +0 -1
- package/dist/printers/status.d.ts +0 -3
- package/dist/printers/status.js +0 -68
- package/dist/printers/status.js.map +0 -1
- package/dist/printers/table.d.ts +0 -2
- package/dist/printers/table.js +0 -56
- package/dist/printers/table.js.map +0 -1
- package/dist/proto/tmp.js +0 -366
- package/dist/proto/ultipa_grpc_pb.d.ts +0 -258
- package/dist/proto/ultipa_grpc_pb.js +0 -366
- package/dist/proto/ultipa_grpc_pb.js.map +0 -1
- package/dist/proto/ultipa_pb.d.ts +0 -1
- package/dist/proto/ultipa_pb.js +0 -12119
- package/dist/proto/ultipa_pb.js.map +0 -1
- package/dist/types/index.js.map +0 -1
- package/dist/types/types.algos.params.d.ts +0 -545
- package/dist/types/types.algos.params.js +0 -16
- package/dist/types/types.algos.params.js.map +0 -1
- package/dist/types/types.d.ts +0 -1214
- package/dist/types/types.extra.d.ts +0 -146
- package/dist/types/types.extra.js +0 -27
- package/dist/types/types.extra.js.map +0 -1
- package/dist/types/types.js +0 -1606
- package/dist/types/types.js.map +0 -1
- package/dist/types/util.d.ts +0 -15
- package/dist/types/util.js +0 -136
- package/dist/types/util.js.map +0 -1
- package/dist/utils/common.d.ts +0 -3
- package/dist/utils/common.js +0 -22
- package/dist/utils/common.js.map +0 -1
- package/dist/utils/config.d.ts +0 -3
- package/dist/utils/config.js +0 -7
- package/dist/utils/config.js.map +0 -1
- package/dist/utils/format.d.ts +0 -45
- package/dist/utils/format.js +0 -879
- package/dist/utils/format.js.map +0 -1
- package/dist/utils/index.d.ts +0 -10
- package/dist/utils/index.js +0 -30
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/params.validate.d.ts +0 -4
- package/dist/utils/params.validate.js +0 -14
- package/dist/utils/params.validate.js.map +0 -1
- package/dist/utils/property.d.ts +0 -24
- package/dist/utils/property.js +0 -203
- package/dist/utils/property.js.map +0 -1
- package/dist/utils/raft.retry.d.ts +0 -0
- package/dist/utils/raft.retry.js +0 -1
- package/dist/utils/raft.retry.js.map +0 -1
- package/dist/utils/serialize/commont.d.ts +0 -12
- package/dist/utils/serialize/commont.js +0 -46
- package/dist/utils/serialize/commont.js.map +0 -1
- package/dist/utils/serialize/deserialize.d.ts +0 -10
- package/dist/utils/serialize/deserialize.js +0 -288
- package/dist/utils/serialize/deserialize.js.map +0 -1
- package/dist/utils/serialize/null.d.ts +0 -32
- package/dist/utils/serialize/null.js +0 -178
- package/dist/utils/serialize/null.js.map +0 -1
- package/dist/utils/serialize/serialize.d.ts +0 -10
- package/dist/utils/serialize/serialize.js +0 -146
- package/dist/utils/serialize/serialize.js.map +0 -1
- package/dist/utils/stream.helper.d.ts +0 -10
- package/dist/utils/stream.helper.js +0 -71
- package/dist/utils/stream.helper.js.map +0 -1
- package/dist/utils/time.record.d.ts +0 -15
- package/dist/utils/time.record.js +0 -52
- package/dist/utils/time.record.js.map +0 -1
- package/dist/utils/timezone.d.ts +0 -7
- package/dist/utils/timezone.js +0 -21
- package/dist/utils/timezone.js.map +0 -1
- package/dist/utils/ultipa.datetime.d.ts +0 -14
- package/dist/utils/ultipa.datetime.js +0 -160
- package/dist/utils/ultipa.datetime.js.map +0 -1
- package/dist/utils/uql-maker.d.ts +0 -165
- package/dist/utils/uql-maker.js +0 -402
- package/dist/utils/uql-maker.js.map +0 -1
- package/dist/utils/uql.parse.d.ts +0 -27
- package/dist/utils/uql.parse.js +0 -205
- package/dist/utils/uql.parse.js.map +0 -1
- package/readme.md +0 -65
- package/src/proto/build.sh +0 -41
- package/src/proto/build_windows.sh +0 -40
- package/src/proto/ultipa.proto +0 -531
- package/src/proto/ultipa_grpc_pb.d.ts +0 -92
- package/src/proto/ultipa_grpc_pb.js +0 -414
- package/src/proto/ultipa_pb.d.ts +0 -1983
- package/src/proto/ultipa_pb.js +0 -14852
package/dist/printers/path.js
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.printPath = exports.getPathsPrintInfo = void 0;
|
|
27
|
-
const ULTIPA = __importStar(require("../types/types"));
|
|
28
|
-
const alias_1 = require("./alias");
|
|
29
|
-
function getPathsPrintInfo(paths) {
|
|
30
|
-
let pathsStr = [];
|
|
31
|
-
paths?.forEach(p => {
|
|
32
|
-
let pathString = [];
|
|
33
|
-
p.edges?.forEach((edge, index) => {
|
|
34
|
-
let node = p.nodes[index];
|
|
35
|
-
let d1 = "-";
|
|
36
|
-
let d2 = "-";
|
|
37
|
-
if (edge) {
|
|
38
|
-
if (edge?.from == node?.id) {
|
|
39
|
-
d2 = "->";
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
d1 = "<-";
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
pathString.push(`(${node?.id || node?.uuid || null}) ${d1} [${edge?.uuid || null}] ${d2}`);
|
|
46
|
-
});
|
|
47
|
-
let lastNode = p.nodes[p.length() - 1];
|
|
48
|
-
pathString.push(`(${lastNode?.id || lastNode?.uuid || null})`);
|
|
49
|
-
pathsStr.push(pathString.join(" "));
|
|
50
|
-
});
|
|
51
|
-
return pathsStr;
|
|
52
|
-
}
|
|
53
|
-
exports.getPathsPrintInfo = getPathsPrintInfo;
|
|
54
|
-
function printPath(d) {
|
|
55
|
-
if (d?.type == ULTIPA.ResultType.RESULT_TYPE_PATH) {
|
|
56
|
-
// let paths = d.asPaths()
|
|
57
|
-
(0, alias_1.printAlias)(d);
|
|
58
|
-
// console.table(getPathsPrintInfo(paths))
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.printPath = printPath;
|
|
62
|
-
//# sourceMappingURL=path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../src/printers/path.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uDAAwC;AACxC,mCAAoC;AAGpC,SAAgB,iBAAiB,CAAC,KAAoB;IAClD,IAAI,QAAQ,GAAG,EAAE,CAAA;IACjB,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE;QACf,IAAI,UAAU,GAAG,EAAE,CAAA;QACnB,CAAC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC7B,IAAI,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YACzB,IAAI,EAAE,GAAG,GAAG,CAAA;YACZ,IAAI,EAAE,GAAG,GAAG,CAAA;YACZ,IAAI,IAAI,EAAE;gBACN,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,EAAE,EAAE,EAAE;oBACxB,EAAE,GAAG,IAAI,CAAA;iBACZ;qBAAM;oBACH,EAAE,GAAG,IAAI,CAAA;iBACZ;aACJ;YACD,UAAU,CAAC,IAAI,CACX,IAAI,IAAI,EAAE,EAAE,IAAI,IAAI,EAAE,IAAI,IAAI,IAAI,KAAK,EAAE,KAAK,IAAI,EAAE,IAAI,IAAI,IAAI,KAAK,EAAE,EAAE,CAC5E,CAAA;QACL,CAAC,CAAC,CAAA;QACF,IAAI,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAA;QACtC,UAAU,CAAC,IAAI,CACX,IAAI,QAAQ,EAAE,EAAE,IAAI,QAAQ,EAAE,IAAI,IAAI,IAAI,GAAG,CAChD,CAAA;QACD,QAAQ,CAAC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;IACvC,CAAC,CAAC,CAAA;IACF,OAAO,QAAQ,CAAA;AACnB,CAAC;AA1BD,8CA0BC;AACD,SAAgB,SAAS,CAAC,CAAmB;IACzC,IAAI,CAAC,EAAE,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,gBAAgB,EAAE;QAC/C,0BAA0B;QAC1B,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAA;QACb,0CAA0C;KAC7C;AACL,CAAC;AAND,8BAMC"}
|
package/dist/printers/status.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.printStatistics = exports.printStatus = void 0;
|
|
30
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
31
|
-
const ULTIPA = __importStar(require("../types/types"));
|
|
32
|
-
function printStatus(status, statistics) {
|
|
33
|
-
if (!status) {
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
|
-
Object.assign(status, { "success?": status.code == ULTIPA.ErrorCode.SUCCESS ? "✅" : "❌" });
|
|
37
|
-
if (statistics) {
|
|
38
|
-
for (const key in statistics) {
|
|
39
|
-
if (statistics[key] != 0) {
|
|
40
|
-
status[`statistics.${key}`] = statistics[key];
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
console.table([status]);
|
|
45
|
-
if (status.code == ULTIPA.ErrorCode.SYNTAX_ERROR) {
|
|
46
|
-
// [1-5]abcd().nodes() as n return n{*} limit 5\nsyntax error, unexpected Identifier\n
|
|
47
|
-
let message = status.message;
|
|
48
|
-
let v = message.match(/\[([0-9]*)-([0-9]*)\]/);
|
|
49
|
-
if (v) {
|
|
50
|
-
let find = v[0];
|
|
51
|
-
let start = +v[1] - 1;
|
|
52
|
-
let end = +v[2] - 1;
|
|
53
|
-
message = message.substring(find.length);
|
|
54
|
-
let startStr = message.substring(0, start);
|
|
55
|
-
let colorStr = message.substring(start, end);
|
|
56
|
-
let endStr = message.substring(end);
|
|
57
|
-
console.log(`${chalk_1.default.yellow(startStr)}${chalk_1.default.red(colorStr)}${chalk_1.default.yellow(endStr)}`);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
exports.printStatus = printStatus;
|
|
62
|
-
function printStatistics(statistics) {
|
|
63
|
-
if (statistics) {
|
|
64
|
-
console.table(statistics);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
exports.printStatistics = printStatistics;
|
|
68
|
-
//# sourceMappingURL=status.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"status.js","sourceRoot":"","sources":["../../src/printers/status.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAyB;AACzB,uDAAwC;AAExC,SAAgB,WAAW,CAAC,MAAsB,EAAE,UAA8B;IAC9E,IAAI,CAAC,MAAM,EAAE;QACT,OAAM;KACT;IACD,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAA;IAC1F,IAAI,UAAU,EAAE;QACZ,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE;YAC1B,IAAI,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;gBACtB,MAAM,CAAC,cAAc,GAAG,EAAE,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAA;aAChD;SACJ;KACJ;IACD,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAA;IACvB,IAAI,MAAM,CAAC,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,YAAY,EAAE;QAC9C,sFAAsF;QACtF,IAAI,OAAO,GAAG,MAAM,CAAC,OAAO,CAAA;QAC5B,IAAI,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;QAC9C,IAAI,CAAC,EAAE;YACH,IAAI,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;YACf,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;YACrB,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;YACnB,OAAO,GAAG,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;YACxC,IAAI,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;YAC1C,IAAI,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAA;YAC5C,IAAI,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;YACnC,OAAO,CAAC,GAAG,CAAC,GAAG,eAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,eAAK,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAA;SACxF;KACJ;AACL,CAAC;AA5BD,kCA4BC;AAED,SAAgB,eAAe,CAAC,UAA8B;IAC1D,IAAI,UAAU,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,CAAA;KAC5B;AACL,CAAC;AAJD,0CAIC"}
|
package/dist/printers/table.d.ts
DELETED
package/dist/printers/table.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.printTable = void 0;
|
|
27
|
-
const ULTIPA = __importStar(require("../types/types"));
|
|
28
|
-
const alias_1 = require("./alias");
|
|
29
|
-
function printTable(d) {
|
|
30
|
-
if (!d) {
|
|
31
|
-
return;
|
|
32
|
-
}
|
|
33
|
-
if (d.type == ULTIPA.ResultType.RESULT_TYPE_TABLE) {
|
|
34
|
-
let objs = d.asTable().toKV();
|
|
35
|
-
(0, alias_1.printAlias)(d);
|
|
36
|
-
let header = new ULTIPA.Header();
|
|
37
|
-
header.propertyName = "schema";
|
|
38
|
-
if (d.asTable().headers.includes(header)) {
|
|
39
|
-
let schemeMap = {};
|
|
40
|
-
objs.forEach((n) => {
|
|
41
|
-
if (!schemeMap[n.schema]) {
|
|
42
|
-
schemeMap[n.schema] = [];
|
|
43
|
-
}
|
|
44
|
-
schemeMap[n.schema].push(n);
|
|
45
|
-
});
|
|
46
|
-
for (const schema in schemeMap) {
|
|
47
|
-
console.log(` @${schema}`);
|
|
48
|
-
console.table(schemeMap[schema]);
|
|
49
|
-
}
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
console.table(objs);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.printTable = printTable;
|
|
56
|
-
//# sourceMappingURL=table.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../src/printers/table.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,uDAAwC;AACxC,mCAAoC;AAGpC,SAAgB,UAAU,CAAC,CAAmB;IAC1C,IAAI,CAAC,CAAC,EAAE;QACJ,OAAM;KACT;IACD,IAAI,CAAC,CAAC,IAAI,IAAI,MAAM,CAAC,UAAU,CAAC,iBAAiB,EAAE;QAC/C,IAAI,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC,IAAI,EAAE,CAAA;QAC7B,IAAA,kBAAU,EAAC,CAAC,CAAC,CAAA;QACb,IAAI,MAAM,GAAG,IAAI,MAAM,CAAC,MAAM,EAAE,CAAA;QAChC,MAAM,CAAC,YAAY,GAAG,QAAQ,CAAA;QAC9B,IAAI,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;YACtC,IAAI,SAAS,GAAQ,EAAE,CAAA;YACvB,IAAI,CAAC,OAAO,CAAC,CAAC,CAAM,EAAE,EAAE;gBACpB,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE;oBACtB,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAA;iBAC3B;gBACD,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;YAC/B,CAAC,CAAC,CAAC;YACH,KAAK,MAAM,MAAM,IAAI,SAAS,EAAE;gBAC5B,OAAO,CAAC,GAAG,CAAC,KAAK,MAAM,EAAE,CAAC,CAAA;gBAC1B,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAA;aACnC;YACD,OAAM;SACT;QACD,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;KACtB;AACL,CAAC;AAzBD,gCAyBC"}
|
package/dist/proto/tmp.js
DELETED
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
-
'use strict';
|
|
3
|
-
var grpc = require('@grpc/grpc-js');
|
|
4
|
-
var src_proto_ultipa_pb = require('../../src/proto/ultipa_pb.js');
|
|
5
|
-
function serialize_ultipa_AuthenticateReply(arg) {
|
|
6
|
-
if (!(arg instanceof src_proto_ultipa_pb.AuthenticateReply)) {
|
|
7
|
-
throw new Error('Expected argument of type ultipa.AuthenticateReply');
|
|
8
|
-
}
|
|
9
|
-
return Buffer.from(arg.serializeBinary());
|
|
10
|
-
}
|
|
11
|
-
function deserialize_ultipa_AuthenticateReply(buffer_arg) {
|
|
12
|
-
return src_proto_ultipa_pb.AuthenticateReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
13
|
-
}
|
|
14
|
-
function serialize_ultipa_AuthenticateRequest(arg) {
|
|
15
|
-
if (!(arg instanceof src_proto_ultipa_pb.AuthenticateRequest)) {
|
|
16
|
-
throw new Error('Expected argument of type ultipa.AuthenticateRequest');
|
|
17
|
-
}
|
|
18
|
-
return Buffer.from(arg.serializeBinary());
|
|
19
|
-
}
|
|
20
|
-
function deserialize_ultipa_AuthenticateRequest(buffer_arg) {
|
|
21
|
-
return src_proto_ultipa_pb.AuthenticateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
22
|
-
}
|
|
23
|
-
function serialize_ultipa_DownloadFileReply(arg) {
|
|
24
|
-
if (!(arg instanceof src_proto_ultipa_pb.DownloadFileReply)) {
|
|
25
|
-
throw new Error('Expected argument of type ultipa.DownloadFileReply');
|
|
26
|
-
}
|
|
27
|
-
return Buffer.from(arg.serializeBinary());
|
|
28
|
-
}
|
|
29
|
-
function deserialize_ultipa_DownloadFileReply(buffer_arg) {
|
|
30
|
-
return src_proto_ultipa_pb.DownloadFileReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
31
|
-
}
|
|
32
|
-
function serialize_ultipa_DownloadFileRequest(arg) {
|
|
33
|
-
if (!(arg instanceof src_proto_ultipa_pb.DownloadFileRequest)) {
|
|
34
|
-
throw new Error('Expected argument of type ultipa.DownloadFileRequest');
|
|
35
|
-
}
|
|
36
|
-
return Buffer.from(arg.serializeBinary());
|
|
37
|
-
}
|
|
38
|
-
function deserialize_ultipa_DownloadFileRequest(buffer_arg) {
|
|
39
|
-
return src_proto_ultipa_pb.DownloadFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
40
|
-
}
|
|
41
|
-
function serialize_ultipa_ExportReply(arg) {
|
|
42
|
-
if (!(arg instanceof src_proto_ultipa_pb.ExportReply)) {
|
|
43
|
-
throw new Error('Expected argument of type ultipa.ExportReply');
|
|
44
|
-
}
|
|
45
|
-
return Buffer.from(arg.serializeBinary());
|
|
46
|
-
}
|
|
47
|
-
function deserialize_ultipa_ExportReply(buffer_arg) {
|
|
48
|
-
return src_proto_ultipa_pb.ExportReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
-
}
|
|
50
|
-
function serialize_ultipa_ExportRequest(arg) {
|
|
51
|
-
if (!(arg instanceof src_proto_ultipa_pb.ExportRequest)) {
|
|
52
|
-
throw new Error('Expected argument of type ultipa.ExportRequest');
|
|
53
|
-
}
|
|
54
|
-
return Buffer.from(arg.serializeBinary());
|
|
55
|
-
}
|
|
56
|
-
function deserialize_ultipa_ExportRequest(buffer_arg) {
|
|
57
|
-
return src_proto_ultipa_pb.ExportRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
58
|
-
}
|
|
59
|
-
function serialize_ultipa_HelloUltipaReply(arg) {
|
|
60
|
-
if (!(arg instanceof src_proto_ultipa_pb.HelloUltipaReply)) {
|
|
61
|
-
throw new Error('Expected argument of type ultipa.HelloUltipaReply');
|
|
62
|
-
}
|
|
63
|
-
return Buffer.from(arg.serializeBinary());
|
|
64
|
-
}
|
|
65
|
-
function deserialize_ultipa_HelloUltipaReply(buffer_arg) {
|
|
66
|
-
return src_proto_ultipa_pb.HelloUltipaReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
67
|
-
}
|
|
68
|
-
function serialize_ultipa_HelloUltipaRequest(arg) {
|
|
69
|
-
if (!(arg instanceof src_proto_ultipa_pb.HelloUltipaRequest)) {
|
|
70
|
-
throw new Error('Expected argument of type ultipa.HelloUltipaRequest');
|
|
71
|
-
}
|
|
72
|
-
return Buffer.from(arg.serializeBinary());
|
|
73
|
-
}
|
|
74
|
-
function deserialize_ultipa_HelloUltipaRequest(buffer_arg) {
|
|
75
|
-
return src_proto_ultipa_pb.HelloUltipaRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
76
|
-
}
|
|
77
|
-
function serialize_ultipa_InsertEdgesReply(arg) {
|
|
78
|
-
if (!(arg instanceof src_proto_ultipa_pb.InsertEdgesReply)) {
|
|
79
|
-
throw new Error('Expected argument of type ultipa.InsertEdgesReply');
|
|
80
|
-
}
|
|
81
|
-
return Buffer.from(arg.serializeBinary());
|
|
82
|
-
}
|
|
83
|
-
function deserialize_ultipa_InsertEdgesReply(buffer_arg) {
|
|
84
|
-
return src_proto_ultipa_pb.InsertEdgesReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
85
|
-
}
|
|
86
|
-
function serialize_ultipa_InsertEdgesRequest(arg) {
|
|
87
|
-
if (!(arg instanceof src_proto_ultipa_pb.InsertEdgesRequest)) {
|
|
88
|
-
throw new Error('Expected argument of type ultipa.InsertEdgesRequest');
|
|
89
|
-
}
|
|
90
|
-
return Buffer.from(arg.serializeBinary());
|
|
91
|
-
}
|
|
92
|
-
function deserialize_ultipa_InsertEdgesRequest(buffer_arg) {
|
|
93
|
-
return src_proto_ultipa_pb.InsertEdgesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
94
|
-
}
|
|
95
|
-
function serialize_ultipa_InsertNodesReply(arg) {
|
|
96
|
-
if (!(arg instanceof src_proto_ultipa_pb.InsertNodesReply)) {
|
|
97
|
-
throw new Error('Expected argument of type ultipa.InsertNodesReply');
|
|
98
|
-
}
|
|
99
|
-
return Buffer.from(arg.serializeBinary());
|
|
100
|
-
}
|
|
101
|
-
function deserialize_ultipa_InsertNodesReply(buffer_arg) {
|
|
102
|
-
return src_proto_ultipa_pb.InsertNodesReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
103
|
-
}
|
|
104
|
-
function serialize_ultipa_InsertNodesRequest(arg) {
|
|
105
|
-
if (!(arg instanceof src_proto_ultipa_pb.InsertNodesRequest)) {
|
|
106
|
-
throw new Error('Expected argument of type ultipa.InsertNodesRequest');
|
|
107
|
-
}
|
|
108
|
-
return Buffer.from(arg.serializeBinary());
|
|
109
|
-
}
|
|
110
|
-
function deserialize_ultipa_InsertNodesRequest(buffer_arg) {
|
|
111
|
-
return src_proto_ultipa_pb.InsertNodesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
112
|
-
}
|
|
113
|
-
function serialize_ultipa_InstallAlgoReply(arg) {
|
|
114
|
-
if (!(arg instanceof src_proto_ultipa_pb.InstallAlgoReply)) {
|
|
115
|
-
throw new Error('Expected argument of type ultipa.InstallAlgoReply');
|
|
116
|
-
}
|
|
117
|
-
return Buffer.from(arg.serializeBinary());
|
|
118
|
-
}
|
|
119
|
-
function deserialize_ultipa_InstallAlgoReply(buffer_arg) {
|
|
120
|
-
return src_proto_ultipa_pb.InstallAlgoReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
121
|
-
}
|
|
122
|
-
function serialize_ultipa_InstallAlgoRequest(arg) {
|
|
123
|
-
if (!(arg instanceof src_proto_ultipa_pb.InstallAlgoRequest)) {
|
|
124
|
-
throw new Error('Expected argument of type ultipa.InstallAlgoRequest');
|
|
125
|
-
}
|
|
126
|
-
return Buffer.from(arg.serializeBinary());
|
|
127
|
-
}
|
|
128
|
-
function deserialize_ultipa_InstallAlgoRequest(buffer_arg) {
|
|
129
|
-
return src_proto_ultipa_pb.InstallAlgoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
130
|
-
}
|
|
131
|
-
function serialize_ultipa_QueryReply(arg) {
|
|
132
|
-
if (!(arg instanceof src_proto_ultipa_pb.QueryReply)) {
|
|
133
|
-
throw new Error('Expected argument of type ultipa.QueryReply');
|
|
134
|
-
}
|
|
135
|
-
return Buffer.from(arg.serializeBinary());
|
|
136
|
-
}
|
|
137
|
-
function deserialize_ultipa_QueryReply(buffer_arg) {
|
|
138
|
-
return src_proto_ultipa_pb.QueryReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
139
|
-
}
|
|
140
|
-
function serialize_ultipa_QueryRequest(arg) {
|
|
141
|
-
if (!(arg instanceof src_proto_ultipa_pb.QueryRequest)) {
|
|
142
|
-
throw new Error('Expected argument of type ultipa.QueryRequest');
|
|
143
|
-
}
|
|
144
|
-
return Buffer.from(arg.serializeBinary());
|
|
145
|
-
}
|
|
146
|
-
function deserialize_ultipa_QueryRequest(buffer_arg) {
|
|
147
|
-
return src_proto_ultipa_pb.QueryRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
|
-
}
|
|
149
|
-
function serialize_ultipa_RollbackAlgoReply(arg) {
|
|
150
|
-
if (!(arg instanceof src_proto_ultipa_pb.RollbackAlgoReply)) {
|
|
151
|
-
throw new Error('Expected argument of type ultipa.RollbackAlgoReply');
|
|
152
|
-
}
|
|
153
|
-
return Buffer.from(arg.serializeBinary());
|
|
154
|
-
}
|
|
155
|
-
function deserialize_ultipa_RollbackAlgoReply(buffer_arg) {
|
|
156
|
-
return src_proto_ultipa_pb.RollbackAlgoReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
157
|
-
}
|
|
158
|
-
function serialize_ultipa_RollbackAlgoRequest(arg) {
|
|
159
|
-
if (!(arg instanceof src_proto_ultipa_pb.RollbackAlgoRequest)) {
|
|
160
|
-
throw new Error('Expected argument of type ultipa.RollbackAlgoRequest');
|
|
161
|
-
}
|
|
162
|
-
return Buffer.from(arg.serializeBinary());
|
|
163
|
-
}
|
|
164
|
-
function deserialize_ultipa_RollbackAlgoRequest(buffer_arg) {
|
|
165
|
-
return src_proto_ultipa_pb.RollbackAlgoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
166
|
-
}
|
|
167
|
-
function serialize_ultipa_UninstallAlgoReply(arg) {
|
|
168
|
-
if (!(arg instanceof src_proto_ultipa_pb.UninstallAlgoReply)) {
|
|
169
|
-
throw new Error('Expected argument of type ultipa.UninstallAlgoReply');
|
|
170
|
-
}
|
|
171
|
-
return Buffer.from(arg.serializeBinary());
|
|
172
|
-
}
|
|
173
|
-
function deserialize_ultipa_UninstallAlgoReply(buffer_arg) {
|
|
174
|
-
return src_proto_ultipa_pb.UninstallAlgoReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
175
|
-
}
|
|
176
|
-
function serialize_ultipa_UninstallAlgoRequest(arg) {
|
|
177
|
-
if (!(arg instanceof src_proto_ultipa_pb.UninstallAlgoRequest)) {
|
|
178
|
-
throw new Error('Expected argument of type ultipa.UninstallAlgoRequest');
|
|
179
|
-
}
|
|
180
|
-
return Buffer.from(arg.serializeBinary());
|
|
181
|
-
}
|
|
182
|
-
function deserialize_ultipa_UninstallAlgoRequest(buffer_arg) {
|
|
183
|
-
return src_proto_ultipa_pb.UninstallAlgoRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
184
|
-
}
|
|
185
|
-
function serialize_ultipa_UserSettingReply(arg) {
|
|
186
|
-
if (!(arg instanceof src_proto_ultipa_pb.UserSettingReply)) {
|
|
187
|
-
throw new Error('Expected argument of type ultipa.UserSettingReply');
|
|
188
|
-
}
|
|
189
|
-
return Buffer.from(arg.serializeBinary());
|
|
190
|
-
}
|
|
191
|
-
function deserialize_ultipa_UserSettingReply(buffer_arg) {
|
|
192
|
-
return src_proto_ultipa_pb.UserSettingReply.deserializeBinary(new Uint8Array(buffer_arg));
|
|
193
|
-
}
|
|
194
|
-
function serialize_ultipa_UserSettingRequest(arg) {
|
|
195
|
-
if (!(arg instanceof src_proto_ultipa_pb.UserSettingRequest)) {
|
|
196
|
-
throw new Error('Expected argument of type ultipa.UserSettingRequest');
|
|
197
|
-
}
|
|
198
|
-
return Buffer.from(arg.serializeBinary());
|
|
199
|
-
}
|
|
200
|
-
function deserialize_ultipa_UserSettingRequest(buffer_arg) {
|
|
201
|
-
return src_proto_ultipa_pb.UserSettingRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
202
|
-
}
|
|
203
|
-
// The ultipa service definition.
|
|
204
|
-
var UltipaRpcsService = exports.UltipaRpcsService = {
|
|
205
|
-
// Sends a greeting
|
|
206
|
-
sayHello: {
|
|
207
|
-
path: '/ultipa.UltipaRpcs/SayHello',
|
|
208
|
-
requestStream: false,
|
|
209
|
-
responseStream: false,
|
|
210
|
-
requestType: src_proto_ultipa_pb.HelloUltipaRequest,
|
|
211
|
-
responseType: src_proto_ultipa_pb.HelloUltipaReply,
|
|
212
|
-
requestSerialize: serialize_ultipa_HelloUltipaRequest,
|
|
213
|
-
requestDeserialize: deserialize_ultipa_HelloUltipaRequest,
|
|
214
|
-
responseSerialize: serialize_ultipa_HelloUltipaReply,
|
|
215
|
-
responseDeserialize: deserialize_ultipa_HelloUltipaReply,
|
|
216
|
-
},
|
|
217
|
-
// Query
|
|
218
|
-
query: {
|
|
219
|
-
path: '/ultipa.UltipaRpcs/Query',
|
|
220
|
-
requestStream: false,
|
|
221
|
-
responseStream: true,
|
|
222
|
-
requestType: src_proto_ultipa_pb.QueryRequest,
|
|
223
|
-
responseType: src_proto_ultipa_pb.QueryReply,
|
|
224
|
-
requestSerialize: serialize_ultipa_QueryRequest,
|
|
225
|
-
requestDeserialize: deserialize_ultipa_QueryRequest,
|
|
226
|
-
responseSerialize: serialize_ultipa_QueryReply,
|
|
227
|
-
responseDeserialize: deserialize_ultipa_QueryReply,
|
|
228
|
-
},
|
|
229
|
-
// 插入点
|
|
230
|
-
insertNodes: {
|
|
231
|
-
path: '/ultipa.UltipaRpcs/InsertNodes',
|
|
232
|
-
requestStream: false,
|
|
233
|
-
responseStream: false,
|
|
234
|
-
requestType: src_proto_ultipa_pb.InsertNodesRequest,
|
|
235
|
-
responseType: src_proto_ultipa_pb.InsertNodesReply,
|
|
236
|
-
requestSerialize: serialize_ultipa_InsertNodesRequest,
|
|
237
|
-
requestDeserialize: deserialize_ultipa_InsertNodesRequest,
|
|
238
|
-
responseSerialize: serialize_ultipa_InsertNodesReply,
|
|
239
|
-
responseDeserialize: deserialize_ultipa_InsertNodesReply,
|
|
240
|
-
},
|
|
241
|
-
// 插入边
|
|
242
|
-
insertEdges: {
|
|
243
|
-
path: '/ultipa.UltipaRpcs/InsertEdges',
|
|
244
|
-
requestStream: false,
|
|
245
|
-
responseStream: false,
|
|
246
|
-
requestType: src_proto_ultipa_pb.InsertEdgesRequest,
|
|
247
|
-
responseType: src_proto_ultipa_pb.InsertEdgesReply,
|
|
248
|
-
requestSerialize: serialize_ultipa_InsertEdgesRequest,
|
|
249
|
-
requestDeserialize: deserialize_ultipa_InsertEdgesRequest,
|
|
250
|
-
responseSerialize: serialize_ultipa_InsertEdgesReply,
|
|
251
|
-
responseDeserialize: deserialize_ultipa_InsertEdgesReply,
|
|
252
|
-
},
|
|
253
|
-
};
|
|
254
|
-
exports.UltipaRpcsClient = grpc.makeGenericClientConstructor(UltipaRpcsService);
|
|
255
|
-
var UltipaControlsService = exports.UltipaControlsService = {
|
|
256
|
-
// Sends a greeting
|
|
257
|
-
sayHello: {
|
|
258
|
-
path: '/ultipa.UltipaControls/SayHello',
|
|
259
|
-
requestStream: false,
|
|
260
|
-
responseStream: false,
|
|
261
|
-
requestType: src_proto_ultipa_pb.HelloUltipaRequest,
|
|
262
|
-
responseType: src_proto_ultipa_pb.HelloUltipaReply,
|
|
263
|
-
requestSerialize: serialize_ultipa_HelloUltipaRequest,
|
|
264
|
-
requestDeserialize: deserialize_ultipa_HelloUltipaRequest,
|
|
265
|
-
responseSerialize: serialize_ultipa_HelloUltipaReply,
|
|
266
|
-
responseDeserialize: deserialize_ultipa_HelloUltipaReply,
|
|
267
|
-
},
|
|
268
|
-
// 用户设置(用于存储用户配置信息,用户自主控制)
|
|
269
|
-
userSetting: {
|
|
270
|
-
path: '/ultipa.UltipaControls/UserSetting',
|
|
271
|
-
requestStream: false,
|
|
272
|
-
responseStream: false,
|
|
273
|
-
requestType: src_proto_ultipa_pb.UserSettingRequest,
|
|
274
|
-
responseType: src_proto_ultipa_pb.UserSettingReply,
|
|
275
|
-
requestSerialize: serialize_ultipa_UserSettingRequest,
|
|
276
|
-
requestDeserialize: deserialize_ultipa_UserSettingRequest,
|
|
277
|
-
responseSerialize: serialize_ultipa_UserSettingReply,
|
|
278
|
-
responseDeserialize: deserialize_ultipa_UserSettingReply,
|
|
279
|
-
},
|
|
280
|
-
// query扩展,以下命令在此接口执行执行 top, kill show().* stats
|
|
281
|
-
queryEx: {
|
|
282
|
-
path: '/ultipa.UltipaControls/QueryEx',
|
|
283
|
-
requestStream: false,
|
|
284
|
-
responseStream: true,
|
|
285
|
-
requestType: src_proto_ultipa_pb.QueryRequest,
|
|
286
|
-
responseType: src_proto_ultipa_pb.QueryReply,
|
|
287
|
-
requestSerialize: serialize_ultipa_QueryRequest,
|
|
288
|
-
requestDeserialize: deserialize_ultipa_QueryRequest,
|
|
289
|
-
responseSerialize: serialize_ultipa_QueryReply,
|
|
290
|
-
responseDeserialize: deserialize_ultipa_QueryReply,
|
|
291
|
-
},
|
|
292
|
-
// 导出点,边数据
|
|
293
|
-
export: {
|
|
294
|
-
path: '/ultipa.UltipaControls/Export',
|
|
295
|
-
requestStream: false,
|
|
296
|
-
responseStream: true,
|
|
297
|
-
requestType: src_proto_ultipa_pb.ExportRequest,
|
|
298
|
-
responseType: src_proto_ultipa_pb.ExportReply,
|
|
299
|
-
requestSerialize: serialize_ultipa_ExportRequest,
|
|
300
|
-
requestDeserialize: deserialize_ultipa_ExportRequest,
|
|
301
|
-
responseSerialize: serialize_ultipa_ExportReply,
|
|
302
|
-
responseDeserialize: deserialize_ultipa_ExportReply,
|
|
303
|
-
},
|
|
304
|
-
// 下载算法生成文件
|
|
305
|
-
downloadFile: {
|
|
306
|
-
path: '/ultipa.UltipaControls/DownloadFile',
|
|
307
|
-
requestStream: false,
|
|
308
|
-
responseStream: true,
|
|
309
|
-
requestType: src_proto_ultipa_pb.DownloadFileRequest,
|
|
310
|
-
responseType: src_proto_ultipa_pb.DownloadFileReply,
|
|
311
|
-
requestSerialize: serialize_ultipa_DownloadFileRequest,
|
|
312
|
-
requestDeserialize: deserialize_ultipa_DownloadFileRequest,
|
|
313
|
-
responseSerialize: serialize_ultipa_DownloadFileReply,
|
|
314
|
-
responseDeserialize: deserialize_ultipa_DownloadFileReply,
|
|
315
|
-
},
|
|
316
|
-
// 算法安装
|
|
317
|
-
installAlgo: {
|
|
318
|
-
path: '/ultipa.UltipaControls/InstallAlgo',
|
|
319
|
-
requestStream: true,
|
|
320
|
-
responseStream: false,
|
|
321
|
-
requestType: src_proto_ultipa_pb.InstallAlgoRequest,
|
|
322
|
-
responseType: src_proto_ultipa_pb.InstallAlgoReply,
|
|
323
|
-
requestSerialize: serialize_ultipa_InstallAlgoRequest,
|
|
324
|
-
requestDeserialize: deserialize_ultipa_InstallAlgoRequest,
|
|
325
|
-
responseSerialize: serialize_ultipa_InstallAlgoReply,
|
|
326
|
-
responseDeserialize: deserialize_ultipa_InstallAlgoReply,
|
|
327
|
-
},
|
|
328
|
-
// 算法卸载
|
|
329
|
-
uninstallAlgo: {
|
|
330
|
-
path: '/ultipa.UltipaControls/UninstallAlgo',
|
|
331
|
-
requestStream: false,
|
|
332
|
-
responseStream: false,
|
|
333
|
-
requestType: src_proto_ultipa_pb.UninstallAlgoRequest,
|
|
334
|
-
responseType: src_proto_ultipa_pb.UninstallAlgoReply,
|
|
335
|
-
requestSerialize: serialize_ultipa_UninstallAlgoRequest,
|
|
336
|
-
requestDeserialize: deserialize_ultipa_UninstallAlgoRequest,
|
|
337
|
-
responseSerialize: serialize_ultipa_UninstallAlgoReply,
|
|
338
|
-
responseDeserialize: deserialize_ultipa_UninstallAlgoReply,
|
|
339
|
-
},
|
|
340
|
-
// 算法回退
|
|
341
|
-
rollbackAlgo: {
|
|
342
|
-
path: '/ultipa.UltipaControls/RollbackAlgo',
|
|
343
|
-
requestStream: false,
|
|
344
|
-
responseStream: false,
|
|
345
|
-
requestType: src_proto_ultipa_pb.RollbackAlgoRequest,
|
|
346
|
-
responseType: src_proto_ultipa_pb.RollbackAlgoReply,
|
|
347
|
-
requestSerialize: serialize_ultipa_RollbackAlgoRequest,
|
|
348
|
-
requestDeserialize: deserialize_ultipa_RollbackAlgoRequest,
|
|
349
|
-
responseSerialize: serialize_ultipa_RollbackAlgoReply,
|
|
350
|
-
responseDeserialize: deserialize_ultipa_RollbackAlgoReply,
|
|
351
|
-
},
|
|
352
|
-
// 仅鉴权
|
|
353
|
-
authenticate: {
|
|
354
|
-
path: '/ultipa.UltipaControls/Authenticate',
|
|
355
|
-
requestStream: false,
|
|
356
|
-
responseStream: false,
|
|
357
|
-
requestType: src_proto_ultipa_pb.AuthenticateRequest,
|
|
358
|
-
responseType: src_proto_ultipa_pb.AuthenticateReply,
|
|
359
|
-
requestSerialize: serialize_ultipa_AuthenticateRequest,
|
|
360
|
-
requestDeserialize: deserialize_ultipa_AuthenticateRequest,
|
|
361
|
-
responseSerialize: serialize_ultipa_AuthenticateReply,
|
|
362
|
-
responseDeserialize: deserialize_ultipa_AuthenticateReply,
|
|
363
|
-
},
|
|
364
|
-
};
|
|
365
|
-
exports.UltipaControlsClient = grpc.makeGenericClientConstructor(UltipaControlsService);
|
|
366
|
-
//# sourceMappingURL=ultipa_grpc_pb.js.map
|