@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.
Files changed (260) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +65 -0
  3. package/dist/client.d.ts +194 -0
  4. package/dist/client.js +390 -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 +632 -0
  16. package/dist/response.d.ts +256 -0
  17. package/dist/response.js +723 -0
  18. package/dist/services/admin-service.d.ts +40 -0
  19. package/dist/services/admin-service.js +115 -0
  20. package/dist/services/bulk-import-service.d.ts +35 -0
  21. package/dist/services/bulk-import-service.js +108 -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 +60 -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 +49 -62
  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 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iCAAuC;AAA9B,qGAAA,YAAY,OAAA;AACrB,6CAA4E;AAAnE,0GAAA,WAAW,OAAA;AACpB,2DAAgF;AAA3D,sHAAA,gBAAgB,OAAA;AAAE,iHAAA,WAAW,OAAA;AAClD,+BAAkC;AAAzB,iGAAA,SAAS,OAAA;AAClB,kDAAiC"}
@@ -1,545 +0,0 @@
1
- export declare const ALGO_RETURN_TYPE: {
2
- ALGO_RETURN_REALTIME: number;
3
- ALGO_RETURN_WRITE_BACK: number;
4
- ALGO_RETURN_VISUALIZATION: number;
5
- };
6
- export declare const ALGO_RESULT: {
7
- ALGO_RESULT_UNSET: number;
8
- WRITE_TO_FILE: number;
9
- WRITE_TO_DB: number;
10
- WRITE_TO_CLIENT: number;
11
- WRITE_TO_VISUALIZATION: number;
12
- };
13
- export declare namespace AlgoParams {
14
- interface dv {
15
- algo_name: string;
16
- id: string;
17
- top: number;
18
- total: number;
19
- }
20
- interface base {
21
- write_back?: boolean;
22
- visualization?: boolean;
23
- force?: boolean;
24
- exec_task?: boolean;
25
- stats?: boolean;
26
- write_file?: object;
27
- write_db?: object;
28
- stream?: object | boolean;
29
- }
30
- interface louvainDVRequest {
31
- nodeNum: number;
32
- communityNum: number;
33
- }
34
- /**
35
- * k_core
36
- * @params {number} k size_t,required
37
- */
38
- interface k_core extends base {
39
- k: number;
40
- }
41
- /**
42
- * node2vec
43
- * @params {number} walk_num size_t,required
44
- * @params {number} walk_length size_t,required
45
- * @params {number} window_size size_t,required
46
- * @params {number} p float,required
47
- * @params {number} q float,required
48
- * @params {string} edge_schema_name optional
49
- * @params {string} edge_property_name optional
50
- * @params {number} dimension size_t,required
51
- * @params {number} learning_rate float,required
52
- * @params {number} min_learning_rate float,required
53
- * @params {number} min_frequency size_t,required
54
- * @params {number} sub_sample_alpha float,required
55
- * @params {number} resolution size_t,required
56
- * @params {number} neg_num size_t,required
57
- * @params {number} loop_num size_t,required
58
- * @params {string} buffer_size -1 for all paths
59
- * @params {number} limit -1 for all nodes in sample paths
60
- */
61
- interface node2vec extends base {
62
- walk_num: number;
63
- walk_length: number;
64
- window_size: number;
65
- p: number;
66
- q: number;
67
- edge_schema_name?: string;
68
- edge_property_name?: string;
69
- dimension: number;
70
- learning_rate: number;
71
- min_learning_rate: number;
72
- min_frequency: number;
73
- sub_sample_alpha: number;
74
- resolution: number;
75
- neg_num: number;
76
- loop_num: number;
77
- buffer_size?: string;
78
- limit?: number;
79
- }
80
- /**
81
- * hyperANF
82
- * @params {number} loop_num size_t,required
83
- * @params {number} register_num size_t,required,This value must be in the range[4,30].Default value is 10
84
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
85
- */
86
- interface hyperANF extends base {
87
- loop_num: number;
88
- register_num: number;
89
- me?: string;
90
- }
91
- /**
92
- * k_means
93
- * @params {number} k size_t,required
94
- * @params {string} start_ids array of nodes,required
95
- * @params {string} node_schema_name node schema,required
96
- * @params {string} node_property_names node attributes,required
97
- * @params {number} distance_type size_t,required,1:Euclidean distance( 欧几里得距离) 2:cosine similarity
98
- * @params {number} loop_num size_t,required
99
- */
100
- interface k_means extends base {
101
- k: number;
102
- start_ids: string;
103
- node_schema_name: string;
104
- node_property_names: string;
105
- distance_type: number;
106
- loop_num: number;
107
- }
108
- /**
109
- * graph_centrality
110
- * @params {number[] | string} ids string can be uql string, array of nodes,empty for all nodes
111
- * @params {number} limit -1 for all results
112
- * @params {string} order optional,ASC or DESC
113
- */
114
- interface graph_centrality extends base {
115
- ids?: number[] | string;
116
- limit?: number;
117
- order?: string;
118
- }
119
- /**
120
- * jaccard
121
- * @params {number[] | string} ids string can be uql string, required
122
- * @params {string} ids2 optional
123
- * @params {number} limit -1 for all result
124
- * @params {string} order optional,ASC or DESC, only valid for pair mode
125
- * @params {string} duplicate optional,1:duplicate, 2(default):deduplicate
126
- */
127
- interface jaccard extends base {
128
- ids: number[] | string;
129
- ids2?: number[] | string;
130
- limit?: number;
131
- order?: string;
132
- duplicate?: string;
133
- }
134
- /**
135
- * GraphSAGE
136
- * @params {string} dimension int,required
137
- * @params {number} normalizationStrength float,optional, 0 as default
138
- * @params {number} iterationWeights float[],optional,[0.0,1.0,1.0] as default
139
- * @params {string} edge_schema_name for weighted random projection,optional
140
- * @params {string} edge_property_name edge attribute, for weighted random projection,optional
141
- * @params {string} propertyDimension int,optional, maximum value is dimension
142
- * @params {string} node_schema_name optional
143
- * @params {string} node_property_names array of node attributes,optional
144
- */
145
- interface GraphSAGE extends base {
146
- dimension: string;
147
- normalizationStrength?: number;
148
- iterationWeights?: number;
149
- edge_schema_name?: string;
150
- edge_property_name?: string;
151
- propertyDimension?: string;
152
- node_schema_name?: string;
153
- node_property_names?: string;
154
- }
155
- /**
156
- * clustering_coefficient
157
- * @params {number[] | string} ids string can be uql string, array of nodes,empty for all nodes
158
- * @params {number} limit -1 for all results
159
- * @params {string} order optional,ASC or DESC
160
- */
161
- interface clustering_coefficient extends base {
162
- ids?: number[] | string;
163
- limit?: number;
164
- order?: string;
165
- }
166
- /**
167
- * fastRP
168
- * @params {string} dimension int,required
169
- * @params {number} normalizationStrength float,optional, 0 as default
170
- * @params {number} iterationWeights float[],optional,[0.0,1.0,1.0] as default
171
- * @params {string} edge_schema_name for weighted random projection,optional
172
- * @params {string} edge_property_name edge attribute, for weighted random projection,optional
173
- * @params {string} propertyDimension int,optional, maximum value is dimension
174
- * @params {string} node_schema_name optional
175
- * @params {string} node_property_names array of node attributes,optional
176
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
177
- */
178
- interface fastRP extends base {
179
- dimension: string;
180
- normalizationStrength?: number;
181
- iterationWeights?: number;
182
- edge_schema_name?: string;
183
- edge_property_name?: string;
184
- propertyDimension?: string;
185
- node_schema_name?: string;
186
- node_property_names?: string;
187
- me?: string;
188
- }
189
- /**
190
- * degree
191
- * @params {number[] | string} ids string can be uql string, array of nodes,empty for all nodes
192
- * @params {string} edge_schema_name optinal
193
- * @params {string} edge_property_name optinal
194
- * @params {number} limit -1 for all results
195
- * @params {string} order optional,ASC or DESC
196
- * @params {string} direction string,optinal, left or right, bi-direction if absent
197
- */
198
- interface degree extends base {
199
- ids?: number[] | string;
200
- edge_schema_name?: string;
201
- edge_property_name?: string;
202
- limit?: number;
203
- order?: string;
204
- direction?: string;
205
- }
206
- /**
207
- * cosine_similarity
208
- * @params {number[] | string} ids string can be uql string, required
209
- * @params {string} ids2 required
210
- * @params {string} node_schema_name required
211
- * @params {string} node_property_names array of node_attributes,required
212
- * @params {string} type optional, 1.(default)normal number, 2.for huge number
213
- * @params {number} limit optional,-1 for all result
214
- * @params {string} order optional,ASC or DESC
215
- */
216
- interface cosine_similarity extends base {
217
- ids: number[] | string;
218
- ids2: string;
219
- node_schema_name: string;
220
- node_property_names: string;
221
- type?: string;
222
- limit?: number;
223
- order?: string;
224
- }
225
- /**
226
- * common_neighbours
227
- * @params {number[] | string} ids string can be uql string, required
228
- * @params {string} ids2 required
229
- * @params {string} type optional, 1.(default)only number, 2.ids
230
- * @params {number} limit optional,-1 for all result
231
- * @params {string} order optional,ASC or DESC
232
- */
233
- interface common_neighbours extends base {
234
- ids: number[] | string;
235
- ids2: string;
236
- type?: string;
237
- limit?: number;
238
- order?: string;
239
- }
240
- /**
241
- * triangle_counting
242
- * @params {string} type 1:count by edge 2:count by node
243
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
244
- * @params {number} limit -1 for total_num, otherwise for n triples
245
- */
246
- interface triangle_counting extends base {
247
- type?: string;
248
- me?: string;
249
- limit?: number;
250
- }
251
- /**
252
- * betweenness_centrality
253
- * @params {number[] | string} ids string can be uql string, array of nodes,empty for all nodes
254
- * @params {number} limit -1 for all
255
- * @params {string} sample_size optional, -1 for log(total_node_num), -2 for not sampling(most accurate)
256
- * @params {string} order optional,ASC or DESC
257
- */
258
- interface betweenness_centrality extends base {
259
- ids?: number[] | string;
260
- limit?: number;
261
- sample_size?: string;
262
- order?: string;
263
- }
264
- /**
265
- * adamic_adar
266
- */
267
- interface adamic_adar extends base {
268
- }
269
- /**
270
- * bipartite
271
- */
272
- interface bipartite extends base {
273
- }
274
- /**
275
- * hanp
276
- * @params {number} loop_num size_t,required
277
- * @params {string} node_schema_name required
278
- * @params {string} node_property_name required
279
- * @params {string} edge_schema_name required
280
- * @params {string} edge_property_name required
281
- * @params {number} m float,required
282
- * @params {number} delta float,required
283
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
284
- */
285
- interface hanp extends base {
286
- loop_num: number;
287
- node_schema_name: string;
288
- node_property_name: string;
289
- edge_schema_name: string;
290
- edge_property_name: string;
291
- m: number;
292
- delta: number;
293
- me?: string;
294
- }
295
- /**
296
- * closeness_centrality
297
- * @params {number[] | string} ids string can be uql string, array of nodes,empty for all nodes
298
- * @params {number} limit -1 for all results
299
- * @params {string} direction string,optinal, left or right, bi-direction if absent
300
- * @params {string} sample_size optional, -1 for log(total_node_num), -2 for not sampling(most accurate)
301
- * @params {string} order optional,ASC or DESC
302
- */
303
- interface closeness_centrality extends base {
304
- ids?: number[] | string;
305
- limit?: number;
306
- direction?: string;
307
- sample_size?: string;
308
- order?: string;
309
- }
310
- /**
311
- * connected_component
312
- * @params {string} cc_type 1:wcc , 2:scc
313
- */
314
- interface connected_component extends base {
315
- cc_type?: string;
316
- }
317
- /**
318
- * khop_all
319
- * @params {number} depth size_t,required
320
- * @params {string} direction string,optinal, left or right, bi-direction if absent
321
- * @params {number} type size_t,optinal, 1)ids 2)(default)only number
322
- */
323
- interface khop_all extends base {
324
- depth: number;
325
- direction?: string;
326
- type?: number;
327
- }
328
- /**
329
- * variable_compute
330
- * @params {number[] | string} ids string can be uql string, nodes
331
- * @params {string} type in(1) / out(1)in(1) - out(1)out(1) - avg(out(1))out(1) / avg(out(1))out(2) - in(2)sum(pow(in(1) - out(1),2) / count())sum(pow(in(1) - out(1),2) / (count() - 1))sqrt(sum(pow(in(1) - out(1),2) / count()))sqrt(sum(pow(in(1) - out(1),2) / (count() - 1)))
332
- * @params {number} limit -1 for all nodes
333
- */
334
- interface variable_compute extends base {
335
- ids?: number[] | string;
336
- type?: string;
337
- limit?: number;
338
- }
339
- /**
340
- * knn
341
- * @params {string} node_id required
342
- * @params {string} node_schema_name required
343
- * @params {string} node_property_names node attrs,required
344
- * @params {number} top_k size_t,required
345
- * @params {string} target_property_name required
346
- */
347
- interface knn extends base {
348
- node_id: string;
349
- node_schema_name: string;
350
- node_property_names: string;
351
- top_k: number;
352
- target_property_name: string;
353
- }
354
- /**
355
- * line
356
- * @params {string} edge_schema_name required
357
- * @params {string} edge_property_name required
358
- * @params {number} dimension size_t,required
359
- * @params {number} resolution size_t,required
360
- * @params {number} start_alpha float,required
361
- * @params {number} neg_num size_t,required
362
- * @params {number} total_sample size_t,required
363
- * @params {number} train_order size_t,required,1 or 2
364
- */
365
- interface line extends base {
366
- edge_schema_name: string;
367
- edge_property_name: string;
368
- dimension: number;
369
- resolution: number;
370
- start_alpha: number;
371
- neg_num: number;
372
- total_sample: number;
373
- train_order: number;
374
- }
375
- /**
376
- * louvain
377
- * @params {string} edge_schema_name optinal
378
- * @params {string} edge_property_name optinal,default 1 for each edge if absent
379
- * @params {number} phase1_loop_num size_t,required
380
- * @params {number} min_modularity_increase float,required
381
- */
382
- interface louvain extends base {
383
- edge_schema_name?: string;
384
- edge_property_name?: string;
385
- phase1_loop_num: number;
386
- min_modularity_increase: number;
387
- }
388
- /**
389
- * lpa
390
- * @params {number} loop_num size_t,required
391
- * @params {string} node_schema_name optional
392
- * @params {string} node_property_name optional
393
- * @params {string} node_weight_name optional
394
- * @params {string} edge_schema_name optional
395
- * @params {string} edge_weight_name optional
396
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
397
- */
398
- interface lpa extends base {
399
- loop_num: number;
400
- node_schema_name?: string;
401
- node_property_name?: string;
402
- node_weight_name?: string;
403
- edge_schema_name?: string;
404
- edge_weight_name?: string;
405
- me?: string;
406
- }
407
- /**
408
- * mst
409
- * @params {number[] | string} ids string can be uql string, required
410
- * @params {string} edge_schema_name required
411
- * @params {string} edge_property_name required
412
- * @params {number} limit -1 for all
413
- */
414
- interface mst extends base {
415
- ids: number[] | string;
416
- edge_schema_name: string;
417
- edge_property_name: string;
418
- limit?: number;
419
- }
420
- /**
421
- * random_walk_node2vec
422
- * @params {number} walk_length size_t,required
423
- * @params {number} walk_num size_t,required
424
- * @params {number} p float,required
425
- * @params {number} q float,required
426
- * @params {string} edge_schema_name optional
427
- * @params {string} edge_property_name optional
428
- * @params {string} buffer_size -1 for all paths
429
- */
430
- interface random_walk_node2vec extends base {
431
- walk_length: number;
432
- walk_num: number;
433
- p: number;
434
- q: number;
435
- edge_schema_name?: string;
436
- edge_property_name?: string;
437
- buffer_size?: string;
438
- }
439
- /**
440
- * page_rank
441
- * @params {number} init_value float,optional
442
- * @params {number} loop_num size_t,required
443
- * @params {number} damping float,required
444
- * @params {string} weaken optional,1(default) not weaken, 2 weaken with average number of links going out of all pages (see ArticleRank)
445
- * @params {number} limit -1 for all nodes
446
- * @params {string} order ASC or DESC
447
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
448
- */
449
- interface page_rank extends base {
450
- init_value?: number;
451
- loop_num: number;
452
- damping: number;
453
- weaken?: string;
454
- limit?: number;
455
- order?: string;
456
- me?: string;
457
- }
458
- /**
459
- * random_walk
460
- * @params {number} walk_length size_t,required
461
- * @params {number} walk_num size_t,required
462
- * @params {string} edge_schema_name optional
463
- * @params {string} edge_property_name optional,default 1 if absent
464
- * @params {number[] | string} ids string can be uql string, nodes
465
- * @params {number} limit -1 for all nodes
466
- */
467
- interface random_walk extends base {
468
- walk_length: number;
469
- walk_num: number;
470
- edge_schema_name?: string;
471
- edge_property_name?: string;
472
- ids?: number[] | string;
473
- limit?: number;
474
- }
475
- /**
476
- * struc2vec
477
- * @params {number} walk_num size_t,required
478
- * @params {number} walk_length size_t,required
479
- * @params {number} k size_t,required
480
- * @params {number} stay_probability float,required
481
- * @params {number} window_size size_t,required
482
- * @params {number} dimension size_t,required
483
- * @params {number} learning_rate float,required
484
- * @params {number} min_learning_rate float,required
485
- * @params {number} min_frequency size_t,required
486
- * @params {number} sub_sample_alpha float,required
487
- * @params {number} resolution size_t,required
488
- * @params {number} neg_num size_t,required
489
- * @params {number} loop_num size_t,required
490
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
491
- */
492
- interface struc2vec extends base {
493
- walk_num: number;
494
- walk_length: number;
495
- k: number;
496
- stay_probability: number;
497
- window_size: number;
498
- dimension: number;
499
- learning_rate: number;
500
- min_learning_rate: number;
501
- min_frequency: number;
502
- sub_sample_alpha: number;
503
- resolution: number;
504
- neg_num: number;
505
- loop_num: number;
506
- me?: string;
507
- }
508
- /**
509
- * random_walk_struc2vec
510
- * @params {number} walk_length size_t,required
511
- * @params {number} walk_num size_t,required
512
- * @params {number} k size_t,required
513
- * @params {number} stay_probability float,required
514
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
515
- */
516
- interface random_walk_struc2vec extends base {
517
- walk_length: number;
518
- walk_num: number;
519
- k: number;
520
- stay_probability: number;
521
- me?: string;
522
- }
523
- /**
524
- * subgraph
525
- * @params {number[] | string} ids string can be uql string, array of nodes,required
526
- */
527
- interface subgraph extends base {
528
- ids: number[] | string;
529
- }
530
- /**
531
- * sybil_rank
532
- * @params {number} total_trust float,required
533
- * @params {string} trust_seeds array of nodes,required
534
- * @params {number} loop_num size_t,required
535
- * @params {number} sybil_num size_t,required
536
- * @params {string} me optional : 1(default):few edges between nodes 2:massive edges between nodes
537
- */
538
- interface sybil_rank extends base {
539
- total_trust: number;
540
- trust_seeds: string;
541
- loop_num: number;
542
- sybil_num: number;
543
- me?: string;
544
- }
545
- }
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ALGO_RESULT = exports.ALGO_RETURN_TYPE = void 0;
4
- exports.ALGO_RETURN_TYPE = {
5
- ALGO_RETURN_REALTIME: 1,
6
- ALGO_RETURN_WRITE_BACK: 2,
7
- ALGO_RETURN_VISUALIZATION: 4,
8
- };
9
- exports.ALGO_RESULT = {
10
- ALGO_RESULT_UNSET: -1,
11
- WRITE_TO_FILE: 1,
12
- WRITE_TO_DB: 2,
13
- WRITE_TO_CLIENT: 4,
14
- WRITE_TO_VISUALIZATION: 8,
15
- };
16
- //# sourceMappingURL=types.algos.params.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.algos.params.js","sourceRoot":"","sources":["../../src/types/types.algos.params.ts"],"names":[],"mappings":";;;AACa,QAAA,gBAAgB,GAAG;IAC5B,oBAAoB,EAAE,CAAC;IACvB,sBAAsB,EAAE,CAAC;IACzB,yBAAyB,EAAE,CAAC;CAC/B,CAAC;AAEW,QAAA,WAAW,GAAG;IACvB,iBAAiB,EAAE,CAAC,CAAC;IACrB,aAAa,EAAE,CAAC;IAChB,WAAW,EAAE,CAAC;IACd,eAAe,EAAE,CAAC;IAClB,sBAAsB,EAAE,CAAC;CAC5B,CAAC"}