@milaboratories/pl-model-common 1.48.0 → 1.49.0
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/author_marker.d.ts +1 -2
- package/dist/author_marker.d.ts.map +1 -1
- package/dist/base64.d.ts +4 -6
- package/dist/base64.d.ts.map +1 -1
- package/dist/block_state.d.ts +13 -9
- package/dist/block_state.d.ts.map +1 -1
- package/dist/bmodel/block_config.d.ts +51 -29
- package/dist/bmodel/block_config.d.ts.map +1 -1
- package/dist/bmodel/block_kind_ref.d.ts +4 -6
- package/dist/bmodel/block_kind_ref.d.ts.map +1 -1
- package/dist/bmodel/code.d.ts +4 -5
- package/dist/bmodel/code.d.ts.map +1 -1
- package/dist/bmodel/container.d.ts +5 -5
- package/dist/bmodel/container.d.ts.map +1 -1
- package/dist/bmodel/normalization.d.ts +1 -3
- package/dist/bmodel/normalization.d.ts.map +1 -1
- package/dist/bmodel/types.d.ts +1 -2
- package/dist/bmodel/types.d.ts.map +1 -1
- package/dist/branding.d.ts +2 -3
- package/dist/branding.d.ts.map +1 -1
- package/dist/columns/accessor_traversal.d.ts +6 -8
- package/dist/columns/accessor_traversal.d.ts.map +1 -1
- package/dist/columns/column_registry.d.ts +2 -3
- package/dist/columns/column_registry.d.ts.map +1 -1
- package/dist/columns/column_selector.d.ts +9 -9
- package/dist/columns/column_selector.d.ts.map +1 -1
- package/dist/columns/dedup.d.ts +1 -3
- package/dist/columns/dedup.d.ts.map +1 -1
- package/dist/columns/providers.d.ts +3 -4
- package/dist/columns/providers.d.ts.map +1 -1
- package/dist/columns/types.d.ts +12 -9
- package/dist/columns/types.d.ts.map +1 -1
- package/dist/common_types.d.ts +4 -6
- package/dist/common_types.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +4 -5
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/driver_kit.d.ts +2 -2
- package/dist/driver_kit.d.ts.map +1 -1
- package/dist/drivers/ChunkedStreamReader.d.ts +3 -5
- package/dist/drivers/ChunkedStreamReader.d.ts.map +1 -1
- package/dist/drivers/blob.d.ts +36 -25
- package/dist/drivers/blob.d.ts.map +1 -1
- package/dist/drivers/columns/columns_collection_driver.d.ts +6 -7
- package/dist/drivers/columns/columns_collection_driver.d.ts.map +1 -1
- package/dist/drivers/columns/discover_columns_options.d.ts +9 -8
- package/dist/drivers/columns/discover_columns_options.d.ts.map +1 -1
- package/dist/drivers/index.cjs +1 -0
- package/dist/drivers/index.d.ts +4 -2
- package/dist/drivers/index.js +2 -2
- package/dist/drivers/interfaces.d.ts +2 -3
- package/dist/drivers/interfaces.d.ts.map +1 -1
- package/dist/drivers/log.d.ts +26 -28
- package/dist/drivers/log.d.ts.map +1 -1
- package/dist/drivers/ls.d.ts +37 -27
- package/dist/drivers/ls.d.ts.map +1 -1
- package/dist/drivers/pframe/column_filter.d.ts +1 -3
- package/dist/drivers/pframe/column_filter.d.ts.map +1 -1
- package/dist/drivers/pframe/data_info.d.ts +77 -50
- package/dist/drivers/pframe/data_info.d.ts.map +1 -1
- package/dist/drivers/pframe/data_types.d.ts +50 -45
- package/dist/drivers/pframe/data_types.d.ts.map +1 -1
- package/dist/drivers/pframe/driver.d.ts +5 -5
- package/dist/drivers/pframe/driver.d.ts.map +1 -1
- package/dist/drivers/pframe/filter_spec.d.ts +10 -12
- package/dist/drivers/pframe/filter_spec.d.ts.map +1 -1
- package/dist/drivers/pframe/find_columns.d.ts +2 -4
- package/dist/drivers/pframe/find_columns.d.ts.map +1 -1
- package/dist/drivers/pframe/index.cjs +1 -0
- package/dist/drivers/pframe/index.d.ts +4 -2
- package/dist/drivers/pframe/index.js +2 -2
- package/dist/drivers/pframe/linker_columns.d.ts +4 -10
- package/dist/drivers/pframe/linker_columns.d.ts.map +1 -1
- package/dist/drivers/pframe/pframe.d.ts +3 -3
- package/dist/drivers/pframe/pframe.d.ts.map +1 -1
- package/dist/drivers/pframe/query/query_common.d.ts +52 -46
- package/dist/drivers/pframe/query/query_common.d.ts.map +1 -1
- package/dist/drivers/pframe/query/query_data.d.ts +26 -21
- package/dist/drivers/pframe/query/query_data.d.ts.map +1 -1
- package/dist/drivers/pframe/query/query_spec.d.ts +22 -19
- package/dist/drivers/pframe/query/query_spec.d.ts.map +1 -1
- package/dist/drivers/pframe/query/utils.d.ts +15 -11
- package/dist/drivers/pframe/query/utils.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/anchored.d.ts +3 -5
- package/dist/drivers/pframe/spec/anchored.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/discovered_column.d.ts +10 -11
- package/dist/drivers/pframe/spec/discovered_column.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/filtered_column.d.ts +17 -18
- package/dist/drivers/pframe/spec/filtered_column.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/ids.d.ts +16 -16
- package/dist/drivers/pframe/spec/ids.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/index.cjs +1 -0
- package/dist/drivers/pframe/spec/index.d.ts +2 -2
- package/dist/drivers/pframe/spec/index.js +2 -2
- package/dist/drivers/pframe/spec/native_id.d.ts +3 -3
- package/dist/drivers/pframe/spec/native_id.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/overridden.d.ts +14 -16
- package/dist/drivers/pframe/spec/overridden.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/selectors.d.ts +22 -22
- package/dist/drivers/pframe/spec/selectors.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/spec.cjs +31 -0
- package/dist/drivers/pframe/spec/spec.cjs.map +1 -1
- package/dist/drivers/pframe/spec/spec.d.ts +94 -70
- package/dist/drivers/pframe/spec/spec.d.ts.map +1 -1
- package/dist/drivers/pframe/spec/spec.js +31 -1
- package/dist/drivers/pframe/spec/spec.js.map +1 -1
- package/dist/drivers/pframe/spec_driver.d.ts +30 -25
- package/dist/drivers/pframe/spec_driver.d.ts.map +1 -1
- package/dist/drivers/pframe/table.d.ts +1 -3
- package/dist/drivers/pframe/table.d.ts.map +1 -1
- package/dist/drivers/pframe/table_calculate.d.ts +55 -46
- package/dist/drivers/pframe/table_calculate.d.ts.map +1 -1
- package/dist/drivers/pframe/table_common.d.ts +9 -10
- package/dist/drivers/pframe/table_common.d.ts.map +1 -1
- package/dist/drivers/pframe/unique_values.d.ts +3 -3
- package/dist/drivers/pframe/unique_values.d.ts.map +1 -1
- package/dist/drivers/upload.d.ts +2 -3
- package/dist/drivers/upload.d.ts.map +1 -1
- package/dist/drivers/urls.d.ts +7 -8
- package/dist/drivers/urls.d.ts.map +1 -1
- package/dist/errors.d.ts +35 -36
- package/dist/errors.d.ts.map +1 -1
- package/dist/flags/block_flags.cjs.map +1 -1
- package/dist/flags/block_flags.d.ts +7 -7
- package/dist/flags/block_flags.d.ts.map +1 -1
- package/dist/flags/block_flags.js.map +1 -1
- package/dist/flags/flag_utils.d.ts +6 -8
- package/dist/flags/flag_utils.d.ts.map +1 -1
- package/dist/flags/type_utils.d.ts +6 -7
- package/dist/flags/type_utils.d.ts.map +1 -1
- package/dist/httpAuth.d.ts +4 -5
- package/dist/httpAuth.d.ts.map +1 -1
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +9 -2
- package/dist/index.js +2 -2
- package/dist/json.d.ts +11 -12
- package/dist/json.d.ts.map +1 -1
- package/dist/navigation.d.ts +16 -11
- package/dist/navigation.d.ts.map +1 -1
- package/dist/plid.d.ts +7 -9
- package/dist/plid.d.ts.map +1 -1
- package/dist/pool/entry.d.ts +8 -6
- package/dist/pool/entry.d.ts.map +1 -1
- package/dist/pool/query.d.ts +3 -4
- package/dist/pool/query.d.ts.map +1 -1
- package/dist/pool/spec.d.ts +33 -30
- package/dist/pool/spec.d.ts.map +1 -1
- package/dist/pool_entry.d.ts +2 -3
- package/dist/pool_entry.d.ts.map +1 -1
- package/dist/project_id.d.ts +1 -3
- package/dist/project_id.d.ts.map +1 -1
- package/dist/ref.d.ts +22 -23
- package/dist/ref.d.ts.map +1 -1
- package/dist/resource_types.d.ts +2 -3
- package/dist/resource_types.d.ts.map +1 -1
- package/dist/services/node_service_handlers.d.ts +1 -3
- package/dist/services/node_service_handlers.d.ts.map +1 -1
- package/dist/services/service_capabilities.d.ts +7 -9
- package/dist/services/service_capabilities.d.ts.map +1 -1
- package/dist/services/service_declarations.d.ts +2 -2
- package/dist/services/service_declarations.d.ts.map +1 -1
- package/dist/services/service_injectors.d.ts +7 -8
- package/dist/services/service_injectors.d.ts.map +1 -1
- package/dist/services/service_registry.d.ts +2 -4
- package/dist/services/service_registry.d.ts.map +1 -1
- package/dist/services/service_types.d.ts +24 -26
- package/dist/services/service_types.d.ts.map +1 -1
- package/dist/template/kind_selector.d.ts +9 -11
- package/dist/template/kind_selector.d.ts.map +1 -1
- package/dist/template/project_template_v1.d.ts +22 -20
- package/dist/template/project_template_v1.d.ts.map +1 -1
- package/dist/template/template_ref_form.d.ts +6 -5
- package/dist/template/template_ref_form.d.ts.map +1 -1
- package/dist/template/template_relocate.cjs +24 -3
- package/dist/template/template_relocate.cjs.map +1 -1
- package/dist/template/template_relocate.d.ts +8 -4
- package/dist/template/template_relocate.d.ts.map +1 -1
- package/dist/template/template_relocate.js +24 -3
- package/dist/template/template_relocate.js.map +1 -1
- package/dist/utag.d.ts +2 -4
- package/dist/utag.d.ts.map +1 -1
- package/dist/util.d.ts +2 -3
- package/dist/util.d.ts.map +1 -1
- package/dist/value_or_error.d.ts +2 -3
- package/dist/value_or_error.d.ts.map +1 -1
- package/package.json +7 -7
- package/src/drivers/pframe/spec/spec.ts +31 -0
- package/src/flags/block_flags.ts +1 -1
- package/src/template/template_relocate.test.ts +57 -0
- package/src/template/template_relocate.ts +32 -4
package/dist/navigation.d.ts
CHANGED
|
@@ -1,31 +1,36 @@
|
|
|
1
1
|
//#region src/navigation.d.ts
|
|
2
2
|
/** Block section visualized as items in left panel block overview */
|
|
3
|
-
type BlockSection = BlockSectionLink | BlockSectionDelimiter;
|
|
3
|
+
export type BlockSection = BlockSectionLink | BlockSectionDelimiter;
|
|
4
4
|
/** Tells the system that specific section from the main UI of this block should
|
|
5
5
|
* be opened */
|
|
6
|
-
type BlockSectionLink = {
|
|
6
|
+
export type BlockSectionLink = {
|
|
7
7
|
/** Potentially there may be multiple section types, i.e. for "+" rows and for
|
|
8
8
|
* sections directly opening html from the outputs. */
|
|
9
|
-
readonly type: "link";
|
|
10
|
-
|
|
11
|
-
readonly
|
|
12
|
-
|
|
9
|
+
readonly type: "link";
|
|
10
|
+
/** Internal block section identifier */
|
|
11
|
+
readonly href: `/${string}`;
|
|
12
|
+
/** Link visual appearance */
|
|
13
|
+
readonly appearance?: BlockSectionLinkAppearance;
|
|
14
|
+
/** Visible section title, can also be used in the window header. */
|
|
15
|
+
readonly label: string;
|
|
16
|
+
/** Optional text shown as a small badge next to the section */
|
|
13
17
|
readonly badge?: string;
|
|
14
18
|
};
|
|
15
19
|
/** Different variants for link section appearance */
|
|
16
|
-
type BlockSectionLinkAppearance =
|
|
20
|
+
export type BlockSectionLinkAppearance =
|
|
21
|
+
/** Shows a section of type `link` with a `+` icon and a certain specific style */
|
|
22
|
+
"add-section";
|
|
17
23
|
/** Create a horizontal line between sections */
|
|
18
|
-
type BlockSectionDelimiter = {
|
|
24
|
+
export type BlockSectionDelimiter = {
|
|
19
25
|
readonly type: "delimiter";
|
|
20
26
|
};
|
|
21
27
|
/**
|
|
22
28
|
* Part of the block state, representing current navigation information
|
|
23
29
|
* (i.e. currently selected section)
|
|
24
30
|
*/
|
|
25
|
-
type NavigationState<Href extends `/${string}` = `/${string}`> = {
|
|
31
|
+
export type NavigationState<Href extends `/${string}` = `/${string}`> = {
|
|
26
32
|
readonly href: Href;
|
|
27
33
|
};
|
|
28
|
-
declare const DefaultNavigationState: NavigationState;
|
|
34
|
+
export declare const DefaultNavigationState: NavigationState;
|
|
29
35
|
//#endregion
|
|
30
|
-
export { BlockSection, BlockSectionDelimiter, BlockSectionLink, BlockSectionLinkAppearance, DefaultNavigationState, NavigationState };
|
|
31
36
|
//# sourceMappingURL=navigation.d.ts.map
|
package/dist/navigation.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation.d.ts","names":[],"sources":["../src/navigation.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"navigation.d.ts","names":[],"sources":["../src/navigation.ts"],"mappings":";;YACY,eAAe,mBAAmB;;;YAIlC;;;WAGD;;WAGA;;WAGA,aAAa;;WAGb;;WAGA;;;YAIC;;;;YAKA;WACD;;;;;;YAOC,gBAAgB;WACjB,MAAM;;qBAGJ,wBAAwB"}
|
package/dist/plid.d.ts
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { Branded } from "@milaboratories/helpers";
|
|
3
|
-
|
|
4
3
|
//#region src/plid.d.ts
|
|
5
4
|
/** Number of raw bytes in the PlId. */
|
|
6
|
-
declare const PlIdBytes = 15;
|
|
5
|
+
export declare const PlIdBytes = 15;
|
|
7
6
|
/** Characters in string representation */
|
|
8
|
-
declare const PlIdLength = 24;
|
|
9
|
-
declare const PlId: z.ZodString;
|
|
10
|
-
type PlId = Branded<z.infer<typeof PlId>, "PlId">;
|
|
11
|
-
declare function uniquePlId(): PlId;
|
|
12
|
-
declare function plId(bytes: Uint8Array): PlId;
|
|
13
|
-
declare function digestPlId(data: string): Promise<PlId>;
|
|
7
|
+
export declare const PlIdLength = 24;
|
|
8
|
+
export declare const PlId: z.ZodString;
|
|
9
|
+
export type PlId = Branded<z.infer<typeof PlId>, "PlId">;
|
|
10
|
+
export declare function uniquePlId(): PlId;
|
|
11
|
+
export declare function plId(bytes: Uint8Array): PlId;
|
|
12
|
+
export declare function digestPlId(data: string): Promise<PlId>;
|
|
14
13
|
//#endregion
|
|
15
|
-
export { PlId, PlIdBytes, PlIdLength, digestPlId, plId, uniquePlId };
|
|
16
14
|
//# sourceMappingURL=plid.d.ts.map
|
package/dist/plid.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plid.d.ts","names":[],"sources":["../src/plid.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plid.d.ts","names":[],"sources":["../src/plid.ts"],"mappings":";;;;qBAKa;;qBAEA;qBAEA,MAAI,EAAA;YAIL,OAAO,QAAQ,EAAE,aAAa;wBAE1B,cAAc;wBAMd,KAAK,OAAO,aAAa;wBAKnB,WAAW,eAAe,QAAQ"}
|
package/dist/pool/entry.d.ts
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { PlRef } from "../ref.js";
|
|
2
|
-
|
|
3
2
|
//#region src/pool/entry.d.ts
|
|
4
3
|
/** Result pool entry */
|
|
5
|
-
type ResultPoolEntry<O> = {
|
|
6
|
-
/** Reference that can be passed to args to import the object in workflow */
|
|
4
|
+
export type ResultPoolEntry<O> = {
|
|
5
|
+
/** Reference that can be passed to args to import the object in workflow */
|
|
6
|
+
readonly ref: PlRef;
|
|
7
|
+
/** Object. Normally spec or PObject. */
|
|
7
8
|
readonly obj: O;
|
|
8
9
|
};
|
|
9
10
|
/** Collection of results from the result pool */
|
|
10
|
-
type ResultCollection<O> = {
|
|
11
|
-
/** List of results from the pool */
|
|
11
|
+
export type ResultCollection<O> = {
|
|
12
|
+
/** List of results from the pool */
|
|
13
|
+
readonly entries: ResultPoolEntry<O>[];
|
|
14
|
+
/** False means that current collection is not fully loaded due to some computations still taking place */
|
|
12
15
|
readonly isComplete: boolean;
|
|
13
16
|
};
|
|
14
17
|
//#endregion
|
|
15
|
-
export { ResultCollection, ResultPoolEntry };
|
|
16
18
|
//# sourceMappingURL=entry.d.ts.map
|
package/dist/pool/entry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entry.d.ts","names":[],"sources":["../../src/pool/entry.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"entry.d.ts","names":[],"sources":["../../src/pool/entry.ts"],"mappings":";;;YAGY,gBAAgB;;WAEjB,KAAK;;WAGL,KAAK;;;YAIJ,iBAAiB;;WAElB,SAAS,gBAAgB;;WAGzB"}
|
package/dist/pool/query.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AxisId } from "../drivers/pframe/spec/spec.js";
|
|
2
|
+
import "../drivers/index.js";
|
|
2
3
|
import { PObjectSpec } from "./spec.js";
|
|
3
|
-
|
|
4
4
|
//#region src/pool/query.d.ts
|
|
5
|
-
type PSpecPredicate = {
|
|
5
|
+
export type PSpecPredicate = {
|
|
6
6
|
type: "and" | "or";
|
|
7
7
|
operands: PSpecPredicate[];
|
|
8
8
|
} | {
|
|
@@ -26,7 +26,6 @@ type PSpecPredicate = {
|
|
|
26
26
|
type: "has_axes";
|
|
27
27
|
axes: Partial<AxisId>[];
|
|
28
28
|
};
|
|
29
|
-
declare function executePSpecPredicate(predicate: PSpecPredicate, spec: PObjectSpec): boolean;
|
|
29
|
+
export declare function executePSpecPredicate(predicate: PSpecPredicate, spec: PObjectSpec): boolean;
|
|
30
30
|
//#endregion
|
|
31
|
-
export { PSpecPredicate, executePSpecPredicate };
|
|
32
31
|
//# sourceMappingURL=query.d.ts.map
|
package/dist/pool/query.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","names":[],"sources":["../../src/pool/query.ts"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"query.d.ts","names":[],"sources":["../../src/pool/query.ts"],"mappings":";;;;YAIY;EAEN;EACA,UAAU;;EAGV;EACA,SAAS;;EAGT;EACA;;EAGA;EACA;;EAGA;EACA;EACA;;EAGA;EACA;EACA;;EAGA;EACA,MAAM,QAAQ;;wBAOJ,sBAAsB,WAAW,gBAAgB,MAAM"}
|
package/dist/pool/spec.d.ts
CHANGED
|
@@ -1,44 +1,48 @@
|
|
|
1
1
|
import { CanonicalizedJson } from "../json.js";
|
|
2
2
|
import { PColumn, PColumnSpec } from "../drivers/pframe/spec/spec.js";
|
|
3
3
|
import { JoinEntry } from "../drivers/pframe/table_calculate.js";
|
|
4
|
+
import "../drivers/index.js";
|
|
4
5
|
import { PlRef } from "../ref.js";
|
|
5
6
|
import { Branded } from "@milaboratories/helpers";
|
|
6
|
-
|
|
7
7
|
//#region src/pool/spec.d.ts
|
|
8
8
|
/** Any object exported into the result pool by the block always have spec attached to it */
|
|
9
|
-
type PObjectSpec = {
|
|
10
|
-
/** PObject kind discriminator */
|
|
11
|
-
readonly
|
|
9
|
+
export type PObjectSpec = {
|
|
10
|
+
/** PObject kind discriminator */
|
|
11
|
+
readonly kind: string;
|
|
12
|
+
/** Name is common part of PObject identity */
|
|
13
|
+
readonly name: string;
|
|
14
|
+
/** Domain is a set of key-value pairs that can be used to identify the object */
|
|
12
15
|
readonly domain?: Record<string, string>;
|
|
13
16
|
/** Context domain provides additional axis/column identity that is matched
|
|
14
17
|
* by kinship rules (subset/superset/overlap) rather than exact equality */
|
|
15
|
-
readonly contextDomain?: Record<string, string>;
|
|
18
|
+
readonly contextDomain?: Record<string, string>;
|
|
19
|
+
/** Additional information attached to the object */
|
|
16
20
|
readonly annotations?: Record<string, string>;
|
|
17
21
|
};
|
|
18
|
-
type LocalPObjectKey = {
|
|
22
|
+
export type LocalPObjectKey = {
|
|
19
23
|
resolvePath: string[];
|
|
20
24
|
name: string;
|
|
21
25
|
};
|
|
22
|
-
type LocalPObjectId = Branded<CanonicalizedJson<LocalPObjectKey>, "LocalPObjectId">;
|
|
23
|
-
type GlobalPObjectKey = PlRef;
|
|
24
|
-
type GlobalPObjectId = Branded<CanonicalizedJson<GlobalPObjectKey>, "GlobalPObjectId">;
|
|
26
|
+
export type LocalPObjectId = Branded<CanonicalizedJson<LocalPObjectKey>, "LocalPObjectId">;
|
|
27
|
+
export type GlobalPObjectKey = PlRef;
|
|
28
|
+
export type GlobalPObjectId = Branded<CanonicalizedJson<GlobalPObjectKey>, "GlobalPObjectId">;
|
|
25
29
|
/** Stable PObject id */
|
|
26
|
-
type PObjectId = LocalPObjectId | GlobalPObjectId;
|
|
27
|
-
declare function isPObjectId(value: unknown): value is PObjectId;
|
|
28
|
-
declare function isPObjectKey(value: unknown): value is LocalPObjectKey | GlobalPObjectKey;
|
|
29
|
-
declare function createPObjectId(obj: LocalPObjectKey | GlobalPObjectKey): PObjectId;
|
|
30
|
-
declare function createLocalPObjectId(resolvePath: string[], name: string): PObjectId;
|
|
31
|
-
declare function isLocalPObjectId(value: unknown): value is LocalPObjectId;
|
|
32
|
-
declare function isLocalPObjectKey(value: unknown): value is LocalPObjectKey;
|
|
33
|
-
declare function createGlobalPObjectId(blockId: string, exportName: string): PObjectId;
|
|
34
|
-
declare function isGlobalPObjectKey(value: unknown): value is GlobalPObjectKey;
|
|
35
|
-
declare function isGlobalPObjectId(value: unknown): value is GlobalPObjectId;
|
|
30
|
+
export type PObjectId = LocalPObjectId | GlobalPObjectId;
|
|
31
|
+
export declare function isPObjectId(value: unknown): value is PObjectId;
|
|
32
|
+
export declare function isPObjectKey(value: unknown): value is LocalPObjectKey | GlobalPObjectKey;
|
|
33
|
+
export declare function createPObjectId(obj: LocalPObjectKey | GlobalPObjectKey): PObjectId;
|
|
34
|
+
export declare function createLocalPObjectId(resolvePath: string[], name: string): PObjectId;
|
|
35
|
+
export declare function isLocalPObjectId(value: unknown): value is LocalPObjectId;
|
|
36
|
+
export declare function isLocalPObjectKey(value: unknown): value is LocalPObjectKey;
|
|
37
|
+
export declare function createGlobalPObjectId(blockId: string, exportName: string): PObjectId;
|
|
38
|
+
export declare function isGlobalPObjectKey(value: unknown): value is GlobalPObjectKey;
|
|
39
|
+
export declare function isGlobalPObjectId(value: unknown): value is GlobalPObjectId;
|
|
36
40
|
/**
|
|
37
41
|
* Full PObject representation.
|
|
38
42
|
*
|
|
39
43
|
* @template Data type of the object referencing or describing the "data" part of the PObject
|
|
40
44
|
* */
|
|
41
|
-
interface PObject<Data> {
|
|
45
|
+
export interface PObject<Data> {
|
|
42
46
|
/** Fully rendered PObjects are assigned a stable identifier. */
|
|
43
47
|
readonly id: PObjectId;
|
|
44
48
|
/** PObject spec, allowing it to be found among other PObjects */
|
|
@@ -46,15 +50,14 @@ interface PObject<Data> {
|
|
|
46
50
|
/** A handle to data object */
|
|
47
51
|
readonly data: Data;
|
|
48
52
|
}
|
|
49
|
-
declare function isPObject<Data>(obj: unknown): obj is PObject<Data>;
|
|
50
|
-
declare function isPColumn<T>(obj: unknown): obj is PColumn<T>;
|
|
51
|
-
declare function isPColumnSpec(spec: PObjectSpec): spec is PColumnSpec;
|
|
52
|
-
declare function ensurePColumn<T>(obj: PObject<T>): PColumn<T>;
|
|
53
|
-
declare function mapPObjectData<D1, D2>(pObj: PColumn<D1>, cb: (d: D1) => D2): PColumn<D2>;
|
|
54
|
-
declare function mapPObjectData<D1, D2>(pObj: PColumn<D1> | undefined, cb: (d: D1) => D2): PColumn<D2> | undefined;
|
|
55
|
-
declare function mapPObjectData<D1, D2>(pObj: PObject<D1>, cb: (d: D1) => D2): PObject<D2>;
|
|
56
|
-
declare function mapPObjectData<D1, D2>(pObj: PObject<D1> | undefined, cb: (d: D1) => D2): PObject<D2> | undefined;
|
|
57
|
-
declare function extractAllColumns<D>(entry: JoinEntry<PColumn<D>>): PColumn<D>[];
|
|
53
|
+
export declare function isPObject<Data>(obj: unknown): obj is PObject<Data>;
|
|
54
|
+
export declare function isPColumn<T>(obj: unknown): obj is PColumn<T>;
|
|
55
|
+
export declare function isPColumnSpec(spec: PObjectSpec): spec is PColumnSpec;
|
|
56
|
+
export declare function ensurePColumn<T>(obj: PObject<T>): PColumn<T>;
|
|
57
|
+
export declare function mapPObjectData<D1, D2>(pObj: PColumn<D1>, cb: (d: D1) => D2): PColumn<D2>;
|
|
58
|
+
export declare function mapPObjectData<D1, D2>(pObj: PColumn<D1> | undefined, cb: (d: D1) => D2): PColumn<D2> | undefined;
|
|
59
|
+
export declare function mapPObjectData<D1, D2>(pObj: PObject<D1>, cb: (d: D1) => D2): PObject<D2>;
|
|
60
|
+
export declare function mapPObjectData<D1, D2>(pObj: PObject<D1> | undefined, cb: (d: D1) => D2): PObject<D2> | undefined;
|
|
61
|
+
export declare function extractAllColumns<D>(entry: JoinEntry<PColumn<D>>): PColumn<D>[];
|
|
58
62
|
//#endregion
|
|
59
|
-
export { GlobalPObjectId, GlobalPObjectKey, LocalPObjectId, LocalPObjectKey, PObject, PObjectId, PObjectSpec, createGlobalPObjectId, createLocalPObjectId, createPObjectId, ensurePColumn, extractAllColumns, isGlobalPObjectId, isGlobalPObjectKey, isLocalPObjectId, isLocalPObjectKey, isPColumn, isPColumnSpec, isPObject, isPObjectId, isPObjectKey, mapPObjectData };
|
|
60
63
|
//# sourceMappingURL=spec.d.ts.map
|
package/dist/pool/spec.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spec.d.ts","names":[],"sources":["../../src/pool/spec.ts"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"spec.d.ts","names":[],"sources":["../../src/pool/spec.ts"],"mappings":";;;;;;;;YAOY;;WAED;;WAGA;;WAGA,SAAS;;;WAIT,gBAAgB;;WAGhB,cAAc;;YAGb;EAAoB;EAAuB;;YAC3C,iBAAiB,QAAQ,kBAAkB;YAC3C,mBAAmB;YACnB,kBAAkB,QAAQ,kBAAkB;;YAE5C,YAAY,iBAAiB;wBAEzB,YAAY,iBAAiB,SAAS;wBAKtC,aAAa,iBAAiB,SAAS,kBAAkB;wBAIzD,gBAAgB,KAAK,kBAAkB,mBAAmB;wBAU1D,qBAAqB,uBAAuB,eAAe;wBAI3D,iBAAiB,iBAAiB,SAAS;wBAK3C,kBAAkB,iBAAiB,SAAS;wBAM5C,sBAAsB,iBAAiB,qBAAqB;wBAQ5D,mBAAmB,iBAAiB,SAAS;wBAK7C,kBAAkB,iBAAiB,SAAS;;;;;;iBAW3C,QAAQ;;WAEd,IAAI;;WAGJ,MAAM;;WAGN,MAAM;;wBAGD,UAAU,MAAM,eAAe,OAAO,QAAQ;wBAI9C,UAAU,GAAG,eAAe,OAAO,QAAQ;wBAI3C,cAAc,MAAM,cAAc,QAAQ;wBAI1C,cAAc,GAAG,KAAK,QAAQ,KAAK,QAAQ;wBAK3C,eAAe,IAAI,IAAI,MAAM,QAAQ,KAAK,KAAK,GAAG,OAAO,KAAK,QAAQ;wBACtE,eAAe,IAAI,IACjC,MAAM,QAAQ,iBACd,KAAK,GAAG,OAAO,KACd,QAAQ;wBACK,eAAe,IAAI,IAAI,MAAM,QAAQ,KAAK,KAAK,GAAG,OAAO,KAAK,QAAQ;wBACtE,eAAe,IAAI,IACjC,MAAM,QAAQ,iBACd,KAAK,GAAG,OAAO,KACd,QAAQ;wBAaK,kBAAkB,GAAG,OAAO,UAAU,QAAQ,MAAM,QAAQ"}
|
package/dist/pool_entry.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/pool_entry.d.ts
|
|
2
|
-
interface PoolEntry<K extends string = string, R extends {} = {}> extends Disposable {
|
|
2
|
+
export interface PoolEntry<K extends string = string, R extends {} = {}> extends Disposable {
|
|
3
3
|
/** Resource key, calculated using provided `calculateParamsKey` function */
|
|
4
4
|
readonly key: K;
|
|
5
5
|
/** Resource itself created by `createNewResource` function */
|
|
@@ -15,7 +15,7 @@ interface PoolEntry<K extends string = string, R extends {} = {}> extends Dispos
|
|
|
15
15
|
* Wraps a PoolEntry for use with `using`. Auto-calls `unref()` at end of scope
|
|
16
16
|
* unless `keep()` is called to transfer ownership to the caller.
|
|
17
17
|
*/
|
|
18
|
-
declare class PoolEntryGuard<K extends string = string, R extends {} = {}> implements Disposable {
|
|
18
|
+
export declare class PoolEntryGuard<K extends string = string, R extends {} = {}> implements Disposable {
|
|
19
19
|
readonly entry: PoolEntry<K, R>;
|
|
20
20
|
private kept;
|
|
21
21
|
constructor(entry: PoolEntry<K, R>);
|
|
@@ -26,5 +26,4 @@ declare class PoolEntryGuard<K extends string = string, R extends {} = {}> imple
|
|
|
26
26
|
[Symbol.dispose](): void;
|
|
27
27
|
}
|
|
28
28
|
//#endregion
|
|
29
|
-
export { PoolEntry, PoolEntryGuard };
|
|
30
29
|
//# sourceMappingURL=pool_entry.d.ts.map
|
package/dist/pool_entry.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pool_entry.d.ts","names":[],"sources":["../src/pool_entry.ts"],"mappings":";
|
|
1
|
+
{"version":3,"file":"pool_entry.d.ts","names":[],"sources":["../src/pool_entry.ts"],"mappings":";iBAAiB,UAAU,2BAA2B,2BAA2B;;WAEtE,KAAK;;WAGL,UAAU;;;;;;WAOV;;;;;;qBAOE,eAAe,2BAA2B,8BAA8B;WAG9D,OAAO,UAAU,GAAG;UAFjC;EAER,YAAqB,OAAO,UAAU,GAAG;MAErC,OAAO;MAIP,YAAY;;EAKhB,QAAQ,UAAU,GAAG;GAKpB,OAAO"}
|
package/dist/project_id.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Branded } from "./branding.js";
|
|
2
|
-
|
|
3
2
|
//#region src/project_id.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Opaque identifier for a project, safe to persist and reuse across sessions.
|
|
@@ -9,7 +8,6 @@ import { Branded } from "./branding.js";
|
|
|
9
8
|
* Absence of signature guarantees this ID cannot be used in transactions 'as-is',
|
|
10
9
|
* requiring the caller to operate with special types and helpers.
|
|
11
10
|
*/
|
|
12
|
-
type ProjectId = Branded<string, "ProjectId">;
|
|
11
|
+
export type ProjectId = Branded<string, "ProjectId">;
|
|
13
12
|
//#endregion
|
|
14
|
-
export { ProjectId };
|
|
15
13
|
//# sourceMappingURL=project_id.d.ts.map
|
package/dist/project_id.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project_id.d.ts","names":[],"sources":["../src/project_id.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"project_id.d.ts","names":[],"sources":["../src/project_id.ts"],"mappings":";;;;;;;;;;YAUY,YAAY"}
|
package/dist/ref.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { AxisQualification } from "./drivers/pframe/spec/selectors.js";
|
|
2
2
|
import { PObjectId } from "./pool/spec.js";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
5
4
|
//#region src/ref.d.ts
|
|
6
|
-
declare const PlRef: z.ZodReadonly<z.ZodObject<{
|
|
5
|
+
export declare const PlRef: z.ZodReadonly<z.ZodObject<{
|
|
7
6
|
__isRef: z.ZodLiteral<true>;
|
|
8
7
|
blockId: z.ZodString;
|
|
9
8
|
name: z.ZodString;
|
|
@@ -19,22 +18,23 @@ declare const PlRef: z.ZodReadonly<z.ZodObject<{
|
|
|
19
18
|
name: string;
|
|
20
19
|
requireEnrichments?: true | undefined;
|
|
21
20
|
}>>;
|
|
22
|
-
type PlRef = z.infer<typeof PlRef>;
|
|
21
|
+
export type PlRef = z.infer<typeof PlRef>;
|
|
23
22
|
/** @deprecated use {@link PlRef} */
|
|
24
|
-
type Ref = PlRef;
|
|
23
|
+
export type Ref = PlRef;
|
|
25
24
|
/**
|
|
26
25
|
* Type guard to check if a value is a PlRef.
|
|
27
26
|
*
|
|
28
27
|
* @param value - The value to check.
|
|
29
28
|
* @returns True if the value is a PlRef, false otherwise.
|
|
30
29
|
*/
|
|
31
|
-
declare function isPlRef(value: unknown): value is PlRef;
|
|
30
|
+
export declare function isPlRef(value: unknown): value is PlRef;
|
|
32
31
|
/** Standard way how to communicate possible connections given specific
|
|
33
32
|
* requirements for incoming data. */
|
|
34
|
-
type Option = {
|
|
33
|
+
export type Option = {
|
|
35
34
|
/** Fully rendered reference to be assigned for the intended field in block's
|
|
36
35
|
* args */
|
|
37
|
-
readonly ref: PlRef;
|
|
36
|
+
readonly ref: PlRef;
|
|
37
|
+
/** Label to be present for the user in i.e. drop-down list */
|
|
38
38
|
readonly label: string;
|
|
39
39
|
};
|
|
40
40
|
/**
|
|
@@ -44,7 +44,7 @@ type Option = {
|
|
|
44
44
|
* @param name - The name of the reference.
|
|
45
45
|
* @param requireEnrichments - Whether the reference requires enrichments.
|
|
46
46
|
*/
|
|
47
|
-
declare function createPlRef(blockId: string, name: string, requireEnrichments?: boolean): PlRef;
|
|
47
|
+
export declare function createPlRef(blockId: string, name: string, requireEnrichments?: boolean): PlRef;
|
|
48
48
|
/**
|
|
49
49
|
* Creates a new PlRef based on an existing one, explicitly setting (default) or removing the
|
|
50
50
|
* requireEnrichments property.
|
|
@@ -54,24 +54,24 @@ declare function createPlRef(blockId: string, name: string, requireEnrichments?:
|
|
|
54
54
|
* to the returned PlRef. If false, the `requireEnrichments` property is removed. Defaults to true.
|
|
55
55
|
* @returns A new PlRef object with the `requireEnrichments` property set or removed accordingly.
|
|
56
56
|
*/
|
|
57
|
-
declare function withEnrichments(ref: PlRef, requireEnrichments?: boolean): PlRef;
|
|
57
|
+
export declare function withEnrichments(ref: PlRef, requireEnrichments?: boolean): PlRef;
|
|
58
58
|
/** Primary dataset reference with an optional filter. */
|
|
59
|
-
type PrimaryRef = {
|
|
59
|
+
export type PrimaryRef = {
|
|
60
60
|
readonly __isPrimaryRef: "v1";
|
|
61
61
|
readonly column: PlRef;
|
|
62
62
|
readonly filter?: PlRef;
|
|
63
63
|
};
|
|
64
|
-
declare function isPrimaryRef(value: unknown): value is PrimaryRef;
|
|
65
|
-
declare function createPrimaryRef(column: PlRef, filter?: PlRef): PrimaryRef;
|
|
64
|
+
export declare function isPrimaryRef(value: unknown): value is PrimaryRef;
|
|
65
|
+
export declare function createPrimaryRef(column: PlRef, filter?: PlRef): PrimaryRef;
|
|
66
66
|
/** Block args accept either form — backward compatible. */
|
|
67
|
-
type DatasetInput = PlRef | PrimaryRef;
|
|
67
|
+
export type DatasetInput = PlRef | PrimaryRef;
|
|
68
68
|
/** Many-to-one linker hop. */
|
|
69
|
-
type EnrichmentLinkerStep = {
|
|
69
|
+
export type EnrichmentLinkerStep = {
|
|
70
70
|
readonly type: "linker";
|
|
71
71
|
readonly linker: PObjectId;
|
|
72
72
|
};
|
|
73
73
|
/** Step from primary to hit. `path[0]` applied first. */
|
|
74
|
-
type EnrichmentStep = EnrichmentLinkerStep;
|
|
74
|
+
export type EnrichmentStep = EnrichmentLinkerStep;
|
|
75
75
|
/**
|
|
76
76
|
* Enrichment column reached via {@link path} linker hops; omitted means zero-hop.
|
|
77
77
|
* `hit` and `path[].linker` are global-form {@link PObjectId}s
|
|
@@ -79,27 +79,26 @@ type EnrichmentStep = EnrichmentLinkerStep;
|
|
|
79
79
|
* to a PlRef before resolving. For a prerun-sourced hop, supply a resolved
|
|
80
80
|
* `{spec, data}` map in place of the id — `tableBuilder` accepts both.
|
|
81
81
|
*/
|
|
82
|
-
type EnrichmentRef = {
|
|
82
|
+
export type EnrichmentRef = {
|
|
83
83
|
readonly __isEnrichment: "v1";
|
|
84
84
|
readonly hit: PObjectId;
|
|
85
85
|
readonly path?: readonly EnrichmentStep[];
|
|
86
86
|
readonly qualifications?: readonly AxisQualification[];
|
|
87
87
|
};
|
|
88
|
-
declare function isEnrichmentRef(value: unknown): value is EnrichmentRef;
|
|
89
|
-
type CreateEnrichmentRefOptions = {
|
|
88
|
+
export declare function isEnrichmentRef(value: unknown): value is EnrichmentRef;
|
|
89
|
+
export type CreateEnrichmentRefOptions = {
|
|
90
90
|
readonly path?: readonly EnrichmentStep[];
|
|
91
91
|
readonly qualifications?: readonly AxisQualification[];
|
|
92
92
|
};
|
|
93
|
-
declare function createEnrichmentRef(hit: PObjectId, options?: CreateEnrichmentRefOptions): EnrichmentRef;
|
|
93
|
+
export declare function createEnrichmentRef(hit: PObjectId, options?: CreateEnrichmentRefOptions): EnrichmentRef;
|
|
94
94
|
/** {@link EnrichmentRef} plus the export header label. */
|
|
95
|
-
type LabeledEnrichmentRef = {
|
|
95
|
+
export type LabeledEnrichmentRef = {
|
|
96
96
|
readonly ref: EnrichmentRef;
|
|
97
97
|
readonly label: string;
|
|
98
98
|
};
|
|
99
99
|
/** Auto-attached enrichment payload; not user-picked. */
|
|
100
|
-
type LabeledEnrichmentRefs = readonly LabeledEnrichmentRef[];
|
|
100
|
+
export type LabeledEnrichmentRefs = readonly LabeledEnrichmentRef[];
|
|
101
101
|
/** Compare two PlRefs and returns true if they are qual */
|
|
102
|
-
declare function plRefsEqual(ref1: PlRef, ref2: PlRef, ignoreEnrichments?: boolean): boolean;
|
|
102
|
+
export declare function plRefsEqual(ref1: PlRef, ref2: PlRef, ignoreEnrichments?: boolean): boolean;
|
|
103
103
|
//#endregion
|
|
104
|
-
export { CreateEnrichmentRefOptions, DatasetInput, EnrichmentLinkerStep, EnrichmentRef, EnrichmentStep, LabeledEnrichmentRef, LabeledEnrichmentRefs, Option, PlRef, PrimaryRef, Ref, createEnrichmentRef, createPlRef, createPrimaryRef, isEnrichmentRef, isPlRef, isPrimaryRef, plRefsEqual, withEnrichments };
|
|
105
104
|
//# sourceMappingURL=ref.d.ts.map
|
package/dist/ref.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ref.d.ts","names":[],"sources":["../src/ref.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ref.d.ts","names":[],"sources":["../src/ref.ts"],"mappings":";;;;qBAIa,OAAK,EAAA,YAAA,EAAA;;;;;;;;;;;;;;;;YAqBN,QAAQ,EAAE,aAAa;;YAEvB,MAAM;;;;;;;wBAQF,QAAQ,iBAAiB,SAAS;;;YAatC;;;WAGD,KAAK;;WAGL;;;;;;;;;wBAUK,YACd,iBACA,cACA,+BACC;;;;;;;;;;wBAyBa,gBAAgB,KAAK,OAAO,+BAAqC;;YAarE;WACD;WACA,QAAQ;WACR,SAAS;;wBAGJ,aAAa,iBAAiB,SAAS;wBASvC,iBAAiB,QAAQ,OAAO,SAAS,QAAQ;;YAMrD,eAAe,QAAQ;;YAGvB;WACD;WACA,QAAQ;;;YAIP,iBAAiB;;;;;;;;YASjB;WACD;WACA,KAAK;WACL,gBAAgB;WAChB,0BAA0B;;wBAGrB,gBAAgB,iBAAiB,SAAS;YAS9C;WACD,gBAAgB;WAChB,0BAA0B;;wBAGrB,oBACd,KAAK,WACL,UAAS,6BACR;;YAWS;WACD,KAAK;WACL;;;YAIC,iCAAiC;;wBAG7B,YAAY,MAAM,OAAO,MAAM,OAAO"}
|
package/dist/resource_types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
//#region src/resource_types.d.ts
|
|
2
2
|
/** Well-known resource type names used across the platform. */
|
|
3
|
-
declare const ResourceTypeName: {
|
|
3
|
+
export declare const ResourceTypeName: {
|
|
4
4
|
readonly StreamManager: "StreamManager";
|
|
5
5
|
readonly StdMap: "StdMap";
|
|
6
6
|
readonly StdMapSlash: "std/map";
|
|
@@ -42,7 +42,7 @@ declare const ResourceTypeName: {
|
|
|
42
42
|
readonly SharedEnvelope: "SharedEnvelope";
|
|
43
43
|
};
|
|
44
44
|
/** Resource type name prefix constants. */
|
|
45
|
-
declare const ResourceTypePrefix: {
|
|
45
|
+
export declare const ResourceTypePrefix: {
|
|
46
46
|
readonly Blob: "Blob/";
|
|
47
47
|
readonly LS: "LS/";
|
|
48
48
|
readonly WorkingDirectory: "WorkingDirectory/";
|
|
@@ -53,5 +53,4 @@ declare const ResourceTypePrefix: {
|
|
|
53
53
|
readonly StreamWorkdir: "StreamWorkdir/";
|
|
54
54
|
};
|
|
55
55
|
//#endregion
|
|
56
|
-
export { ResourceTypeName, ResourceTypePrefix };
|
|
57
56
|
//# sourceMappingURL=resource_types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource_types.d.ts","names":[],"sources":["../src/resource_types.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"resource_types.d.ts","names":[],"sources":["../src/resource_types.ts"],"mappings":";;qBACa;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;;qBAIW;WACX;WACA;WACA;WACA;WACA;WACA;WACA;WACA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { DriverKit } from "../driver_kit.js";
|
|
2
2
|
import { NodeServiceHandlerMap } from "./service_injectors.js";
|
|
3
|
-
|
|
4
3
|
//#region src/services/node_service_handlers.d.ts
|
|
5
|
-
declare function createNodeServiceHandlers(driverKit: DriverKit): NodeServiceHandlerMap;
|
|
4
|
+
export declare function createNodeServiceHandlers(driverKit: DriverKit): NodeServiceHandlerMap;
|
|
6
5
|
//#endregion
|
|
7
|
-
export { createNodeServiceHandlers };
|
|
8
6
|
//# sourceMappingURL=node_service_handlers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node_service_handlers.d.ts","names":[],"sources":["../../src/services/node_service_handlers.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"node_service_handlers.d.ts","names":[],"sources":["../../src/services/node_service_handlers.ts"],"mappings":";;;wBAiBgB,0BAA0B,WAAW,YAAY"}
|
|
@@ -1,33 +1,31 @@
|
|
|
1
1
|
import { Services } from "./service_declarations.js";
|
|
2
2
|
import { ServiceName, ServiceRequireFlags } from "./service_types.js";
|
|
3
3
|
import { SupportedRequirement } from "../flags/flag_utils.js";
|
|
4
|
-
|
|
5
4
|
//#region src/services/service_capabilities.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* All service-related `requires*` capability flag names, auto-derived from Services.
|
|
8
7
|
* Single source of truth — use this everywhere runtime capabilities are registered.
|
|
9
8
|
*/
|
|
10
|
-
declare const SERVICE_CAPABILITY_FLAGS: readonly SupportedRequirement[];
|
|
9
|
+
export declare const SERVICE_CAPABILITY_FLAGS: readonly SupportedRequirement[];
|
|
11
10
|
/**
|
|
12
11
|
* Register all service capability flags with the given callback.
|
|
13
12
|
* Works with both `RuntimeCapabilities.addSupportedRequirement`
|
|
14
13
|
* and `MiddleLayer.addRuntimeCapability`.
|
|
15
14
|
*/
|
|
16
|
-
declare function registerServiceCapabilities(register: (flag: SupportedRequirement, value: true) => void): void;
|
|
15
|
+
export declare function registerServiceCapabilities(register: (flag: SupportedRequirement, value: true) => void): void;
|
|
17
16
|
/**
|
|
18
17
|
* Resolve which services are required by the given feature flags.
|
|
19
18
|
* Accepts Record<string, unknown> so it works with both BlockCodeKnownFeatureFlags
|
|
20
19
|
* (from middle layer) and Zod-parsed records (from preload).
|
|
21
20
|
*/
|
|
22
|
-
declare function resolveRequiredServices(flags: Record<string, unknown> | undefined): ServiceName[];
|
|
23
|
-
type KnownServiceName = (typeof Services)[keyof typeof Services] & string;
|
|
24
|
-
declare function isKnownServiceName(name: string): name is KnownServiceName;
|
|
21
|
+
export declare function resolveRequiredServices(flags: Record<string, unknown> | undefined): ServiceName[];
|
|
22
|
+
export type KnownServiceName = (typeof Services)[keyof typeof Services] & string;
|
|
23
|
+
export declare function isKnownServiceName(name: string): name is KnownServiceName;
|
|
25
24
|
/** All service require flags set to true, auto-generated from Services.
|
|
26
25
|
* Used to distinguish service-related feature flags from non-service flags. */
|
|
27
|
-
declare const SERVICE_FEATURE_FLAGS: { readonly [K in keyof ServiceRequireFlags]-?: true };
|
|
26
|
+
export declare const SERVICE_FEATURE_FLAGS: { readonly [K in keyof ServiceRequireFlags]-?: true; };
|
|
28
27
|
/** Introspect method names on an instance (including prototype chain).
|
|
29
28
|
* Uses Object.getOwnPropertyDescriptor to avoid triggering getters. */
|
|
30
|
-
declare function getMethodNames<T extends object>(instance: T): string[];
|
|
29
|
+
export declare function getMethodNames<T extends object>(instance: T): string[];
|
|
31
30
|
//#endregion
|
|
32
|
-
export { KnownServiceName, SERVICE_CAPABILITY_FLAGS, SERVICE_FEATURE_FLAGS, getMethodNames, isKnownServiceName, registerServiceCapabilities, resolveRequiredServices };
|
|
33
31
|
//# sourceMappingURL=service_capabilities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service_capabilities.d.ts","names":[],"sources":["../../src/services/service_capabilities.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"service_capabilities.d.ts","names":[],"sources":["../../src/services/service_capabilities.ts"],"mappings":";;;;;;;;qBAQa,mCAAmC;;;;;;wBAShC,4BACd,WAAW,MAAM,sBAAsB;;;;;;wBAYzB,wBAAwB,OAAO,sCAAsC;YAOzE,2BAA2B,uBAAuB;wBAE9C,mBAAmB,eAAe,QAAQ;;;qBAM7C,mCAAmC,WAAW;;;wBAK3C,eAAe,kBAAkB,UAAU"}
|
|
@@ -6,13 +6,13 @@ import { PFrameSpecDriver } from "../drivers/pframe/spec_driver.js";
|
|
|
6
6
|
import { PFrameDriver, PFrameModelDriver } from "../drivers/pframe/driver.js";
|
|
7
7
|
import { ColumnsCollectionDriver, ColumnsCollectionDriverModel } from "../drivers/columns/columns_collection_driver.js";
|
|
8
8
|
import { ServiceTypesLike } from "./service_types.js";
|
|
9
|
+
import "../index.js";
|
|
9
10
|
//#region src/services/service_declarations.d.ts
|
|
10
|
-
declare const Services: {
|
|
11
|
+
export declare const Services: {
|
|
11
12
|
PFrameSpec: Branded<"pframeSpec", ServiceTypesLike<PFrameSpecDriver, PFrameSpecDriver, "wasm", PFrameSpecDriver, PFrameSpecDriver>>;
|
|
12
13
|
PFrame: Branded<"pframe", ServiceTypesLike<PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver, "node", PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver>>;
|
|
13
14
|
Dialog: Branded<"dialog", ServiceTypesLike<Record<string, never>, DialogService, "main", Record<string, never>, DialogService>>;
|
|
14
15
|
ColumnsCollection: Branded<"columnsCollection", ServiceTypesLike<ColumnsCollectionDriverModel, ColumnsCollectionDriverModel, "wasm", ColumnsCollectionDriver, ColumnsCollectionDriver>>;
|
|
15
16
|
};
|
|
16
17
|
//#endregion
|
|
17
|
-
export { Services };
|
|
18
18
|
//# sourceMappingURL=service_declarations.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service_declarations.d.ts","names":[],"sources":["../../src/services/service_declarations.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"service_declarations.d.ts","names":[],"sources":["../../src/services/service_declarations.ts"],"mappings":";;;;;;;;;;qBAkCa;EACX,YAAU,sBAAA,iBAAA,kBAAA,0BAAA,kBAAA;EA8BV,QAAM,kBAAA,iBAAA,kBAAA,iBA9BI,gBA8BJ,oBAAA,sBAAA,kBAAA,iBAAA,gBAAA,oBAAA;EAiBN,QAAM,kBAAA,iBAAA,uBAAA,uBAAA,uBAAA;EAMN,mBAAiB,6BAAA,iBAAA,8BAAA,sCAAA,yBAAA"}
|
|
@@ -2,33 +2,32 @@ import { Services } from "./service_declarations.js";
|
|
|
2
2
|
import { InferServiceKind, InferServiceUi, ServiceBrand, ServiceName } from "./service_types.js";
|
|
3
3
|
import { DriverKit } from "../driver_kit.js";
|
|
4
4
|
import { createNodeServiceHandlers } from "./node_service_handlers.js";
|
|
5
|
-
|
|
6
5
|
//#region src/services/service_injectors.d.ts
|
|
7
|
-
type NodeServiceKeys = { [K in keyof typeof Services]: InferServiceKind<ServiceBrand<(typeof Services)[K]>> extends "node" ? K : never }[keyof typeof Services];
|
|
6
|
+
type NodeServiceKeys = { [K in keyof typeof Services]: InferServiceKind<ServiceBrand<(typeof Services)[K]>> extends "node" ? K : never; }[keyof typeof Services];
|
|
8
7
|
/**
|
|
9
8
|
* Auto-derived map of node service keys to their UI-facing interfaces.
|
|
10
9
|
* Fulfilled by real driver wrappers in the worker. Main services are
|
|
11
10
|
* dispatched by the Electron main-process router and never reach this
|
|
12
11
|
* map; wasm services are instantiated locally on each consumer.
|
|
13
12
|
*/
|
|
14
|
-
type NodeServiceHandlerMap = { [K in NodeServiceKeys]: InferServiceUi<ServiceBrand<(typeof Services)[K]
|
|
13
|
+
export type NodeServiceHandlerMap = { [K in NodeServiceKeys]: InferServiceUi<ServiceBrand<(typeof Services)[K]>>; };
|
|
15
14
|
/**
|
|
16
15
|
* Resolve the worker-side handler object for a given service ID. Caches
|
|
17
16
|
* per DriverKit reference. Called from the worker's IPC dispatch path.
|
|
18
17
|
*/
|
|
19
|
-
declare function resolveNodeServiceHandler(driverKit: DriverKit, serviceId: ServiceName): NodeServiceHandlerMap[keyof NodeServiceHandlerMap] | null;
|
|
18
|
+
export declare function resolveNodeServiceHandler(driverKit: DriverKit, serviceId: ServiceName): NodeServiceHandlerMap[keyof NodeServiceHandlerMap] | null;
|
|
20
19
|
/**
|
|
21
20
|
* UI-side method names per service. Drives ServiceProxy forwarder
|
|
22
21
|
* construction in the renderer.
|
|
23
22
|
*/
|
|
24
|
-
declare const SERVICE_METHOD_MAP: Readonly<Record<string, string[]>>;
|
|
23
|
+
export declare const SERVICE_METHOD_MAP: Readonly<Record<string, string[]>>;
|
|
25
24
|
/**
|
|
26
25
|
* Model-side method names per service. Drives the workflow VM bridge
|
|
27
26
|
* (see pl-middle-layer js_render).
|
|
28
27
|
*/
|
|
29
|
-
declare const MODEL_SERVICE_METHOD_MAP: Readonly<Record<string, string[]>>;
|
|
28
|
+
export declare const MODEL_SERVICE_METHOD_MAP: Readonly<Record<string, string[]>>;
|
|
30
29
|
/** Build service info for a block from its feature flags. */
|
|
31
|
-
declare function buildServiceInfo(featureFlags: Record<string, unknown>): Record<ServiceName, string[]>;
|
|
30
|
+
export declare function buildServiceInfo(featureFlags: Record<string, unknown>): Record<ServiceName, string[]>;
|
|
32
31
|
//#endregion
|
|
33
|
-
export {
|
|
32
|
+
export { createNodeServiceHandlers };
|
|
34
33
|
//# sourceMappingURL=service_injectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service_injectors.d.ts","names":[],"sources":["../../src/services/service_injectors.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"service_injectors.d.ts","names":[],"sources":["../../src/services/service_injectors.ts"],"mappings":";;;;;KAmBK,qBACF,kBAAkB,WAAW,iBAAiB,qBAAqB,UAAU,sBAC1E,0BAES;;;;;;;YAQH,2BACT,KAAK,kBAAkB,eAAe,qBAAqB,UAAU;;;;;wBAkBxD,0BACd,WAAW,WACX,WAAW,cACV,4BAA4B;;;;;qBAuBlB,oBAAoB,SAAS;;;;;qBAO7B,0BAA0B,SAAS;;wBAIhC,iBACd,cAAc,0BACb,OAAO"}
|