@milaboratories/pl-model-common 1.24.3 → 1.24.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 (275) hide show
  1. package/dist/base32_encode.cjs +11 -11
  2. package/dist/base32_encode.cjs.map +1 -1
  3. package/dist/base32_encode.d.ts +1 -1
  4. package/dist/base32_encode.js +11 -11
  5. package/dist/base32_encode.js.map +1 -1
  6. package/dist/base64.cjs +2 -2
  7. package/dist/base64.cjs.map +1 -1
  8. package/dist/base64.d.ts +1 -1
  9. package/dist/base64.d.ts.map +1 -1
  10. package/dist/base64.js +2 -2
  11. package/dist/base64.js.map +1 -1
  12. package/dist/block_state.d.ts +3 -3
  13. package/dist/bmodel/block_config.cjs +1 -1
  14. package/dist/bmodel/block_config.cjs.map +1 -1
  15. package/dist/bmodel/block_config.d.ts +3 -3
  16. package/dist/bmodel/block_config.d.ts.map +1 -1
  17. package/dist/bmodel/block_config.js +1 -1
  18. package/dist/bmodel/block_config.js.map +1 -1
  19. package/dist/bmodel/code.cjs +1 -1
  20. package/dist/bmodel/code.cjs.map +1 -1
  21. package/dist/bmodel/code.d.ts +2 -2
  22. package/dist/bmodel/code.js +1 -1
  23. package/dist/bmodel/code.js.map +1 -1
  24. package/dist/bmodel/container.d.ts +5 -5
  25. package/dist/bmodel/index.d.ts +5 -5
  26. package/dist/bmodel/normalization.cjs +17 -17
  27. package/dist/bmodel/normalization.cjs.map +1 -1
  28. package/dist/bmodel/normalization.d.ts +2 -2
  29. package/dist/bmodel/normalization.d.ts.map +1 -1
  30. package/dist/bmodel/normalization.js +17 -17
  31. package/dist/bmodel/normalization.js.map +1 -1
  32. package/dist/bmodel/types.d.ts +1 -1
  33. package/dist/branding.d.ts +2 -2
  34. package/dist/common_types.d.ts +1 -1
  35. package/dist/driver_kit.d.ts +1 -1
  36. package/dist/drivers/ChunkedStreamReader.cjs +13 -12
  37. package/dist/drivers/ChunkedStreamReader.cjs.map +1 -1
  38. package/dist/drivers/ChunkedStreamReader.d.ts +2 -2
  39. package/dist/drivers/ChunkedStreamReader.d.ts.map +1 -1
  40. package/dist/drivers/ChunkedStreamReader.js +13 -12
  41. package/dist/drivers/ChunkedStreamReader.js.map +1 -1
  42. package/dist/drivers/blob.cjs +1 -1
  43. package/dist/drivers/blob.cjs.map +1 -1
  44. package/dist/drivers/blob.d.ts +4 -4
  45. package/dist/drivers/blob.d.ts.map +1 -1
  46. package/dist/drivers/blob.js +1 -1
  47. package/dist/drivers/blob.js.map +1 -1
  48. package/dist/drivers/index.d.ts +8 -8
  49. package/dist/drivers/log.cjs +1 -1
  50. package/dist/drivers/log.cjs.map +1 -1
  51. package/dist/drivers/log.js +1 -1
  52. package/dist/drivers/log.js.map +1 -1
  53. package/dist/drivers/ls.cjs +3 -3
  54. package/dist/drivers/ls.cjs.map +1 -1
  55. package/dist/drivers/ls.d.ts +6 -6
  56. package/dist/drivers/ls.d.ts.map +1 -1
  57. package/dist/drivers/ls.js +3 -3
  58. package/dist/drivers/ls.js.map +1 -1
  59. package/dist/drivers/pframe/column_filter.d.ts +1 -1
  60. package/dist/drivers/pframe/data_info.cjs +119 -110
  61. package/dist/drivers/pframe/data_info.cjs.map +1 -1
  62. package/dist/drivers/pframe/data_info.d.ts +10 -10
  63. package/dist/drivers/pframe/data_info.d.ts.map +1 -1
  64. package/dist/drivers/pframe/data_info.js +119 -110
  65. package/dist/drivers/pframe/data_info.js.map +1 -1
  66. package/dist/drivers/pframe/data_types.cjs +7 -4
  67. package/dist/drivers/pframe/data_types.cjs.map +1 -1
  68. package/dist/drivers/pframe/data_types.d.ts +2 -2
  69. package/dist/drivers/pframe/data_types.d.ts.map +1 -1
  70. package/dist/drivers/pframe/data_types.js +7 -4
  71. package/dist/drivers/pframe/data_types.js.map +1 -1
  72. package/dist/drivers/pframe/driver.d.ts +10 -10
  73. package/dist/drivers/pframe/driver.d.ts.map +1 -1
  74. package/dist/drivers/pframe/find_columns.d.ts +2 -2
  75. package/dist/drivers/pframe/index.d.ts +14 -14
  76. package/dist/drivers/pframe/linker_columns.cjs +13 -5
  77. package/dist/drivers/pframe/linker_columns.cjs.map +1 -1
  78. package/dist/drivers/pframe/linker_columns.d.ts +2 -2
  79. package/dist/drivers/pframe/linker_columns.d.ts.map +1 -1
  80. package/dist/drivers/pframe/linker_columns.js +13 -5
  81. package/dist/drivers/pframe/linker_columns.js.map +1 -1
  82. package/dist/drivers/pframe/pframe.d.ts +6 -6
  83. package/dist/drivers/pframe/pframe.d.ts.map +1 -1
  84. package/dist/drivers/pframe/query/index.d.ts +2 -2
  85. package/dist/drivers/pframe/query/query_common.d.ts +37 -37
  86. package/dist/drivers/pframe/query/query_data.d.ts +2 -2
  87. package/dist/drivers/pframe/query/query_data.d.ts.map +1 -1
  88. package/dist/drivers/pframe/query/query_spec.d.ts +3 -3
  89. package/dist/drivers/pframe/query/query_spec.d.ts.map +1 -1
  90. package/dist/drivers/pframe/spec/anchored.cjs +6 -6
  91. package/dist/drivers/pframe/spec/anchored.cjs.map +1 -1
  92. package/dist/drivers/pframe/spec/anchored.d.ts +4 -4
  93. package/dist/drivers/pframe/spec/anchored.d.ts.map +1 -1
  94. package/dist/drivers/pframe/spec/anchored.js +6 -6
  95. package/dist/drivers/pframe/spec/anchored.js.map +1 -1
  96. package/dist/drivers/pframe/spec/filtered_column.cjs +1 -1
  97. package/dist/drivers/pframe/spec/filtered_column.cjs.map +1 -1
  98. package/dist/drivers/pframe/spec/filtered_column.d.ts +1 -1
  99. package/dist/drivers/pframe/spec/filtered_column.js +1 -1
  100. package/dist/drivers/pframe/spec/filtered_column.js.map +1 -1
  101. package/dist/drivers/pframe/spec/ids.cjs.map +1 -1
  102. package/dist/drivers/pframe/spec/ids.d.ts +5 -5
  103. package/dist/drivers/pframe/spec/ids.js.map +1 -1
  104. package/dist/drivers/pframe/spec/index.d.ts +6 -6
  105. package/dist/drivers/pframe/spec/native_id.cjs.map +1 -1
  106. package/dist/drivers/pframe/spec/native_id.d.ts +3 -3
  107. package/dist/drivers/pframe/spec/native_id.d.ts.map +1 -1
  108. package/dist/drivers/pframe/spec/native_id.js.map +1 -1
  109. package/dist/drivers/pframe/spec/selectors.cjs +1 -1
  110. package/dist/drivers/pframe/spec/selectors.cjs.map +1 -1
  111. package/dist/drivers/pframe/spec/selectors.d.ts +4 -4
  112. package/dist/drivers/pframe/spec/selectors.d.ts.map +1 -1
  113. package/dist/drivers/pframe/spec/selectors.js +1 -1
  114. package/dist/drivers/pframe/spec/selectors.js.map +1 -1
  115. package/dist/drivers/pframe/spec/spec.cjs +64 -59
  116. package/dist/drivers/pframe/spec/spec.cjs.map +1 -1
  117. package/dist/drivers/pframe/spec/spec.d.ts +15 -15
  118. package/dist/drivers/pframe/spec/spec.d.ts.map +1 -1
  119. package/dist/drivers/pframe/spec/spec.js +64 -59
  120. package/dist/drivers/pframe/spec/spec.js.map +1 -1
  121. package/dist/drivers/pframe/table.d.ts +2 -2
  122. package/dist/drivers/pframe/table_calculate.cjs +11 -11
  123. package/dist/drivers/pframe/table_calculate.cjs.map +1 -1
  124. package/dist/drivers/pframe/table_calculate.d.ts +30 -30
  125. package/dist/drivers/pframe/table_calculate.d.ts.map +1 -1
  126. package/dist/drivers/pframe/table_calculate.js +11 -11
  127. package/dist/drivers/pframe/table_calculate.js.map +1 -1
  128. package/dist/drivers/pframe/table_common.cjs +4 -4
  129. package/dist/drivers/pframe/table_common.cjs.map +1 -1
  130. package/dist/drivers/pframe/table_common.d.ts +6 -6
  131. package/dist/drivers/pframe/table_common.js +4 -4
  132. package/dist/drivers/pframe/table_common.js.map +1 -1
  133. package/dist/drivers/pframe/type_util.d.ts.map +1 -1
  134. package/dist/drivers/pframe/unique_values.d.ts +4 -4
  135. package/dist/drivers/urls.cjs +2 -2
  136. package/dist/drivers/urls.cjs.map +1 -1
  137. package/dist/drivers/urls.d.ts +1 -1
  138. package/dist/drivers/urls.js +2 -2
  139. package/dist/drivers/urls.js.map +1 -1
  140. package/dist/errors.cjs +12 -12
  141. package/dist/errors.cjs.map +1 -1
  142. package/dist/errors.d.ts +1 -1
  143. package/dist/errors.d.ts.map +1 -1
  144. package/dist/errors.js +12 -12
  145. package/dist/errors.js.map +1 -1
  146. package/dist/flags/block_flags.cjs +2 -2
  147. package/dist/flags/block_flags.cjs.map +1 -1
  148. package/dist/flags/block_flags.d.ts.map +1 -1
  149. package/dist/flags/block_flags.js +2 -2
  150. package/dist/flags/block_flags.js.map +1 -1
  151. package/dist/flags/flag_utils.cjs +31 -29
  152. package/dist/flags/flag_utils.cjs.map +1 -1
  153. package/dist/flags/flag_utils.d.ts +33 -33
  154. package/dist/flags/flag_utils.d.ts.map +1 -1
  155. package/dist/flags/flag_utils.js +31 -29
  156. package/dist/flags/flag_utils.js.map +1 -1
  157. package/dist/flags/index.d.ts +3 -3
  158. package/dist/flags/type_utils.d.ts +1 -1
  159. package/dist/flags/type_utils.d.ts.map +1 -1
  160. package/dist/httpAuth.cjs +4 -5
  161. package/dist/httpAuth.cjs.map +1 -1
  162. package/dist/httpAuth.d.ts +1 -1
  163. package/dist/httpAuth.d.ts.map +1 -1
  164. package/dist/httpAuth.js +4 -5
  165. package/dist/httpAuth.js.map +1 -1
  166. package/dist/index.d.ts +19 -19
  167. package/dist/json.cjs +1 -1
  168. package/dist/json.cjs.map +1 -1
  169. package/dist/json.d.ts.map +1 -1
  170. package/dist/json.js +1 -1
  171. package/dist/json.js.map +1 -1
  172. package/dist/navigation.cjs +1 -1
  173. package/dist/navigation.cjs.map +1 -1
  174. package/dist/navigation.d.ts +3 -3
  175. package/dist/navigation.js +1 -1
  176. package/dist/navigation.js.map +1 -1
  177. package/dist/plid.cjs +4 -4
  178. package/dist/plid.cjs.map +1 -1
  179. package/dist/plid.d.ts +1 -1
  180. package/dist/plid.js +4 -4
  181. package/dist/plid.js.map +1 -1
  182. package/dist/pool/entry.d.ts +1 -1
  183. package/dist/pool/index.d.ts +3 -3
  184. package/dist/pool/query.cjs +23 -23
  185. package/dist/pool/query.cjs.map +1 -1
  186. package/dist/pool/query.d.ts +9 -9
  187. package/dist/pool/query.d.ts.map +1 -1
  188. package/dist/pool/query.js +23 -23
  189. package/dist/pool/query.js.map +1 -1
  190. package/dist/pool/spec.cjs +9 -9
  191. package/dist/pool/spec.cjs.map +1 -1
  192. package/dist/pool/spec.d.ts +4 -4
  193. package/dist/pool/spec.d.ts.map +1 -1
  194. package/dist/pool/spec.js +9 -9
  195. package/dist/pool/spec.js.map +1 -1
  196. package/dist/ref.cjs +20 -18
  197. package/dist/ref.cjs.map +1 -1
  198. package/dist/ref.d.ts +1 -1
  199. package/dist/ref.d.ts.map +1 -1
  200. package/dist/ref.js +20 -18
  201. package/dist/ref.js.map +1 -1
  202. package/dist/utag.d.ts +1 -1
  203. package/dist/util.cjs +1 -1
  204. package/dist/util.cjs.map +1 -1
  205. package/dist/util.js +1 -1
  206. package/dist/util.js.map +1 -1
  207. package/dist/value_or_error.cjs.map +1 -1
  208. package/dist/value_or_error.d.ts.map +1 -1
  209. package/dist/value_or_error.js.map +1 -1
  210. package/package.json +18 -17
  211. package/src/base32_encode.ts +12 -12
  212. package/src/base64.ts +12 -8
  213. package/src/block_state.ts +3 -3
  214. package/src/bmodel/block_config.ts +12 -6
  215. package/src/bmodel/code.ts +3 -3
  216. package/src/bmodel/container.ts +5 -5
  217. package/src/bmodel/index.ts +5 -5
  218. package/src/bmodel/normalization.ts +33 -25
  219. package/src/bmodel/types.ts +1 -1
  220. package/src/branding.ts +2 -2
  221. package/src/common_types.ts +1 -1
  222. package/src/driver_kit.ts +1 -1
  223. package/src/drivers/ChunkedStreamReader.ts +16 -14
  224. package/src/drivers/blob.ts +7 -11
  225. package/src/drivers/index.ts +8 -8
  226. package/src/drivers/log.ts +3 -3
  227. package/src/drivers/ls.ts +18 -18
  228. package/src/drivers/pframe/column_filter.ts +1 -1
  229. package/src/drivers/pframe/data_info.ts +146 -146
  230. package/src/drivers/pframe/data_types.ts +56 -36
  231. package/src/drivers/pframe/driver.ts +20 -36
  232. package/src/drivers/pframe/find_columns.ts +2 -2
  233. package/src/drivers/pframe/index.ts +14 -14
  234. package/src/drivers/pframe/linker_columns.test.ts +280 -273
  235. package/src/drivers/pframe/linker_columns.ts +65 -39
  236. package/src/drivers/pframe/pframe.ts +6 -9
  237. package/src/drivers/pframe/query/index.ts +2 -2
  238. package/src/drivers/pframe/query/query_common.ts +46 -46
  239. package/src/drivers/pframe/query/query_data.ts +17 -10
  240. package/src/drivers/pframe/query/query_spec.ts +18 -10
  241. package/src/drivers/pframe/spec/anchored.ts +44 -33
  242. package/src/drivers/pframe/spec/filtered_column.ts +2 -2
  243. package/src/drivers/pframe/spec/ids.ts +6 -6
  244. package/src/drivers/pframe/spec/index.ts +6 -6
  245. package/src/drivers/pframe/spec/native_id.ts +7 -9
  246. package/src/drivers/pframe/spec/selectors.test.ts +170 -146
  247. package/src/drivers/pframe/spec/selectors.ts +22 -31
  248. package/src/drivers/pframe/spec/spec.test.ts +163 -176
  249. package/src/drivers/pframe/spec/spec.ts +132 -117
  250. package/src/drivers/pframe/table.ts +2 -2
  251. package/src/drivers/pframe/table_calculate.ts +44 -50
  252. package/src/drivers/pframe/table_common.ts +10 -10
  253. package/src/drivers/pframe/type_util.ts +2 -7
  254. package/src/drivers/pframe/unique_values.ts +4 -4
  255. package/src/drivers/urls.ts +3 -3
  256. package/src/errors.test.ts +20 -20
  257. package/src/errors.ts +24 -20
  258. package/src/flags/block_flags.ts +8 -7
  259. package/src/flags/flag_utils.test.ts +94 -73
  260. package/src/flags/flag_utils.ts +73 -50
  261. package/src/flags/index.ts +3 -3
  262. package/src/flags/type_utils.ts +10 -7
  263. package/src/httpAuth.ts +5 -6
  264. package/src/index.ts +19 -19
  265. package/src/json.ts +28 -17
  266. package/src/navigation.ts +4 -4
  267. package/src/plid.ts +6 -6
  268. package/src/pool/entry.ts +1 -1
  269. package/src/pool/index.ts +3 -3
  270. package/src/pool/query.ts +52 -56
  271. package/src/pool/spec.ts +20 -17
  272. package/src/ref.ts +25 -19
  273. package/src/utag.ts +1 -1
  274. package/src/util.ts +1 -1
  275. package/src/value_or_error.ts +6 -6
@@ -1,12 +1,12 @@
1
- import type { PTableColumnId, PTableColumnSpec } from './table_common';
2
- import type { PTableVector } from './data_types';
3
- import type { PObjectId } from '../../pool';
4
- import type { PColumn } from './spec/spec';
5
- import type { PColumnValues } from './data_info';
1
+ import type { PTableColumnId, PTableColumnSpec } from "./table_common";
2
+ import type { PTableVector } from "./data_types";
3
+ import type { PObjectId } from "../../pool";
4
+ import type { PColumn } from "./spec/spec";
5
+ import type { PColumnValues } from "./data_info";
6
6
  /** Defines a terminal column node in the join request tree */
7
7
  export interface ColumnJoinEntry<Col> {
8
8
  /** Node type discriminator */
9
- readonly type: 'column';
9
+ readonly type: "column";
10
10
  /** Local column */
11
11
  readonly column: Col;
12
12
  }
@@ -16,7 +16,7 @@ export interface ColumnJoinEntry<Col> {
16
16
  * */
17
17
  export interface ConstantAxisFilter {
18
18
  /** Filter type discriminator */
19
- readonly type: 'constant';
19
+ readonly type: "constant";
20
20
  /** Index of axis to slice (zero-based) */
21
21
  readonly axisIndex: number;
22
22
  /** Equality filter reference value, see {@link SingleValueEqualPredicate} */
@@ -25,7 +25,7 @@ export interface ConstantAxisFilter {
25
25
  /** Defines a terminal column node in the join request tree */
26
26
  export interface SlicedColumnJoinEntry<Col> {
27
27
  /** Node type discriminator */
28
- readonly type: 'slicedColumn';
28
+ readonly type: "slicedColumn";
29
29
  /** Local column */
30
30
  readonly column: Col;
31
31
  /** New column id */
@@ -35,7 +35,7 @@ export interface SlicedColumnJoinEntry<Col> {
35
35
  }
36
36
  export interface ArtificialColumnJoinEntry<Col> {
37
37
  /** Node type discriminator */
38
- readonly type: 'artificialColumn';
38
+ readonly type: "artificialColumn";
39
39
  /** Column definition */
40
40
  readonly column: Col;
41
41
  /** New column id */
@@ -46,7 +46,7 @@ export interface ArtificialColumnJoinEntry<Col> {
46
46
  /** Defines a terminal column node in the join request tree */
47
47
  export interface InlineColumnJoinEntry {
48
48
  /** Node type discriminator */
49
- readonly type: 'inlineColumn';
49
+ readonly type: "inlineColumn";
50
50
  /** Column definition */
51
51
  readonly column: PColumn<PColumnValues>;
52
52
  }
@@ -56,7 +56,7 @@ export interface InlineColumnJoinEntry {
56
56
  * */
57
57
  export interface InnerJoin<Col> {
58
58
  /** Node type discriminator */
59
- readonly type: 'inner';
59
+ readonly type: "inner";
60
60
  /** Child nodes to be inner joined */
61
61
  readonly entries: JoinEntry<Col>[];
62
62
  }
@@ -68,7 +68,7 @@ export interface InnerJoin<Col> {
68
68
  * */
69
69
  export interface FullJoin<Col> {
70
70
  /** Node type discriminator */
71
- readonly type: 'full';
71
+ readonly type: "full";
72
72
  /** Child nodes to be fully outer joined */
73
73
  readonly entries: JoinEntry<Col>[];
74
74
  }
@@ -84,7 +84,7 @@ export interface FullJoin<Col> {
84
84
  * */
85
85
  export interface OuterJoin<Col> {
86
86
  /** Node type discriminator */
87
- readonly type: 'outer';
87
+ readonly type: "outer";
88
88
  /** Primes the join operation. Left part of LEFT JOIN. */
89
89
  readonly primary: JoinEntry<Col>;
90
90
  /** Driven nodes, giving their values only if primary node have corresponding
@@ -108,71 +108,71 @@ export interface FullPTableColumnData {
108
108
  }
109
109
  export interface SingleValueIsNAPredicate {
110
110
  /** Comparison operator */
111
- readonly operator: 'IsNA';
111
+ readonly operator: "IsNA";
112
112
  }
113
113
  export interface SingleValueEqualPredicate {
114
114
  /** Comparison operator */
115
- readonly operator: 'Equal';
115
+ readonly operator: "Equal";
116
116
  /** Reference value, NA values will not match */
117
117
  readonly reference: string | number;
118
118
  }
119
119
  export interface SingleValueInSetPredicate {
120
120
  /** Comparison operator */
121
- readonly operator: 'InSet';
121
+ readonly operator: "InSet";
122
122
  /** Reference values, NA values will not match */
123
123
  readonly references: (string | number)[];
124
124
  }
125
125
  export interface SingleValueIEqualPredicate {
126
126
  /** Comparison operator (case insensitive) */
127
- readonly operator: 'IEqual';
127
+ readonly operator: "IEqual";
128
128
  /** Reference value, NA values will not match */
129
129
  readonly reference: string;
130
130
  }
131
131
  export interface SingleValueLessPredicate {
132
132
  /** Comparison operator */
133
- readonly operator: 'Less';
133
+ readonly operator: "Less";
134
134
  /** Reference value, NA values will not match */
135
135
  readonly reference: string | number;
136
136
  }
137
137
  export interface SingleValueLessOrEqualPredicate {
138
138
  /** Comparison operator */
139
- readonly operator: 'LessOrEqual';
139
+ readonly operator: "LessOrEqual";
140
140
  /** Reference value, NA values will not match */
141
141
  readonly reference: string | number;
142
142
  }
143
143
  export interface SingleValueGreaterPredicate {
144
144
  /** Comparison operator */
145
- readonly operator: 'Greater';
145
+ readonly operator: "Greater";
146
146
  /** Reference value, NA values will not match */
147
147
  readonly reference: string | number;
148
148
  }
149
149
  export interface SingleValueGreaterOrEqualPredicate {
150
150
  /** Comparison operator */
151
- readonly operator: 'GreaterOrEqual';
151
+ readonly operator: "GreaterOrEqual";
152
152
  /** Reference value, NA values will not match */
153
153
  readonly reference: string | number;
154
154
  }
155
155
  export interface SingleValueStringContainsPredicate {
156
156
  /** Comparison operator */
157
- readonly operator: 'StringContains';
157
+ readonly operator: "StringContains";
158
158
  /** Reference substring, NA values are skipped */
159
159
  readonly substring: string;
160
160
  }
161
161
  export interface SingleValueStringIContainsPredicate {
162
162
  /** Comparison operator (case insensitive) */
163
- readonly operator: 'StringIContains';
163
+ readonly operator: "StringIContains";
164
164
  /** Reference substring, NA values are skipped */
165
165
  readonly substring: string;
166
166
  }
167
167
  export interface SingleValueMatchesPredicate {
168
168
  /** Comparison operator */
169
- readonly operator: 'Matches';
169
+ readonly operator: "Matches";
170
170
  /** Regular expression, NA values are skipped */
171
171
  readonly regex: string;
172
172
  }
173
173
  export interface SingleValueStringContainsFuzzyPredicate {
174
174
  /** Comparison operator */
175
- readonly operator: 'StringContainsFuzzy';
175
+ readonly operator: "StringContainsFuzzy";
176
176
  /** Reference value, NA values are skipped */
177
177
  readonly reference: string;
178
178
  /**
@@ -196,7 +196,7 @@ export interface SingleValueStringContainsFuzzyPredicate {
196
196
  }
197
197
  export interface SingleValueStringIContainsFuzzyPredicate {
198
198
  /** Comparison operator (case insensitive) */
199
- readonly operator: 'StringIContainsFuzzy';
199
+ readonly operator: "StringIContainsFuzzy";
200
200
  /** Reference value, NA values are skipped */
201
201
  readonly reference: string;
202
202
  /**
@@ -220,19 +220,19 @@ export interface SingleValueStringIContainsFuzzyPredicate {
220
220
  }
221
221
  export interface SingleValueNotPredicateV2 {
222
222
  /** Comparison operator */
223
- readonly operator: 'Not';
223
+ readonly operator: "Not";
224
224
  /** Operand to negate */
225
225
  readonly operand: SingleValuePredicateV2;
226
226
  }
227
227
  export interface SingleValueAndPredicateV2 {
228
228
  /** Comparison operator */
229
- readonly operator: 'And';
229
+ readonly operator: "And";
230
230
  /** Operands to combine */
231
231
  readonly operands: SingleValuePredicateV2[];
232
232
  }
233
233
  export interface SingleValueOrPredicateV2 {
234
234
  /** Comparison operator */
235
- readonly operator: 'Or';
235
+ readonly operator: "Or";
236
236
  /** Operands to combine */
237
237
  readonly operands: SingleValuePredicateV2[];
238
238
  }
@@ -246,7 +246,7 @@ export type SingleValuePredicateV2 = SingleValueIsNAPredicate | SingleValueEqual
246
246
  * */
247
247
  export interface PTableRecordSingleValueFilterV2 {
248
248
  /** Filter type discriminator */
249
- readonly type: 'bySingleColumnV2';
249
+ readonly type: "bySingleColumnV2";
250
250
  /** Target axis selector to examine values from */
251
251
  readonly column: PTableColumnId;
252
252
  /** Value predicate */
@@ -1 +1 @@
1
- {"version":3,"file":"table_calculate.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/table_calculate.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,OAAO,EAAE,M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C,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAE7B,wBAAwB;IACxB,QAAQ,CAAC,gBAAgB,EAAE,kBAAkB,EAAE,CAAC;IAEhD,qBAAqB;IACrB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAEvC,oBAAoB;IACpB,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;CACnC;AAED,iEAAiE;AACjE,MAAM,MAAM,yBAAyB,CAAC,GAAG,IAAI;IAC3C,uCAAuC;IACvC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IAE7B,qBAAqB;IACrB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAEvC,oBAAoB;IACpB,QAAQ,CAAC,OAAO,EAAE,aAAa,EAAE,CAAC;CACnC,CAAC;AAEF,qDAAqD;AACrD,MAAM,MAAM,0BAA0B,GAAG,oBAAoB,EAAE,CAAC;AAEhE,wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC,CAEzF;AAED,wBAAgB,YAAY,CAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,GAAG,SAAS,CAAC,EAAE,CAAC,CAsC3F"}
@@ -5,36 +5,36 @@ function mapPTableDef(def, cb) {
5
5
  }
6
6
  function mapJoinEntry(entry, cb) {
7
7
  switch (entry.type) {
8
- case 'column':
8
+ case "column":
9
9
  return {
10
- type: 'column',
10
+ type: "column",
11
11
  column: cb(entry.column),
12
12
  };
13
- case 'slicedColumn':
13
+ case "slicedColumn":
14
14
  return {
15
- type: 'slicedColumn',
15
+ type: "slicedColumn",
16
16
  column: cb(entry.column),
17
17
  newId: entry.newId,
18
18
  axisFilters: entry.axisFilters,
19
19
  };
20
- case 'artificialColumn':
20
+ case "artificialColumn":
21
21
  return {
22
- type: 'artificialColumn',
22
+ type: "artificialColumn",
23
23
  column: cb(entry.column),
24
24
  newId: entry.newId,
25
25
  axesIndices: entry.axesIndices,
26
26
  };
27
- case 'inlineColumn':
27
+ case "inlineColumn":
28
28
  return entry;
29
- case 'inner':
30
- case 'full':
29
+ case "inner":
30
+ case "full":
31
31
  return {
32
32
  type: entry.type,
33
33
  entries: entry.entries.map((col) => mapJoinEntry(col, cb)),
34
34
  };
35
- case 'outer':
35
+ case "outer":
36
36
  return {
37
- type: 'outer',
37
+ type: "outer",
38
38
  primary: mapJoinEntry(entry.primary, cb),
39
39
  secondary: entry.secondary.map((col) => mapJoinEntry(col, cb)),
40
40
  };
@@ -1 +1 @@
1
- {"version":3,"file":"table_calculate.js","sources":["../../../src/drivers/pframe/table_calculate.ts"],"sourcesContent":["import type { PTableColumnId, PTableColumnSpec } from './table_common';\nimport type { PTableVector } from './data_types';\nimport type { PObjectId } from '../../pool';\nimport { assertNever } from '../../util';\nimport type { PColumn } from './spec/spec';\nimport type { PColumnValues } from './data_info';\n\n/** Defines a terminal column node in the join request tree */\nexport interface ColumnJoinEntry<Col> {\n /** Node type discriminator */\n readonly type: 'column';\n\n /** Local column */\n readonly column: Col;\n}\n\n/**\n * Axis filter slicing target axis from column axes.\n * If the axis has parents or is a parent, slicing cannot be applied (an error will be thrown).\n * */\nexport interface ConstantAxisFilter {\n /** Filter type discriminator */\n readonly type: 'constant';\n\n /** Index of axis to slice (zero-based) */\n readonly axisIndex: number;\n\n /** Equality filter reference value, see {@link SingleValueEqualPredicate} */\n readonly constant: string | number;\n}\n\n/** Defines a terminal column node in the join request tree */\nexport interface SlicedColumnJoinEntry<Col> {\n /** Node type discriminator */\n readonly type: 'slicedColumn';\n\n /** Local column */\n readonly column: Col;\n\n /** New column id */\n readonly newId: PObjectId;\n\n /** Non-empty list of axis filters */\n readonly axisFilters: ConstantAxisFilter[];\n}\n\nexport interface ArtificialColumnJoinEntry<Col> {\n /** Node type discriminator */\n readonly type: 'artificialColumn';\n\n /** Column definition */\n readonly column: Col;\n\n /** New column id */\n readonly newId: PObjectId;\n\n /** Indices of axes to pick from the column (zero-based) */\n readonly axesIndices: number[];\n}\n\n/** Defines a terminal column node in the join request tree */\nexport interface InlineColumnJoinEntry {\n /** Node type discriminator */\n readonly type: 'inlineColumn';\n\n /** Column definition */\n readonly column: PColumn<PColumnValues>;\n}\n\n/**\n * Defines a join request tree node that will output only records present in\n * all child nodes ({@link entries}).\n * */\nexport interface InnerJoin<Col> {\n /** Node type discriminator */\n readonly type: 'inner';\n\n /** Child nodes to be inner joined */\n readonly entries: JoinEntry<Col>[];\n}\n\n/**\n * Defines a join request tree node that will output all records present at\n * least in one of the child nodes ({@link entries}), values for those PColumns\n * that lacks corresponding combinations of axis values will be marked as absent,\n * see {@link PTableVector.absent}.\n * */\nexport interface FullJoin<Col> {\n /** Node type discriminator */\n readonly type: 'full';\n\n /** Child nodes to be fully outer joined */\n readonly entries: JoinEntry<Col>[];\n}\n\n/**\n * Defines a join request tree node that will output all records present in\n * {@link primary} child node, and records from the {@link secondary} nodes will\n * be added to the output only if present, values for those PColumns from the\n * {@link secondary} list, that lacks corresponding combinations of axis values\n * will be marked as absent, see {@link PTableVector.absent}.\n *\n * This node can be thought as a chain of SQL LEFT JOIN operations starting from\n * the {@link primary} node and adding {@link secondary} nodes one by one.\n * */\nexport interface OuterJoin<Col> {\n /** Node type discriminator */\n readonly type: 'outer';\n\n /** Primes the join operation. Left part of LEFT JOIN. */\n readonly primary: JoinEntry<Col>;\n\n /** Driven nodes, giving their values only if primary node have corresponding\n * nodes. Right parts of LEFT JOIN chain. */\n readonly secondary: JoinEntry<Col>[];\n}\n\n/**\n * Base type of all join request tree nodes. Join request tree allows to combine\n * information from multiple PColumns into a PTable. Correlation between records\n * is performed by looking for records with the same values in common axis between\n * the PColumns. Common axis are those axis which have equal {@link AxisId} derived\n * from the columns axes spec.\n * */\nexport type JoinEntry<Col> =\n | ColumnJoinEntry<Col>\n | SlicedColumnJoinEntry<Col>\n | ArtificialColumnJoinEntry<Col>\n | InlineColumnJoinEntry\n | InnerJoin<Col>\n | FullJoin<Col>\n | OuterJoin<Col>;\n\n/** Container representing whole data stored in specific PTable column. */\nexport interface FullPTableColumnData {\n /** Unified spec */\n readonly spec: PTableColumnSpec;\n\n /** Data */\n readonly data: PTableVector;\n}\n\nexport interface SingleValueIsNAPredicate {\n /** Comparison operator */\n readonly operator: 'IsNA';\n}\n\nexport interface SingleValueEqualPredicate {\n /** Comparison operator */\n readonly operator: 'Equal';\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueInSetPredicate {\n /** Comparison operator */\n readonly operator: 'InSet';\n\n /** Reference values, NA values will not match */\n readonly references: (string | number)[];\n}\n\nexport interface SingleValueIEqualPredicate {\n /** Comparison operator (case insensitive) */\n readonly operator: 'IEqual';\n\n /** Reference value, NA values will not match */\n readonly reference: string;\n}\n\nexport interface SingleValueLessPredicate {\n /** Comparison operator */\n readonly operator: 'Less';\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueLessOrEqualPredicate {\n /** Comparison operator */\n readonly operator: 'LessOrEqual';\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueGreaterPredicate {\n /** Comparison operator */\n readonly operator: 'Greater';\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueGreaterOrEqualPredicate {\n /** Comparison operator */\n readonly operator: 'GreaterOrEqual';\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueStringContainsPredicate {\n /** Comparison operator */\n readonly operator: 'StringContains';\n\n /** Reference substring, NA values are skipped */\n readonly substring: string;\n}\n\nexport interface SingleValueStringIContainsPredicate {\n /** Comparison operator (case insensitive) */\n readonly operator: 'StringIContains';\n\n /** Reference substring, NA values are skipped */\n readonly substring: string;\n}\n\nexport interface SingleValueMatchesPredicate {\n /** Comparison operator */\n readonly operator: 'Matches';\n\n /** Regular expression, NA values are skipped */\n readonly regex: string;\n}\n\nexport interface SingleValueStringContainsFuzzyPredicate {\n /** Comparison operator */\n readonly operator: 'StringContainsFuzzy';\n\n /** Reference value, NA values are skipped */\n readonly reference: string;\n\n /**\n * Integer specifying the upper bound of edit distance between\n * reference and actual value.\n * When {@link substitutionsOnly} is not defined or set to false\n * Levenshtein distance is used (substitutions and indels)\n * @see https://en.wikipedia.org/wiki/Levenshtein_distance\n * When {@link substitutionsOnly} is set to true\n * Hamming distance is used (substitutions only)\n * @see https://en.wikipedia.org/wiki/Hamming_distance\n */\n readonly maxEdits: number;\n\n /** Changes the type of edit distance in {@link maxEdits} */\n readonly substitutionsOnly?: boolean;\n\n /**\n * Some character in {@link reference} that will match any\n * single character in searched text.\n */\n readonly wildcard?: string;\n}\n\nexport interface SingleValueStringIContainsFuzzyPredicate {\n /** Comparison operator (case insensitive) */\n readonly operator: 'StringIContainsFuzzy';\n\n /** Reference value, NA values are skipped */\n readonly reference: string;\n\n /**\n * Integer specifying the upper bound of edit distance between\n * reference and actual value.\n * When {@link substitutionsOnly} is not defined or set to false\n * Levenshtein distance is used (substitutions and indels)\n * @see https://en.wikipedia.org/wiki/Levenshtein_distance\n * When {@link substitutionsOnly} is set to true\n * Hamming distance is used (substitutions only)\n * @see https://en.wikipedia.org/wiki/Hamming_distance\n */\n readonly maxEdits: number;\n\n /** Changes the type of edit distance in {@link maxEdits} */\n readonly substitutionsOnly?: boolean;\n\n /**\n * Some character in {@link reference} that will match any\n * single character in searched text.\n */\n readonly wildcard?: string;\n}\n\nexport interface SingleValueNotPredicateV2 {\n /** Comparison operator */\n readonly operator: 'Not';\n\n /** Operand to negate */\n readonly operand: SingleValuePredicateV2;\n}\n\nexport interface SingleValueAndPredicateV2 {\n /** Comparison operator */\n readonly operator: 'And';\n\n /** Operands to combine */\n readonly operands: SingleValuePredicateV2[];\n}\n\nexport interface SingleValueOrPredicateV2 {\n /** Comparison operator */\n readonly operator: 'Or';\n\n /** Operands to combine */\n readonly operands: SingleValuePredicateV2[];\n}\n\n/** Filtering predicate for a single axis or column value */\nexport type SingleValuePredicateV2 =\n | SingleValueIsNAPredicate\n | SingleValueEqualPredicate\n | SingleValueInSetPredicate\n | SingleValueLessPredicate\n | SingleValueLessOrEqualPredicate\n | SingleValueGreaterPredicate\n | SingleValueGreaterOrEqualPredicate\n | SingleValueStringContainsPredicate\n | SingleValueMatchesPredicate\n | SingleValueStringContainsFuzzyPredicate\n | SingleValueNotPredicateV2\n | SingleValueAndPredicateV2\n | SingleValueOrPredicateV2\n | SingleValueIEqualPredicate\n | SingleValueStringIContainsPredicate\n | SingleValueStringIContainsFuzzyPredicate;\n\n/**\n * Filter PTable records based on specific axis or column value. If this is an\n * axis value filter and the axis is part of a partitioning key in some of the\n * source PColumns, the filter will be pushed down to those columns, so only\n * specific partitions will be retrieved from the remote storage.\n * */\nexport interface PTableRecordSingleValueFilterV2 {\n /** Filter type discriminator */\n readonly type: 'bySingleColumnV2';\n\n /** Target axis selector to examine values from */\n readonly column: PTableColumnId;\n\n /** Value predicate */\n readonly predicate: SingleValuePredicateV2;\n}\n\n/** Generic PTable records filter */\nexport type PTableRecordFilter = PTableRecordSingleValueFilterV2;\n\n/** Sorting parameters for a PTable. */\nexport type PTableSorting = {\n /** Unified column identifier */\n readonly column: PTableColumnId;\n\n /** Sorting order */\n readonly ascending: boolean;\n\n /** Sorting in respect to NA and absent values */\n readonly naAndAbsentAreLeastValues: boolean;\n};\n\n/** Information required to instantiate a PTable. */\nexport interface PTableDef<Col> {\n /** Join tree to populate the PTable */\n readonly src: JoinEntry<Col>;\n\n /** Partition filters */\n readonly partitionFilters: PTableRecordFilter[];\n\n /** Record filters */\n readonly filters: PTableRecordFilter[];\n\n /** Table sorting */\n readonly sorting: PTableSorting[];\n}\n\n/** Request to create and retrieve entirety of data of PTable. */\nexport type CalculateTableDataRequest<Col> = {\n /** Join tree to populate the PTable */\n readonly src: JoinEntry<Col>;\n\n /** Record filters */\n readonly filters: PTableRecordFilter[];\n\n /** Table sorting */\n readonly sorting: PTableSorting[];\n};\n\n/** Response for {@link CalculateTableDataRequest} */\nexport type CalculateTableDataResponse = FullPTableColumnData[];\n\nexport function mapPTableDef<C1, C2>(\n def: PTableDef<C1>,\n cb: (c: C1) => C2,\n): PTableDef<C2> {\n return { ...def, src: mapJoinEntry(def.src, cb) };\n}\n\nexport function mapJoinEntry<C1, C2>(\n entry: JoinEntry<C1>,\n cb: (c: C1) => C2,\n): JoinEntry<C2> {\n switch (entry.type) {\n case 'column':\n return {\n type: 'column',\n column: cb(entry.column),\n };\n case 'slicedColumn':\n return {\n type: 'slicedColumn',\n column: cb(entry.column),\n newId: entry.newId,\n axisFilters: entry.axisFilters,\n };\n case 'artificialColumn':\n return {\n type: 'artificialColumn',\n column: cb(entry.column),\n newId: entry.newId,\n axesIndices: entry.axesIndices,\n };\n case 'inlineColumn':\n return entry;\n case 'inner':\n case 'full':\n return {\n type: entry.type,\n entries: entry.entries.map((col) => mapJoinEntry(col, cb)),\n };\n case 'outer':\n return {\n type: 'outer',\n primary: mapJoinEntry(entry.primary, cb),\n secondary: entry.secondary.map((col) => mapJoinEntry(col, cb)),\n };\n default:\n assertNever(entry);\n }\n}\n"],"names":[],"mappings":";;AAsYM,SAAU,YAAY,CAC1B,GAAkB,EAClB,EAAiB,EAAA;AAEjB,IAAA,OAAO,EAAE,GAAG,GAAG,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE;AACnD;AAEM,SAAU,YAAY,CAC1B,KAAoB,EACpB,EAAiB,EAAA;AAEjB,IAAA,QAAQ,KAAK,CAAC,IAAI;AAChB,QAAA,KAAK,QAAQ;YACX,OAAO;AACL,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;aACzB;AACH,QAAA,KAAK,cAAc;YACjB,OAAO;AACL,gBAAA,IAAI,EAAE,cAAc;AACpB,gBAAA,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,WAAW,EAAE,KAAK,CAAC,WAAW;aAC/B;AACH,QAAA,KAAK,kBAAkB;YACrB,OAAO;AACL,gBAAA,IAAI,EAAE,kBAAkB;AACxB,gBAAA,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,WAAW,EAAE,KAAK,CAAC,WAAW;aAC/B;AACH,QAAA,KAAK,cAAc;AACjB,YAAA,OAAO,KAAK;AACd,QAAA,KAAK,OAAO;AACZ,QAAA,KAAK,MAAM;YACT,OAAO;gBACL,IAAI,EAAE,KAAK,CAAC,IAAI;AAChB,gBAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;aAC3D;AACH,QAAA,KAAK,OAAO;YACV,OAAO;AACL,gBAAA,IAAI,EAAE,OAAO;gBACb,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;AACxC,gBAAA,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;aAC/D;AACH,QAAA;YACE,WAAW,CAAC,KAAK,CAAC;;AAExB;;;;"}
1
+ {"version":3,"file":"table_calculate.js","sources":["../../../src/drivers/pframe/table_calculate.ts"],"sourcesContent":["import type { PTableColumnId, PTableColumnSpec } from \"./table_common\";\nimport type { PTableVector } from \"./data_types\";\nimport type { PObjectId } from \"../../pool\";\nimport { assertNever } from \"../../util\";\nimport type { PColumn } from \"./spec/spec\";\nimport type { PColumnValues } from \"./data_info\";\n\n/** Defines a terminal column node in the join request tree */\nexport interface ColumnJoinEntry<Col> {\n /** Node type discriminator */\n readonly type: \"column\";\n\n /** Local column */\n readonly column: Col;\n}\n\n/**\n * Axis filter slicing target axis from column axes.\n * If the axis has parents or is a parent, slicing cannot be applied (an error will be thrown).\n * */\nexport interface ConstantAxisFilter {\n /** Filter type discriminator */\n readonly type: \"constant\";\n\n /** Index of axis to slice (zero-based) */\n readonly axisIndex: number;\n\n /** Equality filter reference value, see {@link SingleValueEqualPredicate} */\n readonly constant: string | number;\n}\n\n/** Defines a terminal column node in the join request tree */\nexport interface SlicedColumnJoinEntry<Col> {\n /** Node type discriminator */\n readonly type: \"slicedColumn\";\n\n /** Local column */\n readonly column: Col;\n\n /** New column id */\n readonly newId: PObjectId;\n\n /** Non-empty list of axis filters */\n readonly axisFilters: ConstantAxisFilter[];\n}\n\nexport interface ArtificialColumnJoinEntry<Col> {\n /** Node type discriminator */\n readonly type: \"artificialColumn\";\n\n /** Column definition */\n readonly column: Col;\n\n /** New column id */\n readonly newId: PObjectId;\n\n /** Indices of axes to pick from the column (zero-based) */\n readonly axesIndices: number[];\n}\n\n/** Defines a terminal column node in the join request tree */\nexport interface InlineColumnJoinEntry {\n /** Node type discriminator */\n readonly type: \"inlineColumn\";\n\n /** Column definition */\n readonly column: PColumn<PColumnValues>;\n}\n\n/**\n * Defines a join request tree node that will output only records present in\n * all child nodes ({@link entries}).\n * */\nexport interface InnerJoin<Col> {\n /** Node type discriminator */\n readonly type: \"inner\";\n\n /** Child nodes to be inner joined */\n readonly entries: JoinEntry<Col>[];\n}\n\n/**\n * Defines a join request tree node that will output all records present at\n * least in one of the child nodes ({@link entries}), values for those PColumns\n * that lacks corresponding combinations of axis values will be marked as absent,\n * see {@link PTableVector.absent}.\n * */\nexport interface FullJoin<Col> {\n /** Node type discriminator */\n readonly type: \"full\";\n\n /** Child nodes to be fully outer joined */\n readonly entries: JoinEntry<Col>[];\n}\n\n/**\n * Defines a join request tree node that will output all records present in\n * {@link primary} child node, and records from the {@link secondary} nodes will\n * be added to the output only if present, values for those PColumns from the\n * {@link secondary} list, that lacks corresponding combinations of axis values\n * will be marked as absent, see {@link PTableVector.absent}.\n *\n * This node can be thought as a chain of SQL LEFT JOIN operations starting from\n * the {@link primary} node and adding {@link secondary} nodes one by one.\n * */\nexport interface OuterJoin<Col> {\n /** Node type discriminator */\n readonly type: \"outer\";\n\n /** Primes the join operation. Left part of LEFT JOIN. */\n readonly primary: JoinEntry<Col>;\n\n /** Driven nodes, giving their values only if primary node have corresponding\n * nodes. Right parts of LEFT JOIN chain. */\n readonly secondary: JoinEntry<Col>[];\n}\n\n/**\n * Base type of all join request tree nodes. Join request tree allows to combine\n * information from multiple PColumns into a PTable. Correlation between records\n * is performed by looking for records with the same values in common axis between\n * the PColumns. Common axis are those axis which have equal {@link AxisId} derived\n * from the columns axes spec.\n * */\nexport type JoinEntry<Col> =\n | ColumnJoinEntry<Col>\n | SlicedColumnJoinEntry<Col>\n | ArtificialColumnJoinEntry<Col>\n | InlineColumnJoinEntry\n | InnerJoin<Col>\n | FullJoin<Col>\n | OuterJoin<Col>;\n\n/** Container representing whole data stored in specific PTable column. */\nexport interface FullPTableColumnData {\n /** Unified spec */\n readonly spec: PTableColumnSpec;\n\n /** Data */\n readonly data: PTableVector;\n}\n\nexport interface SingleValueIsNAPredicate {\n /** Comparison operator */\n readonly operator: \"IsNA\";\n}\n\nexport interface SingleValueEqualPredicate {\n /** Comparison operator */\n readonly operator: \"Equal\";\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueInSetPredicate {\n /** Comparison operator */\n readonly operator: \"InSet\";\n\n /** Reference values, NA values will not match */\n readonly references: (string | number)[];\n}\n\nexport interface SingleValueIEqualPredicate {\n /** Comparison operator (case insensitive) */\n readonly operator: \"IEqual\";\n\n /** Reference value, NA values will not match */\n readonly reference: string;\n}\n\nexport interface SingleValueLessPredicate {\n /** Comparison operator */\n readonly operator: \"Less\";\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueLessOrEqualPredicate {\n /** Comparison operator */\n readonly operator: \"LessOrEqual\";\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueGreaterPredicate {\n /** Comparison operator */\n readonly operator: \"Greater\";\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueGreaterOrEqualPredicate {\n /** Comparison operator */\n readonly operator: \"GreaterOrEqual\";\n\n /** Reference value, NA values will not match */\n readonly reference: string | number;\n}\n\nexport interface SingleValueStringContainsPredicate {\n /** Comparison operator */\n readonly operator: \"StringContains\";\n\n /** Reference substring, NA values are skipped */\n readonly substring: string;\n}\n\nexport interface SingleValueStringIContainsPredicate {\n /** Comparison operator (case insensitive) */\n readonly operator: \"StringIContains\";\n\n /** Reference substring, NA values are skipped */\n readonly substring: string;\n}\n\nexport interface SingleValueMatchesPredicate {\n /** Comparison operator */\n readonly operator: \"Matches\";\n\n /** Regular expression, NA values are skipped */\n readonly regex: string;\n}\n\nexport interface SingleValueStringContainsFuzzyPredicate {\n /** Comparison operator */\n readonly operator: \"StringContainsFuzzy\";\n\n /** Reference value, NA values are skipped */\n readonly reference: string;\n\n /**\n * Integer specifying the upper bound of edit distance between\n * reference and actual value.\n * When {@link substitutionsOnly} is not defined or set to false\n * Levenshtein distance is used (substitutions and indels)\n * @see https://en.wikipedia.org/wiki/Levenshtein_distance\n * When {@link substitutionsOnly} is set to true\n * Hamming distance is used (substitutions only)\n * @see https://en.wikipedia.org/wiki/Hamming_distance\n */\n readonly maxEdits: number;\n\n /** Changes the type of edit distance in {@link maxEdits} */\n readonly substitutionsOnly?: boolean;\n\n /**\n * Some character in {@link reference} that will match any\n * single character in searched text.\n */\n readonly wildcard?: string;\n}\n\nexport interface SingleValueStringIContainsFuzzyPredicate {\n /** Comparison operator (case insensitive) */\n readonly operator: \"StringIContainsFuzzy\";\n\n /** Reference value, NA values are skipped */\n readonly reference: string;\n\n /**\n * Integer specifying the upper bound of edit distance between\n * reference and actual value.\n * When {@link substitutionsOnly} is not defined or set to false\n * Levenshtein distance is used (substitutions and indels)\n * @see https://en.wikipedia.org/wiki/Levenshtein_distance\n * When {@link substitutionsOnly} is set to true\n * Hamming distance is used (substitutions only)\n * @see https://en.wikipedia.org/wiki/Hamming_distance\n */\n readonly maxEdits: number;\n\n /** Changes the type of edit distance in {@link maxEdits} */\n readonly substitutionsOnly?: boolean;\n\n /**\n * Some character in {@link reference} that will match any\n * single character in searched text.\n */\n readonly wildcard?: string;\n}\n\nexport interface SingleValueNotPredicateV2 {\n /** Comparison operator */\n readonly operator: \"Not\";\n\n /** Operand to negate */\n readonly operand: SingleValuePredicateV2;\n}\n\nexport interface SingleValueAndPredicateV2 {\n /** Comparison operator */\n readonly operator: \"And\";\n\n /** Operands to combine */\n readonly operands: SingleValuePredicateV2[];\n}\n\nexport interface SingleValueOrPredicateV2 {\n /** Comparison operator */\n readonly operator: \"Or\";\n\n /** Operands to combine */\n readonly operands: SingleValuePredicateV2[];\n}\n\n/** Filtering predicate for a single axis or column value */\nexport type SingleValuePredicateV2 =\n | SingleValueIsNAPredicate\n | SingleValueEqualPredicate\n | SingleValueInSetPredicate\n | SingleValueLessPredicate\n | SingleValueLessOrEqualPredicate\n | SingleValueGreaterPredicate\n | SingleValueGreaterOrEqualPredicate\n | SingleValueStringContainsPredicate\n | SingleValueMatchesPredicate\n | SingleValueStringContainsFuzzyPredicate\n | SingleValueNotPredicateV2\n | SingleValueAndPredicateV2\n | SingleValueOrPredicateV2\n | SingleValueIEqualPredicate\n | SingleValueStringIContainsPredicate\n | SingleValueStringIContainsFuzzyPredicate;\n\n/**\n * Filter PTable records based on specific axis or column value. If this is an\n * axis value filter and the axis is part of a partitioning key in some of the\n * source PColumns, the filter will be pushed down to those columns, so only\n * specific partitions will be retrieved from the remote storage.\n * */\nexport interface PTableRecordSingleValueFilterV2 {\n /** Filter type discriminator */\n readonly type: \"bySingleColumnV2\";\n\n /** Target axis selector to examine values from */\n readonly column: PTableColumnId;\n\n /** Value predicate */\n readonly predicate: SingleValuePredicateV2;\n}\n\n/** Generic PTable records filter */\nexport type PTableRecordFilter = PTableRecordSingleValueFilterV2;\n\n/** Sorting parameters for a PTable. */\nexport type PTableSorting = {\n /** Unified column identifier */\n readonly column: PTableColumnId;\n\n /** Sorting order */\n readonly ascending: boolean;\n\n /** Sorting in respect to NA and absent values */\n readonly naAndAbsentAreLeastValues: boolean;\n};\n\n/** Information required to instantiate a PTable. */\nexport interface PTableDef<Col> {\n /** Join tree to populate the PTable */\n readonly src: JoinEntry<Col>;\n\n /** Partition filters */\n readonly partitionFilters: PTableRecordFilter[];\n\n /** Record filters */\n readonly filters: PTableRecordFilter[];\n\n /** Table sorting */\n readonly sorting: PTableSorting[];\n}\n\n/** Request to create and retrieve entirety of data of PTable. */\nexport type CalculateTableDataRequest<Col> = {\n /** Join tree to populate the PTable */\n readonly src: JoinEntry<Col>;\n\n /** Record filters */\n readonly filters: PTableRecordFilter[];\n\n /** Table sorting */\n readonly sorting: PTableSorting[];\n};\n\n/** Response for {@link CalculateTableDataRequest} */\nexport type CalculateTableDataResponse = FullPTableColumnData[];\n\nexport function mapPTableDef<C1, C2>(def: PTableDef<C1>, cb: (c: C1) => C2): PTableDef<C2> {\n return { ...def, src: mapJoinEntry(def.src, cb) };\n}\n\nexport function mapJoinEntry<C1, C2>(entry: JoinEntry<C1>, cb: (c: C1) => C2): JoinEntry<C2> {\n switch (entry.type) {\n case \"column\":\n return {\n type: \"column\",\n column: cb(entry.column),\n };\n case \"slicedColumn\":\n return {\n type: \"slicedColumn\",\n column: cb(entry.column),\n newId: entry.newId,\n axisFilters: entry.axisFilters,\n };\n case \"artificialColumn\":\n return {\n type: \"artificialColumn\",\n column: cb(entry.column),\n newId: entry.newId,\n axesIndices: entry.axesIndices,\n };\n case \"inlineColumn\":\n return entry;\n case \"inner\":\n case \"full\":\n return {\n type: entry.type,\n entries: entry.entries.map((col) => mapJoinEntry(col, cb)),\n };\n case \"outer\":\n return {\n type: \"outer\",\n primary: mapJoinEntry(entry.primary, cb),\n secondary: entry.secondary.map((col) => mapJoinEntry(col, cb)),\n };\n default:\n assertNever(entry);\n }\n}\n"],"names":[],"mappings":";;AAsYM,SAAU,YAAY,CAAS,GAAkB,EAAE,EAAiB,EAAA;AACxE,IAAA,OAAO,EAAE,GAAG,GAAG,EAAE,GAAG,EAAE,YAAY,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,EAAE;AACnD;AAEM,SAAU,YAAY,CAAS,KAAoB,EAAE,EAAiB,EAAA;AAC1E,IAAA,QAAQ,KAAK,CAAC,IAAI;AAChB,QAAA,KAAK,QAAQ;YACX,OAAO;AACL,gBAAA,IAAI,EAAE,QAAQ;AACd,gBAAA,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;aACzB;AACH,QAAA,KAAK,cAAc;YACjB,OAAO;AACL,gBAAA,IAAI,EAAE,cAAc;AACpB,gBAAA,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,WAAW,EAAE,KAAK,CAAC,WAAW;aAC/B;AACH,QAAA,KAAK,kBAAkB;YACrB,OAAO;AACL,gBAAA,IAAI,EAAE,kBAAkB;AACxB,gBAAA,MAAM,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC;gBACxB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,WAAW,EAAE,KAAK,CAAC,WAAW;aAC/B;AACH,QAAA,KAAK,cAAc;AACjB,YAAA,OAAO,KAAK;AACd,QAAA,KAAK,OAAO;AACZ,QAAA,KAAK,MAAM;YACT,OAAO;gBACL,IAAI,EAAE,KAAK,CAAC,IAAI;AAChB,gBAAA,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;aAC3D;AACH,QAAA,KAAK,OAAO;YACV,OAAO;AACL,gBAAA,IAAI,EAAE,OAAO;gBACb,OAAO,EAAE,YAAY,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC;AACxC,gBAAA,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,GAAG,KAAK,YAAY,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;aAC/D;AACH,QAAA;YACE,WAAW,CAAC,KAAK,CAAC;;AAExB;;;;"}
@@ -2,14 +2,14 @@
2
2
 
3
3
  function getPTableColumnId(spec) {
4
4
  switch (spec.type) {
5
- case 'axis':
5
+ case "axis":
6
6
  return {
7
- type: 'axis',
7
+ type: "axis",
8
8
  id: spec.id,
9
9
  };
10
- case 'column':
10
+ case "column":
11
11
  return {
12
- type: 'column',
12
+ type: "column",
13
13
  id: spec.id,
14
14
  };
15
15
  }
@@ -1 +1 @@
1
- {"version":3,"file":"table_common.cjs","sources":["../../../src/drivers/pframe/table_common.ts"],"sourcesContent":["import type { PObjectId } from '../../pool';\nimport type { AxisId, AxisSpec, PColumnSpec } from './spec/spec';\n\nexport type PTableColumnSpecAxis = {\n type: 'axis';\n id: AxisId;\n spec: AxisSpec;\n};\n\nexport type PTableColumnSpecColumn = {\n type: 'column';\n id: PObjectId;\n spec: PColumnSpec;\n};\n\n/** Unified spec object for axes and columns */\nexport type PTableColumnSpec = PTableColumnSpecAxis | PTableColumnSpecColumn;\n\nexport type PTableColumnIdAxis = {\n type: 'axis';\n id: AxisId;\n};\n\nexport type PTableColumnIdColumn = {\n type: 'column';\n id: PObjectId;\n};\n\n/** Unified PTable column identifier */\nexport type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;\n\nexport function getPTableColumnId(spec: PTableColumnSpec): PTableColumnId {\n switch (spec.type) {\n case 'axis':\n return {\n type: 'axis',\n id: spec.id,\n };\n case 'column':\n return {\n type: 'column',\n id: spec.id,\n };\n }\n}\n"],"names":[],"mappings":";;AA+BM,SAAU,iBAAiB,CAAC,IAAsB,EAAA;AACtD,IAAA,QAAQ,IAAI,CAAC,IAAI;AACf,QAAA,KAAK,MAAM;YACT,OAAO;AACL,gBAAA,IAAI,EAAE,MAAM;gBACZ,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;AACH,QAAA,KAAK,QAAQ;YACX,OAAO;AACL,gBAAA,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;;AAEP;;;;"}
1
+ {"version":3,"file":"table_common.cjs","sources":["../../../src/drivers/pframe/table_common.ts"],"sourcesContent":["import type { PObjectId } from \"../../pool\";\nimport type { AxisId, AxisSpec, PColumnSpec } from \"./spec/spec\";\n\nexport type PTableColumnSpecAxis = {\n type: \"axis\";\n id: AxisId;\n spec: AxisSpec;\n};\n\nexport type PTableColumnSpecColumn = {\n type: \"column\";\n id: PObjectId;\n spec: PColumnSpec;\n};\n\n/** Unified spec object for axes and columns */\nexport type PTableColumnSpec = PTableColumnSpecAxis | PTableColumnSpecColumn;\n\nexport type PTableColumnIdAxis = {\n type: \"axis\";\n id: AxisId;\n};\n\nexport type PTableColumnIdColumn = {\n type: \"column\";\n id: PObjectId;\n};\n\n/** Unified PTable column identifier */\nexport type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;\n\nexport function getPTableColumnId(spec: PTableColumnSpec): PTableColumnId {\n switch (spec.type) {\n case \"axis\":\n return {\n type: \"axis\",\n id: spec.id,\n };\n case \"column\":\n return {\n type: \"column\",\n id: spec.id,\n };\n }\n}\n"],"names":[],"mappings":";;AA+BM,SAAU,iBAAiB,CAAC,IAAsB,EAAA;AACtD,IAAA,QAAQ,IAAI,CAAC,IAAI;AACf,QAAA,KAAK,MAAM;YACT,OAAO;AACL,gBAAA,IAAI,EAAE,MAAM;gBACZ,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;AACH,QAAA,KAAK,QAAQ;YACX,OAAO;AACL,gBAAA,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;;AAEP;;;;"}
@@ -1,23 +1,23 @@
1
- import type { PObjectId } from '../../pool';
2
- import type { AxisId, AxisSpec, PColumnSpec } from './spec/spec';
1
+ import type { PObjectId } from "../../pool";
2
+ import type { AxisId, AxisSpec, PColumnSpec } from "./spec/spec";
3
3
  export type PTableColumnSpecAxis = {
4
- type: 'axis';
4
+ type: "axis";
5
5
  id: AxisId;
6
6
  spec: AxisSpec;
7
7
  };
8
8
  export type PTableColumnSpecColumn = {
9
- type: 'column';
9
+ type: "column";
10
10
  id: PObjectId;
11
11
  spec: PColumnSpec;
12
12
  };
13
13
  /** Unified spec object for axes and columns */
14
14
  export type PTableColumnSpec = PTableColumnSpecAxis | PTableColumnSpecColumn;
15
15
  export type PTableColumnIdAxis = {
16
- type: 'axis';
16
+ type: "axis";
17
17
  id: AxisId;
18
18
  };
19
19
  export type PTableColumnIdColumn = {
20
- type: 'column';
20
+ type: "column";
21
21
  id: PObjectId;
22
22
  };
23
23
  /** Unified PTable column identifier */
@@ -1,13 +1,13 @@
1
1
  function getPTableColumnId(spec) {
2
2
  switch (spec.type) {
3
- case 'axis':
3
+ case "axis":
4
4
  return {
5
- type: 'axis',
5
+ type: "axis",
6
6
  id: spec.id,
7
7
  };
8
- case 'column':
8
+ case "column":
9
9
  return {
10
- type: 'column',
10
+ type: "column",
11
11
  id: spec.id,
12
12
  };
13
13
  }
@@ -1 +1 @@
1
- {"version":3,"file":"table_common.js","sources":["../../../src/drivers/pframe/table_common.ts"],"sourcesContent":["import type { PObjectId } from '../../pool';\nimport type { AxisId, AxisSpec, PColumnSpec } from './spec/spec';\n\nexport type PTableColumnSpecAxis = {\n type: 'axis';\n id: AxisId;\n spec: AxisSpec;\n};\n\nexport type PTableColumnSpecColumn = {\n type: 'column';\n id: PObjectId;\n spec: PColumnSpec;\n};\n\n/** Unified spec object for axes and columns */\nexport type PTableColumnSpec = PTableColumnSpecAxis | PTableColumnSpecColumn;\n\nexport type PTableColumnIdAxis = {\n type: 'axis';\n id: AxisId;\n};\n\nexport type PTableColumnIdColumn = {\n type: 'column';\n id: PObjectId;\n};\n\n/** Unified PTable column identifier */\nexport type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;\n\nexport function getPTableColumnId(spec: PTableColumnSpec): PTableColumnId {\n switch (spec.type) {\n case 'axis':\n return {\n type: 'axis',\n id: spec.id,\n };\n case 'column':\n return {\n type: 'column',\n id: spec.id,\n };\n }\n}\n"],"names":[],"mappings":"AA+BM,SAAU,iBAAiB,CAAC,IAAsB,EAAA;AACtD,IAAA,QAAQ,IAAI,CAAC,IAAI;AACf,QAAA,KAAK,MAAM;YACT,OAAO;AACL,gBAAA,IAAI,EAAE,MAAM;gBACZ,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;AACH,QAAA,KAAK,QAAQ;YACX,OAAO;AACL,gBAAA,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;;AAEP;;;;"}
1
+ {"version":3,"file":"table_common.js","sources":["../../../src/drivers/pframe/table_common.ts"],"sourcesContent":["import type { PObjectId } from \"../../pool\";\nimport type { AxisId, AxisSpec, PColumnSpec } from \"./spec/spec\";\n\nexport type PTableColumnSpecAxis = {\n type: \"axis\";\n id: AxisId;\n spec: AxisSpec;\n};\n\nexport type PTableColumnSpecColumn = {\n type: \"column\";\n id: PObjectId;\n spec: PColumnSpec;\n};\n\n/** Unified spec object for axes and columns */\nexport type PTableColumnSpec = PTableColumnSpecAxis | PTableColumnSpecColumn;\n\nexport type PTableColumnIdAxis = {\n type: \"axis\";\n id: AxisId;\n};\n\nexport type PTableColumnIdColumn = {\n type: \"column\";\n id: PObjectId;\n};\n\n/** Unified PTable column identifier */\nexport type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;\n\nexport function getPTableColumnId(spec: PTableColumnSpec): PTableColumnId {\n switch (spec.type) {\n case \"axis\":\n return {\n type: \"axis\",\n id: spec.id,\n };\n case \"column\":\n return {\n type: \"column\",\n id: spec.id,\n };\n }\n}\n"],"names":[],"mappings":"AA+BM,SAAU,iBAAiB,CAAC,IAAsB,EAAA;AACtD,IAAA,QAAQ,IAAI,CAAC,IAAI;AACf,QAAA,KAAK,MAAM;YACT,OAAO;AACL,gBAAA,IAAI,EAAE,MAAM;gBACZ,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;AACH,QAAA,KAAK,QAAQ;YACX,OAAO;AACL,gBAAA,IAAI,EAAE,QAAQ;gBACd,EAAE,EAAE,IAAI,CAAC,EAAE;aACZ;;AAEP;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"type_util.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/type_util.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,CACvB,WAAW,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,EAClC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,IACrC,CACF,GAAG,IAAI,EAAE,CAAC,GAAG,WAAW,EAAE,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,KAChD,UAAU,CAAC,SAAS,CAAC,CAAC;AAE3B,MAAM,MAAM,wBAAwB,CAClC,SAAS,EACT,WAAW,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,IAChC;KACD,KAAK,IAAI,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,GACtE,aAAa,CAAC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,GAC5C,SAAS,CAAC,KAAK,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"type_util.d.ts","sourceRoot":"","sources":["../../../src/drivers/pframe/type_util.ts"],"names":[],"mappings":"AACA,MAAM,MAAM,aAAa,CACvB,WAAW,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,EAClC,SAAS,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,IACrC,CAAC,GAAG,IAAI,EAAE,CAAC,GAAG,WAAW,EAAE,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,UAAU,CAAC,SAAS,CAAC,CAAC;AAEnF,MAAM,MAAM,wBAAwB,CAAC,SAAS,EAAE,WAAW,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,CAAC,IAAI;KACnF,KAAK,IAAI,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,GAAG,GACtE,aAAa,CAAC,WAAW,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC,GAC5C,SAAS,CAAC,KAAK,CAAC;CACrB,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { AxisId } from './spec/spec';
2
- import type { PTableRecordFilter } from './table_calculate';
3
- import type { PTableVector } from './data_types';
4
- import type { PObjectId } from '../../pool';
1
+ import type { AxisId } from "./spec/spec";
2
+ import type { PTableRecordFilter } from "./table_calculate";
3
+ import type { PTableVector } from "./data_types";
4
+ import type { PObjectId } from "../../pool";
5
5
  /** Calculate set of unique values for a specific axis for the filtered set of records */
6
6
  export interface UniqueValuesRequest {
7
7
  /** Target axis id */
@@ -2,11 +2,11 @@
2
2
 
3
3
  function isFolderURL(url) {
4
4
  const parsed = new URL(url);
5
- return parsed.protocol == 'plblob+folder:';
5
+ return parsed.protocol == "plblob+folder:";
6
6
  }
7
7
  function isBlockUIURL(url) {
8
8
  const parsed = new URL(url);
9
- return parsed.protocol == 'block-ui:';
9
+ return parsed.protocol == "block-ui:";
10
10
  }
11
11
 
12
12
  exports.isBlockUIURL = isBlockUIURL;
@@ -1 +1 @@
1
- {"version":3,"file":"urls.cjs","sources":["../../src/drivers/urls.ts"],"sourcesContent":["/**\n * plblob+folder://signature@sufolder_with_unzipped_blob/\n */\nexport type FolderURL = `plblob+folder://${string}`;\n\nexport type ArchiveFormat = 'zip' | 'tar' | 'tgz';\n\nexport interface BlobToURLDriver {\n getPathForCustomProtocol(url: FolderURL): string;\n}\n\nexport function isFolderURL(url: string): url is FolderURL {\n const parsed = new URL(url);\n return parsed.protocol == 'plblob+folder:';\n}\n\n/**\n * URLs and a custom protocol for the block UI.\n * block-ui://signature@folder_with_ui/\n */\nexport type BlockUIURL = `block-ui://${string}`;\n\nexport interface FrontendDriver {\n getPathForBlockUI(url: BlockUIURL): string;\n}\n\nexport function isBlockUIURL(url: string): url is BlockUIURL {\n const parsed = new URL(url);\n return parsed.protocol == 'block-ui:';\n}\n"],"names":[],"mappings":";;AAWM,SAAU,WAAW,CAAC,GAAW,EAAA;AACrC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,gBAAgB;AAC5C;AAYM,SAAU,YAAY,CAAC,GAAW,EAAA;AACtC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,WAAW;AACvC;;;;;"}
1
+ {"version":3,"file":"urls.cjs","sources":["../../src/drivers/urls.ts"],"sourcesContent":["/**\n * plblob+folder://signature@sufolder_with_unzipped_blob/\n */\nexport type FolderURL = `plblob+folder://${string}`;\n\nexport type ArchiveFormat = \"zip\" | \"tar\" | \"tgz\";\n\nexport interface BlobToURLDriver {\n getPathForCustomProtocol(url: FolderURL): string;\n}\n\nexport function isFolderURL(url: string): url is FolderURL {\n const parsed = new URL(url);\n return parsed.protocol == \"plblob+folder:\";\n}\n\n/**\n * URLs and a custom protocol for the block UI.\n * block-ui://signature@folder_with_ui/\n */\nexport type BlockUIURL = `block-ui://${string}`;\n\nexport interface FrontendDriver {\n getPathForBlockUI(url: BlockUIURL): string;\n}\n\nexport function isBlockUIURL(url: string): url is BlockUIURL {\n const parsed = new URL(url);\n return parsed.protocol == \"block-ui:\";\n}\n"],"names":[],"mappings":";;AAWM,SAAU,WAAW,CAAC,GAAW,EAAA;AACrC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,gBAAgB;AAC5C;AAYM,SAAU,YAAY,CAAC,GAAW,EAAA;AACtC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,WAAW;AACvC;;;;;"}
@@ -2,7 +2,7 @@
2
2
  * plblob+folder://signature@sufolder_with_unzipped_blob/
3
3
  */
4
4
  export type FolderURL = `plblob+folder://${string}`;
5
- export type ArchiveFormat = 'zip' | 'tar' | 'tgz';
5
+ export type ArchiveFormat = "zip" | "tar" | "tgz";
6
6
  export interface BlobToURLDriver {
7
7
  getPathForCustomProtocol(url: FolderURL): string;
8
8
  }
@@ -1,10 +1,10 @@
1
1
  function isFolderURL(url) {
2
2
  const parsed = new URL(url);
3
- return parsed.protocol == 'plblob+folder:';
3
+ return parsed.protocol == "plblob+folder:";
4
4
  }
5
5
  function isBlockUIURL(url) {
6
6
  const parsed = new URL(url);
7
- return parsed.protocol == 'block-ui:';
7
+ return parsed.protocol == "block-ui:";
8
8
  }
9
9
 
10
10
  export { isBlockUIURL, isFolderURL };
@@ -1 +1 @@
1
- {"version":3,"file":"urls.js","sources":["../../src/drivers/urls.ts"],"sourcesContent":["/**\n * plblob+folder://signature@sufolder_with_unzipped_blob/\n */\nexport type FolderURL = `plblob+folder://${string}`;\n\nexport type ArchiveFormat = 'zip' | 'tar' | 'tgz';\n\nexport interface BlobToURLDriver {\n getPathForCustomProtocol(url: FolderURL): string;\n}\n\nexport function isFolderURL(url: string): url is FolderURL {\n const parsed = new URL(url);\n return parsed.protocol == 'plblob+folder:';\n}\n\n/**\n * URLs and a custom protocol for the block UI.\n * block-ui://signature@folder_with_ui/\n */\nexport type BlockUIURL = `block-ui://${string}`;\n\nexport interface FrontendDriver {\n getPathForBlockUI(url: BlockUIURL): string;\n}\n\nexport function isBlockUIURL(url: string): url is BlockUIURL {\n const parsed = new URL(url);\n return parsed.protocol == 'block-ui:';\n}\n"],"names":[],"mappings":"AAWM,SAAU,WAAW,CAAC,GAAW,EAAA;AACrC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,gBAAgB;AAC5C;AAYM,SAAU,YAAY,CAAC,GAAW,EAAA;AACtC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,WAAW;AACvC;;;;"}
1
+ {"version":3,"file":"urls.js","sources":["../../src/drivers/urls.ts"],"sourcesContent":["/**\n * plblob+folder://signature@sufolder_with_unzipped_blob/\n */\nexport type FolderURL = `plblob+folder://${string}`;\n\nexport type ArchiveFormat = \"zip\" | \"tar\" | \"tgz\";\n\nexport interface BlobToURLDriver {\n getPathForCustomProtocol(url: FolderURL): string;\n}\n\nexport function isFolderURL(url: string): url is FolderURL {\n const parsed = new URL(url);\n return parsed.protocol == \"plblob+folder:\";\n}\n\n/**\n * URLs and a custom protocol for the block UI.\n * block-ui://signature@folder_with_ui/\n */\nexport type BlockUIURL = `block-ui://${string}`;\n\nexport interface FrontendDriver {\n getPathForBlockUI(url: BlockUIURL): string;\n}\n\nexport function isBlockUIURL(url: string): url is BlockUIURL {\n const parsed = new URL(url);\n return parsed.protocol == \"block-ui:\";\n}\n"],"names":[],"mappings":"AAWM,SAAU,WAAW,CAAC,GAAW,EAAA;AACrC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,gBAAgB;AAC5C;AAYM,SAAU,YAAY,CAAC,GAAW,EAAA;AACtC,IAAA,MAAM,MAAM,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC;AAC3B,IAAA,OAAO,MAAM,CAAC,QAAQ,IAAI,WAAW;AACvC;;;;"}
package/dist/errors.cjs CHANGED
@@ -4,43 +4,43 @@
4
4
  * Just for convenience, usually it is an Error with name 'AbortError'
5
5
  */
6
6
  class AbortError extends Error {
7
- name = 'AbortError';
7
+ name = "AbortError";
8
8
  }
9
9
  /**
10
10
  * Throw this to show a message without stack trace in UI
11
11
  */
12
12
  class UiError extends Error {
13
- name = 'UiError';
13
+ name = "UiError";
14
14
  }
15
15
  function isAbortError(error) {
16
- return error instanceof Error && error.name === 'AbortError';
16
+ return error instanceof Error && error.name === "AbortError";
17
17
  }
18
18
  function hasAbortError(error) {
19
19
  if (!(error instanceof Error)) {
20
20
  return false;
21
21
  }
22
- return error.name === 'AbortError' || hasAbortError(error.cause);
22
+ return error.name === "AbortError" || hasAbortError(error.cause);
23
23
  }
24
24
  function isAggregateError(error) {
25
- return error instanceof Error && error.name === 'AggregateError';
25
+ return error instanceof Error && error.name === "AggregateError";
26
26
  }
27
27
  class PFrameError extends Error {
28
- name = 'PFrameError';
28
+ name = "PFrameError";
29
29
  }
30
30
  function isPFrameError(error) {
31
- return error instanceof Error && error.name === 'PFrameError';
31
+ return error instanceof Error && error.name === "PFrameError";
32
32
  }
33
33
  class PFrameDriverError extends PFrameError {
34
- name = 'PFrameError.Driver';
34
+ name = "PFrameError.Driver";
35
35
  }
36
36
  function isPFrameDriverError(error) {
37
- return error instanceof Error && error.name === 'PFrameError.Driver';
37
+ return error instanceof Error && error.name === "PFrameError.Driver";
38
38
  }
39
39
  function stringifyValue(value) {
40
- if (typeof value === 'string') {
40
+ if (typeof value === "string") {
41
41
  return `String value was thrown: ${value}`;
42
42
  }
43
- if (value && typeof value === 'object') {
43
+ if (value && typeof value === "object") {
44
44
  try {
45
45
  return `Plain object was thrown: ${JSON.stringify(value)}`;
46
46
  }
@@ -60,7 +60,7 @@ function ensureError(value) {
60
60
  function deserializeError(obj) {
61
61
  const cause = obj.cause ? deserializeError(obj.cause) : undefined;
62
62
  const error = new Error(obj.message, cause !== undefined ? { cause } : undefined);
63
- error.name = obj.name || 'Error';
63
+ error.name = obj.name || "Error";
64
64
  error.stack = obj.stack;
65
65
  return error;
66
66
  }