@platforma-sdk/model 1.53.10 → 1.53.13
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.
- package/dist/annotations/converter.cjs +11 -11
- package/dist/annotations/converter.cjs.map +1 -1
- package/dist/annotations/converter.d.ts +1 -1
- package/dist/annotations/converter.d.ts.map +1 -1
- package/dist/annotations/converter.js +11 -11
- package/dist/annotations/converter.js.map +1 -1
- package/dist/annotations/index.d.ts +2 -2
- package/dist/annotations/types.d.ts +4 -4
- package/dist/bconfig/index.d.ts +5 -5
- package/dist/bconfig/lambdas.d.ts +7 -7
- package/dist/bconfig/lambdas.d.ts.map +1 -1
- package/dist/bconfig/normalization.cjs.map +1 -1
- package/dist/bconfig/normalization.d.ts +3 -3
- package/dist/bconfig/normalization.js.map +1 -1
- package/dist/bconfig/types.cjs.map +1 -1
- package/dist/bconfig/types.d.ts +2 -2
- package/dist/bconfig/types.d.ts.map +1 -1
- package/dist/bconfig/types.js.map +1 -1
- package/dist/bconfig/util.d.ts +4 -4
- package/dist/bconfig/v3.d.ts +3 -3
- package/dist/block_api_v1.d.ts +2 -2
- package/dist/block_api_v1.d.ts.map +1 -1
- package/dist/block_api_v2.d.ts +2 -2
- package/dist/block_api_v2.d.ts.map +1 -1
- package/dist/block_api_v3.d.ts +3 -3
- package/dist/block_migrations.cjs +10 -10
- package/dist/block_migrations.cjs.map +1 -1
- package/dist/block_migrations.d.ts.map +1 -1
- package/dist/block_migrations.js +10 -10
- package/dist/block_migrations.js.map +1 -1
- package/dist/block_model.cjs +11 -11
- package/dist/block_model.cjs.map +1 -1
- package/dist/block_model.d.ts +8 -8
- package/dist/block_model.d.ts.map +1 -1
- package/dist/block_model.js +11 -11
- package/dist/block_model.js.map +1 -1
- package/dist/block_state_patch.d.ts +2 -2
- package/dist/block_state_util.cjs +1 -1
- package/dist/block_state_util.cjs.map +1 -1
- package/dist/block_state_util.d.ts +3 -3
- package/dist/block_state_util.js +1 -1
- package/dist/block_state_util.js.map +1 -1
- package/dist/block_storage.cjs +10 -10
- package/dist/block_storage.cjs.map +1 -1
- package/dist/block_storage.d.ts +2 -2
- package/dist/block_storage.d.ts.map +1 -1
- package/dist/block_storage.js +10 -10
- package/dist/block_storage.js.map +1 -1
- package/dist/block_storage_vm.cjs +22 -22
- package/dist/block_storage_vm.cjs.map +1 -1
- package/dist/block_storage_vm.d.ts +1 -1
- package/dist/block_storage_vm.d.ts.map +1 -1
- package/dist/block_storage_vm.js +22 -22
- package/dist/block_storage_vm.js.map +1 -1
- package/dist/builder.cjs +32 -23
- package/dist/builder.cjs.map +1 -1
- package/dist/builder.d.ts +7 -7
- package/dist/builder.d.ts.map +1 -1
- package/dist/builder.js +32 -23
- package/dist/builder.js.map +1 -1
- package/dist/components/PFrameForGraphs.cjs +7 -6
- package/dist/components/PFrameForGraphs.cjs.map +1 -1
- package/dist/components/PFrameForGraphs.d.ts +4 -4
- package/dist/components/PFrameForGraphs.d.ts.map +1 -1
- package/dist/components/PFrameForGraphs.js +7 -6
- package/dist/components/PFrameForGraphs.js.map +1 -1
- package/dist/components/PlAnnotations/filter.d.ts +14 -14
- package/dist/components/PlAnnotations/filter.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.cjs +46 -46
- package/dist/components/PlAnnotations/filters_ui.cjs.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.d.ts +10 -34
- package/dist/components/PlAnnotations/filters_ui.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.js +46 -46
- package/dist/components/PlAnnotations/filters_ui.js.map +1 -1
- package/dist/components/PlAnnotations/index.d.ts +2 -2
- package/dist/components/PlAnnotations/types.d.ts +2 -2
- package/dist/components/PlDataTable.cjs +19 -20
- package/dist/components/PlDataTable.cjs.map +1 -1
- package/dist/components/PlDataTable.d.ts +27 -27
- package/dist/components/PlDataTable.d.ts.map +1 -1
- package/dist/components/PlDataTable.js +19 -20
- package/dist/components/PlDataTable.js.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.cjs +2 -2
- package/dist/components/PlMultiSequenceAlignment.cjs.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.d.ts +6 -6
- package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.js +2 -2
- package/dist/components/PlMultiSequenceAlignment.js.map +1 -1
- package/dist/components/PlSelectionModel.cjs.map +1 -1
- package/dist/components/PlSelectionModel.d.ts +1 -1
- package/dist/components/PlSelectionModel.js.map +1 -1
- package/dist/components/index.d.ts +5 -5
- package/dist/config/actions.cjs +39 -39
- package/dist/config/actions.cjs.map +1 -1
- package/dist/config/actions.d.ts +9 -9
- package/dist/config/actions.d.ts.map +1 -1
- package/dist/config/actions.js +39 -39
- package/dist/config/actions.js.map +1 -1
- package/dist/config/actions_kinds.d.ts +30 -30
- package/dist/config/actions_kinds.d.ts.map +1 -1
- package/dist/config/index.d.ts +6 -6
- package/dist/config/model.d.ts +28 -28
- package/dist/config/model_meta.d.ts +1 -1
- package/dist/config/type_engine.d.ts +3 -3
- package/dist/config/type_util.d.ts +2 -2
- package/dist/env_value.cjs +1 -1
- package/dist/env_value.cjs.map +1 -1
- package/dist/env_value.js +1 -1
- package/dist/env_value.js.map +1 -1
- package/dist/filters/converter.cjs +36 -32
- package/dist/filters/converter.cjs.map +1 -1
- package/dist/filters/converter.d.ts +2 -2
- package/dist/filters/converter.d.ts.map +1 -1
- package/dist/filters/converter.js +36 -32
- package/dist/filters/converter.js.map +1 -1
- package/dist/filters/index.d.ts +2 -2
- package/dist/filters/types.d.ts +33 -33
- package/dist/filters/types.d.ts.map +1 -1
- package/dist/index.d.ts +24 -24
- package/dist/internal.cjs +7 -7
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.ts +4 -4
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +7 -7
- package/dist/internal.js.map +1 -1
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.js +1 -1
- package/dist/pframe.cjs +1 -1
- package/dist/pframe.cjs.map +1 -1
- package/dist/pframe.d.ts +1 -1
- package/dist/pframe.js +1 -1
- package/dist/pframe.js.map +1 -1
- package/dist/pframe_utils/columns.cjs +23 -15
- package/dist/pframe_utils/columns.cjs.map +1 -1
- package/dist/pframe_utils/columns.d.ts +3 -3
- package/dist/pframe_utils/columns.d.ts.map +1 -1
- package/dist/pframe_utils/columns.js +23 -15
- package/dist/pframe_utils/columns.js.map +1 -1
- package/dist/pframe_utils/index.cjs +25 -25
- package/dist/pframe_utils/index.cjs.map +1 -1
- package/dist/pframe_utils/index.d.ts +3 -3
- package/dist/pframe_utils/index.d.ts.map +1 -1
- package/dist/pframe_utils/index.js +25 -25
- package/dist/pframe_utils/index.js.map +1 -1
- package/dist/platforma.d.ts +7 -7
- package/dist/platforma.d.ts.map +1 -1
- package/dist/raw_globals.cjs +4 -1
- package/dist/raw_globals.cjs.map +1 -1
- package/dist/raw_globals.d.ts +2 -2
- package/dist/raw_globals.d.ts.map +1 -1
- package/dist/raw_globals.js +4 -1
- package/dist/raw_globals.js.map +1 -1
- package/dist/ref_util.cjs +4 -4
- package/dist/ref_util.cjs.map +1 -1
- package/dist/ref_util.d.ts +1 -1
- package/dist/ref_util.js +4 -4
- package/dist/ref_util.js.map +1 -1
- package/dist/render/accessor.cjs +24 -24
- package/dist/render/accessor.cjs.map +1 -1
- package/dist/render/accessor.d.ts +10 -10
- package/dist/render/accessor.d.ts.map +1 -1
- package/dist/render/accessor.js +24 -24
- package/dist/render/accessor.js.map +1 -1
- package/dist/render/api.cjs +23 -23
- package/dist/render/api.cjs.map +1 -1
- package/dist/render/api.d.ts +11 -11
- package/dist/render/api.d.ts.map +1 -1
- package/dist/render/api.js +23 -23
- package/dist/render/api.js.map +1 -1
- package/dist/render/future.cjs.map +1 -1
- package/dist/render/future.d.ts +1 -1
- package/dist/render/future.js.map +1 -1
- package/dist/render/index.d.ts +6 -6
- package/dist/render/internal.cjs +4 -4
- package/dist/render/internal.cjs.map +1 -1
- package/dist/render/internal.d.ts +7 -7
- package/dist/render/internal.d.ts.map +1 -1
- package/dist/render/internal.js +4 -4
- package/dist/render/internal.js.map +1 -1
- package/dist/render/traversal_ops.d.ts +1 -1
- package/dist/render/util/axis_filtering.cjs +48 -44
- package/dist/render/util/axis_filtering.cjs.map +1 -1
- package/dist/render/util/axis_filtering.d.ts +2 -2
- package/dist/render/util/axis_filtering.js +48 -44
- package/dist/render/util/axis_filtering.js.map +1 -1
- package/dist/render/util/column_collection.cjs +42 -35
- package/dist/render/util/column_collection.cjs.map +1 -1
- package/dist/render/util/column_collection.d.ts +4 -4
- package/dist/render/util/column_collection.d.ts.map +1 -1
- package/dist/render/util/column_collection.js +42 -35
- package/dist/render/util/column_collection.js.map +1 -1
- package/dist/render/util/index.d.ts +4 -4
- package/dist/render/util/label.cjs +15 -21
- package/dist/render/util/label.cjs.map +1 -1
- package/dist/render/util/label.d.ts +2 -2
- package/dist/render/util/label.d.ts.map +1 -1
- package/dist/render/util/label.js +15 -21
- package/dist/render/util/label.js.map +1 -1
- package/dist/render/util/pcolumn_data.cjs +56 -54
- package/dist/render/util/pcolumn_data.cjs.map +1 -1
- package/dist/render/util/pcolumn_data.d.ts +5 -5
- package/dist/render/util/pcolumn_data.d.ts.map +1 -1
- package/dist/render/util/pcolumn_data.js +56 -54
- package/dist/render/util/pcolumn_data.js.map +1 -1
- package/dist/render/util/pframe_upgraders.cjs +6 -6
- package/dist/render/util/pframe_upgraders.cjs.map +1 -1
- package/dist/render/util/pframe_upgraders.d.ts +1 -1
- package/dist/render/util/pframe_upgraders.d.ts.map +1 -1
- package/dist/render/util/pframe_upgraders.js +6 -6
- package/dist/render/util/pframe_upgraders.js.map +1 -1
- package/dist/render/util/split_selectors.d.ts +1 -1
- package/dist/render/util/split_selectors.d.ts.map +1 -1
- package/dist/sdk_info.cjs.map +1 -1
- package/dist/sdk_info.js.map +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.js.map +1 -1
- package/package.json +23 -21
- package/src/annotations/converter.test.ts +98 -101
- package/src/annotations/converter.ts +21 -17
- package/src/annotations/index.ts +2 -2
- package/src/annotations/types.ts +4 -4
- package/src/bconfig/index.ts +5 -5
- package/src/bconfig/lambdas.ts +10 -12
- package/src/bconfig/normalization.ts +5 -5
- package/src/bconfig/types.ts +3 -5
- package/src/bconfig/util.ts +3 -3
- package/src/bconfig/v3.ts +3 -3
- package/src/block_api_v1.ts +7 -3
- package/src/block_api_v2.ts +7 -3
- package/src/block_api_v3.ts +3 -3
- package/src/block_migrations.test.ts +66 -67
- package/src/block_migrations.ts +16 -16
- package/src/block_model.ts +76 -140
- package/src/block_state_patch.ts +2 -2
- package/src/block_state_util.ts +4 -4
- package/src/block_storage.test.ts +106 -99
- package/src/block_storage.ts +22 -25
- package/src/block_storage_vm.ts +41 -35
- package/src/builder.ts +107 -95
- package/src/components/PFrameForGraphs.test.ts +261 -255
- package/src/components/PFrameForGraphs.ts +35 -22
- package/src/components/PlAnnotations/filter.ts +21 -15
- package/src/components/PlAnnotations/filters_ui.test.ts +230 -73
- package/src/components/PlAnnotations/filters_ui.ts +138 -105
- package/src/components/PlAnnotations/index.ts +2 -2
- package/src/components/PlAnnotations/types.ts +2 -2
- package/src/components/PlDataTable.ts +177 -164
- package/src/components/PlMultiSequenceAlignment.ts +11 -18
- package/src/components/PlSelectionModel.ts +1 -1
- package/src/components/index.ts +5 -5
- package/src/config/actions.ts +64 -59
- package/src/config/actions_kinds.ts +38 -34
- package/src/config/index.ts +6 -6
- package/src/config/model.ts +28 -28
- package/src/config/model_meta.ts +1 -1
- package/src/config/type_engine.ts +3 -3
- package/src/config/type_util.ts +2 -2
- package/src/env_value.ts +2 -2
- package/src/filters/converter.test.ts +185 -144
- package/src/filters/converter.ts +47 -35
- package/src/filters/index.ts +2 -2
- package/src/filters/types.ts +44 -39
- package/src/global.d.ts +1 -1
- package/src/index.ts +24 -24
- package/src/internal.ts +27 -17
- package/src/pframe.ts +3 -3
- package/src/pframe_utils/columns.ts +81 -31
- package/src/pframe_utils/index.ts +65 -43
- package/src/platforma.ts +44 -21
- package/src/raw_globals.ts +13 -7
- package/src/ref_util.ts +6 -6
- package/src/render/accessor.ts +43 -44
- package/src/render/api.ts +102 -78
- package/src/render/future.ts +2 -2
- package/src/render/index.ts +6 -6
- package/src/render/internal.ts +11 -12
- package/src/render/traversal_ops.ts +1 -1
- package/src/render/util/axis_filtering.ts +67 -52
- package/src/render/util/column_collection.ts +171 -91
- package/src/render/util/index.ts +4 -4
- package/src/render/util/label.test.ts +139 -139
- package/src/render/util/label.ts +42 -33
- package/src/render/util/pcolumn_data.ts +111 -75
- package/src/render/util/pframe_upgraders.ts +24 -13
- package/src/render/util/split_selectors.ts +6 -1
- package/src/sdk_info.ts +1 -1
- package/src/typing.test.ts +56 -56
- package/src/version.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AxesSpec, PTableValueAxis } from
|
|
1
|
+
import type { AxesSpec, PTableValueAxis } from "@milaboratories/pl-model-common";
|
|
2
2
|
|
|
3
3
|
/** Key is a set of all axes values, which means it is unique across rows */
|
|
4
4
|
export type PTableKey = PTableValueAxis[];
|
package/src/components/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
1
|
+
export * from "./PFrameForGraphs";
|
|
2
|
+
export * from "./PlAnnotations";
|
|
3
|
+
export * from "./PlDataTable";
|
|
4
|
+
export * from "./PlMultiSequenceAlignment";
|
|
5
|
+
export * from "./PlSelectionModel";
|
package/src/config/actions.ts
CHANGED
|
@@ -26,11 +26,16 @@ import type {
|
|
|
26
26
|
ActGetProgressLogWithInfo,
|
|
27
27
|
ActGetLogHandle,
|
|
28
28
|
ActExtractArchiveAndGetURL,
|
|
29
|
-
} from
|
|
30
|
-
import type {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
} from "./actions_kinds";
|
|
30
|
+
import type {
|
|
31
|
+
ExtractAction,
|
|
32
|
+
POCExtractAction,
|
|
33
|
+
PrimitiveOrConfig,
|
|
34
|
+
TypedConfig,
|
|
35
|
+
} from "./type_engine";
|
|
36
|
+
import type { Cfg } from "./model";
|
|
37
|
+
import type { CheckedSyncConf } from "./type_util";
|
|
38
|
+
import type { ArchiveFormat, RangeBytes } from "@milaboratories/pl-model-common";
|
|
34
39
|
|
|
35
40
|
//
|
|
36
41
|
// Helpers
|
|
@@ -38,10 +43,10 @@ import type { ArchiveFormat, RangeBytes } from '@milaboratories/pl-model-common'
|
|
|
38
43
|
|
|
39
44
|
function primitiveToConfig(value: PrimitiveOrConfig): TypedConfig {
|
|
40
45
|
if (
|
|
41
|
-
typeof value ===
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
typeof value === "string" ||
|
|
47
|
+
typeof value === "number" ||
|
|
48
|
+
typeof value === "boolean" ||
|
|
49
|
+
value === null
|
|
45
50
|
)
|
|
46
51
|
return getImmediate(value);
|
|
47
52
|
else return value as TypedConfig;
|
|
@@ -52,7 +57,7 @@ function primitiveToConfig(value: PrimitiveOrConfig): TypedConfig {
|
|
|
52
57
|
//
|
|
53
58
|
|
|
54
59
|
export function getFromCfg<const V extends string>(variable: V): TypedConfig<ActGetFromCtx<V>> {
|
|
55
|
-
return { type:
|
|
60
|
+
return { type: "GetFromCtx", variable } as Cfg as any;
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
//
|
|
@@ -63,7 +68,7 @@ export function isolate<const Config extends TypedConfig>(
|
|
|
63
68
|
cfg: Config,
|
|
64
69
|
): TypedConfig<ActIsolate<ExtractAction<Config>>> {
|
|
65
70
|
return {
|
|
66
|
-
type:
|
|
71
|
+
type: "Isolate",
|
|
67
72
|
cfg,
|
|
68
73
|
} as Cfg as any;
|
|
69
74
|
}
|
|
@@ -72,18 +77,18 @@ export function isolate<const Config extends TypedConfig>(
|
|
|
72
77
|
// Well-known Context Vars
|
|
73
78
|
//
|
|
74
79
|
|
|
75
|
-
export const Args = getFromCfg(
|
|
76
|
-
export const It = getFromCfg(
|
|
77
|
-
export const MainOutputs = getFromCfg(
|
|
78
|
-
export const StagingOutputs = getFromCfg(
|
|
79
|
-
export const UiState = getFromCfg(
|
|
80
|
+
export const Args = getFromCfg("$args");
|
|
81
|
+
export const It = getFromCfg("$it");
|
|
82
|
+
export const MainOutputs = getFromCfg("$prod");
|
|
83
|
+
export const StagingOutputs = getFromCfg("$staging");
|
|
84
|
+
export const UiState = getFromCfg("$ui");
|
|
80
85
|
|
|
81
86
|
//
|
|
82
87
|
// Json
|
|
83
88
|
//
|
|
84
89
|
|
|
85
90
|
export function getImmediate<const T>(value: T): TypedConfig<ActGetImmediate<T>> {
|
|
86
|
-
return { type:
|
|
91
|
+
return { type: "Immediate", value } as Cfg as any;
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
export function makeObject<const T extends Record<string, PrimitiveOrConfig>>(
|
|
@@ -92,7 +97,7 @@ export function makeObject<const T extends Record<string, PrimitiveOrConfig>>(
|
|
|
92
97
|
const normalizedTemplate: Record<string, TypedConfig> = {};
|
|
93
98
|
for (const [k, cfg] of Object.entries(template)) normalizedTemplate[k] = primitiveToConfig(cfg);
|
|
94
99
|
return {
|
|
95
|
-
type:
|
|
100
|
+
type: "MakeObject",
|
|
96
101
|
template: normalizedTemplate,
|
|
97
102
|
} as Cfg as any;
|
|
98
103
|
}
|
|
@@ -103,7 +108,7 @@ export function makeArray<const T extends PrimitiveOrConfig[]>(
|
|
|
103
108
|
const normalizedTemplate: TypedConfig[] = [];
|
|
104
109
|
for (const cfg of template) normalizedTemplate.push(primitiveToConfig(cfg));
|
|
105
110
|
return {
|
|
106
|
-
type:
|
|
111
|
+
type: "MakeArray",
|
|
107
112
|
template: normalizedTemplate,
|
|
108
113
|
} as Cfg as any;
|
|
109
114
|
}
|
|
@@ -116,7 +121,7 @@ export function getJsonField<
|
|
|
116
121
|
field: Field,
|
|
117
122
|
): TypedConfig<ActGetField<POCExtractAction<Source>, POCExtractAction<Field>>> {
|
|
118
123
|
return {
|
|
119
|
-
type:
|
|
124
|
+
type: "GetJsonField",
|
|
120
125
|
source: primitiveToConfig(source),
|
|
121
126
|
field: primitiveToConfig(field),
|
|
122
127
|
} as Cfg as any;
|
|
@@ -127,15 +132,15 @@ export function mapRecordValues<
|
|
|
127
132
|
const Mapping extends TypedConfig,
|
|
128
133
|
>(
|
|
129
134
|
source: Source & CheckedSyncConf<Source>,
|
|
130
|
-
mapping: Mapping
|
|
131
|
-
): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>,
|
|
135
|
+
mapping: Mapping,
|
|
136
|
+
): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, "$it">>;
|
|
132
137
|
export function mapRecordValues<
|
|
133
138
|
const Source extends TypedConfig,
|
|
134
139
|
const Mapping extends TypedConfig,
|
|
135
140
|
>(
|
|
136
141
|
source: Source,
|
|
137
|
-
mapping: Mapping & CheckedSyncConf<Mapping
|
|
138
|
-
): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>,
|
|
142
|
+
mapping: Mapping & CheckedSyncConf<Mapping>,
|
|
143
|
+
): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, "$it">>;
|
|
139
144
|
export function mapRecordValues<
|
|
140
145
|
const Source extends TypedConfig,
|
|
141
146
|
const Mapping extends TypedConfig,
|
|
@@ -143,7 +148,7 @@ export function mapRecordValues<
|
|
|
143
148
|
>(
|
|
144
149
|
source: Source & CheckedSyncConf<Source>,
|
|
145
150
|
mapping: Mapping,
|
|
146
|
-
itVar: ItVar
|
|
151
|
+
itVar: ItVar,
|
|
147
152
|
): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
148
153
|
export function mapRecordValues<
|
|
149
154
|
const Source extends TypedConfig,
|
|
@@ -152,7 +157,7 @@ export function mapRecordValues<
|
|
|
152
157
|
>(
|
|
153
158
|
source: Source,
|
|
154
159
|
mapping: Mapping & CheckedSyncConf<Mapping>,
|
|
155
|
-
itVar: ItVar
|
|
160
|
+
itVar: ItVar,
|
|
156
161
|
): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
157
162
|
export function mapRecordValues<
|
|
158
163
|
const Source extends TypedConfig,
|
|
@@ -161,10 +166,10 @@ export function mapRecordValues<
|
|
|
161
166
|
>(
|
|
162
167
|
source: Source,
|
|
163
168
|
mapping: Mapping,
|
|
164
|
-
itVar: ItVar =
|
|
169
|
+
itVar: ItVar = "$it" as ItVar,
|
|
165
170
|
): TypedConfig<ActMapRecordValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {
|
|
166
171
|
return {
|
|
167
|
-
type:
|
|
172
|
+
type: "MapRecordValues",
|
|
168
173
|
source,
|
|
169
174
|
mapping,
|
|
170
175
|
itVar,
|
|
@@ -173,12 +178,12 @@ export function mapRecordValues<
|
|
|
173
178
|
|
|
174
179
|
export function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(
|
|
175
180
|
source: Source & CheckedSyncConf<Source>,
|
|
176
|
-
mapping: Mapping
|
|
177
|
-
): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>,
|
|
181
|
+
mapping: Mapping,
|
|
182
|
+
): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, "$it">>;
|
|
178
183
|
export function mapArrayValues<const Source extends TypedConfig, const Mapping extends TypedConfig>(
|
|
179
184
|
source: Source,
|
|
180
|
-
mapping: Mapping & CheckedSyncConf<Mapping
|
|
181
|
-
): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>,
|
|
185
|
+
mapping: Mapping & CheckedSyncConf<Mapping>,
|
|
186
|
+
): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, "$it">>;
|
|
182
187
|
export function mapArrayValues<
|
|
183
188
|
const Source extends TypedConfig,
|
|
184
189
|
const Mapping extends TypedConfig,
|
|
@@ -186,7 +191,7 @@ export function mapArrayValues<
|
|
|
186
191
|
>(
|
|
187
192
|
source: Source & CheckedSyncConf<Source>,
|
|
188
193
|
mapping: Mapping,
|
|
189
|
-
itVar: ItVar
|
|
194
|
+
itVar: ItVar,
|
|
190
195
|
): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
191
196
|
export function mapArrayValues<
|
|
192
197
|
const Source extends TypedConfig,
|
|
@@ -195,7 +200,7 @@ export function mapArrayValues<
|
|
|
195
200
|
>(
|
|
196
201
|
source: Source,
|
|
197
202
|
mapping: Mapping & CheckedSyncConf<Mapping>,
|
|
198
|
-
itVar: ItVar
|
|
203
|
+
itVar: ItVar,
|
|
199
204
|
): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
200
205
|
export function mapArrayValues<
|
|
201
206
|
const Source extends TypedConfig,
|
|
@@ -204,10 +209,10 @@ export function mapArrayValues<
|
|
|
204
209
|
>(
|
|
205
210
|
source: Source,
|
|
206
211
|
mapping: Mapping,
|
|
207
|
-
itVar: ItVar =
|
|
212
|
+
itVar: ItVar = "$it" as ItVar,
|
|
208
213
|
): TypedConfig<ActMapArrayValues<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {
|
|
209
214
|
return {
|
|
210
|
-
type:
|
|
215
|
+
type: "MapArrayValues",
|
|
211
216
|
source,
|
|
212
217
|
mapping,
|
|
213
218
|
itVar,
|
|
@@ -218,7 +223,7 @@ export function flatten<const Source extends TypedConfig>(
|
|
|
218
223
|
source: Source,
|
|
219
224
|
): TypedConfig<ActFlatten<ExtractAction<Source>>> {
|
|
220
225
|
return {
|
|
221
|
-
type:
|
|
226
|
+
type: "Flatten",
|
|
222
227
|
source,
|
|
223
228
|
} as Cfg as any;
|
|
224
229
|
}
|
|
@@ -231,7 +236,7 @@ export function isEmpty<const Arg extends TypedConfig>(
|
|
|
231
236
|
arg: Arg,
|
|
232
237
|
): TypedConfig<ActIsEmpty<ExtractAction<Arg>>> {
|
|
233
238
|
return {
|
|
234
|
-
type:
|
|
239
|
+
type: "IsEmpty",
|
|
235
240
|
arg,
|
|
236
241
|
} as Cfg as any;
|
|
237
242
|
}
|
|
@@ -240,7 +245,7 @@ export function not<const Operand extends TypedConfig>(
|
|
|
240
245
|
operand: Operand,
|
|
241
246
|
): TypedConfig<ActNot<ExtractAction<Operand>>> {
|
|
242
247
|
return {
|
|
243
|
-
type:
|
|
248
|
+
type: "Not",
|
|
244
249
|
operand,
|
|
245
250
|
} as Cfg as any;
|
|
246
251
|
}
|
|
@@ -250,7 +255,7 @@ export function and<const Operand1 extends TypedConfig, const Operand2 extends T
|
|
|
250
255
|
operand2: Operand2,
|
|
251
256
|
): TypedConfig<ActAnd<ExtractAction<Operand1>, ExtractAction<Operand2>>> {
|
|
252
257
|
return {
|
|
253
|
-
type:
|
|
258
|
+
type: "And",
|
|
254
259
|
operand1,
|
|
255
260
|
operand2,
|
|
256
261
|
} as Cfg as any;
|
|
@@ -261,7 +266,7 @@ export function or<const Operand1 extends TypedConfig, const Operand2 extends Ty
|
|
|
261
266
|
operand2: Operand2,
|
|
262
267
|
): TypedConfig<ActOr<ExtractAction<Operand1>, ExtractAction<Operand2>>> {
|
|
263
268
|
return {
|
|
264
|
-
type:
|
|
269
|
+
type: "Or",
|
|
265
270
|
operand1,
|
|
266
271
|
operand2,
|
|
267
272
|
} as Cfg as any;
|
|
@@ -279,7 +284,7 @@ export function getResourceField<
|
|
|
279
284
|
field: Field,
|
|
280
285
|
): TypedConfig<ActGetResourceField<POCExtractAction<Source>, POCExtractAction<Field>>> {
|
|
281
286
|
return {
|
|
282
|
-
type:
|
|
287
|
+
type: "GetResourceField",
|
|
283
288
|
source: primitiveToConfig(source),
|
|
284
289
|
field: primitiveToConfig(field),
|
|
285
290
|
} as Cfg as any;
|
|
@@ -290,7 +295,7 @@ export function getResourceValueAsJson<T>() {
|
|
|
290
295
|
source: Source,
|
|
291
296
|
): TypedConfig<ActGetResourceValueAsJson<POCExtractAction<Source>, T>> {
|
|
292
297
|
return {
|
|
293
|
-
type:
|
|
298
|
+
type: "GetResourceValueAsJson",
|
|
294
299
|
source: primitiveToConfig(source),
|
|
295
300
|
} as Cfg as any;
|
|
296
301
|
};
|
|
@@ -301,8 +306,8 @@ export function mapResourceFields<
|
|
|
301
306
|
const Mapping extends TypedConfig,
|
|
302
307
|
>(
|
|
303
308
|
source: Source,
|
|
304
|
-
mapping: Mapping
|
|
305
|
-
): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>,
|
|
309
|
+
mapping: Mapping,
|
|
310
|
+
): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, "$it">>;
|
|
306
311
|
export function mapResourceFields<
|
|
307
312
|
const Source extends TypedConfig,
|
|
308
313
|
const Mapping extends TypedConfig,
|
|
@@ -310,7 +315,7 @@ export function mapResourceFields<
|
|
|
310
315
|
>(
|
|
311
316
|
source: Source,
|
|
312
317
|
mapping: Mapping,
|
|
313
|
-
itVar: ItVar
|
|
318
|
+
itVar: ItVar,
|
|
314
319
|
): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>>;
|
|
315
320
|
export function mapResourceFields<
|
|
316
321
|
const Source extends TypedConfig,
|
|
@@ -319,10 +324,10 @@ export function mapResourceFields<
|
|
|
319
324
|
>(
|
|
320
325
|
source: Source,
|
|
321
326
|
mapping: Mapping,
|
|
322
|
-
itVar: ItVar =
|
|
327
|
+
itVar: ItVar = "$it" as ItVar,
|
|
323
328
|
): TypedConfig<ActMapResourceFields<ExtractAction<Source>, ExtractAction<Mapping>, ItVar>> {
|
|
324
329
|
return {
|
|
325
|
-
type:
|
|
330
|
+
type: "MapResourceFields",
|
|
326
331
|
source,
|
|
327
332
|
mapping,
|
|
328
333
|
itVar,
|
|
@@ -340,7 +345,7 @@ export function getBlobContent<const Source extends TypedConfig>(
|
|
|
340
345
|
range?: RangeBytes,
|
|
341
346
|
): TypedConfig<ActGetBlobContent<ExtractAction<Source>>> {
|
|
342
347
|
return {
|
|
343
|
-
type:
|
|
348
|
+
type: "GetBlobContent",
|
|
344
349
|
range,
|
|
345
350
|
source: primitiveToConfig(source),
|
|
346
351
|
} as Cfg as any;
|
|
@@ -351,7 +356,7 @@ export function getBlobContentAsString<const Source extends TypedConfig>(
|
|
|
351
356
|
range?: RangeBytes,
|
|
352
357
|
): TypedConfig<ActGetBlobContentAsString<ExtractAction<Source>>> {
|
|
353
358
|
return {
|
|
354
|
-
type:
|
|
359
|
+
type: "GetBlobContentAsString",
|
|
355
360
|
range,
|
|
356
361
|
source: primitiveToConfig(source),
|
|
357
362
|
} as Cfg as any;
|
|
@@ -363,7 +368,7 @@ export function getBlobContentAsJson<T>() {
|
|
|
363
368
|
range?: RangeBytes,
|
|
364
369
|
): TypedConfig<ActGetBlobContentAsJson<ExtractAction<Source>, T>> {
|
|
365
370
|
return {
|
|
366
|
-
type:
|
|
371
|
+
type: "GetBlobContentAsJson",
|
|
367
372
|
range,
|
|
368
373
|
source: primitiveToConfig(source),
|
|
369
374
|
} as Cfg as any;
|
|
@@ -374,7 +379,7 @@ export function getDownloadedBlobContent<const Source extends TypedConfig>(
|
|
|
374
379
|
source: Source,
|
|
375
380
|
): TypedConfig<ActGetDownloadedBlobContent<ExtractAction<Source>>> {
|
|
376
381
|
return {
|
|
377
|
-
type:
|
|
382
|
+
type: "GetDownloadedBlobContent",
|
|
378
383
|
source: primitiveToConfig(source),
|
|
379
384
|
} as Cfg as any;
|
|
380
385
|
}
|
|
@@ -383,7 +388,7 @@ export function getOnDemandBlobContent<const Source extends TypedConfig>(
|
|
|
383
388
|
source: Source,
|
|
384
389
|
): TypedConfig<ActGetOnDemandBlobContent<ExtractAction<Source>>> {
|
|
385
390
|
return {
|
|
386
|
-
type:
|
|
391
|
+
type: "GetOnDemandBlobContent",
|
|
387
392
|
source: primitiveToConfig(source),
|
|
388
393
|
} as Cfg as any;
|
|
389
394
|
}
|
|
@@ -397,7 +402,7 @@ export function extractArchiveAndGetURL<const Source extends TypedConfig>(
|
|
|
397
402
|
format: ArchiveFormat,
|
|
398
403
|
): TypedConfig<ActExtractArchiveAndGetURL<ExtractAction<Source>>> {
|
|
399
404
|
return {
|
|
400
|
-
type:
|
|
405
|
+
type: "ExtractArchiveAndGetURL",
|
|
401
406
|
format,
|
|
402
407
|
source: primitiveToConfig(source),
|
|
403
408
|
} as Cfg as any;
|
|
@@ -411,7 +416,7 @@ export function getImportProgress<const Source extends TypedConfig>(
|
|
|
411
416
|
source: Source,
|
|
412
417
|
): TypedConfig<ActImportProgress<ExtractAction<Source>>> {
|
|
413
418
|
return {
|
|
414
|
-
type:
|
|
419
|
+
type: "GetImportProgress",
|
|
415
420
|
source: primitiveToConfig(source),
|
|
416
421
|
} as Cfg as any;
|
|
417
422
|
}
|
|
@@ -425,7 +430,7 @@ export function getLastLogs<const Source extends TypedConfig>(
|
|
|
425
430
|
lines: number,
|
|
426
431
|
): TypedConfig<ActGetLastLogs<ExtractAction<Source>>> {
|
|
427
432
|
return {
|
|
428
|
-
type:
|
|
433
|
+
type: "GetLastLogs",
|
|
429
434
|
source: primitiveToConfig(source),
|
|
430
435
|
lines,
|
|
431
436
|
} as Cfg as any;
|
|
@@ -436,7 +441,7 @@ export function getProgressLog<const Source extends TypedConfig>(
|
|
|
436
441
|
patternToSearch: string,
|
|
437
442
|
): TypedConfig<ActGetProgressLog<ExtractAction<Source>>> {
|
|
438
443
|
return {
|
|
439
|
-
type:
|
|
444
|
+
type: "GetProgressLog",
|
|
440
445
|
source: primitiveToConfig(source),
|
|
441
446
|
patternToSearch,
|
|
442
447
|
} as Cfg as any;
|
|
@@ -447,7 +452,7 @@ export function getProgressLogWithInfo<const Source extends TypedConfig>(
|
|
|
447
452
|
patternToSearch: string,
|
|
448
453
|
): TypedConfig<ActGetProgressLogWithInfo<ExtractAction<Source>>> {
|
|
449
454
|
return {
|
|
450
|
-
type:
|
|
455
|
+
type: "GetProgressLogWithInfo",
|
|
451
456
|
source: primitiveToConfig(source),
|
|
452
457
|
patternToSearch,
|
|
453
458
|
} as Cfg as any;
|
|
@@ -457,7 +462,7 @@ export function getLogHandle<const Source extends TypedConfig>(
|
|
|
457
462
|
source: Source,
|
|
458
463
|
): TypedConfig<ActGetLogHandle<ExtractAction<Source>>> {
|
|
459
464
|
return {
|
|
460
|
-
type:
|
|
465
|
+
type: "GetLogHandle",
|
|
461
466
|
source: primitiveToConfig(source),
|
|
462
467
|
} as Cfg as any;
|
|
463
468
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import type { ConfAction, ActionResult, InferVarTypeSafe, PlResourceEntry } from
|
|
2
|
-
import type { And, IsA, SyncConfAction } from
|
|
1
|
+
import type { ConfAction, ActionResult, InferVarTypeSafe, PlResourceEntry } from "./type_engine";
|
|
2
|
+
import type { And, IsA, SyncConfAction } from "./type_util";
|
|
3
3
|
import type {
|
|
4
4
|
LocalBlobHandleAndSize,
|
|
5
5
|
RemoteBlobHandleAndSize,
|
|
6
6
|
ImportProgress,
|
|
7
7
|
FolderURL,
|
|
8
|
-
} from
|
|
9
|
-
import type { AnyLogHandle } from
|
|
8
|
+
} from "@milaboratories/pl-model-common";
|
|
9
|
+
import type { AnyLogHandle } from "@milaboratories/pl-model-common";
|
|
10
10
|
|
|
11
11
|
//
|
|
12
12
|
// Context
|
|
13
13
|
//
|
|
14
14
|
|
|
15
15
|
export interface ActGetFromCtx<V extends string> extends ConfAction {
|
|
16
|
-
new: (x: this[
|
|
16
|
+
new: (x: this["ctx"]) => InferVarTypeSafe<typeof x, V>;
|
|
17
17
|
isSync: true;
|
|
18
18
|
}
|
|
19
19
|
|
|
@@ -22,7 +22,7 @@ export interface ActGetFromCtx<V extends string> extends ConfAction {
|
|
|
22
22
|
//
|
|
23
23
|
|
|
24
24
|
export interface ActIsolate<Nested extends ConfAction> extends ConfAction {
|
|
25
|
-
new: (x: this[
|
|
25
|
+
new: (x: this["ctx"]) => ActionResult<Nested, typeof x>;
|
|
26
26
|
isSync: false;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -36,14 +36,14 @@ export interface ActGetImmediate<T> extends ConfAction {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
export interface ActMakeObject<T extends Record<string, ConfAction>> extends ConfAction {
|
|
39
|
-
new: (x: this[
|
|
39
|
+
new: (x: this["ctx"]) => {
|
|
40
40
|
[Key in keyof T]: ActionResult<T[Key], typeof x>;
|
|
41
41
|
};
|
|
42
42
|
isSync: IsA<T, Record<string, SyncConfAction>>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
export interface ActMakeArray<T extends ConfAction[]> extends ConfAction {
|
|
46
|
-
new: (x: this[
|
|
46
|
+
new: (x: this["ctx"]) => {
|
|
47
47
|
[Key in keyof T]: ActionResult<T[Key], typeof x>;
|
|
48
48
|
};
|
|
49
49
|
isSync: IsA<T, SyncConfAction[]>;
|
|
@@ -53,10 +53,12 @@ export interface ActMakeArray<T extends ConfAction[]> extends ConfAction {
|
|
|
53
53
|
// Json Transformers
|
|
54
54
|
//
|
|
55
55
|
|
|
56
|
-
export interface ActGetField<
|
|
57
|
-
extends ConfAction
|
|
56
|
+
export interface ActGetField<
|
|
57
|
+
Source extends ConfAction,
|
|
58
|
+
Field extends ConfAction,
|
|
59
|
+
> extends ConfAction {
|
|
58
60
|
new: (
|
|
59
|
-
x: this[
|
|
61
|
+
x: this["ctx"],
|
|
60
62
|
) => InferVarTypeSafe<ActionResult<Source, typeof x>, ActionResult<Field, typeof x>>;
|
|
61
63
|
isSync: true;
|
|
62
64
|
}
|
|
@@ -67,7 +69,7 @@ export interface ActMapRecordValues<
|
|
|
67
69
|
ItVar extends string,
|
|
68
70
|
> extends ConfAction {
|
|
69
71
|
new: (
|
|
70
|
-
x: this[
|
|
72
|
+
x: this["ctx"],
|
|
71
73
|
) => ActionResult<Source, typeof x> extends Record<string, infer V>
|
|
72
74
|
? Record<string, ActionResult<Mapping, typeof x & { [K in ItVar]: V }>>
|
|
73
75
|
: unknown;
|
|
@@ -80,7 +82,7 @@ export interface ActMapArrayValues<
|
|
|
80
82
|
ItVar extends string,
|
|
81
83
|
> extends ConfAction {
|
|
82
84
|
new: (
|
|
83
|
-
x: this[
|
|
85
|
+
x: this["ctx"],
|
|
84
86
|
) => ActionResult<Source, typeof x> extends (infer V)[]
|
|
85
87
|
? ActionResult<Mapping, typeof x & { [K in ItVar]: V }>[]
|
|
86
88
|
: unknown;
|
|
@@ -88,7 +90,7 @@ export interface ActMapArrayValues<
|
|
|
88
90
|
}
|
|
89
91
|
|
|
90
92
|
export interface ActFlatten<Sources extends ConfAction> extends ConfAction {
|
|
91
|
-
new: (x: this[
|
|
93
|
+
new: (x: this["ctx"]) => ActionResult<Sources, typeof x> extends (infer V)[][] ? V[] : unknown;
|
|
92
94
|
isSync: IsA<Sources, SyncConfAction[]>;
|
|
93
95
|
}
|
|
94
96
|
|
|
@@ -98,19 +100,19 @@ export interface ActFlatten<Sources extends ConfAction> extends ConfAction {
|
|
|
98
100
|
|
|
99
101
|
export interface ActIsEmpty<Source extends ConfAction> extends ConfAction {
|
|
100
102
|
new: (
|
|
101
|
-
x: this[
|
|
103
|
+
x: this["ctx"],
|
|
102
104
|
) => ActionResult<Source, typeof x> extends unknown[] | string | undefined ? boolean : unknown;
|
|
103
105
|
isSync: IsA<Source, SyncConfAction>;
|
|
104
106
|
}
|
|
105
107
|
|
|
106
108
|
export interface ActNot<Source extends ConfAction> extends ConfAction {
|
|
107
|
-
new: (x: this[
|
|
109
|
+
new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends boolean ? boolean : unknown;
|
|
108
110
|
isSync: IsA<Source, SyncConfAction>;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
export interface ActAnd<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
|
|
112
114
|
new: (
|
|
113
|
-
x: this[
|
|
115
|
+
x: this["ctx"],
|
|
114
116
|
) => ActionResult<Source1, typeof x> extends boolean
|
|
115
117
|
? ActionResult<Source2, typeof x> extends boolean
|
|
116
118
|
? boolean
|
|
@@ -121,7 +123,7 @@ export interface ActAnd<Source1 extends ConfAction, Source2 extends ConfAction>
|
|
|
121
123
|
|
|
122
124
|
export interface ActOr<Source1 extends ConfAction, Source2 extends ConfAction> extends ConfAction {
|
|
123
125
|
new: (
|
|
124
|
-
x: this[
|
|
126
|
+
x: this["ctx"],
|
|
125
127
|
) => ActionResult<Source1, typeof x> extends boolean
|
|
126
128
|
? ActionResult<Source2, typeof x> extends boolean
|
|
127
129
|
? boolean
|
|
@@ -134,10 +136,12 @@ export interface ActOr<Source1 extends ConfAction, Source2 extends ConfAction> e
|
|
|
134
136
|
// Resource
|
|
135
137
|
//
|
|
136
138
|
|
|
137
|
-
export interface ActGetResourceField<
|
|
138
|
-
extends ConfAction
|
|
139
|
+
export interface ActGetResourceField<
|
|
140
|
+
Source extends ConfAction,
|
|
141
|
+
Field extends ConfAction,
|
|
142
|
+
> extends ConfAction {
|
|
139
143
|
new: (
|
|
140
|
-
x: this[
|
|
144
|
+
x: this["ctx"],
|
|
141
145
|
) => ActionResult<Source, typeof x> extends PlResourceEntry
|
|
142
146
|
? ActionResult<Field, typeof x> extends string
|
|
143
147
|
? PlResourceEntry
|
|
@@ -152,7 +156,7 @@ export interface ActMapResourceFields<
|
|
|
152
156
|
ItVar extends string,
|
|
153
157
|
> extends ConfAction {
|
|
154
158
|
new: (
|
|
155
|
-
x: this[
|
|
159
|
+
x: this["ctx"],
|
|
156
160
|
) => ActionResult<Source, typeof x> extends PlResourceEntry
|
|
157
161
|
? Record<string, ActionResult<Mapping, typeof x & { [K in ItVar]: PlResourceEntry }>>
|
|
158
162
|
: unknown;
|
|
@@ -164,7 +168,7 @@ export interface ActMapResourceFields<
|
|
|
164
168
|
//
|
|
165
169
|
|
|
166
170
|
export interface ActGetResourceValueAsJson<Source extends ConfAction, T> extends ConfAction {
|
|
167
|
-
new: (x: this[
|
|
171
|
+
new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
|
|
168
172
|
isSync: IsA<Source, SyncConfAction>;
|
|
169
173
|
}
|
|
170
174
|
|
|
@@ -174,33 +178,33 @@ export interface ActGetResourceValueAsJson<Source extends ConfAction, T> extends
|
|
|
174
178
|
|
|
175
179
|
export interface ActGetBlobContent<Source extends ConfAction> extends ConfAction {
|
|
176
180
|
new: (
|
|
177
|
-
x: this[
|
|
181
|
+
x: this["ctx"],
|
|
178
182
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? Uint8Array : unknown;
|
|
179
183
|
isSync: IsA<Source, SyncConfAction>;
|
|
180
184
|
}
|
|
181
185
|
|
|
182
186
|
export interface ActGetBlobContentAsString<Source extends ConfAction> extends ConfAction {
|
|
183
187
|
new: (
|
|
184
|
-
x: this[
|
|
188
|
+
x: this["ctx"],
|
|
185
189
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
|
|
186
190
|
isSync: IsA<Source, SyncConfAction>;
|
|
187
191
|
}
|
|
188
192
|
|
|
189
193
|
export interface ActGetBlobContentAsJson<Source extends ConfAction, T> extends ConfAction {
|
|
190
|
-
new: (x: this[
|
|
194
|
+
new: (x: this["ctx"]) => ActionResult<Source, typeof x> extends PlResourceEntry ? T : unknown;
|
|
191
195
|
isSync: IsA<Source, SyncConfAction>;
|
|
192
196
|
}
|
|
193
197
|
|
|
194
198
|
export interface ActGetDownloadedBlobContent<Source extends ConfAction> extends ConfAction {
|
|
195
199
|
new: (
|
|
196
|
-
x: this[
|
|
200
|
+
x: this["ctx"],
|
|
197
201
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? LocalBlobHandleAndSize : unknown;
|
|
198
202
|
isSync: IsA<Source, SyncConfAction>;
|
|
199
203
|
}
|
|
200
204
|
|
|
201
205
|
export interface ActGetOnDemandBlobContent<Source extends ConfAction> extends ConfAction {
|
|
202
206
|
new: (
|
|
203
|
-
x: this[
|
|
207
|
+
x: this["ctx"],
|
|
204
208
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? RemoteBlobHandleAndSize : unknown;
|
|
205
209
|
isSync: IsA<Source, SyncConfAction>;
|
|
206
210
|
}
|
|
@@ -211,7 +215,7 @@ export interface ActGetOnDemandBlobContent<Source extends ConfAction> extends Co
|
|
|
211
215
|
|
|
212
216
|
export interface ActExtractArchiveAndGetURL<Source extends ConfAction> extends ConfAction {
|
|
213
217
|
new: (
|
|
214
|
-
x: this[
|
|
218
|
+
x: this["ctx"],
|
|
215
219
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? FolderURL : unknown;
|
|
216
220
|
isSync: IsA<Source, SyncConfAction>;
|
|
217
221
|
}
|
|
@@ -222,7 +226,7 @@ export interface ActExtractArchiveAndGetURL<Source extends ConfAction> extends C
|
|
|
222
226
|
|
|
223
227
|
export interface ActImportProgress<Source extends ConfAction> extends ConfAction {
|
|
224
228
|
new: (
|
|
225
|
-
x: this[
|
|
229
|
+
x: this["ctx"],
|
|
226
230
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? ImportProgress : unknown;
|
|
227
231
|
isSync: IsA<Source, SyncConfAction>;
|
|
228
232
|
}
|
|
@@ -233,28 +237,28 @@ export interface ActImportProgress<Source extends ConfAction> extends ConfAction
|
|
|
233
237
|
|
|
234
238
|
export interface ActGetLastLogs<Source extends ConfAction> extends ConfAction {
|
|
235
239
|
new: (
|
|
236
|
-
x: this[
|
|
240
|
+
x: this["ctx"],
|
|
237
241
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
|
|
238
242
|
isSync: IsA<Source, SyncConfAction>;
|
|
239
243
|
}
|
|
240
244
|
|
|
241
245
|
export interface ActGetProgressLog<Source extends ConfAction> extends ConfAction {
|
|
242
246
|
new: (
|
|
243
|
-
x: this[
|
|
247
|
+
x: this["ctx"],
|
|
244
248
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
|
|
245
249
|
isSync: IsA<Source, SyncConfAction>;
|
|
246
250
|
}
|
|
247
251
|
|
|
248
252
|
export interface ActGetProgressLogWithInfo<Source extends ConfAction> extends ConfAction {
|
|
249
253
|
new: (
|
|
250
|
-
x: this[
|
|
254
|
+
x: this["ctx"],
|
|
251
255
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? string : unknown;
|
|
252
256
|
isSync: IsA<Source, SyncConfAction>;
|
|
253
257
|
}
|
|
254
258
|
|
|
255
259
|
export interface ActGetLogHandle<Source extends ConfAction> extends ConfAction {
|
|
256
260
|
new: (
|
|
257
|
-
x: this[
|
|
261
|
+
x: this["ctx"],
|
|
258
262
|
) => ActionResult<Source, typeof x> extends PlResourceEntry ? AnyLogHandle : unknown;
|
|
259
263
|
isSync: IsA<Source, SyncConfAction>;
|
|
260
264
|
}
|
package/src/config/index.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export { type Checked } from
|
|
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";
|