@platforma-sdk/model 1.58.5 → 1.58.11

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 (365) hide show
  1. package/dist/_virtual/_rolldown/runtime.cjs +43 -0
  2. package/dist/_virtual/_rolldown/runtime.js +18 -0
  3. package/dist/annotations/converter.cjs +15 -20
  4. package/dist/annotations/converter.cjs.map +1 -1
  5. package/dist/annotations/converter.d.ts +6 -2
  6. package/dist/annotations/converter.js +14 -18
  7. package/dist/annotations/converter.js.map +1 -1
  8. package/dist/annotations/index.cjs +1 -0
  9. package/dist/annotations/index.d.ts +2 -3
  10. package/dist/annotations/index.js +1 -0
  11. package/dist/annotations/types.d.ts +21 -16
  12. package/dist/bconfig/index.cjs +2 -0
  13. package/dist/bconfig/index.d.ts +5 -6
  14. package/dist/bconfig/index.js +2 -0
  15. package/dist/bconfig/lambdas.d.ts +52 -52
  16. package/dist/bconfig/normalization.cjs +13 -18
  17. package/dist/bconfig/normalization.cjs.map +1 -1
  18. package/dist/bconfig/normalization.d.ts +10 -6
  19. package/dist/bconfig/normalization.js +12 -16
  20. package/dist/bconfig/normalization.js.map +1 -1
  21. package/dist/bconfig/types.cjs +4 -3
  22. package/dist/bconfig/types.cjs.map +1 -1
  23. package/dist/bconfig/types.d.ts +10 -5
  24. package/dist/bconfig/types.js +4 -2
  25. package/dist/bconfig/types.js.map +1 -1
  26. package/dist/bconfig/util.d.ts +7 -4
  27. package/dist/bconfig/v3.d.ts +10 -6
  28. package/dist/block_api_v1.d.ts +62 -58
  29. package/dist/block_api_v2.d.ts +51 -47
  30. package/dist/block_api_v3.d.ts +33 -29
  31. package/dist/block_migrations.cjs +481 -413
  32. package/dist/block_migrations.cjs.map +1 -1
  33. package/dist/block_migrations.d.ts +258 -204
  34. package/dist/block_migrations.js +482 -408
  35. package/dist/block_migrations.js.map +1 -1
  36. package/dist/block_model.cjs +312 -343
  37. package/dist/block_model.cjs.map +1 -1
  38. package/dist/block_model.d.ts +143 -147
  39. package/dist/block_model.js +312 -341
  40. package/dist/block_model.js.map +1 -1
  41. package/dist/block_model_legacy.cjs +231 -255
  42. package/dist/block_model_legacy.cjs.map +1 -1
  43. package/dist/block_model_legacy.d.ts +108 -106
  44. package/dist/block_model_legacy.js +231 -253
  45. package/dist/block_model_legacy.js.map +1 -1
  46. package/dist/block_state_patch.d.ts +10 -10
  47. package/dist/block_state_util.cjs +15 -19
  48. package/dist/block_state_util.cjs.map +1 -1
  49. package/dist/block_state_util.d.ts +14 -13
  50. package/dist/block_state_util.js +15 -18
  51. package/dist/block_state_util.js.map +1 -1
  52. package/dist/block_storage.cjs +233 -238
  53. package/dist/block_storage.cjs.map +1 -1
  54. package/dist/block_storage.d.ts +62 -78
  55. package/dist/block_storage.js +234 -237
  56. package/dist/block_storage.js.map +1 -1
  57. package/dist/block_storage_callbacks.cjs +156 -195
  58. package/dist/block_storage_callbacks.cjs.map +1 -1
  59. package/dist/block_storage_callbacks.js +156 -192
  60. package/dist/block_storage_callbacks.js.map +1 -1
  61. package/dist/block_storage_facade.cjs +29 -85
  62. package/dist/block_storage_facade.cjs.map +1 -1
  63. package/dist/block_storage_facade.d.ts +83 -126
  64. package/dist/block_storage_facade.js +29 -83
  65. package/dist/block_storage_facade.js.map +1 -1
  66. package/dist/components/PFrameForGraphs.cjs +26 -24
  67. package/dist/components/PFrameForGraphs.cjs.map +1 -1
  68. package/dist/components/PFrameForGraphs.d.ts +12 -7
  69. package/dist/components/PFrameForGraphs.js +25 -22
  70. package/dist/components/PFrameForGraphs.js.map +1 -1
  71. package/dist/components/PlAnnotations/filter.d.ts +62 -79
  72. package/dist/components/PlAnnotations/filters_ui.cjs +135 -171
  73. package/dist/components/PlAnnotations/filters_ui.cjs.map +1 -1
  74. package/dist/components/PlAnnotations/filters_ui.d.ts +48 -46
  75. package/dist/components/PlAnnotations/filters_ui.js +135 -170
  76. package/dist/components/PlAnnotations/filters_ui.js.map +1 -1
  77. package/dist/components/PlAnnotations/index.d.ts +2 -3
  78. package/dist/components/PlDataTable/index.cjs +2 -0
  79. package/dist/components/PlDataTable/index.d.ts +3 -5
  80. package/dist/components/PlDataTable/index.js +2 -0
  81. package/dist/components/PlDataTable/labels.cjs +59 -81
  82. package/dist/components/PlDataTable/labels.cjs.map +1 -1
  83. package/dist/components/PlDataTable/labels.js +58 -79
  84. package/dist/components/PlDataTable/labels.js.map +1 -1
  85. package/dist/components/PlDataTable/state-migration.cjs +186 -144
  86. package/dist/components/PlDataTable/state-migration.cjs.map +1 -1
  87. package/dist/components/PlDataTable/state-migration.d.ts +85 -82
  88. package/dist/components/PlDataTable/state-migration.js +185 -142
  89. package/dist/components/PlDataTable/state-migration.js.map +1 -1
  90. package/dist/components/PlDataTable/table.cjs +172 -194
  91. package/dist/components/PlDataTable/table.cjs.map +1 -1
  92. package/dist/components/PlDataTable/table.d.ts +16 -12
  93. package/dist/components/PlDataTable/table.js +171 -192
  94. package/dist/components/PlDataTable/table.js.map +1 -1
  95. package/dist/components/PlDataTable/v4.d.ts +84 -119
  96. package/dist/components/PlDataTable/v5.d.ts +80 -103
  97. package/dist/components/PlMultiSequenceAlignment.cjs +27 -29
  98. package/dist/components/PlMultiSequenceAlignment.cjs.map +1 -1
  99. package/dist/components/PlMultiSequenceAlignment.d.ts +36 -27
  100. package/dist/components/PlMultiSequenceAlignment.js +26 -27
  101. package/dist/components/PlMultiSequenceAlignment.js.map +1 -1
  102. package/dist/components/PlSelectionModel.cjs +7 -6
  103. package/dist/components/PlSelectionModel.cjs.map +1 -1
  104. package/dist/components/PlSelectionModel.d.ts +10 -8
  105. package/dist/components/PlSelectionModel.js +7 -5
  106. package/dist/components/PlSelectionModel.js.map +1 -1
  107. package/dist/components/index.cjs +8 -0
  108. package/dist/components/index.d.ts +11 -6
  109. package/dist/components/index.js +8 -0
  110. package/dist/config/actions.cjs +138 -171
  111. package/dist/config/actions.cjs.map +1 -1
  112. package/dist/config/actions.d.ts +47 -47
  113. package/dist/config/actions.js +146 -178
  114. package/dist/config/actions.js.map +1 -1
  115. package/dist/config/actions_kinds.d.ts +114 -121
  116. package/dist/config/index.cjs +1 -0
  117. package/dist/config/index.d.ts +6 -7
  118. package/dist/config/index.js +1 -0
  119. package/dist/config/model.d.ts +131 -127
  120. package/dist/config/model_meta.d.ts +4 -1
  121. package/dist/config/type_engine.d.ts +22 -21
  122. package/dist/config/type_util.d.ts +12 -10
  123. package/dist/env_value.cjs +5 -6
  124. package/dist/env_value.cjs.map +1 -1
  125. package/dist/env_value.d.ts +4 -1
  126. package/dist/env_value.js +5 -5
  127. package/dist/env_value.js.map +1 -1
  128. package/dist/filters/converters/filterToQuery.cjs +273 -239
  129. package/dist/filters/converters/filterToQuery.cjs.map +1 -1
  130. package/dist/filters/converters/filterToQuery.d.ts +6 -2
  131. package/dist/filters/converters/filterToQuery.js +272 -237
  132. package/dist/filters/converters/filterToQuery.js.map +1 -1
  133. package/dist/filters/converters/filterUiToExpressionImpl.cjs +56 -85
  134. package/dist/filters/converters/filterUiToExpressionImpl.cjs.map +1 -1
  135. package/dist/filters/converters/filterUiToExpressionImpl.d.ts +8 -4
  136. package/dist/filters/converters/filterUiToExpressionImpl.js +55 -83
  137. package/dist/filters/converters/filterUiToExpressionImpl.js.map +1 -1
  138. package/dist/filters/converters/index.cjs +2 -0
  139. package/dist/filters/converters/index.d.ts +2 -3
  140. package/dist/filters/converters/index.js +2 -0
  141. package/dist/filters/distill.cjs +59 -60
  142. package/dist/filters/distill.cjs.map +1 -1
  143. package/dist/filters/distill.d.ts +6 -3
  144. package/dist/filters/distill.js +58 -58
  145. package/dist/filters/distill.js.map +1 -1
  146. package/dist/filters/index.cjs +4 -0
  147. package/dist/filters/index.d.ts +5 -4
  148. package/dist/filters/index.js +4 -0
  149. package/dist/filters/traverse.cjs +31 -40
  150. package/dist/filters/traverse.cjs.map +1 -1
  151. package/dist/filters/traverse.js +31 -39
  152. package/dist/filters/traverse.js.map +1 -1
  153. package/dist/filters/types.d.ts +10 -7
  154. package/dist/index.cjs +193 -187
  155. package/dist/index.d.ts +61 -28
  156. package/dist/index.js +49 -41
  157. package/dist/internal.cjs +48 -62
  158. package/dist/internal.cjs.map +1 -1
  159. package/dist/internal.js +49 -60
  160. package/dist/internal.js.map +1 -1
  161. package/dist/package.cjs +12 -0
  162. package/dist/package.cjs.map +1 -0
  163. package/dist/package.js +6 -0
  164. package/dist/package.js.map +1 -0
  165. package/dist/pframe.cjs +32 -37
  166. package/dist/pframe.cjs.map +1 -1
  167. package/dist/pframe.d.ts +14 -10
  168. package/dist/pframe.js +32 -35
  169. package/dist/pframe.js.map +1 -1
  170. package/dist/pframe_utils/axes.cjs +81 -114
  171. package/dist/pframe_utils/axes.cjs.map +1 -1
  172. package/dist/pframe_utils/axes.d.ts +10 -13
  173. package/dist/pframe_utils/axes.js +80 -112
  174. package/dist/pframe_utils/axes.js.map +1 -1
  175. package/dist/pframe_utils/columns.cjs +61 -81
  176. package/dist/pframe_utils/columns.cjs.map +1 -1
  177. package/dist/pframe_utils/columns.d.ts +15 -6
  178. package/dist/pframe_utils/columns.js +60 -79
  179. package/dist/pframe_utils/columns.js.map +1 -1
  180. package/dist/pframe_utils/index.cjs +232 -253
  181. package/dist/pframe_utils/index.cjs.map +1 -1
  182. package/dist/pframe_utils/index.d.ts +39 -35
  183. package/dist/pframe_utils/index.js +231 -251
  184. package/dist/pframe_utils/index.js.map +1 -1
  185. package/dist/platforma.d.ts +48 -46
  186. package/dist/plugin_handle.cjs +6 -14
  187. package/dist/plugin_handle.cjs.map +1 -1
  188. package/dist/plugin_handle.d.ts +20 -25
  189. package/dist/plugin_handle.js +6 -13
  190. package/dist/plugin_handle.js.map +1 -1
  191. package/dist/plugin_model.cjs +364 -163
  192. package/dist/plugin_model.cjs.map +1 -1
  193. package/dist/plugin_model.d.ts +280 -129
  194. package/dist/plugin_model.js +362 -163
  195. package/dist/plugin_model.js.map +1 -1
  196. package/dist/raw_globals.cjs +10 -22
  197. package/dist/raw_globals.cjs.map +1 -1
  198. package/dist/raw_globals.d.ts +8 -5
  199. package/dist/raw_globals.js +10 -20
  200. package/dist/raw_globals.js.map +1 -1
  201. package/dist/ref_util.cjs +14 -13
  202. package/dist/ref_util.cjs.map +1 -1
  203. package/dist/ref_util.d.ts +18 -12
  204. package/dist/ref_util.js +14 -11
  205. package/dist/ref_util.js.map +1 -1
  206. package/dist/render/accessor.cjs +213 -226
  207. package/dist/render/accessor.cjs.map +1 -1
  208. package/dist/render/accessor.d.ts +115 -120
  209. package/dist/render/accessor.js +212 -224
  210. package/dist/render/accessor.js.map +1 -1
  211. package/dist/render/api.cjs +478 -580
  212. package/dist/render/api.cjs.map +1 -1
  213. package/dist/render/api.d.ts +207 -209
  214. package/dist/render/api.js +476 -578
  215. package/dist/render/api.js.map +1 -1
  216. package/dist/render/future.cjs +28 -32
  217. package/dist/render/future.cjs.map +1 -1
  218. package/dist/render/future.d.ts +15 -11
  219. package/dist/render/future.js +28 -30
  220. package/dist/render/future.js.map +1 -1
  221. package/dist/render/index.cjs +8 -0
  222. package/dist/render/index.d.ts +10 -8
  223. package/dist/render/index.js +8 -0
  224. package/dist/render/internal.cjs +33 -29
  225. package/dist/render/internal.cjs.map +1 -1
  226. package/dist/render/internal.d.ts +78 -72
  227. package/dist/render/internal.js +29 -26
  228. package/dist/render/internal.js.map +1 -1
  229. package/dist/render/traversal_ops.d.ts +42 -43
  230. package/dist/render/util/axis_filtering.cjs +63 -86
  231. package/dist/render/util/axis_filtering.cjs.map +1 -1
  232. package/dist/render/util/axis_filtering.d.ts +10 -7
  233. package/dist/render/util/axis_filtering.js +63 -85
  234. package/dist/render/util/axis_filtering.js.map +1 -1
  235. package/dist/render/util/column_collection.cjs +266 -321
  236. package/dist/render/util/column_collection.cjs.map +1 -1
  237. package/dist/render/util/column_collection.d.ts +47 -47
  238. package/dist/render/util/column_collection.js +264 -319
  239. package/dist/render/util/column_collection.js.map +1 -1
  240. package/dist/render/util/index.cjs +4 -0
  241. package/dist/render/util/index.d.ts +4 -5
  242. package/dist/render/util/index.js +4 -0
  243. package/dist/render/util/label.cjs +129 -163
  244. package/dist/render/util/label.cjs.map +1 -1
  245. package/dist/render/util/label.d.ts +45 -46
  246. package/dist/render/util/label.js +128 -161
  247. package/dist/render/util/label.js.map +1 -1
  248. package/dist/render/util/pcolumn_data.cjs +315 -375
  249. package/dist/render/util/pcolumn_data.cjs.map +1 -1
  250. package/dist/render/util/pcolumn_data.d.ts +33 -32
  251. package/dist/render/util/pcolumn_data.js +314 -373
  252. package/dist/render/util/pcolumn_data.js.map +1 -1
  253. package/dist/render/util/pframe_upgraders.cjs +37 -42
  254. package/dist/render/util/pframe_upgraders.cjs.map +1 -1
  255. package/dist/render/util/pframe_upgraders.js +37 -41
  256. package/dist/render/util/pframe_upgraders.js.map +1 -1
  257. package/dist/render/util/split_selectors.d.ts +13 -9
  258. package/dist/version.cjs +6 -8
  259. package/dist/version.cjs.map +1 -1
  260. package/dist/version.d.ts +7 -4
  261. package/dist/version.js +5 -5
  262. package/dist/version.js.map +1 -1
  263. package/package.json +15 -9
  264. package/src/block_migrations.test.ts +184 -14
  265. package/src/block_migrations.ts +185 -30
  266. package/src/block_model.ts +111 -66
  267. package/src/block_storage.test.ts +147 -3
  268. package/src/block_storage.ts +43 -8
  269. package/src/block_storage_callbacks.ts +9 -4
  270. package/src/env_value.ts +0 -2
  271. package/src/index.ts +12 -11
  272. package/src/internal.ts +0 -1
  273. package/src/platforma.ts +4 -4
  274. package/src/plugin_handle.ts +1 -1
  275. package/src/plugin_model.test.ts +217 -21
  276. package/src/plugin_model.ts +450 -55
  277. package/src/raw_globals.ts +0 -1
  278. package/dist/annotations/converter.d.ts.map +0 -1
  279. package/dist/annotations/index.d.ts.map +0 -1
  280. package/dist/annotations/types.d.ts.map +0 -1
  281. package/dist/bconfig/index.d.ts.map +0 -1
  282. package/dist/bconfig/lambdas.d.ts.map +0 -1
  283. package/dist/bconfig/normalization.d.ts.map +0 -1
  284. package/dist/bconfig/types.d.ts.map +0 -1
  285. package/dist/bconfig/util.d.ts.map +0 -1
  286. package/dist/bconfig/v3.d.ts.map +0 -1
  287. package/dist/block_api_v1.d.ts.map +0 -1
  288. package/dist/block_api_v2.d.ts.map +0 -1
  289. package/dist/block_api_v3.d.ts.map +0 -1
  290. package/dist/block_migrations.d.ts.map +0 -1
  291. package/dist/block_model.d.ts.map +0 -1
  292. package/dist/block_model_legacy.d.ts.map +0 -1
  293. package/dist/block_state_patch.d.ts.map +0 -1
  294. package/dist/block_state_util.d.ts.map +0 -1
  295. package/dist/block_storage.d.ts.map +0 -1
  296. package/dist/block_storage_callbacks.d.ts +0 -115
  297. package/dist/block_storage_callbacks.d.ts.map +0 -1
  298. package/dist/block_storage_facade.d.ts.map +0 -1
  299. package/dist/components/PFrameForGraphs.d.ts.map +0 -1
  300. package/dist/components/PlAnnotations/filter.d.ts.map +0 -1
  301. package/dist/components/PlAnnotations/filters_ui.d.ts.map +0 -1
  302. package/dist/components/PlAnnotations/index.d.ts.map +0 -1
  303. package/dist/components/PlAnnotations/types.d.ts +0 -3
  304. package/dist/components/PlAnnotations/types.d.ts.map +0 -1
  305. package/dist/components/PlDataTable/index.d.ts.map +0 -1
  306. package/dist/components/PlDataTable/labels.d.ts +0 -7
  307. package/dist/components/PlDataTable/labels.d.ts.map +0 -1
  308. package/dist/components/PlDataTable/state-migration.d.ts.map +0 -1
  309. package/dist/components/PlDataTable/table.d.ts.map +0 -1
  310. package/dist/components/PlDataTable/v4.d.ts.map +0 -1
  311. package/dist/components/PlDataTable/v5.d.ts.map +0 -1
  312. package/dist/components/PlMultiSequenceAlignment.d.ts.map +0 -1
  313. package/dist/components/PlSelectionModel.d.ts.map +0 -1
  314. package/dist/components/index.d.ts.map +0 -1
  315. package/dist/config/actions.d.ts.map +0 -1
  316. package/dist/config/actions_kinds.d.ts.map +0 -1
  317. package/dist/config/index.d.ts.map +0 -1
  318. package/dist/config/model.d.ts.map +0 -1
  319. package/dist/config/model_meta.d.ts.map +0 -1
  320. package/dist/config/type_engine.d.ts.map +0 -1
  321. package/dist/config/type_util.d.ts.map +0 -1
  322. package/dist/env_value.d.ts.map +0 -1
  323. package/dist/filters/converters/filterToQuery.d.ts.map +0 -1
  324. package/dist/filters/converters/filterUiToExpressionImpl.d.ts.map +0 -1
  325. package/dist/filters/converters/index.d.ts.map +0 -1
  326. package/dist/filters/distill.d.ts.map +0 -1
  327. package/dist/filters/index.d.ts.map +0 -1
  328. package/dist/filters/traverse.d.ts +0 -27
  329. package/dist/filters/traverse.d.ts.map +0 -1
  330. package/dist/filters/types.d.ts.map +0 -1
  331. package/dist/index.cjs.map +0 -1
  332. package/dist/index.d.ts.map +0 -1
  333. package/dist/index.js.map +0 -1
  334. package/dist/internal.d.ts +0 -36
  335. package/dist/internal.d.ts.map +0 -1
  336. package/dist/package.json.cjs +0 -6
  337. package/dist/package.json.cjs.map +0 -1
  338. package/dist/package.json.js +0 -4
  339. package/dist/package.json.js.map +0 -1
  340. package/dist/pframe.d.ts.map +0 -1
  341. package/dist/pframe_utils/axes.d.ts.map +0 -1
  342. package/dist/pframe_utils/columns.d.ts.map +0 -1
  343. package/dist/pframe_utils/index.d.ts.map +0 -1
  344. package/dist/pframe_utils/querySpec.d.ts +0 -2
  345. package/dist/pframe_utils/querySpec.d.ts.map +0 -1
  346. package/dist/platforma.d.ts.map +0 -1
  347. package/dist/plugin_handle.d.ts.map +0 -1
  348. package/dist/plugin_model.d.ts.map +0 -1
  349. package/dist/raw_globals.d.ts.map +0 -1
  350. package/dist/ref_util.d.ts.map +0 -1
  351. package/dist/render/accessor.d.ts.map +0 -1
  352. package/dist/render/api.d.ts.map +0 -1
  353. package/dist/render/future.d.ts.map +0 -1
  354. package/dist/render/index.d.ts.map +0 -1
  355. package/dist/render/internal.d.ts.map +0 -1
  356. package/dist/render/traversal_ops.d.ts.map +0 -1
  357. package/dist/render/util/axis_filtering.d.ts.map +0 -1
  358. package/dist/render/util/column_collection.d.ts.map +0 -1
  359. package/dist/render/util/index.d.ts.map +0 -1
  360. package/dist/render/util/label.d.ts.map +0 -1
  361. package/dist/render/util/pcolumn_data.d.ts.map +0 -1
  362. package/dist/render/util/pframe_upgraders.d.ts +0 -3
  363. package/dist/render/util/pframe_upgraders.d.ts.map +0 -1
  364. package/dist/render/util/split_selectors.d.ts.map +0 -1
  365. package/dist/version.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"actions.js","sources":["../../src/config/actions.ts"],"sourcesContent":["import type {\n ActGetField,\n ActGetFromCtx,\n ActGetImmediate,\n ActGetResourceField,\n ActGetResourceValueAsJson,\n ActMakeObject,\n ActMapRecordValues,\n ActMapResourceFields,\n ActMapArrayValues,\n ActIsEmpty,\n ActNot,\n ActIsolate,\n ActGetBlobContentAsJson,\n ActGetBlobContentAsString,\n ActGetBlobContent,\n ActAnd,\n ActOr,\n ActMakeArray,\n ActFlatten,\n ActGetDownloadedBlobContent,\n ActGetOnDemandBlobContent,\n ActImportProgress,\n ActGetLastLogs,\n ActGetProgressLog,\n ActGetProgressLogWithInfo,\n ActGetLogHandle,\n ActExtractArchiveAndGetURL,\n} from \"./actions_kinds\";\nimport type {\n ExtractAction,\n POCExtractAction,\n PrimitiveOrConfig,\n TypedConfig,\n} from \"./type_engine\";\nimport type { Cfg } from \"./model\";\nimport type { CheckedSyncConf } from \"./type_util\";\nimport type { ArchiveFormat, RangeBytes } from \"@milaboratories/pl-model-common\";\n\n//\n// Helpers\n//\n\nfunction primitiveToConfig(value: PrimitiveOrConfig): TypedConfig {\n if (\n typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\" ||\n value === null\n )\n return getImmediate(value);\n else return value as TypedConfig;\n}\n\n//\n// Context\n//\n\nexport function getFromCfg<const V extends string>(variable: V): TypedConfig<ActGetFromCtx<V>> {\n return { type: \"GetFromCtx\", variable } as Cfg as any;\n}\n\n//\n// Isolate\n//\n\nexport function isolate<const Config extends TypedConfig>(\n cfg: Config,\n): TypedConfig<ActIsolate<ExtractAction<Config>>> {\n return {\n type: \"Isolate\",\n cfg,\n } as Cfg as any;\n}\n\n//\n// Well-known Context Vars\n//\n\nexport const Args = getFromCfg(\"$args\");\nexport const It = getFromCfg(\"$it\");\nexport const MainOutputs = getFromCfg(\"$prod\");\nexport const StagingOutputs = getFromCfg(\"$staging\");\nexport const UiState = getFromCfg(\"$ui\");\n\n//\n// Json\n//\n\nexport function getImmediate<const T>(value: T): TypedConfig<ActGetImmediate<T>> {\n return { type: \"Immediate\", value } as Cfg as any;\n}\n\nexport function makeObject<const T extends Record<string, PrimitiveOrConfig>>(\n template: T,\n): TypedConfig<ActMakeObject<{ [Key in keyof T]: POCExtractAction<T[Key]> }>> {\n const normalizedTemplate: Record<string, TypedConfig> = {};\n for (const [k, cfg] of Object.entries(template)) normalizedTemplate[k] = primitiveToConfig(cfg);\n return {\n type: \"MakeObject\",\n template: normalizedTemplate,\n } as Cfg as any;\n}\n\nexport function makeArray<const T extends PrimitiveOrConfig[]>(\n ...template: T\n): TypedConfig<ActMakeArray<{ [Key in keyof T]: POCExtractAction<T[Key]> }>> {\n const normalizedTemplate: TypedConfig[] = [];\n for (const cfg of template) normalizedTemplate.push(primitiveToConfig(cfg));\n return {\n type: \"MakeArray\",\n template: normalizedTemplate,\n } as Cfg as any;\n}\n\nexport function getJsonField<\n const Source extends PrimitiveOrConfig,\n const Field extends PrimitiveOrConfig,\n>(\n source: Source,\n field: Field,\n): TypedConfig<ActGetField<POCExtractAction<Source>, POCExtractAction<Field>>> {\n return {\n type: \"GetJsonField\",\n source: primitiveToConfig(source),\n field: primitiveToConfig(field),\n } as Cfg as any;\n}\n\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n itVar: ItVar,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n itVar: ItVar,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar = \"$it\" as ItVar,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {\n return {\n type: \"MapRecordValues\",\n source,\n mapping,\n itVar,\n } as Cfg as any;\n}\n\nexport function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapArrayValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n itVar: ItVar,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapArrayValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n itVar: ItVar,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapArrayValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar = \"$it\" as ItVar,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {\n return {\n type: \"MapArrayValues\",\n source,\n mapping,\n itVar,\n } as Cfg as any;\n}\n\nexport function flatten<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActFlatten<ExtractAction<Source>>> {\n return {\n type: \"Flatten\",\n source,\n } as Cfg as any;\n}\n\n//\n// Boolean\n//\n\nexport function isEmpty<const Arg extends TypedConfig>(\n arg: Arg,\n): TypedConfig<ActIsEmpty<ExtractAction<Arg>>> {\n return {\n type: \"IsEmpty\",\n arg,\n } as Cfg as any;\n}\n\nexport function not<const Operand extends TypedConfig>(\n operand: Operand,\n): TypedConfig<ActNot<ExtractAction<Operand>>> {\n return {\n type: \"Not\",\n operand,\n } as Cfg as any;\n}\n\nexport function and<const Operand1 extends TypedConfig, const Operand2 extends TypedConfig>(\n operand1: Operand1,\n operand2: Operand2,\n): TypedConfig<ActAnd<ExtractAction<Operand1>, ExtractAction<Operand2>>> {\n return {\n type: \"And\",\n operand1,\n operand2,\n } as Cfg as any;\n}\n\nexport function or<const Operand1 extends TypedConfig, const Operand2 extends TypedConfig>(\n operand1: Operand1,\n operand2: Operand2,\n): TypedConfig<ActOr<ExtractAction<Operand1>, ExtractAction<Operand2>>> {\n return {\n type: \"Or\",\n operand1,\n operand2,\n } as Cfg as any;\n}\n\n//\n// Resources\n//\n\nexport function getResourceField<\n const Source extends PrimitiveOrConfig,\n const Field extends PrimitiveOrConfig,\n>(\n source: Source,\n field: Field,\n): TypedConfig<ActGetResourceField<POCExtractAction<Source>, POCExtractAction<Field>>> {\n return {\n type: \"GetResourceField\",\n source: primitiveToConfig(source),\n field: primitiveToConfig(field),\n } as Cfg as any;\n}\n\nexport function getResourceValueAsJson<T>() {\n return function <const Source extends PrimitiveOrConfig>(\n source: Source,\n ): TypedConfig<ActGetResourceValueAsJson<POCExtractAction<Source>, T>> {\n return {\n type: \"GetResourceValueAsJson\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n };\n}\n\nexport function mapResourceFields<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n>(\n source: Source,\n mapping: Mapping,\n): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapResourceFields<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar,\n): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapResourceFields<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar = \"$it\" as ItVar,\n): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {\n return {\n type: \"MapResourceFields\",\n source,\n mapping,\n itVar,\n } as Cfg as TypedConfig<\n ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>\n >;\n}\n\n//\n// Download Blobs\n//\n\nexport function getBlobContent<const Source extends TypedConfig>(\n source: Source,\n range?: RangeBytes,\n): TypedConfig<ActGetBlobContent<ExtractAction<Source>>> {\n return {\n type: \"GetBlobContent\",\n range,\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\nexport function getBlobContentAsString<const Source extends TypedConfig>(\n source: Source,\n range?: RangeBytes,\n): TypedConfig<ActGetBlobContentAsString<ExtractAction<Source>>> {\n return {\n type: \"GetBlobContentAsString\",\n range,\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\nexport function getBlobContentAsJson<T>() {\n return function <const Source extends TypedConfig>(\n source: Source,\n range?: RangeBytes,\n ): TypedConfig<ActGetBlobContentAsJson<ExtractAction<Source>, T>> {\n return {\n type: \"GetBlobContentAsJson\",\n range,\n source: primitiveToConfig(source),\n } as Cfg as any;\n };\n}\n\nexport function getDownloadedBlobContent<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActGetDownloadedBlobContent<ExtractAction<Source>>> {\n return {\n type: \"GetDownloadedBlobContent\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\nexport function getOnDemandBlobContent<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActGetOnDemandBlobContent<ExtractAction<Source>>> {\n return {\n type: \"GetOnDemandBlobContent\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\n//\n// Download Blobs to URLs\n//\n\nexport function extractArchiveAndGetURL<const Source extends TypedConfig>(\n source: Source,\n format: ArchiveFormat,\n): TypedConfig<ActExtractArchiveAndGetURL<ExtractAction<Source>>> {\n return {\n type: \"ExtractArchiveAndGetURL\",\n format,\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\n//\n// Upload Blobs\n//\n\nexport function getImportProgress<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActImportProgress<ExtractAction<Source>>> {\n return {\n type: \"GetImportProgress\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\n//\n// Logs\n//\n\nexport function getLastLogs<const Source extends TypedConfig>(\n source: Source,\n lines: number,\n): TypedConfig<ActGetLastLogs<ExtractAction<Source>>> {\n return {\n type: \"GetLastLogs\",\n source: primitiveToConfig(source),\n lines,\n } as Cfg as any;\n}\n\nexport function getProgressLog<const Source extends TypedConfig>(\n source: Source,\n patternToSearch: string,\n): TypedConfig<ActGetProgressLog<ExtractAction<Source>>> {\n return {\n type: \"GetProgressLog\",\n source: primitiveToConfig(source),\n patternToSearch,\n } as Cfg as any;\n}\n\nexport function getProgressLogWithInfo<const Source extends TypedConfig>(\n source: Source,\n patternToSearch: string,\n): TypedConfig<ActGetProgressLogWithInfo<ExtractAction<Source>>> {\n return {\n type: \"GetProgressLogWithInfo\",\n source: primitiveToConfig(source),\n patternToSearch,\n } as Cfg as any;\n}\n\nexport function getLogHandle<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActGetLogHandle<ExtractAction<Source>>> {\n return {\n type: \"GetLogHandle\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"actions.js","names":[],"sources":["../../src/config/actions.ts"],"sourcesContent":["import type {\n ActGetField,\n ActGetFromCtx,\n ActGetImmediate,\n ActGetResourceField,\n ActGetResourceValueAsJson,\n ActMakeObject,\n ActMapRecordValues,\n ActMapResourceFields,\n ActMapArrayValues,\n ActIsEmpty,\n ActNot,\n ActIsolate,\n ActGetBlobContentAsJson,\n ActGetBlobContentAsString,\n ActGetBlobContent,\n ActAnd,\n ActOr,\n ActMakeArray,\n ActFlatten,\n ActGetDownloadedBlobContent,\n ActGetOnDemandBlobContent,\n ActImportProgress,\n ActGetLastLogs,\n ActGetProgressLog,\n ActGetProgressLogWithInfo,\n ActGetLogHandle,\n ActExtractArchiveAndGetURL,\n} from \"./actions_kinds\";\nimport type {\n ExtractAction,\n POCExtractAction,\n PrimitiveOrConfig,\n TypedConfig,\n} from \"./type_engine\";\nimport type { Cfg } from \"./model\";\nimport type { CheckedSyncConf } from \"./type_util\";\nimport type { ArchiveFormat, RangeBytes } from \"@milaboratories/pl-model-common\";\n\n//\n// Helpers\n//\n\nfunction primitiveToConfig(value: PrimitiveOrConfig): TypedConfig {\n if (\n typeof value === \"string\" ||\n typeof value === \"number\" ||\n typeof value === \"boolean\" ||\n value === null\n )\n return getImmediate(value);\n else return value as TypedConfig;\n}\n\n//\n// Context\n//\n\nexport function getFromCfg<const V extends string>(variable: V): TypedConfig<ActGetFromCtx<V>> {\n return { type: \"GetFromCtx\", variable } as Cfg as any;\n}\n\n//\n// Isolate\n//\n\nexport function isolate<const Config extends TypedConfig>(\n cfg: Config,\n): TypedConfig<ActIsolate<ExtractAction<Config>>> {\n return {\n type: \"Isolate\",\n cfg,\n } as Cfg as any;\n}\n\n//\n// Well-known Context Vars\n//\n\nexport const Args = getFromCfg(\"$args\");\nexport const It = getFromCfg(\"$it\");\nexport const MainOutputs = getFromCfg(\"$prod\");\nexport const StagingOutputs = getFromCfg(\"$staging\");\nexport const UiState = getFromCfg(\"$ui\");\n\n//\n// Json\n//\n\nexport function getImmediate<const T>(value: T): TypedConfig<ActGetImmediate<T>> {\n return { type: \"Immediate\", value } as Cfg as any;\n}\n\nexport function makeObject<const T extends Record<string, PrimitiveOrConfig>>(\n template: T,\n): TypedConfig<ActMakeObject<{ [Key in keyof T]: POCExtractAction<T[Key]> }>> {\n const normalizedTemplate: Record<string, TypedConfig> = {};\n for (const [k, cfg] of Object.entries(template)) normalizedTemplate[k] = primitiveToConfig(cfg);\n return {\n type: \"MakeObject\",\n template: normalizedTemplate,\n } as Cfg as any;\n}\n\nexport function makeArray<const T extends PrimitiveOrConfig[]>(\n ...template: T\n): TypedConfig<ActMakeArray<{ [Key in keyof T]: POCExtractAction<T[Key]> }>> {\n const normalizedTemplate: TypedConfig[] = [];\n for (const cfg of template) normalizedTemplate.push(primitiveToConfig(cfg));\n return {\n type: \"MakeArray\",\n template: normalizedTemplate,\n } as Cfg as any;\n}\n\nexport function getJsonField<\n const Source extends PrimitiveOrConfig,\n const Field extends PrimitiveOrConfig,\n>(\n source: Source,\n field: Field,\n): TypedConfig<ActGetField<POCExtractAction<Source>, POCExtractAction<Field>>> {\n return {\n type: \"GetJsonField\",\n source: primitiveToConfig(source),\n field: primitiveToConfig(field),\n } as Cfg as any;\n}\n\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n itVar: ItVar,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n itVar: ItVar,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapRecordValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar = \"$it\" as ItVar,\n): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {\n return {\n type: \"MapRecordValues\",\n source,\n mapping,\n itVar,\n } as Cfg as any;\n}\n\nexport function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapArrayValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source & CheckedSyncConf<Source>,\n mapping: Mapping,\n itVar: ItVar,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapArrayValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping & CheckedSyncConf<Mapping>,\n itVar: ItVar,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapArrayValues<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar = \"$it\" as ItVar,\n): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {\n return {\n type: \"MapArrayValues\",\n source,\n mapping,\n itVar,\n } as Cfg as any;\n}\n\nexport function flatten<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActFlatten<ExtractAction<Source>>> {\n return {\n type: \"Flatten\",\n source,\n } as Cfg as any;\n}\n\n//\n// Boolean\n//\n\nexport function isEmpty<const Arg extends TypedConfig>(\n arg: Arg,\n): TypedConfig<ActIsEmpty<ExtractAction<Arg>>> {\n return {\n type: \"IsEmpty\",\n arg,\n } as Cfg as any;\n}\n\nexport function not<const Operand extends TypedConfig>(\n operand: Operand,\n): TypedConfig<ActNot<ExtractAction<Operand>>> {\n return {\n type: \"Not\",\n operand,\n } as Cfg as any;\n}\n\nexport function and<const Operand1 extends TypedConfig, const Operand2 extends TypedConfig>(\n operand1: Operand1,\n operand2: Operand2,\n): TypedConfig<ActAnd<ExtractAction<Operand1>, ExtractAction<Operand2>>> {\n return {\n type: \"And\",\n operand1,\n operand2,\n } as Cfg as any;\n}\n\nexport function or<const Operand1 extends TypedConfig, const Operand2 extends TypedConfig>(\n operand1: Operand1,\n operand2: Operand2,\n): TypedConfig<ActOr<ExtractAction<Operand1>, ExtractAction<Operand2>>> {\n return {\n type: \"Or\",\n operand1,\n operand2,\n } as Cfg as any;\n}\n\n//\n// Resources\n//\n\nexport function getResourceField<\n const Source extends PrimitiveOrConfig,\n const Field extends PrimitiveOrConfig,\n>(\n source: Source,\n field: Field,\n): TypedConfig<ActGetResourceField<POCExtractAction<Source>, POCExtractAction<Field>>> {\n return {\n type: \"GetResourceField\",\n source: primitiveToConfig(source),\n field: primitiveToConfig(field),\n } as Cfg as any;\n}\n\nexport function getResourceValueAsJson<T>() {\n return function <const Source extends PrimitiveOrConfig>(\n source: Source,\n ): TypedConfig<ActGetResourceValueAsJson<POCExtractAction<Source>, T>> {\n return {\n type: \"GetResourceValueAsJson\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n };\n}\n\nexport function mapResourceFields<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n>(\n source: Source,\n mapping: Mapping,\n): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, \"$it\">>;\nexport function mapResourceFields<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar,\n): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;\nexport function mapResourceFields<\n const Source extends TypedConfig,\n const Mapping extends TypedConfig,\n const ItVar extends string,\n>(\n source: Source,\n mapping: Mapping,\n itVar: ItVar = \"$it\" as ItVar,\n): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {\n return {\n type: \"MapResourceFields\",\n source,\n mapping,\n itVar,\n } as Cfg as TypedConfig<\n ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>\n >;\n}\n\n//\n// Download Blobs\n//\n\nexport function getBlobContent<const Source extends TypedConfig>(\n source: Source,\n range?: RangeBytes,\n): TypedConfig<ActGetBlobContent<ExtractAction<Source>>> {\n return {\n type: \"GetBlobContent\",\n range,\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\nexport function getBlobContentAsString<const Source extends TypedConfig>(\n source: Source,\n range?: RangeBytes,\n): TypedConfig<ActGetBlobContentAsString<ExtractAction<Source>>> {\n return {\n type: \"GetBlobContentAsString\",\n range,\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\nexport function getBlobContentAsJson<T>() {\n return function <const Source extends TypedConfig>(\n source: Source,\n range?: RangeBytes,\n ): TypedConfig<ActGetBlobContentAsJson<ExtractAction<Source>, T>> {\n return {\n type: \"GetBlobContentAsJson\",\n range,\n source: primitiveToConfig(source),\n } as Cfg as any;\n };\n}\n\nexport function getDownloadedBlobContent<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActGetDownloadedBlobContent<ExtractAction<Source>>> {\n return {\n type: \"GetDownloadedBlobContent\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\nexport function getOnDemandBlobContent<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActGetOnDemandBlobContent<ExtractAction<Source>>> {\n return {\n type: \"GetOnDemandBlobContent\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\n//\n// Download Blobs to URLs\n//\n\nexport function extractArchiveAndGetURL<const Source extends TypedConfig>(\n source: Source,\n format: ArchiveFormat,\n): TypedConfig<ActExtractArchiveAndGetURL<ExtractAction<Source>>> {\n return {\n type: \"ExtractArchiveAndGetURL\",\n format,\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\n//\n// Upload Blobs\n//\n\nexport function getImportProgress<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActImportProgress<ExtractAction<Source>>> {\n return {\n type: \"GetImportProgress\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n\n//\n// Logs\n//\n\nexport function getLastLogs<const Source extends TypedConfig>(\n source: Source,\n lines: number,\n): TypedConfig<ActGetLastLogs<ExtractAction<Source>>> {\n return {\n type: \"GetLastLogs\",\n source: primitiveToConfig(source),\n lines,\n } as Cfg as any;\n}\n\nexport function getProgressLog<const Source extends TypedConfig>(\n source: Source,\n patternToSearch: string,\n): TypedConfig<ActGetProgressLog<ExtractAction<Source>>> {\n return {\n type: \"GetProgressLog\",\n source: primitiveToConfig(source),\n patternToSearch,\n } as Cfg as any;\n}\n\nexport function getProgressLogWithInfo<const Source extends TypedConfig>(\n source: Source,\n patternToSearch: string,\n): TypedConfig<ActGetProgressLogWithInfo<ExtractAction<Source>>> {\n return {\n type: \"GetProgressLogWithInfo\",\n source: primitiveToConfig(source),\n patternToSearch,\n } as Cfg as any;\n}\n\nexport function getLogHandle<const Source extends TypedConfig>(\n source: Source,\n): TypedConfig<ActGetLogHandle<ExtractAction<Source>>> {\n return {\n type: \"GetLogHandle\",\n source: primitiveToConfig(source),\n } as Cfg as any;\n}\n"],"mappings":"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"}
@@ -1,123 +1,116 @@
1
- import type { ConfAction, ActionResult, InferVarTypeSafe, PlResourceEntry } from "./type_engine";
2
- import type { And, IsA, SyncConfAction } from "./type_util";
3
- import type { LocalBlobHandleAndSize, RemoteBlobHandleAndSize, ImportProgress, FolderURL } from "@milaboratories/pl-model-common";
4
- import type { AnyLogHandle } from "@milaboratories/pl-model-common";
5
- export interface ActGetFromCtx<V extends string> extends ConfAction {
6
- new: (x: this["ctx"]) => InferVarTypeSafe<typeof x, V>;
7
- isSync: true;
8
- }
9
- export interface ActIsolate<Nested extends ConfAction> extends ConfAction {
10
- new: (x: this["ctx"]) => ActionResult<Nested, typeof x>;
11
- isSync: false;
12
- }
13
- export interface ActGetImmediate<T> extends ConfAction {
14
- new: () => T;
15
- isSync: true;
16
- }
17
- export interface ActMakeObject<T extends Record<string, ConfAction>> extends ConfAction {
18
- new: (x: this["ctx"]) => {
19
- [Key in keyof T]: ActionResult<T[Key], typeof x>;
20
- };
21
- isSync: IsA<T, Record<string, SyncConfAction>>;
22
- }
23
- export interface ActMakeArray<T extends ConfAction[]> extends ConfAction {
24
- new: (x: this["ctx"]) => {
25
- [Key in keyof T]: ActionResult<T[Key], typeof x>;
26
- };
27
- isSync: IsA<T, SyncConfAction[]>;
28
- }
29
- export interface ActGetField<Source extends ConfAction, Field extends ConfAction> extends ConfAction {
30
- new: (x: this["ctx"]) => InferVarTypeSafe<ActionResult<Source, typeof x>, ActionResult<Field, typeof x>>;
31
- isSync: true;
32
- }
33
- export interface ActMapRecordValues<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
34
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends Record<string, infer V> ? Record<string, ActionResult<Mapping, typeof x & {
35
- [K in ItVar]: V;
36
- }>> : unknown;
37
- isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
38
- }
39
- export interface ActMapArrayValues<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
40
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends (infer V)[] ? ActionResult<Mapping, typeof x & {
41
- [K in ItVar]: V;
42
- }>[] : unknown;
43
- isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
44
- }
45
- export interface ActFlatten<Sources extends ConfAction> extends ConfAction {
46
- new: (x: this["ctx"]) => ActionResult<Sources, typeof x> extends (infer V)[][] ? V[] : unknown;
47
- isSync: IsA<Sources, SyncConfAction[]>;
48
- }
49
- export interface ActIsEmpty<Source extends ConfAction> extends ConfAction {
50
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends unknown[] | string | undefined ? boolean : unknown;
51
- isSync: IsA<Source, SyncConfAction>;
52
- }
53
- export interface ActNot<Source extends ConfAction> extends ConfAction {
54
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends boolean ? boolean : unknown;
55
- isSync: IsA<Source, SyncConfAction>;
56
- }
57
- export interface ActAnd<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
58
- new: (x: this["ctx"]) => ActionResult<Source1, typeof x> extends boolean ? ActionResult<Source2, typeof x> extends boolean ? boolean : unknown : unknown;
59
- isSync: IsA<Source1, SyncConfAction> & IsA<Source2, SyncConfAction>;
60
- }
61
- export interface ActOr<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
62
- new: (x: this["ctx"]) => ActionResult<Source1, typeof x> extends boolean ? ActionResult<Source2, typeof x> extends boolean ? boolean : unknown : unknown;
63
- isSync: IsA<Source1, SyncConfAction> & IsA<Source2, SyncConfAction>;
64
- }
65
- export interface ActGetResourceField<Source extends ConfAction, Field extends ConfAction> extends ConfAction {
66
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? ActionResult<Field, typeof x> extends string ? PlResourceEntry : unknown : unknown;
67
- isSync: And<IsA<Source, SyncConfAction>, IsA<Field, SyncConfAction>>;
68
- }
69
- export interface ActMapResourceFields<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
70
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? Record<string, ActionResult<Mapping, typeof x & {
71
- [K in ItVar]: PlResourceEntry;
72
- }>> : unknown;
73
- isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
74
- }
75
- export interface ActGetResourceValueAsJson<Source extends ConfAction, T> extends ConfAction {
76
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
77
- isSync: IsA<Source, SyncConfAction>;
78
- }
79
- export interface ActGetBlobContent<Source extends ConfAction> extends ConfAction {
80
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? Uint8Array : unknown;
81
- isSync: IsA<Source, SyncConfAction>;
82
- }
83
- export interface ActGetBlobContentAsString<Source extends ConfAction> extends ConfAction {
84
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
85
- isSync: IsA<Source, SyncConfAction>;
86
- }
87
- export interface ActGetBlobContentAsJson<Source extends ConfAction, T> extends ConfAction {
88
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
89
- isSync: IsA<Source, SyncConfAction>;
90
- }
91
- export interface ActGetDownloadedBlobContent<Source extends ConfAction> extends ConfAction {
92
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? LocalBlobHandleAndSize : unknown;
93
- isSync: IsA<Source, SyncConfAction>;
94
- }
95
- export interface ActGetOnDemandBlobContent<Source extends ConfAction> extends ConfAction {
96
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? RemoteBlobHandleAndSize : unknown;
97
- isSync: IsA<Source, SyncConfAction>;
98
- }
99
- export interface ActExtractArchiveAndGetURL<Source extends ConfAction> extends ConfAction {
100
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? FolderURL : unknown;
101
- isSync: IsA<Source, SyncConfAction>;
102
- }
103
- export interface ActImportProgress<Source extends ConfAction> extends ConfAction {
104
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? ImportProgress : unknown;
105
- isSync: IsA<Source, SyncConfAction>;
106
- }
107
- export interface ActGetLastLogs<Source extends ConfAction> extends ConfAction {
108
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
109
- isSync: IsA<Source, SyncConfAction>;
110
- }
111
- export interface ActGetProgressLog<Source extends ConfAction> extends ConfAction {
112
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
113
- isSync: IsA<Source, SyncConfAction>;
114
- }
115
- export interface ActGetProgressLogWithInfo<Source extends ConfAction> extends ConfAction {
116
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
117
- isSync: IsA<Source, SyncConfAction>;
118
- }
119
- export interface ActGetLogHandle<Source extends ConfAction> extends ConfAction {
120
- new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? AnyLogHandle : unknown;
121
- isSync: IsA<Source, SyncConfAction>;
1
+ import { ActionResult, ConfAction, InferVarTypeSafe, PlResourceEntry } from "./type_engine.js";
2
+ import { And, IsA, SyncConfAction } from "./type_util.js";
3
+ import { AnyLogHandle, FolderURL, ImportProgress, LocalBlobHandleAndSize, RemoteBlobHandleAndSize } from "@milaboratories/pl-model-common";
4
+
5
+ //#region src/config/actions_kinds.d.ts
6
+ interface ActGetFromCtx<V extends string> extends ConfAction {
7
+ new: (x: this["ctx"]) => InferVarTypeSafe<typeof x, V>;
8
+ isSync: true;
9
+ }
10
+ interface ActIsolate<Nested extends ConfAction> extends ConfAction {
11
+ new: (x: this["ctx"]) => ActionResult<Nested, typeof x>;
12
+ isSync: false;
13
+ }
14
+ interface ActGetImmediate<T> extends ConfAction {
15
+ new: () => T;
16
+ isSync: true;
17
+ }
18
+ interface ActMakeObject<T extends Record<string, ConfAction>> extends ConfAction {
19
+ new: (x: this["ctx"]) => { [Key in keyof T]: ActionResult<T[Key], typeof x> };
20
+ isSync: IsA<T, Record<string, SyncConfAction>>;
21
+ }
22
+ interface ActMakeArray<T extends ConfAction[]> extends ConfAction {
23
+ new: (x: this["ctx"]) => { [Key in keyof T]: ActionResult<T[Key], typeof x> };
24
+ isSync: IsA<T, SyncConfAction[]>;
25
+ }
26
+ interface ActGetField<Source extends ConfAction, Field extends ConfAction> extends ConfAction {
27
+ new: (x: this["ctx"]) => InferVarTypeSafe<ActionResult<Source, typeof x>, ActionResult<Field, typeof x>>;
28
+ isSync: true;
29
+ }
30
+ interface ActMapRecordValues<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
31
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends Record<string, infer V> ? Record<string, ActionResult<Mapping, typeof x & { [K in ItVar]: V }>> : unknown;
32
+ isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
33
+ }
34
+ interface ActMapArrayValues<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
35
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends (infer V)[] ? ActionResult<Mapping, typeof x & { [K in ItVar]: V }>[] : unknown;
36
+ isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
37
+ }
38
+ interface ActFlatten<Sources extends ConfAction> extends ConfAction {
39
+ new: (x: this["ctx"]) => ActionResult<Sources, typeof x> extends (infer V)[][] ? V[] : unknown;
40
+ isSync: IsA<Sources, SyncConfAction[]>;
41
+ }
42
+ interface ActIsEmpty<Source extends ConfAction> extends ConfAction {
43
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends unknown[] | string | undefined ? boolean : unknown;
44
+ isSync: IsA<Source, SyncConfAction>;
45
+ }
46
+ interface ActNot<Source extends ConfAction> extends ConfAction {
47
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends boolean ? boolean : unknown;
48
+ isSync: IsA<Source, SyncConfAction>;
49
+ }
50
+ interface ActAnd<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
51
+ new: (x: this["ctx"]) => ActionResult<Source1, typeof x> extends boolean ? ActionResult<Source2, typeof x> extends boolean ? boolean : unknown : unknown;
52
+ isSync: IsA<Source1, SyncConfAction> & IsA<Source2, SyncConfAction>;
53
+ }
54
+ interface ActOr<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
55
+ new: (x: this["ctx"]) => ActionResult<Source1, typeof x> extends boolean ? ActionResult<Source2, typeof x> extends boolean ? boolean : unknown : unknown;
56
+ isSync: IsA<Source1, SyncConfAction> & IsA<Source2, SyncConfAction>;
57
+ }
58
+ interface ActGetResourceField<Source extends ConfAction, Field extends ConfAction> extends ConfAction {
59
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? ActionResult<Field, typeof x> extends string ? PlResourceEntry : unknown : unknown;
60
+ isSync: And<IsA<Source, SyncConfAction>, IsA<Field, SyncConfAction>>;
61
+ }
62
+ interface ActMapResourceFields<Source extends ConfAction, Mapping extends ConfAction, ItVar extends string> extends ConfAction {
63
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? Record<string, ActionResult<Mapping, typeof x & { [K in ItVar]: PlResourceEntry }>> : unknown;
64
+ isSync: And<IsA<Source, SyncConfAction>, IsA<Mapping, SyncConfAction>>;
65
+ }
66
+ interface ActGetResourceValueAsJson<Source extends ConfAction, T> extends ConfAction {
67
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
68
+ isSync: IsA<Source, SyncConfAction>;
69
+ }
70
+ interface ActGetBlobContent<Source extends ConfAction> extends ConfAction {
71
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? Uint8Array : unknown;
72
+ isSync: IsA<Source, SyncConfAction>;
73
+ }
74
+ interface ActGetBlobContentAsString<Source extends ConfAction> extends ConfAction {
75
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
76
+ isSync: IsA<Source, SyncConfAction>;
77
+ }
78
+ interface ActGetBlobContentAsJson<Source extends ConfAction, T> extends ConfAction {
79
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
80
+ isSync: IsA<Source, SyncConfAction>;
81
+ }
82
+ interface ActGetDownloadedBlobContent<Source extends ConfAction> extends ConfAction {
83
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? LocalBlobHandleAndSize : unknown;
84
+ isSync: IsA<Source, SyncConfAction>;
85
+ }
86
+ interface ActGetOnDemandBlobContent<Source extends ConfAction> extends ConfAction {
87
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? RemoteBlobHandleAndSize : unknown;
88
+ isSync: IsA<Source, SyncConfAction>;
89
+ }
90
+ interface ActExtractArchiveAndGetURL<Source extends ConfAction> extends ConfAction {
91
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? FolderURL : unknown;
92
+ isSync: IsA<Source, SyncConfAction>;
93
+ }
94
+ interface ActImportProgress<Source extends ConfAction> extends ConfAction {
95
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? ImportProgress : unknown;
96
+ isSync: IsA<Source, SyncConfAction>;
97
+ }
98
+ interface ActGetLastLogs<Source extends ConfAction> extends ConfAction {
99
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
100
+ isSync: IsA<Source, SyncConfAction>;
101
+ }
102
+ interface ActGetProgressLog<Source extends ConfAction> extends ConfAction {
103
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
104
+ isSync: IsA<Source, SyncConfAction>;
122
105
  }
106
+ interface ActGetProgressLogWithInfo<Source extends ConfAction> extends ConfAction {
107
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
108
+ isSync: IsA<Source, SyncConfAction>;
109
+ }
110
+ interface ActGetLogHandle<Source extends ConfAction> extends ConfAction {
111
+ new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? AnyLogHandle : unknown;
112
+ isSync: IsA<Source, SyncConfAction>;
113
+ }
114
+ //#endregion
115
+ export { ActAnd, ActExtractArchiveAndGetURL, ActFlatten, ActGetBlobContent, ActGetBlobContentAsJson, ActGetBlobContentAsString, ActGetDownloadedBlobContent, ActGetField, ActGetFromCtx, ActGetImmediate, ActGetLastLogs, ActGetLogHandle, ActGetOnDemandBlobContent, ActGetProgressLog, ActGetProgressLogWithInfo, ActGetResourceField, ActGetResourceValueAsJson, ActImportProgress, ActIsEmpty, ActIsolate, ActMakeArray, ActMakeObject, ActMapArrayValues, ActMapRecordValues, ActMapResourceFields, ActNot, ActOr };
123
116
  //# sourceMappingURL=actions_kinds.d.ts.map
@@ -0,0 +1 @@
1
+ const require_actions = require('./actions.cjs');
@@ -1,7 +1,6 @@
1
- export * from "./actions";
2
- export * from "./actions_kinds";
3
- export * from "./model";
4
- export * from "./model_meta";
5
- export * from "./type_engine";
6
- export { type Checked } from "./type_util";
7
- //# sourceMappingURL=index.d.ts.map
1
+ import { Cfg, CfgAnd, CfgBlobContent, CfgBlobContentAsJson, CfgBlobContentAsString, CfgDownloadedBlobContent, CfgExtractArchiveAndGetURL, CfgFlatten, CfgGetFromCtx, CfgGetJsonField, CfgGetResourceField, CfgImmediate, CfgImportProgress, CfgIsEmpty, CfgIsolate, CfgLastLogs, CfgLogHandle, CfgMakeArray, CfgMakeObject, CfgMapArrayValues, CfgMapRecordValues, CfgMapResourceFields, CfgNot, CfgOnDemandBlobContent, CfgOr, CfgProgressLog, CfgProgressLogWithInfo, CfgResourceValueAsJson } from "./model.js";
2
+ import { ActionResult, ConfAction, ConfigResult, ExtractAction, InferVarTypeSafe, OptionalPlResourceEntry, POCExtractAction, PlResourceEntry, PrimitiveOrConfig, PrimitiveToCfg, TypedConfig } from "./type_engine.js";
3
+ import { Checked } from "./type_util.js";
4
+ import { ActAnd, ActExtractArchiveAndGetURL, ActFlatten, ActGetBlobContent, ActGetBlobContentAsJson, ActGetBlobContentAsString, ActGetDownloadedBlobContent, ActGetField, ActGetFromCtx, ActGetImmediate, ActGetLastLogs, ActGetLogHandle, ActGetOnDemandBlobContent, ActGetProgressLog, ActGetProgressLogWithInfo, ActGetResourceField, ActGetResourceValueAsJson, ActImportProgress, ActIsEmpty, ActIsolate, ActMakeArray, ActMakeObject, ActMapArrayValues, ActMapRecordValues, ActMapResourceFields, ActNot, ActOr } from "./actions_kinds.js";
5
+ import { Args, It, MainOutputs, StagingOutputs, UiState, and, extractArchiveAndGetURL, flatten, getBlobContent, getBlobContentAsJson, getBlobContentAsString, getDownloadedBlobContent, getFromCfg, getImmediate, getImportProgress, getJsonField, getLastLogs, getLogHandle, getOnDemandBlobContent, getProgressLog, getProgressLogWithInfo, getResourceField, getResourceValueAsJson, isEmpty, isolate, makeArray, makeObject, mapArrayValues, mapRecordValues, mapResourceFields, not, or } from "./actions.js";
6
+ import { CfgRenderingMode } from "./model_meta.js";
@@ -0,0 +1 @@
1
+ import { Args, It, MainOutputs, StagingOutputs, UiState, and, extractArchiveAndGetURL, flatten, getBlobContent, getBlobContentAsJson, getBlobContentAsString, getDownloadedBlobContent, getFromCfg, getImmediate, getImportProgress, getJsonField, getLastLogs, getLogHandle, getOnDemandBlobContent, getProgressLog, getProgressLogWithInfo, getResourceField, getResourceValueAsJson, isEmpty, isolate, makeArray, makeObject, mapArrayValues, mapRecordValues, mapResourceFields, not, or } from "./actions.js";
@@ -1,130 +1,134 @@
1
- import type { ArchiveFormat, RangeBytes } from "@milaboratories/pl-model-common";
2
- export type Cfg = CfgGetFromCtx | CfgIsolate | CfgImmediate | CfgMakeObject | CfgMakeArray | CfgGetJsonField | CfgMapRecordValues | CfgMapArrayValues | CfgFlatten | CfgIsEmpty | CfgNot | CfgAnd | CfgOr | CfgMapResourceFields | CfgGetResourceField | CfgResourceValueAsJson | CfgBlobContent | CfgBlobContentAsString | CfgBlobContentAsJson | CfgDownloadedBlobContent | CfgOnDemandBlobContent | CfgExtractArchiveAndGetURL | CfgImportProgress | CfgLastLogs | CfgProgressLog | CfgProgressLogWithInfo | CfgLogHandle;
1
+ import { ArchiveFormat, RangeBytes } from "@milaboratories/pl-model-common";
2
+
3
+ //#region src/config/model.d.ts
4
+ type Cfg = CfgGetFromCtx | CfgIsolate | CfgImmediate | CfgMakeObject | CfgMakeArray | CfgGetJsonField | CfgMapRecordValues | CfgMapArrayValues | CfgFlatten | CfgIsEmpty | CfgNot | CfgAnd | CfgOr | CfgMapResourceFields | CfgGetResourceField | CfgResourceValueAsJson | CfgBlobContent | CfgBlobContentAsString | CfgBlobContentAsJson | CfgDownloadedBlobContent | CfgOnDemandBlobContent | CfgExtractArchiveAndGetURL | CfgImportProgress | CfgLastLogs | CfgProgressLog | CfgProgressLogWithInfo | CfgLogHandle;
3
5
  /** Forces wrapped config to be rendered asynchronously, using its own
4
6
  * rendering cell */
5
- export type CfgIsolate = {
6
- type: "Isolate";
7
- cfg: Cfg;
8
- };
9
- export type CfgGetFromCtx = {
10
- type: "GetFromCtx";
11
- variable: string;
12
- };
13
- export type CfgImmediate = {
14
- type: "Immediate";
15
- value: any;
16
- };
17
- export type CfgGetJsonField = {
18
- type: "GetJsonField";
19
- source: Cfg;
20
- field: Cfg;
21
- };
22
- export type CfgMakeObject = {
23
- type: "MakeObject";
24
- template: Record<string, Cfg>;
25
- };
26
- export type CfgMakeArray = {
27
- type: "MakeArray";
28
- template: Cfg[];
29
- };
30
- export type CfgMapRecordValues = {
31
- type: "MapRecordValues";
32
- source: Cfg;
33
- itVar: string;
34
- mapping: Cfg;
35
- };
36
- export type CfgMapArrayValues = {
37
- type: "MapArrayValues";
38
- source: Cfg;
39
- itVar: string;
40
- mapping: Cfg;
41
- };
42
- export type CfgFlatten = {
43
- type: "Flatten";
44
- source: Cfg;
45
- };
46
- export type CfgIsEmpty = {
47
- type: "IsEmpty";
48
- arg: Cfg;
49
- };
50
- export type CfgNot = {
51
- type: "Not";
52
- operand: Cfg;
53
- };
54
- export type CfgAnd = {
55
- type: "And";
56
- operand1: Cfg;
57
- operand2: Cfg;
58
- };
59
- export type CfgOr = {
60
- type: "Or";
61
- operand1: Cfg;
62
- operand2: Cfg;
63
- };
64
- export type CfgMapResourceFields = {
65
- type: "MapResourceFields";
66
- source: Cfg;
67
- itVar: string;
68
- mapping: Cfg;
69
- };
70
- export type CfgGetResourceField = {
71
- type: "GetResourceField";
72
- source: Cfg;
73
- field: Cfg;
74
- };
75
- export type CfgResourceValueAsJson = {
76
- type: "GetResourceValueAsJson";
77
- source: Cfg;
78
- };
79
- export type CfgBlobContent = {
80
- type: "GetBlobContent";
81
- range: RangeBytes | undefined;
82
- source: Cfg;
83
- };
84
- export type CfgBlobContentAsString = {
85
- type: "GetBlobContentAsString";
86
- range: RangeBytes | undefined;
87
- source: Cfg;
88
- };
89
- export type CfgBlobContentAsJson = {
90
- type: "GetBlobContentAsJson";
91
- range: RangeBytes | undefined;
92
- source: Cfg;
93
- };
94
- export type CfgDownloadedBlobContent = {
95
- type: "GetDownloadedBlobContent";
96
- source: Cfg;
97
- };
98
- export type CfgOnDemandBlobContent = {
99
- type: "GetOnDemandBlobContent";
100
- source: Cfg;
101
- };
102
- export type CfgExtractArchiveAndGetURL = {
103
- type: "ExtractArchiveAndGetURL";
104
- format: ArchiveFormat;
105
- source: Cfg;
106
- };
107
- export type CfgImportProgress = {
108
- type: "GetImportProgress";
109
- source: Cfg;
110
- };
111
- export type CfgLastLogs = {
112
- type: "GetLastLogs";
113
- source: Cfg;
114
- lines: number;
115
- };
116
- export type CfgProgressLog = {
117
- type: "GetProgressLog";
118
- source: Cfg;
119
- patternToSearch: string;
120
- };
121
- export type CfgProgressLogWithInfo = {
122
- type: "GetProgressLogWithInfo";
123
- source: Cfg;
124
- patternToSearch: string;
125
- };
126
- export type CfgLogHandle = {
127
- type: "GetLogHandle";
128
- source: Cfg;
129
- };
7
+ type CfgIsolate = {
8
+ type: "Isolate";
9
+ cfg: Cfg;
10
+ };
11
+ type CfgGetFromCtx = {
12
+ type: "GetFromCtx";
13
+ variable: string;
14
+ };
15
+ type CfgImmediate = {
16
+ type: "Immediate";
17
+ value: any;
18
+ };
19
+ type CfgGetJsonField = {
20
+ type: "GetJsonField";
21
+ source: Cfg;
22
+ field: Cfg;
23
+ };
24
+ type CfgMakeObject = {
25
+ type: "MakeObject";
26
+ template: Record<string, Cfg>;
27
+ };
28
+ type CfgMakeArray = {
29
+ type: "MakeArray";
30
+ template: Cfg[];
31
+ };
32
+ type CfgMapRecordValues = {
33
+ type: "MapRecordValues";
34
+ source: Cfg;
35
+ itVar: string;
36
+ mapping: Cfg;
37
+ };
38
+ type CfgMapArrayValues = {
39
+ type: "MapArrayValues";
40
+ source: Cfg;
41
+ itVar: string;
42
+ mapping: Cfg;
43
+ };
44
+ type CfgFlatten = {
45
+ type: "Flatten";
46
+ source: Cfg;
47
+ };
48
+ type CfgIsEmpty = {
49
+ type: "IsEmpty";
50
+ arg: Cfg;
51
+ };
52
+ type CfgNot = {
53
+ type: "Not";
54
+ operand: Cfg;
55
+ };
56
+ type CfgAnd = {
57
+ type: "And";
58
+ operand1: Cfg;
59
+ operand2: Cfg;
60
+ };
61
+ type CfgOr = {
62
+ type: "Or";
63
+ operand1: Cfg;
64
+ operand2: Cfg;
65
+ };
66
+ type CfgMapResourceFields = {
67
+ type: "MapResourceFields";
68
+ source: Cfg;
69
+ itVar: string;
70
+ mapping: Cfg;
71
+ };
72
+ type CfgGetResourceField = {
73
+ type: "GetResourceField";
74
+ source: Cfg;
75
+ field: Cfg;
76
+ };
77
+ type CfgResourceValueAsJson = {
78
+ type: "GetResourceValueAsJson";
79
+ source: Cfg;
80
+ };
81
+ type CfgBlobContent = {
82
+ type: "GetBlobContent";
83
+ range: RangeBytes | undefined;
84
+ source: Cfg;
85
+ };
86
+ type CfgBlobContentAsString = {
87
+ type: "GetBlobContentAsString";
88
+ range: RangeBytes | undefined;
89
+ source: Cfg;
90
+ };
91
+ type CfgBlobContentAsJson = {
92
+ type: "GetBlobContentAsJson";
93
+ range: RangeBytes | undefined;
94
+ source: Cfg;
95
+ };
96
+ type CfgDownloadedBlobContent = {
97
+ type: "GetDownloadedBlobContent";
98
+ source: Cfg;
99
+ };
100
+ type CfgOnDemandBlobContent = {
101
+ type: "GetOnDemandBlobContent";
102
+ source: Cfg;
103
+ };
104
+ type CfgExtractArchiveAndGetURL = {
105
+ type: "ExtractArchiveAndGetURL";
106
+ format: ArchiveFormat;
107
+ source: Cfg;
108
+ };
109
+ type CfgImportProgress = {
110
+ type: "GetImportProgress";
111
+ source: Cfg;
112
+ };
113
+ type CfgLastLogs = {
114
+ type: "GetLastLogs";
115
+ source: Cfg;
116
+ lines: number;
117
+ };
118
+ type CfgProgressLog = {
119
+ type: "GetProgressLog";
120
+ source: Cfg;
121
+ patternToSearch: string;
122
+ };
123
+ type CfgProgressLogWithInfo = {
124
+ type: "GetProgressLogWithInfo";
125
+ source: Cfg;
126
+ patternToSearch: string;
127
+ };
128
+ type CfgLogHandle = {
129
+ type: "GetLogHandle";
130
+ source: Cfg;
131
+ };
132
+ //#endregion
133
+ export { Cfg, CfgAnd, CfgBlobContent, CfgBlobContentAsJson, CfgBlobContentAsString, CfgDownloadedBlobContent, CfgExtractArchiveAndGetURL, CfgFlatten, CfgGetFromCtx, CfgGetJsonField, CfgGetResourceField, CfgImmediate, CfgImportProgress, CfgIsEmpty, CfgIsolate, CfgLastLogs, CfgLogHandle, CfgMakeArray, CfgMakeObject, CfgMapArrayValues, CfgMapRecordValues, CfgMapResourceFields, CfgNot, CfgOnDemandBlobContent, CfgOr, CfgProgressLog, CfgProgressLogWithInfo, CfgResourceValueAsJson };
130
134
  //# sourceMappingURL=model.d.ts.map