@platforma-open/milaboratories.repertoire-mutation-heatmap.block 1.1.3 → 1.1.5
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 +659 -382
- package/dist/AGENTS.d.ts.map +1 -1
- package/dist/index.d.ts +667 -392
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +59 -81
- package/dist/index.js.map +1 -1
- package/dist/rolldown-runtime-B-1-B7_t.js +33 -0
- package/package.json +6 -6
package/dist/AGENTS.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#endregion
|
|
1
2
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/author_marker.d.ts
|
|
2
3
|
//#region src/author_marker.d.ts
|
|
3
4
|
/** Structure to help resolve conflicts if multiple participants writes to
|
|
@@ -8,10 +9,11 @@ interface AuthorMarker {
|
|
|
8
9
|
authorId: string;
|
|
9
10
|
/** Sequential version of the state local to the author */
|
|
10
11
|
localVersion: number;
|
|
11
|
-
}
|
|
12
|
+
}
|
|
12
13
|
//#endregion
|
|
13
14
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/typeAliases.d.cts
|
|
14
15
|
type Primitive$1 = string | number | symbol | bigint | boolean | null | undefined;
|
|
16
|
+
type Scalars = Primitive$1 | Primitive$1[];
|
|
15
17
|
//#endregion
|
|
16
18
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/util.d.cts
|
|
17
19
|
declare namespace util {
|
|
@@ -24,8 +26,8 @@ declare namespace util {
|
|
|
24
26
|
export type OmitKeys<T, K extends string> = Pick<T, Exclude<keyof T, K>>;
|
|
25
27
|
export type MakePartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
26
28
|
export type Exactly<T, X> = T & Record<Exclude<keyof X, keyof T>, never>;
|
|
27
|
-
export type InexactPartial<T> = { [k in keyof T]?: T[k] | undefined };
|
|
28
|
-
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k };
|
|
29
|
+
export type InexactPartial<T> = { [k in keyof T]?: T[k] | undefined; };
|
|
30
|
+
export const arrayToEnum: <T extends string, U extends [T, ...T[]]>(items: U) => { [k in U[number]]: k; };
|
|
29
31
|
export const getValidEnumValues: (obj: any) => any[];
|
|
30
32
|
export const objectValues: (obj: any) => any[];
|
|
31
33
|
export const objectKeys: ObjectConstructor["keys"];
|
|
@@ -39,16 +41,16 @@ declare namespace util {
|
|
|
39
41
|
export {};
|
|
40
42
|
}
|
|
41
43
|
declare namespace objectUtil {
|
|
42
|
-
export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : { [k in Exclude<keyof U, keyof V>]: U[k] } & V;
|
|
43
|
-
type optionalKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? k : never }[keyof T];
|
|
44
|
-
type requiredKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? never : k }[keyof T];
|
|
45
|
-
export type addQuestionMarks<T extends object, _O = any> = { [K in requiredKeys<T>]: T[K] } & { [K in optionalKeys<T>]?: T[K] } & { [k in keyof T]?: unknown };
|
|
44
|
+
export type MergeShapes<U, V> = keyof U & keyof V extends never ? U & V : { [k in Exclude<keyof U, keyof V>]: U[k]; } & V;
|
|
45
|
+
type optionalKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? k : never; }[keyof T];
|
|
46
|
+
type requiredKeys<T extends object> = { [k in keyof T]: undefined extends T[k] ? never : k; }[keyof T];
|
|
47
|
+
export type addQuestionMarks<T extends object, _O = any> = { [K in requiredKeys<T>]: T[K]; } & { [K in optionalKeys<T>]?: T[K]; } & { [k in keyof T]?: unknown; };
|
|
46
48
|
export type identity<T> = T;
|
|
47
|
-
export type flatten<T> = identity<{ [k in keyof T]: T[k] }>;
|
|
48
|
-
export type noNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k }[keyof T];
|
|
49
|
-
export type noNever<T> = identity<{ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never }>;
|
|
49
|
+
export type flatten<T> = identity<{ [k in keyof T]: T[k]; }>;
|
|
50
|
+
export type noNeverKeys<T> = { [k in keyof T]: [T[k]] extends [never] ? never : k; }[keyof T];
|
|
51
|
+
export type noNever<T> = identity<{ [k in noNeverKeys<T>]: k extends keyof T ? T[k] : never; }>;
|
|
50
52
|
export const mergeShapes: <U, T>(first: U, second: T) => T & U;
|
|
51
|
-
export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K] } & { [K in keyof B]: B[K] };
|
|
53
|
+
export type extendShape<A extends object, B extends object> = keyof A & keyof B extends never ? A & B : { [K in keyof A as K extends keyof B ? never : K]: A[K]; } & { [K in keyof B]: B[K]; };
|
|
52
54
|
export {};
|
|
53
55
|
}
|
|
54
56
|
declare const ZodParsedType: {
|
|
@@ -74,12 +76,14 @@ declare const ZodParsedType: {
|
|
|
74
76
|
set: "set";
|
|
75
77
|
};
|
|
76
78
|
type ZodParsedType = keyof typeof ZodParsedType;
|
|
79
|
+
declare const getParsedType: (data: any) => ZodParsedType;
|
|
77
80
|
//#endregion
|
|
78
81
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/ZodError.d.cts
|
|
79
82
|
type allKeys<T> = T extends any ? keyof T : never;
|
|
83
|
+
type inferFlattenedErrors<T extends ZodType<any, any, any>, U = string> = typeToFlattenedError<TypeOf<T>, U>;
|
|
80
84
|
type typeToFlattenedError<T, U = string> = {
|
|
81
85
|
formErrors: U[];
|
|
82
|
-
fieldErrors: { [P in allKeys<T>]?: U[] };
|
|
86
|
+
fieldErrors: { [P in allKeys<T>]?: U[]; };
|
|
83
87
|
};
|
|
84
88
|
declare const ZodIssueCode: {
|
|
85
89
|
invalid_type: "invalid_type";
|
|
@@ -184,17 +188,22 @@ interface ZodCustomIssue extends ZodIssueBase {
|
|
|
184
188
|
[k: string]: any;
|
|
185
189
|
};
|
|
186
190
|
}
|
|
191
|
+
type DenormalizedError = {
|
|
192
|
+
[k: string]: DenormalizedError | string[];
|
|
193
|
+
};
|
|
187
194
|
type ZodIssueOptionalMessage = ZodInvalidTypeIssue | ZodInvalidLiteralIssue | ZodUnrecognizedKeysIssue | ZodInvalidUnionIssue | ZodInvalidUnionDiscriminatorIssue | ZodInvalidEnumValueIssue | ZodInvalidArgumentsIssue | ZodInvalidReturnTypeIssue | ZodInvalidDateIssue | ZodInvalidStringIssue | ZodTooSmallIssue | ZodTooBigIssue | ZodInvalidIntersectionTypesIssue | ZodNotMultipleOfIssue | ZodNotFiniteIssue | ZodCustomIssue;
|
|
188
195
|
type ZodIssue = ZodIssueOptionalMessage & {
|
|
189
196
|
fatal?: boolean | undefined;
|
|
190
197
|
message: string;
|
|
191
198
|
};
|
|
192
|
-
|
|
199
|
+
declare const quotelessJson: (obj: any) => string;
|
|
200
|
+
type recursiveZodFormattedError<T> = T extends [any, ...any[]] ? { [K in keyof T]?: ZodFormattedError<T[K]>; } : T extends any[] ? {
|
|
193
201
|
[k: number]: ZodFormattedError<T[number]>;
|
|
194
|
-
} : T extends object ? { [K in keyof T]?: ZodFormattedError<T[K]
|
|
202
|
+
} : T extends object ? { [K in keyof T]?: ZodFormattedError<T[K]>; } : unknown;
|
|
195
203
|
type ZodFormattedError<T, U = string> = {
|
|
196
204
|
_errors: U[];
|
|
197
205
|
} & recursiveZodFormattedError<NonNullable<T>>;
|
|
206
|
+
type inferFormattedError<T extends ZodType<any, any, any>, U = string> = ZodFormattedError<TypeOf<T>, U>;
|
|
198
207
|
declare class ZodError<T = any> extends Error {
|
|
199
208
|
issues: ZodIssue[];
|
|
200
209
|
get errors(): ZodIssue[];
|
|
@@ -225,7 +234,20 @@ type ZodErrorMap = (issue: ZodIssueOptionalMessage, _ctx: ErrorMapCtx) => {
|
|
|
225
234
|
message: string;
|
|
226
235
|
};
|
|
227
236
|
//#endregion
|
|
237
|
+
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/locales/en.d.cts
|
|
238
|
+
declare const errorMap: ZodErrorMap;
|
|
239
|
+
//#endregion
|
|
240
|
+
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/errors.d.cts
|
|
241
|
+
declare function setErrorMap(map: ZodErrorMap): void;
|
|
242
|
+
declare function getErrorMap(): ZodErrorMap;
|
|
243
|
+
//#endregion
|
|
228
244
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/parseUtil.d.cts
|
|
245
|
+
declare const makeIssue: (params: {
|
|
246
|
+
data: any;
|
|
247
|
+
path: (string | number)[];
|
|
248
|
+
errorMaps: ZodErrorMap[];
|
|
249
|
+
issueData: IssueData;
|
|
250
|
+
}) => ZodIssue;
|
|
229
251
|
type ParseParams = {
|
|
230
252
|
path: (string | number)[];
|
|
231
253
|
errorMap: ZodErrorMap;
|
|
@@ -233,6 +255,7 @@ type ParseParams = {
|
|
|
233
255
|
};
|
|
234
256
|
type ParsePathComponent = string | number;
|
|
235
257
|
type ParsePath = ParsePathComponent[];
|
|
258
|
+
declare const EMPTY_PATH: ParsePath;
|
|
236
259
|
interface ParseContext {
|
|
237
260
|
readonly common: {
|
|
238
261
|
readonly issues: ZodIssue[];
|
|
@@ -250,6 +273,11 @@ type ParseInput = {
|
|
|
250
273
|
path: (string | number)[];
|
|
251
274
|
parent: ParseContext;
|
|
252
275
|
};
|
|
276
|
+
declare function addIssueToContext(ctx: ParseContext, issueData: IssueData): void;
|
|
277
|
+
type ObjectPair = {
|
|
278
|
+
key: SyncParseReturnType<any>;
|
|
279
|
+
value: SyncParseReturnType<any>;
|
|
280
|
+
};
|
|
253
281
|
declare class ParseStatus {
|
|
254
282
|
value: "aborted" | "dirty" | "valid";
|
|
255
283
|
dirty(): void;
|
|
@@ -265,6 +293,10 @@ declare class ParseStatus {
|
|
|
265
293
|
alwaysSet?: boolean;
|
|
266
294
|
}[]): SyncParseReturnType;
|
|
267
295
|
}
|
|
296
|
+
interface ParseResult {
|
|
297
|
+
status: "aborted" | "dirty" | "valid";
|
|
298
|
+
data: any;
|
|
299
|
+
}
|
|
268
300
|
type INVALID = {
|
|
269
301
|
status: "aborted";
|
|
270
302
|
};
|
|
@@ -282,6 +314,10 @@ declare const OK: <T>(value: T) => OK<T>;
|
|
|
282
314
|
type SyncParseReturnType<T = any> = OK<T> | DIRTY<T> | INVALID;
|
|
283
315
|
type AsyncParseReturnType<T> = Promise<SyncParseReturnType<T>>;
|
|
284
316
|
type ParseReturnType<T> = SyncParseReturnType<T> | AsyncParseReturnType<T>;
|
|
317
|
+
declare const isAborted: (x: ParseReturnType<any>) => x is INVALID;
|
|
318
|
+
declare const isDirty: <T>(x: ParseReturnType<T>) => x is OK<T> | DIRTY<T>;
|
|
319
|
+
declare const isValid: <T>(x: ParseReturnType<T>) => x is OK<T>;
|
|
320
|
+
declare const isAsync: <T>(x: ParseReturnType<T>) => x is AsyncParseReturnType<T>;
|
|
285
321
|
//#endregion
|
|
286
322
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/enumUtil.d.cts
|
|
287
323
|
declare namespace enumUtil {
|
|
@@ -306,7 +342,7 @@ declare namespace errorUtil {
|
|
|
306
342
|
//#endregion
|
|
307
343
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/helpers/partialUtil.d.cts
|
|
308
344
|
declare namespace partialUtil {
|
|
309
|
-
type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]
|
|
345
|
+
type DeepPartial<T extends ZodTypeAny> = T extends ZodObject<ZodRawShape> ? ZodObject<{ [k in keyof T["shape"]]: ZodOptional<DeepPartial<T["shape"][k]>>; }, T["_def"]["unknownKeys"], T["_def"]["catchall"]> : T extends ZodArray<infer Type, infer Card> ? ZodArray<DeepPartial<Type>, Card> : T extends ZodOptional<infer Type> ? ZodOptional<DeepPartial<Type>> : T extends ZodNullable<infer Type> ? ZodNullable<DeepPartial<Type>> : T extends ZodTuple<infer Items> ? { [k in keyof Items]: Items[k] extends ZodTypeAny ? DeepPartial<Items[k]> : never; } extends (infer PI) ? PI extends ZodTupleItems ? ZodTuple<PI> : never : never : T;
|
|
310
346
|
}
|
|
311
347
|
//#endregion
|
|
312
348
|
//#region ../node_modules/.pnpm/zod@3.25.76/node_modules/zod/v3/standard-schema.d.cts
|
|
@@ -437,6 +473,10 @@ type RawCreateParams = {
|
|
|
437
473
|
message?: string | undefined;
|
|
438
474
|
description?: string | undefined;
|
|
439
475
|
} | undefined;
|
|
476
|
+
type ProcessedCreateParams = {
|
|
477
|
+
errorMap?: ZodErrorMap | undefined;
|
|
478
|
+
description?: string | undefined;
|
|
479
|
+
};
|
|
440
480
|
type SafeParseSuccess<Output> = {
|
|
441
481
|
success: true;
|
|
442
482
|
data: Output;
|
|
@@ -605,6 +645,11 @@ interface ZodStringDef extends ZodTypeDef {
|
|
|
605
645
|
typeName: ZodFirstPartyTypeKind.ZodString;
|
|
606
646
|
coerce: boolean;
|
|
607
647
|
}
|
|
648
|
+
declare function datetimeRegex(args: {
|
|
649
|
+
precision?: number | null;
|
|
650
|
+
offset?: boolean;
|
|
651
|
+
local?: boolean;
|
|
652
|
+
}): RegExp;
|
|
608
653
|
declare class ZodString extends ZodType<string, ZodStringDef, string> {
|
|
609
654
|
_parse(input: ParseInput): ParseReturnType<string>;
|
|
610
655
|
protected _regex(regex: RegExp, validation: StringValidation, message?: errorUtil.ErrMessage): ZodEffects<this, string, string>;
|
|
@@ -735,6 +780,135 @@ declare class ZodNumber extends ZodType<number, ZodNumberDef, number> {
|
|
|
735
780
|
get isInt(): boolean;
|
|
736
781
|
get isFinite(): boolean;
|
|
737
782
|
}
|
|
783
|
+
type ZodBigIntCheck = {
|
|
784
|
+
kind: "min";
|
|
785
|
+
value: bigint;
|
|
786
|
+
inclusive: boolean;
|
|
787
|
+
message?: string | undefined;
|
|
788
|
+
} | {
|
|
789
|
+
kind: "max";
|
|
790
|
+
value: bigint;
|
|
791
|
+
inclusive: boolean;
|
|
792
|
+
message?: string | undefined;
|
|
793
|
+
} | {
|
|
794
|
+
kind: "multipleOf";
|
|
795
|
+
value: bigint;
|
|
796
|
+
message?: string | undefined;
|
|
797
|
+
};
|
|
798
|
+
interface ZodBigIntDef extends ZodTypeDef {
|
|
799
|
+
checks: ZodBigIntCheck[];
|
|
800
|
+
typeName: ZodFirstPartyTypeKind.ZodBigInt;
|
|
801
|
+
coerce: boolean;
|
|
802
|
+
}
|
|
803
|
+
declare class ZodBigInt extends ZodType<bigint, ZodBigIntDef, bigint> {
|
|
804
|
+
_parse(input: ParseInput): ParseReturnType<bigint>;
|
|
805
|
+
_getInvalidInput(input: ParseInput): INVALID;
|
|
806
|
+
static create: (params?: RawCreateParams & {
|
|
807
|
+
coerce?: boolean;
|
|
808
|
+
}) => ZodBigInt;
|
|
809
|
+
gte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
810
|
+
min: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt;
|
|
811
|
+
gt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
812
|
+
lte(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
813
|
+
max: (value: bigint, message?: errorUtil.ErrMessage) => ZodBigInt;
|
|
814
|
+
lt(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
815
|
+
protected setLimit(kind: "min" | "max", value: bigint, inclusive: boolean, message?: string): ZodBigInt;
|
|
816
|
+
_addCheck(check: ZodBigIntCheck): ZodBigInt;
|
|
817
|
+
positive(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
818
|
+
negative(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
819
|
+
nonpositive(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
820
|
+
nonnegative(message?: errorUtil.ErrMessage): ZodBigInt;
|
|
821
|
+
multipleOf(value: bigint, message?: errorUtil.ErrMessage): ZodBigInt;
|
|
822
|
+
get minValue(): bigint | null;
|
|
823
|
+
get maxValue(): bigint | null;
|
|
824
|
+
}
|
|
825
|
+
interface ZodBooleanDef extends ZodTypeDef {
|
|
826
|
+
typeName: ZodFirstPartyTypeKind.ZodBoolean;
|
|
827
|
+
coerce: boolean;
|
|
828
|
+
}
|
|
829
|
+
declare class ZodBoolean extends ZodType<boolean, ZodBooleanDef, boolean> {
|
|
830
|
+
_parse(input: ParseInput): ParseReturnType<boolean>;
|
|
831
|
+
static create: (params?: RawCreateParams & {
|
|
832
|
+
coerce?: boolean;
|
|
833
|
+
}) => ZodBoolean;
|
|
834
|
+
}
|
|
835
|
+
type ZodDateCheck = {
|
|
836
|
+
kind: "min";
|
|
837
|
+
value: number;
|
|
838
|
+
message?: string | undefined;
|
|
839
|
+
} | {
|
|
840
|
+
kind: "max";
|
|
841
|
+
value: number;
|
|
842
|
+
message?: string | undefined;
|
|
843
|
+
};
|
|
844
|
+
interface ZodDateDef extends ZodTypeDef {
|
|
845
|
+
checks: ZodDateCheck[];
|
|
846
|
+
coerce: boolean;
|
|
847
|
+
typeName: ZodFirstPartyTypeKind.ZodDate;
|
|
848
|
+
}
|
|
849
|
+
declare class ZodDate extends ZodType<Date, ZodDateDef, Date> {
|
|
850
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
851
|
+
_addCheck(check: ZodDateCheck): ZodDate;
|
|
852
|
+
min(minDate: Date, message?: errorUtil.ErrMessage): ZodDate;
|
|
853
|
+
max(maxDate: Date, message?: errorUtil.ErrMessage): ZodDate;
|
|
854
|
+
get minDate(): Date | null;
|
|
855
|
+
get maxDate(): Date | null;
|
|
856
|
+
static create: (params?: RawCreateParams & {
|
|
857
|
+
coerce?: boolean;
|
|
858
|
+
}) => ZodDate;
|
|
859
|
+
}
|
|
860
|
+
interface ZodSymbolDef extends ZodTypeDef {
|
|
861
|
+
typeName: ZodFirstPartyTypeKind.ZodSymbol;
|
|
862
|
+
}
|
|
863
|
+
declare class ZodSymbol extends ZodType<symbol, ZodSymbolDef, symbol> {
|
|
864
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
865
|
+
static create: (params?: RawCreateParams) => ZodSymbol;
|
|
866
|
+
}
|
|
867
|
+
interface ZodUndefinedDef extends ZodTypeDef {
|
|
868
|
+
typeName: ZodFirstPartyTypeKind.ZodUndefined;
|
|
869
|
+
}
|
|
870
|
+
declare class ZodUndefined extends ZodType<undefined, ZodUndefinedDef, undefined> {
|
|
871
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
872
|
+
params?: RawCreateParams;
|
|
873
|
+
static create: (params?: RawCreateParams) => ZodUndefined;
|
|
874
|
+
}
|
|
875
|
+
interface ZodNullDef extends ZodTypeDef {
|
|
876
|
+
typeName: ZodFirstPartyTypeKind.ZodNull;
|
|
877
|
+
}
|
|
878
|
+
declare class ZodNull extends ZodType<null, ZodNullDef, null> {
|
|
879
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
880
|
+
static create: (params?: RawCreateParams) => ZodNull;
|
|
881
|
+
}
|
|
882
|
+
interface ZodAnyDef extends ZodTypeDef {
|
|
883
|
+
typeName: ZodFirstPartyTypeKind.ZodAny;
|
|
884
|
+
}
|
|
885
|
+
declare class ZodAny extends ZodType<any, ZodAnyDef, any> {
|
|
886
|
+
_any: true;
|
|
887
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
888
|
+
static create: (params?: RawCreateParams) => ZodAny;
|
|
889
|
+
}
|
|
890
|
+
interface ZodUnknownDef extends ZodTypeDef {
|
|
891
|
+
typeName: ZodFirstPartyTypeKind.ZodUnknown;
|
|
892
|
+
}
|
|
893
|
+
declare class ZodUnknown extends ZodType<unknown, ZodUnknownDef, unknown> {
|
|
894
|
+
_unknown: true;
|
|
895
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
896
|
+
static create: (params?: RawCreateParams) => ZodUnknown;
|
|
897
|
+
}
|
|
898
|
+
interface ZodNeverDef extends ZodTypeDef {
|
|
899
|
+
typeName: ZodFirstPartyTypeKind.ZodNever;
|
|
900
|
+
}
|
|
901
|
+
declare class ZodNever extends ZodType<never, ZodNeverDef, never> {
|
|
902
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
903
|
+
static create: (params?: RawCreateParams) => ZodNever;
|
|
904
|
+
}
|
|
905
|
+
interface ZodVoidDef extends ZodTypeDef {
|
|
906
|
+
typeName: ZodFirstPartyTypeKind.ZodVoid;
|
|
907
|
+
}
|
|
908
|
+
declare class ZodVoid extends ZodType<void, ZodVoidDef, void> {
|
|
909
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
910
|
+
static create: (params?: RawCreateParams) => ZodVoid;
|
|
911
|
+
}
|
|
738
912
|
interface ZodArrayDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
739
913
|
type: T;
|
|
740
914
|
typeName: ZodFirstPartyTypeKind.ZodArray;
|
|
@@ -762,6 +936,7 @@ declare class ZodArray<T extends ZodTypeAny, Cardinality extends ArrayCardinalit
|
|
|
762
936
|
nonempty(message?: errorUtil.ErrMessage): ZodArray<T, "atleastone">;
|
|
763
937
|
static create: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
|
|
764
938
|
}
|
|
939
|
+
type ZodNonEmptyArray<T extends ZodTypeAny> = ZodArray<T, "atleastone">;
|
|
765
940
|
type UnknownKeysParam = "passthrough" | "strict" | "strip";
|
|
766
941
|
interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
767
942
|
typeName: ZodFirstPartyTypeKind.ZodObject;
|
|
@@ -769,10 +944,11 @@ interface ZodObjectDef<T extends ZodRawShape = ZodRawShape, UnknownKeys extends
|
|
|
769
944
|
catchall: Catchall;
|
|
770
945
|
unknownKeys: UnknownKeys;
|
|
771
946
|
}
|
|
947
|
+
type mergeTypes<A, B> = { [k in keyof A | keyof B]: k extends keyof B ? B[k] : k extends keyof A ? A[k] : never; };
|
|
772
948
|
type objectOutputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<objectUtil.addQuestionMarks<baseObjectOutputType<Shape>>> & CatchallOutput<Catchall> & PassthroughType<UnknownKeys>;
|
|
773
|
-
type baseObjectOutputType<Shape extends ZodRawShape> = { [k in keyof Shape]: Shape[k]["_output"] };
|
|
949
|
+
type baseObjectOutputType<Shape extends ZodRawShape> = { [k in keyof Shape]: Shape[k]["_output"]; };
|
|
774
950
|
type objectInputType<Shape extends ZodRawShape, Catchall extends ZodTypeAny, UnknownKeys extends UnknownKeysParam = UnknownKeysParam> = objectUtil.flatten<baseObjectInputType<Shape>> & CatchallInput<Catchall> & PassthroughType<UnknownKeys>;
|
|
775
|
-
type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_input"] }>;
|
|
951
|
+
type baseObjectInputType<Shape extends ZodRawShape> = objectUtil.addQuestionMarks<{ [k in keyof Shape]: Shape[k]["_input"]; }>;
|
|
776
952
|
type CatchallOutput<T extends ZodType> = ZodType extends T ? unknown : {
|
|
777
953
|
[k: string]: T["_output"];
|
|
778
954
|
};
|
|
@@ -783,6 +959,8 @@ type PassthroughType<T extends UnknownKeysParam> = T extends "passthrough" ? {
|
|
|
783
959
|
[k: string]: unknown;
|
|
784
960
|
} : unknown;
|
|
785
961
|
type deoptional<T extends ZodTypeAny> = T extends ZodOptional<infer U> ? deoptional<U> : T extends ZodNullable<infer U> ? ZodNullable<deoptional<U>> : T;
|
|
962
|
+
type SomeZodObject = ZodObject<ZodRawShape, UnknownKeysParam, ZodTypeAny>;
|
|
963
|
+
type noUnrecognized<Obj extends object, Shape extends object> = { [k in keyof Obj]: k extends keyof Shape ? Obj[k] : never; };
|
|
786
964
|
declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, Output = objectOutputType<T, Catchall, UnknownKeys>, Input = objectInputType<T, Catchall, UnknownKeys>> extends ZodType<Output, ZodObjectDef<T, UnknownKeys, Catchall>, Input> {
|
|
787
965
|
private _cached;
|
|
788
966
|
_getCached(): {
|
|
@@ -810,18 +988,18 @@ declare class ZodObject<T extends ZodRawShape, UnknownKeys extends UnknownKeysPa
|
|
|
810
988
|
* upgrade if you are experiencing issues.
|
|
811
989
|
*/
|
|
812
990
|
merge<Incoming extends AnyZodObject, Augmentation extends Incoming["shape"]>(merging: Incoming): ZodObject<objectUtil.extendShape<T, Augmentation>, Incoming["_def"]["unknownKeys"], Incoming["_def"]["catchall"]>;
|
|
813
|
-
setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & { [k in Key]: Schema }, UnknownKeys, Catchall>;
|
|
991
|
+
setKey<Key extends string, Schema extends ZodTypeAny>(key: Key, schema: Schema): ZodObject<T & { [k in Key]: Schema; }, UnknownKeys, Catchall>;
|
|
814
992
|
catchall<Index extends ZodTypeAny>(index: Index): ZodObject<T, UnknownKeys, Index>;
|
|
815
|
-
pick<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
|
|
816
|
-
omit<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
993
|
+
pick<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<Pick<T, Extract<keyof T, keyof Mask>>, UnknownKeys, Catchall>;
|
|
994
|
+
omit<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>;
|
|
817
995
|
/**
|
|
818
996
|
* @deprecated
|
|
819
997
|
*/
|
|
820
998
|
deepPartial(): partialUtil.DeepPartial<this>;
|
|
821
|
-
partial(): ZodObject<{ [k in keyof T]: ZodOptional<T[k]
|
|
822
|
-
partial<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
|
|
823
|
-
required(): ZodObject<{ [k in keyof T]: deoptional<T[k]
|
|
824
|
-
required<Mask extends util.Exactly<{ [k in keyof T]?: true }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k] }>, UnknownKeys, Catchall>;
|
|
999
|
+
partial(): ZodObject<{ [k in keyof T]: ZodOptional<T[k]>; }, UnknownKeys, Catchall>;
|
|
1000
|
+
partial<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? ZodOptional<T[k]> : T[k]; }>, UnknownKeys, Catchall>;
|
|
1001
|
+
required(): ZodObject<{ [k in keyof T]: deoptional<T[k]>; }, UnknownKeys, Catchall>;
|
|
1002
|
+
required<Mask extends util.Exactly<{ [k in keyof T]?: true; }, Mask>>(mask: Mask): ZodObject<objectUtil.noNever<{ [k in keyof T]: k extends keyof Mask ? deoptional<T[k]> : T[k]; }>, UnknownKeys, Catchall>;
|
|
825
1003
|
keyof(): ZodEnum<enumUtil.UnionToTupleString<keyof T>>;
|
|
826
1004
|
static create: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
|
|
827
1005
|
static strictCreate: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
|
|
@@ -838,6 +1016,28 @@ declare class ZodUnion<T extends ZodUnionOptions> extends ZodType<T[number]["_ou
|
|
|
838
1016
|
get options(): T;
|
|
839
1017
|
static create: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
|
|
840
1018
|
}
|
|
1019
|
+
type ZodDiscriminatedUnionOption<Discriminator extends string> = ZodObject<{ [key in Discriminator]: ZodTypeAny; } & ZodRawShape, UnknownKeysParam, ZodTypeAny>;
|
|
1020
|
+
interface ZodDiscriminatedUnionDef<Discriminator extends string, Options extends readonly ZodDiscriminatedUnionOption<string>[] = ZodDiscriminatedUnionOption<string>[]> extends ZodTypeDef {
|
|
1021
|
+
discriminator: Discriminator;
|
|
1022
|
+
options: Options;
|
|
1023
|
+
optionsMap: Map<Primitive$1, ZodDiscriminatedUnionOption<any>>;
|
|
1024
|
+
typeName: ZodFirstPartyTypeKind.ZodDiscriminatedUnion;
|
|
1025
|
+
}
|
|
1026
|
+
declare class ZodDiscriminatedUnion<Discriminator extends string, Options extends readonly ZodDiscriminatedUnionOption<Discriminator>[]> extends ZodType<output<Options[number]>, ZodDiscriminatedUnionDef<Discriminator, Options>, input<Options[number]>> {
|
|
1027
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1028
|
+
get discriminator(): Discriminator;
|
|
1029
|
+
get options(): Options;
|
|
1030
|
+
get optionsMap(): Map<Primitive$1, ZodDiscriminatedUnionOption<any>>;
|
|
1031
|
+
/**
|
|
1032
|
+
* The constructor of the discriminated union schema. Its behaviour is very similar to that of the normal z.union() constructor.
|
|
1033
|
+
* However, it only allows a union of objects, all of which need to share a discriminator property. This property must
|
|
1034
|
+
* have a different value for each object in the union.
|
|
1035
|
+
* @param discriminator the name of the discriminator property
|
|
1036
|
+
* @param types an array of object schemas
|
|
1037
|
+
* @param params
|
|
1038
|
+
*/
|
|
1039
|
+
static create<Discriminator extends string, Types extends readonly [ZodDiscriminatedUnionOption<Discriminator>, ...ZodDiscriminatedUnionOption<Discriminator>[]]>(discriminator: Discriminator, options: Types, params?: RawCreateParams): ZodDiscriminatedUnion<Discriminator, Types>;
|
|
1040
|
+
}
|
|
841
1041
|
interface ZodIntersectionDef<T extends ZodTypeAny = ZodTypeAny, U extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
842
1042
|
left: T;
|
|
843
1043
|
right: U;
|
|
@@ -849,21 +1049,98 @@ declare class ZodIntersection<T extends ZodTypeAny, U extends ZodTypeAny> extend
|
|
|
849
1049
|
}
|
|
850
1050
|
type ZodTupleItems = [ZodTypeAny, ...ZodTypeAny[]];
|
|
851
1051
|
type AssertArray<T> = T extends any[] ? T : never;
|
|
852
|
-
type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_output"] : never }>;
|
|
1052
|
+
type OutputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_output"] : never; }>;
|
|
853
1053
|
type OutputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...OutputTypeOfTuple<T>, ...Rest["_output"][]] : OutputTypeOfTuple<T>;
|
|
854
|
-
type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_input"] : never }>;
|
|
1054
|
+
type InputTypeOfTuple<T extends ZodTupleItems | []> = AssertArray<{ [k in keyof T]: T[k] extends ZodType<any, any, any> ? T[k]["_input"] : never; }>;
|
|
855
1055
|
type InputTypeOfTupleWithRest<T extends ZodTupleItems | [], Rest extends ZodTypeAny | null = null> = Rest extends ZodTypeAny ? [...InputTypeOfTuple<T>, ...Rest["_input"][]] : InputTypeOfTuple<T>;
|
|
856
1056
|
interface ZodTupleDef<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodTypeDef {
|
|
857
1057
|
items: T;
|
|
858
1058
|
rest: Rest;
|
|
859
1059
|
typeName: ZodFirstPartyTypeKind.ZodTuple;
|
|
860
1060
|
}
|
|
1061
|
+
type AnyZodTuple = ZodTuple<[ZodTypeAny, ...ZodTypeAny[]] | [], ZodTypeAny | null>;
|
|
861
1062
|
declare class ZodTuple<T extends ZodTupleItems | [] = ZodTupleItems, Rest extends ZodTypeAny | null = null> extends ZodType<OutputTypeOfTupleWithRest<T, Rest>, ZodTupleDef<T, Rest>, InputTypeOfTupleWithRest<T, Rest>> {
|
|
862
1063
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
863
1064
|
get items(): T;
|
|
864
1065
|
rest<RestSchema extends ZodTypeAny>(rest: RestSchema): ZodTuple<T, RestSchema>;
|
|
865
1066
|
static create: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
|
|
866
1067
|
}
|
|
1068
|
+
interface ZodRecordDef<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1069
|
+
valueType: Value;
|
|
1070
|
+
keyType: Key;
|
|
1071
|
+
typeName: ZodFirstPartyTypeKind.ZodRecord;
|
|
1072
|
+
}
|
|
1073
|
+
type KeySchema = ZodType<string | number | symbol, any, any>;
|
|
1074
|
+
type RecordType<K extends string | number | symbol, V> = [string] extends [K] ? Record<K, V> : [number] extends [K] ? Record<K, V> : [symbol] extends [K] ? Record<K, V> : [BRAND<string | number | symbol>] extends [K] ? Record<K, V> : Partial<Record<K, V>>;
|
|
1075
|
+
declare class ZodRecord<Key extends KeySchema = ZodString, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<RecordType<Key["_output"], Value["_output"]>, ZodRecordDef<Key, Value>, RecordType<Key["_input"], Value["_input"]>> {
|
|
1076
|
+
get keySchema(): Key;
|
|
1077
|
+
get valueSchema(): Value;
|
|
1078
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1079
|
+
get element(): Value;
|
|
1080
|
+
static create<Value extends ZodTypeAny>(valueType: Value, params?: RawCreateParams): ZodRecord<ZodString, Value>;
|
|
1081
|
+
static create<Keys extends KeySchema, Value extends ZodTypeAny>(keySchema: Keys, valueType: Value, params?: RawCreateParams): ZodRecord<Keys, Value>;
|
|
1082
|
+
}
|
|
1083
|
+
interface ZodMapDef<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1084
|
+
valueType: Value;
|
|
1085
|
+
keyType: Key;
|
|
1086
|
+
typeName: ZodFirstPartyTypeKind.ZodMap;
|
|
1087
|
+
}
|
|
1088
|
+
declare class ZodMap<Key extends ZodTypeAny = ZodTypeAny, Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Map<Key["_output"], Value["_output"]>, ZodMapDef<Key, Value>, Map<Key["_input"], Value["_input"]>> {
|
|
1089
|
+
get keySchema(): Key;
|
|
1090
|
+
get valueSchema(): Value;
|
|
1091
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1092
|
+
static create: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams) => ZodMap<KeySchema, ValueSchema>;
|
|
1093
|
+
}
|
|
1094
|
+
interface ZodSetDef<Value extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1095
|
+
valueType: Value;
|
|
1096
|
+
typeName: ZodFirstPartyTypeKind.ZodSet;
|
|
1097
|
+
minSize: {
|
|
1098
|
+
value: number;
|
|
1099
|
+
message?: string | undefined;
|
|
1100
|
+
} | null;
|
|
1101
|
+
maxSize: {
|
|
1102
|
+
value: number;
|
|
1103
|
+
message?: string | undefined;
|
|
1104
|
+
} | null;
|
|
1105
|
+
}
|
|
1106
|
+
declare class ZodSet<Value extends ZodTypeAny = ZodTypeAny> extends ZodType<Set<Value["_output"]>, ZodSetDef<Value>, Set<Value["_input"]>> {
|
|
1107
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1108
|
+
min(minSize: number, message?: errorUtil.ErrMessage): this;
|
|
1109
|
+
max(maxSize: number, message?: errorUtil.ErrMessage): this;
|
|
1110
|
+
size(size: number, message?: errorUtil.ErrMessage): this;
|
|
1111
|
+
nonempty(message?: errorUtil.ErrMessage): ZodSet<Value>;
|
|
1112
|
+
static create: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>;
|
|
1113
|
+
}
|
|
1114
|
+
interface ZodFunctionDef<Args extends ZodTuple<any, any> = ZodTuple<any, any>, Returns extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1115
|
+
args: Args;
|
|
1116
|
+
returns: Returns;
|
|
1117
|
+
typeName: ZodFirstPartyTypeKind.ZodFunction;
|
|
1118
|
+
}
|
|
1119
|
+
type OuterTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args["_input"] extends Array<any> ? (...args: Args["_input"]) => Returns["_output"] : never;
|
|
1120
|
+
type InnerTypeOfFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> = Args["_output"] extends Array<any> ? (...args: Args["_output"]) => Returns["_input"] : never;
|
|
1121
|
+
declare class ZodFunction<Args extends ZodTuple<any, any>, Returns extends ZodTypeAny> extends ZodType<OuterTypeOfFunction<Args, Returns>, ZodFunctionDef<Args, Returns>, InnerTypeOfFunction<Args, Returns>> {
|
|
1122
|
+
_parse(input: ParseInput): ParseReturnType<any>;
|
|
1123
|
+
parameters(): Args;
|
|
1124
|
+
returnType(): Returns;
|
|
1125
|
+
args<Items extends Parameters<(typeof ZodTuple)["create"]>[0]>(...items: Items): ZodFunction<ZodTuple<Items, ZodUnknown>, Returns>;
|
|
1126
|
+
returns<NewReturnType extends ZodType<any, any, any>>(returnType: NewReturnType): ZodFunction<Args, NewReturnType>;
|
|
1127
|
+
implement<F extends InnerTypeOfFunction<Args, Returns>>(func: F): ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
|
|
1128
|
+
strictImplement(func: InnerTypeOfFunction<Args, Returns>): InnerTypeOfFunction<Args, Returns>;
|
|
1129
|
+
validate: <F extends InnerTypeOfFunction<Args, Returns>>(func: F) => ReturnType<F> extends Returns["_output"] ? (...args: Args["_input"]) => ReturnType<F> : OuterTypeOfFunction<Args, Returns>;
|
|
1130
|
+
static create(): ZodFunction<ZodTuple<[], ZodUnknown>, ZodUnknown>;
|
|
1131
|
+
static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>>(args: T): ZodFunction<T, ZodUnknown>;
|
|
1132
|
+
static create<T extends AnyZodTuple, U extends ZodTypeAny>(args: T, returns: U): ZodFunction<T, U>;
|
|
1133
|
+
static create<T extends AnyZodTuple = ZodTuple<[], ZodUnknown>, U extends ZodTypeAny = ZodUnknown>(args: T, returns: U, params?: RawCreateParams): ZodFunction<T, U>;
|
|
1134
|
+
}
|
|
1135
|
+
interface ZodLazyDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
1136
|
+
getter: () => T;
|
|
1137
|
+
typeName: ZodFirstPartyTypeKind.ZodLazy;
|
|
1138
|
+
}
|
|
1139
|
+
declare class ZodLazy<T extends ZodTypeAny> extends ZodType<output<T>, ZodLazyDef<T>, input<T>> {
|
|
1140
|
+
get schema(): T;
|
|
1141
|
+
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
1142
|
+
static create: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner>;
|
|
1143
|
+
}
|
|
867
1144
|
interface ZodLiteralDef<T = any> extends ZodTypeDef {
|
|
868
1145
|
value: T;
|
|
869
1146
|
typeName: ZodFirstPartyTypeKind.ZodLiteral;
|
|
@@ -873,13 +1150,15 @@ declare class ZodLiteral<T> extends ZodType<T, ZodLiteralDef<T>, T> {
|
|
|
873
1150
|
get value(): T;
|
|
874
1151
|
static create: <Value extends Primitive$1>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
|
|
875
1152
|
}
|
|
1153
|
+
type ArrayKeys = keyof any[];
|
|
1154
|
+
type Indices<T> = Exclude<keyof T, ArrayKeys>;
|
|
876
1155
|
type EnumValues<T extends string = string> = readonly [T, ...T[]];
|
|
877
|
-
type Values<T extends EnumValues> = { [k in T[number]]: k };
|
|
1156
|
+
type Values<T extends EnumValues> = { [k in T[number]]: k; };
|
|
878
1157
|
interface ZodEnumDef<T extends EnumValues = EnumValues> extends ZodTypeDef {
|
|
879
1158
|
values: T;
|
|
880
1159
|
typeName: ZodFirstPartyTypeKind.ZodEnum;
|
|
881
1160
|
}
|
|
882
|
-
type Writeable<T> = { -readonly [P in keyof T]: T[P] };
|
|
1161
|
+
type Writeable<T> = { -readonly [P in keyof T]: T[P]; };
|
|
883
1162
|
type FilterEnum<Values, ToExclude> = Values extends [] ? [] : Values extends [infer Head, ...infer Rest] ? Head extends ToExclude ? FilterEnum<Rest, ToExclude> : [Head, ...FilterEnum<Rest, ToExclude>] : never;
|
|
884
1163
|
type typecast<A, T> = A extends T ? A : never;
|
|
885
1164
|
declare function createZodEnum<U extends string, T extends Readonly<[U, ...U[]]>>(values: T, params?: RawCreateParams): ZodEnum<Writeable<T>>;
|
|
@@ -895,6 +1174,20 @@ declare class ZodEnum<T extends [string, ...string[]]> extends ZodType<T[number]
|
|
|
895
1174
|
exclude<ToExclude extends readonly [T[number], ...T[number][]]>(values: ToExclude, newDef?: RawCreateParams): ZodEnum<typecast<Writeable<FilterEnum<T, ToExclude[number]>>, [string, ...string[]]>>;
|
|
896
1175
|
static create: typeof createZodEnum;
|
|
897
1176
|
}
|
|
1177
|
+
interface ZodNativeEnumDef<T extends EnumLike = EnumLike> extends ZodTypeDef {
|
|
1178
|
+
values: T;
|
|
1179
|
+
typeName: ZodFirstPartyTypeKind.ZodNativeEnum;
|
|
1180
|
+
}
|
|
1181
|
+
type EnumLike = {
|
|
1182
|
+
[k: string]: string | number;
|
|
1183
|
+
[nu: number]: string;
|
|
1184
|
+
};
|
|
1185
|
+
declare class ZodNativeEnum<T extends EnumLike> extends ZodType<T[keyof T], ZodNativeEnumDef<T>, T[keyof T]> {
|
|
1186
|
+
_cache: Set<T[keyof T]> | undefined;
|
|
1187
|
+
_parse(input: ParseInput): ParseReturnType<T[keyof T]>;
|
|
1188
|
+
get enum(): T;
|
|
1189
|
+
static create: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements>;
|
|
1190
|
+
}
|
|
898
1191
|
interface ZodPromiseDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
899
1192
|
type: T;
|
|
900
1193
|
typeName: ZodFirstPartyTypeKind.ZodPromise;
|
|
@@ -904,6 +1197,8 @@ declare class ZodPromise<T extends ZodTypeAny> extends ZodType<Promise<T["_outpu
|
|
|
904
1197
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
905
1198
|
static create: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
|
|
906
1199
|
}
|
|
1200
|
+
type Refinement<T> = (arg: T, ctx: RefinementCtx) => any;
|
|
1201
|
+
type SuperRefinement<T> = (arg: T, ctx: RefinementCtx) => void | Promise<void>;
|
|
907
1202
|
type RefinementEffect<T> = {
|
|
908
1203
|
type: "refinement";
|
|
909
1204
|
refinement: (arg: T, ctx: RefinementCtx) => any;
|
|
@@ -933,6 +1228,7 @@ interface ZodOptionalDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
933
1228
|
innerType: T;
|
|
934
1229
|
typeName: ZodFirstPartyTypeKind.ZodOptional;
|
|
935
1230
|
}
|
|
1231
|
+
type ZodOptionalType<T extends ZodTypeAny> = ZodOptional<T>;
|
|
936
1232
|
declare class ZodOptional<T extends ZodTypeAny> extends ZodType<T["_output"] | undefined, ZodOptionalDef<T>, T["_input"] | undefined> {
|
|
937
1233
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
938
1234
|
unwrap(): T;
|
|
@@ -942,6 +1238,7 @@ interface ZodNullableDef<T extends ZodTypeAny = ZodTypeAny> extends ZodTypeDef {
|
|
|
942
1238
|
innerType: T;
|
|
943
1239
|
typeName: ZodFirstPartyTypeKind.ZodNullable;
|
|
944
1240
|
}
|
|
1241
|
+
type ZodNullableType<T extends ZodTypeAny> = ZodNullable<T>;
|
|
945
1242
|
declare class ZodNullable<T extends ZodTypeAny> extends ZodType<T["_output"] | null, ZodNullableDef<T>, T["_input"] | null> {
|
|
946
1243
|
_parse(input: ParseInput): ParseReturnType<this["_output"]>;
|
|
947
1244
|
unwrap(): T;
|
|
@@ -974,13 +1271,20 @@ declare class ZodCatch<T extends ZodTypeAny> extends ZodType<T["_output"], ZodCa
|
|
|
974
1271
|
catch: Inner["_output"] | (() => Inner["_output"]);
|
|
975
1272
|
}) => ZodCatch<Inner>;
|
|
976
1273
|
}
|
|
1274
|
+
interface ZodNaNDef extends ZodTypeDef {
|
|
1275
|
+
typeName: ZodFirstPartyTypeKind.ZodNaN;
|
|
1276
|
+
}
|
|
1277
|
+
declare class ZodNaN extends ZodType<number, ZodNaNDef, number> {
|
|
1278
|
+
_parse(input: ParseInput): ParseReturnType<any>;
|
|
1279
|
+
static create: (params?: RawCreateParams) => ZodNaN;
|
|
1280
|
+
}
|
|
977
1281
|
interface ZodBrandedDef<T extends ZodTypeAny> extends ZodTypeDef {
|
|
978
1282
|
type: T;
|
|
979
1283
|
typeName: ZodFirstPartyTypeKind.ZodBranded;
|
|
980
1284
|
}
|
|
981
1285
|
declare const BRAND: unique symbol;
|
|
982
1286
|
type BRAND<T extends string | number | symbol> = {
|
|
983
|
-
[BRAND]: { [k in T]: true };
|
|
1287
|
+
[BRAND]: { [k in T]: true; };
|
|
984
1288
|
};
|
|
985
1289
|
declare class ZodBranded<T extends ZodTypeAny, B extends string | number | symbol> extends ZodType<T["_output"] & BRAND<B>, ZodBrandedDef<T>, T["_input"]> {
|
|
986
1290
|
_parse(input: ParseInput): ParseReturnType<any>;
|
|
@@ -1008,6 +1312,24 @@ declare class ZodReadonly<T extends ZodTypeAny> extends ZodType<MakeReadonly<T["
|
|
|
1008
1312
|
static create: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodReadonly<Inner>;
|
|
1009
1313
|
unwrap(): T;
|
|
1010
1314
|
}
|
|
1315
|
+
type CustomParams = CustomErrorParams & {
|
|
1316
|
+
fatal?: boolean;
|
|
1317
|
+
};
|
|
1318
|
+
declare function custom<T>(check?: (data: any) => any, _params?: string | CustomParams | ((input: any) => CustomParams),
|
|
1319
|
+
/**
|
|
1320
|
+
* @deprecated
|
|
1321
|
+
*
|
|
1322
|
+
* Pass `fatal` into the params object instead:
|
|
1323
|
+
*
|
|
1324
|
+
* ```ts
|
|
1325
|
+
* z.string().custom((val) => val.length > 5, { fatal: false })
|
|
1326
|
+
* ```
|
|
1327
|
+
*
|
|
1328
|
+
*/
|
|
1329
|
+
fatal?: boolean): ZodType<T, ZodTypeDef, T>;
|
|
1330
|
+
declare const late: {
|
|
1331
|
+
object: <Shape extends ZodRawShape>(shape: () => Shape, params?: RawCreateParams) => ZodObject<Shape, "strip">;
|
|
1332
|
+
};
|
|
1011
1333
|
declare enum ZodFirstPartyTypeKind {
|
|
1012
1334
|
ZodString = "ZodString",
|
|
1013
1335
|
ZodNumber = "ZodNumber",
|
|
@@ -1046,6 +1368,69 @@ declare enum ZodFirstPartyTypeKind {
|
|
|
1046
1368
|
ZodPipeline = "ZodPipeline",
|
|
1047
1369
|
ZodReadonly = "ZodReadonly"
|
|
1048
1370
|
}
|
|
1371
|
+
type ZodFirstPartySchemaTypes = ZodString | ZodNumber | ZodNaN | ZodBigInt | ZodBoolean | ZodDate | ZodUndefined | ZodNull | ZodAny | ZodUnknown | ZodNever | ZodVoid | ZodArray<any, any> | ZodObject<any, any, any> | ZodUnion<any> | ZodDiscriminatedUnion<any, any> | ZodIntersection<any, any> | ZodTuple<any, any> | ZodRecord<any, any> | ZodMap<any> | ZodSet<any> | ZodFunction<any, any> | ZodLazy<any> | ZodLiteral<any> | ZodEnum<any> | ZodEffects<any, any, any> | ZodNativeEnum<any> | ZodOptional<any> | ZodNullable<any> | ZodDefault<any> | ZodCatch<any> | ZodPromise<any> | ZodBranded<any, any> | ZodPipeline<any, any> | ZodReadonly<any> | ZodSymbol;
|
|
1372
|
+
declare abstract class Class {
|
|
1373
|
+
constructor(..._: any[]);
|
|
1374
|
+
}
|
|
1375
|
+
declare const instanceOfType: <T extends typeof Class>(cls: T, params?: CustomParams) => ZodType<InstanceType<T>, ZodTypeDef, InstanceType<T>>;
|
|
1376
|
+
declare const stringType: (params?: RawCreateParams & {
|
|
1377
|
+
coerce?: true;
|
|
1378
|
+
}) => ZodString;
|
|
1379
|
+
declare const numberType: (params?: RawCreateParams & {
|
|
1380
|
+
coerce?: boolean;
|
|
1381
|
+
}) => ZodNumber;
|
|
1382
|
+
declare const nanType: (params?: RawCreateParams) => ZodNaN;
|
|
1383
|
+
declare const bigIntType: (params?: RawCreateParams & {
|
|
1384
|
+
coerce?: boolean;
|
|
1385
|
+
}) => ZodBigInt;
|
|
1386
|
+
declare const booleanType: (params?: RawCreateParams & {
|
|
1387
|
+
coerce?: boolean;
|
|
1388
|
+
}) => ZodBoolean;
|
|
1389
|
+
declare const dateType: (params?: RawCreateParams & {
|
|
1390
|
+
coerce?: boolean;
|
|
1391
|
+
}) => ZodDate;
|
|
1392
|
+
declare const symbolType: (params?: RawCreateParams) => ZodSymbol;
|
|
1393
|
+
declare const undefinedType: (params?: RawCreateParams) => ZodUndefined;
|
|
1394
|
+
declare const nullType: (params?: RawCreateParams) => ZodNull;
|
|
1395
|
+
declare const anyType: (params?: RawCreateParams) => ZodAny;
|
|
1396
|
+
declare const unknownType: (params?: RawCreateParams) => ZodUnknown;
|
|
1397
|
+
declare const neverType: (params?: RawCreateParams) => ZodNever;
|
|
1398
|
+
declare const voidType: (params?: RawCreateParams) => ZodVoid;
|
|
1399
|
+
declare const arrayType: <El extends ZodTypeAny>(schema: El, params?: RawCreateParams) => ZodArray<El>;
|
|
1400
|
+
declare const objectType: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strip", ZodTypeAny, objectOutputType<Shape, ZodTypeAny, "strip">, objectInputType<Shape, ZodTypeAny, "strip">>;
|
|
1401
|
+
declare const strictObjectType: <Shape extends ZodRawShape>(shape: Shape, params?: RawCreateParams) => ZodObject<Shape, "strict">;
|
|
1402
|
+
declare const unionType: <Options extends Readonly<[ZodTypeAny, ZodTypeAny, ...ZodTypeAny[]]>>(types: Options, params?: RawCreateParams) => ZodUnion<Options>;
|
|
1403
|
+
declare const discriminatedUnionType: typeof ZodDiscriminatedUnion.create;
|
|
1404
|
+
declare const intersectionType: <TSchema extends ZodTypeAny, USchema extends ZodTypeAny>(left: TSchema, right: USchema, params?: RawCreateParams) => ZodIntersection<TSchema, USchema>;
|
|
1405
|
+
declare const tupleType: <Items extends [ZodTypeAny, ...ZodTypeAny[]] | []>(schemas: Items, params?: RawCreateParams) => ZodTuple<Items, null>;
|
|
1406
|
+
declare const recordType: typeof ZodRecord.create;
|
|
1407
|
+
declare const mapType: <KeySchema extends ZodTypeAny = ZodTypeAny, ValueSchema extends ZodTypeAny = ZodTypeAny>(keyType: KeySchema, valueType: ValueSchema, params?: RawCreateParams) => ZodMap<KeySchema, ValueSchema>;
|
|
1408
|
+
declare const setType: <ValueSchema extends ZodTypeAny = ZodTypeAny>(valueType: ValueSchema, params?: RawCreateParams) => ZodSet<ValueSchema>;
|
|
1409
|
+
declare const functionType: typeof ZodFunction.create;
|
|
1410
|
+
declare const lazyType: <Inner extends ZodTypeAny>(getter: () => Inner, params?: RawCreateParams) => ZodLazy<Inner>;
|
|
1411
|
+
declare const literalType: <Value extends Primitive$1>(value: Value, params?: RawCreateParams) => ZodLiteral<Value>;
|
|
1412
|
+
declare const enumType: typeof createZodEnum;
|
|
1413
|
+
declare const nativeEnumType: <Elements extends EnumLike>(values: Elements, params?: RawCreateParams) => ZodNativeEnum<Elements>;
|
|
1414
|
+
declare const promiseType: <Inner extends ZodTypeAny>(schema: Inner, params?: RawCreateParams) => ZodPromise<Inner>;
|
|
1415
|
+
declare const effectsType: <I extends ZodTypeAny>(schema: I, effect: Effect<I["_output"]>, params?: RawCreateParams) => ZodEffects<I, I["_output"]>;
|
|
1416
|
+
declare const optionalType: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodOptional<Inner>;
|
|
1417
|
+
declare const nullableType: <Inner extends ZodTypeAny>(type: Inner, params?: RawCreateParams) => ZodNullable<Inner>;
|
|
1418
|
+
declare const preprocessType: <I extends ZodTypeAny>(preprocess: (arg: unknown, ctx: RefinementCtx) => unknown, schema: I, params?: RawCreateParams) => ZodEffects<I, I["_output"], unknown>;
|
|
1419
|
+
declare const pipelineType: typeof ZodPipeline.create;
|
|
1420
|
+
declare const ostring: () => ZodOptional<ZodString>;
|
|
1421
|
+
declare const onumber: () => ZodOptional<ZodNumber>;
|
|
1422
|
+
declare const oboolean: () => ZodOptional<ZodBoolean>;
|
|
1423
|
+
declare const coerce: {
|
|
1424
|
+
string: (typeof ZodString)["create"];
|
|
1425
|
+
number: (typeof ZodNumber)["create"];
|
|
1426
|
+
boolean: (typeof ZodBoolean)["create"];
|
|
1427
|
+
bigint: (typeof ZodBigInt)["create"];
|
|
1428
|
+
date: (typeof ZodDate)["create"];
|
|
1429
|
+
};
|
|
1430
|
+
declare const NEVER: never;
|
|
1431
|
+
declare namespace external_d_exports {
|
|
1432
|
+
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$1 as 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 };
|
|
1433
|
+
}
|
|
1049
1434
|
//#endregion
|
|
1050
1435
|
//#region ../node_modules/.pnpm/@milaboratories+pl-error-like@1.12.10/node_modules/@milaboratories/pl-error-like/dist/error_like_shape.d.ts
|
|
1051
1436
|
//#region src/error_like_shape.d.ts
|
|
@@ -1098,7 +1483,6 @@ type StandardErrorLike = TypeOf<typeof BaseStandardErrorLike> & {
|
|
|
1098
1483
|
declare const StandardErrorLike: ZodType<StandardErrorLike>;
|
|
1099
1484
|
declare const ErrorLike: ZodUnion<[ZodType<StandardErrorLike, ZodTypeDef, StandardErrorLike>, ZodType<PlErrorLike, ZodTypeDef, PlErrorLike>]>;
|
|
1100
1485
|
type ErrorLike = TypeOf<typeof ErrorLike>;
|
|
1101
|
-
/** Converts everything into ErrorLike. */
|
|
1102
1486
|
//#endregion
|
|
1103
1487
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/common_types.d.ts
|
|
1104
1488
|
type OutputWithStatus<T> = {
|
|
@@ -1129,7 +1513,7 @@ type JsonValue = JsonPrimitive | JsonValue[] | {
|
|
|
1129
1513
|
[key: string]: JsonValue;
|
|
1130
1514
|
};
|
|
1131
1515
|
type NotAssignableToJson = bigint | symbol | Function;
|
|
1132
|
-
type JsonCompatible<T> = unknown extends T ? unknown : [T] extends [JsonValue] ? T : [T] extends [NotAssignableToJson] ? never : { [P in keyof T]: [Exclude<T[P], undefined>] extends [JsonValue] ? T[P] : [Exclude<T[P], undefined>] extends [NotAssignableToJson] ? never : JsonCompatible<T[P]
|
|
1516
|
+
type JsonCompatible<T> = unknown extends T ? unknown : [T] extends [JsonValue] ? T : [T] extends [NotAssignableToJson] ? never : { [P in keyof T]: [Exclude<T[P], undefined>] extends [JsonValue] ? T[P] : [Exclude<T[P], undefined>] extends [NotAssignableToJson] ? never : JsonCompatible<T[P]>; };
|
|
1133
1517
|
type StringifiedJson<T = unknown> = JsonCompatible<T> extends never ? never : string & {
|
|
1134
1518
|
__json_stringified: T;
|
|
1135
1519
|
};
|
|
@@ -1148,7 +1532,7 @@ type CanonicalizedJson<T = unknown> = JsonCompatible<T> extends never ? never :
|
|
|
1148
1532
|
* @template Href typed href to represent navigation state
|
|
1149
1533
|
*/
|
|
1150
1534
|
type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = {
|
|
1151
|
-
/** Block arguments passed to the workflow */args: Args;
|
|
1535
|
+
/** Block arguments passed to the workflow */ args: Args;
|
|
1152
1536
|
/** UI State persisted in the block state but not passed to the backend
|
|
1153
1537
|
* template */
|
|
1154
1538
|
ui: UiState; /** Outputs rendered with block config */
|
|
@@ -1157,16 +1541,16 @@ type BlockState<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsB
|
|
|
1157
1541
|
readonly author: AuthorMarker | undefined;
|
|
1158
1542
|
};
|
|
1159
1543
|
type BlockStateV3<_Data = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> = {
|
|
1160
|
-
/** Block storage persisted in the block state */blockStorage: StringifiedJson; /** Outputs rendered with block config */
|
|
1544
|
+
/** Block storage persisted in the block state */ blockStorage: StringifiedJson; /** Outputs rendered with block config */
|
|
1161
1545
|
outputs: Outputs; /** Current navigation state */
|
|
1162
1546
|
navigationState: NavigationState<Href>;
|
|
1163
1547
|
readonly author: AuthorMarker | undefined;
|
|
1164
|
-
};
|
|
1548
|
+
};
|
|
1165
1549
|
//#endregion
|
|
1166
1550
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/branding.d.ts
|
|
1167
1551
|
//#region src/branding.d.ts
|
|
1168
|
-
type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B };
|
|
1169
|
-
type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
|
|
1552
|
+
type Brand<B, K extends string = "__pl_model_brand__"> = { [key in K]: B; };
|
|
1553
|
+
type Branded$1<T, B, K extends string = "__pl_model_brand__"> = T & Brand<B, K>;
|
|
1170
1554
|
//#endregion
|
|
1171
1555
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/dialog/index.d.ts
|
|
1172
1556
|
//#region src/dialog/index.d.ts
|
|
@@ -1199,7 +1583,7 @@ interface ShowSaveDialogResult {
|
|
|
1199
1583
|
*/
|
|
1200
1584
|
interface DialogService {
|
|
1201
1585
|
showSaveDialog(options: ShowSaveDialogOptions): Promise<ShowSaveDialogResult>;
|
|
1202
|
-
}
|
|
1586
|
+
}
|
|
1203
1587
|
//#endregion
|
|
1204
1588
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/pool_entry.d.ts
|
|
1205
1589
|
//#region src/pool_entry.d.ts
|
|
@@ -1215,10 +1599,6 @@ interface PoolEntry<K extends string = string, R extends {} = {}> extends Dispos
|
|
|
1215
1599
|
*/
|
|
1216
1600
|
readonly unref: () => void;
|
|
1217
1601
|
}
|
|
1218
|
-
/**
|
|
1219
|
-
* Wraps a PoolEntry for use with `using`. Auto-calls `unref()` at end of scope
|
|
1220
|
-
* unless `keep()` is called to transfer ownership to the caller.
|
|
1221
|
-
*/
|
|
1222
1602
|
//#endregion
|
|
1223
1603
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_common.d.ts
|
|
1224
1604
|
//#region src/drivers/pframe/table_common.d.ts
|
|
@@ -1261,7 +1641,7 @@ type PVectorDataString = (null | string)[];
|
|
|
1261
1641
|
type PVectorDataBytes = (null | Uint8Array)[];
|
|
1262
1642
|
type PVectorDataTyped<DataType extends ValueType> = DataType extends typeof ValueType.Int ? PVectorDataInt : DataType extends typeof ValueType.Long ? PVectorDataLong : DataType extends typeof ValueType.Float ? PVectorDataFloat : DataType extends typeof ValueType.Double ? PVectorDataDouble : DataType extends typeof ValueType.String ? PVectorDataString : DataType extends typeof ValueType.Bytes ? PVectorDataBytes : never;
|
|
1263
1643
|
type PTableVectorTyped<DataType extends ValueType> = {
|
|
1264
|
-
/** Stored data type */readonly type: DataType; /** Values for present positions */
|
|
1644
|
+
/** Stored data type */ readonly type: DataType; /** Values for present positions */
|
|
1265
1645
|
readonly data: PVectorDataTyped<DataType>;
|
|
1266
1646
|
/**
|
|
1267
1647
|
* Encoded bit array marking some elements of this vector as NA,
|
|
@@ -1275,17 +1655,16 @@ type PTableVectorTyped<DataType extends ValueType> = {
|
|
|
1275
1655
|
type PTableVector = PTableVectorTyped<ValueType>;
|
|
1276
1656
|
/** Used in requests to partially retrieve table's data */
|
|
1277
1657
|
type TableRange = {
|
|
1278
|
-
/** Index of the first record to retrieve */readonly offset: number; /** Block length */
|
|
1658
|
+
/** Index of the first record to retrieve */ readonly offset: number; /** Block length */
|
|
1279
1659
|
readonly length: number;
|
|
1280
1660
|
};
|
|
1281
1661
|
/** Unified information about table shape */
|
|
1282
1662
|
type PTableShape = {
|
|
1283
|
-
/** Number of unified table columns, including all axes and PColumn values */columns: number; /** Number of rows */
|
|
1663
|
+
/** Number of unified table columns, including all axes and PColumn values */ columns: number; /** Number of rows */
|
|
1284
1664
|
rows: number;
|
|
1285
1665
|
};
|
|
1286
1666
|
/** Supported formats for PTable file download. */
|
|
1287
1667
|
type PTableDownloadFormat = "csv" | "tsv";
|
|
1288
|
-
/** Compression applied to the written file. */
|
|
1289
1668
|
/** Options for downloading PTable data to a file. */
|
|
1290
1669
|
interface WritePTableToFsOptions {
|
|
1291
1670
|
path: string;
|
|
@@ -1319,11 +1698,6 @@ interface WritePTableToFsResult {
|
|
|
1319
1698
|
rowsWritten: number;
|
|
1320
1699
|
bytesWritten: number;
|
|
1321
1700
|
}
|
|
1322
|
-
/**
|
|
1323
|
-
* Maximum number of data rows allowed per sheet in an `xlsx` export, kept below
|
|
1324
|
-
* Excel's hard limit of 1,048,576. The driver rejects oversized `xlsx` exports
|
|
1325
|
-
* (see {@link PFrameDriver.exportPTable}); UIs use it to gate the `xlsx` option.
|
|
1326
|
-
*/
|
|
1327
1701
|
/** Options for {@link PFrameDriver.exportPTable}. */
|
|
1328
1702
|
interface ExportPTableOptions {
|
|
1329
1703
|
/** Destination file path; its extension selects the output format
|
|
@@ -1344,7 +1718,7 @@ interface ExportPTableOptions {
|
|
|
1344
1718
|
* read. Older runtimes ignore this field and use {@link columnIndices} alone.
|
|
1345
1719
|
*/
|
|
1346
1720
|
headerNames?: string[];
|
|
1347
|
-
}
|
|
1721
|
+
}
|
|
1348
1722
|
//#endregion
|
|
1349
1723
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/data_info.d.ts
|
|
1350
1724
|
//#region src/drivers/pframe/data_info.d.ts
|
|
@@ -1361,16 +1735,12 @@ type PColumnValue = null | number | string;
|
|
|
1361
1735
|
* Can be an array of strings or numbers.
|
|
1362
1736
|
*/
|
|
1363
1737
|
type PColumnKey = (number | string)[];
|
|
1364
|
-
/**
|
|
1365
|
-
* Represents a single entry in a PColumn's data structure.
|
|
1366
|
-
* Contains a key and a value.
|
|
1367
|
-
*/
|
|
1368
1738
|
/**
|
|
1369
1739
|
* Represents column data stored as a simple JSON structure.
|
|
1370
1740
|
* Used for small datasets that can be efficiently stored directly in memory.
|
|
1371
1741
|
*/
|
|
1372
1742
|
type JsonDataInfo = {
|
|
1373
|
-
/** Identifier for this data format ('Json') */type: "Json"; /** Number of axes that make up the complete key (tuple length) */
|
|
1743
|
+
/** Identifier for this data format ('Json') */ type: "Json"; /** Number of axes that make up the complete key (tuple length) */
|
|
1374
1744
|
keyLength: number;
|
|
1375
1745
|
/**
|
|
1376
1746
|
* Key-value pairs where keys are stringified tuples of axis values
|
|
@@ -1383,7 +1753,7 @@ type JsonDataInfo = {
|
|
|
1383
1753
|
* Used for larger datasets that need to be split into manageable chunks.
|
|
1384
1754
|
*/
|
|
1385
1755
|
type JsonPartitionedDataInfo<Blob> = {
|
|
1386
|
-
/** Identifier for this data format ('JsonPartitioned') */type: "JsonPartitioned"; /** Number of leading axes used for partitioning */
|
|
1756
|
+
/** Identifier for this data format ('JsonPartitioned') */ type: "JsonPartitioned"; /** Number of leading axes used for partitioning */
|
|
1387
1757
|
partitionKeyLength: number; /** Map of stringified partition keys to blob references */
|
|
1388
1758
|
parts: Record<string, Blob>;
|
|
1389
1759
|
};
|
|
@@ -1392,7 +1762,7 @@ type JsonPartitionedDataInfo<Blob> = {
|
|
|
1392
1762
|
* Used for efficient storage and retrieval of column data in binary format.
|
|
1393
1763
|
*/
|
|
1394
1764
|
type BinaryChunk<Blob> = {
|
|
1395
|
-
/** Binary blob containing structured index information */index: Blob; /** Binary blob containing the actual values */
|
|
1765
|
+
/** Binary blob containing structured index information */ index: Blob; /** Binary blob containing the actual values */
|
|
1396
1766
|
values: Blob;
|
|
1397
1767
|
};
|
|
1398
1768
|
/**
|
|
@@ -1400,12 +1770,12 @@ type BinaryChunk<Blob> = {
|
|
|
1400
1770
|
* Optimized for efficient storage and retrieval of large datasets.
|
|
1401
1771
|
*/
|
|
1402
1772
|
type BinaryPartitionedDataInfo<Blob> = {
|
|
1403
|
-
/** Identifier for this data format ('BinaryPartitioned') */type: "BinaryPartitioned"; /** Number of leading axes used for partitioning */
|
|
1773
|
+
/** Identifier for this data format ('BinaryPartitioned') */ type: "BinaryPartitioned"; /** Number of leading axes used for partitioning */
|
|
1404
1774
|
partitionKeyLength: number; /** Map of stringified partition keys to binary chunks */
|
|
1405
1775
|
parts: Record<string, BinaryChunk<Blob>>;
|
|
1406
1776
|
};
|
|
1407
1777
|
type ParquetPartitionedDataInfo<Blob> = {
|
|
1408
|
-
/** Identifier for this data format ('ParquetPartitioned') */type: "ParquetPartitioned"; /** Number of leading axes used for partitioning */
|
|
1778
|
+
/** Identifier for this data format ('ParquetPartitioned') */ type: "ParquetPartitioned"; /** Number of leading axes used for partitioning */
|
|
1409
1779
|
partitionKeyLength: number; /** Map of stringified partition keys to parquet files */
|
|
1410
1780
|
parts: Record<string, Blob>;
|
|
1411
1781
|
};
|
|
@@ -1416,12 +1786,6 @@ type ParquetPartitionedDataInfo<Blob> = {
|
|
|
1416
1786
|
* @template Blob - Type parameter representing the storage reference type (could be ResourceInfo, PFrameBlobId, etc.)
|
|
1417
1787
|
*/
|
|
1418
1788
|
type DataInfo<Blob> = JsonDataInfo | JsonPartitionedDataInfo<Blob> | BinaryPartitionedDataInfo<Blob> | ParquetPartitionedDataInfo<Blob>;
|
|
1419
|
-
/**
|
|
1420
|
-
* Type guard function that checks if the given value is a valid DataInfo.
|
|
1421
|
-
*
|
|
1422
|
-
* @param value - The value to check
|
|
1423
|
-
* @returns True if the value is a valid DataInfo, false otherwise
|
|
1424
|
-
*/
|
|
1425
1789
|
/**
|
|
1426
1790
|
* Represents a single key-value entry in a column's explicit data structure.
|
|
1427
1791
|
* Used when directly instantiating PColumns with explicit data.
|
|
@@ -1435,9 +1799,6 @@ type PColumnValuesEntry = {
|
|
|
1435
1799
|
* Used for lightweight explicit instantiation of PColumns.
|
|
1436
1800
|
*/
|
|
1437
1801
|
type PColumnValues = PColumnValuesEntry[];
|
|
1438
|
-
/**
|
|
1439
|
-
* Entry-based representation of JsonDataInfo
|
|
1440
|
-
*/
|
|
1441
1802
|
//#endregion
|
|
1442
1803
|
//#region ../node_modules/.pnpm/@milaboratories+helpers@1.14.5/node_modules/@milaboratories/helpers/dist/types/brand.d.ts
|
|
1443
1804
|
//#region src/types/brand.d.ts
|
|
@@ -1486,7 +1847,7 @@ type ColumnOverriddenId = Branded<CanonicalizedJson<ColumnOverriddenKey>, "Colum
|
|
|
1486
1847
|
* `typeSpec` shape carried by the data layer (`{ axes, column }`).
|
|
1487
1848
|
*/
|
|
1488
1849
|
type ColumnTypeSpec = {
|
|
1489
|
-
/** List of axis value types defining the dimensions of the data */axes: AxisValueType[]; /** The single column value type */
|
|
1850
|
+
/** List of axis value types defining the dimensions of the data */ axes: AxisValueType[]; /** The single column value type */
|
|
1490
1851
|
column: ColumnValueType;
|
|
1491
1852
|
};
|
|
1492
1853
|
/**
|
|
@@ -2173,7 +2534,7 @@ interface QuerySliceAxes<Q, A> {
|
|
|
2173
2534
|
input: Q;
|
|
2174
2535
|
/** List of axis filters to apply (at least one required) */
|
|
2175
2536
|
axisFilters: {
|
|
2176
|
-
/** Axis to filter. `SingleAxisSelector` at the spec layer; axis index at the data layer. */axisSelector: A; /** The constant value to filter the axis to */
|
|
2537
|
+
/** Axis to filter. `SingleAxisSelector` at the spec layer; axis index at the data layer. */ axisSelector: A; /** The constant value to filter the axis to */
|
|
2177
2538
|
constant: string | number;
|
|
2178
2539
|
}[];
|
|
2179
2540
|
}
|
|
@@ -2523,7 +2884,7 @@ interface QuerySpecOverride<Q, SO> {
|
|
|
2523
2884
|
input: Q;
|
|
2524
2885
|
/** Spec override patch to overlay on the inner spec. */
|
|
2525
2886
|
override: SO;
|
|
2526
|
-
}
|
|
2887
|
+
}
|
|
2527
2888
|
//#endregion
|
|
2528
2889
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_data.d.ts
|
|
2529
2890
|
//#region src/drivers/pframe/query/query_data.d.ts
|
|
@@ -2534,7 +2895,7 @@ interface QuerySpecOverride<Q, SO> {
|
|
|
2534
2895
|
* Used in data layer to carry type information alongside column references.
|
|
2535
2896
|
*/
|
|
2536
2897
|
type ColumnIdAndTypeSpec = {
|
|
2537
|
-
/** Unique identifier of the column */id: PObjectId; /** Type specification defining the axes and the single column value type */
|
|
2898
|
+
/** Unique identifier of the column */ id: PObjectId; /** Type specification defining the axes and the single column value type */
|
|
2538
2899
|
spec: ColumnTypeSpec;
|
|
2539
2900
|
};
|
|
2540
2901
|
/**
|
|
@@ -2572,7 +2933,7 @@ type DataQueryOuterJoin = QueryOuterJoin<DataQueryJoinEntry>;
|
|
|
2572
2933
|
* - `oneSideAxesIndices` — which axis indices in the joined result to project out
|
|
2573
2934
|
*/
|
|
2574
2935
|
type DataQueryLinkerJoinLinker = {
|
|
2575
|
-
/** Linker column reference. */column: PObjectId; /** Linker's axes mapped into the joined result. */
|
|
2936
|
+
/** Linker column reference. */ column: PObjectId; /** Linker's axes mapped into the joined result. */
|
|
2576
2937
|
axesMapping: number[]; /** Axis indices (in the joined result) to project out — the linker's one-side axes. */
|
|
2577
2938
|
oneSideAxesIndices: number[];
|
|
2578
2939
|
};
|
|
@@ -2603,7 +2964,7 @@ type DataExprAxisRef = ExprAxisRef<number>;
|
|
|
2603
2964
|
/** @see ExprColumnRef */
|
|
2604
2965
|
type DataExprColumnRef = ExprColumnRef<number>;
|
|
2605
2966
|
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>;
|
|
2606
|
-
type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
|
|
2967
|
+
type DataQueryBooleanExpression = InferBooleanExpressionUnion<DataQueryExpression>;
|
|
2607
2968
|
//#endregion
|
|
2608
2969
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec_driver.d.ts
|
|
2609
2970
|
//#region src/drivers/pframe/spec_driver.d.ts
|
|
@@ -2716,7 +3077,7 @@ type DiscoverColumnsStepInfo = DiscoverColumnsLinkerStep | DiscoverColumnsFilter
|
|
|
2716
3077
|
* propagate into the inner query.
|
|
2717
3078
|
*/
|
|
2718
3079
|
type BuildQueryInput = {
|
|
2719
|
-
/** Shape version marker — bumped only on breaking structural changes. */readonly version: "v1"; /** Terminal column id — the column actually returning data. */
|
|
3080
|
+
/** Shape version marker — bumped only on breaking structural changes. */ readonly version: "v1"; /** Terminal column id — the column actually returning data. */
|
|
2720
3081
|
readonly column: PObjectId; /** Ordered path from source integration to `column`. Outermost first. */
|
|
2721
3082
|
readonly path?: DiscoverColumnsStepInfo[]; /** Axis qualifications attached to the resulting join entry. */
|
|
2722
3083
|
readonly qualifications?: AxisQualification[];
|
|
@@ -2818,7 +3179,7 @@ interface PFrameSpecDriver {
|
|
|
2818
3179
|
tableSpec: PTableColumnSpec[];
|
|
2819
3180
|
filters: PTableRecordFilter[];
|
|
2820
3181
|
}): DataQueryBooleanExpression[];
|
|
2821
|
-
}
|
|
3182
|
+
}
|
|
2822
3183
|
//#endregion
|
|
2823
3184
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/selectors.d.ts
|
|
2824
3185
|
/** Single axis selector */
|
|
@@ -2841,10 +3202,6 @@ interface AxisQualification {
|
|
|
2841
3202
|
/** Additional context domain entries applied to the axis. */
|
|
2842
3203
|
readonly contextDomain: Record<string, string>;
|
|
2843
3204
|
}
|
|
2844
|
-
/**
|
|
2845
|
-
* Reference to an axis by its numerical index within the anchor column's axes array
|
|
2846
|
-
* Format: [anchorId, axisIndex]
|
|
2847
|
-
*/
|
|
2848
3205
|
//#endregion
|
|
2849
3206
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/query/query_spec.d.ts
|
|
2850
3207
|
//#region src/drivers/pframe/query/query_spec.d.ts
|
|
@@ -2860,7 +3217,7 @@ interface AxisQualification {
|
|
|
2860
3217
|
*/
|
|
2861
3218
|
type SpecQueryJoinEntry<C = ColumnUniversalId> = QueryJoinEntry<SpecQuery<C>> & {
|
|
2862
3219
|
qualifications?: readonly {
|
|
2863
|
-
/** Axis to qualify. */axis: SingleAxisSelector; /** Additional domain constraints for this axis. */
|
|
3220
|
+
/** Axis to qualify. */ axis: SingleAxisSelector; /** Additional domain constraints for this axis. */
|
|
2864
3221
|
contextDomain: Domain;
|
|
2865
3222
|
}[];
|
|
2866
3223
|
};
|
|
@@ -2913,7 +3270,7 @@ type SpecExprAxisRef = ExprAxisRef<SingleAxisSelector>;
|
|
|
2913
3270
|
/** @see ExprColumnRef */
|
|
2914
3271
|
type SpecExprColumnRef = ExprColumnRef<ColumnUniversalId>;
|
|
2915
3272
|
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>;
|
|
2916
|
-
type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
|
|
3273
|
+
type SpecQueryBooleanExpression = InferBooleanExpressionUnion<SpecQueryExpression>;
|
|
2917
3274
|
//#endregion
|
|
2918
3275
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/table_calculate.d.ts
|
|
2919
3276
|
//#region src/drivers/pframe/table_calculate.d.ts
|
|
@@ -3169,7 +3526,7 @@ interface PTableRecordSingleValueFilterV2 {
|
|
|
3169
3526
|
type PTableRecordFilter = PTableRecordSingleValueFilterV2;
|
|
3170
3527
|
/** Sorting parameters for a PTable. */
|
|
3171
3528
|
type PTableSorting = {
|
|
3172
|
-
/** Unified column identifier */readonly column: PTableColumnId; /** Sorting order */
|
|
3529
|
+
/** Unified column identifier */ readonly column: PTableColumnId; /** Sorting order */
|
|
3173
3530
|
readonly ascending: boolean; /** Sorting in respect to NA and absent values */
|
|
3174
3531
|
readonly naAndAbsentAreLeastValues: boolean;
|
|
3175
3532
|
};
|
|
@@ -3191,7 +3548,7 @@ interface PTableDefV2<Col> {
|
|
|
3191
3548
|
}
|
|
3192
3549
|
/** Request to create and retrieve entirety of data of PTable. */
|
|
3193
3550
|
type CalculateTableDataRequest<Col> = {
|
|
3194
|
-
/** Join tree to populate the PTable */readonly src: JoinEntry<Col>; /** Record filters */
|
|
3551
|
+
/** Join tree to populate the PTable */ readonly src: JoinEntry<Col>; /** Record filters */
|
|
3195
3552
|
readonly filters: PTableRecordFilter[]; /** Table sorting */
|
|
3196
3553
|
readonly sorting: PTableSorting[];
|
|
3197
3554
|
};
|
|
@@ -3217,13 +3574,12 @@ declare const PlRef: ZodReadonly<ZodObject<{
|
|
|
3217
3574
|
requireEnrichments?: true | undefined;
|
|
3218
3575
|
}>>;
|
|
3219
3576
|
type PlRef = TypeOf<typeof PlRef>;
|
|
3220
|
-
/** @deprecated use {@link PlRef} */
|
|
3221
3577
|
//#endregion
|
|
3222
3578
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/pool/spec.d.ts
|
|
3223
3579
|
//#region src/pool/spec.d.ts
|
|
3224
3580
|
/** Any object exported into the result pool by the block always have spec attached to it */
|
|
3225
3581
|
type PObjectSpec = {
|
|
3226
|
-
/** PObject kind discriminator */readonly kind: string; /** Name is common part of PObject identity */
|
|
3582
|
+
/** PObject kind discriminator */ readonly kind: string; /** Name is common part of PObject identity */
|
|
3227
3583
|
readonly name: string; /** Domain is a set of key-value pairs that can be used to identify the object */
|
|
3228
3584
|
readonly domain?: Record<string, string>;
|
|
3229
3585
|
/** Context domain provides additional axis/column identity that is matched
|
|
@@ -3295,7 +3651,7 @@ type Domain = Metadata & Partial<{
|
|
|
3295
3651
|
* all the axes specified in the column spec.
|
|
3296
3652
|
*/
|
|
3297
3653
|
type AxisSpec = {
|
|
3298
|
-
/** Type of the axis value. Should not use non-key types like float or double. */readonly type: AxisValueType; /** Name of the axis */
|
|
3654
|
+
/** Type of the axis value. Should not use non-key types like float or double. */ readonly type: AxisValueType; /** Name of the axis */
|
|
3299
3655
|
readonly name: string;
|
|
3300
3656
|
/** Adds auxiliary information to the axis name, type and parents to form a
|
|
3301
3657
|
* unique identifier */
|
|
@@ -3326,7 +3682,6 @@ type AxisSpec = {
|
|
|
3326
3682
|
*/
|
|
3327
3683
|
readonly parentAxes?: number[];
|
|
3328
3684
|
};
|
|
3329
|
-
/** Parents are specs, not indexes; normalized axis can be used considering its parents independently from column */
|
|
3330
3685
|
/** Common type representing spec for all the axes in a column */
|
|
3331
3686
|
type AxesSpec = AxisSpec[];
|
|
3332
3687
|
/**
|
|
@@ -3367,10 +3722,9 @@ type PUniversalColumnSpec = PObjectSpec & {
|
|
|
3367
3722
|
* basic tabular data.
|
|
3368
3723
|
*/
|
|
3369
3724
|
type PDataColumnSpec = PUniversalColumnSpec & {
|
|
3370
|
-
/** Type of column values */readonly valueType: ValueType;
|
|
3725
|
+
/** Type of column values */ readonly valueType: ValueType;
|
|
3371
3726
|
};
|
|
3372
3727
|
type PColumnSpec = PDataColumnSpec;
|
|
3373
|
-
/** Unique PColumnSpec identifier */
|
|
3374
3728
|
interface PColumn<Data> extends PObject<Data> {
|
|
3375
3729
|
/** PColumn spec, allowing it to be found among other PObjects */
|
|
3376
3730
|
readonly spec: PColumnSpec;
|
|
@@ -3383,7 +3737,6 @@ interface PColumnIdAndSpec {
|
|
|
3383
3737
|
/** Column spec */
|
|
3384
3738
|
readonly spec: PColumnSpec;
|
|
3385
3739
|
}
|
|
3386
|
-
/** Get column id and spec from a column */
|
|
3387
3740
|
interface AxisId {
|
|
3388
3741
|
/** Type of the axis or column value. For an axis should not use non-key
|
|
3389
3742
|
* types like float or double. */
|
|
@@ -3399,7 +3752,6 @@ interface AxisId {
|
|
|
3399
3752
|
}
|
|
3400
3753
|
/** Array of axis ids */
|
|
3401
3754
|
type AxesId = AxisId[];
|
|
3402
|
-
/** Extracts axis ids from axis spec */
|
|
3403
3755
|
//#endregion
|
|
3404
3756
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/filtered_column.d.ts
|
|
3405
3757
|
//#region src/drivers/pframe/spec/filtered_column.d.ts
|
|
@@ -3407,7 +3759,6 @@ type AxesId = AxisId[];
|
|
|
3407
3759
|
type AxisFilterValue = number | string;
|
|
3408
3760
|
/** Axis filter by index */
|
|
3409
3761
|
type AxisFilterByIdx = [number, AxisFilterValue];
|
|
3410
|
-
/** Axis filter by name */
|
|
3411
3762
|
/**
|
|
3412
3763
|
* `source` is either a leaf {@link PObjectId} or a {@link ColumnDiscoveredId}.
|
|
3413
3764
|
* Filtered never nests inside Filtered (flat-merge invariant), and Filtered is
|
|
@@ -3432,21 +3783,12 @@ type ColumnFilteredId = Branded<CanonicalizedJson<ColumnFilteredKey>, "ColumnFil
|
|
|
3432
3783
|
* A patch at index `>= base.axesSpec.length` appends a new axis at that slot.
|
|
3433
3784
|
*/
|
|
3434
3785
|
type AxisPatches = Record<number, Partial<AxisSpec>>;
|
|
3435
|
-
/**
|
|
3436
|
-
* Universal column identifier optionally anchored and optionally filtered.
|
|
3437
|
-
* @deprecated use {@link ColumnUniversalKey}
|
|
3438
|
-
*/
|
|
3439
3786
|
/**
|
|
3440
3787
|
* Canonically serialized {@link UniversalPColumnId}.
|
|
3441
3788
|
* @deprecated use {@link ColumnUniversalId}
|
|
3442
3789
|
*/
|
|
3443
3790
|
type SUniversalPColumnId = ColumnUniversalId;
|
|
3444
3791
|
type ColumnUniversalId = LocalPObjectId | GlobalPObjectId | ColumnFilteredId | ColumnDiscoveredId | ColumnOverriddenId;
|
|
3445
|
-
/**
|
|
3446
|
-
* Canonically serializes a column key to a branded string id. Accepts both
|
|
3447
|
-
* the new {@link ColumnUniversalKey} and the deprecated {@link UniversalPColumnId}
|
|
3448
|
-
* (anchored / old filtered object form).
|
|
3449
|
-
*/
|
|
3450
3792
|
//#endregion
|
|
3451
3793
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/spec/discovered_column.d.ts
|
|
3452
3794
|
//#region src/drivers/pframe/spec/discovered_column.d.ts
|
|
@@ -3486,7 +3828,7 @@ interface FileLike extends BlobLike {
|
|
|
3486
3828
|
readonly lastModified: number;
|
|
3487
3829
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/File/name) */
|
|
3488
3830
|
readonly name: string;
|
|
3489
|
-
}
|
|
3831
|
+
}
|
|
3490
3832
|
//#endregion
|
|
3491
3833
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/blob.d.ts
|
|
3492
3834
|
//#region src/drivers/blob.d.ts
|
|
@@ -3496,11 +3838,9 @@ type LocalBlobHandle = Branded$1<string, "LocalBlobHandle">;
|
|
|
3496
3838
|
/** Handle of remote blob. This handle is issued as soon as the data becomes
|
|
3497
3839
|
* available on the remote server. */
|
|
3498
3840
|
type RemoteBlobHandle = Branded$1<string, "RemoteBlobHandle">;
|
|
3499
|
-
/** Being configured inside the output structure provides information about
|
|
3500
|
-
* blob's content and means to retrieve it when needed. */
|
|
3501
3841
|
/** Range in bytes, from should be less than to. */
|
|
3502
3842
|
declare const RangeBytes: ZodObject<{
|
|
3503
|
-
/** Included left border. */from: ZodNumber; /** Excluded right border. */
|
|
3843
|
+
/** Included left border. */ from: ZodNumber; /** Excluded right border. */
|
|
3504
3844
|
to: ZodNumber;
|
|
3505
3845
|
}, "strip", ZodTypeAny, {
|
|
3506
3846
|
from: number;
|
|
@@ -3519,9 +3859,6 @@ interface BlobDriver {
|
|
|
3519
3859
|
*/
|
|
3520
3860
|
getContent(handle: LocalBlobHandle | RemoteBlobHandle, range?: RangeBytes): Promise<Uint8Array>;
|
|
3521
3861
|
}
|
|
3522
|
-
/**
|
|
3523
|
-
* Operational metrics of the blob download driver.
|
|
3524
|
-
*/
|
|
3525
3862
|
//#endregion
|
|
3526
3863
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/log.d.ts
|
|
3527
3864
|
//#region src/drivers/log.d.ts
|
|
@@ -3537,38 +3874,29 @@ type ReadyLogHandle = Branded$1<`${typeof READY_LOG_PREFIX}${string}`, "ReadyLog
|
|
|
3537
3874
|
/** Handle of logs. This handle should be passed
|
|
3538
3875
|
* to the driver for retrieving logs. */
|
|
3539
3876
|
type AnyLogHandle = LiveLogHandle | ReadyLogHandle;
|
|
3540
|
-
/** Type guard to check if a value is any kind of log handle. */
|
|
3541
3877
|
/** Driver to retrieve logs given log handle */
|
|
3542
3878
|
interface LogsDriver {
|
|
3543
|
-
lastLines(
|
|
3544
|
-
|
|
3545
|
-
handle: AnyLogHandle
|
|
3546
|
-
|
|
3547
|
-
lineCount: number,
|
|
3879
|
+
lastLines(
|
|
3880
|
+
/** A handle that was issued previously. */
|
|
3881
|
+
handle: AnyLogHandle /** Allows client to limit total data sent from server. */, lineCount: number,
|
|
3548
3882
|
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
3549
3883
|
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
3550
3884
|
* If undefined, then starts from the end. */
|
|
3551
|
-
|
|
3552
3885
|
offsetBytes?: number,
|
|
3553
3886
|
/** Is substring for line search pattern.
|
|
3554
3887
|
* This option makes controller to send to the client only lines, that
|
|
3555
3888
|
* have given substring. */
|
|
3556
|
-
|
|
3557
3889
|
searchStr?: string): Promise<StreamingApiResponse>;
|
|
3558
|
-
readText(
|
|
3559
|
-
|
|
3560
|
-
handle: AnyLogHandle
|
|
3561
|
-
|
|
3562
|
-
lineCount: number,
|
|
3890
|
+
readText(
|
|
3891
|
+
/** A handle that was issued previously. */
|
|
3892
|
+
handle: AnyLogHandle /** Allows client to limit total data sent from server. */, lineCount: number,
|
|
3563
3893
|
/** Makes streamer to perform seek operation to given offset before sending the contents.
|
|
3564
3894
|
* Client can just use the <new_offset> value of the last response from server to continue streaming after reconnection.
|
|
3565
3895
|
* If undefined of 0, then starts from the beginning. */
|
|
3566
|
-
|
|
3567
3896
|
offsetBytes?: number,
|
|
3568
3897
|
/** Is substring for line search pattern.
|
|
3569
3898
|
* This option makes controller to send to the client only lines, that
|
|
3570
3899
|
* have given substring. */
|
|
3571
|
-
|
|
3572
3900
|
searchStr?: string): Promise<StreamingApiResponse>;
|
|
3573
3901
|
}
|
|
3574
3902
|
/** Response of the driver.
|
|
@@ -3607,7 +3935,7 @@ interface ColumnFilter {
|
|
|
3607
3935
|
/** Match requires all the annotations listed here to match corresponding regex
|
|
3608
3936
|
* pattern. */
|
|
3609
3937
|
readonly annotationPattern?: Record<string, string>;
|
|
3610
|
-
}
|
|
3938
|
+
}
|
|
3611
3939
|
//#endregion
|
|
3612
3940
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/find_columns.d.ts
|
|
3613
3941
|
//#region src/drivers/pframe/find_columns.d.ts
|
|
@@ -3634,7 +3962,7 @@ interface FindColumnsRequest {
|
|
|
3634
3962
|
interface FindColumnsResponse {
|
|
3635
3963
|
/** Array of column ids found using request criteria. */
|
|
3636
3964
|
readonly hits: PColumnIdAndSpec[];
|
|
3637
|
-
}
|
|
3965
|
+
}
|
|
3638
3966
|
//#endregion
|
|
3639
3967
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/unique_values.d.ts
|
|
3640
3968
|
//#region src/drivers/pframe/unique_values.d.ts
|
|
@@ -3654,11 +3982,11 @@ interface UniqueValuesResponse {
|
|
|
3654
3982
|
readonly values: PTableVector;
|
|
3655
3983
|
/** True if limit was reached and response contain non-exhaustive list of values. */
|
|
3656
3984
|
readonly overflow: boolean;
|
|
3657
|
-
}
|
|
3985
|
+
}
|
|
3658
3986
|
//#endregion
|
|
3659
3987
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/pframe.d.ts
|
|
3660
3988
|
/** Information required to instantiate a PFrame. */
|
|
3661
|
-
type PFrameDef<Col> = Col[];
|
|
3989
|
+
type PFrameDef<Col> = Col[];
|
|
3662
3990
|
//#endregion
|
|
3663
3991
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/pframe/driver.d.ts
|
|
3664
3992
|
//#region src/drivers/pframe/driver.d.ts
|
|
@@ -3726,7 +4054,7 @@ interface PFrameDriver {
|
|
|
3726
4054
|
* 1,000,000-row per-sheet limit (below Excel's hard cap of 1,048,576).
|
|
3727
4055
|
*/
|
|
3728
4056
|
exportPTable(handle: PTableHandle, options: ExportPTableOptions): Promise<void>;
|
|
3729
|
-
}
|
|
4057
|
+
}
|
|
3730
4058
|
//#endregion
|
|
3731
4059
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/ls.d.ts
|
|
3732
4060
|
//#region src/drivers/ls.d.ts
|
|
@@ -3740,7 +4068,7 @@ type StorageHandleLocal = `local://${string}`;
|
|
|
3740
4068
|
type StorageHandleRemote = `remote://${string}`;
|
|
3741
4069
|
type StorageHandle = StorageHandleLocal | StorageHandleRemote;
|
|
3742
4070
|
type StorageEntry = {
|
|
3743
|
-
/** Stable machine identifier (e.g. "library", "root", "local"). Used for filtering. */id: string; /** Human-readable display name. */
|
|
4071
|
+
/** Stable machine identifier (e.g. "library", "root", "local"). Used for filtering. */ id: string; /** Human-readable display name. */
|
|
3744
4072
|
name: string;
|
|
3745
4073
|
handle: StorageHandle;
|
|
3746
4074
|
initialFullPath: string;
|
|
@@ -3760,11 +4088,11 @@ type LsEntry = {
|
|
|
3760
4088
|
handle: ImportFileHandle;
|
|
3761
4089
|
};
|
|
3762
4090
|
type OpenDialogFilter = {
|
|
3763
|
-
/** Human-readable file type name */readonly name: string; /** File extensions */
|
|
4091
|
+
/** Human-readable file type name */ readonly name: string; /** File extensions */
|
|
3764
4092
|
readonly extensions: string[];
|
|
3765
4093
|
};
|
|
3766
4094
|
type OpenDialogOps = {
|
|
3767
|
-
/** Open dialog window title */readonly title?: string; /** Custom label for the confirmation button, when left empty the default label will be used. */
|
|
4095
|
+
/** Open dialog window title */ readonly title?: string; /** Custom label for the confirmation button, when left empty the default label will be used. */
|
|
3768
4096
|
readonly buttonLabel?: string; /** Limits of file types user can select */
|
|
3769
4097
|
readonly filters?: OpenDialogFilter[];
|
|
3770
4098
|
};
|
|
@@ -3778,7 +4106,6 @@ type OpenMultipleFilesResponse = {
|
|
|
3778
4106
|
* the dialog, field will be undefined. */
|
|
3779
4107
|
readonly files?: LocalImportFileHandle[];
|
|
3780
4108
|
};
|
|
3781
|
-
/** Can be used to limit request for local file content to a certain bytes range */
|
|
3782
4109
|
interface LsDriver {
|
|
3783
4110
|
/** remote and local storages */
|
|
3784
4111
|
getStorageList(): Promise<StorageEntry[]>;
|
|
@@ -3801,7 +4128,6 @@ interface LsDriver {
|
|
|
3801
4128
|
/** Saves currently opened block webview as a PDF. */
|
|
3802
4129
|
exportToPdf?(): Promise<void>;
|
|
3803
4130
|
}
|
|
3804
|
-
/** Gets a file path from an import handle. */
|
|
3805
4131
|
//#endregion
|
|
3806
4132
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/columns/column_selector.d.ts
|
|
3807
4133
|
//#region src/columns/column_selector.d.ts
|
|
@@ -3847,7 +4173,6 @@ type MatchingMode = "enrichment" | "related" | "exact";
|
|
|
3847
4173
|
* sandbox/host VM bridge unchanged.
|
|
3848
4174
|
*/
|
|
3849
4175
|
type AnchorEntry = PlRef | PObjectId | PColumnSpec | RelaxedColumnSelector;
|
|
3850
|
-
/** Qualifications needed for both already-integrated anchor columns and the hit column. */
|
|
3851
4176
|
/**
|
|
3852
4177
|
* Options object accepted by sandbox `discoverColumns()` and by the host
|
|
3853
4178
|
* `ColumnsCollectionDriver.discover` / `.filter` methods. Pure JSON shape —
|
|
@@ -3878,7 +4203,6 @@ type ColumnsDiscoverOptions = DiscoverColumnsOptions;
|
|
|
3878
4203
|
* of the filter surface — only `include` / `exclude` / `anchors`.
|
|
3879
4204
|
*/
|
|
3880
4205
|
type ColumnsFilterOptions = Omit<DiscoverColumnsOptions, "mode" | "maxHops">;
|
|
3881
|
-
/** Translate a {@link MatchingMode} into the boolean-flag form the spec driver consumes. */
|
|
3882
4206
|
//#endregion
|
|
3883
4207
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/columns/types.d.ts
|
|
3884
4208
|
//#region src/columns/types.d.ts
|
|
@@ -3960,13 +4284,6 @@ interface AccessorLike<Self extends AccessorLike<Self>> {
|
|
|
3960
4284
|
/** Decode the data payload as JSON. Returns `undefined` if no data. */
|
|
3961
4285
|
getDataAsJson<T = unknown>(): T | undefined;
|
|
3962
4286
|
}
|
|
3963
|
-
/**
|
|
3964
|
-
* One indexed column — the canonical record produced by every traversal.
|
|
3965
|
-
* Carries everything needed to read spec/data/status under a stable id.
|
|
3966
|
-
*
|
|
3967
|
-
* Generic over the accessor flavour so the same record shape works for both
|
|
3968
|
-
* the sandbox `TreeNodeAccessor` and the host `PlTreeNodeAccessor`.
|
|
3969
|
-
*/
|
|
3970
4287
|
//#endregion
|
|
3971
4288
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/drivers/columns/columns_collection_driver.d.ts
|
|
3972
4289
|
//#region src/drivers/columns/columns_collection_driver.d.ts
|
|
@@ -4080,7 +4397,7 @@ interface ColumnsCollectionDriver {
|
|
|
4080
4397
|
addSource(handle: CollectionHandle, sources: ReadonlyArray<SerializedColumnsSource>, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4081
4398
|
discover(handle: CollectionHandle, options: ColumnsDiscoverOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4082
4399
|
filter(handle: CollectionHandle, options: ColumnsFilterOptions, host: ColumnsCollectionDriverHost): PoolEntry<CollectionHandle>;
|
|
4083
|
-
}
|
|
4400
|
+
}
|
|
4084
4401
|
//#endregion
|
|
4085
4402
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/services/service_types.d.ts
|
|
4086
4403
|
//#region src/services/service_types.d.ts
|
|
@@ -4105,13 +4422,12 @@ interface ServiceDispatch {
|
|
|
4105
4422
|
}
|
|
4106
4423
|
type TServices = typeof Services;
|
|
4107
4424
|
type ExtractServiceName<T> = T extends Branded$1<infer N extends string, any> ? N : never;
|
|
4108
|
-
/** Model-side service interfaces keyed by service name literal. */
|
|
4109
4425
|
/** UI-side service interfaces keyed by service name literal. */
|
|
4110
|
-
type UiServices$1 = { [K in keyof TServices as ExtractServiceName<TServices[K]>]: InferServiceUi<ServiceBrand<TServices[K]
|
|
4426
|
+
type UiServices$1 = { [K in keyof TServices as ExtractServiceName<TServices[K]>]: InferServiceUi<ServiceBrand<TServices[K]>>; };
|
|
4111
4427
|
/** Map from Services keys to their unbranded string name literals. */
|
|
4112
|
-
type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TServices[K]
|
|
4428
|
+
type ServiceNameLiterals = { [K in keyof TServices]: ExtractServiceName<TServices[K]>; };
|
|
4113
4429
|
/** Auto-derived requires* feature flags from Services keys. */
|
|
4114
|
-
type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean };
|
|
4430
|
+
type ServiceRequireFlags = { [K in keyof TServices as `requires${K & string}`]?: boolean; };
|
|
4115
4431
|
//#endregion
|
|
4116
4432
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/services/service_declarations.d.ts
|
|
4117
4433
|
//#region src/services/service_declarations.d.ts
|
|
@@ -4120,7 +4436,7 @@ declare const Services: {
|
|
|
4120
4436
|
PFrame: Branded$1<"pframe", ServiceTypesLike<PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver, "node", PFrameModelDriver<PColumn<string | PColumnValues | DataInfo<string>>>, PFrameDriver>>;
|
|
4121
4437
|
Dialog: Branded$1<"dialog", ServiceTypesLike<Record<string, never>, DialogService, "main", Record<string, never>, DialogService>>;
|
|
4122
4438
|
ColumnsCollection: Branded$1<"columnsCollection", ServiceTypesLike<ColumnsCollectionDriverModel, ColumnsCollectionDriverModel, "wasm", ColumnsCollectionDriver, ColumnsCollectionDriver>>;
|
|
4123
|
-
};
|
|
4439
|
+
};
|
|
4124
4440
|
//#endregion
|
|
4125
4441
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/flags/block_flags.d.ts
|
|
4126
4442
|
/**
|
|
@@ -4134,11 +4450,6 @@ type BlockCodeKnownFeatureFlags = {
|
|
|
4134
4450
|
readonly requiresCreatePTable?: number;
|
|
4135
4451
|
readonly requiresPFramesVersion?: number;
|
|
4136
4452
|
} & ServiceRequireFlags;
|
|
4137
|
-
/**
|
|
4138
|
-
* Required PFrames version. Bump this in lockstep with the `@milaboratories/pframes-rs-*`
|
|
4139
|
-
* version in `pnpm-workspace.yaml` so blocks built against the new SDK refuse to load on
|
|
4140
|
-
* older desktop apps.
|
|
4141
|
-
*/
|
|
4142
4453
|
//#endregion
|
|
4143
4454
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/driver_kit.d.ts
|
|
4144
4455
|
//#region src/driver_kit.d.ts
|
|
@@ -4159,7 +4470,7 @@ interface DriverKit {
|
|
|
4159
4470
|
readonly lsDriver: LsDriver;
|
|
4160
4471
|
/** Driver allowing to interact with PFrames and PTables */
|
|
4161
4472
|
readonly pFrameDriver: PFrameDriver;
|
|
4162
|
-
}
|
|
4473
|
+
}
|
|
4163
4474
|
//#endregion
|
|
4164
4475
|
//#region ../node_modules/.pnpm/@milaboratories+pl-model-common@1.48.0/node_modules/@milaboratories/pl-model-common/dist/errors.d.ts
|
|
4165
4476
|
type ResultOrError<S, F = Error> = {
|
|
@@ -4186,21 +4497,24 @@ interface ValueWithUTag<V> {
|
|
|
4186
4497
|
}
|
|
4187
4498
|
interface ValueWithUTagAndAuthor<V> extends ValueWithUTag<V> {
|
|
4188
4499
|
readonly author?: AuthorMarker;
|
|
4189
|
-
}
|
|
4500
|
+
}
|
|
4190
4501
|
//#endregion
|
|
4191
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4502
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/block_state_patch.d.ts
|
|
4192
4503
|
//#region src/block_state_patch.d.ts
|
|
4193
4504
|
/** Patch for the structural object */
|
|
4194
4505
|
type Patch<K, V> = {
|
|
4195
|
-
/** Field name to patch */
|
|
4506
|
+
/** Field name to patch */
|
|
4507
|
+
readonly key: K;
|
|
4508
|
+
/** New value for the field */
|
|
4196
4509
|
readonly value: V;
|
|
4197
4510
|
};
|
|
4198
4511
|
/** Creates union type of all possible shallow patches for the given structure */
|
|
4199
|
-
type Unionize<T extends Record<string, unknown>> = { [K in keyof T]: Patch<K, T[K]
|
|
4512
|
+
type Unionize<T extends Record<string, unknown>> = { [K in keyof T]: Patch<K, T[K]>; }[keyof T];
|
|
4200
4513
|
/** Patch for the BlockState, pushed by onStateUpdates method in SDK. */
|
|
4201
|
-
type BlockStatePatch<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Unionize<BlockState<Args, Outputs, UiState, Href>>;
|
|
4514
|
+
type BlockStatePatch<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> = Unionize<BlockState<Args, Outputs, UiState, Href>>;
|
|
4515
|
+
//#endregion
|
|
4202
4516
|
//#endregion
|
|
4203
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4517
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/plugin_handle.d.ts
|
|
4204
4518
|
//#region src/plugin_handle.d.ts
|
|
4205
4519
|
/**
|
|
4206
4520
|
* Phantom-only base type for constraining PluginHandle's type parameter.
|
|
@@ -4220,16 +4534,14 @@ interface PluginFactoryLike<Data extends Record<string, unknown> = Record<string
|
|
|
4220
4534
|
uiServices: UiServices;
|
|
4221
4535
|
};
|
|
4222
4536
|
}
|
|
4223
|
-
/** Extract the Data type from a PluginFactoryLike phantom. */
|
|
4224
4537
|
/**
|
|
4225
4538
|
* Opaque handle for a plugin instance. Runtime value is the plugin instance ID string.
|
|
4226
4539
|
* Branded with factory phantom `F` for type-safe data/outputs extraction.
|
|
4227
4540
|
* Constrained with PluginFactoryLike (not PluginFactory) to avoid variance issues.
|
|
4228
4541
|
*/
|
|
4229
4542
|
type PluginHandle<F extends PluginFactoryLike = PluginFactoryLike> = Branded<string, F>;
|
|
4230
|
-
/** Construct the output key for a plugin output in the block outputs map. */
|
|
4231
4543
|
//#endregion
|
|
4232
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4544
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/block_storage.d.ts
|
|
4233
4545
|
/** Payload for storage mutation operations. SDK defines specific operations. */
|
|
4234
4546
|
type MutateStoragePayload<T = unknown> = {
|
|
4235
4547
|
operation: "update-block-data";
|
|
@@ -4239,15 +4551,8 @@ type MutateStoragePayload<T = unknown> = {
|
|
|
4239
4551
|
pluginId: PluginHandle;
|
|
4240
4552
|
value: unknown;
|
|
4241
4553
|
};
|
|
4242
|
-
/**
|
|
4243
|
-
* Updates the data in BlockStorage (immutable)
|
|
4244
|
-
*
|
|
4245
|
-
* @param storage - The current BlockStorage
|
|
4246
|
-
* @param payload - The update payload with operation and value
|
|
4247
|
-
* @returns A new BlockStorage with updated data
|
|
4248
|
-
*/
|
|
4249
4554
|
//#endregion
|
|
4250
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4555
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/bconfig/lambdas.d.ts
|
|
4251
4556
|
/** Additional information that may alter lambda rendering procedure. */
|
|
4252
4557
|
type ConfigRenderLambdaFlags = {
|
|
4253
4558
|
/**
|
|
@@ -4276,15 +4581,15 @@ interface ConfigRenderLambda<Return = unknown> extends ConfigRenderLambdaFlags {
|
|
|
4276
4581
|
handle: string;
|
|
4277
4582
|
}
|
|
4278
4583
|
type ExtractFunctionHandleReturn<Func extends ConfigRenderLambda> = Func extends ConfigRenderLambda<infer Return> ? Return : never;
|
|
4279
|
-
/** Infers the output type from a TypedConfig or ConfigRenderLambda */
|
|
4280
4584
|
/** Maps lambda-only outputs configuration to inferred output types (for V3 blocks) */
|
|
4281
4585
|
type InferOutputsFromLambdas<OutputsCfg extends Record<string, ConfigRenderLambda>> = { [Key in keyof OutputsCfg]: OutputWithStatus<ExtractFunctionHandleReturn<OutputsCfg[Key]>> & {
|
|
4282
4586
|
__unwrap: OutputsCfg[Key] extends {
|
|
4283
4587
|
withStatus: true;
|
|
4284
4588
|
} ? false : true;
|
|
4285
|
-
} };
|
|
4589
|
+
}; };
|
|
4590
|
+
//#endregion
|
|
4286
4591
|
//#endregion
|
|
4287
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4592
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/block_api_v1.d.ts
|
|
4288
4593
|
//#region src/block_api_v1.d.ts
|
|
4289
4594
|
/** Returned by state subscription methods to be able to cancel the subscription. */
|
|
4290
4595
|
type CancelSubscription = () => void;
|
|
@@ -4344,7 +4649,8 @@ interface BlockApiV1<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
4344
4649
|
* Sets block navigation state.
|
|
4345
4650
|
* */
|
|
4346
4651
|
setNavigationState(state: NavigationState<Href>): Promise<void>;
|
|
4347
|
-
}
|
|
4652
|
+
}
|
|
4653
|
+
//#endregion
|
|
4348
4654
|
//#endregion
|
|
4349
4655
|
//#region ../node_modules/.pnpm/fast-json-patch@3.1.1/node_modules/fast-json-patch/module/core.d.ts
|
|
4350
4656
|
declare type Operation = AddOperation<any> | RemoveOperation | ReplaceOperation<any> | MoveOperation | CopyOperation | TestOperation<any> | GetOperation<any>;
|
|
@@ -4379,7 +4685,7 @@ interface GetOperation<T> extends BaseOperation {
|
|
|
4379
4685
|
value: T;
|
|
4380
4686
|
}
|
|
4381
4687
|
//#endregion
|
|
4382
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4688
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/block_api_v2.d.ts
|
|
4383
4689
|
//#region src/block_api_v2.d.ts
|
|
4384
4690
|
/** Defines methods to read and write current block data. */
|
|
4385
4691
|
interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, UiState = unknown, Href extends `/${string}` = `/${string}`> {
|
|
@@ -4427,14 +4733,15 @@ interface BlockApiV2<Args = unknown, Outputs extends BlockOutputsBase = BlockOut
|
|
|
4427
4733
|
* Disposes the block API.
|
|
4428
4734
|
* */
|
|
4429
4735
|
dispose(): Promise<ResultOrError<void>>;
|
|
4430
|
-
}
|
|
4736
|
+
}
|
|
4431
4737
|
//#endregion
|
|
4432
|
-
//#
|
|
4738
|
+
//#endregion
|
|
4739
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/version.d.ts
|
|
4433
4740
|
type SdkInfo = {
|
|
4434
4741
|
readonly sdkVersion: string;
|
|
4435
4742
|
};
|
|
4436
4743
|
//#endregion
|
|
4437
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4744
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/services/block_services.d.ts
|
|
4438
4745
|
//#region src/services/block_services.d.ts
|
|
4439
4746
|
/**
|
|
4440
4747
|
* Services required by all V3 blocks by default.
|
|
@@ -4451,14 +4758,14 @@ declare const BLOCK_SERVICE_FLAGS: {
|
|
|
4451
4758
|
};
|
|
4452
4759
|
type BlockServiceFlags = typeof BLOCK_SERVICE_FLAGS;
|
|
4453
4760
|
//#endregion
|
|
4454
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4761
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/services/service_resolve.d.ts
|
|
4455
4762
|
//#region src/services/service_resolve.d.ts
|
|
4456
4763
|
type FlagToName<Flag extends string> = Flag extends `requires${infer K}` ? K extends keyof ServiceNameLiterals ? ServiceNameLiterals[K] : never : never;
|
|
4457
|
-
type RequiredServiceNames<Flags> = { [K in keyof Flags & `requires${string}`]: Flags[K] extends true ? FlagToName<K & string> : never }[keyof Flags & `requires${string}`];
|
|
4764
|
+
type RequiredServiceNames<Flags> = { [K in keyof Flags & `requires${string}`]: Flags[K] extends true ? FlagToName<K & string> : never; }[keyof Flags & `requires${string}`];
|
|
4458
4765
|
type ResolveUiServices<Flags> = Pick<UiServices$1, RequiredServiceNames<Flags> & keyof UiServices$1>;
|
|
4459
|
-
type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
|
|
4766
|
+
type BlockDefaultUiServices = ResolveUiServices<BlockServiceFlags>;
|
|
4460
4767
|
//#endregion
|
|
4461
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4768
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/plugin_model.d.ts
|
|
4462
4769
|
/**
|
|
4463
4770
|
* Runtime definition for a single public output field.
|
|
4464
4771
|
* Stored in PluginModel and passed through BlockModelInfo to the UI layer.
|
|
@@ -4467,7 +4774,7 @@ type PublicOutputFieldDef = {
|
|
|
4467
4774
|
readonly getter: (data: unknown) => unknown;
|
|
4468
4775
|
};
|
|
4469
4776
|
//#endregion
|
|
4470
|
-
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.
|
|
4777
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/block_api_v3.d.ts
|
|
4471
4778
|
//#region src/block_api_v3.d.ts
|
|
4472
4779
|
/** Defines methods to read and write current block data. */
|
|
4473
4780
|
interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutputsBase = BlockOutputsBase, Href extends `/${string}` = `/${string}`> {
|
|
@@ -4496,9 +4803,10 @@ interface BlockApiV3<_Data = unknown, _Args = unknown, Outputs extends BlockOutp
|
|
|
4496
4803
|
* Disposes the block API.
|
|
4497
4804
|
* */
|
|
4498
4805
|
dispose(): Promise<ResultOrError<void>>;
|
|
4499
|
-
}
|
|
4806
|
+
}
|
|
4500
4807
|
//#endregion
|
|
4501
|
-
//#
|
|
4808
|
+
//#endregion
|
|
4809
|
+
//#region ../node_modules/.pnpm/@platforma-sdk+model@1.83.9/node_modules/@platforma-sdk/model/dist/platforma.d.ts
|
|
4502
4810
|
//#region src/platforma.d.ts
|
|
4503
4811
|
/** Defines all methods to interact with the platform environment from within a block UI. @deprecated */
|
|
4504
4812
|
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 {
|
|
@@ -4539,10 +4847,10 @@ type InferOutputsType<Pl extends Platforma> = Pl extends Platforma<unknown, infe
|
|
|
4539
4847
|
type InferDataType<Pl extends Platforma> = Pl extends Platforma<unknown, Record<string, OutputWithStatus<unknown>>, infer Data> ? Data : never;
|
|
4540
4848
|
type InferHrefType<Pl extends Platforma> = Pl extends Platforma<unknown, BlockOutputsBase, unknown, infer Href> ? Href : never;
|
|
4541
4849
|
//#endregion
|
|
4542
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4850
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/spec.d.ts
|
|
4543
4851
|
type ColumnOrAxisIdString = string;
|
|
4544
4852
|
//#endregion
|
|
4545
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4853
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/common.d.ts
|
|
4546
4854
|
type InputStateMap = Record<string, ComponentStateSimple | ComponentStateFilter>;
|
|
4547
4855
|
type ChartType = 'discrete' | 'scatterplot' | 'scatterplot-umap' | 'heatmap' | 'dendro' | 'histogram' | 'bubble' | 'selection';
|
|
4548
4856
|
interface InputStateParent<Type extends ChartType> {
|
|
@@ -4572,7 +4880,7 @@ interface ComponentStateFilter {
|
|
|
4572
4880
|
selectorStates: SelectorStateFilter[];
|
|
4573
4881
|
}
|
|
4574
4882
|
//#endregion
|
|
4575
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4883
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/bubble.d.ts
|
|
4576
4884
|
interface BubbleUIState extends InputStateParent<'bubble'> {
|
|
4577
4885
|
type: 'bubble';
|
|
4578
4886
|
components: {
|
|
@@ -4591,7 +4899,7 @@ interface BubbleUIState extends InputStateParent<'bubble'> {
|
|
|
4591
4899
|
};
|
|
4592
4900
|
}
|
|
4593
4901
|
//#endregion
|
|
4594
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4902
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/dendro.d.ts
|
|
4595
4903
|
interface DendroUIState extends InputStateParent<'dendro'> {
|
|
4596
4904
|
components: {
|
|
4597
4905
|
value: ComponentStateSimple;
|
|
@@ -4612,7 +4920,7 @@ interface DendroUIState extends InputStateParent<'dendro'> {
|
|
|
4612
4920
|
};
|
|
4613
4921
|
}
|
|
4614
4922
|
//#endregion
|
|
4615
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4923
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/discrete.d.ts
|
|
4616
4924
|
interface DiscreteUIState extends InputStateParent<'discrete'> {
|
|
4617
4925
|
type: 'discrete';
|
|
4618
4926
|
components: {
|
|
@@ -4625,7 +4933,7 @@ interface DiscreteUIState extends InputStateParent<'discrete'> {
|
|
|
4625
4933
|
};
|
|
4626
4934
|
}
|
|
4627
4935
|
//#endregion
|
|
4628
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4936
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/heatmap.d.ts
|
|
4629
4937
|
interface HeatmapUIState extends InputStateParent<'heatmap'> {
|
|
4630
4938
|
type: 'heatmap';
|
|
4631
4939
|
components: {
|
|
@@ -4645,7 +4953,7 @@ interface HeatmapUIState extends InputStateParent<'heatmap'> {
|
|
|
4645
4953
|
};
|
|
4646
4954
|
}
|
|
4647
4955
|
//#endregion
|
|
4648
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4956
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/histogram.d.ts
|
|
4649
4957
|
interface HistogramUIState extends InputStateParent<'histogram'> {
|
|
4650
4958
|
type: 'histogram';
|
|
4651
4959
|
components: {
|
|
@@ -4657,7 +4965,7 @@ interface HistogramUIState extends InputStateParent<'histogram'> {
|
|
|
4657
4965
|
};
|
|
4658
4966
|
}
|
|
4659
4967
|
//#endregion
|
|
4660
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4968
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot.d.ts
|
|
4661
4969
|
interface ScatterplotUIState extends InputStateParent<'scatterplot'> {
|
|
4662
4970
|
type: 'scatterplot';
|
|
4663
4971
|
components: {
|
|
@@ -4676,7 +4984,7 @@ interface ScatterplotUIState extends InputStateParent<'scatterplot'> {
|
|
|
4676
4984
|
};
|
|
4677
4985
|
}
|
|
4678
4986
|
//#endregion
|
|
4679
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4987
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/scatterplot-umap.d.ts
|
|
4680
4988
|
interface ScatterplotUmapUIState extends InputStateParent<'scatterplot-umap'> {
|
|
4681
4989
|
type: 'scatterplot-umap';
|
|
4682
4990
|
components: {
|
|
@@ -4694,7 +5002,7 @@ interface ScatterplotUmapUIState extends InputStateParent<'scatterplot-umap'> {
|
|
|
4694
5002
|
};
|
|
4695
5003
|
}
|
|
4696
5004
|
//#endregion
|
|
4697
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
5005
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/controllers/controllersByChartType/selection.d.ts
|
|
4698
5006
|
interface SelectionUIState extends InputStateParent<'selection'> {
|
|
4699
5007
|
type: 'selection';
|
|
4700
5008
|
components: {
|
|
@@ -4707,13 +5015,13 @@ interface SelectionUIState extends InputStateParent<'selection'> {
|
|
|
4707
5015
|
};
|
|
4708
5016
|
}
|
|
4709
5017
|
//#endregion
|
|
4710
|
-
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.
|
|
4711
|
-
type InputNamesByChartType = { [K in ChartType]: K extends 'discrete' ? keyof DiscreteUIState['components'] : K extends 'heatmap' ? keyof HeatmapUIState['components'] : K extends 'dendro' ? keyof DendroUIState['components'] : K extends 'scatterplot' ? keyof ScatterplotUIState['components'] : K extends 'scatterplot-umap' ? keyof ScatterplotUmapUIState['components'] : K extends 'histogram' ? keyof HistogramUIState['components'] : K extends 'bubble' ? keyof BubbleUIState['components'] : K extends 'selection' ? keyof SelectionUIState['components'] : never };
|
|
5018
|
+
//#region ../node_modules/.pnpm/@milaboratories+pf-plots@1.5.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model@1.83.9/node_modules/@milaboratories/pf-plots/dist/index.d.ts
|
|
5019
|
+
type InputNamesByChartType = { [K in ChartType]: K extends 'discrete' ? keyof DiscreteUIState['components'] : K extends 'heatmap' ? keyof HeatmapUIState['components'] : K extends 'dendro' ? keyof DendroUIState['components'] : K extends 'scatterplot' ? keyof ScatterplotUIState['components'] : K extends 'scatterplot-umap' ? keyof ScatterplotUmapUIState['components'] : K extends 'histogram' ? keyof HistogramUIState['components'] : K extends 'bubble' ? keyof BubbleUIState['components'] : K extends 'selection' ? keyof SelectionUIState['components'] : never; };
|
|
4712
5020
|
//#endregion
|
|
4713
5021
|
//#region ../node_modules/.pnpm/@vue+shared@3.5.24/node_modules/@vue/shared/dist/shared.d.ts
|
|
4714
|
-
type Prettify<T> = { [K in keyof T]: T[K] } & {};
|
|
5022
|
+
type Prettify<T> = { [K in keyof T]: T[K]; } & {};
|
|
4715
5023
|
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends ((k: infer I) => void) ? I : never;
|
|
4716
|
-
type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P] };
|
|
5024
|
+
type LooseRequired<T> = { [P in keyof (T & Required<T>)]: T[P]; };
|
|
4717
5025
|
type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
|
|
4718
5026
|
//#endregion
|
|
4719
5027
|
//#region ../node_modules/.pnpm/@vue+reactivity@3.5.24/node_modules/@vue/reactivity/dist/reactivity.d.ts
|
|
@@ -4807,14 +5115,14 @@ type ShallowRef<T = any, S = T> = Ref<T, S> & {
|
|
|
4807
5115
|
* ```
|
|
4808
5116
|
*/
|
|
4809
5117
|
interface RefUnwrapBailTypes {}
|
|
4810
|
-
type ShallowUnwrapRef<T> = { [K in keyof T]: DistributeRef<T[K]
|
|
5118
|
+
type ShallowUnwrapRef<T> = { [K in keyof T]: DistributeRef<T[K]>; };
|
|
4811
5119
|
type DistributeRef<T> = T extends Ref<infer V, unknown> ? V : T;
|
|
4812
5120
|
type UnwrapRef<T> = T extends ShallowRef<infer V, unknown> ? V : T extends Ref<infer V, unknown> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
|
|
4813
5121
|
type UnwrapRefSimple<T> = T extends Builtin | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
|
|
4814
5122
|
[RawSymbol]?: true;
|
|
4815
|
-
} ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Map<any, any>>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakMap<any, any>>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Set<any>>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakSet<any>>> : T extends ReadonlyArray<any> ? { [K in keyof T]: UnwrapRefSimple<T[K]
|
|
5123
|
+
} ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Map<any, any>>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakMap<any, any>>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof Set<any>>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> & UnwrapRef<Omit<T, keyof WeakSet<any>>> : T extends ReadonlyArray<any> ? { [K in keyof T]: UnwrapRefSimple<T[K]>; } : T extends object & {
|
|
4816
5124
|
[ShallowReactiveMarker]?: never;
|
|
4817
|
-
} ? { [P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]
|
|
5125
|
+
} ? { [P in keyof T]: P extends symbol ? T[P] : UnwrapRef<T[P]>; } : T;
|
|
4818
5126
|
type WatchCallback<V = any, OV = any> = (value: V, oldValue: OV, onCleanup: OnCleanup) => any;
|
|
4819
5127
|
type OnCleanup = (cleanupFn: () => void) => void;
|
|
4820
5128
|
type WatchStopHandle = () => void;
|
|
@@ -4830,7 +5138,7 @@ type SlotsType<T extends Record<string, any> = Record<string, any>> = {
|
|
|
4830
5138
|
[SlotSymbol]?: T;
|
|
4831
5139
|
};
|
|
4832
5140
|
type StrictUnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<T> & T;
|
|
4833
|
-
type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{ [K in keyof T]: NonNullable<T[K]> extends ((...args: any[]) => any) ? T[K] : Slot<T[K]
|
|
5141
|
+
type UnwrapSlotsType<S extends SlotsType, T = NonNullable<S[typeof SlotSymbol]>> = [keyof S] extends [never] ? Slots : Readonly<Prettify<{ [K in keyof T]: NonNullable<T[K]> extends ((...args: any[]) => any) ? T[K] : Slot<T[K]>; }>>;
|
|
4834
5142
|
type RawSlots = {
|
|
4835
5143
|
[name: string]: unknown;
|
|
4836
5144
|
$stable?: boolean;
|
|
@@ -4872,7 +5180,7 @@ interface SchedulerJob extends Function {
|
|
|
4872
5180
|
declare function nextTick(): Promise<void>;
|
|
4873
5181
|
declare function nextTick<T, R>(this: T, fn: (this: T) => R | Promise<R>): Promise<R>;
|
|
4874
5182
|
type ComponentPropsOptions<P = Data$1> = ComponentObjectPropsOptions<P> | string[];
|
|
4875
|
-
type ComponentObjectPropsOptions<P = Data$1> = { [K in keyof P]: Prop<P[K]> | null };
|
|
5183
|
+
type ComponentObjectPropsOptions<P = Data$1> = { [K in keyof P]: Prop<P[K]> | null; };
|
|
4876
5184
|
type Prop<T, D = T> = PropOptions<T, D> | PropType<T>;
|
|
4877
5185
|
type DefaultFactory<T> = (props: Data$1) => T | null | undefined;
|
|
4878
5186
|
interface PropOptions<T = any, D = T> {
|
|
@@ -4900,7 +5208,7 @@ type RequiredKeys<T> = { [K in keyof T]: T[K] extends {
|
|
|
4900
5208
|
type: BooleanConstructor;
|
|
4901
5209
|
} ? T[K] extends {
|
|
4902
5210
|
default: undefined | (() => undefined);
|
|
4903
|
-
} ? never : K : never }[keyof T];
|
|
5211
|
+
} ? never : K : never; }[keyof T];
|
|
4904
5212
|
type OptionalKeys<T> = Exclude<keyof T, RequiredKeys<T>>;
|
|
4905
5213
|
type DefaultKeys<T> = { [K in keyof T]: T[K] extends {
|
|
4906
5214
|
default: any;
|
|
@@ -4909,7 +5217,7 @@ type DefaultKeys<T> = { [K in keyof T]: T[K] extends {
|
|
|
4909
5217
|
} ? T[K] extends {
|
|
4910
5218
|
type: BooleanConstructor;
|
|
4911
5219
|
required: true;
|
|
4912
|
-
} ? never : K : never }[keyof T];
|
|
5220
|
+
} ? never : K : never; }[keyof T];
|
|
4913
5221
|
type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends true ? any : null : [T] extends [{
|
|
4914
5222
|
type: null | true;
|
|
4915
5223
|
}] ? any : [T] extends [ObjectConstructor | {
|
|
@@ -4932,8 +5240,8 @@ type InferPropType<T, NullAsAny = true> = [T] extends [null] ? NullAsAny extends
|
|
|
4932
5240
|
*/
|
|
4933
5241
|
type ExtractPropTypes<O> = { [K in keyof Pick<O, RequiredKeys<O>>]: O[K] extends {
|
|
4934
5242
|
default: any;
|
|
4935
|
-
} ? Exclude<InferPropType<O[K]>, undefined> : InferPropType<O[K]
|
|
4936
|
-
type ExtractDefaultPropTypes<O> = O extends object ? { [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]
|
|
5243
|
+
} ? Exclude<InferPropType<O[K]>, undefined> : InferPropType<O[K]>; } & { [K in keyof Pick<O, OptionalKeys<O>>]?: InferPropType<O[K]>; };
|
|
5244
|
+
type ExtractDefaultPropTypes<O> = O extends object ? { [K in keyof Pick<O, DefaultKeys<O>>]: InferPropType<O[K]>; } : {};
|
|
4937
5245
|
/**
|
|
4938
5246
|
* Vue `<script setup>` compiler macro for declaring component props. The
|
|
4939
5247
|
* expected argument is the same as the component `props` option.
|
|
@@ -4966,10 +5274,10 @@ type ExtractDefaultPropTypes<O> = O extends object ? { [K in keyof Pick<O, Defau
|
|
|
4966
5274
|
* This is only usable inside `<script setup>`, is compiled away in the
|
|
4967
5275
|
* output and should **not** be actually called at runtime.
|
|
4968
5276
|
*/
|
|
4969
|
-
declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{ [key in PropNames]?: any }>>;
|
|
5277
|
+
declare function defineProps<PropNames extends string = string>(props: PropNames[]): Prettify<Readonly<{ [key in PropNames]?: any; }>>;
|
|
4970
5278
|
declare function defineProps<PP extends ComponentObjectPropsOptions = ComponentObjectPropsOptions>(props: PP): Prettify<Readonly<ExtractPropTypes<PP>>>;
|
|
4971
5279
|
declare function defineProps<TypeProps>(): DefineProps<LooseRequired<TypeProps>, BooleanKey<TypeProps>>;
|
|
4972
|
-
type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean };
|
|
5280
|
+
type DefineProps<T, BKeys extends keyof T> = Readonly<T> & { readonly [K in BKeys]-?: boolean; };
|
|
4973
5281
|
type BooleanKey<T, K extends keyof T = keyof T> = K extends any ? [T[K]] extends [boolean | undefined] ? K : never : never;
|
|
4974
5282
|
/**
|
|
4975
5283
|
* Vue `<script setup>` compiler macro for declaring a component's emitted
|
|
@@ -5002,7 +5310,7 @@ declare function defineEmits<E extends EmitsOptions = EmitsOptions>(emitOptions:
|
|
|
5002
5310
|
declare function defineEmits<T extends ComponentTypeEmits>(): T extends ((...args: any[]) => any) ? T : ShortEmits<T>;
|
|
5003
5311
|
type ComponentTypeEmits = ((...args: any[]) => any) | Record<string, any>;
|
|
5004
5312
|
type RecordToUnion<T extends Record<string, any>> = T[keyof T];
|
|
5005
|
-
type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: T[K]) => void }>>;
|
|
5313
|
+
type ShortEmits<T extends Record<string, any>> = UnionToIntersection<RecordToUnion<{ [K in keyof T]: (evt: K, ...args: T[K]) => void; }>>;
|
|
5006
5314
|
/**
|
|
5007
5315
|
* Vue `<script setup>` compiler macro for declaring a component's exposed
|
|
5008
5316
|
* instance properties when it is accessed by a parent component via template
|
|
@@ -5095,11 +5403,11 @@ declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(na
|
|
|
5095
5403
|
}) & PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T, M, G, S>;
|
|
5096
5404
|
declare function defineModel<T, M extends PropertyKey = string, G = T, S = T>(name: string, options?: PropOptions<T> & DefineModelOptions<T, G, S>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
|
|
5097
5405
|
type NotUndefined<T> = T extends undefined ? never : T;
|
|
5098
|
-
type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P] };
|
|
5099
|
-
type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]
|
|
5406
|
+
type MappedOmit<T, K extends keyof any> = { [P in keyof T as P extends K ? never : P]: T[P]; };
|
|
5407
|
+
type InferDefaults<T> = { [K in keyof T]?: InferDefault<T, T[K]>; };
|
|
5100
5408
|
type NativeType = null | undefined | number | string | boolean | symbol | Function;
|
|
5101
5409
|
type InferDefault<P, T> = ((props: P) => T & {}) | (T extends NativeType ? T : never);
|
|
5102
|
-
type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean } : never;
|
|
5410
|
+
type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof T> = T extends unknown ? Readonly<MappedOmit<T, keyof Defaults>> & { readonly [K in keyof Defaults as K extends keyof T ? K : never]-?: K extends keyof T ? Defaults[K] extends undefined ? IfAny<Defaults[K], NotUndefined<T[K]>, T[K]> : NotUndefined<T[K]> : never; } & { readonly [K in BKeys]-?: K extends keyof Defaults ? Defaults[K] extends undefined ? boolean | undefined : boolean : boolean; } : never;
|
|
5103
5411
|
/**
|
|
5104
5412
|
* Vue `<script setup>` compiler macro for providing props default values when
|
|
5105
5413
|
* using type-based `defineProps` declaration.
|
|
@@ -5123,9 +5431,9 @@ type PropsWithDefaults<T, Defaults extends InferDefaults<T>, BKeys extends keyof
|
|
|
5123
5431
|
declare function withDefaults<T, BKeys extends keyof T, Defaults extends InferDefaults<T>>(props: DefineProps<T, BKeys>, defaults: Defaults): PropsWithDefaults<T, Defaults, BKeys>;
|
|
5124
5432
|
type ObjectEmitsOptions = Record<string, ((...args: any[]) => any) | null>;
|
|
5125
5433
|
type EmitsOptions = ObjectEmitsOptions | string[];
|
|
5126
|
-
type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : never) => any } : {};
|
|
5127
|
-
type ShortEmitsToObject<E> = E extends Record<string, any[]> ? { [K in keyof E]: (...args: E[K]) => any } : E;
|
|
5128
|
-
type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [key in Event]: Options[key] extends ((...args: infer Args) => any) ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void }[Event]>;
|
|
5434
|
+
type EmitsToProps<T extends EmitsOptions | ComponentTypeEmits> = T extends string[] ? { [K in `on${Capitalize<T[number]>}`]?: (...args: any[]) => any; } : T extends ObjectEmitsOptions ? { [K in string & keyof T as `on${Capitalize<K>}`]?: (...args: T[K] extends ((...args: infer P) => any) ? P : T[K] extends null ? any[] : never) => any; } : {};
|
|
5435
|
+
type ShortEmitsToObject<E> = E extends Record<string, any[]> ? { [K in keyof E]: (...args: E[K]) => any; } : E;
|
|
5436
|
+
type EmitFn<Options = ObjectEmitsOptions, Event extends keyof Options = keyof Options> = Options extends Array<infer V> ? (event: V, ...args: any[]) => void : {} extends Options ? (event: string, ...args: any[]) => void : UnionToIntersection<{ [key in Event]: Options[key] extends ((...args: infer Args) => any) ? (event: key, ...args: Args) => void : Options[key] extends any[] ? (event: key, ...args: Options[key]) => void : (event: key, ...args: any[]) => void; }[Event]>;
|
|
5129
5437
|
/**
|
|
5130
5438
|
Runtime helper for applying directives to a vnode. Example usage:
|
|
5131
5439
|
|
|
@@ -5202,10 +5510,6 @@ type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props,
|
|
|
5202
5510
|
__isSuspense?: never;
|
|
5203
5511
|
new (...args: any[]): T;
|
|
5204
5512
|
};
|
|
5205
|
-
/**
|
|
5206
|
-
* @deprecated This is no longer used internally, but exported and relied on by
|
|
5207
|
-
* existing library types generated by vue-tsc.
|
|
5208
|
-
*/
|
|
5209
5513
|
/**
|
|
5210
5514
|
* This is the same as `CreateComponentPublicInstance` but adds local components,
|
|
5211
5515
|
* global directives, exposed, and provide inference.
|
|
@@ -5215,10 +5519,10 @@ type ComponentPublicInstanceConstructor<T extends ComponentPublicInstance<Props,
|
|
|
5215
5519
|
*/
|
|
5216
5520
|
type CreateComponentPublicInstanceWithMixins<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = {}, PublicProps = P, Defaults = {}, MakeDefaultsOptional extends boolean = false, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, TypeRefs extends Data$1 = {}, TypeEl extends Element = any, Provide extends ComponentProvideOptions = ComponentProvideOptions, PublicMixin = IntersectionMixin<Mixin> & IntersectionMixin<Extends>, PublicP = UnwrapMixinsType<PublicMixin, 'P'> & EnsureNonVoid<P>, PublicB = UnwrapMixinsType<PublicMixin, 'B'> & EnsureNonVoid<B>, PublicD = UnwrapMixinsType<PublicMixin, 'D'> & EnsureNonVoid<D>, PublicC extends ComputedOptions = UnwrapMixinsType<PublicMixin, 'C'> & EnsureNonVoid<C>, PublicM extends MethodOptions = UnwrapMixinsType<PublicMixin, 'M'> & EnsureNonVoid<M>, PublicDefaults = UnwrapMixinsType<PublicMixin, 'Defaults'> & EnsureNonVoid<Defaults>> = ComponentPublicInstance<PublicP, PublicB, PublicD, PublicC, PublicM, E, PublicProps, PublicDefaults, MakeDefaultsOptional, ComponentOptionsBase<P, B, D, C, M, Mixin, Extends, E, string, Defaults, {}, string, S, LC, Directives, Exposed, Provide>, I, S, Exposed, TypeRefs, TypeEl>;
|
|
5217
5521
|
type ExposedKeys<T, Exposed extends string & keyof T> = '' extends Exposed ? T : Pick<T, Exposed>;
|
|
5218
|
-
type ComponentPublicInstance<P = {}
|
|
5219
|
-
B = {}
|
|
5220
|
-
D = {}
|
|
5221
|
-
C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = '', TypeRefs extends Data$1 = {}, TypeEl extends Element = any> = {
|
|
5522
|
+
type ComponentPublicInstance<P = {} // props type extracted from props option
|
|
5523
|
+
, B = {} // raw bindings returned from setup()
|
|
5524
|
+
, D = {} // return from data()
|
|
5525
|
+
, C extends ComputedOptions = {}, M extends MethodOptions = {}, E extends EmitsOptions = {}, PublicProps = {}, Defaults = {}, MakeDefaultsOptional extends boolean = false, Options = ComponentOptionsBase<any, any, any, any, any, any, any, any, any>, I extends ComponentInjectOptions = {}, S extends SlotsType = {}, Exposed extends string = '', TypeRefs extends Data$1 = {}, TypeEl extends Element = any> = {
|
|
5222
5526
|
$: ComponentInternalInstance;
|
|
5223
5527
|
$data: D;
|
|
5224
5528
|
$props: MakeDefaultsOptional extends true ? Partial<Defaults> & Omit<Prettify<P> & PublicProps, keyof Defaults> : Prettify<P> & PublicProps;
|
|
@@ -5353,8 +5657,8 @@ interface RendererInternals<HostNode = RendererNode, HostElement = RendererEleme
|
|
|
5353
5657
|
n: NextFn;
|
|
5354
5658
|
o: RendererOptions<HostNode, HostElement>;
|
|
5355
5659
|
}
|
|
5356
|
-
type PatchFn = (n1: VNode | null
|
|
5357
|
-
n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, namespace?: ElementNamespace, slotScopeIds?: string[] | null, optimized?: boolean) => void;
|
|
5660
|
+
type PatchFn = (n1: VNode | null // null means this is a mount
|
|
5661
|
+
, n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, namespace?: ElementNamespace, slotScopeIds?: string[] | null, optimized?: boolean) => void;
|
|
5358
5662
|
type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
|
|
5359
5663
|
type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean) => void;
|
|
5360
5664
|
type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null) => void;
|
|
@@ -5369,21 +5673,6 @@ declare enum MoveType {
|
|
|
5369
5673
|
LEAVE = 1,
|
|
5370
5674
|
REORDER = 2
|
|
5371
5675
|
}
|
|
5372
|
-
/**
|
|
5373
|
-
* The createRenderer function accepts two generic arguments:
|
|
5374
|
-
* HostNode and HostElement, corresponding to Node and Element types in the
|
|
5375
|
-
* host environment. For example, for runtime-dom, HostNode would be the DOM
|
|
5376
|
-
* `Node` interface and HostElement would be the DOM `Element` interface.
|
|
5377
|
-
*
|
|
5378
|
-
* Custom renderers can pass in the platform specific types like this:
|
|
5379
|
-
*
|
|
5380
|
-
* ``` js
|
|
5381
|
-
* const { render, createApp } = createRenderer<Node, Element>({
|
|
5382
|
-
* patchProp,
|
|
5383
|
-
* ...nodeOps
|
|
5384
|
-
* })
|
|
5385
|
-
* ```
|
|
5386
|
-
*/
|
|
5387
5676
|
type MatchPattern = string | RegExp | (string | RegExp)[];
|
|
5388
5677
|
interface KeepAliveProps {
|
|
5389
5678
|
include?: MatchPattern;
|
|
@@ -5493,7 +5782,7 @@ interface MethodOptions {
|
|
|
5493
5782
|
}
|
|
5494
5783
|
type ExtractComputedReturns<T extends any> = { [key in keyof T]: T[key] extends {
|
|
5495
5784
|
get: (...args: any[]) => infer TReturn;
|
|
5496
|
-
} ? TReturn : T[key] extends ((...args: any[]) => infer TReturn) ? TReturn : never };
|
|
5785
|
+
} ? TReturn : T[key] extends ((...args: any[]) => infer TReturn) ? TReturn : never; };
|
|
5497
5786
|
type ObjectWatchOptionItem = {
|
|
5498
5787
|
handler: WatchCallback | string;
|
|
5499
5788
|
} & WatchOptions;
|
|
@@ -5507,7 +5796,7 @@ type ObjectInjectOptions = Record<string | symbol, string | symbol | {
|
|
|
5507
5796
|
from?: string | symbol;
|
|
5508
5797
|
default?: unknown;
|
|
5509
5798
|
}>;
|
|
5510
|
-
type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? { [K in T[number]]?: unknown } : T extends ObjectInjectOptions ? { [K in keyof T]?: unknown } : never;
|
|
5799
|
+
type InjectToObject<T extends ComponentInjectOptions> = T extends string[] ? { [K in T[number]]?: unknown; } : T extends ObjectInjectOptions ? { [K in keyof T]?: unknown; } : never;
|
|
5511
5800
|
interface LegacyOptions<Props, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, I extends ComponentInjectOptions, II extends string, Provide extends ComponentProvideOptions = ComponentProvideOptions> {
|
|
5512
5801
|
compatConfig?: CompatConfig;
|
|
5513
5802
|
[key: string]: any;
|
|
@@ -5561,9 +5850,11 @@ type MergedComponentOptionsOverride = {
|
|
|
5561
5850
|
beforeUpdate?: MergedHook;
|
|
5562
5851
|
updated?: MergedHook;
|
|
5563
5852
|
activated?: MergedHook;
|
|
5564
|
-
deactivated?: MergedHook;
|
|
5853
|
+
deactivated?: MergedHook;
|
|
5854
|
+
/** @deprecated use `beforeUnmount` instead */
|
|
5565
5855
|
beforeDestroy?: MergedHook;
|
|
5566
|
-
beforeUnmount?: MergedHook;
|
|
5856
|
+
beforeUnmount?: MergedHook;
|
|
5857
|
+
/** @deprecated use `unmounted` instead */
|
|
5567
5858
|
destroyed?: MergedHook;
|
|
5568
5859
|
unmounted?: MergedHook;
|
|
5569
5860
|
renderTracked?: MergedHook<DebuggerHook>;
|
|
@@ -5579,9 +5870,6 @@ type OptionTypesType<P = {}, B = {}, D = {}, C extends ComputedOptions = {}, M e
|
|
|
5579
5870
|
M: M;
|
|
5580
5871
|
Defaults: Defaults;
|
|
5581
5872
|
};
|
|
5582
|
-
/**
|
|
5583
|
-
* @deprecated
|
|
5584
|
-
*/
|
|
5585
5873
|
interface InjectionConstraint<T> {}
|
|
5586
5874
|
type InjectionKey<T> = symbol & InjectionConstraint<T>;
|
|
5587
5875
|
type PublicProps = VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -5601,17 +5889,14 @@ interface App<HostElement = any> {
|
|
|
5601
5889
|
/**
|
|
5602
5890
|
* @internal
|
|
5603
5891
|
*/
|
|
5604
|
-
|
|
5605
5892
|
isHydrate?: boolean,
|
|
5606
5893
|
/**
|
|
5607
5894
|
* @internal
|
|
5608
5895
|
*/
|
|
5609
|
-
|
|
5610
5896
|
namespace?: boolean | ElementNamespace,
|
|
5611
5897
|
/**
|
|
5612
5898
|
* @internal
|
|
5613
5899
|
*/
|
|
5614
|
-
|
|
5615
5900
|
vnode?: VNode): ComponentPublicInstance;
|
|
5616
5901
|
unmount(): void;
|
|
5617
5902
|
onUnmount(cb: () => void): void;
|
|
@@ -5681,7 +5966,7 @@ type ObjectPlugin<Options = any[]> = {
|
|
|
5681
5966
|
install: PluginInstallFunction<Options>;
|
|
5682
5967
|
};
|
|
5683
5968
|
type FunctionPlugin<Options = any[]> = PluginInstallFunction<Options> & Partial<ObjectPlugin<Options>>;
|
|
5684
|
-
type Plugin<Options = any[], P extends unknown[] =
|
|
5969
|
+
type Plugin<Options = any[], P extends unknown[] = Options extends unknown[] ? Options : [Options]> = FunctionPlugin<P> | ObjectPlugin<P>;
|
|
5685
5970
|
type TeleportVNode = VNode<RendererNode, RendererElement, TeleportProps>;
|
|
5686
5971
|
interface TeleportProps {
|
|
5687
5972
|
to: string | RendererElement | null | undefined;
|
|
@@ -5692,36 +5977,18 @@ declare const TeleportImpl: {
|
|
|
5692
5977
|
name: string;
|
|
5693
5978
|
__isTeleport: boolean;
|
|
5694
5979
|
process(n1: TeleportVNode | null, n2: TeleportVNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, namespace: ElementNamespace, slotScopeIds: string[] | null, optimized: boolean, internals: RendererInternals): void;
|
|
5695
|
-
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, {
|
|
5696
|
-
um: unmount,
|
|
5697
|
-
o: {
|
|
5698
|
-
remove: hostRemove
|
|
5699
|
-
}
|
|
5700
|
-
}: RendererInternals, doRemove: boolean): void;
|
|
5980
|
+
remove(vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, { um: unmount, o: { remove: hostRemove } }: RendererInternals, doRemove: boolean): void;
|
|
5701
5981
|
move: typeof moveTeleport;
|
|
5702
5982
|
hydrate: typeof hydrateTeleport;
|
|
5703
5983
|
};
|
|
5704
5984
|
declare enum TeleportMoveTypes {
|
|
5705
5985
|
TARGET_CHANGE = 0,
|
|
5706
|
-
TOGGLE = 1
|
|
5707
|
-
|
|
5986
|
+
TOGGLE = 1 // enable / disable
|
|
5987
|
+
,
|
|
5708
5988
|
REORDER = 2
|
|
5709
5989
|
}
|
|
5710
|
-
declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, {
|
|
5711
|
-
|
|
5712
|
-
insert
|
|
5713
|
-
},
|
|
5714
|
-
m: move
|
|
5715
|
-
}: RendererInternals, moveType?: TeleportMoveTypes): void;
|
|
5716
|
-
declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, {
|
|
5717
|
-
o: {
|
|
5718
|
-
nextSibling,
|
|
5719
|
-
parentNode,
|
|
5720
|
-
querySelector,
|
|
5721
|
-
insert,
|
|
5722
|
-
createText
|
|
5723
|
-
}
|
|
5724
|
-
}: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
|
|
5990
|
+
declare function moveTeleport(vnode: VNode, container: RendererElement, parentAnchor: RendererNode | null, { o: { insert }, m: move }: RendererInternals, moveType?: TeleportMoveTypes): void;
|
|
5991
|
+
declare function hydrateTeleport(node: Node, vnode: TeleportVNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean, { o: { nextSibling, parentNode, querySelector, insert, createText } }: RendererInternals<Node, Element>, hydrateChildren: (node: Node | null, vnode: VNode, container: Element, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, slotScopeIds: string[] | null, optimized: boolean) => Node | null): Node | null;
|
|
5725
5992
|
declare const Teleport: {
|
|
5726
5993
|
__isTeleport: true;
|
|
5727
5994
|
new (): {
|
|
@@ -5807,18 +6074,6 @@ interface VNode<HostNode = RendererNode, HostElement = RendererElement, ExtraPro
|
|
|
5807
6074
|
appContext: AppContext | null;
|
|
5808
6075
|
}
|
|
5809
6076
|
type Data$1 = Record<string, unknown>;
|
|
5810
|
-
/**
|
|
5811
|
-
* Public utility type for extracting the instance type of a component.
|
|
5812
|
-
* Works with all valid component definition types. This is intended to replace
|
|
5813
|
-
* the usage of `InstanceType<typeof Comp>` which only works for
|
|
5814
|
-
* constructor-based component definition types.
|
|
5815
|
-
*
|
|
5816
|
-
* @example
|
|
5817
|
-
* ```ts
|
|
5818
|
-
* const MyComp = { ... }
|
|
5819
|
-
* declare const instance: ComponentInstance<typeof MyComp>
|
|
5820
|
-
* ```
|
|
5821
|
-
*/
|
|
5822
6077
|
/**
|
|
5823
6078
|
* For extending allowed non-declared props on components in TSX
|
|
5824
6079
|
*/
|
|
@@ -5975,7 +6230,8 @@ declare module '@vue/runtime-core' {
|
|
|
5975
6230
|
KeepAlive: DefineComponent<KeepAliveProps>;
|
|
5976
6231
|
BaseTransition: DefineComponent<BaseTransitionProps>;
|
|
5977
6232
|
}
|
|
5978
|
-
}
|
|
6233
|
+
}
|
|
6234
|
+
// Note: this file is auto concatenated to the end of the bundled d.ts during
|
|
5979
6235
|
// build.
|
|
5980
6236
|
type _defineProps = typeof defineProps;
|
|
5981
6237
|
type _defineEmits = typeof defineEmits;
|
|
@@ -6034,13 +6290,7 @@ type SystemModifiers = (typeof systemModifiers)[number];
|
|
|
6034
6290
|
type CompatModifiers = keyof typeof keyNames;
|
|
6035
6291
|
type VOnModifiers = SystemModifiers | ModifierGuards | CompatModifiers;
|
|
6036
6292
|
type ModifierGuards = 'shift' | 'ctrl' | 'alt' | 'meta' | 'left' | 'right' | 'stop' | 'prevent' | 'self' | 'middle' | 'exact';
|
|
6037
|
-
/**
|
|
6038
|
-
* @private
|
|
6039
|
-
*/
|
|
6040
6293
|
declare const keyNames: Record<'esc' | 'space' | 'up' | 'left' | 'right' | 'down' | 'delete', string>;
|
|
6041
|
-
/**
|
|
6042
|
-
* @private
|
|
6043
|
-
*/
|
|
6044
6294
|
type VOnDirective = Directive<any, any, VOnModifiers>;
|
|
6045
6295
|
type AssignerFn = (value: any) => void;
|
|
6046
6296
|
declare const assignKey: unique symbol;
|
|
@@ -6082,7 +6332,7 @@ declare module '@vue/runtime-core' {
|
|
|
6082
6332
|
}
|
|
6083
6333
|
}
|
|
6084
6334
|
//#endregion
|
|
6085
|
-
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.
|
|
6335
|
+
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.8.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model_rmi4yoexe2owj33sow37pnjvh4/node_modules/@milaboratories/graph-maker/dist/dataBindAes.d.ts
|
|
6086
6336
|
/** Mapping for categorical axes (string axes) */
|
|
6087
6337
|
interface AestheticMappingCategorical {
|
|
6088
6338
|
type: 'categorical';
|
|
@@ -6103,7 +6353,7 @@ interface AestheticValues {
|
|
|
6103
6353
|
dotShape: DotShape;
|
|
6104
6354
|
}
|
|
6105
6355
|
//#endregion
|
|
6106
|
-
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.
|
|
6356
|
+
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.8.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model_rmi4yoexe2owj33sow37pnjvh4/node_modules/@milaboratories/graph-maker/dist/components/AesSettings/types.d.ts
|
|
6107
6357
|
type CategoricalPalette = 'light' | 'bright' | 'dark' | 'paired' | 'triadic' | 'magnetic';
|
|
6108
6358
|
type SequentialPalette = 'viridis' | 'magma' | 'density' | 'salinity' | 'sunset' | 'perceptual_rainbow';
|
|
6109
6359
|
type DivergingPalette = 'spectrum' | 'teal_red' | 'blue_red' | 'lime_rose' | 'viridis_magma';
|
|
@@ -6112,7 +6362,14 @@ type Palette = CategoricalPalette | ContinuousPalette;
|
|
|
6112
6362
|
type DotShape = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '13' | '14' | '21' | '22' | '23' | '24' | '25';
|
|
6113
6363
|
type LineType = 'solid' | 'dashed' | 'dotted' | 'dotdash' | 'longdash' | 'twodash';
|
|
6114
6364
|
//#endregion
|
|
6115
|
-
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.
|
|
6365
|
+
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.8.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model_rmi4yoexe2owj33sow37pnjvh4/node_modules/@milaboratories/graph-maker/dist/utils/createChartSettingsForRender/resolveLabelParts.d.ts
|
|
6366
|
+
type LabelPartsOverlay = {
|
|
6367
|
+
order: string[];
|
|
6368
|
+
hidden?: Record<string, boolean>;
|
|
6369
|
+
};
|
|
6370
|
+
type LabelPartsState = LabelPartsOverlay | null;
|
|
6371
|
+
//#endregion
|
|
6372
|
+
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.8.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model_rmi4yoexe2owj33sow37pnjvh4/node_modules/@milaboratories/graph-maker/dist/constantsCommon.d.ts
|
|
6116
6373
|
type DiscreteStatisticsState = {
|
|
6117
6374
|
overall: {
|
|
6118
6375
|
data: {
|
|
@@ -6152,6 +6409,7 @@ type ScatterplotStatisticsState = {
|
|
|
6152
6409
|
on: boolean;
|
|
6153
6410
|
trim: boolean;
|
|
6154
6411
|
showLegend: boolean;
|
|
6412
|
+
lineWidth: number;
|
|
6155
6413
|
};
|
|
6156
6414
|
additionalCurveTrends: Record<string, {
|
|
6157
6415
|
on: boolean;
|
|
@@ -6239,6 +6497,7 @@ type LayersSettings = {
|
|
|
6239
6497
|
curve: {
|
|
6240
6498
|
smoothing: boolean;
|
|
6241
6499
|
lineColor: ColorAes;
|
|
6500
|
+
lineWidth: number;
|
|
6242
6501
|
};
|
|
6243
6502
|
additionalCurves: {
|
|
6244
6503
|
smoothing: boolean;
|
|
@@ -6315,7 +6574,9 @@ type LayersSettings = {
|
|
|
6315
6574
|
emptyGroupValue: number;
|
|
6316
6575
|
lineColor: ColorAes | null;
|
|
6317
6576
|
dotShape: DotShapeAes;
|
|
6577
|
+
dotSize: number;
|
|
6318
6578
|
lineType: LineTypeAes;
|
|
6579
|
+
lineWidth: number;
|
|
6319
6580
|
dotFill: ColorAes | null;
|
|
6320
6581
|
opacity: number;
|
|
6321
6582
|
};
|
|
@@ -6324,6 +6585,8 @@ type LayersSettings = {
|
|
|
6324
6585
|
interval: 'sd' | 'se' | '';
|
|
6325
6586
|
lineColor: ColorAes | null;
|
|
6326
6587
|
dotShape: DotShapeAes;
|
|
6588
|
+
dotSize: number;
|
|
6589
|
+
lineWidth: number;
|
|
6327
6590
|
dotFill: ColorAes | null;
|
|
6328
6591
|
opacity: number;
|
|
6329
6592
|
};
|
|
@@ -6376,6 +6639,7 @@ type AxesState = {
|
|
|
6376
6639
|
annotationTitlePosition: 'left' | 'right' | 'hidden';
|
|
6377
6640
|
hideAxisLabels: boolean;
|
|
6378
6641
|
hideAxisGroupLabels: boolean;
|
|
6642
|
+
labelParts: LabelPartsState;
|
|
6379
6643
|
};
|
|
6380
6644
|
axisY: {
|
|
6381
6645
|
labelsRotation: LabelsRotation | null;
|
|
@@ -6399,6 +6663,8 @@ type AxesState = {
|
|
|
6399
6663
|
annotationTitlePosition: 'top' | 'bottom' | 'hidden';
|
|
6400
6664
|
hideAxisLabels: boolean;
|
|
6401
6665
|
hideAxisGroupLabels: boolean;
|
|
6666
|
+
/** Mirror of axisX.labelParts; see axisX for full semantics. */
|
|
6667
|
+
labelParts: LabelPartsState;
|
|
6402
6668
|
};
|
|
6403
6669
|
legend: {
|
|
6404
6670
|
show?: boolean;
|
|
@@ -6413,21 +6679,23 @@ type AxesState = {
|
|
|
6413
6679
|
groupingStack: 'vertical' | 'horizontal';
|
|
6414
6680
|
canvasRenderMode: boolean;
|
|
6415
6681
|
showLegend: boolean;
|
|
6416
|
-
nullValueLabel: string;
|
|
6417
|
-
|
|
6682
|
+
nullValueLabel: string;
|
|
6683
|
+
/** Max number of unique values saved per source (group/axis); over this limit sets overflow */
|
|
6684
|
+
maxGroupCount: number;
|
|
6685
|
+
/** Max number of facet values saved per facetBy column; over this limit sets overflow */
|
|
6418
6686
|
maxFacetsCount: number;
|
|
6419
6687
|
};
|
|
6420
6688
|
};
|
|
6421
6689
|
//#endregion
|
|
6422
|
-
//#region ../node_modules/.pnpm/@milaboratories+uikit@2.15.
|
|
6690
|
+
//#region ../node_modules/.pnpm/@milaboratories+uikit@2.15.29_@vue+compiler-dom@3.5.39_@vue+server-renderer@3.5.24_vue@3.5.24_w7wd5ao6o5bg3ihsrmlty7jpwm/node_modules/@milaboratories/uikit/dist/types.d.ts
|
|
6423
6691
|
declare global {
|
|
6424
6692
|
var platforma: Platforma | undefined;
|
|
6425
6693
|
interface Window {
|
|
6426
6694
|
platforma: Platforma | undefined;
|
|
6427
6695
|
}
|
|
6428
|
-
}
|
|
6696
|
+
}
|
|
6429
6697
|
//#endregion
|
|
6430
|
-
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.
|
|
6698
|
+
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.8.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model_rmi4yoexe2owj33sow37pnjvh4/node_modules/@milaboratories/graph-maker/dist/forms/index.d.ts
|
|
6431
6699
|
declare const forms: {
|
|
6432
6700
|
settings: {
|
|
6433
6701
|
icon: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, SVGSVGElement>;
|
|
@@ -6532,32 +6800,43 @@ declare const forms: {
|
|
|
6532
6800
|
};
|
|
6533
6801
|
type FormKey = keyof typeof forms;
|
|
6534
6802
|
//#endregion
|
|
6535
|
-
//#region ../node_modules/.pnpm/@milaboratories+miplots4@1.
|
|
6803
|
+
//#region ../node_modules/.pnpm/@milaboratories+miplots4@1.5.0_d3-dispatch@3.0.1_d3-path@3.1.0_d3-scale-chromatic@3.1.0/node_modules/@milaboratories/miplots4/dist/scatterplot-umap/types.d.ts
|
|
6536
6804
|
type Point = [number, number];
|
|
6537
6805
|
type Polygon = {
|
|
6538
6806
|
points: Point[];
|
|
6539
6807
|
closed: boolean;
|
|
6540
6808
|
};
|
|
6541
6809
|
//#endregion
|
|
6542
|
-
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.
|
|
6810
|
+
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.8.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model_rmi4yoexe2owj33sow37pnjvh4/node_modules/@milaboratories/graph-maker/dist/utils/loadDefaultSources.d.ts
|
|
6543
6811
|
type LoadedDefaultOptionsMap<T extends ChartType> = Record<InputNamesByChartType[T], (SelectorStateFilter | SelectorStateSimple)[]>;
|
|
6544
6812
|
//#endregion
|
|
6545
|
-
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.
|
|
6546
|
-
type DeepPartial$1<T> = { [P in keyof T]?: Partial<T[P]
|
|
6813
|
+
//#region ../node_modules/.pnpm/@milaboratories+graph-maker@1.8.0_@milaboratories+pl-model-common@1.48.0_@platforma-sdk+model_rmi4yoexe2owj33sow37pnjvh4/node_modules/@milaboratories/graph-maker/dist/types.d.ts
|
|
6814
|
+
type DeepPartial$1<T> = { [P in keyof T]?: Partial<T[P]>; };
|
|
6547
6815
|
type GraphMakerState = {
|
|
6548
|
-
/** Editable title on the top */
|
|
6816
|
+
/** Editable title on the top */
|
|
6817
|
+
title: string;
|
|
6818
|
+
/** 'box', 'violins', 'dots' etc, depends on chart type */
|
|
6549
6819
|
template: LayersTemplate;
|
|
6550
6820
|
/** Optional part, used for data saving to ui-state; don't need to be set in initial settings,
|
|
6551
|
-
|
|
6552
|
-
currentTab?: FormKey | null;
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6556
|
-
|
|
6557
|
-
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6821
|
+
it appears in settings after changes in user interface */
|
|
6822
|
+
currentTab?: FormKey | null;
|
|
6823
|
+
/** Value of current zoom in percents, by default 100 */
|
|
6824
|
+
zoomState?: number;
|
|
6825
|
+
/** Lasso state for scatterplot */
|
|
6826
|
+
selectedPolygons?: Polygon[];
|
|
6827
|
+
/** Data-mapping state, use inner-generated keys to keep selected columns, use default-options prop to set defaults */
|
|
6828
|
+
optionsState?: InputState;
|
|
6829
|
+
/** Technical field, used to keep track of used default options to avoid erasing of user's changes or not applying changed defaults */
|
|
6830
|
+
usedDefaultOptions?: LoadedDefaultOptionsMap<ChartType>;
|
|
6831
|
+
/** Saved settings of p-value (for discrete charts), trends (for scatterplot) */
|
|
6832
|
+
statisticsSettings?: DeepPartial$1<StatisticsState>;
|
|
6833
|
+
/** Settings of grid, axes titles, facet positions, grouping order */
|
|
6834
|
+
axesSettings?: DeepPartial$1<AxesState>;
|
|
6835
|
+
/** Settings for every type of layer, aesthetics */
|
|
6836
|
+
layersSettings?: DeepPartial$1<LayersSettings>;
|
|
6837
|
+
/** Saved palettes and color-mapping settings linked to columns/axes */
|
|
6838
|
+
dataBindAes?: Record<string, AestheticMappingCategorical>;
|
|
6839
|
+
/** Technical field, used to keep track of tooltip hint was shown to avoid showing it again */
|
|
6561
6840
|
tooltipHintWasShown?: boolean;
|
|
6562
6841
|
};
|
|
6563
6842
|
type DiscreteLayer = 'box' | 'binnedDots' | 'jitteredDots' | 'violin' | 'bar' | 'stackedBar' | 'stackedArea' | 'line' | 'errorbar' | 'sina' | 'logo';
|
|
@@ -6586,7 +6865,8 @@ type HeatmapFrame = 'full' | 'none';
|
|
|
6586
6865
|
//#region ../model/dist/index.d.ts
|
|
6587
6866
|
/** Workflow-facing args, derived from `BlockData`. */
|
|
6588
6867
|
type BlockArgs = {
|
|
6589
|
-
/** Profiler state matrix `[variantKey, parentId, position] -> state`. */
|
|
6868
|
+
/** Profiler state matrix `[variantKey, parentId, position] -> state`. */
|
|
6869
|
+
stateMatrixRef: PlRef;
|
|
6590
6870
|
/** Parent to scope the whole plot to. Required — the args projection throws until it is set
|
|
6591
6871
|
* (the UI auto-selects the first parent), so the workflow only ever runs single-parent. */
|
|
6592
6872
|
selectedParentId: string;
|
|
@@ -6628,30 +6908,27 @@ type BlockUiState = {
|
|
|
6628
6908
|
*/
|
|
6629
6909
|
selectedLandscapeScore?: string;
|
|
6630
6910
|
};
|
|
6631
|
-
/** Data version `v1`: one faceted landscape chart, so one chart state. */
|
|
6632
6911
|
/** Unified persisted data: workflow-relevant selections + UI view state. */
|
|
6633
6912
|
type BlockData$1 = {
|
|
6634
6913
|
customBlockLabel?: string;
|
|
6635
6914
|
defaultBlockLabel?: string;
|
|
6636
|
-
stateMatrixRef?: PlRef;
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6915
|
+
stateMatrixRef?: PlRef;
|
|
6916
|
+
/** Parent the plot is scoped to (UI auto-selects the first available on load). */
|
|
6917
|
+
selectedParentId?: string;
|
|
6918
|
+
/** Ordered per-round frequency columns; `[0]` = baseline R0. Empty = composition view off. */
|
|
6919
|
+
roundFrequencyRefs: SUniversalPColumnId[];
|
|
6920
|
+
/** Fraction-space epsilon for the composition ratio (default 1e-6). */
|
|
6921
|
+
compositionEpsilon: number;
|
|
6922
|
+
/** Ordered per-variant score columns for the mutation landscape. Empty = no map rendered. */
|
|
6640
6923
|
scoreRefs: SUniversalPColumnId[];
|
|
6641
6924
|
} & BlockUiState;
|
|
6642
|
-
/**
|
|
6643
|
-
* Default state for a mutation-landscape chart. Used by `init` for the placeholder and by the UI
|
|
6644
|
-
* for each score a run produces, so the two look alike.
|
|
6645
|
-
*
|
|
6646
|
-
* @param currentTab `"settings"` opens the Settings drawer, `null` leaves it closed
|
|
6647
|
-
*/
|
|
6648
6925
|
declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, InferOutputsFromLambdas<{
|
|
6649
6926
|
stateMatrixOptions: ConfigRenderLambda<{
|
|
6650
6927
|
readonly ref: {
|
|
6651
6928
|
readonly __isRef: true;
|
|
6652
6929
|
readonly blockId: string;
|
|
6653
6930
|
readonly name: string;
|
|
6654
|
-
readonly requireEnrichments?: true | undefined
|
|
6931
|
+
readonly requireEnrichments?: true | undefined;
|
|
6655
6932
|
};
|
|
6656
6933
|
readonly label: string;
|
|
6657
6934
|
}[]>;
|
|
@@ -6675,35 +6952,6 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
6675
6952
|
};
|
|
6676
6953
|
} & {
|
|
6677
6954
|
singleMutantHeatmapPCols: ConfigRenderLambda<{
|
|
6678
|
-
readonly spec: {
|
|
6679
|
-
readonly kind: "PColumn";
|
|
6680
|
-
readonly name: string;
|
|
6681
|
-
readonly domain?: {
|
|
6682
|
-
[x: string]: string;
|
|
6683
|
-
} | undefined;
|
|
6684
|
-
readonly contextDomain?: {
|
|
6685
|
-
[x: string]: string;
|
|
6686
|
-
} | undefined;
|
|
6687
|
-
readonly annotations?: {
|
|
6688
|
-
[x: string]: string;
|
|
6689
|
-
} | undefined;
|
|
6690
|
-
readonly valueType: "Int" | "Long" | "Float" | "Double" | "String" | "Bytes";
|
|
6691
|
-
readonly parentAxes?: number[] | undefined;
|
|
6692
|
-
readonly axesSpec: {
|
|
6693
|
-
readonly type: AxisValueType;
|
|
6694
|
-
readonly name: string;
|
|
6695
|
-
readonly domain?: {
|
|
6696
|
-
[x: string]: string;
|
|
6697
|
-
} | undefined;
|
|
6698
|
-
readonly contextDomain?: {
|
|
6699
|
-
[x: string]: string;
|
|
6700
|
-
} | undefined;
|
|
6701
|
-
readonly annotations?: {
|
|
6702
|
-
[x: string]: string;
|
|
6703
|
-
} | undefined;
|
|
6704
|
-
readonly parentAxes?: number[] | undefined;
|
|
6705
|
-
}[];
|
|
6706
|
-
};
|
|
6707
6955
|
readonly id: PObjectId;
|
|
6708
6956
|
readonly data: {
|
|
6709
6957
|
readonly handle: AccessorHandle;
|
|
@@ -6753,13 +7001,7 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
6753
7001
|
allFieldsResolved: {};
|
|
6754
7002
|
mapFields: {};
|
|
6755
7003
|
};
|
|
6756
|
-
|
|
6757
|
-
} & {
|
|
6758
|
-
landscapePanels: ConfigRenderLambda<{
|
|
6759
|
-
key: string;
|
|
6760
|
-
label: string;
|
|
6761
|
-
index: number;
|
|
6762
|
-
spec: {
|
|
7004
|
+
readonly spec: {
|
|
6763
7005
|
readonly kind: "PColumn";
|
|
6764
7006
|
readonly name: string;
|
|
6765
7007
|
readonly domain?: {
|
|
@@ -6771,8 +7013,8 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
6771
7013
|
readonly annotations?: {
|
|
6772
7014
|
[x: string]: string;
|
|
6773
7015
|
} | undefined;
|
|
6774
|
-
readonly valueType: "
|
|
6775
|
-
readonly parentAxes?: number[]
|
|
7016
|
+
readonly valueType: "Bytes" | "Double" | "Float" | "Int" | "Long" | "String";
|
|
7017
|
+
readonly parentAxes?: number[];
|
|
6776
7018
|
readonly axesSpec: {
|
|
6777
7019
|
readonly type: AxisValueType;
|
|
6778
7020
|
readonly name: string;
|
|
@@ -6785,17 +7027,16 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
6785
7027
|
readonly annotations?: {
|
|
6786
7028
|
[x: string]: string;
|
|
6787
7029
|
} | undefined;
|
|
6788
|
-
readonly parentAxes?: number[]
|
|
7030
|
+
readonly parentAxes?: number[];
|
|
6789
7031
|
}[];
|
|
6790
7032
|
};
|
|
6791
7033
|
}[] | undefined>;
|
|
6792
7034
|
} & {
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
readonly spec: {
|
|
7035
|
+
landscapePanels: ConfigRenderLambda<{
|
|
7036
|
+
key: string;
|
|
7037
|
+
label: string;
|
|
7038
|
+
index: number;
|
|
7039
|
+
spec: {
|
|
6799
7040
|
readonly kind: "PColumn";
|
|
6800
7041
|
readonly name: string;
|
|
6801
7042
|
readonly domain?: {
|
|
@@ -6807,8 +7048,8 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
6807
7048
|
readonly annotations?: {
|
|
6808
7049
|
[x: string]: string;
|
|
6809
7050
|
} | undefined;
|
|
6810
|
-
readonly valueType: "
|
|
6811
|
-
readonly parentAxes?: number[]
|
|
7051
|
+
readonly valueType: "Bytes" | "Double" | "Float" | "Int" | "Long" | "String";
|
|
7052
|
+
readonly parentAxes?: number[];
|
|
6812
7053
|
readonly axesSpec: {
|
|
6813
7054
|
readonly type: AxisValueType;
|
|
6814
7055
|
readonly name: string;
|
|
@@ -6821,9 +7062,16 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
6821
7062
|
readonly annotations?: {
|
|
6822
7063
|
[x: string]: string;
|
|
6823
7064
|
} | undefined;
|
|
6824
|
-
readonly parentAxes?: number[]
|
|
7065
|
+
readonly parentAxes?: number[];
|
|
6825
7066
|
}[];
|
|
6826
7067
|
};
|
|
7068
|
+
}[] | undefined>;
|
|
7069
|
+
} & {
|
|
7070
|
+
compositionHeatmapPf: ConfigRenderLambda<PFrameHandle | undefined> & {
|
|
7071
|
+
withStatus: true;
|
|
7072
|
+
};
|
|
7073
|
+
} & {
|
|
7074
|
+
compositionHeatmapPCols: ConfigRenderLambda<{
|
|
6827
7075
|
readonly id: PObjectId;
|
|
6828
7076
|
readonly data: {
|
|
6829
7077
|
readonly handle: AccessorHandle;
|
|
@@ -6873,6 +7121,35 @@ declare const platforma: PlatformaExtended<PlatformaV3<BlockData$1, BlockArgs, I
|
|
|
6873
7121
|
allFieldsResolved: {};
|
|
6874
7122
|
mapFields: {};
|
|
6875
7123
|
};
|
|
7124
|
+
readonly spec: {
|
|
7125
|
+
readonly kind: "PColumn";
|
|
7126
|
+
readonly name: string;
|
|
7127
|
+
readonly domain?: {
|
|
7128
|
+
[x: string]: string;
|
|
7129
|
+
} | undefined;
|
|
7130
|
+
readonly contextDomain?: {
|
|
7131
|
+
[x: string]: string;
|
|
7132
|
+
} | undefined;
|
|
7133
|
+
readonly annotations?: {
|
|
7134
|
+
[x: string]: string;
|
|
7135
|
+
} | undefined;
|
|
7136
|
+
readonly valueType: "Bytes" | "Double" | "Float" | "Int" | "Long" | "String";
|
|
7137
|
+
readonly parentAxes?: number[];
|
|
7138
|
+
readonly axesSpec: {
|
|
7139
|
+
readonly type: AxisValueType;
|
|
7140
|
+
readonly name: string;
|
|
7141
|
+
readonly domain?: {
|
|
7142
|
+
[x: string]: string;
|
|
7143
|
+
} | undefined;
|
|
7144
|
+
readonly contextDomain?: {
|
|
7145
|
+
[x: string]: string;
|
|
7146
|
+
} | undefined;
|
|
7147
|
+
readonly annotations?: {
|
|
7148
|
+
[x: string]: string;
|
|
7149
|
+
} | undefined;
|
|
7150
|
+
readonly parentAxes?: number[];
|
|
7151
|
+
}[];
|
|
7152
|
+
};
|
|
6876
7153
|
}[] | undefined>;
|
|
6877
7154
|
} & {
|
|
6878
7155
|
isRunning: ConfigRenderLambda<boolean>;
|