@platforma-open/milaboratories.antibody-variant-designer.block 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/block-pack/main.plj.gz +0 -0
- package/block-pack/manifest.json +1 -1
- package/block-pack/model.json +1 -1
- package/block-pack/published.json +1 -1
- package/block-pack/ui.tgz +0 -0
- package/dist/AGENTS.d.ts +521 -475
- package/dist/AGENTS.d.ts.map +1 -1
- package/dist/index.d.ts +521 -475
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +900 -308
- package/dist/index.js.map +1 -1
- package/package.json +11 -11
package/dist/AGENTS.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
//#endregion
|
|
2
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
3
|
-
//#region src/author_marker.d.ts
|
|
2
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/author_marker.d.ts
|
|
4
3
|
/** Structure to help resolve conflicts if multiple participants writes to
|
|
5
4
|
* the same state */
|
|
6
5
|
interface AuthorMarker {
|
|
@@ -11,6 +10,33 @@ interface AuthorMarker {
|
|
|
11
10
|
localVersion: number;
|
|
12
11
|
}
|
|
13
12
|
//#endregion
|
|
13
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/interfaces.d.ts
|
|
14
|
+
/**
|
|
15
|
+
* Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
|
|
16
|
+
*/
|
|
17
|
+
interface BlobLike {
|
|
18
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
19
|
+
readonly size: number;
|
|
20
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
|
|
21
|
+
readonly type: string;
|
|
22
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
23
|
+
text(): Promise<string>;
|
|
24
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
|
|
25
|
+
slice(start?: number, end?: number): BlobLike;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Intended to match web.File, node.File, node-fetch.File, etc.
|
|
29
|
+
*/
|
|
30
|
+
interface FileLike extends BlobLike {
|
|
31
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
|
|
32
|
+
readonly lastModified: number;
|
|
33
|
+
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
34
|
+
readonly name: string;
|
|
35
|
+
}
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/branding.d.ts
|
|
38
|
+
type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B; };
|
|
39
|
+
type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
|
|
14
40
|
//#endregion
|
|
15
41
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts
|
|
16
42
|
type Primitive = string | number | symbol | bigint | boolean | null | undefined;
|
|
@@ -1433,82 +1459,115 @@ declare namespace external_d_exports {
|
|
|
1433
1459
|
export { AnyZodObject, AnyZodTuple, ArrayCardinality, ArrayKeys, AssertArray, AsyncParseReturnType, BRAND, CatchallInput, CatchallOutput, CustomErrorParams, DIRTY, DenormalizedError, EMPTY_PATH, Effect, EnumLike, EnumValues, ErrorMapCtx, FilterEnum, INVALID, Indices, InnerTypeOfFunction, InputTypeOfTuple, InputTypeOfTupleWithRest, IpVersion, IssueData, KeySchema, NEVER, OK, ObjectPair, OuterTypeOfFunction, OutputTypeOfTuple, OutputTypeOfTupleWithRest, ParseContext, ParseInput, ParseParams, ParsePath, ParsePathComponent, ParseResult, ParseReturnType, ParseStatus, PassthroughType, PreprocessEffect, Primitive, ProcessedCreateParams, RawCreateParams, RecordType, Refinement, RefinementCtx, RefinementEffect, SafeParseError, SafeParseReturnType, SafeParseSuccess, Scalars, ZodType as Schema, SomeZodObject, StringValidation, SuperRefinement, SyncParseReturnType, TransformEffect, TypeOf, UnknownKeysParam, Values, Writeable, ZodAny, ZodAnyDef, ZodArray, ZodArrayDef, ZodBigInt, ZodBigIntCheck, ZodBigIntDef, ZodBoolean, ZodBooleanDef, ZodBranded, ZodBrandedDef, ZodCatch, ZodCatchDef, ZodCustomIssue, ZodDate, ZodDateCheck, ZodDateDef, ZodDefault, ZodDefaultDef, ZodDiscriminatedUnion, ZodDiscriminatedUnionDef, ZodDiscriminatedUnionOption, ZodEffects, ZodEffectsDef, ZodEnum, ZodEnumDef, ZodError, ZodErrorMap, ZodFirstPartySchemaTypes, ZodFirstPartyTypeKind, ZodFormattedError, ZodFunction, ZodFunctionDef, ZodIntersection, ZodIntersectionDef, ZodInvalidArgumentsIssue, ZodInvalidDateIssue, ZodInvalidEnumValueIssue, ZodInvalidIntersectionTypesIssue, ZodInvalidLiteralIssue, ZodInvalidReturnTypeIssue, ZodInvalidStringIssue, ZodInvalidTypeIssue, ZodInvalidUnionDiscriminatorIssue, ZodInvalidUnionIssue, ZodIssue, ZodIssueBase, ZodIssueCode, ZodIssueOptionalMessage, ZodLazy, ZodLazyDef, ZodLiteral, ZodLiteralDef, ZodMap, ZodMapDef, ZodNaN, ZodNaNDef, ZodNativeEnum, ZodNativeEnumDef, ZodNever, ZodNeverDef, ZodNonEmptyArray, ZodNotFiniteIssue, ZodNotMultipleOfIssue, ZodNull, ZodNullDef, ZodNullable, ZodNullableDef, ZodNullableType, ZodNumber, ZodNumberCheck, ZodNumberDef, ZodObject, ZodObjectDef, ZodOptional, ZodOptionalDef, ZodOptionalType, ZodParsedType, ZodPipeline, ZodPipelineDef, ZodPromise, ZodPromiseDef, ZodRawShape, ZodReadonly, ZodReadonlyDef, ZodRecord, ZodRecordDef, ZodType as ZodSchema, ZodSet, ZodSetDef, ZodString, ZodStringCheck, ZodStringDef, ZodSymbol, ZodSymbolDef, ZodTooBigIssue, ZodTooSmallIssue, ZodEffects as ZodTransformer, ZodTuple, ZodTupleDef, ZodTupleItems, ZodType, ZodTypeAny, ZodTypeDef, ZodUndefined, ZodUndefinedDef, ZodUnion, ZodUnionDef, ZodUnionOptions, ZodUnknown, ZodUnknownDef, ZodUnrecognizedKeysIssue, ZodVoid, ZodVoidDef, addIssueToContext, anyType as any, arrayType as array, arrayOutputType, baseObjectInputType, baseObjectOutputType, bigIntType as bigint, booleanType as boolean, coerce, custom, dateType as date, datetimeRegex, errorMap as defaultErrorMap, deoptional, discriminatedUnionType as discriminatedUnion, effectsType as effect, enumType as enum, functionType as function, getErrorMap, getParsedType, TypeOf as infer, inferFlattenedErrors, inferFormattedError, input, instanceOfType as instanceof, intersectionType as intersection, isAborted, isAsync, isDirty, isValid, late, lazyType as lazy, literalType as literal, makeIssue, mapType as map, mergeTypes, nanType as nan, nativeEnumType as nativeEnum, neverType as never, noUnrecognized, nullType as null, nullableType as nullable, numberType as number, objectType as object, objectInputType, objectOutputType, objectUtil, oboolean, onumber, optionalType as optional, ostring, output, pipelineType as pipeline, preprocessType as preprocess, promiseType as promise, quotelessJson, recordType as record, setType as set, setErrorMap, strictObjectType as strictObject, stringType as string, symbolType as symbol, effectsType as transformer, tupleType as tuple, typeToFlattenedError, typecast, undefinedType as undefined, unionType as union, unknownType as unknown, util, voidType as void };
|
|
1434
1460
|
}
|
|
1435
1461
|
//#endregion
|
|
1436
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
/** Known Pl backend and ML errors. */
|
|
1458
|
-
type PlErrorLike = TypeOf<typeof BasePlErrorLike> & {
|
|
1459
|
-
cause?: ErrorLike;
|
|
1460
|
-
errors?: ErrorLike[];
|
|
1461
|
-
};
|
|
1462
|
-
declare const PlErrorLike: ZodType<PlErrorLike>;
|
|
1463
|
-
declare const BaseStandardErrorLike: ZodObject<{
|
|
1464
|
-
type: ZodLiteral<"StandardError">;
|
|
1465
|
-
name: ZodString;
|
|
1466
|
-
message: ZodString;
|
|
1467
|
-
stack: ZodOptional<ZodString>;
|
|
1462
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.d.ts
|
|
1463
|
+
/** Handle of locally downloaded blob. This handle is issued only after the
|
|
1464
|
+
* blob's content is downloaded locally, and ready for quick access. */
|
|
1465
|
+
type LocalBlobHandle = Branded$1<string, "LocalBlobHandle">;
|
|
1466
|
+
/** Handle of remote blob. This handle is issued as soon as the data becomes
|
|
1467
|
+
* available on the remote server. */
|
|
1468
|
+
type RemoteBlobHandle = Branded$1<string, "RemoteBlobHandle">;
|
|
1469
|
+
/** Being configured inside the output structure provides information about
|
|
1470
|
+
* blob's content and means to retrieve it when needed. */
|
|
1471
|
+
interface BlobHandleAndSize<H extends LocalBlobHandle | RemoteBlobHandle = LocalBlobHandle | RemoteBlobHandle> {
|
|
1472
|
+
/** Handle to retrieve block content using {@link BlobDriver.getContent()} */
|
|
1473
|
+
readonly handle: H;
|
|
1474
|
+
/** Blob size in bytes. */
|
|
1475
|
+
readonly size: number;
|
|
1476
|
+
}
|
|
1477
|
+
/** Range in bytes, from should be less than to. */
|
|
1478
|
+
declare const RangeBytes: ZodObject<{
|
|
1479
|
+
/** Included left border. */
|
|
1480
|
+
from: ZodNumber;
|
|
1481
|
+
/** Excluded right border. */
|
|
1482
|
+
to: ZodNumber;
|
|
1468
1483
|
}, "strip", ZodTypeAny, {
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
name: string;
|
|
1472
|
-
stack?: string | undefined;
|
|
1484
|
+
from: number;
|
|
1485
|
+
to: number;
|
|
1473
1486
|
}, {
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
name: string;
|
|
1477
|
-
stack?: string | undefined;
|
|
1487
|
+
from: number;
|
|
1488
|
+
to: number;
|
|
1478
1489
|
}>;
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1490
|
+
type RangeBytes = TypeOf<typeof RangeBytes>;
|
|
1491
|
+
/** Being configured inside the output structure provides information about
|
|
1492
|
+
* remote blob and means to retrieve it's content when needed. This structure
|
|
1493
|
+
* is created as soon as remote blob becomes available. */
|
|
1494
|
+
type RemoteBlobHandleAndSize = BlobHandleAndSize<RemoteBlobHandle>;
|
|
1495
|
+
/** Defines API of blob driver as it is seen from the block UI code. */
|
|
1496
|
+
interface BlobDriver {
|
|
1497
|
+
/**
|
|
1498
|
+
* Given the blob handle returns its content.
|
|
1499
|
+
* Depending on the handle type, content will be served from locally downloaded file,
|
|
1500
|
+
* or directly from remote platforma storage.
|
|
1501
|
+
*/
|
|
1502
|
+
getContent(handle: LocalBlobHandle | RemoteBlobHandle, range?: RangeBytes): Promise<Uint8Array>;
|
|
1503
|
+
}
|
|
1487
1504
|
//#endregion
|
|
1488
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1505
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/log.d.ts
|
|
1506
|
+
/** Prefix constants — single source of truth for handle format. */
|
|
1507
|
+
declare const LIVE_LOG_PREFIX = "log+live://log/";
|
|
1508
|
+
declare const READY_LOG_PREFIX = "log+ready://log/";
|
|
1509
|
+
/** Handle of the live logs of a program.
|
|
1510
|
+
* The resource that represents a log can be deleted,
|
|
1511
|
+
* in this case the handle should be refreshed. */
|
|
1512
|
+
type LiveLogHandle = Branded$1<`${typeof LIVE_LOG_PREFIX}${string}`, "LiveLogHandle">;
|
|
1513
|
+
/** Handle of the ready logs of a program. */
|
|
1514
|
+
type ReadyLogHandle = Branded$1<`${typeof READY_LOG_PREFIX}${string}`, "ReadyLogHandle">;
|
|
1515
|
+
/** Handle of logs. This handle should be passed
|
|
1516
|
+
* to the driver for retrieving logs. */
|
|
1517
|
+
type AnyLogHandle = LiveLogHandle | ReadyLogHandle;
|
|
1518
|
+
/** Driver to retrieve logs given log handle */
|
|
1519
|
+
interface LogsDriver {
|
|
1520
|
+
lastLines(
|
|
1521
|
+
/** A handle that was issued previously. */
|
|
1522
|
+
handle: AnyLogHandle,
|
|
1523
|
+
/** Allows client to limit total data sent from server. */
|
|
1524
|
+
lineCount: number,
|
|
1525
|
+
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
1526
|
+
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
1527
|
+
* If undefined, then starts from the end. */
|
|
1528
|
+
offsetBytes?: number,
|
|
1529
|
+
/** Is substring for line search pattern.
|
|
1530
|
+
* This option makes controller to send to the client only lines, that
|
|
1531
|
+
* have given substring. */
|
|
1532
|
+
searchStr?: string): Promise<StreamingApiResponse>;
|
|
1533
|
+
readText(
|
|
1534
|
+
/** A handle that was issued previously. */
|
|
1535
|
+
handle: AnyLogHandle,
|
|
1536
|
+
/** Allows client to limit total data sent from server. */
|
|
1537
|
+
lineCount: number,
|
|
1538
|
+
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
1539
|
+
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
1540
|
+
* If undefined of 0, then starts from the beginning. */
|
|
1541
|
+
offsetBytes?: number,
|
|
1542
|
+
/** Is substring for line search pattern.
|
|
1543
|
+
* This option makes controller to send to the client only lines, that
|
|
1544
|
+
* have given substring. */
|
|
1545
|
+
searchStr?: string): Promise<StreamingApiResponse>;
|
|
1546
|
+
}
|
|
1547
|
+
/** Response of the driver.
|
|
1548
|
+
* The caller should give a handle to retrieve it.
|
|
1549
|
+
* It can be OK or outdated, in which case the handle
|
|
1550
|
+
* should be issued again. */
|
|
1551
|
+
type StreamingApiResponse = StreamingApiResponseOk | StreamingApiResponseHandleOutdated;
|
|
1552
|
+
type StreamingApiResponseOk = {
|
|
1553
|
+
/** The handle don't have to be updated,
|
|
1554
|
+
* the response is OK. */
|
|
1555
|
+
shouldUpdateHandle: false;
|
|
1556
|
+
/** Whether the log can still grow or it's in a final state. */
|
|
1557
|
+
live: boolean;
|
|
1558
|
+
/** Data of the response, in bytes. */
|
|
1559
|
+
data: Uint8Array;
|
|
1560
|
+
/** Current size of the file. It can grow if it's still live. */
|
|
1561
|
+
size: number;
|
|
1562
|
+
/** Offset in bytes from the beginning of a file. */
|
|
1563
|
+
newOffset: number;
|
|
1497
1564
|
};
|
|
1498
|
-
/**
|
|
1499
|
-
type
|
|
1500
|
-
|
|
1501
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/navigation.d.ts
|
|
1502
|
-
/**
|
|
1503
|
-
* Part of the block state, representing current navigation information
|
|
1504
|
-
* (i.e. currently selected section)
|
|
1505
|
-
*/
|
|
1506
|
-
type NavigationState<Href extends `/${string}` = `/${string}`> = {
|
|
1507
|
-
readonly href: Href;
|
|
1565
|
+
/** The handle should be issued again, this one is done. */
|
|
1566
|
+
type StreamingApiResponseHandleOutdated = {
|
|
1567
|
+
shouldUpdateHandle: true;
|
|
1508
1568
|
};
|
|
1509
1569
|
//#endregion
|
|
1510
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1511
|
-
//#region src/json.d.ts
|
|
1570
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/json.d.ts
|
|
1512
1571
|
type JsonPrimitive = string | number | boolean | null;
|
|
1513
1572
|
type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
1514
1573
|
[key: string]: JsonValue;
|
|
@@ -1522,81 +1581,7 @@ type CanonicalizedJson<T = unknown> = JsonCompatible<T> extends never ? never :
|
|
|
1522
1581
|
__json_canonicalized: T;
|
|
1523
1582
|
};
|
|
1524
1583
|
//#endregion
|
|
1525
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1526
|
-
//#region src/block_state.d.ts
|
|
1527
|
-
/**
|
|
1528
|
-
* @template Args sets type of block arguments passed to the workflow
|
|
1529
|
-
* @template Outputs type of the outputs returned by the workflow and rendered
|
|
1530
|
-
* according to the output configuration specified for the block
|
|
1531
|
-
* @template UiState data that stores only UI related state, that is not passed
|
|
1532
|
-
* to the workflow
|
|
1533
|
-
* @template Href typed href to represent navigation state
|
|
1534
|
-
*/
|
|
1535
|
-
type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = {
|
|
1536
|
-
/** Block arguments passed to the workflow */
|
|
1537
|
-
args: Args;
|
|
1538
|
-
/** UI State persisted in the block state but not passed to the backend
|
|
1539
|
-
* template */
|
|
1540
|
-
ui: UiState;
|
|
1541
|
-
/** Outputs rendered with block config */
|
|
1542
|
-
outputs: Outputs;
|
|
1543
|
-
/** Current navigation state */
|
|
1544
|
-
navigationState: NavigationState<Href>;
|
|
1545
|
-
readonly author: AuthorMarker | undefined;
|
|
1546
|
-
};
|
|
1547
|
-
type BlockStateV3<_Data = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
|
|
1548
|
-
/** Block storage persisted in the block state */
|
|
1549
|
-
blockStorage: StringifiedJson;
|
|
1550
|
-
/** Outputs rendered with block config */
|
|
1551
|
-
outputs: Outputs;
|
|
1552
|
-
/** Current navigation state */
|
|
1553
|
-
navigationState: NavigationState<Href>;
|
|
1554
|
-
readonly author: AuthorMarker | undefined;
|
|
1555
|
-
};
|
|
1556
|
-
//#endregion
|
|
1557
|
-
//#endregion
|
|
1558
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/branding.d.ts
|
|
1559
|
-
//#region src/branding.d.ts
|
|
1560
|
-
type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B; };
|
|
1561
|
-
type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
|
|
1562
|
-
//#endregion
|
|
1563
|
-
//#endregion
|
|
1564
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/dialog/index.d.ts
|
|
1565
|
-
//#region src/dialog/index.d.ts
|
|
1566
|
-
/**
|
|
1567
|
-
* File filter passed to the native save dialog. Matches Electron's
|
|
1568
|
-
* `FileFilter` shape so desktop runtimes can forward it verbatim.
|
|
1569
|
-
*/
|
|
1570
|
-
interface FileFilter {
|
|
1571
|
-
name: string;
|
|
1572
|
-
extensions: string[];
|
|
1573
|
-
}
|
|
1574
|
-
/**
|
|
1575
|
-
* Options accepted by `Dialog.showSaveDialog`. The UI supplies only a
|
|
1576
|
-
* default file name; the main-process handler decides the default
|
|
1577
|
-
* directory (e.g. `~/Downloads`).
|
|
1578
|
-
*/
|
|
1579
|
-
interface ShowSaveDialogOptions {
|
|
1580
|
-
defaultFileName?: string;
|
|
1581
|
-
filters?: FileFilter[];
|
|
1582
|
-
title?: string;
|
|
1583
|
-
}
|
|
1584
|
-
/** Result of `Dialog.showSaveDialog`. */
|
|
1585
|
-
interface ShowSaveDialogResult {
|
|
1586
|
-
canceled: boolean;
|
|
1587
|
-
path?: string;
|
|
1588
|
-
}
|
|
1589
|
-
/**
|
|
1590
|
-
* UI-facing save-dialog service. Implemented by desktop runtimes that
|
|
1591
|
-
* can open a native file picker; absent in web/preview environments.
|
|
1592
|
-
*/
|
|
1593
|
-
interface DialogService {
|
|
1594
|
-
showSaveDialog(options: ShowSaveDialogOptions): Promise<ShowSaveDialogResult>;
|
|
1595
|
-
}
|
|
1596
|
-
//#endregion
|
|
1597
|
-
//#endregion
|
|
1598
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/pool_entry.d.ts
|
|
1599
|
-
//#region src/pool_entry.d.ts
|
|
1584
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/pool_entry.d.ts
|
|
1600
1585
|
interface PoolEntry<K extends string = string, R extends {} = {}> extends Disposable {
|
|
1601
1586
|
/** Resource key, calculated using provided `calculateParamsKey` function */
|
|
1602
1587
|
readonly key: K;
|
|
@@ -1610,8 +1595,7 @@ interface PoolEntry<K extends string = string, R extends {} = {}> extends Dispos
|
|
|
1610
1595
|
readonly unref: () => void;
|
|
1611
1596
|
}
|
|
1612
1597
|
//#endregion
|
|
1613
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1614
|
-
//#region src/drivers/pframe/table_common.d.ts
|
|
1598
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_common.d.ts
|
|
1615
1599
|
type PTableColumnSpecAxis = {
|
|
1616
1600
|
type: "axis";
|
|
1617
1601
|
id: AxisId;
|
|
@@ -1642,8 +1626,7 @@ type PTableColumnIdColumn = {
|
|
|
1642
1626
|
/** Unified PTable column identifier */
|
|
1643
1627
|
type PTableColumnId = PTableColumnIdAxis | PTableColumnIdColumn;
|
|
1644
1628
|
//#endregion
|
|
1645
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
1646
|
-
//#region src/drivers/pframe/data_types.d.ts
|
|
1629
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_types.d.ts
|
|
1647
1630
|
type PVectorDataInt = Int32Array;
|
|
1648
1631
|
type PVectorDataLong = BigInt64Array;
|
|
1649
1632
|
type PVectorDataFloat = Float32Array;
|
|
@@ -1738,9 +1721,7 @@ interface ExportPTableOptions {
|
|
|
1738
1721
|
headerNames?: string[];
|
|
1739
1722
|
}
|
|
1740
1723
|
//#endregion
|
|
1741
|
-
//#
|
|
1742
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.d.ts
|
|
1743
|
-
//#region src/drivers/pframe/data_info.d.ts
|
|
1724
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.d.ts
|
|
1744
1725
|
/**
|
|
1745
1726
|
* Represents a JavaScript representation of a value in a PColumn. Can be null, a number, or a string.
|
|
1746
1727
|
* These are the primitive types that can be stored directly in PColumns.
|
|
@@ -1832,65 +1813,33 @@ type PColumnValuesEntry = {
|
|
|
1832
1813
|
*/
|
|
1833
1814
|
type PColumnValues = PColumnValuesEntry[];
|
|
1834
1815
|
//#endregion
|
|
1835
|
-
//#region ../node_modules/.pnpm/@milaboratories+
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
*
|
|
1849
|
-
* Phantom keys provide compile-time discrimination only — two different brand
|
|
1850
|
-
* tags `B1 ≠ B2` make `Branded<T, B1>` and `Branded<T, B2>` mutually
|
|
1851
|
-
* incompatible regardless of whether the key is a symbol or a string.
|
|
1852
|
-
*/
|
|
1853
|
-
type Branded<T, B> = T & {
|
|
1854
|
-
readonly __brand: B;
|
|
1855
|
-
};
|
|
1856
|
-
//#endregion
|
|
1857
|
-
//#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.5/node_modules/@milaboratories/helpers/dist/types/index.d.ts
|
|
1858
|
-
//#region src/types/index.d.ts
|
|
1859
|
-
type Nil = null | undefined;
|
|
1860
|
-
//#endregion
|
|
1861
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/overridden.d.ts
|
|
1862
|
-
//#region src/drivers/pframe/spec/overridden.d.ts
|
|
1863
|
-
type SpecOverrides = Pick<PColumnSpec, "domain" | "contextDomain" | "annotations"> & {
|
|
1864
|
-
axesSpec?: AxisPatches;
|
|
1865
|
-
};
|
|
1866
|
-
/**
|
|
1867
|
-
* `source` can reference a leaf or a Filtered/Discovered id, but never another
|
|
1868
|
-
* Overridden id — there is no `Overridden<Overridden<...>>`. Repeated overrides
|
|
1869
|
-
* merge at the outer wrapper via {@link mergeSpecOverrides}.
|
|
1870
|
-
*/
|
|
1871
|
-
interface ColumnOverriddenKey {
|
|
1872
|
-
__isOverridden: true;
|
|
1873
|
-
source: Exclude<ColumnUniversalId, ColumnOverriddenId>;
|
|
1874
|
-
specOverrides: SpecOverrides;
|
|
1875
|
-
}
|
|
1876
|
-
type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "ColumnOverriddenId">;
|
|
1877
|
-
//#endregion
|
|
1878
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/ref.d.ts
|
|
1879
|
-
//#region src/ref.d.ts
|
|
1816
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/ref.d.ts
|
|
1817
|
+
/** One output of one block: the block and the name of the output in its output context. */
|
|
1818
|
+
declare const BlockOutput: ZodObject<{
|
|
1819
|
+
blockId: ZodString;
|
|
1820
|
+
name: ZodString;
|
|
1821
|
+
}, "strip", ZodTypeAny, {
|
|
1822
|
+
blockId: string;
|
|
1823
|
+
name: string;
|
|
1824
|
+
}, {
|
|
1825
|
+
blockId: string;
|
|
1826
|
+
name: string;
|
|
1827
|
+
}>;
|
|
1828
|
+
type BlockOutput = Readonly<TypeOf<typeof BlockOutput>>;
|
|
1880
1829
|
declare const PlRef$1: ZodReadonly<ZodObject<{
|
|
1881
|
-
__isRef: ZodLiteral<true>;
|
|
1882
1830
|
blockId: ZodString;
|
|
1883
1831
|
name: ZodString;
|
|
1832
|
+
__isRef: ZodLiteral<true>;
|
|
1884
1833
|
requireEnrichments: ZodOptional<ZodLiteral<true>>;
|
|
1885
1834
|
}, "strip", ZodTypeAny, {
|
|
1886
|
-
__isRef: true;
|
|
1887
1835
|
blockId: string;
|
|
1888
1836
|
name: string;
|
|
1837
|
+
__isRef: true;
|
|
1889
1838
|
requireEnrichments?: true | undefined;
|
|
1890
1839
|
}, {
|
|
1891
|
-
__isRef: true;
|
|
1892
1840
|
blockId: string;
|
|
1893
1841
|
name: string;
|
|
1842
|
+
__isRef: true;
|
|
1894
1843
|
requireEnrichments?: true | undefined;
|
|
1895
1844
|
}>>;
|
|
1896
1845
|
type PlRef$1 = TypeOf<typeof PlRef$1>;
|
|
@@ -1907,165 +1856,73 @@ type EnrichmentLinkerStep = {
|
|
|
1907
1856
|
};
|
|
1908
1857
|
/** Step from primary to hit. `path[0]` applied first. */
|
|
1909
1858
|
type EnrichmentStep = EnrichmentLinkerStep;
|
|
1910
|
-
/**
|
|
1911
|
-
* Enrichment column reached via {@link path} linker hops; omitted means zero-hop.
|
|
1912
|
-
* `hit` and `path[].linker` are global-form {@link PObjectId}s
|
|
1913
|
-
* (`canonicalize({ __isRef: true, blockId, name })`) which the workflow decodes
|
|
1914
|
-
* to a PlRef before resolving. For a prerun-sourced hop, supply a resolved
|
|
1915
|
-
* `{spec, data}` map in place of the id — `tableBuilder` accepts both.
|
|
1916
|
-
*/
|
|
1917
|
-
type EnrichmentRef = {
|
|
1918
|
-
readonly __isEnrichment: "v1";
|
|
1919
|
-
readonly hit: PObjectId;
|
|
1920
|
-
readonly path?: readonly EnrichmentStep[];
|
|
1921
|
-
readonly qualifications?: readonly AxisQualification[];
|
|
1922
|
-
};
|
|
1923
|
-
/** {@link EnrichmentRef} plus the export header label. */
|
|
1924
|
-
type LabeledEnrichmentRef = {
|
|
1925
|
-
readonly ref: EnrichmentRef;
|
|
1926
|
-
readonly label: string;
|
|
1927
|
-
};
|
|
1928
|
-
/** Auto-attached enrichment payload; not user-picked. */
|
|
1929
|
-
type LabeledEnrichmentRefs = readonly LabeledEnrichmentRef[];
|
|
1930
|
-
//#endregion
|
|
1931
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/interfaces.d.ts
|
|
1932
|
-
//#region src/drivers/interfaces.d.ts
|
|
1933
|
-
/**
|
|
1934
|
-
* Intended to match web.Blob, node.Blob, node-fetch.Blob, etc.
|
|
1935
|
-
*/
|
|
1936
|
-
interface BlobLike {
|
|
1937
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/size) */
|
|
1938
|
-
readonly size: number;
|
|
1939
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/type) */
|
|
1940
|
-
readonly type: string;
|
|
1941
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/text) */
|
|
1942
|
-
text(): Promise<string>;
|
|
1943
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Blob/slice) */
|
|
1944
|
-
slice(start?: number, end?: number): BlobLike;
|
|
1945
|
-
}
|
|
1946
|
-
/**
|
|
1947
|
-
* Intended to match web.File, node.File, node-fetch.File, etc.
|
|
1948
|
-
*/
|
|
1949
|
-
interface FileLike extends BlobLike {
|
|
1950
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/lastModified) */
|
|
1951
|
-
readonly lastModified: number;
|
|
1952
|
-
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
1953
|
-
readonly name: string;
|
|
1954
|
-
}
|
|
1955
|
-
//#endregion
|
|
1956
|
-
//#endregion
|
|
1957
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.d.ts
|
|
1958
|
-
//#region src/drivers/blob.d.ts
|
|
1959
|
-
/** Handle of locally downloaded blob. This handle is issued only after the
|
|
1960
|
-
* blob's content is downloaded locally, and ready for quick access. */
|
|
1961
|
-
type LocalBlobHandle = Branded$1<string, "LocalBlobHandle">;
|
|
1962
|
-
/** Handle of remote blob. This handle is issued as soon as the data becomes
|
|
1963
|
-
* available on the remote server. */
|
|
1964
|
-
type RemoteBlobHandle = Branded$1<string, "RemoteBlobHandle">;
|
|
1965
|
-
/** Being configured inside the output structure provides information about
|
|
1966
|
-
* blob's content and means to retrieve it when needed. */
|
|
1967
|
-
interface BlobHandleAndSize<H extends LocalBlobHandle | RemoteBlobHandle = LocalBlobHandle | RemoteBlobHandle> {
|
|
1968
|
-
/** Handle to retrieve block content using {@link BlobDriver.getContent()} */
|
|
1969
|
-
readonly handle: H;
|
|
1970
|
-
/** Blob size in bytes. */
|
|
1971
|
-
readonly size: number;
|
|
1972
|
-
}
|
|
1973
|
-
/** Range in bytes, from should be less than to. */
|
|
1974
|
-
declare const RangeBytes: ZodObject<{
|
|
1975
|
-
/** Included left border. */
|
|
1976
|
-
from: ZodNumber;
|
|
1977
|
-
/** Excluded right border. */
|
|
1978
|
-
to: ZodNumber;
|
|
1979
|
-
}, "strip", ZodTypeAny, {
|
|
1980
|
-
from: number;
|
|
1981
|
-
to: number;
|
|
1982
|
-
}, {
|
|
1983
|
-
from: number;
|
|
1984
|
-
to: number;
|
|
1985
|
-
}>;
|
|
1986
|
-
type RangeBytes = TypeOf<typeof RangeBytes>;
|
|
1987
|
-
/** Being configured inside the output structure provides information about
|
|
1988
|
-
* remote blob and means to retrieve it's content when needed. This structure
|
|
1989
|
-
* is created as soon as remote blob becomes available. */
|
|
1990
|
-
type RemoteBlobHandleAndSize = BlobHandleAndSize<RemoteBlobHandle>;
|
|
1991
|
-
/** Defines API of blob driver as it is seen from the block UI code. */
|
|
1992
|
-
interface BlobDriver {
|
|
1993
|
-
/**
|
|
1994
|
-
* Given the blob handle returns its content.
|
|
1995
|
-
* Depending on the handle type, content will be served from locally downloaded file,
|
|
1996
|
-
* or directly from remote platforma storage.
|
|
1997
|
-
*/
|
|
1998
|
-
getContent(handle: LocalBlobHandle | RemoteBlobHandle, range?: RangeBytes): Promise<Uint8Array>;
|
|
1999
|
-
}
|
|
2000
|
-
//#endregion
|
|
2001
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/log.d.ts
|
|
2002
|
-
//#region src/drivers/log.d.ts
|
|
2003
|
-
/** Prefix constants — single source of truth for handle format. */
|
|
2004
|
-
declare const LIVE_LOG_PREFIX = "log+live://log/";
|
|
2005
|
-
declare const READY_LOG_PREFIX = "log+ready://log/";
|
|
2006
|
-
/** Handle of the live logs of a program.
|
|
2007
|
-
* The resource that represents a log can be deleted,
|
|
2008
|
-
* in this case the handle should be refreshed. */
|
|
2009
|
-
type LiveLogHandle = Branded$1<`${typeof LIVE_LOG_PREFIX}${string}`, "LiveLogHandle">;
|
|
2010
|
-
/** Handle of the ready logs of a program. */
|
|
2011
|
-
type ReadyLogHandle = Branded$1<`${typeof READY_LOG_PREFIX}${string}`, "ReadyLogHandle">;
|
|
2012
|
-
/** Handle of logs. This handle should be passed
|
|
2013
|
-
* to the driver for retrieving logs. */
|
|
2014
|
-
type AnyLogHandle = LiveLogHandle | ReadyLogHandle;
|
|
2015
|
-
/** Driver to retrieve logs given log handle */
|
|
2016
|
-
interface LogsDriver {
|
|
2017
|
-
lastLines(
|
|
2018
|
-
/** A handle that was issued previously. */
|
|
2019
|
-
handle: AnyLogHandle,
|
|
2020
|
-
/** Allows client to limit total data sent from server. */
|
|
2021
|
-
lineCount: number,
|
|
2022
|
-
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
2023
|
-
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
2024
|
-
* If undefined, then starts from the end. */
|
|
2025
|
-
offsetBytes?: number,
|
|
2026
|
-
/** Is substring for line search pattern.
|
|
2027
|
-
* This option makes controller to send to the client only lines, that
|
|
2028
|
-
* have given substring. */
|
|
2029
|
-
searchStr?: string): Promise<StreamingApiResponse>;
|
|
2030
|
-
readText(
|
|
2031
|
-
/** A handle that was issued previously. */
|
|
2032
|
-
handle: AnyLogHandle,
|
|
2033
|
-
/** Allows client to limit total data sent from server. */
|
|
2034
|
-
lineCount: number,
|
|
2035
|
-
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
2036
|
-
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
2037
|
-
* If undefined of 0, then starts from the beginning. */
|
|
2038
|
-
offsetBytes?: number,
|
|
2039
|
-
/** Is substring for line search pattern.
|
|
2040
|
-
* This option makes controller to send to the client only lines, that
|
|
2041
|
-
* have given substring. */
|
|
2042
|
-
searchStr?: string): Promise<StreamingApiResponse>;
|
|
2043
|
-
}
|
|
2044
|
-
/** Response of the driver.
|
|
2045
|
-
* The caller should give a handle to retrieve it.
|
|
2046
|
-
* It can be OK or outdated, in which case the handle
|
|
2047
|
-
* should be issued again. */
|
|
2048
|
-
type StreamingApiResponse = StreamingApiResponseOk | StreamingApiResponseHandleOutdated;
|
|
2049
|
-
type StreamingApiResponseOk = {
|
|
2050
|
-
/** The handle don't have to be updated,
|
|
2051
|
-
* the response is OK. */
|
|
2052
|
-
shouldUpdateHandle: false;
|
|
2053
|
-
/** Whether the log can still grow or it's in a final state. */
|
|
2054
|
-
live: boolean;
|
|
2055
|
-
/** Data of the response, in bytes. */
|
|
2056
|
-
data: Uint8Array;
|
|
2057
|
-
/** Current size of the file. It can grow if it's still live. */
|
|
2058
|
-
size: number;
|
|
2059
|
-
/** Offset in bytes from the beginning of a file. */
|
|
2060
|
-
newOffset: number;
|
|
1859
|
+
/**
|
|
1860
|
+
* Enrichment column reached via {@link path} linker hops; omitted means zero-hop.
|
|
1861
|
+
* `hit` and `path[].linker` are global-form {@link PObjectId}s
|
|
1862
|
+
* (`canonicalize({ __isRef: true, blockId, name })`) which the workflow decodes
|
|
1863
|
+
* to a PlRef before resolving. For a prerun-sourced hop, supply a resolved
|
|
1864
|
+
* `{spec, data}` map in place of the id — `tableBuilder` accepts both.
|
|
1865
|
+
*/
|
|
1866
|
+
type EnrichmentRef = {
|
|
1867
|
+
readonly __isEnrichment: "v1";
|
|
1868
|
+
readonly hit: PObjectId;
|
|
1869
|
+
readonly path?: readonly EnrichmentStep[];
|
|
1870
|
+
readonly qualifications?: readonly AxisQualification[];
|
|
2061
1871
|
};
|
|
2062
|
-
/**
|
|
2063
|
-
type
|
|
2064
|
-
|
|
1872
|
+
/** {@link EnrichmentRef} plus the export header label. */
|
|
1873
|
+
type LabeledEnrichmentRef = {
|
|
1874
|
+
readonly ref: EnrichmentRef;
|
|
1875
|
+
readonly label: string;
|
|
1876
|
+
};
|
|
1877
|
+
/** Auto-attached enrichment payload; not user-picked. */
|
|
1878
|
+
type LabeledEnrichmentRefs = readonly LabeledEnrichmentRef[];
|
|
1879
|
+
//#endregion
|
|
1880
|
+
//#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.7/node_modules/@milaboratories/helpers/dist/types/brand.d.ts
|
|
1881
|
+
/**
|
|
1882
|
+
* Phantom-property brand. The key is a plain string literal rather than a
|
|
1883
|
+
* `unique symbol` so the resulting type stays fully nameable across packages.
|
|
1884
|
+
*
|
|
1885
|
+
* A `unique symbol` key forces TS, when forced to expand `Branded<T, B>` into
|
|
1886
|
+
* its structural form (e.g. inside `Record<BrandedUnion, V>` index signatures
|
|
1887
|
+
* during dts emit), to write out `typeof __brand` — a value-level reference
|
|
1888
|
+
* to the symbol. If the symbol's declaring module isn't reachable from the
|
|
1889
|
+
* compilation root, dts emit fails with TS4023 ("cannot be named"). Using a
|
|
1890
|
+
* string key sidesteps this entirely: `{ __brand: B }` is a plain structural
|
|
1891
|
+
* type, nameable from anywhere.
|
|
1892
|
+
*
|
|
1893
|
+
* Phantom keys provide compile-time discrimination only — two different brand
|
|
1894
|
+
* tags `B1 ≠ B2` make `Branded<T, B1>` and `Branded<T, B2>` mutually
|
|
1895
|
+
* incompatible regardless of whether the key is a symbol or a string.
|
|
1896
|
+
*/
|
|
1897
|
+
type Branded<T, B> = T & {
|
|
1898
|
+
readonly __brand: B;
|
|
2065
1899
|
};
|
|
2066
1900
|
//#endregion
|
|
2067
|
-
//#region ../node_modules/.pnpm/@milaboratories+
|
|
2068
|
-
|
|
1901
|
+
//#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.7/node_modules/@milaboratories/helpers/dist/types/index.d.ts
|
|
1902
|
+
type Nil = null | undefined;
|
|
1903
|
+
//#endregion
|
|
1904
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/column_value.d.ts
|
|
1905
|
+
/**
|
|
1906
|
+
* A picked value of a column, as a block passes it to its workflow: always text. A number cell
|
|
1907
|
+
* is picked as its decimal string (`String(cell)`), so a value picked from a number column and
|
|
1908
|
+
* the same value picked as text are one value.
|
|
1909
|
+
*/
|
|
1910
|
+
type ColumnValue = string;
|
|
1911
|
+
//#endregion
|
|
1912
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/column_references.d.ts
|
|
1913
|
+
/** A column a block's args reference, with the values of it they picked. */
|
|
1914
|
+
interface ColumnReference {
|
|
1915
|
+
/**
|
|
1916
|
+
* The column id in canonical form. A plain output is the bare
|
|
1917
|
+
* `{ __isRef, blockId, name }` id whether the args held it with `requireEnrichments` or
|
|
1918
|
+
* without, as an object or as a string.
|
|
1919
|
+
*/
|
|
1920
|
+
ref: ColumnUniversalId;
|
|
1921
|
+
/** Distinct picked values in the order first met; `null` when the args picked none. */
|
|
1922
|
+
values: null | ColumnValue[];
|
|
1923
|
+
}
|
|
1924
|
+
//#endregion
|
|
1925
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/column_filter.d.ts
|
|
2069
1926
|
/** Allows to search multiple columns in different contexts. */
|
|
2070
1927
|
interface ColumnFilter {
|
|
2071
1928
|
/** Match any of the types listed here. If undefined, will be ignored during
|
|
@@ -2083,9 +1940,7 @@ interface ColumnFilter {
|
|
|
2083
1940
|
readonly annotationPattern?: Record<string, string>;
|
|
2084
1941
|
}
|
|
2085
1942
|
//#endregion
|
|
2086
|
-
//#
|
|
2087
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/filter_spec.d.ts
|
|
2088
|
-
//#region src/drivers/pframe/filter_spec.d.ts
|
|
1943
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/filter_spec.d.ts
|
|
2089
1944
|
type FilterSpecNode<Leaf, CommonNode = {}, CommonLeaf = {}> = (CommonLeaf & Leaf) | (CommonNode & {
|
|
2090
1945
|
type: "not";
|
|
2091
1946
|
filter: FilterSpecNode<Leaf, CommonNode, CommonLeaf>;
|
|
@@ -2205,8 +2060,7 @@ type RootFilterSpec<Leaf extends FilterSpecLeaf<unknown> = FilterSpecLeaf<SUnive
|
|
|
2205
2060
|
type: "or" | "and";
|
|
2206
2061
|
}>;
|
|
2207
2062
|
//#endregion
|
|
2208
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
2209
|
-
//#region src/drivers/pframe/find_columns.d.ts
|
|
2063
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/find_columns.d.ts
|
|
2210
2064
|
/**
|
|
2211
2065
|
* Request to search among existing columns in the PFrame. Two filtering
|
|
2212
2066
|
* criteria can be used: (1) column ашдеук, to search for columns with
|
|
@@ -2232,9 +2086,7 @@ interface FindColumnsResponse {
|
|
|
2232
2086
|
readonly hits: PColumnIdAndSpec[];
|
|
2233
2087
|
}
|
|
2234
2088
|
//#endregion
|
|
2235
|
-
//#
|
|
2236
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/unique_values.d.ts
|
|
2237
|
-
//#region src/drivers/pframe/unique_values.d.ts
|
|
2089
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/unique_values.d.ts
|
|
2238
2090
|
/** Calculate set of unique values for a specific axis for the filtered set of records */
|
|
2239
2091
|
interface UniqueValuesRequest {
|
|
2240
2092
|
/** Target axis id */
|
|
@@ -2253,14 +2105,11 @@ interface UniqueValuesResponse {
|
|
|
2253
2105
|
readonly overflow: boolean;
|
|
2254
2106
|
}
|
|
2255
2107
|
//#endregion
|
|
2256
|
-
//#
|
|
2257
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/pframe.d.ts
|
|
2108
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/pframe.d.ts
|
|
2258
2109
|
/** Information required to instantiate a PFrame. */
|
|
2259
2110
|
type PFrameDef<Col> = Col[];
|
|
2260
2111
|
//#endregion
|
|
2261
|
-
//#
|
|
2262
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/driver.d.ts
|
|
2263
|
-
//#region src/drivers/pframe/driver.d.ts
|
|
2112
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/driver.d.ts
|
|
2264
2113
|
/** PFrame handle */
|
|
2265
2114
|
type PFrameHandle = Branded$1<string, "PFrame">;
|
|
2266
2115
|
/** PFrame handle */
|
|
@@ -2327,9 +2176,7 @@ interface PFrameDriver {
|
|
|
2327
2176
|
exportPTable(handle: PTableHandle, options: ExportPTableOptions): Promise<void>;
|
|
2328
2177
|
}
|
|
2329
2178
|
//#endregion
|
|
2330
|
-
//#
|
|
2331
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/ls.d.ts
|
|
2332
|
-
//#region src/drivers/ls.d.ts
|
|
2179
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/ls.d.ts
|
|
2333
2180
|
type ImportFileHandleUpload = `upload://upload/${string}`;
|
|
2334
2181
|
type ImportFileHandleIndex = `index://index/${string}`;
|
|
2335
2182
|
type ImportFileHandle = ImportFileHandleUpload | ImportFileHandleIndex;
|
|
@@ -2409,8 +2256,7 @@ interface LsDriver {
|
|
|
2409
2256
|
exportToPdf?(): Promise<void>;
|
|
2410
2257
|
}
|
|
2411
2258
|
//#endregion
|
|
2412
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
2413
|
-
//#region src/columns/column_selector.d.ts
|
|
2259
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/columns/column_selector.d.ts
|
|
2414
2260
|
/** Relaxed string matcher input: plain string, single matcher, or array of mixed. */
|
|
2415
2261
|
type RelaxedStringMatchers = string | StringMatcher | (string | StringMatcher)[];
|
|
2416
2262
|
/** Relaxed record matcher: values can be plain strings or relaxed matchers. */
|
|
@@ -2436,8 +2282,7 @@ interface RelaxedColumnSelector {
|
|
|
2436
2282
|
/** One or many relaxed column selectors; normalizes to MultiColumnSelector[]. */
|
|
2437
2283
|
type ColumnSelector = RelaxedColumnSelector | RelaxedColumnSelector[];
|
|
2438
2284
|
//#endregion
|
|
2439
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
2440
|
-
//#region src/drivers/columns/discover_columns_options.d.ts
|
|
2285
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/columns/discover_columns_options.d.ts
|
|
2441
2286
|
/**
|
|
2442
2287
|
* Axis matching behaviour applied to `discover` requests.
|
|
2443
2288
|
*
|
|
@@ -2484,8 +2329,7 @@ type ColumnsDiscoverOptions = DiscoverColumnsOptions;
|
|
|
2484
2329
|
*/
|
|
2485
2330
|
type ColumnsFilterOptions = Omit<DiscoverColumnsOptions, "mode" | "maxHops">;
|
|
2486
2331
|
//#endregion
|
|
2487
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
2488
|
-
//#region src/columns/types.d.ts
|
|
2332
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/columns/types.d.ts
|
|
2489
2333
|
/**
|
|
2490
2334
|
* Opaque sandbox/host accessor handle.
|
|
2491
2335
|
*
|
|
@@ -2565,8 +2409,7 @@ interface AccessorLike<Self extends AccessorLike<Self>> {
|
|
|
2565
2409
|
getDataAsJson<T = unknown>(): T | undefined;
|
|
2566
2410
|
}
|
|
2567
2411
|
//#endregion
|
|
2568
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
2569
|
-
//#region src/drivers/columns/columns_collection_driver.d.ts
|
|
2412
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/columns/columns_collection_driver.d.ts
|
|
2570
2413
|
/**
|
|
2571
2414
|
* Opaque host-owned handle for a `ColumnsCollection` instance. Issued by
|
|
2572
2415
|
* {@link ColumnsCollectionDriver.create}, refcounted by the driver, and
|
|
@@ -2624,13 +2467,14 @@ interface ColumnsCollectionDriverHost<A extends AccessorLike<A> = AccessorLike<a
|
|
|
2624
2467
|
*/
|
|
2625
2468
|
getSpecDriver(): PFrameSpecDriver;
|
|
2626
2469
|
/**
|
|
2627
|
-
* Resolve the
|
|
2470
|
+
* Resolve the {@link PObjectSpec} for a leaf {@link PObjectId}.
|
|
2628
2471
|
* Returns `undefined` when the id is not present in the active registry
|
|
2629
2472
|
* (e.g. handed to the driver via a `{kind:"ids"}` source whose underlying
|
|
2630
|
-
* column has since left the visible scope)
|
|
2631
|
-
* unwrapped by the caller — this method
|
|
2473
|
+
* column has since left the visible scope) or when its spec is not readable
|
|
2474
|
+
* yet. Override-wrapped ids are unwrapped by the caller — this method
|
|
2475
|
+
* only resolves the underlying leaf.
|
|
2632
2476
|
*/
|
|
2633
|
-
resolveSpec(id: PObjectId):
|
|
2477
|
+
resolveSpec(id: PObjectId): PObjectSpec | undefined;
|
|
2634
2478
|
}
|
|
2635
2479
|
/**
|
|
2636
2480
|
* Sandbox / UI view of the `ColumnsCollection` driver. Same methods as
|
|
@@ -2671,7 +2515,7 @@ interface ColumnsCollectionDriverModel {
|
|
|
2671
2515
|
*/
|
|
2672
2516
|
interface ColumnsCollectionDriver {
|
|
2673
2517
|
create(sources: ReadonlyArray<SerializedColumnsSource>, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
2674
|
-
isEmpty(handle: CollectionHandle): boolean;
|
|
2518
|
+
isEmpty(handle: CollectionHandle, host: ColumnsCollectionDriverHost): boolean;
|
|
2675
2519
|
isFinal(handle: CollectionHandle): boolean;
|
|
2676
2520
|
getColumns(handle: CollectionHandle, host: ColumnsCollectionDriverHost): ColumnUniversalId[];
|
|
2677
2521
|
addSource(handle: CollectionHandle, sources: ReadonlyArray<SerializedColumnsSource>, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
@@ -2679,9 +2523,7 @@ interface ColumnsCollectionDriver {
|
|
|
2679
2523
|
filter(handle: CollectionHandle, options: ColumnsFilterOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
2680
2524
|
}
|
|
2681
2525
|
//#endregion
|
|
2682
|
-
//#
|
|
2683
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_common.d.ts
|
|
2684
|
-
//#region src/drivers/pframe/query/query_common.d.ts
|
|
2526
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_common.d.ts
|
|
2685
2527
|
/**
|
|
2686
2528
|
* Structural type information for a single column: the axis value types (in
|
|
2687
2529
|
* order) and the single column value type. Mirrors the self-contained
|
|
@@ -3732,9 +3574,7 @@ interface QuerySpecOverride<Q, SO> {
|
|
|
3732
3574
|
override: SO;
|
|
3733
3575
|
}
|
|
3734
3576
|
//#endregion
|
|
3735
|
-
//#
|
|
3736
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_data.d.ts
|
|
3737
|
-
//#region src/drivers/pframe/query/query_data.d.ts
|
|
3577
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_data.d.ts
|
|
3738
3578
|
/**
|
|
3739
3579
|
* Column identifier with type specification.
|
|
3740
3580
|
*
|
|
@@ -3818,9 +3658,7 @@ type DataExprColumnRef = ExprColumnRef<number>;
|
|
|
3818
3658
|
type DataQueryExpression = DataExprColumnRef | DataExprAxisRef | ExprConstant | ExprNumericBinary<DataQueryExpression> | ExprNumericComparison<DataQueryExpression> | ExprNumericUnary<DataQueryExpression> | ExprStringEquals<DataQueryExpression> | ExprStringContains<DataQueryExpression> | ExprStringRegex<DataQueryExpression> | ExprStringContainsFuzzy<DataQueryExpression> | ExprIsNull<DataQueryExpression> | ExprFillNull<DataQueryExpression> | ExprLogicalUnary<DataQueryExpression> | ExprLogicalVariadic<DataQueryExpression> | ExprIsIn<DataQueryExpression, string> | ExprIsIn<DataQueryExpression, number> | ExprCast<DataQueryExpression> | ExprConditional<DataQueryExpression> | ExprRanking<DataQueryExpression, number, number>;
|
|
3819
3659
|
type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
|
|
3820
3660
|
//#endregion
|
|
3821
|
-
//#
|
|
3822
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec_driver.d.ts
|
|
3823
|
-
//#region src/drivers/pframe/spec_driver.d.ts
|
|
3661
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec_driver.d.ts
|
|
3824
3662
|
/** Matches a string value either exactly or by regex pattern */
|
|
3825
3663
|
type StringMatcher = {
|
|
3826
3664
|
type: "exact";
|
|
@@ -4038,8 +3876,7 @@ interface PFrameSpecDriver {
|
|
|
4038
3876
|
}): DataQueryBooleanExpression[];
|
|
4039
3877
|
}
|
|
4040
3878
|
//#endregion
|
|
4041
|
-
//#
|
|
4042
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.d.ts
|
|
3879
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.d.ts
|
|
4043
3880
|
/** Single axis selector */
|
|
4044
3881
|
interface SingleAxisSelector {
|
|
4045
3882
|
/** Axis name (required) */
|
|
@@ -4061,8 +3898,7 @@ interface AxisQualification {
|
|
|
4061
3898
|
readonly contextDomain: Record<string, string>;
|
|
4062
3899
|
}
|
|
4063
3900
|
//#endregion
|
|
4064
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4065
|
-
//#region src/drivers/pframe/spec/filtered_column.d.ts
|
|
3901
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/filtered_column.d.ts
|
|
4066
3902
|
/** Value of an axis filter */
|
|
4067
3903
|
type AxisFilterValue = number | string;
|
|
4068
3904
|
/** Axis filter by index */
|
|
@@ -4079,8 +3915,7 @@ interface ColumnFilteredKey {
|
|
|
4079
3915
|
}
|
|
4080
3916
|
type ColumnFilteredId = Branded<CanonicalizedJson<ColumnFilteredKey>, "ColumnFilteredId">;
|
|
4081
3917
|
//#endregion
|
|
4082
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4083
|
-
//#region src/drivers/pframe/query/query_spec.d.ts
|
|
3918
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_spec.d.ts
|
|
4084
3919
|
/**
|
|
4085
3920
|
* Join entry for spec-layer queries — the base join entry extended with
|
|
4086
3921
|
* per-axis domain constraints. Absent `qualifications` is equivalent to `[]`.
|
|
@@ -4150,9 +3985,7 @@ type SpecExprColumnRef = ExprColumnRef<ColumnUniversalId>;
|
|
|
4150
3985
|
type SpecQueryExpression = SpecExprColumnRef | SpecExprAxisRef | ExprConstant | ExprNumericBinary<SpecQueryExpression> | ExprNumericComparison<SpecQueryExpression> | ExprNumericUnary<SpecQueryExpression> | ExprStringEquals<SpecQueryExpression> | ExprStringContains<SpecQueryExpression> | ExprStringRegex<SpecQueryExpression> | ExprStringContainsFuzzy<SpecQueryExpression> | ExprIsNull<SpecQueryExpression> | ExprFillNull<SpecQueryExpression> | ExprLogicalUnary<SpecQueryExpression> | ExprLogicalVariadic<SpecQueryExpression> | ExprIsIn<SpecQueryExpression, string> | ExprIsIn<SpecQueryExpression, number> | ExprCast<SpecQueryExpression> | ExprConditional<SpecQueryExpression> | ExprRanking<SpecQueryExpression, SingleAxisSelector, PObjectId>;
|
|
4151
3986
|
type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
|
|
4152
3987
|
//#endregion
|
|
4153
|
-
//#
|
|
4154
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.d.ts
|
|
4155
|
-
//#region src/drivers/pframe/table_calculate.d.ts
|
|
3988
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.d.ts
|
|
4156
3989
|
/** Defines a terminal column node in the join request tree */
|
|
4157
3990
|
interface ColumnJoinEntry<Col> {
|
|
4158
3991
|
/** Node type discriminator */
|
|
@@ -4440,8 +4273,7 @@ type CalculateTableDataRequest<Col> = {
|
|
|
4440
4273
|
/** Response for {@link CalculateTableDataRequest} */
|
|
4441
4274
|
type CalculateTableDataResponse = FullPTableColumnData[];
|
|
4442
4275
|
//#endregion
|
|
4443
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4444
|
-
//#region src/pool/spec.d.ts
|
|
4276
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/pool/spec.d.ts
|
|
4445
4277
|
/** Any object exported into the result pool by the block always have spec attached to it */
|
|
4446
4278
|
type PObjectSpec = {
|
|
4447
4279
|
/** PObject kind discriminator */
|
|
@@ -4479,8 +4311,7 @@ interface PObject<Data> {
|
|
|
4479
4311
|
readonly data: Data;
|
|
4480
4312
|
}
|
|
4481
4313
|
//#endregion
|
|
4482
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4483
|
-
//#region src/drivers/pframe/spec/spec.d.ts
|
|
4314
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/spec.d.ts
|
|
4484
4315
|
declare const ValueType: {
|
|
4485
4316
|
readonly Int: "Int";
|
|
4486
4317
|
readonly Long: "Long";
|
|
@@ -4630,8 +4461,23 @@ interface AxisId {
|
|
|
4630
4461
|
/** Array of axis ids */
|
|
4631
4462
|
type AxesId = AxisId[];
|
|
4632
4463
|
//#endregion
|
|
4633
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4634
|
-
|
|
4464
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/overridden.d.ts
|
|
4465
|
+
type SpecOverrides = Pick<PColumnSpec, "domain" | "contextDomain" | "annotations"> & {
|
|
4466
|
+
axesSpec?: AxisPatches;
|
|
4467
|
+
};
|
|
4468
|
+
/**
|
|
4469
|
+
* `source` can reference a leaf or a Filtered/Discovered id, but never another
|
|
4470
|
+
* Overridden id — there is no `Overridden<Overridden<...>>`. Repeated overrides
|
|
4471
|
+
* merge at the outer wrapper via {@link mergeSpecOverrides}.
|
|
4472
|
+
*/
|
|
4473
|
+
interface ColumnOverriddenKey {
|
|
4474
|
+
__isOverridden: true;
|
|
4475
|
+
source: Exclude<ColumnUniversalId, ColumnOverriddenId>;
|
|
4476
|
+
specOverrides: SpecOverrides;
|
|
4477
|
+
}
|
|
4478
|
+
type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "ColumnOverriddenId">;
|
|
4479
|
+
//#endregion
|
|
4480
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/ids.d.ts
|
|
4635
4481
|
/**
|
|
4636
4482
|
* Per-axis patches keyed by positional index in the base spec's `axesSpec`.
|
|
4637
4483
|
*
|
|
@@ -4649,8 +4495,7 @@ type AxisPatches = Record<number, Partial<AxisSpec>>;
|
|
|
4649
4495
|
type SUniversalPColumnId = ColumnUniversalId;
|
|
4650
4496
|
type ColumnUniversalId = LocalPObjectId | GlobalPObjectId | ColumnFilteredId | ColumnDiscoveredId | ColumnOverriddenId;
|
|
4651
4497
|
//#endregion
|
|
4652
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4653
|
-
//#region src/drivers/pframe/spec/discovered_column.d.ts
|
|
4498
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/discovered_column.d.ts
|
|
4654
4499
|
interface ColumnDiscoveredKey {
|
|
4655
4500
|
__isDiscovered: true;
|
|
4656
4501
|
column: ColumnUniversalId;
|
|
@@ -4664,8 +4509,207 @@ type PathItem = {
|
|
|
4664
4509
|
column: ColumnUniversalId;
|
|
4665
4510
|
};
|
|
4666
4511
|
//#endregion
|
|
4667
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4668
|
-
|
|
4512
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/block_links/types.d.ts
|
|
4513
|
+
/**
|
|
4514
|
+
* How a reference an args holds fares against what the last run of the producing block exports:
|
|
4515
|
+
* - `ok` — the output is exported and holds every picked value, or the reference picks none;
|
|
4516
|
+
* - `pending` — the producer's run, or the column data, is still being computed;
|
|
4517
|
+
* - `notRun` — the producer has no last run, so it exports nothing yet;
|
|
4518
|
+
* - `unreadable` — the output is exported, but its values cannot be read: the spec does not list
|
|
4519
|
+
* them and the data is not JSON, or looking up or reading the column failed;
|
|
4520
|
+
* - `unavailable` — the output is not exported: the producer is deleted, is not above the block
|
|
4521
|
+
* holding the reference, or its run no longer exports the output;
|
|
4522
|
+
* - `missingValues` — the output is exported, but lacks the listed picked values.
|
|
4523
|
+
*/
|
|
4524
|
+
type LinkCheck = {
|
|
4525
|
+
type: "ok";
|
|
4526
|
+
} | {
|
|
4527
|
+
type: "pending";
|
|
4528
|
+
} | {
|
|
4529
|
+
type: "notRun";
|
|
4530
|
+
} | {
|
|
4531
|
+
type: "unreadable";
|
|
4532
|
+
} | {
|
|
4533
|
+
type: "unavailable";
|
|
4534
|
+
} | {
|
|
4535
|
+
type: "missingValues";
|
|
4536
|
+
values: ColumnValue[];
|
|
4537
|
+
};
|
|
4538
|
+
/** A column of another block that a block's args reference, with the values picked from it. */
|
|
4539
|
+
interface OutgoingReference extends ColumnReference {
|
|
4540
|
+
/** The block output the column is computed from. */
|
|
4541
|
+
producer: BlockOutput;
|
|
4542
|
+
}
|
|
4543
|
+
/**
|
|
4544
|
+
* How a reference fares against the last run of its producer, with the label of the column:
|
|
4545
|
+
* `pl7.app/label` of the exported column, or, when the last run does not export it, of the
|
|
4546
|
+
* column the producer prepares before it is run; `null` when neither has one.
|
|
4547
|
+
*/
|
|
4548
|
+
interface ExportVerdict {
|
|
4549
|
+
check: LinkCheck;
|
|
4550
|
+
columnLabel: null | string;
|
|
4551
|
+
}
|
|
4552
|
+
/** A reference one block's args hold to a column another block exports, as it was checked. */
|
|
4553
|
+
interface ColumnLink extends OutgoingReference, ExportVerdict {
|
|
4554
|
+
/** The block whose args hold the reference. */
|
|
4555
|
+
holderBlockId: string;
|
|
4556
|
+
}
|
|
4557
|
+
/**
|
|
4558
|
+
* Column links of block `blockId`: `dependencies` — outputs of other blocks its args reference,
|
|
4559
|
+
* its current args, else those of its last run; `dependents` — references the args of other
|
|
4560
|
+
* blocks hold to its outputs. Each is checked against the last run of the block exporting the
|
|
4561
|
+
* column. `labels` maps the other blocks the links name to their labels, for those that have one.
|
|
4562
|
+
*/
|
|
4563
|
+
interface BlockColumnLinks {
|
|
4564
|
+
blockId: string;
|
|
4565
|
+
dependencies: ColumnLink[];
|
|
4566
|
+
dependents: ColumnLink[];
|
|
4567
|
+
labels: Record<string, string>;
|
|
4568
|
+
}
|
|
4569
|
+
//#endregion
|
|
4570
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-error-like@1.12.11/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.d.ts
|
|
4571
|
+
declare const BasePlErrorLike: ZodObject<{
|
|
4572
|
+
type: ZodLiteral<"PlError">;
|
|
4573
|
+
name: ZodString;
|
|
4574
|
+
message: ZodString;
|
|
4575
|
+
/** The message with all details needed for SDK developers. */
|
|
4576
|
+
fullMessage: ZodOptional<ZodString>;
|
|
4577
|
+
stack: ZodOptional<ZodString>;
|
|
4578
|
+
}, "strip", ZodTypeAny, {
|
|
4579
|
+
type: "PlError";
|
|
4580
|
+
name: string;
|
|
4581
|
+
message: string;
|
|
4582
|
+
fullMessage?: string | undefined;
|
|
4583
|
+
stack?: string | undefined;
|
|
4584
|
+
}, {
|
|
4585
|
+
type: "PlError";
|
|
4586
|
+
name: string;
|
|
4587
|
+
message: string;
|
|
4588
|
+
fullMessage?: string | undefined;
|
|
4589
|
+
stack?: string | undefined;
|
|
4590
|
+
}>;
|
|
4591
|
+
/** Known Pl backend and ML errors. */
|
|
4592
|
+
type PlErrorLike = TypeOf<typeof BasePlErrorLike> & {
|
|
4593
|
+
cause?: ErrorLike;
|
|
4594
|
+
errors?: ErrorLike[];
|
|
4595
|
+
};
|
|
4596
|
+
declare const PlErrorLike: ZodType<PlErrorLike>;
|
|
4597
|
+
declare const BaseStandardErrorLike: ZodObject<{
|
|
4598
|
+
type: ZodLiteral<"StandardError">;
|
|
4599
|
+
name: ZodString;
|
|
4600
|
+
message: ZodString;
|
|
4601
|
+
stack: ZodOptional<ZodString>;
|
|
4602
|
+
}, "strip", ZodTypeAny, {
|
|
4603
|
+
type: "StandardError";
|
|
4604
|
+
name: string;
|
|
4605
|
+
message: string;
|
|
4606
|
+
stack?: string | undefined;
|
|
4607
|
+
}, {
|
|
4608
|
+
type: "StandardError";
|
|
4609
|
+
name: string;
|
|
4610
|
+
message: string;
|
|
4611
|
+
stack?: string | undefined;
|
|
4612
|
+
}>;
|
|
4613
|
+
/** Others unknown errors that could be thrown by the client. */
|
|
4614
|
+
type StandardErrorLike = TypeOf<typeof BaseStandardErrorLike> & {
|
|
4615
|
+
cause?: ErrorLike;
|
|
4616
|
+
errors?: ErrorLike[];
|
|
4617
|
+
};
|
|
4618
|
+
declare const StandardErrorLike: ZodType<StandardErrorLike>;
|
|
4619
|
+
declare const ErrorLike: ZodUnion<[ZodType<StandardErrorLike, ZodTypeDef, StandardErrorLike>, ZodType<PlErrorLike, ZodTypeDef, PlErrorLike>]>;
|
|
4620
|
+
type ErrorLike = TypeOf<typeof ErrorLike>;
|
|
4621
|
+
//#endregion
|
|
4622
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/common_types.d.ts
|
|
4623
|
+
type OutputWithStatus<T> = {
|
|
4624
|
+
ok: true;
|
|
4625
|
+
value: T;
|
|
4626
|
+
stable: boolean;
|
|
4627
|
+
} | {
|
|
4628
|
+
ok: false;
|
|
4629
|
+
errors: ErrorLike[];
|
|
4630
|
+
moreErrors: boolean;
|
|
4631
|
+
};
|
|
4632
|
+
/** Base type for block outputs */
|
|
4633
|
+
type BlockOutputsBase = Record<string, OutputWithStatus<unknown>>;
|
|
4634
|
+
//#endregion
|
|
4635
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/navigation.d.ts
|
|
4636
|
+
/**
|
|
4637
|
+
* Part of the block state, representing current navigation information
|
|
4638
|
+
* (i.e. currently selected section)
|
|
4639
|
+
*/
|
|
4640
|
+
type NavigationState<Href extends `/${string}` = `/${string}`> = {
|
|
4641
|
+
readonly href: Href;
|
|
4642
|
+
};
|
|
4643
|
+
//#endregion
|
|
4644
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/block_state.d.ts
|
|
4645
|
+
/**
|
|
4646
|
+
* @template Args sets type of block arguments passed to the workflow
|
|
4647
|
+
* @template Outputs type of the outputs returned by the workflow and rendered
|
|
4648
|
+
* according to the output configuration specified for the block
|
|
4649
|
+
* @template UiState data that stores only UI related state, that is not passed
|
|
4650
|
+
* to the workflow
|
|
4651
|
+
* @template Href typed href to represent navigation state
|
|
4652
|
+
*/
|
|
4653
|
+
type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = {
|
|
4654
|
+
/** Block arguments passed to the workflow */
|
|
4655
|
+
args: Args;
|
|
4656
|
+
/** UI State persisted in the block state but not passed to the backend
|
|
4657
|
+
* template */
|
|
4658
|
+
ui: UiState;
|
|
4659
|
+
/** Outputs rendered with block config */
|
|
4660
|
+
outputs: Outputs;
|
|
4661
|
+
/** Current navigation state */
|
|
4662
|
+
navigationState: NavigationState<Href>;
|
|
4663
|
+
readonly author: AuthorMarker | undefined;
|
|
4664
|
+
};
|
|
4665
|
+
type BlockStateV3<_Data = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
|
|
4666
|
+
/** Block storage persisted in the block state */
|
|
4667
|
+
blockStorage: StringifiedJson;
|
|
4668
|
+
/** Outputs rendered with block config */
|
|
4669
|
+
outputs: Outputs;
|
|
4670
|
+
/** Current navigation state */
|
|
4671
|
+
navigationState: NavigationState<Href>;
|
|
4672
|
+
readonly author: AuthorMarker | undefined;
|
|
4673
|
+
/**
|
|
4674
|
+
* Column links of the block: outputs of other blocks its args reference, and blocks whose args
|
|
4675
|
+
* reference its outputs. `undefined` in app versions that do not compute them.
|
|
4676
|
+
*/
|
|
4677
|
+
readonly columnLinks: BlockColumnLinks | undefined;
|
|
4678
|
+
};
|
|
4679
|
+
//#endregion
|
|
4680
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/dialog/index.d.ts
|
|
4681
|
+
/**
|
|
4682
|
+
* File filter passed to the native save dialog. Matches Electron's
|
|
4683
|
+
* `FileFilter` shape so desktop runtimes can forward it verbatim.
|
|
4684
|
+
*/
|
|
4685
|
+
interface FileFilter {
|
|
4686
|
+
name: string;
|
|
4687
|
+
extensions: string[];
|
|
4688
|
+
}
|
|
4689
|
+
/**
|
|
4690
|
+
* Options accepted by `Dialog.showSaveDialog`. The UI supplies only a
|
|
4691
|
+
* default file name; the main-process handler decides the default
|
|
4692
|
+
* directory (e.g. `~/Downloads`).
|
|
4693
|
+
*/
|
|
4694
|
+
interface ShowSaveDialogOptions {
|
|
4695
|
+
defaultFileName?: string;
|
|
4696
|
+
filters?: FileFilter[];
|
|
4697
|
+
title?: string;
|
|
4698
|
+
}
|
|
4699
|
+
/** Result of `Dialog.showSaveDialog`. */
|
|
4700
|
+
interface ShowSaveDialogResult {
|
|
4701
|
+
canceled: boolean;
|
|
4702
|
+
path?: string;
|
|
4703
|
+
}
|
|
4704
|
+
/**
|
|
4705
|
+
* UI-facing save-dialog service. Implemented by desktop runtimes that
|
|
4706
|
+
* can open a native file picker; absent in web/preview environments.
|
|
4707
|
+
*/
|
|
4708
|
+
interface DialogService {
|
|
4709
|
+
showSaveDialog(options: ShowSaveDialogOptions): Promise<ShowSaveDialogResult>;
|
|
4710
|
+
}
|
|
4711
|
+
//#endregion
|
|
4712
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/services/service_types.d.ts
|
|
4669
4713
|
type ServiceTypesLike<Model = unknown, Ui = unknown, Kind extends ServiceType = ServiceType, ModelHost = Model, UiHost = Ui> = {
|
|
4670
4714
|
readonly __types?: {
|
|
4671
4715
|
model: Model;
|
|
@@ -4694,8 +4738,7 @@ type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TService
|
|
|
4694
4738
|
/** Auto-derived requires* feature flags from Services keys. */
|
|
4695
4739
|
type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean; };
|
|
4696
4740
|
//#endregion
|
|
4697
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4698
|
-
//#region src/services/service_declarations.d.ts
|
|
4741
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/services/service_declarations.d.ts
|
|
4699
4742
|
declare const Services: {
|
|
4700
4743
|
PFrameSpec: Branded$1<"pframeSpec", ServiceTypesLike<PFrameSpecDriver, PFrameSpecDriver, "wasm", PFrameSpecDriver, PFrameSpecDriver>>;
|
|
4701
4744
|
PFrame: Branded$1<"pframe", ServiceTypesLike<PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver, "node", PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver>>;
|
|
@@ -4703,9 +4746,7 @@ declare const Services: {
|
|
|
4703
4746
|
ColumnsCollection: Branded$1<"columnsCollection", ServiceTypesLike<ColumnsCollectionDriverModel, ColumnsCollectionDriverModel, "wasm", ColumnsCollectionDriver, ColumnsCollectionDriver>>;
|
|
4704
4747
|
};
|
|
4705
4748
|
//#endregion
|
|
4706
|
-
//#
|
|
4707
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/driver_kit.d.ts
|
|
4708
|
-
//#region src/driver_kit.d.ts
|
|
4749
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/driver_kit.d.ts
|
|
4709
4750
|
/** Set of all drivers exposed in UI SDK via the platforma object. */
|
|
4710
4751
|
interface DriverKit {
|
|
4711
4752
|
/** Driver allowing to retrieve blob data */
|
|
@@ -4725,21 +4766,28 @@ interface DriverKit {
|
|
|
4725
4766
|
readonly pFrameDriver: PFrameDriver;
|
|
4726
4767
|
}
|
|
4727
4768
|
//#endregion
|
|
4728
|
-
//#
|
|
4729
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.51.0/node_modules/@milaboratories/pl-model-common/dist/flags/block_flags.d.ts
|
|
4769
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/flags/block_flags.d.ts
|
|
4730
4770
|
/**
|
|
4731
4771
|
* Known block flags. Flags are set during model compilation, see `BlockModelV3` feature flags for more details and for initial values.
|
|
4732
4772
|
*/
|
|
4733
4773
|
type BlockCodeKnownFeatureFlags = {
|
|
4734
4774
|
readonly supportsLazyState?: boolean;
|
|
4735
4775
|
readonly supportsPframeQueryRanking?: boolean;
|
|
4776
|
+
/** The block UI reads `columnLinks` from the block state, so the app computes them for it. */
|
|
4777
|
+
readonly supportsColumnLinks?: boolean;
|
|
4736
4778
|
readonly requiresModelAPIVersion?: number;
|
|
4737
4779
|
readonly requiresUIAPIVersion?: number;
|
|
4738
4780
|
readonly requiresCreatePTable?: number;
|
|
4739
4781
|
readonly requiresPFramesVersion?: number;
|
|
4782
|
+
/**
|
|
4783
|
+
* The block may derive args while they are incomplete and keep them from running with
|
|
4784
|
+
* `argsIssues`. Set for every block the SDK builds. A runtime that does not know this flag
|
|
4785
|
+
* would run such incomplete args, so it must refuse the block.
|
|
4786
|
+
*/
|
|
4787
|
+
readonly requiresArgsIssues?: boolean;
|
|
4740
4788
|
} & ServiceRequireFlags;
|
|
4741
4789
|
//#endregion
|
|
4742
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4790
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/errors.d.ts
|
|
4743
4791
|
type ResultOrError<S, F = Error> = {
|
|
4744
4792
|
value: S;
|
|
4745
4793
|
error?: undefined;
|
|
@@ -4747,8 +4795,7 @@ type ResultOrError<S, F = Error> = {
|
|
|
4747
4795
|
error: F;
|
|
4748
4796
|
};
|
|
4749
4797
|
//#endregion
|
|
4750
|
-
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.
|
|
4751
|
-
//#region src/utag.d.ts
|
|
4798
|
+
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.55.2/node_modules/@milaboratories/pl-model-common/dist/utag.d.ts
|
|
4752
4799
|
/** Value returned for changing states supporting reactive listening for changes */
|
|
4753
4800
|
interface ValueWithUTag<V> {
|
|
4754
4801
|
/** Value snapshot. */
|
|
@@ -4766,9 +4813,7 @@ interface ValueWithUTagAndAuthor<V> extends ValueWithUTag<V> {
|
|
|
4766
4813
|
readonly author?: AuthorMarker;
|
|
4767
4814
|
}
|
|
4768
4815
|
//#endregion
|
|
4769
|
-
//#
|
|
4770
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/block_state_patch.d.ts
|
|
4771
|
-
//#region src/block_state_patch.d.ts
|
|
4816
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/block_state_patch.d.ts
|
|
4772
4817
|
/** Patch for the structural object */
|
|
4773
4818
|
type Patch<K, V> = {
|
|
4774
4819
|
/** Field name to patch */
|
|
@@ -4781,9 +4826,7 @@ type Unionize<T extends Record<string, unknown>> = { [K in keyof T]: Patch<K, T[
|
|
|
4781
4826
|
/** Patch for the BlockState, pushed by onStateUpdates method in SDK. */
|
|
4782
4827
|
type BlockStatePatch<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Unionize<BlockState<Args, Outputs, UiState, Href>>;
|
|
4783
4828
|
//#endregion
|
|
4784
|
-
//#
|
|
4785
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/plugin_handle.d.ts
|
|
4786
|
-
//#region src/plugin_handle.d.ts
|
|
4829
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/plugin_handle.d.ts
|
|
4787
4830
|
/**
|
|
4788
4831
|
* Phantom-only base type for constraining PluginHandle's type parameter.
|
|
4789
4832
|
*
|
|
@@ -4809,7 +4852,7 @@ interface PluginFactoryLike<Data extends Record<string, unknown> = Record<string
|
|
|
4809
4852
|
*/
|
|
4810
4853
|
type PluginHandle<F extends PluginFactoryLike = PluginFactoryLike> = Branded<string, F>;
|
|
4811
4854
|
//#endregion
|
|
4812
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4855
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/block_storage.d.ts
|
|
4813
4856
|
/** Payload for storage mutation operations. SDK defines specific operations. */
|
|
4814
4857
|
type MutateStoragePayload<T = unknown> = {
|
|
4815
4858
|
operation: "update-block-data";
|
|
@@ -4820,7 +4863,7 @@ type MutateStoragePayload<T = unknown> = {
|
|
|
4820
4863
|
value: unknown;
|
|
4821
4864
|
};
|
|
4822
4865
|
//#endregion
|
|
4823
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4866
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/bconfig/lambdas.d.ts
|
|
4824
4867
|
/** Additional information that may alter lambda rendering procedure. */
|
|
4825
4868
|
type ConfigRenderLambdaFlags = {
|
|
4826
4869
|
/**
|
|
@@ -4856,9 +4899,7 @@ type InferOutputsFromLambdas<OutputsCfg extends Record<string, ConfigRenderLambd
|
|
|
4856
4899
|
} ? false : true;
|
|
4857
4900
|
}; };
|
|
4858
4901
|
//#endregion
|
|
4859
|
-
//#
|
|
4860
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/block_api_v1.d.ts
|
|
4861
|
-
//#region src/block_api_v1.d.ts
|
|
4902
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/block_api_v1.d.ts
|
|
4862
4903
|
/** Returned by state subscription methods to be able to cancel the subscription. */
|
|
4863
4904
|
type CancelSubscription = () => void;
|
|
4864
4905
|
/** Defines methods to read and write current block data. */
|
|
@@ -4919,7 +4960,6 @@ interface BlockApiV1<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
4919
4960
|
setNavigationState(state: NavigationState<Href>): Promise<void>;
|
|
4920
4961
|
}
|
|
4921
4962
|
//#endregion
|
|
4922
|
-
//#endregion
|
|
4923
4963
|
//#region ../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.d.ts
|
|
4924
4964
|
declare type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
4925
4965
|
interface BaseOperation {
|
|
@@ -4953,8 +4993,7 @@ interface GetOperation<T> extends BaseOperation {
|
|
|
4953
4993
|
value: T;
|
|
4954
4994
|
}
|
|
4955
4995
|
//#endregion
|
|
4956
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4957
|
-
//#region src/block_api_v2.d.ts
|
|
4996
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/block_api_v2.d.ts
|
|
4958
4997
|
/** Defines methods to read and write current block data. */
|
|
4959
4998
|
interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> {
|
|
4960
4999
|
/**
|
|
@@ -5003,14 +5042,12 @@ interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
5003
5042
|
dispose(): Promise<ResultOrError<void>>;
|
|
5004
5043
|
}
|
|
5005
5044
|
//#endregion
|
|
5006
|
-
//#
|
|
5007
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/version.d.ts
|
|
5045
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/version.d.ts
|
|
5008
5046
|
type SdkInfo = {
|
|
5009
5047
|
readonly sdkVersion: string;
|
|
5010
5048
|
};
|
|
5011
5049
|
//#endregion
|
|
5012
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5013
|
-
//#region src/services/block_services.d.ts
|
|
5050
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/services/block_services.d.ts
|
|
5014
5051
|
/**
|
|
5015
5052
|
* Services required by all V3 blocks by default.
|
|
5016
5053
|
* Edit this when a new service should be available to all blocks.
|
|
@@ -5026,14 +5063,13 @@ declare const BLOCK_SERVICE_FLAGS: {
|
|
|
5026
5063
|
};
|
|
5027
5064
|
type BlockServiceFlags = typeof BLOCK_SERVICE_FLAGS;
|
|
5028
5065
|
//#endregion
|
|
5029
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5030
|
-
//#region src/services/service_resolve.d.ts
|
|
5066
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/services/service_resolve.d.ts
|
|
5031
5067
|
type FlagToName<Flag extends string> = Flag extends `requires${infer K}` ? K extends keyof ServiceNameLiterals ? ServiceNameLiterals[K] : never : never;
|
|
5032
5068
|
type RequiredServiceNames<Flags> = { [K in keyof Flags & `requires${string}`]: Flags[K] extends true ? FlagToName<K & string> : never; }[keyof Flags & `requires${string}`];
|
|
5033
5069
|
type ResolveUiServices<Flags> = Pick<UiServices$1, RequiredServiceNames<Flags> & keyof UiServices$1>;
|
|
5034
5070
|
type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
|
|
5035
5071
|
//#endregion
|
|
5036
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5072
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/plugin_model.d.ts
|
|
5037
5073
|
/**
|
|
5038
5074
|
* Runtime definition for a single public output field.
|
|
5039
5075
|
* Stored in PluginModel and passed through BlockModelInfo to the UI layer.
|
|
@@ -5042,8 +5078,7 @@ type PublicOutputFieldDef = {
|
|
|
5042
5078
|
readonly getter: (data: unknown) => unknown;
|
|
5043
5079
|
};
|
|
5044
5080
|
//#endregion
|
|
5045
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5046
|
-
//#region src/block_api_v3.d.ts
|
|
5081
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/block_api_v3.d.ts
|
|
5047
5082
|
/** Defines methods to read and write current block data. */
|
|
5048
5083
|
interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> {
|
|
5049
5084
|
/**
|
|
@@ -5067,15 +5102,22 @@ interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutp
|
|
|
5067
5102
|
* Sets block navigation state.
|
|
5068
5103
|
* */
|
|
5069
5104
|
setNavigationState(state: NavigationState<Href>): Promise<ResultOrError<void>>;
|
|
5105
|
+
/**
|
|
5106
|
+
* Opens another block of the same project in the app, as selecting it in the project does.
|
|
5107
|
+
* Resolves once the app has accepted the request, which may hide this block's UI; an error
|
|
5108
|
+
* result when the project has no block with this id.
|
|
5109
|
+
*
|
|
5110
|
+
* Absent in app versions that cannot open blocks on a block's request: check for it before
|
|
5111
|
+
* offering the user to open a block.
|
|
5112
|
+
* */
|
|
5113
|
+
openBlock?(blockId: string): Promise<ResultOrError<void>>;
|
|
5070
5114
|
/**
|
|
5071
5115
|
* Disposes the block API.
|
|
5072
5116
|
* */
|
|
5073
5117
|
dispose(): Promise<ResultOrError<void>>;
|
|
5074
5118
|
}
|
|
5075
5119
|
//#endregion
|
|
5076
|
-
//#
|
|
5077
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/platforma.d.ts
|
|
5078
|
-
//#region src/platforma.d.ts
|
|
5120
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/platforma.d.ts
|
|
5079
5121
|
/** Defines all methods to interact with the platform environment from within a block UI. @deprecated */
|
|
5080
5122
|
interface PlatformaV1<Args = unknown, Outputs extends Record<string, OutputWithStatus<unknown>> = Record<string, OutputWithStatus<unknown>>, UiState = unknown, Href extends `/${string}` = `/${string}`> extends BlockApiV1<Args, Outputs, UiState, Href>, DriverKit {
|
|
5081
5123
|
/** Information about SDK version current platforma environment was compiled with. */
|
|
@@ -5115,7 +5157,7 @@ type InferOutputsType<Pl extends Platforma> = Pl extends Platforma<unknown, infe
|
|
|
5115
5157
|
type InferDataType<Pl extends Platforma> = Pl extends Platforma<unknown, Record<string, OutputWithStatus<unknown>>, infer Data> ? Data : never;
|
|
5116
5158
|
type InferHrefType<Pl extends Platforma> = Pl extends Platforma<unknown, BlockOutputsBase, unknown, infer Href> ? Href : never;
|
|
5117
5159
|
//#endregion
|
|
5118
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5160
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlDatasetSelector/dataset_selection.d.ts
|
|
5119
5161
|
/**
|
|
5120
5162
|
* Picked dataset bundle emitted by `PlDatasetSelector`. Stored opaquely in
|
|
5121
5163
|
* block data; block authors unbundle inside their args resolver.
|
|
@@ -5126,8 +5168,7 @@ type DatasetSelection = {
|
|
|
5126
5168
|
readonly enrichments?: LabeledEnrichmentRefs;
|
|
5127
5169
|
};
|
|
5128
5170
|
//#endregion
|
|
5129
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5130
|
-
//#region src/components/PlDataTable/typesV8.d.ts
|
|
5171
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV8.d.ts
|
|
5131
5172
|
type PlTableColumnIdJson$1 = CanonicalizedJson<PTableColumnId>;
|
|
5132
5173
|
type PlDataTableGridStateCore$1 = {
|
|
5133
5174
|
/** Includes column ordering */
|
|
@@ -5195,16 +5236,15 @@ type PTableParamsV2$1 = {
|
|
|
5195
5236
|
defaultFilters: null | PlDataTableFilters$1;
|
|
5196
5237
|
};
|
|
5197
5238
|
type PlDataTableStateV2Normalized$1 = {
|
|
5198
|
-
/** Version for upgrades */
|
|
5199
|
-
version:
|
|
5239
|
+
/** Version for upgrades. v9 has the v8 shape; it marks column ids rewritten to the current form. */
|
|
5240
|
+
version: 9;
|
|
5200
5241
|
/** Internal states, LRU cache for 5 sourceId-s */
|
|
5201
5242
|
stateCache: PlDataTableStateV2CacheEntry$1[];
|
|
5202
5243
|
/** PTable params derived from the cache state for the current sourceId */
|
|
5203
5244
|
pTableParams: PTableParamsV2$1;
|
|
5204
5245
|
};
|
|
5205
5246
|
//#endregion
|
|
5206
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5207
|
-
//#region src/components/PlDataTable/typesV4.d.ts
|
|
5247
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV4.d.ts
|
|
5208
5248
|
type PlDataTableFilterState = {
|
|
5209
5249
|
id: PTableColumnId;
|
|
5210
5250
|
alphabetic: boolean;
|
|
@@ -5355,9 +5395,7 @@ type PlTableFilterString = PlTableFilterCommon | PlTableFilterStringEquals | PlT
|
|
|
5355
5395
|
/** All PlTableFilters filter entries */
|
|
5356
5396
|
type PlTableFilter = PlTableFilterNumber | PlTableFilterString;
|
|
5357
5397
|
//#endregion
|
|
5358
|
-
//#
|
|
5359
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV7.d.ts
|
|
5360
|
-
//#region src/components/PlDataTable/typesV7.d.ts
|
|
5398
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV7.d.ts
|
|
5361
5399
|
type PlTableColumnIdJson = CanonicalizedJson<PTableColumnId>;
|
|
5362
5400
|
type PlDataTableGridStateCore = {
|
|
5363
5401
|
/** Includes column ordering */
|
|
@@ -5433,9 +5471,7 @@ type PlDataTableStateV2Normalized = {
|
|
|
5433
5471
|
pTableParams: PTableParamsV2;
|
|
5434
5472
|
};
|
|
5435
5473
|
//#endregion
|
|
5436
|
-
//#
|
|
5437
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV6.d.ts
|
|
5438
|
-
//#region src/components/PlDataTable/typesV6.d.ts
|
|
5474
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV6.d.ts
|
|
5439
5475
|
/**
|
|
5440
5476
|
* v6 colId scheme: bare canonicalized `PTableColumnSpec` (full spec including
|
|
5441
5477
|
* all annotations and `pl7.app/trace`). v7 dropped the spec body and now uses
|
|
@@ -5470,9 +5506,7 @@ type PlDataTableStateV2V6 = {
|
|
|
5470
5506
|
pTableParams: PTableParamsV2;
|
|
5471
5507
|
};
|
|
5472
5508
|
//#endregion
|
|
5473
|
-
//#
|
|
5474
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV5.d.ts
|
|
5475
|
-
//#region src/components/PlDataTable/typesV5.d.ts
|
|
5509
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlDataTable/typesV5.d.ts
|
|
5476
5510
|
/**
|
|
5477
5511
|
* v5 colId wrapper. v5 stored every grid colId as `{ source, labeled }` —
|
|
5478
5512
|
* `source` was the original column spec, `labeled` was the spec with
|
|
@@ -5499,9 +5533,7 @@ type PlDataTableGridStateV5 = {
|
|
|
5499
5533
|
};
|
|
5500
5534
|
};
|
|
5501
5535
|
//#endregion
|
|
5502
|
-
//#
|
|
5503
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.84.1/node_modules/@platforma-sdk/model/dist/components/PlDataTable/state-migration.d.ts
|
|
5504
|
-
//#region src/components/PlDataTable/state-migration.d.ts
|
|
5536
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlDataTable/state-migration.d.ts
|
|
5505
5537
|
/**
|
|
5506
5538
|
* PlDataTableV2 persisted state
|
|
5507
5539
|
*/
|
|
@@ -5598,9 +5630,13 @@ type PlDataTableStateV2 = {
|
|
|
5598
5630
|
searchString?: string;
|
|
5599
5631
|
}[];
|
|
5600
5632
|
pTableParams: PTableParamsV2;
|
|
5601
|
-
} | PlDataTableStateV2V6 | PlDataTableStateV2Normalized | PlDataTableStateV2Normalized$1;
|
|
5633
|
+
} | PlDataTableStateV2V6 | PlDataTableStateV2Normalized | PlDataTableStateV2V8 | PlDataTableStateV2Normalized$1;
|
|
5634
|
+
/** v8 state: the current shape, column ids not yet checked for the pre-rework form. */
|
|
5635
|
+
type PlDataTableStateV2V8 = Omit<PlDataTableStateV2Normalized$1, "version"> & {
|
|
5636
|
+
version: 8;
|
|
5637
|
+
};
|
|
5602
5638
|
//#endregion
|
|
5603
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
5639
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.88.16/node_modules/@platforma-sdk/model/dist/components/PlMultiSequenceAlignment.d.ts
|
|
5604
5640
|
interface PlMultiSequenceAlignmentSettings {
|
|
5605
5641
|
sequenceColumnIds?: PObjectId[];
|
|
5606
5642
|
labelColumnIds?: PTableColumnId[];
|
|
@@ -5751,18 +5787,18 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5751
5787
|
datasetOptions: ConfigRenderLambda<{
|
|
5752
5788
|
readonly primary: {
|
|
5753
5789
|
readonly ref: {
|
|
5754
|
-
readonly __isRef: true;
|
|
5755
5790
|
readonly blockId: string;
|
|
5756
5791
|
readonly name: string;
|
|
5792
|
+
readonly __isRef: true;
|
|
5757
5793
|
readonly requireEnrichments?: true | undefined;
|
|
5758
5794
|
};
|
|
5759
5795
|
readonly label: string;
|
|
5760
5796
|
};
|
|
5761
5797
|
readonly filters?: readonly {
|
|
5762
5798
|
readonly ref: {
|
|
5763
|
-
readonly __isRef: true;
|
|
5764
5799
|
readonly blockId: string;
|
|
5765
5800
|
readonly name: string;
|
|
5801
|
+
readonly __isRef: true;
|
|
5766
5802
|
readonly requireEnrichments?: true | undefined;
|
|
5767
5803
|
};
|
|
5768
5804
|
readonly label: string;
|
|
@@ -5821,6 +5857,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5821
5857
|
visibility?: "default" | "optional" | "hidden";
|
|
5822
5858
|
order?: number;
|
|
5823
5859
|
status?: AnnotationDataStatus;
|
|
5860
|
+
linkHint?: string;
|
|
5824
5861
|
};
|
|
5825
5862
|
[x: string & {
|
|
5826
5863
|
__json_canonicalized: ColumnFilteredKey;
|
|
@@ -5831,6 +5868,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5831
5868
|
visibility?: "default" | "optional" | "hidden";
|
|
5832
5869
|
order?: number;
|
|
5833
5870
|
status?: AnnotationDataStatus;
|
|
5871
|
+
linkHint?: string;
|
|
5834
5872
|
};
|
|
5835
5873
|
[x: string & {
|
|
5836
5874
|
__json_canonicalized: ColumnOverriddenKey;
|
|
@@ -5841,6 +5879,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5841
5879
|
visibility?: "default" | "optional" | "hidden";
|
|
5842
5880
|
order?: number;
|
|
5843
5881
|
status?: AnnotationDataStatus;
|
|
5882
|
+
linkHint?: string;
|
|
5844
5883
|
};
|
|
5845
5884
|
[x: string & {
|
|
5846
5885
|
__json_canonicalized: LocalPObjectKey;
|
|
@@ -5851,12 +5890,13 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5851
5890
|
visibility?: "default" | "optional" | "hidden";
|
|
5852
5891
|
order?: number;
|
|
5853
5892
|
status?: AnnotationDataStatus;
|
|
5893
|
+
linkHint?: string;
|
|
5854
5894
|
};
|
|
5855
5895
|
[x: string & {
|
|
5856
5896
|
__json_canonicalized: Readonly<{
|
|
5857
|
-
__isRef: true;
|
|
5858
5897
|
blockId: string;
|
|
5859
5898
|
name: string;
|
|
5899
|
+
__isRef: true;
|
|
5860
5900
|
requireEnrichments?: true | undefined;
|
|
5861
5901
|
}>;
|
|
5862
5902
|
} & {
|
|
@@ -5866,6 +5906,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5866
5906
|
visibility?: "default" | "optional" | "hidden";
|
|
5867
5907
|
order?: number;
|
|
5868
5908
|
status?: AnnotationDataStatus;
|
|
5909
|
+
linkHint?: string;
|
|
5869
5910
|
};
|
|
5870
5911
|
};
|
|
5871
5912
|
axes: {
|
|
@@ -5897,6 +5938,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5897
5938
|
visibility?: "default" | "optional" | "hidden";
|
|
5898
5939
|
order?: number;
|
|
5899
5940
|
status?: AnnotationDataStatus;
|
|
5941
|
+
linkHint?: string;
|
|
5900
5942
|
};
|
|
5901
5943
|
[x: string & {
|
|
5902
5944
|
__json_canonicalized: ColumnFilteredKey;
|
|
@@ -5907,6 +5949,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5907
5949
|
visibility?: "default" | "optional" | "hidden";
|
|
5908
5950
|
order?: number;
|
|
5909
5951
|
status?: AnnotationDataStatus;
|
|
5952
|
+
linkHint?: string;
|
|
5910
5953
|
};
|
|
5911
5954
|
[x: string & {
|
|
5912
5955
|
__json_canonicalized: ColumnOverriddenKey;
|
|
@@ -5917,6 +5960,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5917
5960
|
visibility?: "default" | "optional" | "hidden";
|
|
5918
5961
|
order?: number;
|
|
5919
5962
|
status?: AnnotationDataStatus;
|
|
5963
|
+
linkHint?: string;
|
|
5920
5964
|
};
|
|
5921
5965
|
[x: string & {
|
|
5922
5966
|
__json_canonicalized: LocalPObjectKey;
|
|
@@ -5927,12 +5971,13 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5927
5971
|
visibility?: "default" | "optional" | "hidden";
|
|
5928
5972
|
order?: number;
|
|
5929
5973
|
status?: AnnotationDataStatus;
|
|
5974
|
+
linkHint?: string;
|
|
5930
5975
|
};
|
|
5931
5976
|
[x: string & {
|
|
5932
5977
|
__json_canonicalized: Readonly<{
|
|
5933
|
-
__isRef: true;
|
|
5934
5978
|
blockId: string;
|
|
5935
5979
|
name: string;
|
|
5980
|
+
__isRef: true;
|
|
5936
5981
|
requireEnrichments?: true | undefined;
|
|
5937
5982
|
}>;
|
|
5938
5983
|
} & {
|
|
@@ -5942,6 +5987,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
5942
5987
|
visibility?: "default" | "optional" | "hidden";
|
|
5943
5988
|
order?: number;
|
|
5944
5989
|
status?: AnnotationDataStatus;
|
|
5990
|
+
linkHint?: string;
|
|
5945
5991
|
};
|
|
5946
5992
|
};
|
|
5947
5993
|
axes: {
|