@milaboratories/pl-model-common 1.25.1 → 1.25.3

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 (288) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +29 -0
  2. package/dist/author_marker.d.ts +9 -6
  3. package/dist/base32_encode.cjs +40 -46
  4. package/dist/base32_encode.cjs.map +1 -1
  5. package/dist/base32_encode.js +40 -45
  6. package/dist/base32_encode.js.map +1 -1
  7. package/dist/base64.cjs +5 -4
  8. package/dist/base64.cjs.map +1 -1
  9. package/dist/base64.d.ts +10 -6
  10. package/dist/base64.js +5 -3
  11. package/dist/base64.js.map +1 -1
  12. package/dist/block_state.d.ts +21 -23
  13. package/dist/bmodel/block_config.cjs +9 -10
  14. package/dist/bmodel/block_config.cjs.map +1 -1
  15. package/dist/bmodel/block_config.d.ts +53 -72
  16. package/dist/bmodel/block_config.js +9 -9
  17. package/dist/bmodel/block_config.js.map +1 -1
  18. package/dist/bmodel/code.cjs +7 -6
  19. package/dist/bmodel/code.cjs.map +1 -1
  20. package/dist/bmodel/code.d.ts +17 -13
  21. package/dist/bmodel/code.js +6 -4
  22. package/dist/bmodel/code.js.map +1 -1
  23. package/dist/bmodel/container.d.ts +46 -44
  24. package/dist/bmodel/index.cjs +3 -0
  25. package/dist/bmodel/index.d.ts +5 -6
  26. package/dist/bmodel/index.js +3 -0
  27. package/dist/bmodel/normalization.cjs +90 -106
  28. package/dist/bmodel/normalization.cjs.map +1 -1
  29. package/dist/bmodel/normalization.d.ts +7 -3
  30. package/dist/bmodel/normalization.js +90 -105
  31. package/dist/bmodel/normalization.js.map +1 -1
  32. package/dist/bmodel/types.d.ts +4 -1
  33. package/dist/branding.d.ts +5 -5
  34. package/dist/common_types.d.ts +19 -15
  35. package/dist/driver_kit.d.ts +25 -17
  36. package/dist/drivers/ChunkedStreamReader.cjs +168 -203
  37. package/dist/drivers/ChunkedStreamReader.cjs.map +1 -1
  38. package/dist/drivers/ChunkedStreamReader.d.ts +104 -100
  39. package/dist/drivers/ChunkedStreamReader.js +168 -202
  40. package/dist/drivers/ChunkedStreamReader.js.map +1 -1
  41. package/dist/drivers/blob.cjs +15 -17
  42. package/dist/drivers/blob.cjs.map +1 -1
  43. package/dist/drivers/blob.d.ts +35 -35
  44. package/dist/drivers/blob.js +14 -15
  45. package/dist/drivers/blob.js.map +1 -1
  46. package/dist/drivers/index.cjs +18 -0
  47. package/dist/drivers/index.d.ts +29 -9
  48. package/dist/drivers/index.js +18 -0
  49. package/dist/drivers/interfaces.d.ts +17 -14
  50. package/dist/drivers/log.cjs +4 -3
  51. package/dist/drivers/log.cjs.map +1 -1
  52. package/dist/drivers/log.d.ts +52 -49
  53. package/dist/drivers/log.js +4 -2
  54. package/dist/drivers/log.js.map +1 -1
  55. package/dist/drivers/ls.cjs +16 -19
  56. package/dist/drivers/ls.cjs.map +1 -1
  57. package/dist/drivers/ls.d.ts +73 -76
  58. package/dist/drivers/ls.js +16 -17
  59. package/dist/drivers/ls.js.map +1 -1
  60. package/dist/drivers/pframe/column_filter.d.ts +19 -15
  61. package/dist/drivers/pframe/data_info.cjs +201 -252
  62. package/dist/drivers/pframe/data_info.cjs.map +1 -1
  63. package/dist/drivers/pframe/data_info.d.ts +84 -109
  64. package/dist/drivers/pframe/data_info.js +201 -250
  65. package/dist/drivers/pframe/data_info.js.map +1 -1
  66. package/dist/drivers/pframe/data_types.cjs +38 -63
  67. package/dist/drivers/pframe/data_types.cjs.map +1 -1
  68. package/dist/drivers/pframe/data_types.d.ts +91 -93
  69. package/dist/drivers/pframe/data_types.js +38 -61
  70. package/dist/drivers/pframe/data_types.js.map +1 -1
  71. package/dist/drivers/pframe/driver.cjs +7 -0
  72. package/dist/drivers/pframe/driver.cjs.map +1 -0
  73. package/dist/drivers/pframe/driver.d.ts +50 -45
  74. package/dist/drivers/pframe/driver.js +6 -0
  75. package/dist/drivers/pframe/driver.js.map +1 -0
  76. package/dist/drivers/pframe/filter_spec.d.ts +127 -123
  77. package/dist/drivers/pframe/find_columns.d.ts +21 -17
  78. package/dist/drivers/pframe/index.cjs +15 -0
  79. package/dist/drivers/pframe/index.d.ts +23 -16
  80. package/dist/drivers/pframe/index.js +15 -0
  81. package/dist/drivers/pframe/linker_columns.cjs +184 -238
  82. package/dist/drivers/pframe/linker_columns.cjs.map +1 -1
  83. package/dist/drivers/pframe/linker_columns.d.ts +45 -38
  84. package/dist/drivers/pframe/linker_columns.js +184 -236
  85. package/dist/drivers/pframe/linker_columns.js.map +1 -1
  86. package/dist/drivers/pframe/pframe.d.ts +26 -21
  87. package/dist/drivers/pframe/query/index.cjs +1 -0
  88. package/dist/drivers/pframe/query/index.d.ts +3 -4
  89. package/dist/drivers/pframe/query/index.js +1 -0
  90. package/dist/drivers/pframe/query/query_common.d.ts +205 -247
  91. package/dist/drivers/pframe/query/query_data.d.ts +25 -23
  92. package/dist/drivers/pframe/query/query_spec.d.ts +30 -29
  93. package/dist/drivers/pframe/query/utils.cjs +164 -183
  94. package/dist/drivers/pframe/query/utils.cjs.map +1 -1
  95. package/dist/drivers/pframe/query/utils.d.ts +13 -12
  96. package/dist/drivers/pframe/query/utils.js +164 -181
  97. package/dist/drivers/pframe/query/utils.js.map +1 -1
  98. package/dist/drivers/pframe/spec/anchored.cjs +178 -216
  99. package/dist/drivers/pframe/spec/anchored.cjs.map +1 -1
  100. package/dist/drivers/pframe/spec/anchored.d.ts +53 -49
  101. package/dist/drivers/pframe/spec/anchored.js +176 -214
  102. package/dist/drivers/pframe/spec/anchored.js.map +1 -1
  103. package/dist/drivers/pframe/spec/filtered_column.cjs +8 -7
  104. package/dist/drivers/pframe/spec/filtered_column.cjs.map +1 -1
  105. package/dist/drivers/pframe/spec/filtered_column.d.ts +20 -17
  106. package/dist/drivers/pframe/spec/filtered_column.js +8 -6
  107. package/dist/drivers/pframe/spec/filtered_column.js.map +1 -1
  108. package/dist/drivers/pframe/spec/ids.cjs +16 -14
  109. package/dist/drivers/pframe/spec/ids.cjs.map +1 -1
  110. package/dist/drivers/pframe/spec/ids.d.ts +13 -8
  111. package/dist/drivers/pframe/spec/ids.js +14 -12
  112. package/dist/drivers/pframe/spec/ids.js.map +1 -1
  113. package/dist/drivers/pframe/spec/index.cjs +6 -0
  114. package/dist/drivers/pframe/spec/index.d.ts +6 -7
  115. package/dist/drivers/pframe/spec/index.js +6 -0
  116. package/dist/drivers/pframe/spec/native_id.cjs +16 -16
  117. package/dist/drivers/pframe/spec/native_id.cjs.map +1 -1
  118. package/dist/drivers/pframe/spec/native_id.d.ts +9 -4
  119. package/dist/drivers/pframe/spec/native_id.js +13 -13
  120. package/dist/drivers/pframe/spec/native_id.js.map +1 -1
  121. package/dist/drivers/pframe/spec/selectors.cjs +72 -112
  122. package/dist/drivers/pframe/spec/selectors.cjs.map +1 -1
  123. package/dist/drivers/pframe/spec/selectors.d.ts +99 -94
  124. package/dist/drivers/pframe/spec/selectors.js +72 -110
  125. package/dist/drivers/pframe/spec/selectors.js.map +1 -1
  126. package/dist/drivers/pframe/spec/spec.cjs +282 -324
  127. package/dist/drivers/pframe/spec/spec.cjs.map +1 -1
  128. package/dist/drivers/pframe/spec/spec.d.ts +263 -272
  129. package/dist/drivers/pframe/spec/spec.js +281 -322
  130. package/dist/drivers/pframe/spec/spec.js.map +1 -1
  131. package/dist/drivers/pframe/table.d.ts +28 -24
  132. package/dist/drivers/pframe/table_calculate.cjs +117 -147
  133. package/dist/drivers/pframe/table_calculate.cjs.map +1 -1
  134. package/dist/drivers/pframe/table_calculate.d.ts +219 -220
  135. package/dist/drivers/pframe/table_calculate.js +117 -145
  136. package/dist/drivers/pframe/table_calculate.js.map +1 -1
  137. package/dist/drivers/pframe/table_common.cjs +13 -14
  138. package/dist/drivers/pframe/table_common.cjs.map +1 -1
  139. package/dist/drivers/pframe/table_common.d.ts +24 -19
  140. package/dist/drivers/pframe/table_common.js +13 -13
  141. package/dist/drivers/pframe/table_common.js.map +1 -1
  142. package/dist/drivers/pframe/unique_values.d.ts +23 -18
  143. package/dist/drivers/upload.d.ts +21 -18
  144. package/dist/drivers/urls.cjs +5 -6
  145. package/dist/drivers/urls.cjs.map +1 -1
  146. package/dist/drivers/urls.d.ts +12 -9
  147. package/dist/drivers/urls.js +5 -5
  148. package/dist/drivers/urls.js.map +1 -1
  149. package/dist/errors.cjs +65 -86
  150. package/dist/errors.cjs.map +1 -1
  151. package/dist/errors.d.ts +36 -33
  152. package/dist/errors.js +65 -85
  153. package/dist/errors.js.map +1 -1
  154. package/dist/flags/block_flags.cjs +7 -6
  155. package/dist/flags/block_flags.cjs.map +1 -1
  156. package/dist/flags/block_flags.d.ts +12 -8
  157. package/dist/flags/block_flags.js +7 -5
  158. package/dist/flags/block_flags.js.map +1 -1
  159. package/dist/flags/flag_utils.cjs +69 -108
  160. package/dist/flags/flag_utils.cjs.map +1 -1
  161. package/dist/flags/flag_utils.d.ts +40 -42
  162. package/dist/flags/flag_utils.js +70 -107
  163. package/dist/flags/flag_utils.js.map +1 -1
  164. package/dist/flags/type_utils.d.ts +12 -11
  165. package/dist/httpAuth.cjs +16 -20
  166. package/dist/httpAuth.cjs.map +1 -1
  167. package/dist/httpAuth.d.ts +10 -7
  168. package/dist/httpAuth.js +16 -19
  169. package/dist/httpAuth.js.map +1 -1
  170. package/dist/index.cjs +176 -179
  171. package/dist/index.d.ts +58 -20
  172. package/dist/index.js +37 -34
  173. package/dist/json.cjs +10 -8
  174. package/dist/json.cjs.map +1 -1
  175. package/dist/json.d.ts +18 -18
  176. package/dist/json.js +8 -6
  177. package/dist/json.js.map +1 -1
  178. package/dist/navigation.cjs +3 -2
  179. package/dist/navigation.cjs.map +1 -1
  180. package/dist/navigation.d.ts +18 -21
  181. package/dist/navigation.js +3 -1
  182. package/dist/navigation.js.map +1 -1
  183. package/dist/plid.cjs +16 -20
  184. package/dist/plid.cjs.map +1 -1
  185. package/dist/plid.d.ts +11 -7
  186. package/dist/plid.js +15 -18
  187. package/dist/plid.js.map +1 -1
  188. package/dist/pool/entry.d.ts +11 -11
  189. package/dist/pool/index.d.ts +3 -4
  190. package/dist/pool/query.cjs +21 -43
  191. package/dist/pool/query.cjs.map +1 -1
  192. package/dist/pool/query.d.ts +25 -20
  193. package/dist/pool/query.js +20 -40
  194. package/dist/pool/query.js.map +1 -1
  195. package/dist/pool/spec.cjs +40 -47
  196. package/dist/pool/spec.cjs.map +1 -1
  197. package/dist/pool/spec.d.ts +33 -31
  198. package/dist/pool/spec.js +40 -45
  199. package/dist/pool/spec.js.map +1 -1
  200. package/dist/ref.cjs +51 -71
  201. package/dist/ref.cjs.map +1 -1
  202. package/dist/ref.d.ts +36 -33
  203. package/dist/ref.js +50 -69
  204. package/dist/ref.js.map +1 -1
  205. package/dist/utag.d.ts +18 -14
  206. package/dist/util.cjs +8 -7
  207. package/dist/util.cjs.map +1 -1
  208. package/dist/util.d.ts +5 -2
  209. package/dist/util.js +8 -6
  210. package/dist/util.js.map +1 -1
  211. package/dist/value_or_error.cjs +7 -3
  212. package/dist/value_or_error.cjs.map +1 -1
  213. package/dist/value_or_error.d.ts +9 -6
  214. package/dist/value_or_error.js +7 -2
  215. package/dist/value_or_error.js.map +1 -1
  216. package/package.json +6 -6
  217. package/src/flags/block_flags.ts +2 -1
  218. package/src/flags/flag_utils.ts +0 -22
  219. package/dist/author_marker.d.ts.map +0 -1
  220. package/dist/base32_encode.d.ts +0 -8
  221. package/dist/base32_encode.d.ts.map +0 -1
  222. package/dist/base64.d.ts.map +0 -1
  223. package/dist/block_state.d.ts.map +0 -1
  224. package/dist/bmodel/block_config.d.ts.map +0 -1
  225. package/dist/bmodel/code.d.ts.map +0 -1
  226. package/dist/bmodel/container.d.ts.map +0 -1
  227. package/dist/bmodel/index.d.ts.map +0 -1
  228. package/dist/bmodel/normalization.d.ts.map +0 -1
  229. package/dist/bmodel/types.d.ts.map +0 -1
  230. package/dist/branding.d.ts.map +0 -1
  231. package/dist/common_types.d.ts.map +0 -1
  232. package/dist/driver_kit.d.ts.map +0 -1
  233. package/dist/drivers/ChunkedStreamReader.d.ts.map +0 -1
  234. package/dist/drivers/blob.d.ts.map +0 -1
  235. package/dist/drivers/index.d.ts.map +0 -1
  236. package/dist/drivers/interfaces.d.ts.map +0 -1
  237. package/dist/drivers/log.d.ts.map +0 -1
  238. package/dist/drivers/ls.d.ts.map +0 -1
  239. package/dist/drivers/pframe/column_filter.d.ts.map +0 -1
  240. package/dist/drivers/pframe/data_info.d.ts.map +0 -1
  241. package/dist/drivers/pframe/data_types.d.ts.map +0 -1
  242. package/dist/drivers/pframe/driver.d.ts.map +0 -1
  243. package/dist/drivers/pframe/filter_spec.d.ts.map +0 -1
  244. package/dist/drivers/pframe/find_columns.d.ts.map +0 -1
  245. package/dist/drivers/pframe/index.d.ts.map +0 -1
  246. package/dist/drivers/pframe/linker_columns.d.ts.map +0 -1
  247. package/dist/drivers/pframe/pframe.d.ts.map +0 -1
  248. package/dist/drivers/pframe/query/index.d.ts.map +0 -1
  249. package/dist/drivers/pframe/query/query_common.d.ts.map +0 -1
  250. package/dist/drivers/pframe/query/query_data.d.ts.map +0 -1
  251. package/dist/drivers/pframe/query/query_spec.d.ts.map +0 -1
  252. package/dist/drivers/pframe/query/utils.d.ts.map +0 -1
  253. package/dist/drivers/pframe/spec/anchored.d.ts.map +0 -1
  254. package/dist/drivers/pframe/spec/filtered_column.d.ts.map +0 -1
  255. package/dist/drivers/pframe/spec/ids.d.ts.map +0 -1
  256. package/dist/drivers/pframe/spec/index.d.ts.map +0 -1
  257. package/dist/drivers/pframe/spec/native_id.d.ts.map +0 -1
  258. package/dist/drivers/pframe/spec/selectors.d.ts.map +0 -1
  259. package/dist/drivers/pframe/spec/spec.d.ts.map +0 -1
  260. package/dist/drivers/pframe/table.d.ts.map +0 -1
  261. package/dist/drivers/pframe/table_calculate.d.ts.map +0 -1
  262. package/dist/drivers/pframe/table_common.d.ts.map +0 -1
  263. package/dist/drivers/pframe/type_util.d.ts +0 -5
  264. package/dist/drivers/pframe/type_util.d.ts.map +0 -1
  265. package/dist/drivers/pframe/unique_values.d.ts.map +0 -1
  266. package/dist/drivers/upload.d.ts.map +0 -1
  267. package/dist/drivers/urls.d.ts.map +0 -1
  268. package/dist/errors.d.ts.map +0 -1
  269. package/dist/flags/block_flags.d.ts.map +0 -1
  270. package/dist/flags/flag_utils.d.ts.map +0 -1
  271. package/dist/flags/index.d.ts +0 -4
  272. package/dist/flags/index.d.ts.map +0 -1
  273. package/dist/flags/type_utils.d.ts.map +0 -1
  274. package/dist/httpAuth.d.ts.map +0 -1
  275. package/dist/index.cjs.map +0 -1
  276. package/dist/index.d.ts.map +0 -1
  277. package/dist/index.js.map +0 -1
  278. package/dist/json.d.ts.map +0 -1
  279. package/dist/navigation.d.ts.map +0 -1
  280. package/dist/plid.d.ts.map +0 -1
  281. package/dist/pool/entry.d.ts.map +0 -1
  282. package/dist/pool/index.d.ts.map +0 -1
  283. package/dist/pool/query.d.ts.map +0 -1
  284. package/dist/pool/spec.d.ts.map +0 -1
  285. package/dist/ref.d.ts.map +0 -1
  286. package/dist/utag.d.ts.map +0 -1
  287. package/dist/util.d.ts.map +0 -1
  288. package/dist/value_or_error.d.ts.map +0 -1
@@ -1,160 +1,161 @@
1
- import { type CanonicalizedJson, type StringifiedJson } from "../../../json";
2
- import type { PObject, PObjectId, PObjectSpec } from "../../../pool";
1
+ import { CanonicalizedJson, StringifiedJson } from "../../../json.js";
2
+ import { PObject, PObjectId, PObjectSpec } from "../../../pool/spec.js";
3
+ import "../../../pool/index.js";
3
4
  import { z } from "zod";
4
- export declare const ValueType: {
5
- readonly Int: "Int";
6
- readonly Long: "Long";
7
- readonly Float: "Float";
8
- readonly Double: "Double";
9
- readonly String: "String";
10
- readonly Bytes: "Bytes";
5
+
6
+ //#region src/drivers/pframe/spec/spec.d.ts
7
+ declare const ValueType: {
8
+ readonly Int: "Int";
9
+ readonly Long: "Long";
10
+ readonly Float: "Float";
11
+ readonly Double: "Double";
12
+ readonly String: "String";
13
+ readonly Bytes: "Bytes";
11
14
  };
12
- export type AxisValueType = Extract<ValueType, "Int" | "Long" | "String">;
13
- export type ColumnValueType = ValueType;
15
+ type AxisValueType = Extract<ValueType, "Int" | "Long" | "String">;
16
+ type ColumnValueType = ValueType;
14
17
  /** PFrame columns and axes within them may store one of these types. */
15
- export type ValueType = (typeof ValueType)[keyof typeof ValueType];
16
- export type Metadata = Record<string, string>;
17
- export declare function readMetadata<U extends Metadata, T extends keyof U = keyof U>(metadata: Metadata | undefined, key: T): U[T] | undefined;
18
- type MetadataJsonImpl<M> = {
19
- [P in keyof M as M[P] extends StringifiedJson ? P : never]: M[P] extends StringifiedJson<infer U> ? z.ZodType<U> : never;
20
- };
21
- export type MetadataJson<M> = MetadataJsonImpl<Required<M>>;
22
- export declare function readMetadataJsonOrThrow<M extends Metadata, T extends keyof MetadataJson<M>>(metadata: Metadata | undefined, metadataJson: MetadataJson<M>, key: T, methodNameInError?: string): z.infer<MetadataJson<M>[T]> | undefined;
23
- export declare function readMetadataJson<M extends Metadata, T extends keyof MetadataJson<M>>(metadata: Metadata | undefined, metadataJson: MetadataJson<M>, key: T): z.infer<MetadataJson<M>[T]> | undefined;
24
- export declare const Domain: {
25
- readonly Alphabet: "pl7.app/alphabet";
26
- readonly BlockId: "pl7.app/blockId";
27
- readonly VDJ: {
28
- readonly Clustering: {
29
- readonly BlockId: "pl7.app/vdj/clustering/blockId";
30
- };
31
- readonly ScClonotypeChain: {
32
- readonly Index: "pl7.app/vdj/scClonotypeChain/index";
33
- };
18
+ type ValueType = (typeof ValueType)[keyof typeof ValueType];
19
+ type Metadata = Record<string, string>;
20
+ declare function readMetadata<U extends Metadata, T extends keyof U = keyof U>(metadata: Metadata | undefined, key: T): U[T] | undefined;
21
+ type MetadataJsonImpl<M> = { [P in keyof M as M[P] extends StringifiedJson ? P : never]: M[P] extends StringifiedJson<infer U> ? z.ZodType<U> : never };
22
+ type MetadataJson<M> = MetadataJsonImpl<Required<M>>;
23
+ declare function readMetadataJsonOrThrow<M extends Metadata, T extends keyof MetadataJson<M>>(metadata: Metadata | undefined, metadataJson: MetadataJson<M>, key: T, methodNameInError?: string): z.infer<MetadataJson<M>[T]> | undefined;
24
+ declare function readMetadataJson<M extends Metadata, T extends keyof MetadataJson<M>>(metadata: Metadata | undefined, metadataJson: MetadataJson<M>, key: T): z.infer<MetadataJson<M>[T]> | undefined;
25
+ declare const Domain: {
26
+ readonly Alphabet: "pl7.app/alphabet";
27
+ readonly BlockId: "pl7.app/blockId";
28
+ readonly VDJ: {
29
+ readonly Clustering: {
30
+ readonly BlockId: "pl7.app/vdj/clustering/blockId";
31
+ };
32
+ readonly ScClonotypeChain: {
33
+ readonly Index: "pl7.app/vdj/scClonotypeChain/index";
34
34
  };
35
+ };
35
36
  };
36
- export type Domain = Metadata & Partial<{
37
- [Domain.Alphabet]: "nucleotide" | "aminoacid" | (string & {});
38
- [Domain.BlockId]: string;
39
- [Domain.VDJ.ScClonotypeChain.Index]: "primary" | "secondary" | (string & {});
37
+ type Domain = Metadata & Partial<{
38
+ [Domain.Alphabet]: "nucleotide" | "aminoacid" | (string & {});
39
+ [Domain.BlockId]: string;
40
+ [Domain.VDJ.ScClonotypeChain.Index]: "primary" | "secondary" | (string & {});
40
41
  }>;
41
- export type DomainJson = MetadataJson<Domain>;
42
- export declare const DomainJson: DomainJson;
43
- export declare function readDomain<T extends keyof Domain>(spec: {
44
- domain?: Metadata | undefined;
42
+ type DomainJson = MetadataJson<Domain>;
43
+ declare const DomainJson: DomainJson;
44
+ declare function readDomain<T extends keyof Domain>(spec: {
45
+ domain?: Metadata | undefined;
45
46
  } | undefined, key: T): Domain[T] | undefined;
46
- export declare function readDomainJsonOrThrow<T extends keyof DomainJson>(spec: {
47
- domain?: Metadata | undefined;
47
+ declare function readDomainJsonOrThrow<T extends keyof DomainJson>(spec: {
48
+ domain?: Metadata | undefined;
48
49
  } | undefined, key: T): z.infer<DomainJson[T]> | undefined;
49
- export declare function readDomainJson<T extends keyof DomainJson>(spec: {
50
- domain?: Metadata | undefined;
50
+ declare function readDomainJson<T extends keyof DomainJson>(spec: {
51
+ domain?: Metadata | undefined;
51
52
  } | undefined, key: T): z.infer<DomainJson[T]> | undefined;
52
- export declare const Annotation: {
53
- readonly AxisNature: "pl7.app/axisNature";
54
- readonly Alphabet: "pl7.app/alphabet";
55
- readonly Description: "pl7.app/description";
56
- readonly DiscreteValues: "pl7.app/discreteValues";
57
- readonly Format: "pl7.app/format";
58
- readonly Graph: {
59
- readonly Axis: {
60
- readonly HighCardinality: "pl7.app/graph/axis/highCardinality";
61
- readonly LowerLimit: "pl7.app/graph/axis/lowerLimit";
62
- readonly SymmetricRange: "pl7.app/graph/axis/symmetricRange";
63
- readonly UpperLimit: "pl7.app/graph/axis/upperLimit";
64
- };
65
- readonly IsDenseAxis: "pl7.app/graph/isDenseAxis";
66
- readonly IsVirtual: "pl7.app/graph/isVirtual";
67
- readonly Palette: "pl7.app/graph/palette";
68
- readonly Thresholds: "pl7.app/graph/thresholds";
69
- readonly TreatAbsentValuesAs: "pl7.app/graph/treatAbsentValuesAs";
70
- };
71
- readonly HideDataFromUi: "pl7.app/hideDataFromUi";
72
- readonly HideDataFromGraphs: "pl7.app/hideDataFromGraphs";
73
- readonly IsDiscreteFilter: "pl7.app/isDiscreteFilter";
74
- readonly IsAnchor: "pl7.app/isAnchor";
75
- readonly IsLinkerColumn: "pl7.app/isLinkerColumn";
76
- readonly IsScore: "pl7.app/isScore";
77
- readonly IsSubset: "pl7.app/isSubset";
78
- readonly Label: "pl7.app/label";
79
- readonly Max: "pl7.app/max";
80
- readonly Min: "pl7.app/min";
81
- readonly MultipliesBy: "pl7.app/multipliesBy";
82
- readonly Parents: "pl7.app/parents";
83
- readonly Score: {
84
- readonly DefaultCutoff: "pl7.app/score/defaultCutoff";
85
- readonly RankingOrder: "pl7.app/score/rankingOrder";
86
- };
87
- readonly Sequence: {
88
- readonly Annotation: {
89
- readonly Mapping: "pl7.app/sequence/annotation/mapping";
90
- };
91
- readonly IsAnnotation: "pl7.app/sequence/isAnnotation";
53
+ declare const Annotation: {
54
+ readonly AxisNature: "pl7.app/axisNature";
55
+ readonly Alphabet: "pl7.app/alphabet";
56
+ readonly Description: "pl7.app/description";
57
+ readonly DiscreteValues: "pl7.app/discreteValues";
58
+ readonly Format: "pl7.app/format";
59
+ readonly Graph: {
60
+ readonly Axis: {
61
+ readonly HighCardinality: "pl7.app/graph/axis/highCardinality";
62
+ readonly LowerLimit: "pl7.app/graph/axis/lowerLimit";
63
+ readonly SymmetricRange: "pl7.app/graph/axis/symmetricRange";
64
+ readonly UpperLimit: "pl7.app/graph/axis/upperLimit";
92
65
  };
93
- readonly Table: {
94
- readonly FontFamily: "pl7.app/table/fontFamily";
95
- readonly OrderPriority: "pl7.app/table/orderPriority";
96
- readonly Visibility: "pl7.app/table/visibility";
97
- };
98
- readonly Trace: "pl7.app/trace";
99
- readonly VDJ: {
100
- readonly IsAssemblingFeature: "pl7.app/vdj/isAssemblingFeature";
101
- readonly IsMainSequence: "pl7.app/vdj/isMainSequence";
66
+ readonly IsDenseAxis: "pl7.app/graph/isDenseAxis";
67
+ readonly IsVirtual: "pl7.app/graph/isVirtual";
68
+ readonly Palette: "pl7.app/graph/palette";
69
+ readonly Thresholds: "pl7.app/graph/thresholds";
70
+ readonly TreatAbsentValuesAs: "pl7.app/graph/treatAbsentValuesAs";
71
+ };
72
+ readonly HideDataFromUi: "pl7.app/hideDataFromUi";
73
+ readonly HideDataFromGraphs: "pl7.app/hideDataFromGraphs";
74
+ readonly IsDiscreteFilter: "pl7.app/isDiscreteFilter";
75
+ readonly IsAnchor: "pl7.app/isAnchor";
76
+ readonly IsLinkerColumn: "pl7.app/isLinkerColumn";
77
+ readonly IsScore: "pl7.app/isScore";
78
+ readonly IsSubset: "pl7.app/isSubset";
79
+ readonly Label: "pl7.app/label";
80
+ readonly Max: "pl7.app/max";
81
+ readonly Min: "pl7.app/min";
82
+ readonly MultipliesBy: "pl7.app/multipliesBy";
83
+ readonly Parents: "pl7.app/parents";
84
+ readonly Score: {
85
+ readonly DefaultCutoff: "pl7.app/score/defaultCutoff";
86
+ readonly RankingOrder: "pl7.app/score/rankingOrder";
87
+ };
88
+ readonly Sequence: {
89
+ readonly Annotation: {
90
+ readonly Mapping: "pl7.app/sequence/annotation/mapping";
102
91
  };
92
+ readonly IsAnnotation: "pl7.app/sequence/isAnnotation";
93
+ };
94
+ readonly Table: {
95
+ readonly FontFamily: "pl7.app/table/fontFamily";
96
+ readonly OrderPriority: "pl7.app/table/orderPriority";
97
+ readonly Visibility: "pl7.app/table/visibility";
98
+ };
99
+ readonly Trace: "pl7.app/trace";
100
+ readonly VDJ: {
101
+ readonly IsAssemblingFeature: "pl7.app/vdj/isAssemblingFeature";
102
+ readonly IsMainSequence: "pl7.app/vdj/isMainSequence";
103
+ };
103
104
  };
104
- export type Annotation = Metadata & Partial<{
105
- [Annotation.Alphabet]: "nucleotide" | "aminoacid" | (string & {});
106
- [Annotation.AxisNature]: "homogeneous" | "heterogeneous" | "scaleCompatible" | (string & {});
107
- [Annotation.Description]: string;
108
- [Annotation.DiscreteValues]: StringifiedJson<number[]> | StringifiedJson<string[]>;
109
- [Annotation.Format]: string;
110
- [Annotation.Graph.Axis.HighCardinality]: StringifiedJson<boolean>;
111
- [Annotation.Graph.Axis.LowerLimit]: StringifiedJson<number>;
112
- [Annotation.Graph.Axis.SymmetricRange]: StringifiedJson<boolean>;
113
- [Annotation.Graph.Axis.UpperLimit]: StringifiedJson<number>;
114
- [Annotation.Graph.IsDenseAxis]: StringifiedJson<boolean>;
115
- [Annotation.Graph.IsVirtual]: StringifiedJson<boolean>;
116
- [Annotation.Graph.Palette]: StringifiedJson<{
117
- mapping: Record<string, number>;
118
- name: string;
119
- }>;
120
- [Annotation.Graph.Thresholds]: StringifiedJson<{
121
- columnId: {
122
- valueType: ValueType;
123
- name: string;
124
- };
125
- value: number;
126
- }[]>;
127
- [Annotation.Graph.TreatAbsentValuesAs]: StringifiedJson<number>;
128
- [Annotation.HideDataFromGraphs]: StringifiedJson<boolean>;
129
- [Annotation.HideDataFromUi]: StringifiedJson<boolean>;
130
- [Annotation.IsDiscreteFilter]: StringifiedJson<boolean>;
131
- [Annotation.IsLinkerColumn]: StringifiedJson<boolean>;
132
- [Annotation.IsSubset]: StringifiedJson<boolean>;
133
- [Annotation.Label]: string;
134
- [Annotation.Max]: StringifiedJson<number>;
135
- [Annotation.Min]: StringifiedJson<number>;
136
- [Annotation.MultipliesBy]: StringifiedJson<AxisSpec["name"][]>;
137
- [Annotation.Parents]: StringifiedJson<AxisSpec["name"][]>;
138
- [Annotation.Sequence.Annotation.Mapping]: StringifiedJson<Record<string, string>>;
139
- [Annotation.Sequence.IsAnnotation]: StringifiedJson<boolean>;
140
- [Annotation.Table.FontFamily]: string;
141
- [Annotation.Table.OrderPriority]: StringifiedJson<number>;
142
- [Annotation.Table.Visibility]: "hidden" | "optional" | (string & {});
143
- [Annotation.Trace]: StringifiedJson<Record<string, unknown>>;
144
- [Annotation.VDJ.IsAssemblingFeature]: StringifiedJson<boolean>;
105
+ type Annotation = Metadata & Partial<{
106
+ [Annotation.Alphabet]: "nucleotide" | "aminoacid" | (string & {});
107
+ [Annotation.AxisNature]: "homogeneous" | "heterogeneous" | "scaleCompatible" | (string & {});
108
+ [Annotation.Description]: string;
109
+ [Annotation.DiscreteValues]: StringifiedJson<number[]> | StringifiedJson<string[]>;
110
+ [Annotation.Format]: string;
111
+ [Annotation.Graph.Axis.HighCardinality]: StringifiedJson<boolean>;
112
+ [Annotation.Graph.Axis.LowerLimit]: StringifiedJson<number>;
113
+ [Annotation.Graph.Axis.SymmetricRange]: StringifiedJson<boolean>;
114
+ [Annotation.Graph.Axis.UpperLimit]: StringifiedJson<number>;
115
+ [Annotation.Graph.IsDenseAxis]: StringifiedJson<boolean>;
116
+ [Annotation.Graph.IsVirtual]: StringifiedJson<boolean>;
117
+ [Annotation.Graph.Palette]: StringifiedJson<{
118
+ mapping: Record<string, number>;
119
+ name: string;
120
+ }>;
121
+ [Annotation.Graph.Thresholds]: StringifiedJson<{
122
+ columnId: {
123
+ valueType: ValueType;
124
+ name: string;
125
+ };
126
+ value: number;
127
+ }[]>;
128
+ [Annotation.Graph.TreatAbsentValuesAs]: StringifiedJson<number>;
129
+ [Annotation.HideDataFromGraphs]: StringifiedJson<boolean>;
130
+ [Annotation.HideDataFromUi]: StringifiedJson<boolean>;
131
+ [Annotation.IsDiscreteFilter]: StringifiedJson<boolean>;
132
+ [Annotation.IsLinkerColumn]: StringifiedJson<boolean>;
133
+ [Annotation.IsSubset]: StringifiedJson<boolean>;
134
+ [Annotation.Label]: string;
135
+ [Annotation.Max]: StringifiedJson<number>;
136
+ [Annotation.Min]: StringifiedJson<number>;
137
+ [Annotation.MultipliesBy]: StringifiedJson<AxisSpec["name"][]>;
138
+ [Annotation.Parents]: StringifiedJson<AxisSpec["name"][]>;
139
+ [Annotation.Sequence.Annotation.Mapping]: StringifiedJson<Record<string, string>>;
140
+ [Annotation.Sequence.IsAnnotation]: StringifiedJson<boolean>;
141
+ [Annotation.Table.FontFamily]: string;
142
+ [Annotation.Table.OrderPriority]: StringifiedJson<number>;
143
+ [Annotation.Table.Visibility]: "hidden" | "optional" | (string & {});
144
+ [Annotation.Trace]: StringifiedJson<Record<string, unknown>>;
145
+ [Annotation.VDJ.IsAssemblingFeature]: StringifiedJson<boolean>;
145
146
  }>;
146
- export type AnnotationJson = MetadataJson<Annotation>;
147
- export declare const AnnotationJson: AnnotationJson;
148
- export declare function readAnnotation<T extends keyof Annotation>(spec: {
149
- annotations?: Metadata | undefined;
147
+ type AnnotationJson = MetadataJson<Annotation>;
148
+ declare const AnnotationJson: AnnotationJson;
149
+ declare function readAnnotation<T extends keyof Annotation>(spec: {
150
+ annotations?: Metadata | undefined;
150
151
  } | undefined, key: T): Annotation[T] | undefined;
151
- export declare function readAnnotationJsonOrThrow<T extends keyof AnnotationJson>(spec: {
152
- annotations?: Metadata | undefined;
152
+ declare function readAnnotationJsonOrThrow<T extends keyof AnnotationJson>(spec: {
153
+ annotations?: Metadata | undefined;
153
154
  } | undefined, key: T): z.infer<AnnotationJson[T]> | undefined;
154
- export declare function readAnnotationJson<T extends keyof AnnotationJson>(spec: {
155
- annotations?: Metadata | undefined;
155
+ declare function readAnnotationJson<T extends keyof AnnotationJson>(spec: {
156
+ annotations?: Metadata | undefined;
156
157
  } | undefined, key: T): z.infer<AnnotationJson[T]> | undefined;
157
- export declare function isLinkerColumn(column: PColumnSpec): boolean;
158
+ declare function isLinkerColumn(column: PColumnSpec): boolean;
158
159
  /**
159
160
  * Specification of an individual axis.
160
161
  *
@@ -163,84 +164,82 @@ export declare function isLinkerColumn(column: PColumnSpec): boolean;
163
164
  * Each record inside a PColumn is addressed by a unique tuple of values set for
164
165
  * all the axes specified in the column spec.
165
166
  */
166
- export type AxisSpec = {
167
- /** Type of the axis value. Should not use non-key types like float or double. */
168
- readonly type: ValueType;
169
- /** Name of the axis */
170
- readonly name: string;
171
- /** Adds auxiliary information to the axis name, type and parents to form a
172
- * unique identifier */
173
- readonly domain?: Record<string, string>;
174
- /** Any additional information attached to the axis that does not affect its
175
- * identifier */
176
- readonly annotations?: Record<string, string>;
177
- /**
178
- * Parent axes provide contextual grouping for the axis in question, establishing
179
- * a hierarchy where the current axis is dependent on one or more axes for its
180
- * full definition and meaning. For instance, in a data structure where each
181
- * "container" axis may contain multiple "item" axes, the `item` axis would
182
- * list the index of the `container` axis in this field to denote its dependency.
183
- *
184
- * This means that the identity or significance of the `item` axis is only
185
- * interpretable when combined with its parent `container` axis. An `item` axis
186
- * index by itself may be non-unique and only gains uniqueness within the context
187
- * of its parent `container`. Therefore, the `parentAxes` field is essential for
188
- * mapping these relationships and ensuring data coherence across nested or
189
- * multi-level data models.
190
- *
191
- * A list of zero-based indices of parent axes in the overall axes specification
192
- * from the column spec. Each index corresponds to the position of a parent axis
193
- * in the list that defines the structure of the data model.
194
- */
195
- readonly parentAxes?: number[];
167
+ type AxisSpec = {
168
+ /** Type of the axis value. Should not use non-key types like float or double. */readonly type: ValueType; /** Name of the axis */
169
+ readonly name: string;
170
+ /** Adds auxiliary information to the axis name, type and parents to form a
171
+ * unique identifier */
172
+ readonly domain?: Record<string, string>;
173
+ /** Any additional information attached to the axis that does not affect its
174
+ * identifier */
175
+ readonly annotations?: Record<string, string>;
176
+ /**
177
+ * Parent axes provide contextual grouping for the axis in question, establishing
178
+ * a hierarchy where the current axis is dependent on one or more axes for its
179
+ * full definition and meaning. For instance, in a data structure where each
180
+ * "container" axis may contain multiple "item" axes, the `item` axis would
181
+ * list the index of the `container` axis in this field to denote its dependency.
182
+ *
183
+ * This means that the identity or significance of the `item` axis is only
184
+ * interpretable when combined with its parent `container` axis. An `item` axis
185
+ * index by itself may be non-unique and only gains uniqueness within the context
186
+ * of its parent `container`. Therefore, the `parentAxes` field is essential for
187
+ * mapping these relationships and ensuring data coherence across nested or
188
+ * multi-level data models.
189
+ *
190
+ * A list of zero-based indices of parent axes in the overall axes specification
191
+ * from the column spec. Each index corresponds to the position of a parent axis
192
+ * in the list that defines the structure of the data model.
193
+ */
194
+ readonly parentAxes?: number[];
196
195
  };
197
196
  /** Parents are specs, not indexes; normalized axis can be used considering its parents independently from column */
198
- export interface AxisSpecNormalized extends Omit<AxisSpec, "parentAxes"> {
199
- parentAxesSpec: AxisSpecNormalized[];
197
+ interface AxisSpecNormalized extends Omit<AxisSpec, "parentAxes"> {
198
+ parentAxesSpec: AxisSpecNormalized[];
200
199
  }
201
200
  /** Tree: axis is a root, its parents are children */
202
- export type AxisTree = {
203
- axis: AxisSpecNormalized;
204
- children: AxisTree[];
201
+ type AxisTree = {
202
+ axis: AxisSpecNormalized;
203
+ children: AxisTree[];
205
204
  };
206
205
  /** Build tree by axis parents annotations */
207
- export declare function getAxesTree(rootAxis: AxisSpecNormalized): AxisTree;
206
+ declare function getAxesTree(rootAxis: AxisSpecNormalized): AxisTree;
208
207
  /** Get set of canonicalized axisIds from axisTree */
209
- export declare function getSetFromAxisTree(tree: AxisTree): Set<CanonicalizedJson<AxisId>>;
208
+ declare function getSetFromAxisTree(tree: AxisTree): Set<CanonicalizedJson<AxisId>>;
210
209
  /** Get array of axisSpecs from axisTree */
211
- export declare function getArrayFromAxisTree(tree: AxisTree): AxisSpecNormalized[];
212
- export declare function canonicalizeAxisWithParents(axis: AxisSpecNormalized): string & {
213
- __json_canonicalized: AxisId[];
210
+ declare function getArrayFromAxisTree(tree: AxisTree): AxisSpecNormalized[];
211
+ declare function canonicalizeAxisWithParents(axis: AxisSpecNormalized): string & {
212
+ __json_canonicalized: AxisId[];
214
213
  };
215
214
  /** Create list of normalized axisSpec (parents are in array of specs, not indexes) */
216
- export declare function getNormalizedAxesList(axes: AxisSpec[]): AxisSpecNormalized[];
215
+ declare function getNormalizedAxesList(axes: AxisSpec[]): AxisSpecNormalized[];
217
216
  /** Create list of regular axisSpec from normalized (parents are indexes, inside of current axes list) */
218
- export declare function getDenormalizedAxesList(axesSpec: AxisSpecNormalized[]): AxisSpec[];
217
+ declare function getDenormalizedAxesList(axesSpec: AxisSpecNormalized[]): AxisSpec[];
219
218
  /** Common type representing spec for all the axes in a column */
220
- export type AxesSpec = AxisSpec[];
221
- export declare const PColumnName: {
222
- readonly Label: "pl7.app/label";
223
- readonly Table: {
224
- readonly RowSelection: "pl7.app/table/row-selection";
225
- };
226
- readonly VDJ: {
227
- readonly LeadSelection: "pl7.app/vdj/lead-selection";
228
- readonly RankingOrder: "pl7.app/vdj/ranking-order";
229
- readonly Sequence: "pl7.app/vdj/sequence";
230
- };
219
+ type AxesSpec = AxisSpec[];
220
+ declare const PColumnName: {
221
+ readonly Label: "pl7.app/label";
222
+ readonly Table: {
223
+ readonly RowSelection: "pl7.app/table/row-selection";
224
+ };
225
+ readonly VDJ: {
226
+ readonly LeadSelection: "pl7.app/vdj/lead-selection";
227
+ readonly RankingOrder: "pl7.app/vdj/ranking-order";
228
+ readonly Sequence: "pl7.app/vdj/sequence";
229
+ };
231
230
  };
232
- export declare const PAxisName: {
233
- readonly SampleId: "pl7.app/sampleId";
234
- readonly VDJ: {
235
- readonly Assay: {
236
- readonly SequenceId: "pl7.app/vdj/assay/sequenceId";
237
- };
238
- readonly ClusterId: "pl7.app/vdj/clusterId";
239
- readonly ClonotypeKey: "pl7.app/vdj/clonotypeKey";
240
- readonly ScClonotypeKey: "pl7.app/vdj/scClonotypeKey";
231
+ declare const PAxisName: {
232
+ readonly SampleId: "pl7.app/sampleId";
233
+ readonly VDJ: {
234
+ readonly Assay: {
235
+ readonly SequenceId: "pl7.app/vdj/assay/sequenceId";
241
236
  };
237
+ readonly ClusterId: "pl7.app/vdj/clusterId";
238
+ readonly ClonotypeKey: "pl7.app/vdj/clonotypeKey";
239
+ readonly ScClonotypeKey: "pl7.app/vdj/scClonotypeKey";
240
+ };
242
241
  };
243
- export declare function isLabelColumn(column: PColumnSpec): boolean;
242
+ declare function isLabelColumn(column: PColumnSpec): boolean;
244
243
  /**
245
244
  * Full column specification including all axes specs and specs of the column
246
245
  * itself.
@@ -252,24 +251,20 @@ export declare function isLabelColumn(column: PColumnSpec): boolean;
252
251
  *
253
252
  * Each element in tuple correspond to the axis having the same index in axesSpec.
254
253
  */
255
- export type PUniversalColumnSpec = PObjectSpec & {
256
- /** Defines specific type of BObject, the most generic type of unit of
257
- * information in Platforma Project. */
258
- readonly kind: "PColumn";
259
- /** Type of column values */
260
- readonly valueType: string;
261
- /** Column name */
262
- readonly name: string;
263
- /** Adds auxiliary information to the axis name, type and parents to form a
264
- * unique identifier */
265
- readonly domain?: Record<string, string>;
266
- /** Any additional information attached to the column that does not affect its
267
- * identifier */
268
- readonly annotations?: Record<string, string>;
269
- /** A list of zero-based indices of parent axes from the {@link axesSpec} array. */
270
- readonly parentAxes?: number[];
271
- /** Axes specifications */
272
- readonly axesSpec: AxesSpec;
254
+ type PUniversalColumnSpec = PObjectSpec & {
255
+ /** Defines specific type of BObject, the most generic type of unit of
256
+ * information in Platforma Project. */
257
+ readonly kind: "PColumn"; /** Type of column values */
258
+ readonly valueType: string; /** Column name */
259
+ readonly name: string;
260
+ /** Adds auxiliary information to the axis name, type and parents to form a
261
+ * unique identifier */
262
+ readonly domain?: Record<string, string>;
263
+ /** Any additional information attached to the column that does not affect its
264
+ * identifier */
265
+ readonly annotations?: Record<string, string>; /** A list of zero-based indices of parent axes from the {@link axesSpec} array. */
266
+ readonly parentAxes?: number[]; /** Axes specifications */
267
+ readonly axesSpec: AxesSpec;
273
268
  };
274
269
  /**
275
270
  * Specification of a data column.
@@ -279,70 +274,66 @@ export type PUniversalColumnSpec = PObjectSpec & {
279
274
  * values like files or other abstract data types. Data columns are optimized for storing and processing
280
275
  * basic tabular data.
281
276
  */
282
- export type PDataColumnSpec = PUniversalColumnSpec & {
283
- /** Type of column values */
284
- readonly valueType: ValueType;
277
+ type PDataColumnSpec = PUniversalColumnSpec & {
278
+ /** Type of column values */readonly valueType: ValueType;
285
279
  };
286
- export type PColumnSpec = PDataColumnSpec;
280
+ type PColumnSpec = PDataColumnSpec;
287
281
  /** Unique PColumnSpec identifier */
288
- export type PColumnSpecId = {
289
- /** Defines specific type of BObject, the most generic type of unit of
290
- * information in Platforma Project. */
291
- readonly kind: "PColumn";
292
- /** Type of column values */
293
- readonly valueType: ValueType;
294
- /** Column name */
295
- readonly name: string;
296
- /** Adds auxiliary information to the axis name, type and parents to form a
297
- * unique identifier */
298
- readonly domain?: Record<string, string>;
299
- /** A list of zero-based indices of parent axes from the {@link axesSpec} array. */
300
- readonly parentAxes?: number[];
301
- /** Axes id */
302
- readonly axesId: AxesId;
282
+ type PColumnSpecId = {
283
+ /** Defines specific type of BObject, the most generic type of unit of
284
+ * information in Platforma Project. */
285
+ readonly kind: "PColumn"; /** Type of column values */
286
+ readonly valueType: ValueType; /** Column name */
287
+ readonly name: string;
288
+ /** Adds auxiliary information to the axis name, type and parents to form a
289
+ * unique identifier */
290
+ readonly domain?: Record<string, string>; /** A list of zero-based indices of parent axes from the {@link axesSpec} array. */
291
+ readonly parentAxes?: number[]; /** Axes id */
292
+ readonly axesId: AxesId;
303
293
  };
304
- export declare function getPColumnSpecId(spec: PColumnSpec): PColumnSpecId;
305
- export interface PColumn<Data> extends PObject<Data> {
306
- /** PColumn spec, allowing it to be found among other PObjects */
307
- readonly spec: PColumnSpec;
294
+ declare function getPColumnSpecId(spec: PColumnSpec): PColumnSpecId;
295
+ interface PColumn<Data> extends PObject<Data> {
296
+ /** PColumn spec, allowing it to be found among other PObjects */
297
+ readonly spec: PColumnSpec;
308
298
  }
309
- export type PColumnLazy<T> = PColumn<() => T>;
299
+ type PColumnLazy<T> = PColumn<() => T>;
310
300
  /** Columns in a PFrame also have internal identifier, this object represents
311
301
  * combination of specs and such id */
312
- export interface PColumnIdAndSpec {
313
- /** Internal column id within the PFrame */
314
- readonly columnId: PObjectId;
315
- /** Column spec */
316
- readonly spec: PColumnSpec;
302
+ interface PColumnIdAndSpec {
303
+ /** Internal column id within the PFrame */
304
+ readonly columnId: PObjectId;
305
+ /** Column spec */
306
+ readonly spec: PColumnSpec;
317
307
  }
318
308
  /** Get column id and spec from a column */
319
- export declare function getColumnIdAndSpec<Data>(column: PColumn<Data>): PColumnIdAndSpec;
309
+ declare function getColumnIdAndSpec<Data>(column: PColumn<Data>): PColumnIdAndSpec;
320
310
  /** Information returned by {@link PFrame.listColumns} method */
321
- export interface PColumnInfo extends PColumnIdAndSpec {
322
- /** True if data was associated with this PColumn */
323
- readonly hasData: boolean;
311
+ interface PColumnInfo extends PColumnIdAndSpec {
312
+ /** True if data was associated with this PColumn */
313
+ readonly hasData: boolean;
324
314
  }
325
- export interface AxisId {
326
- /** Type of the axis or column value. For an axis should not use non-key
327
- * types like float or double. */
328
- readonly type: ValueType;
329
- /** Name of the axis or column */
330
- readonly name: string;
331
- /** Adds auxiliary information to the axis or column name and type to form a
332
- * unique identifier */
333
- readonly domain?: Record<string, string>;
315
+ interface AxisId {
316
+ /** Type of the axis or column value. For an axis should not use non-key
317
+ * types like float or double. */
318
+ readonly type: ValueType;
319
+ /** Name of the axis or column */
320
+ readonly name: string;
321
+ /** Adds auxiliary information to the axis or column name and type to form a
322
+ * unique identifier */
323
+ readonly domain?: Record<string, string>;
334
324
  }
335
325
  /** Array of axis ids */
336
- export type AxesId = AxisId[];
326
+ type AxesId = AxisId[];
337
327
  /** Extracts axis ids from axis spec */
338
- export declare function getAxisId(spec: AxisSpec): AxisId;
328
+ declare function getAxisId(spec: AxisSpec): AxisId;
339
329
  /** Extracts axes ids from axes spec array from column spec */
340
- export declare function getAxesId(spec: AxesSpec): AxesId;
330
+ declare function getAxesId(spec: AxesSpec): AxesId;
341
331
  /** Canonicalizes axis id */
342
- export declare function canonicalizeAxisId(id: AxisId): CanonicalizedJson<AxisId>;
332
+ declare function canonicalizeAxisId(id: AxisId): CanonicalizedJson<AxisId>;
343
333
  /** Returns whether "match" axis id is compatible with the "query" */
344
- export declare function matchAxisId(query: AxisId, target: AxisId): boolean;
345
- export declare function getTypeFromPColumnOrAxisSpec(spec: PColumnSpec | AxisSpec): ValueType;
346
- export declare function isAxisId(id: unknown): id is AxisId;
347
- export {};
334
+ declare function matchAxisId(query: AxisId, target: AxisId): boolean;
335
+ declare function getTypeFromPColumnOrAxisSpec(spec: PColumnSpec | AxisSpec): ValueType;
336
+ declare function isAxisId(id: unknown): id is AxisId;
337
+ //#endregion
338
+ export { Annotation, AnnotationJson, AxesId, AxesSpec, AxisId, AxisSpec, AxisSpecNormalized, AxisTree, AxisValueType, ColumnValueType, Domain, DomainJson, Metadata, MetadataJson, PAxisName, PColumn, PColumnIdAndSpec, PColumnInfo, PColumnLazy, PColumnName, PColumnSpec, PColumnSpecId, PDataColumnSpec, PUniversalColumnSpec, ValueType, canonicalizeAxisId, canonicalizeAxisWithParents, getArrayFromAxisTree, getAxesId, getAxesTree, getAxisId, getColumnIdAndSpec, getDenormalizedAxesList, getNormalizedAxesList, getPColumnSpecId, getSetFromAxisTree, getTypeFromPColumnOrAxisSpec, isAxisId, isLabelColumn, isLinkerColumn, matchAxisId, readAnnotation, readAnnotationJson, readAnnotationJsonOrThrow, readDomain, readDomainJson, readDomainJsonOrThrow, readMetadata, readMetadataJson, readMetadataJsonOrThrow };
348
339
  //# sourceMappingURL=spec.d.ts.map