@ultipa-graph/ultipa-driver 5.1.5-s5.2 → 6.0.4

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.
Files changed (260) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -0
  3. package/dist/client.d.ts +196 -0
  4. package/dist/client.js +394 -0
  5. package/dist/config.d.ts +65 -0
  6. package/dist/config.js +135 -0
  7. package/dist/connection.d.ts +30 -0
  8. package/dist/connection.js +190 -0
  9. package/dist/errors.d.ts +99 -0
  10. package/dist/errors.js +237 -0
  11. package/dist/index.d.ts +14 -5
  12. package/dist/index.js +88 -39
  13. package/dist/printers.d.ts +33 -0
  14. package/dist/printers.js +312 -0
  15. package/dist/proto/gqldb.proto +689 -0
  16. package/dist/response.d.ts +256 -0
  17. package/dist/response.js +723 -0
  18. package/dist/services/admin-service.d.ts +44 -0
  19. package/dist/services/admin-service.js +168 -0
  20. package/dist/services/bulk-import-service.d.ts +35 -0
  21. package/dist/services/bulk-import-service.js +105 -0
  22. package/dist/services/converters.d.ts +57 -0
  23. package/dist/services/converters.js +254 -0
  24. package/dist/services/data-service.d.ts +44 -0
  25. package/dist/services/data-service.js +206 -0
  26. package/dist/services/graph-service.d.ts +32 -0
  27. package/dist/services/graph-service.js +127 -0
  28. package/dist/services/health-service.d.ts +50 -0
  29. package/dist/services/health-service.js +78 -0
  30. package/dist/services/index.d.ts +13 -0
  31. package/dist/services/index.js +30 -0
  32. package/dist/services/query-service.d.ts +39 -0
  33. package/dist/services/query-service.js +112 -0
  34. package/dist/services/service-context.d.ts +39 -0
  35. package/dist/services/service-context.js +73 -0
  36. package/dist/services/session-service.d.ts +24 -0
  37. package/dist/services/session-service.js +66 -0
  38. package/dist/services/transaction-service.d.ts +33 -0
  39. package/dist/services/transaction-service.js +100 -0
  40. package/dist/services.d.ts +28 -0
  41. package/dist/services.js +122 -0
  42. package/dist/session.d.ts +45 -0
  43. package/dist/session.js +75 -0
  44. package/dist/transaction.d.ts +42 -0
  45. package/dist/transaction.js +89 -0
  46. package/dist/types/bulk_import.d.ts +53 -0
  47. package/dist/types/bulk_import.js +6 -0
  48. package/dist/types/data_types.d.ts +116 -0
  49. package/dist/types/data_types.js +122 -0
  50. package/dist/types/enums.d.ts +59 -0
  51. package/dist/types/enums.js +67 -0
  52. package/dist/types/graph_models.d.ts +54 -0
  53. package/dist/types/graph_models.js +6 -0
  54. package/dist/types/index.d.ts +11 -5
  55. package/dist/types/index.js +36 -37
  56. package/dist/types/metadata.d.ts +107 -0
  57. package/dist/types/metadata.js +6 -0
  58. package/dist/types/schema.d.ts +31 -0
  59. package/dist/types/schema.js +6 -0
  60. package/dist/types/typed_value.d.ts +25 -0
  61. package/dist/types/typed_value.js +1176 -0
  62. package/dist/types/wrappers.d.ts +23 -0
  63. package/dist/types/wrappers.js +39 -0
  64. package/dist/types.d.ts +7 -0
  65. package/dist/types.js +24 -0
  66. package/package.json +50 -63
  67. package/dist/connection/connection.final.d.ts +0 -14
  68. package/dist/connection/connection.final.js +0 -94
  69. package/dist/connection/connection.final.js.map +0 -1
  70. package/dist/connection/connection.pool.d.ts +0 -21
  71. package/dist/connection/connection.pool.js +0 -103
  72. package/dist/connection/connection.pool.js.map +0 -1
  73. package/dist/connection/extra/algos/algo.extra.d.ts +0 -34
  74. package/dist/connection/extra/algos/algo.extra.js +0 -69
  75. package/dist/connection/extra/algos/algo.extra.js.map +0 -1
  76. package/dist/connection/extra/algos/algo.utils.d.ts +0 -3
  77. package/dist/connection/extra/algos/algo.utils.js +0 -54
  78. package/dist/connection/extra/algos/algo.utils.js.map +0 -1
  79. package/dist/connection/extra/algos/community.d.ts +0 -27
  80. package/dist/connection/extra/algos/community.js +0 -76
  81. package/dist/connection/extra/algos/community.js.map +0 -1
  82. package/dist/connection/extra/algos/degrees.d.ts +0 -10
  83. package/dist/connection/extra/algos/degrees.js +0 -24
  84. package/dist/connection/extra/algos/degrees.js.map +0 -1
  85. package/dist/connection/extra/algos/embedding.d.ts +0 -13
  86. package/dist/connection/extra/algos/embedding.js +0 -33
  87. package/dist/connection/extra/algos/embedding.js.map +0 -1
  88. package/dist/connection/extra/algos/index.d.ts +0 -5
  89. package/dist/connection/extra/algos/index.js +0 -14
  90. package/dist/connection/extra/algos/index.js.map +0 -1
  91. package/dist/connection/extra/base.extra.d.ts +0 -18
  92. package/dist/connection/extra/base.extra.js +0 -111
  93. package/dist/connection/extra/base.extra.js.map +0 -1
  94. package/dist/connection/extra/batch.insert.extra.d.ts +0 -58
  95. package/dist/connection/extra/batch.insert.extra.js +0 -354
  96. package/dist/connection/extra/batch.insert.extra.js.map +0 -1
  97. package/dist/connection/extra/connection.base.d.ts +0 -112
  98. package/dist/connection/extra/connection.base.js +0 -530
  99. package/dist/connection/extra/connection.base.js.map +0 -1
  100. package/dist/connection/extra/connection.d.ts +0 -17
  101. package/dist/connection/extra/connection.js +0 -44
  102. package/dist/connection/extra/connection.js.map +0 -1
  103. package/dist/connection/extra/graph.extra.d.ts +0 -54
  104. package/dist/connection/extra/graph.extra.js +0 -151
  105. package/dist/connection/extra/graph.extra.js.map +0 -1
  106. package/dist/connection/extra/hdc.extra.d.ts +0 -89
  107. package/dist/connection/extra/hdc.extra.js +0 -322
  108. package/dist/connection/extra/hdc.extra.js.map +0 -1
  109. package/dist/connection/extra/index.extra.d.ts +0 -102
  110. package/dist/connection/extra/index.extra.js +0 -210
  111. package/dist/connection/extra/index.extra.js.map +0 -1
  112. package/dist/connection/extra/job.extra.d.ts +0 -32
  113. package/dist/connection/extra/job.extra.js +0 -122
  114. package/dist/connection/extra/job.extra.js.map +0 -1
  115. package/dist/connection/extra/meta.extra.d.ts +0 -36
  116. package/dist/connection/extra/meta.extra.js +0 -123
  117. package/dist/connection/extra/meta.extra.js.map +0 -1
  118. package/dist/connection/extra/policy.extra.d.ts +0 -32
  119. package/dist/connection/extra/policy.extra.js +0 -114
  120. package/dist/connection/extra/policy.extra.js.map +0 -1
  121. package/dist/connection/extra/privilege.extra.d.ts +0 -8
  122. package/dist/connection/extra/privilege.extra.js +0 -20
  123. package/dist/connection/extra/privilege.extra.js.map +0 -1
  124. package/dist/connection/extra/property.extra.d.ts +0 -66
  125. package/dist/connection/extra/property.extra.js +0 -190
  126. package/dist/connection/extra/property.extra.js.map +0 -1
  127. package/dist/connection/extra/schema.extra.d.ts +0 -108
  128. package/dist/connection/extra/schema.extra.js +0 -253
  129. package/dist/connection/extra/schema.extra.js.map +0 -1
  130. package/dist/connection/extra/search.extra.d.ts +0 -12
  131. package/dist/connection/extra/search.extra.js +0 -117
  132. package/dist/connection/extra/search.extra.js.map +0 -1
  133. package/dist/connection/extra/task.extra.d.ts +0 -24
  134. package/dist/connection/extra/task.extra.js +0 -107
  135. package/dist/connection/extra/task.extra.js.map +0 -1
  136. package/dist/connection/extra/user.extra.d.ts +0 -28
  137. package/dist/connection/extra/user.extra.js +0 -91
  138. package/dist/connection/extra/user.extra.js.map +0 -1
  139. package/dist/connection/extra/user.privilege.extra.d.ts +0 -64
  140. package/dist/connection/extra/user.privilege.extra.js +0 -273
  141. package/dist/connection/extra/user.privilege.extra.js.map +0 -1
  142. package/dist/connection/index.d.ts +0 -5
  143. package/dist/connection/index.js +0 -13
  144. package/dist/connection/index.js.map +0 -1
  145. package/dist/connection/network.manager.d.ts +0 -28
  146. package/dist/connection/network.manager.js +0 -179
  147. package/dist/connection/network.manager.js.map +0 -1
  148. package/dist/index.js.map +0 -1
  149. package/dist/printers/alias.d.ts +0 -2
  150. package/dist/printers/alias.js +0 -39
  151. package/dist/printers/alias.js.map +0 -1
  152. package/dist/printers/any.d.ts +0 -2
  153. package/dist/printers/any.js +0 -63
  154. package/dist/printers/any.js.map +0 -1
  155. package/dist/printers/array.aio.d.ts +0 -3
  156. package/dist/printers/array.aio.js +0 -259
  157. package/dist/printers/array.aio.js.map +0 -1
  158. package/dist/printers/common.d.ts +0 -0
  159. package/dist/printers/common.js +0 -1
  160. package/dist/printers/common.js.map +0 -1
  161. package/dist/printers/edge.d.ts +0 -5
  162. package/dist/printers/edge.js +0 -78
  163. package/dist/printers/edge.js.map +0 -1
  164. package/dist/printers/explain.plan.d.ts +0 -2
  165. package/dist/printers/explain.plan.js +0 -46
  166. package/dist/printers/explain.plan.js.map +0 -1
  167. package/dist/printers/index.d.ts +0 -24
  168. package/dist/printers/index.js +0 -43
  169. package/dist/printers/index.js.map +0 -1
  170. package/dist/printers/node.d.ts +0 -5
  171. package/dist/printers/node.js +0 -77
  172. package/dist/printers/node.js.map +0 -1
  173. package/dist/printers/path.d.ts +0 -3
  174. package/dist/printers/path.js +0 -62
  175. package/dist/printers/path.js.map +0 -1
  176. package/dist/printers/status.d.ts +0 -3
  177. package/dist/printers/status.js +0 -68
  178. package/dist/printers/status.js.map +0 -1
  179. package/dist/printers/table.d.ts +0 -2
  180. package/dist/printers/table.js +0 -56
  181. package/dist/printers/table.js.map +0 -1
  182. package/dist/proto/tmp.js +0 -366
  183. package/dist/proto/ultipa_grpc_pb.d.ts +0 -258
  184. package/dist/proto/ultipa_grpc_pb.js +0 -366
  185. package/dist/proto/ultipa_grpc_pb.js.map +0 -1
  186. package/dist/proto/ultipa_pb.d.ts +0 -1
  187. package/dist/proto/ultipa_pb.js +0 -12119
  188. package/dist/proto/ultipa_pb.js.map +0 -1
  189. package/dist/types/index.js.map +0 -1
  190. package/dist/types/types.algos.params.d.ts +0 -545
  191. package/dist/types/types.algos.params.js +0 -16
  192. package/dist/types/types.algos.params.js.map +0 -1
  193. package/dist/types/types.d.ts +0 -1214
  194. package/dist/types/types.extra.d.ts +0 -146
  195. package/dist/types/types.extra.js +0 -27
  196. package/dist/types/types.extra.js.map +0 -1
  197. package/dist/types/types.js +0 -1606
  198. package/dist/types/types.js.map +0 -1
  199. package/dist/types/util.d.ts +0 -15
  200. package/dist/types/util.js +0 -136
  201. package/dist/types/util.js.map +0 -1
  202. package/dist/utils/common.d.ts +0 -3
  203. package/dist/utils/common.js +0 -22
  204. package/dist/utils/common.js.map +0 -1
  205. package/dist/utils/config.d.ts +0 -3
  206. package/dist/utils/config.js +0 -7
  207. package/dist/utils/config.js.map +0 -1
  208. package/dist/utils/format.d.ts +0 -45
  209. package/dist/utils/format.js +0 -879
  210. package/dist/utils/format.js.map +0 -1
  211. package/dist/utils/index.d.ts +0 -10
  212. package/dist/utils/index.js +0 -30
  213. package/dist/utils/index.js.map +0 -1
  214. package/dist/utils/params.validate.d.ts +0 -4
  215. package/dist/utils/params.validate.js +0 -14
  216. package/dist/utils/params.validate.js.map +0 -1
  217. package/dist/utils/property.d.ts +0 -24
  218. package/dist/utils/property.js +0 -203
  219. package/dist/utils/property.js.map +0 -1
  220. package/dist/utils/raft.retry.d.ts +0 -0
  221. package/dist/utils/raft.retry.js +0 -1
  222. package/dist/utils/raft.retry.js.map +0 -1
  223. package/dist/utils/serialize/commont.d.ts +0 -12
  224. package/dist/utils/serialize/commont.js +0 -46
  225. package/dist/utils/serialize/commont.js.map +0 -1
  226. package/dist/utils/serialize/deserialize.d.ts +0 -10
  227. package/dist/utils/serialize/deserialize.js +0 -288
  228. package/dist/utils/serialize/deserialize.js.map +0 -1
  229. package/dist/utils/serialize/null.d.ts +0 -32
  230. package/dist/utils/serialize/null.js +0 -178
  231. package/dist/utils/serialize/null.js.map +0 -1
  232. package/dist/utils/serialize/serialize.d.ts +0 -10
  233. package/dist/utils/serialize/serialize.js +0 -146
  234. package/dist/utils/serialize/serialize.js.map +0 -1
  235. package/dist/utils/stream.helper.d.ts +0 -10
  236. package/dist/utils/stream.helper.js +0 -71
  237. package/dist/utils/stream.helper.js.map +0 -1
  238. package/dist/utils/time.record.d.ts +0 -15
  239. package/dist/utils/time.record.js +0 -52
  240. package/dist/utils/time.record.js.map +0 -1
  241. package/dist/utils/timezone.d.ts +0 -7
  242. package/dist/utils/timezone.js +0 -21
  243. package/dist/utils/timezone.js.map +0 -1
  244. package/dist/utils/ultipa.datetime.d.ts +0 -14
  245. package/dist/utils/ultipa.datetime.js +0 -160
  246. package/dist/utils/ultipa.datetime.js.map +0 -1
  247. package/dist/utils/uql-maker.d.ts +0 -165
  248. package/dist/utils/uql-maker.js +0 -402
  249. package/dist/utils/uql-maker.js.map +0 -1
  250. package/dist/utils/uql.parse.d.ts +0 -27
  251. package/dist/utils/uql.parse.js +0 -205
  252. package/dist/utils/uql.parse.js.map +0 -1
  253. package/readme.md +0 -65
  254. package/src/proto/build.sh +0 -41
  255. package/src/proto/build_windows.sh +0 -40
  256. package/src/proto/ultipa.proto +0 -531
  257. package/src/proto/ultipa_grpc_pb.d.ts +0 -92
  258. package/src/proto/ultipa_grpc_pb.js +0 -414
  259. package/src/proto/ultipa_pb.d.ts +0 -1983
  260. package/src/proto/ultipa_pb.js +0 -14852
@@ -1,1606 +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.JobResponse = exports.ResponseWithExistCheck = exports.InsertResponse = exports.Response = exports.DataItem = exports.getExplainPlansTreeTopNode = exports.PlanNode = exports.ExplainPlan = exports.Attr = exports.Table = exports.Header = exports.Property = exports.SchemaStats = exports.SchemaStat = exports.Schema = exports.GraphSet = exports.Graph = exports.Path = exports.Edge = exports.Node = exports.Projection = exports.HDCGraph = exports.Process = exports.Job = exports.Privilege = exports.Policy = exports.User = exports.Index = exports.JOB_STATUS = exports.DBType = exports.QueryType = exports.HDCSyncType = exports.PrivilegeLevel = exports.AuthenticateType = exports.ResultType = exports.ErrorCode = exports.Algo = exports.InsertType = exports.UltipaPropertyType = exports.getInsertErrorMessage = exports.InsertErrorMessages = exports.InsertErrorCode = exports.InsertRequestConfig = exports.RequestConfig = exports.UltipaConfig = void 0;
27
- const utils_1 = require("../utils");
28
- const ULTIPA_RPC = __importStar(require("../proto/ultipa_pb"));
29
- let { PropertyType: RRC_PropertyType, ResultType: RRC_ResultType, ErrorCode: RPC_ErrorCode, DBType: RPC_DBType, JOB_STATUS: RPC_JOB_STATUS, FollowerRole: RCP_FollowerRole, ResultType: RPC_ResultType, InsertType: RPC_InsertType, PlanNode: RPC_PlanNode, QueryType: RPC_QueryType } = ULTIPA_RPC;
30
- /**
31
- * Ultipa Configuration is the basic configuration that used for establishing the connections.
32
- */
33
- class UltipaConfig {
34
- /**
35
- * List of host addresses (IPs or URLs)
36
- * - Supports IPv4 and IPv6 addresses
37
- * - Supports URLs (if prefixed with https://, uses secure connection)
38
- * - Required
39
- */
40
- hosts;
41
- /** Username for authentication (Required) */
42
- username;
43
- /** Password for authentication (Required) */
44
- password;
45
- /** Default graph to interact with (Optional) */
46
- defaultGraph;
47
- /** Path string to CRT file, used for SSL connections. */
48
- crt = undefined;
49
- /**
50
- * Password encryption method
51
- * @default "MD5"
52
- */
53
- passwordEncrypt = "MD5";
54
- /**
55
- * Request timeout in seconds
56
- * @default 2147483647
57
- */
58
- timeout = 2147483647;
59
- /**
60
- * Heartbeat interval in milliseconds
61
- * Set to 0 to disable heartbeat
62
- * Used for keeping connection alive
63
- * @default 0
64
- */
65
- heartbeat = 0;
66
- /**
67
- * Maximum receive size in megabytes
68
- * @default 32
69
- */
70
- maxRecvSize = 32;
71
- }
72
- exports.UltipaConfig = UltipaConfig;
73
- /**
74
- * Configuration for each request, can be null
75
- */
76
- class RequestConfig {
77
- /**
78
- * specify graphName, if null will use defaultGraph of UltipaConfiguration
79
- */
80
- graph;
81
- /**
82
- * Operation timeout in seconds
83
- */
84
- timeout;
85
- /**
86
- * Specify the host to execute the request
87
- * */
88
- host;
89
- /**
90
- * request,thread num
91
- */
92
- thread;
93
- /**
94
- * name of time zone,
95
- * default: current time zone.
96
- * e.g. Aisa/Shanghai
97
- */
98
- timezone;
99
- /**
100
- * hour elapse from UTC
101
- * When both `timezone` and `timezoneOffset` are provided, `timezoneOffset` takes precedence.
102
- * Unit: hour. Example:” +08:30”,”-05:00”,“+2”,“-0300”
103
- */
104
- timezoneOffset;
105
- /**
106
- * If true the queryText will be logged.
107
- */
108
- logQueryText = false;
109
- /**
110
- * If true the request info will be logged.
111
- */
112
- withRequestInfo = false;
113
- }
114
- exports.RequestConfig = RequestConfig;
115
- /**
116
- * configuration for insert request. extends RequestConfig,have all RequestConfig property
117
- */
118
- class InsertRequestConfig extends RequestConfig {
119
- /**
120
- * NORMAL,
121
- * OVERWRITE,
122
- * UPSERT
123
- */
124
- insertType = InsertType.NORMAL;
125
- /**
126
- * Return data or not when insert/delete batch. true - not return data, false - return data.
127
- */
128
- silent = true;
129
- }
130
- exports.InsertRequestConfig = InsertRequestConfig;
131
- /**
132
- * The insert error code from server.
133
- */
134
- var InsertErrorCode;
135
- (function (InsertErrorCode) {
136
- InsertErrorCode[InsertErrorCode["ID_NOT_MATCH_UUID"] = 10001] = "ID_NOT_MATCH_UUID";
137
- InsertErrorCode[InsertErrorCode["ID_UUID_NOT_MATCH_SCHEMA"] = 10002] = "ID_UUID_NOT_MATCH_SCHEMA";
138
- InsertErrorCode[InsertErrorCode["FROM_ID_NOT_EXISTED"] = 10003] = "FROM_ID_NOT_EXISTED";
139
- InsertErrorCode[InsertErrorCode["TO_ID_NOT_EXISTED"] = 10004] = "TO_ID_NOT_EXISTED";
140
- InsertErrorCode[InsertErrorCode["ID_LEN"] = 10005] = "ID_LEN";
141
- InsertErrorCode[InsertErrorCode["NOT_NULL"] = 10006] = "NOT_NULL";
142
- InsertErrorCode[InsertErrorCode["UNIQUCHECK"] = 10007] = "UNIQUCHECK";
143
- InsertErrorCode[InsertErrorCode["ID_EMPTY"] = 10008] = "ID_EMPTY";
144
- InsertErrorCode[InsertErrorCode["FROM_ID_EMPTY"] = 10009] = "FROM_ID_EMPTY";
145
- InsertErrorCode[InsertErrorCode["TO_ID_EMPTY"] = 10010] = "TO_ID_EMPTY";
146
- InsertErrorCode[InsertErrorCode["DUPLICATE_ID"] = 10011] = "DUPLICATE_ID";
147
- InsertErrorCode[InsertErrorCode["KEY_CONSTRAINT_VIOLATED"] = 10012] = "KEY_CONSTRAINT_VIOLATED";
148
- InsertErrorCode[InsertErrorCode["INVALID_FORMAT"] = 10013] = "INVALID_FORMAT";
149
- InsertErrorCode[InsertErrorCode["OK_BUT_ID_EXISTED"] = 11001] = "OK_BUT_ID_EXISTED";
150
- InsertErrorCode[InsertErrorCode["OTHERS"] = 19999] = "OTHERS";
151
- })(InsertErrorCode = exports.InsertErrorCode || (exports.InsertErrorCode = {}));
152
- exports.InsertErrorMessages = {
153
- [InsertErrorCode.ID_NOT_MATCH_UUID]: "id and uuid do not match",
154
- [InsertErrorCode.ID_UUID_NOT_MATCH_SCHEMA]: "id and schema do not match",
155
- [InsertErrorCode.FROM_ID_NOT_EXISTED]: "fromId does not exist",
156
- [InsertErrorCode.TO_ID_NOT_EXISTED]: "toId does not exist",
157
- [InsertErrorCode.ID_LEN]: "length of id exceeds the maximum length (128 bytes)",
158
- [InsertErrorCode.NOT_NULL]: "violation of the NOT NULL constraint",
159
- [InsertErrorCode.UNIQUCHECK]: "violation of the UNIQUE constraint",
160
- [InsertErrorCode.ID_EMPTY]: "id cannot be empty",
161
- [InsertErrorCode.FROM_ID_EMPTY]: "fromId cannot be empty",
162
- [InsertErrorCode.TO_ID_EMPTY]: "toId cannot be empty",
163
- [InsertErrorCode.DUPLICATE_ID]: "duplicated id",
164
- [InsertErrorCode.KEY_CONSTRAINT_VIOLATED]: "violation of the EDGE KEY constraint",
165
- [InsertErrorCode.INVALID_FORMAT]: "invalid format",
166
- [InsertErrorCode.OK_BUT_ID_EXISTED]: "id already exists",
167
- [InsertErrorCode.OTHERS]: "other error"
168
- };
169
- function getInsertErrorMessage(errorCode) {
170
- return exports.InsertErrorMessages[errorCode] || exports.InsertErrorMessages[InsertErrorCode.OTHERS];
171
- }
172
- exports.getInsertErrorMessage = getInsertErrorMessage;
173
- /**
174
- * The schema property type.When create property.Need set property type.
175
- */
176
- var UltipaPropertyType;
177
- (function (UltipaPropertyType) {
178
- /**
179
- * Ultipa schema id type
180
- */
181
- UltipaPropertyType[UltipaPropertyType["ID"] = -1] = "ID";
182
- /**
183
- * Ultipa schema uuid type
184
- */
185
- UltipaPropertyType[UltipaPropertyType["UUID"] = -2] = "UUID";
186
- /**
187
- * Ultipa edge schema from_id type
188
- */
189
- UltipaPropertyType[UltipaPropertyType["FROM"] = -3] = "FROM";
190
- /**
191
- * Ultipa edge schema to_id type
192
- */
193
- UltipaPropertyType[UltipaPropertyType["TO"] = -4] = "TO";
194
- /**
195
- * Ultipa edge schema from_uuid type
196
- */
197
- UltipaPropertyType[UltipaPropertyType["FROM_UUID"] = -5] = "FROM_UUID";
198
- /**
199
- * Ultipa edge schema to_uuid type
200
- */
201
- UltipaPropertyType[UltipaPropertyType["TO_UUID"] = -6] = "TO_UUID";
202
- /**
203
- * Ignore
204
- */
205
- UltipaPropertyType[UltipaPropertyType["IGNORE"] = -7] = "IGNORE";
206
- /**
207
- * No type set
208
- */
209
- UltipaPropertyType[UltipaPropertyType["UNSET"] = 0] = "UNSET";
210
- /**
211
- * Signed 32 integer
212
- */
213
- UltipaPropertyType[UltipaPropertyType["INT32"] = 1] = "INT32";
214
- /**
215
- * Unsigned 32 integer
216
- */
217
- UltipaPropertyType[UltipaPropertyType["UINT32"] = 2] = "UINT32";
218
- /**
219
- * Signed 64 integer
220
- */
221
- UltipaPropertyType[UltipaPropertyType["INT64"] = 3] = "INT64";
222
- /**
223
- * Unsigned 64 integer
224
- */
225
- UltipaPropertyType[UltipaPropertyType["UINT64"] = 4] = "UINT64";
226
- /**
227
- * Single floating-point number
228
- */
229
- UltipaPropertyType[UltipaPropertyType["FLOAT"] = 5] = "FLOAT";
230
- /**
231
- * Double-precision floating-point numbers
232
- */
233
- UltipaPropertyType[UltipaPropertyType["DOUBLE"] = 6] = "DOUBLE";
234
- /**
235
- * A data type that represents a sequence of characters
236
- */
237
- UltipaPropertyType[UltipaPropertyType["STRING"] = 7] = "STRING";
238
- /**
239
- * Represents a combination of a date and a time
240
- */
241
- UltipaPropertyType[UltipaPropertyType["DATETIME"] = 8] = "DATETIME";
242
- /**
243
- * A data type that typically represents a specific point in time, often with a high level of precision
244
- */
245
- UltipaPropertyType[UltipaPropertyType["TIMESTAMP"] = 9] = "TIMESTAMP";
246
- /**
247
- * Used to store large amounts of text data
248
- */
249
- UltipaPropertyType[UltipaPropertyType["TEXT"] = 10] = "TEXT";
250
- /**
251
- * Stands for Binary Large Object
252
- */
253
- UltipaPropertyType[UltipaPropertyType["BLOB"] = 11] = "BLOB";
254
- /**
255
- * In the context of databases dealing with spatial data (e.g., in GIS systems)
256
- */
257
- UltipaPropertyType[UltipaPropertyType["POINT"] = 12] = "POINT";
258
- /**
259
- * Represents a fixed-point number with a specified precision and scale
260
- */
261
- UltipaPropertyType[UltipaPropertyType["DECIMAL"] = 13] = "DECIMAL";
262
- /**
263
- * A data structure that can hold a collection of elements
264
- */
265
- UltipaPropertyType[UltipaPropertyType["LIST"] = 14] = "LIST";
266
- /**
267
- * A data structure that stores a collection of unique elements
268
- */
269
- UltipaPropertyType[UltipaPropertyType["SET"] = 15] = "SET";
270
- /**
271
- * A data structure that stores key-value pairs
272
- */
273
- UltipaPropertyType[UltipaPropertyType["MAP"] = 16] = "MAP";
274
- /**
275
- * Null type
276
- */
277
- UltipaPropertyType[UltipaPropertyType["NULL"] = 17] = "NULL";
278
- /**
279
- * Stands for Boolean
280
- */
281
- UltipaPropertyType[UltipaPropertyType["BOOL"] = 18] = "BOOL";
282
- UltipaPropertyType[UltipaPropertyType["LOCAL_DATETIME"] = 19] = "LOCAL_DATETIME";
283
- UltipaPropertyType[UltipaPropertyType["ZONED_DATETIME"] = 20] = "ZONED_DATETIME";
284
- UltipaPropertyType[UltipaPropertyType["DATE"] = 21] = "DATE";
285
- UltipaPropertyType[UltipaPropertyType["ZONED_TIME"] = 22] = "ZONED_TIME";
286
- UltipaPropertyType[UltipaPropertyType["LOCAL_TIME"] = 23] = "LOCAL_TIME";
287
- UltipaPropertyType[UltipaPropertyType["YEAR_TO_MONTH"] = 24] = "YEAR_TO_MONTH";
288
- UltipaPropertyType[UltipaPropertyType["DAY_TO_SECOND"] = 25] = "DAY_TO_SECOND";
289
- UltipaPropertyType[UltipaPropertyType["JSON"] = 26] = "JSON";
290
- })(UltipaPropertyType = exports.UltipaPropertyType || (exports.UltipaPropertyType = {}));
291
- /**
292
- * The insertion mode.
293
- */
294
- var InsertType;
295
- (function (InsertType) {
296
- /**
297
- * Insert new data
298
- */
299
- InsertType[InsertType["NORMAL"] = 0] = "NORMAL";
300
- /**
301
- * The insert overwrite operation first clears the existing data in the target location and then inserts new data
302
- */
303
- InsertType[InsertType["OVERWRITE"] = 1] = "OVERWRITE";
304
- /**
305
- * If the data record to be inserted already exists in the target location the record will be updated; if it does not exist, a new record will be inserted
306
- */
307
- InsertType[InsertType["UPSERT"] = 2] = "UPSERT";
308
- })(InsertType = exports.InsertType || (exports.InsertType = {}));
309
- /**
310
- * Algorithm Detail Response Data
311
- */
312
- class Algo {
313
- /**
314
- * name
315
- */
316
- name;
317
- /**
318
- * type
319
- */
320
- type;
321
- /**
322
- * write support type
323
- */
324
- writeSupportType;
325
- /**
326
- * Whether the algorithm can be rolled back to previous version.
327
- */
328
- canRollback;
329
- /**
330
- * config context
331
- */
332
- configContext;
333
- /**
334
- * version
335
- */
336
- version;
337
- /**
338
- * algo params
339
- */
340
- params;
341
- /**
342
- * algo description
343
- */
344
- description;
345
- }
346
- exports.Algo = Algo;
347
- /**
348
- * TODO delete Code
349
- */
350
- var ErrorCode;
351
- (function (ErrorCode) {
352
- ErrorCode[ErrorCode["SUCCESS"] = RPC_ErrorCode.SUCCESS] = "SUCCESS";
353
- ErrorCode[ErrorCode["FAILED"] = RPC_ErrorCode.FAILED] = "FAILED";
354
- ErrorCode[ErrorCode["PARAM_ERROR"] = RPC_ErrorCode.PARAM_ERROR] = "PARAM_ERROR";
355
- ErrorCode[ErrorCode["BASE_DB_ERROR"] = RPC_ErrorCode.BASE_DB_ERROR] = "BASE_DB_ERROR";
356
- ErrorCode[ErrorCode["ENGINE_ERROR"] = RPC_ErrorCode.ENGINE_ERROR] = "ENGINE_ERROR";
357
- ErrorCode[ErrorCode["SYSTEM_ERROR"] = RPC_ErrorCode.SYSTEM_ERROR] = "SYSTEM_ERROR";
358
- ErrorCode[ErrorCode["SYNTAX_ERROR"] = RPC_ErrorCode.SYNTAX_ERROR] = "SYNTAX_ERROR";
359
- ErrorCode[ErrorCode["PERMISSION_DENIED"] = RPC_ErrorCode.PERMISSION_DENIED] = "PERMISSION_DENIED";
360
- ErrorCode[ErrorCode["DUPLICATE_ID"] = RPC_ErrorCode.DUPLICATE_ID] = "DUPLICATE_ID";
361
- ErrorCode[ErrorCode["RAFT_REDIRECT"] = RPC_ErrorCode.RAFT_REDIRECT] = "RAFT_REDIRECT";
362
- ErrorCode[ErrorCode["RAFT_LEADER_NOT_YET_ELECTED"] = RPC_ErrorCode.RAFT_LEADER_NOT_YET_ELECTED] = "RAFT_LEADER_NOT_YET_ELECTED";
363
- ErrorCode[ErrorCode["RAFT_LOG_ERROR"] = RPC_ErrorCode.RAFT_LOG_ERROR] = "RAFT_LOG_ERROR";
364
- ErrorCode[ErrorCode["NOT_RAFT_MODE"] = RPC_ErrorCode.NOT_RAFT_MODE] = "NOT_RAFT_MODE";
365
- ErrorCode[ErrorCode["RAFT_NO_AVAILABLE_FOLLOWERS"] = RPC_ErrorCode.RAFT_NO_AVAILABLE_FOLLOWERS] = "RAFT_NO_AVAILABLE_FOLLOWERS";
366
- ErrorCode[ErrorCode["RAFT_NO_AVAILABLE_ALGO_SERVERS"] = RPC_ErrorCode.RAFT_NO_AVAILABLE_ALGO_SERVERS] = "RAFT_NO_AVAILABLE_ALGO_SERVERS";
367
- ErrorCode[ErrorCode["UNKNOWN_ERROR"] = 1000] = "UNKNOWN_ERROR";
368
- })(ErrorCode = exports.ErrorCode || (exports.ErrorCode = {}));
369
- var ResultType;
370
- (function (ResultType) {
371
- ResultType[ResultType["RESULT_TYPE_UNSET"] = RPC_ResultType.RESULT_TYPE_UNSET] = "RESULT_TYPE_UNSET";
372
- ResultType[ResultType["RESULT_TYPE_PATH"] = RPC_ResultType.RESULT_TYPE_PATH] = "RESULT_TYPE_PATH";
373
- ResultType[ResultType["RESULT_TYPE_NODE"] = RPC_ResultType.RESULT_TYPE_NODE] = "RESULT_TYPE_NODE";
374
- ResultType[ResultType["RESULT_TYPE_EDGE"] = RPC_ResultType.RESULT_TYPE_EDGE] = "RESULT_TYPE_EDGE";
375
- ResultType[ResultType["RESULT_TYPE_ATTR"] = RPC_ResultType.RESULT_TYPE_ATTR] = "RESULT_TYPE_ATTR";
376
- ResultType[ResultType["RESULT_TYPE_TABLE"] = RPC_ResultType.RESULT_TYPE_TABLE] = "RESULT_TYPE_TABLE";
377
- })(ResultType = exports.ResultType || (exports.ResultType = {}));
378
- var AuthenticateType;
379
- (function (AuthenticateType) {
380
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_UNSET"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_UNSET] = "PERMISSION_TYPE_UNSET";
381
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_UQL"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_UQL] = "PERMISSION_TYPE_UQL";
382
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_GQL"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_GQL] = "PERMISSION_TYPE_GQL";
383
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_INSERTNODES"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_INSERTNODES] = "PERMISSION_TYPE_INSERTNODES";
384
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_INSERTEDGES"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_INSERTEDGES] = "PERMISSION_TYPE_INSERTEDGES";
385
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_EXPORT"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_EXPORT] = "PERMISSION_TYPE_EXPORT";
386
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_DOWNLOADFILE"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_DOWNLOADFILE] = "PERMISSION_TYPE_DOWNLOADFILE";
387
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_INSTALLALGO"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_INSTALLALGO] = "PERMISSION_TYPE_INSTALLALGO";
388
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_UNINSTALLALGO"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_UNINSTALLALGO] = "PERMISSION_TYPE_UNINSTALLALGO";
389
- AuthenticateType[AuthenticateType["PERMISSION_TYPE_ROLLBACKALGO"] = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_ROLLBACKALGO] = "PERMISSION_TYPE_ROLLBACKALGO";
390
- // PERMISSION_TYPE_UPLOADER = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_UPLOADER,
391
- // PERMISSION_TYPE_CREATEGRAPHBYUPLOADER = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_CREATEGRAPHBYUPLOADER,
392
- // PERMISSION_TYPE_INSTALLEXTA = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_INSTALLEXTA,
393
- // PERMISSION_TYPE_UNINSTALLEXTA = ULTIPA_RPC.AuthenticateType.PERMISSION_TYPE_UNINSTALLEXTA,
394
- })(AuthenticateType = exports.AuthenticateType || (exports.AuthenticateType = {}));
395
- /**
396
- * privilege level type
397
- */
398
- var PrivilegeLevel;
399
- (function (PrivilegeLevel) {
400
- /**
401
- * Graph privilege type
402
- */
403
- PrivilegeLevel[PrivilegeLevel["GraphLevel"] = 0] = "GraphLevel";
404
- /**
405
- * System privilege type
406
- */
407
- PrivilegeLevel[PrivilegeLevel["SystemLevel"] = 1] = "SystemLevel";
408
- })(PrivilegeLevel = exports.PrivilegeLevel || (exports.PrivilegeLevel = {}));
409
- /**
410
- * HDC synchronization type.
411
- */
412
- var HDCSyncType;
413
- (function (HDCSyncType) {
414
- /**
415
- * Static synchronization
416
- */
417
- HDCSyncType["STATIC"] = "static";
418
- /**
419
- * Asynchronous synchronization
420
- */
421
- HDCSyncType["ASYNC"] = "async";
422
- /**
423
- * Synchronous synchronization
424
- */
425
- HDCSyncType["SYNC"] = "sync";
426
- })(HDCSyncType = exports.HDCSyncType || (exports.HDCSyncType = {}));
427
- /** Query type contains UQL,GQL */
428
- var QueryType;
429
- (function (QueryType) {
430
- QueryType[QueryType["QL_UNSET"] = 0] = "QL_UNSET";
431
- QueryType[QueryType["UQL"] = 1] = "UQL";
432
- QueryType[QueryType["GQL"] = 2] = "GQL";
433
- })(QueryType = exports.QueryType || (exports.QueryType = {}));
434
- /**
435
- * The schema type in database.
436
- */
437
- var DBType;
438
- (function (DBType) {
439
- /**
440
- * Node
441
- */
442
- DBType[DBType["DBNODE"] = RPC_DBType.DBNODE] = "DBNODE";
443
- /**
444
- * Edge
445
- */
446
- DBType[DBType["DBEDGE"] = RPC_DBType.DBEDGE] = "DBEDGE";
447
- })(DBType = exports.DBType || (exports.DBType = {}));
448
- /**
449
- * Job status
450
- */
451
- var JOB_STATUS;
452
- (function (JOB_STATUS) {
453
- JOB_STATUS[JOB_STATUS["JOB_PENDING"] = RPC_JOB_STATUS.JOB_PENDING] = "JOB_PENDING";
454
- JOB_STATUS[JOB_STATUS["JOB_COMPUTING"] = RPC_JOB_STATUS.JOB_COMPUTING] = "JOB_COMPUTING";
455
- JOB_STATUS[JOB_STATUS["JOB_WRITING"] = RPC_JOB_STATUS.JOB_WRITING] = "JOB_WRITING";
456
- JOB_STATUS[JOB_STATUS["JOB_DONE"] = RPC_JOB_STATUS.JOB_DONE] = "JOB_DONE";
457
- JOB_STATUS[JOB_STATUS["JOB_FAILED"] = RPC_JOB_STATUS.JOB_FAILED] = "JOB_FAILED";
458
- JOB_STATUS[JOB_STATUS["JOB_STOPPED"] = RPC_JOB_STATUS.JOB_STOPPED] = "JOB_STOPPED";
459
- })(JOB_STATUS = exports.JOB_STATUS || (exports.JOB_STATUS = {}));
460
- /**
461
- * Property index
462
- */
463
- class Index {
464
- id;
465
- /**
466
- * Index name
467
- */
468
- name;
469
- /**
470
- * Index on which properties
471
- */
472
- properties;
473
- /**
474
- * Index on which scehma
475
- */
476
- schema;
477
- /**
478
- * Index status
479
- */
480
- status;
481
- /**
482
- * Index size
483
- */
484
- size;
485
- /**
486
- * Node index or edge index
487
- */
488
- dbType;
489
- }
490
- exports.Index = Index;
491
- /**
492
- * User
493
- */
494
- class User {
495
- /**
496
- * username
497
- */
498
- username;
499
- /**
500
- * pasword
501
- */
502
- password;
503
- /**
504
- * create time
505
- */
506
- createdTime;
507
- /**
508
- * System privileges list
509
- */
510
- systemPrivileges;
511
- /**
512
- * Graph privileges key value map
513
- */
514
- graphPrivileges;
515
- /**
516
- * Property privileges
517
- */
518
- propertyPrivileges;
519
- /**
520
- * Policy list
521
- */
522
- policies;
523
- }
524
- exports.User = User;
525
- /**
526
- * A policy is a set of privileges designed for a specific user role, often encompassing multiple privileges and other policies. Effective policy design and usage enable role-based access control.
527
- */
528
- class Policy {
529
- /** Policy name */
530
- name;
531
- /** Atlas permissions included in the policy */
532
- systemPrivileges;
533
- /** System permissions included in the policy */
534
- graphPrivileges;
535
- /** Permissions for properties included in the policy */
536
- propertyPrivileges;
537
- /** Other strategies included in the policy */
538
- policies;
539
- }
540
- exports.Policy = Policy;
541
- /**
542
- * Control user permissions to operate on the graph database
543
- */
544
- class Privilege {
545
- /**
546
- * privilege name
547
- */
548
- name;
549
- /**
550
- * privilege type
551
- */
552
- level;
553
- }
554
- exports.Privilege = Privilege;
555
- /**
556
- * The background job INFO from database.
557
- */
558
- class Job {
559
- /**
560
- * job id
561
- */
562
- id;
563
- /**
564
- * job run in graph name
565
- */
566
- graphName;
567
- /**
568
- * job query
569
- */
570
- query;
571
- /**
572
- * Job types, such as CREATE_INDEX, CACHE, COMPACT
573
- */
574
- type;
575
- /**
576
- * Error messages encountered during job execution (if any)
577
- */
578
- errMsg;
579
- /**
580
- * The results generated by assignments, such as output files or statistical overviews of algorithms.
581
- */
582
- result;
583
- /**
584
- * job start time
585
- */
586
- startTime;
587
- /**
588
- * job end time
589
- */
590
- endTime;
591
- /**
592
- * Current state of the job, which can be FINISHED, RUNNING, STOPPING, STOPPED or FAILED.
593
- */
594
- status;
595
- /**
596
- * Progress updates for the job, such as indications that the write operation has been started.
597
- */
598
- progress;
599
- }
600
- exports.Job = Job;
601
- /**
602
- * The response items of top()
603
- */
604
- class Process {
605
- /**
606
- * process id
607
- */
608
- processId;
609
- /**
610
- * process query
611
- */
612
- processQuery;
613
- /**
614
- * duration
615
- */
616
- duration;
617
- /**
618
- * status
619
- */
620
- status;
621
- }
622
- exports.Process = Process;
623
- /**
624
- * hdc.graph.show()
625
- */
626
- class HDCGraph {
627
- /**
628
- * name
629
- */
630
- name;
631
- /**
632
- * graph name
633
- */
634
- graphName;
635
- /**
636
- * status
637
- */
638
- status;
639
- /**
640
- * stats
641
- */
642
- stats;
643
- /**
644
- * is default
645
- */
646
- isDefault;
647
- /**
648
- * hdc server name
649
- */
650
- hdcServerName;
651
- /**
652
- * hdc server status
653
- */
654
- hdcServerStatus;
655
- /**
656
- * hdc config name
657
- */
658
- config;
659
- }
660
- exports.HDCGraph = HDCGraph;
661
- /**
662
- * projection
663
- */
664
- class Projection {
665
- /**
666
- * name
667
- */
668
- name;
669
- /**
670
- * graph name
671
- */
672
- graphName;
673
- /**
674
- * status
675
- */
676
- status;
677
- /**
678
- * stats
679
- */
680
- stats;
681
- /**
682
- * config
683
- */
684
- config;
685
- }
686
- exports.Projection = Projection;
687
- /**
688
- * The graph data about nodes.
689
- */
690
- class Node {
691
- /**
692
- * _uuid
693
- */
694
- uuid;
695
- /**
696
- * _id
697
- */
698
- id;
699
- /**
700
- * schema
701
- */
702
- schema;
703
- /**
704
- * key: value
705
- */
706
- values;
707
- /**
708
- * returns property value
709
- * @param propName property name
710
- * @returns property value
711
- */
712
- get(propName) {
713
- return this.values[propName];
714
- }
715
- /**
716
- * sets property value
717
- * @param propName
718
- * @param value
719
- */
720
- set(propName, value) {
721
- if (!this.values) {
722
- this.values = {};
723
- }
724
- if (this.values) {
725
- this.values[propName] = value;
726
- }
727
- }
728
- }
729
- exports.Node = Node;
730
- function NewNodeRow(jsonObj) {
731
- let v = new Node();
732
- Object.assign(v, jsonObj);
733
- return v;
734
- }
735
- function NewNodeTable(jsonArray) {
736
- let v = [];
737
- jsonArray?.forEach(o => {
738
- v.push(NewNodeRow(o));
739
- });
740
- return v;
741
- }
742
- /**
743
- * Stores edge data.
744
- */
745
- class Edge {
746
- // _id: string; TBD
747
- /**
748
- * _uuid
749
- */
750
- uuid;
751
- /**
752
- * _from_uuid
753
- */
754
- fromUuid;
755
- /**
756
- * _to_uuid
757
- */
758
- toUuid;
759
- /**
760
- * _from: from id
761
- */
762
- from;
763
- /**
764
- * _to: to id
765
- */
766
- to;
767
- /**
768
- * schema
769
- */
770
- schema;
771
- /**
772
- * key: value
773
- */
774
- values;
775
- /**
776
- * returns property value
777
- * @param propName property name
778
- * @returns property value
779
- */
780
- get(propName) {
781
- return this.values[propName];
782
- }
783
- /**
784
- * set property value
785
- * @param propName
786
- * @param value
787
- */
788
- set(propName, value) {
789
- if (!this.values) {
790
- this.values = {};
791
- }
792
- if (this.values) {
793
- this.values[propName] = value;
794
- }
795
- }
796
- }
797
- exports.Edge = Edge;
798
- function NewEdgeRow(jsonObj) {
799
- let v = new Edge();
800
- Object.assign(v, jsonObj);
801
- return v;
802
- }
803
- function NewEdgeTable(jsonArray) {
804
- let v = [];
805
- jsonArray?.forEach(o => {
806
- v.push(NewEdgeRow(o));
807
- });
808
- return v;
809
- }
810
- function NewEdgeAlias(jsonObj) {
811
- let v = {};
812
- Object.assign(v, jsonObj);
813
- v.edges = NewEdgeTable(v.edges);
814
- return v;
815
- }
816
- /**
817
- * Path entity
818
- */
819
- class Path {
820
- /**
821
- * Node uuid list
822
- */
823
- nodeUuids;
824
- /**
825
- * Edge uuid list
826
- */
827
- edgeUuids;
828
- /**
829
- * nodes details
830
- */
831
- nodes = new Map();
832
- /**
833
- * edges details
834
- */
835
- edges = new Map();
836
- /**
837
- * return node by index
838
- * @param index node index
839
- * @returns node
840
- /**
841
- * return edge length
842
- * @returns edge length
843
- */
844
- length() {
845
- return this.edgeUuids?.length || 0;
846
- }
847
- }
848
- exports.Path = Path;
849
- function NewPath(jsonObj) {
850
- let v = new Path();
851
- Object.assign(v, jsonObj);
852
- if (v.nodeUuids) {
853
- v.nodeUuids = NewNodeTable(jsonObj).map(j => j.uuid);
854
- }
855
- if (v.edgeUuids) {
856
- v.edgeUuids = NewEdgeTable(jsonObj).map(j => j.uuid);
857
- }
858
- return v;
859
- }
860
- function NewPaths(jsonArray) {
861
- let v = [];
862
- jsonArray?.forEach(obj => {
863
- v.push(NewPath(obj));
864
- });
865
- return v;
866
- }
867
- /**
868
- * Graph that contains nodes, edges maps and paths.
869
- */
870
- class Graph {
871
- /**
872
- * Graph path list
873
- */
874
- paths;
875
- /**
876
- * Graph all nodes
877
- */
878
- nodes;
879
- /**
880
- * Graph all edges
881
- */
882
- edges;
883
- /**
884
- * Convert path list to
885
- * @returns Path[]
886
- */
887
- getPaths() {
888
- return this.paths;
889
- }
890
- /**
891
- * Add node to nodes
892
- * @param node new Node
893
- */
894
- addNode(node) {
895
- this.nodes.set(node.uuid, node);
896
- }
897
- /**
898
- * Add edge to graph
899
- * @param edge new Edge
900
- */
901
- addEdge(edge) {
902
- this.edges.set(edge.uuid, edge);
903
- }
904
- }
905
- exports.Graph = Graph;
906
- function NewGraph(jsonArray) {
907
- let v = new Graph();
908
- Object.assign(v, jsonArray);
909
- if (v.paths) {
910
- v.paths = NewPaths(jsonArray.paths);
911
- }
912
- if (v.edges) {
913
- v.edges = new Map();
914
- NewEdgeTable(jsonArray.edges).forEach(e => {
915
- v.edges.set(e.uuid, e);
916
- });
917
- }
918
- if (v.nodes) {
919
- v.nodes = new Map();
920
- NewNodeTable(jsonArray.nodes).forEach(n => {
921
- v.nodes.set(n.uuid, n);
922
- });
923
- }
924
- return v;
925
- }
926
- /**
927
- * GraphSet that contains the graph name and total nodes and edges.
928
- */
929
- class GraphSet {
930
- /**
931
- * graph id
932
- */
933
- id;
934
- /**
935
- * graph name
936
- */
937
- name;
938
- /**
939
- * number of nodes
940
- */
941
- totalNodes;
942
- /**
943
- * number of edges
944
- */
945
- totalEdges;
946
- /**
947
- * graph shards list
948
- */
949
- shards;
950
- /**
951
- * the partition type of graph
952
- */
953
- partitionBy;
954
- /**
955
- * status
956
- */
957
- status;
958
- /**
959
- * graph description
960
- */
961
- description;
962
- /**
963
- * the number of slots
964
- */
965
- slotNum;
966
- }
967
- exports.GraphSet = GraphSet;
968
- /**
969
- * Node or edge schemas
970
- */
971
- class Schema {
972
- /**
973
- * schema name
974
- */
975
- name;
976
- /**
977
- * schema description
978
- */
979
- description;
980
- /**
981
- * properties of schema
982
- */
983
- properties;
984
- /**
985
- * schema type
986
- */
987
- dbType;
988
- /**
989
- * node or edge count
990
- */
991
- total;
992
- /**
993
- * schema id
994
- */
995
- id;
996
- /**
997
- * store the count for each pair of start and end node schemas of current edge schema.
998
- */
999
- stats = [];
1000
- /**
1001
- * Convert list of schemas to a map of schema Schema name -> Schema
1002
- * @param schemas
1003
- * @returns
1004
- */
1005
- static toDict(schemas) {
1006
- let dict = new Map();
1007
- schemas.forEach(schema => {
1008
- dict.set(schema.name, schema);
1009
- });
1010
- return dict;
1011
- }
1012
- }
1013
- exports.Schema = Schema;
1014
- /**
1015
- * Statistics for node schema pairs in edge schema
1016
- */
1017
- class SchemaStat {
1018
- /**
1019
- * Schema type
1020
- */
1021
- dbType;
1022
- /**
1023
- * Schema name
1024
- */
1025
- schema;
1026
- /**
1027
- * From Schema name
1028
- */
1029
- fromSchema;
1030
- /**
1031
- * To Schema name
1032
- */
1033
- toSchema;
1034
- /**
1035
- * Number of edges between these node schemas
1036
- */
1037
- count;
1038
- }
1039
- exports.SchemaStat = SchemaStat;
1040
- class SchemaStats {
1041
- stats = [];
1042
- }
1043
- exports.SchemaStats = SchemaStats;
1044
- /**
1045
- * The properties of schema
1046
- */
1047
- class Property {
1048
- /**
1049
- * Property name
1050
- */
1051
- name;
1052
- /**
1053
- * PropertyType Enum
1054
- */
1055
- type;
1056
- /**
1057
- * Sub PropertyType Enum
1058
- */
1059
- subType;
1060
- /**
1061
- * This property is lte
1062
- */
1063
- lte;
1064
- /**
1065
- * Whether it has read permission or not true-yes,false-no
1066
- */
1067
- read;
1068
- /**
1069
- * Whether it has write permission or not true-yes,false-no
1070
- */
1071
- write;
1072
- /**
1073
- * Property`s schema name
1074
- */
1075
- schema;
1076
- /**
1077
- * Property`s description
1078
- */
1079
- description;
1080
- /**
1081
- * encrypt method for this property, if null, value is not encrypted
1082
- */
1083
- encrypt;
1084
- /**
1085
- * additional info for this property. For decimal property, it represents the length and precision in parentheses, default is "(20,8)"
1086
- */
1087
- decimalExtra;
1088
- }
1089
- exports.Property = Property;
1090
- class Header {
1091
- propertyName;
1092
- propertyType;
1093
- }
1094
- exports.Header = Header;
1095
- /**
1096
- * Table
1097
- */
1098
- class Table {
1099
- /**
1100
- * Table name
1101
- */
1102
- name;
1103
- /**
1104
- * Table headers
1105
- */
1106
- headers;
1107
- /**
1108
- * Table rows
1109
- */
1110
- rows;
1111
- /**
1112
- * Convert table to list of KV
1113
- * @returns
1114
- */
1115
- toKV() {
1116
- return utils_1.FormatResponse.tableToArray(this);
1117
- }
1118
- getHeaders() {
1119
- return this.headers;
1120
- }
1121
- getRows() {
1122
- return this.rows;
1123
- }
1124
- }
1125
- exports.Table = Table;
1126
- ;
1127
- /**
1128
- * Attribute Response Data
1129
- */
1130
- class Attr {
1131
- /**
1132
- * Ultipa property type
1133
- */
1134
- propertyType;
1135
- /**
1136
- * Ultipa result type
1137
- */
1138
- resultType;
1139
- /**
1140
- * Attr values
1141
- */
1142
- values;
1143
- /**
1144
- * Attr name
1145
- */
1146
- name;
1147
- }
1148
- exports.Attr = Attr;
1149
- class ExplainPlan {
1150
- planNodes = [];
1151
- }
1152
- exports.ExplainPlan = ExplainPlan;
1153
- class PlanNode {
1154
- alias;
1155
- childrenNum;
1156
- uql;
1157
- infos;
1158
- }
1159
- exports.PlanNode = PlanNode;
1160
- function getExplainPlansTreeTopNode(plans) {
1161
- let top = null;
1162
- let nodes = [];
1163
- plans?.planNodes.forEach((node, i) => {
1164
- node = {
1165
- ...node
1166
- };
1167
- if (i == 0) {
1168
- top = node;
1169
- }
1170
- let lastNode = nodes[nodes.length - 1];
1171
- // if (node.childrenNum > 0) {
1172
- // node.children = []
1173
- // nodes.push(node)
1174
- // }
1175
- // if (lastNode) {
1176
- // lastNode.children.push(node)
1177
- // if (lastNode.children.length == lastNode.childrenNum) {
1178
- // nodes = nodes.filter(n => n != lastNode)
1179
- // }
1180
- // }
1181
- });
1182
- return top;
1183
- }
1184
- exports.getExplainPlansTreeTopNode = getExplainPlansTreeTopNode;
1185
- /**
1186
- * The get () method or alias () method of the Response class returns a DataItem embedded in the query result. You need to use the as < Type > () method of the DataItem to convert the result to the appropriate driver type.
1187
- */
1188
- class DataItem {
1189
- /**
1190
- * Alias name
1191
- */
1192
- alias;
1193
- /**
1194
- * Ultipa result type
1195
- */
1196
- type;
1197
- /**
1198
- * result entity
1199
- */
1200
- entities;
1201
- constructor(alias, type, entities) {
1202
- this.entities = entities;
1203
- this.alias = alias;
1204
- this.type = type;
1205
- }
1206
- _asTypeError(type) {
1207
- if (this.type != type) {
1208
- throw new Error(`DataItem ${this.alias} is not type ${ResultType[type]}, but ${ResultType[this.type]}`);
1209
- }
1210
- }
1211
- asNodes() {
1212
- this._asTypeError(ResultType.RESULT_TYPE_NODE);
1213
- return this.entities;
1214
- }
1215
- asFirstNode() {
1216
- return this.asNodes()[0];
1217
- }
1218
- asEdges() {
1219
- this._asTypeError(ResultType.RESULT_TYPE_EDGE);
1220
- return this.entities;
1221
- }
1222
- asFirstEdge() {
1223
- this._asTypeError(ResultType.RESULT_TYPE_EDGE);
1224
- return this.asEdges()[0];
1225
- }
1226
- asPaths() {
1227
- this._asTypeError(ResultType.RESULT_TYPE_PATH);
1228
- return this.asGraph().paths;
1229
- }
1230
- asGraph() {
1231
- this._asTypeError(ResultType.RESULT_TYPE_PATH);
1232
- let graph = this.entities;
1233
- graph.paths.forEach(p => {
1234
- p.nodes = new Map();
1235
- p.edges = new Map();
1236
- p.nodeUuids.forEach(uuid => {
1237
- p.nodes.set(uuid, graph.nodes.get(uuid));
1238
- });
1239
- p.edgeUuids.forEach(uuid => {
1240
- p.edges.set(uuid, graph.edges.get(uuid));
1241
- });
1242
- });
1243
- return graph;
1244
- }
1245
- asTable() {
1246
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1247
- let table = new Table();
1248
- Object.assign(table, this.entities);
1249
- return table;
1250
- }
1251
- asAttr() {
1252
- this._asTypeError(ResultType.RESULT_TYPE_ATTR);
1253
- return this.entities;
1254
- }
1255
- asGraphSets() {
1256
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1257
- let table = this.asTable().toKV();
1258
- let graphSets = [];
1259
- table.forEach((kv) => {
1260
- let graphSet = new GraphSet();
1261
- graphSet.name = kv["name"];
1262
- graphSet.totalEdges = kv["total_edges"];
1263
- graphSet.totalNodes = kv["total_nodes"];
1264
- graphSet.description = kv["description"];
1265
- graphSet.status = kv["status"];
1266
- graphSet.partitionBy = kv["partition_by"];
1267
- graphSet.slotNum = parseInt(kv["slot_num"]);
1268
- graphSet.shards = kv["shards"].split(',').map(shard => shard.trim());
1269
- graphSet.id = kv["id"];
1270
- graphSets.push(graphSet);
1271
- });
1272
- return graphSets;
1273
- }
1274
- asProperties() {
1275
- let properties = [];
1276
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1277
- let dbType;
1278
- if (this.alias.startsWith("_node")) {
1279
- dbType = DBType.DBNODE;
1280
- }
1281
- else if (this.alias.startsWith("_edge")) {
1282
- dbType = DBType.DBEDGE;
1283
- }
1284
- else {
1285
- throw new Error(`DataItem ${this.alias} cannot transfer to Property`);
1286
- }
1287
- let table = this.asTable().toKV();
1288
- table.forEach(row => {
1289
- let property = new Property();
1290
- property.name = row["name"];
1291
- property.lte = row["lte"].toLowerCase() === "true" ? true : false;
1292
- property.read = row["read"] === "1" ? true : false;
1293
- property.write = row["write"] === "1" ? true : false;
1294
- property.schema = row["schema"];
1295
- property.description = row["description"];
1296
- property.encrypt = row["encrypt"];
1297
- let type = row['type'];
1298
- let resType = utils_1.PropertyUtils.GetPropertyType(type);
1299
- if (resType.decimalExtra) {
1300
- property.decimalExtra = resType.decimalExtra;
1301
- }
1302
- property.type = resType.type;
1303
- property.subType = resType.subTypes;
1304
- properties.push(property);
1305
- });
1306
- return properties;
1307
- }
1308
- asSchemas() {
1309
- // return this.asTableWithT<Schema>()
1310
- let schemas = [];
1311
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1312
- // let dbType = this.alias?.startsWith("_node") ? DBType.DBNODE;
1313
- let dbType;
1314
- if (this.alias.startsWith("_node")) {
1315
- dbType = DBType.DBNODE;
1316
- }
1317
- else if (this.alias.startsWith("_edge")) {
1318
- dbType = DBType.DBEDGE;
1319
- }
1320
- else {
1321
- throw new Error(`DataItem ${this.alias} cannot transfer to Schema`);
1322
- }
1323
- let table = this.asTable().toKV();
1324
- table.forEach(row => {
1325
- let schema = new Schema();
1326
- schema.dbType = dbType;
1327
- schema.id = row["id"];
1328
- schema.name = row["name"];
1329
- schema.description = row["description"];
1330
- let properties = [];
1331
- JSON.parse(row['properties'].toString()).forEach(o => {
1332
- let property = new Property();
1333
- let type = utils_1.PropertyUtils.GetPropertyType(o.type);
1334
- property.name = o.name;
1335
- property.type = type.type;
1336
- property.subType = type.subTypes;
1337
- property.lte = o.lte === "true" ? true : false;
1338
- property.read = o.read;
1339
- property.write = o.write;
1340
- property.schema = schema.name;
1341
- property.description = o.description;
1342
- property.encrypt = o.encrypt;
1343
- properties.push(property);
1344
- });
1345
- schema.properties = properties;
1346
- schemas.push(schema);
1347
- });
1348
- return schemas;
1349
- }
1350
- asIndexes() {
1351
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1352
- let dbType;
1353
- if (this.alias.startsWith("_node")) {
1354
- dbType = DBType.DBNODE;
1355
- }
1356
- else if (this.alias.startsWith("_edge")) {
1357
- dbType = DBType.DBEDGE;
1358
- }
1359
- let indexes = [];
1360
- let table = this.asTable().toKV();
1361
- table.forEach(row => {
1362
- let index = new Index();
1363
- index.id = row["id"];
1364
- index.name = row["name"];
1365
- index.schema = row["schema"];
1366
- index.properties = row["properties"];
1367
- index.status = row["status"];
1368
- index.dbType = dbType;
1369
- indexes.push(index);
1370
- });
1371
- return indexes;
1372
- }
1373
- asPolicies() {
1374
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1375
- let policies = [];
1376
- let table = this.asTable().toKV();
1377
- table.forEach(row => {
1378
- let policy = new Policy();
1379
- policy.name = row["name"];
1380
- policy.graphPrivileges = new Map(Object.entries(JSON.parse(row["graphPrivileges"])));
1381
- policy.systemPrivileges = JSON.parse(row["systemPrivileges"]);
1382
- policy.propertyPrivileges = JSON.parse(row["propertyPrivileges"]);
1383
- policy.policies = JSON.parse(row["policies"]);
1384
- policies.push(policy);
1385
- });
1386
- return policies;
1387
- }
1388
- asUsers() {
1389
- // return this.asTableWithT<User>()
1390
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1391
- let users = [];
1392
- let table = this.asTable().toKV();
1393
- table.forEach(row => {
1394
- let user = new User();
1395
- user.username = row["username"];
1396
- user.createdTime = row["create"];
1397
- user.graphPrivileges = new Map(Object.entries(JSON.parse(row["graphPrivileges"])));
1398
- user.systemPrivileges = JSON.parse(row["systemPrivileges"]);
1399
- user.propertyPrivileges = JSON.parse(row["propertyPrivileges"]);
1400
- user.policies = JSON.parse(row["policies"]);
1401
- users.push(user);
1402
- });
1403
- return users;
1404
- }
1405
- asPrivileges() {
1406
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1407
- let privileges = [];
1408
- let table = this.asTable().toKV();
1409
- table.forEach(row => {
1410
- let graphPrivileges = JSON.parse(row['graphPrivileges']);
1411
- graphPrivileges.forEach((privilege) => {
1412
- let graphPrivilege = new Privilege();
1413
- graphPrivilege.name = privilege;
1414
- graphPrivilege.level = PrivilegeLevel.GraphLevel;
1415
- privileges.push(graphPrivilege);
1416
- });
1417
- let systemPrivileges = JSON.parse(row['systemPrivileges']);
1418
- systemPrivileges.forEach((privilege) => {
1419
- let systemPrivilege = new Privilege();
1420
- systemPrivilege.name = privilege;
1421
- systemPrivilege.level = PrivilegeLevel.SystemLevel;
1422
- privileges.push(systemPrivilege);
1423
- });
1424
- });
1425
- return privileges;
1426
- }
1427
- asProcesses() {
1428
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1429
- let processes = [];
1430
- let table = this.asTable().toKV();
1431
- table.forEach(row => {
1432
- let process = new Process();
1433
- process.processId = row["process_id"];
1434
- process.processQuery = row["process_query"];
1435
- process.duration = row["duration"];
1436
- process.status = row["status"];
1437
- processes.push(process);
1438
- });
1439
- return processes;
1440
- }
1441
- asHDCGraphs() {
1442
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1443
- let hdcGraphs = [];
1444
- let table = this.asTable().toKV();
1445
- table.forEach(row => {
1446
- let hdcGraph = new HDCGraph();
1447
- hdcGraph.name = row['name'];
1448
- hdcGraph.graphName = row['graph_name'];
1449
- hdcGraph.status = row['status'];
1450
- hdcGraph.stats = row['stats'];
1451
- hdcGraph.isDefault = row['is_default'];
1452
- hdcGraph.hdcServerName = row['hdc_server_name'];
1453
- hdcGraph.hdcServerStatus = row['hdc_server_status'];
1454
- hdcGraph.config = row['config'];
1455
- hdcGraphs.push(hdcGraph);
1456
- });
1457
- return hdcGraphs;
1458
- }
1459
- asProjections() {
1460
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1461
- let projections = [];
1462
- let table = this.asTable();
1463
- table.rows.forEach(row => {
1464
- let projection = new Projection();
1465
- projection.name = row[0];
1466
- projection.graphName = row[1];
1467
- projection.status = row[2];
1468
- projection.stats = row[3];
1469
- projection.config = row[4];
1470
- projections.push(projection);
1471
- });
1472
- return projections;
1473
- }
1474
- asAlgos() {
1475
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1476
- let algos = [];
1477
- let table = this.asTable().toKV();
1478
- table.forEach(row => {
1479
- let algo = new Algo();
1480
- algo.name = row["name"];
1481
- algo.version = row["version"];
1482
- algo.type = row["type"];
1483
- algo.writeSupportType = row["write_support_type"];
1484
- algo.canRollback = row["can_rollback"];
1485
- algo.description = row["description"];
1486
- algo.configContext = row["config_context"];
1487
- // algo.params = []
1488
- algos.push(algo);
1489
- });
1490
- return algos;
1491
- }
1492
- asJobs() {
1493
- this._asTypeError(ResultType.RESULT_TYPE_TABLE);
1494
- let jobs = [];
1495
- let table = this.asTable().toKV();
1496
- table.forEach(row => {
1497
- let job = new Job();
1498
- job.id = row['job_id'];
1499
- job.graphName = row['graph_name'];
1500
- job.type = row['type'];
1501
- job.query = row['query'];
1502
- job.status = row['status'];
1503
- job.errMsg = row['err_msg'];
1504
- job.result = row['result'] ? new Map(Object.entries(JSON.parse(row['result']))) : null;
1505
- job.startTime = row['start_time'];
1506
- job.endTime = row['end_time'];
1507
- job.progress = row['progress'];
1508
- jobs.push(job);
1509
- });
1510
- return jobs;
1511
- }
1512
- asAny() {
1513
- return this.entities;
1514
- }
1515
- asTableWithT() {
1516
- return this.asTable()?.toKV();
1517
- }
1518
- toJSONString() {
1519
- return JSON.stringify(this);
1520
- }
1521
- }
1522
- exports.DataItem = DataItem;
1523
- /**
1524
- * Unified response structure for all requests
1525
- */
1526
- class Response {
1527
- /**
1528
- * Holds statistics field of rpc response
1529
- */
1530
- statistics;
1531
- /**
1532
- * Holds status field of rpc response
1533
- */
1534
- status;
1535
- /**
1536
- * Holds all alias result of grpc api
1537
- */
1538
- aliases = [];
1539
- /**
1540
- * Holds all result of grpc api, from aliases
1541
- */
1542
- items = {};
1543
- requestInfo;
1544
- /**
1545
- * Holds result of explain uql.
1546
- */
1547
- explainPlan;
1548
- constructor(status) {
1549
- this.status = status;
1550
- }
1551
- get(index) {
1552
- const keys = Object.keys(this.items);
1553
- if (index >= keys.length) {
1554
- throw new Error(`index ${index} out of range`);
1555
- }
1556
- return this.items[keys[index]];
1557
- }
1558
- alias(alias) {
1559
- if (!(alias in this.items)) {
1560
- throw new Error(`alias ${alias} not found`);
1561
- }
1562
- return this.items[alias];
1563
- }
1564
- }
1565
- exports.Response = Response;
1566
- class InsertResponse {
1567
- ids;
1568
- uuids;
1569
- errorItems;
1570
- /**
1571
- * Holds statistics field of rpc response
1572
- */
1573
- statistics;
1574
- /**
1575
- * Holds status field of rpc response
1576
- */
1577
- status;
1578
- }
1579
- exports.InsertResponse = InsertResponse;
1580
- /**
1581
- * Remarks: A language that cannot return two results, use this to return results
1582
- */
1583
- class ResponseWithExistCheck {
1584
- /**
1585
- * When insert,return insert item exist
1586
- */
1587
- exist;
1588
- /**
1589
- * The insert response
1590
- */
1591
- response;
1592
- }
1593
- exports.ResponseWithExistCheck = ResponseWithExistCheck;
1594
- class JobResponse {
1595
- jobId;
1596
- /**
1597
- * Holds statistics field of response
1598
- */
1599
- statistics;
1600
- /**
1601
- * Holds status field of response
1602
- */
1603
- status;
1604
- }
1605
- exports.JobResponse = JobResponse;
1606
- //# sourceMappingURL=types.js.map