@platforma-sdk/model 1.82.0 → 1.83.9
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.d.ts +1 -3
- package/dist/annotations/converter.d.ts.map +1 -1
- package/dist/annotations/types.d.ts +5 -6
- package/dist/annotations/types.d.ts.map +1 -1
- package/dist/bconfig/index.d.ts +2 -2
- package/dist/bconfig/lambdas.d.ts +11 -21
- package/dist/bconfig/lambdas.d.ts.map +1 -1
- package/dist/bconfig/normalization.d.ts +3 -5
- package/dist/bconfig/normalization.d.ts.map +1 -1
- package/dist/bconfig/types.d.ts +4 -5
- package/dist/bconfig/types.d.ts.map +1 -1
- package/dist/bconfig/util.d.ts +1 -3
- package/dist/bconfig/util.d.ts.map +1 -1
- package/dist/bconfig/v3.d.ts +4 -6
- package/dist/bconfig/v3.d.ts.map +1 -1
- package/dist/block_api_v1.d.ts +2 -4
- package/dist/block_api_v1.d.ts.map +1 -1
- package/dist/block_api_v2.d.ts +1 -3
- package/dist/block_api_v2.d.ts.map +1 -1
- package/dist/block_api_v3.d.ts +1 -3
- package/dist/block_api_v3.d.ts.map +1 -1
- package/dist/block_migrations.d.ts +20 -36
- package/dist/block_migrations.d.ts.map +1 -1
- package/dist/block_model.cjs +2 -2
- package/dist/block_model.d.ts +10 -10
- package/dist/block_model.d.ts.map +1 -1
- package/dist/block_model.js +2 -2
- package/dist/block_state_patch.d.ts +6 -6
- package/dist/block_state_patch.d.ts.map +1 -1
- package/dist/block_state_util.d.ts +4 -6
- package/dist/block_state_util.d.ts.map +1 -1
- package/dist/block_storage.d.ts +24 -23
- package/dist/block_storage.d.ts.map +1 -1
- package/dist/block_storage_facade.d.ts +11 -12
- package/dist/block_storage_facade.d.ts.map +1 -1
- package/dist/columns/column.d.ts +5 -6
- package/dist/columns/column.d.ts.map +1 -1
- package/dist/columns/column_providers/index.d.ts +5 -6
- package/dist/columns/column_providers/index.d.ts.map +1 -1
- package/dist/columns/column_providers/providers.d.ts +10 -11
- package/dist/columns/column_providers/providers.d.ts.map +1 -1
- package/dist/columns/column_providers/types.d.ts +2 -3
- package/dist/columns/column_providers/types.d.ts.map +1 -1
- package/dist/columns/column_recipes/column_discovered_recipe.d.ts +1 -3
- package/dist/columns/column_recipes/column_discovered_recipe.d.ts.map +1 -1
- package/dist/columns/column_recipes/column_filtered_recipe.d.ts +1 -3
- package/dist/columns/column_recipes/column_filtered_recipe.d.ts.map +1 -1
- package/dist/columns/column_recipes/column_overrided_recipe.d.ts +2 -3
- package/dist/columns/column_recipes/column_overrided_recipe.d.ts.map +1 -1
- package/dist/columns/column_recipes/index.d.ts +3 -4
- package/dist/columns/column_recipes/index.d.ts.map +1 -1
- package/dist/columns/column_recipes/types.d.ts +5 -6
- package/dist/columns/column_recipes/types.d.ts.map +1 -1
- package/dist/columns/columns_collection.d.ts +7 -8
- package/dist/columns/columns_collection.d.ts.map +1 -1
- package/dist/columns/data_column.d.ts +12 -16
- package/dist/columns/data_column.d.ts.map +1 -1
- package/dist/columns/derive_axis_values_labels.d.ts +2 -3
- package/dist/columns/derive_axis_values_labels.d.ts.map +1 -1
- package/dist/columns/split_by_axes.d.ts +3 -5
- package/dist/columns/split_by_axes.d.ts.map +1 -1
- package/dist/columns/utils.d.ts +10 -12
- package/dist/columns/utils.d.ts.map +1 -1
- package/dist/components/PFrameForGraphs.d.ts +5 -5
- package/dist/components/PFrameForGraphs.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filter.d.ts +59 -40
- package/dist/components/PlAnnotations/filter.d.ts.map +1 -1
- package/dist/components/PlAnnotations/filters_ui.d.ts +18 -18
- package/dist/components/PlAnnotations/filters_ui.d.ts.map +1 -1
- package/dist/components/PlDataTable/columnResolver.cjs +2 -4
- package/dist/components/PlDataTable/columnResolver.cjs.map +1 -1
- package/dist/components/PlDataTable/columnResolver.js +2 -4
- package/dist/components/PlDataTable/columnResolver.js.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.cjs.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts +3 -4
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.js +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV2.js.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.cjs.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts +13 -10
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js +1 -1
- package/dist/components/PlDataTable/createPlDataTable/createPlDataTableV3.js.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts +5 -5
- package/dist/components/PlDataTable/createPlDataTable/discoverColumns.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/index.d.ts +4 -4
- package/dist/components/PlDataTable/createPlDataTable/index.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTable/utils.d.ts +8 -7
- package/dist/components/PlDataTable/createPlDataTable/utils.d.ts.map +1 -1
- package/dist/components/PlDataTable/createPlDataTableSheet.d.ts +2 -3
- package/dist/components/PlDataTable/createPlDataTableSheet.d.ts.map +1 -1
- package/dist/components/PlDataTable/state-migration.d.ts +6 -7
- package/dist/components/PlDataTable/state-migration.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV4.d.ts +73 -42
- package/dist/components/PlDataTable/typesV4.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV5.d.ts +3 -5
- package/dist/components/PlDataTable/typesV5.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV6.d.ts +4 -6
- package/dist/components/PlDataTable/typesV6.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV7.d.ts +45 -27
- package/dist/components/PlDataTable/typesV7.d.ts.map +1 -1
- package/dist/components/PlDataTable/typesV8.d.ts +80 -45
- package/dist/components/PlDataTable/typesV8.d.ts.map +1 -1
- package/dist/components/PlDatasetSelector/build_dataset_options.d.ts +7 -6
- package/dist/components/PlDatasetSelector/build_dataset_options.d.ts.map +1 -1
- package/dist/components/PlDatasetSelector/dataset_selection.d.ts +4 -6
- package/dist/components/PlDatasetSelector/dataset_selection.d.ts.map +1 -1
- package/dist/components/PlDatasetSelector/filter_discovery.d.ts +9 -8
- package/dist/components/PlDatasetSelector/filter_discovery.d.ts.map +1 -1
- package/dist/components/PlMultiSequenceAlignment.d.ts +6 -13
- package/dist/components/PlMultiSequenceAlignment.d.ts.map +1 -1
- package/dist/components/PlSelectionModel.d.ts +6 -6
- package/dist/components/PlSelectionModel.d.ts.map +1 -1
- package/dist/components/index.d.ts +3 -0
- package/dist/config/index.d.ts +2 -6
- package/dist/config/model.d.ts +28 -30
- package/dist/config/model.d.ts.map +1 -1
- package/dist/config/type_engine.d.ts +8 -31
- package/dist/config/type_engine.d.ts.map +1 -1
- package/dist/env_value.d.ts +1 -2
- package/dist/env_value.d.ts.map +1 -1
- package/dist/filters/converters/filterToQuery.d.ts +6 -7
- package/dist/filters/converters/filterToQuery.d.ts.map +1 -1
- package/dist/filters/converters/filterUiToExpressionImpl.d.ts +2 -4
- package/dist/filters/converters/filterUiToExpressionImpl.d.ts.map +1 -1
- package/dist/filters/distill.d.ts +1 -3
- package/dist/filters/distill.d.ts.map +1 -1
- package/dist/filters/index.d.ts +1 -0
- package/dist/filters/types.d.ts +3 -4
- package/dist/filters/types.d.ts.map +1 -1
- package/dist/index.cjs +20 -60
- package/dist/index.d.ts +14 -11
- package/dist/index.js +4 -8
- package/dist/labels/derive_distinct_labels.d.ts +28 -17
- package/dist/labels/derive_distinct_labels.d.ts.map +1 -1
- package/dist/labels/derive_distinct_tooltips.d.ts +11 -8
- package/dist/labels/derive_distinct_tooltips.d.ts.map +1 -1
- package/dist/labels/linked_column_postfix.d.ts +3 -5
- package/dist/labels/linked_column_postfix.d.ts.map +1 -1
- package/dist/package.cjs +1 -1
- package/dist/package.js +1 -1
- package/dist/pframe.d.ts +1 -3
- package/dist/pframe.d.ts.map +1 -1
- package/dist/pframe_utils/axes.d.ts +4 -5
- package/dist/pframe_utils/axes.d.ts.map +1 -1
- package/dist/pframe_utils/columns.d.ts +3 -7
- package/dist/pframe_utils/columns.d.ts.map +1 -1
- package/dist/pframe_utils/index.d.ts +9 -10
- package/dist/pframe_utils/index.d.ts.map +1 -1
- package/dist/platforma.d.ts +19 -21
- package/dist/platforma.d.ts.map +1 -1
- package/dist/plugin_handle.d.ts +11 -13
- package/dist/plugin_handle.d.ts.map +1 -1
- package/dist/plugin_model.d.ts +21 -22
- package/dist/plugin_model.d.ts.map +1 -1
- package/dist/raw_globals.d.ts +3 -4
- package/dist/raw_globals.d.ts.map +1 -1
- package/dist/render/accessor.d.ts +2 -4
- package/dist/render/accessor.d.ts.map +1 -1
- package/dist/render/api.cjs +0 -22
- package/dist/render/api.cjs.map +1 -1
- package/dist/render/api.d.ts +13 -21
- package/dist/render/api.d.ts.map +1 -1
- package/dist/render/api.js +1 -22
- package/dist/render/api.js.map +1 -1
- package/dist/render/future.d.ts +2 -4
- package/dist/render/future.d.ts.map +1 -1
- package/dist/render/index.cjs +0 -1
- package/dist/render/index.d.ts +3 -2
- package/dist/render/index.js +2 -2
- package/dist/render/internal.d.ts +11 -13
- package/dist/render/internal.d.ts.map +1 -1
- package/dist/render/traversal_ops.d.ts +14 -11
- package/dist/render/traversal_ops.d.ts.map +1 -1
- package/dist/render/util/axis_filtering.d.ts +5 -7
- package/dist/render/util/axis_filtering.d.ts.map +1 -1
- package/dist/render/util/column_collection.d.ts +14 -12
- package/dist/render/util/column_collection.d.ts.map +1 -1
- package/dist/render/util/label.d.ts +2 -3
- package/dist/render/util/label.d.ts.map +1 -1
- package/dist/render/util/pcolumn_data.d.ts +24 -25
- package/dist/render/util/pcolumn_data.d.ts.map +1 -1
- package/dist/render/util/split_selectors.d.ts +4 -6
- package/dist/render/util/split_selectors.d.ts.map +1 -1
- package/dist/services/block_services.d.ts +3 -4
- package/dist/services/block_services.d.ts.map +1 -1
- package/dist/services/get_services.d.ts +1 -3
- package/dist/services/get_services.d.ts.map +1 -1
- package/dist/services/service_bridge.d.ts +3 -5
- package/dist/services/service_bridge.d.ts.map +1 -1
- package/dist/services/service_resolve.d.ts +6 -7
- package/dist/services/service_resolve.d.ts.map +1 -1
- package/dist/version.d.ts +3 -4
- package/dist/version.d.ts.map +1 -1
- package/package.json +8 -8
- package/src/bconfig/lambdas.ts +1 -25
- package/src/components/PlDataTable/columnResolver.test.ts +3 -5
- package/src/components/PlDataTable/columnResolver.ts +2 -12
- package/src/components/PlDataTable/createPlDataTable/createPlDataTableV2.ts +1 -4
- package/src/components/PlDataTable/createPlDataTable/createPlDataTableV3.ts +5 -4
- package/src/config/index.ts +0 -4
- package/src/config/type_engine.ts +6 -49
- package/src/index.ts +0 -2
- package/src/render/api.ts +0 -32
- package/src/typing.test.ts +4 -143
- package/dist/block_model_legacy.cjs +0 -240
- package/dist/block_model_legacy.cjs.map +0 -1
- package/dist/block_model_legacy.d.ts +0 -115
- package/dist/block_model_legacy.d.ts.map +0 -1
- package/dist/block_model_legacy.js +0 -240
- package/dist/block_model_legacy.js.map +0 -1
- package/dist/config/actions.cjs +0 -232
- package/dist/config/actions.cjs.map +0 -1
- package/dist/config/actions.d.ts +0 -48
- package/dist/config/actions.d.ts.map +0 -1
- package/dist/config/actions.js +0 -201
- package/dist/config/actions.js.map +0 -1
- package/dist/config/actions_kinds.d.ts +0 -116
- package/dist/config/actions_kinds.d.ts.map +0 -1
- package/dist/config/index.cjs +0 -33
- package/dist/config/index.js +0 -2
- package/dist/config/model_meta.d.ts +0 -9
- package/dist/config/model_meta.d.ts.map +0 -1
- package/dist/config/type_util.d.ts +0 -14
- package/dist/config/type_util.d.ts.map +0 -1
- package/dist/ref_util.cjs +0 -21
- package/dist/ref_util.cjs.map +0 -1
- package/dist/ref_util.d.ts +0 -19
- package/dist/ref_util.d.ts.map +0 -1
- package/dist/ref_util.js +0 -20
- package/dist/ref_util.js.map +0 -1
- package/src/block_model_legacy.ts +0 -465
- package/src/config/actions.ts +0 -468
- package/src/config/actions_kinds.ts +0 -264
- package/src/config/model_meta.ts +0 -5
- package/src/config/type_util.ts +0 -25
- package/src/ref_util.ts +0 -17
|
@@ -1,116 +0,0 @@
|
|
|
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>;
|
|
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 };
|
|
116
|
-
//# sourceMappingURL=actions_kinds.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"actions_kinds.d.ts","names":[],"sources":["../../src/config/actions_kinds.ts"],"mappings":";;;;;UAciB,aAAA,2BAAwC,UAAA;EACvD,GAAA,GAAM,CAAA,kBAAmB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B,UAAA;EAC5E,GAAA,GACE,CAAA,kBACG,YAAA,CAAa,MAAA,SAAe,CAAA,UAAW,eAAA;EAC5C,MAAA,EAAQ,GAAA,CAAI,MAAA,EAAQ,cAAA;AAAA;AAAA,UAGL,eAAA,gBAA+B,UAAA,UAAoB,UAAA;EAClE,GAAA,GACE,CAAA,kBACG,YAAA,CAAa,MAAA,SAAe,CAAA,UAAW,eAAA,GAAkB,YAAA;EAC9D,MAAA,EAAQ,GAAA,CAAI,MAAA,EAAQ,cAAA;AAAA"}
|
package/dist/config/index.cjs
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const require_actions = require("./actions.cjs");
|
|
2
|
-
exports.Args = require_actions.Args;
|
|
3
|
-
exports.It = require_actions.It;
|
|
4
|
-
exports.MainOutputs = require_actions.MainOutputs;
|
|
5
|
-
exports.StagingOutputs = require_actions.StagingOutputs;
|
|
6
|
-
exports.UiState = require_actions.UiState;
|
|
7
|
-
exports.and = require_actions.and;
|
|
8
|
-
exports.extractArchiveAndGetURL = require_actions.extractArchiveAndGetURL;
|
|
9
|
-
exports.flatten = require_actions.flatten;
|
|
10
|
-
exports.getBlobContent = require_actions.getBlobContent;
|
|
11
|
-
exports.getBlobContentAsJson = require_actions.getBlobContentAsJson;
|
|
12
|
-
exports.getBlobContentAsString = require_actions.getBlobContentAsString;
|
|
13
|
-
exports.getDownloadedBlobContent = require_actions.getDownloadedBlobContent;
|
|
14
|
-
exports.getFromCfg = require_actions.getFromCfg;
|
|
15
|
-
exports.getImmediate = require_actions.getImmediate;
|
|
16
|
-
exports.getImportProgress = require_actions.getImportProgress;
|
|
17
|
-
exports.getJsonField = require_actions.getJsonField;
|
|
18
|
-
exports.getLastLogs = require_actions.getLastLogs;
|
|
19
|
-
exports.getLogHandle = require_actions.getLogHandle;
|
|
20
|
-
exports.getOnDemandBlobContent = require_actions.getOnDemandBlobContent;
|
|
21
|
-
exports.getProgressLog = require_actions.getProgressLog;
|
|
22
|
-
exports.getProgressLogWithInfo = require_actions.getProgressLogWithInfo;
|
|
23
|
-
exports.getResourceField = require_actions.getResourceField;
|
|
24
|
-
exports.getResourceValueAsJson = require_actions.getResourceValueAsJson;
|
|
25
|
-
exports.isEmpty = require_actions.isEmpty;
|
|
26
|
-
exports.isolate = require_actions.isolate;
|
|
27
|
-
exports.makeArray = require_actions.makeArray;
|
|
28
|
-
exports.makeObject = require_actions.makeObject;
|
|
29
|
-
exports.mapArrayValues = require_actions.mapArrayValues;
|
|
30
|
-
exports.mapRecordValues = require_actions.mapRecordValues;
|
|
31
|
-
exports.mapResourceFields = require_actions.mapResourceFields;
|
|
32
|
-
exports.not = require_actions.not;
|
|
33
|
-
exports.or = require_actions.or;
|
package/dist/config/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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";
|
|
2
|
-
export { 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 };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
//#region src/config/model_meta.d.ts
|
|
2
|
-
/** Divides all configurations into two broad classes. Some configs can be
|
|
3
|
-
* executed synchronously, given all their arguments are already rendered.
|
|
4
|
-
* Some require creation of a separate rendering cell, like downloading
|
|
5
|
-
* files. */
|
|
6
|
-
type CfgRenderingMode = "Sync" | "Async";
|
|
7
|
-
//#endregion
|
|
8
|
-
export { CfgRenderingMode };
|
|
9
|
-
//# sourceMappingURL=model_meta.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model_meta.d.ts","names":[],"sources":["../../src/config/model_meta.ts"],"mappings":";;AAIA;;;KAAY,gBAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ExtractAction, TypedConfig } from "./type_engine.js";
|
|
2
|
-
|
|
3
|
-
//#region src/config/type_util.d.ts
|
|
4
|
-
type SyncConfAction = {
|
|
5
|
-
isSync: true;
|
|
6
|
-
};
|
|
7
|
-
type IsSyncConf<Cfg extends TypedConfig> = ExtractAction<Cfg> extends SyncConfAction ? true : false;
|
|
8
|
-
type CheckedSyncConf<Cfg extends TypedConfig> = Checked<Cfg, IsSyncConf<Cfg>>;
|
|
9
|
-
type And<A extends boolean, B extends boolean> = A extends true ? B extends true ? true : false : false;
|
|
10
|
-
type IsA<T, E> = T extends E ? true : false;
|
|
11
|
-
type Checked<Type, Condition> = Condition extends true ? Type : "error";
|
|
12
|
-
//#endregion
|
|
13
|
-
export { And, Checked, CheckedSyncConf, IsA, IsSyncConf, SyncConfAction };
|
|
14
|
-
//# sourceMappingURL=type_util.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"type_util.d.ts","names":[],"sources":["../../src/config/type_util.ts"],"mappings":";;;KAEY,cAAA;EAAmB,MAAM;AAAA;AAAA,KAEzB,UAAA,aAAuB,WAAA,IACjC,aAAA,CAAc,GAAA,UAAa,cAAA;AAAA,KACjB,eAAA,aAA4B,WAAA,IAAe,OAAA,CAAQ,GAAA,EAAK,UAAA,CAAW,GAAA;AAAA,KAUnE,GAAA,yCAA4C,CAAA,gBACpD,CAAC;AAAA,KAKO,GAAA,SAAY,CAAA,SAAU,CAAC;AAAA,KAEvB,OAAA,oBAA2B,SAAA,gBAAyB,IAAI"}
|
package/dist/ref_util.cjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
const require_actions = require("./config/actions.cjs");
|
|
2
|
-
require("./config/index.cjs");
|
|
3
|
-
//#region src/ref_util.ts
|
|
4
|
-
function fromPlRef(source) {
|
|
5
|
-
return require_actions.makeObject({
|
|
6
|
-
__isRef: true,
|
|
7
|
-
blockId: require_actions.getJsonField(source, "blockId"),
|
|
8
|
-
name: require_actions.getJsonField(source, "name")
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function fromPlOption(source) {
|
|
12
|
-
return require_actions.makeObject({
|
|
13
|
-
ref: fromPlRef(require_actions.getJsonField(source, "ref")),
|
|
14
|
-
label: require_actions.getJsonField(source, "label")
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
exports.fromPlOption = fromPlOption;
|
|
19
|
-
exports.fromPlRef = fromPlRef;
|
|
20
|
-
|
|
21
|
-
//# sourceMappingURL=ref_util.cjs.map
|
package/dist/ref_util.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ref_util.cjs","names":["makeObject","getJsonField"],"sources":["../src/ref_util.ts"],"sourcesContent":["import type { TypedConfig } from \"./config\";\nimport { getJsonField, makeObject } from \"./config\";\n\nexport function fromPlRef<Source extends TypedConfig>(source: Source) {\n return makeObject({\n __isRef: true,\n blockId: getJsonField(source, \"blockId\"),\n name: getJsonField(source, \"name\"),\n });\n}\n\nexport function fromPlOption<Source extends TypedConfig>(source: Source) {\n return makeObject({\n ref: fromPlRef(getJsonField(source, \"ref\")),\n label: getJsonField(source, \"label\"),\n });\n}\n"],"mappings":";;;AAGA,SAAgB,UAAsC,QAAgB;CACpE,OAAOA,gBAAAA,WAAW;EAChB,SAAS;EACT,SAASC,gBAAAA,aAAa,QAAQ,SAAS;EACvC,MAAMA,gBAAAA,aAAa,QAAQ,MAAM;CACnC,CAAC;AACH;AAEA,SAAgB,aAAyC,QAAgB;CACvE,OAAOD,gBAAAA,WAAW;EAChB,KAAK,UAAUC,gBAAAA,aAAa,QAAQ,KAAK,CAAC;EAC1C,OAAOA,gBAAAA,aAAa,QAAQ,OAAO;CACrC,CAAC;AACH"}
|
package/dist/ref_util.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { POCExtractAction, TypedConfig } from "./config/type_engine.js";
|
|
2
|
-
import { ActGetField, ActGetImmediate, ActMakeObject } from "./config/actions_kinds.js";
|
|
3
|
-
//#region src/ref_util.d.ts
|
|
4
|
-
declare function fromPlRef<Source extends TypedConfig>(source: Source): TypedConfig<ActMakeObject<{
|
|
5
|
-
readonly __isRef: ActGetImmediate<true>;
|
|
6
|
-
readonly blockId: ActGetField<POCExtractAction<Source>, ActGetImmediate<"blockId">>;
|
|
7
|
-
readonly name: ActGetField<POCExtractAction<Source>, ActGetImmediate<"name">>;
|
|
8
|
-
}>>;
|
|
9
|
-
declare function fromPlOption<Source extends TypedConfig>(source: Source): TypedConfig<ActMakeObject<{
|
|
10
|
-
readonly ref: ActMakeObject<{
|
|
11
|
-
readonly __isRef: ActGetImmediate<true>;
|
|
12
|
-
readonly blockId: ActGetField<ActGetField<POCExtractAction<Source>, ActGetImmediate<"ref">>, ActGetImmediate<"blockId">>;
|
|
13
|
-
readonly name: ActGetField<ActGetField<POCExtractAction<Source>, ActGetImmediate<"ref">>, ActGetImmediate<"name">>;
|
|
14
|
-
}>;
|
|
15
|
-
readonly label: ActGetField<POCExtractAction<Source>, ActGetImmediate<"label">>;
|
|
16
|
-
}>>;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { fromPlOption, fromPlRef };
|
|
19
|
-
//# sourceMappingURL=ref_util.d.ts.map
|
package/dist/ref_util.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ref_util.d.ts","names":[],"sources":["../src/ref_util.ts"],"mappings":";;;iBAGgB,SAAA,gBAAyB,WAAA,EAAa,MAAA,EAAQ,MAAA,GAAM,WAAA;oBAAA,eAAA;EAAA;;;iBAQpD,YAAA,gBAA4B,WAAA,EAAa,MAAA,EAAQ,MAAA,GAAM,WAAA;;sBAAA,eAAA;IAAA"}
|
package/dist/ref_util.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { getJsonField, makeObject } from "./config/actions.js";
|
|
2
|
-
import "./config/index.js";
|
|
3
|
-
//#region src/ref_util.ts
|
|
4
|
-
function fromPlRef(source) {
|
|
5
|
-
return makeObject({
|
|
6
|
-
__isRef: true,
|
|
7
|
-
blockId: getJsonField(source, "blockId"),
|
|
8
|
-
name: getJsonField(source, "name")
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
function fromPlOption(source) {
|
|
12
|
-
return makeObject({
|
|
13
|
-
ref: fromPlRef(getJsonField(source, "ref")),
|
|
14
|
-
label: getJsonField(source, "label")
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { fromPlOption, fromPlRef };
|
|
19
|
-
|
|
20
|
-
//# sourceMappingURL=ref_util.js.map
|
package/dist/ref_util.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ref_util.js","names":[],"sources":["../src/ref_util.ts"],"sourcesContent":["import type { TypedConfig } from \"./config\";\nimport { getJsonField, makeObject } from \"./config\";\n\nexport function fromPlRef<Source extends TypedConfig>(source: Source) {\n return makeObject({\n __isRef: true,\n blockId: getJsonField(source, \"blockId\"),\n name: getJsonField(source, \"name\"),\n });\n}\n\nexport function fromPlOption<Source extends TypedConfig>(source: Source) {\n return makeObject({\n ref: fromPlRef(getJsonField(source, \"ref\")),\n label: getJsonField(source, \"label\"),\n });\n}\n"],"mappings":";;;AAGA,SAAgB,UAAsC,QAAgB;CACpE,OAAO,WAAW;EAChB,SAAS;EACT,SAAS,aAAa,QAAQ,SAAS;EACvC,MAAM,aAAa,QAAQ,MAAM;CACnC,CAAC;AACH;AAEA,SAAgB,aAAyC,QAAgB;CACvE,OAAO,WAAW;EAChB,KAAK,UAAU,aAAa,QAAQ,KAAK,CAAC;EAC1C,OAAO,aAAa,QAAQ,OAAO;CACrC,CAAC;AACH"}
|