@m1212e/rumble 0.27.0 → 0.27.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +94 -70
- package/out/client/generate.cjs +1 -1
- package/out/client/generate.d.cts +0 -2
- package/out/client/generate.d.cts.map +1 -1
- package/out/client/generate.d.mts +0 -2
- package/out/client/generate.d.mts.map +1 -1
- package/out/client/generate.mjs +1 -2
- package/out/client.cjs +7 -14
- package/out/client.cjs.map +1 -1
- package/out/client.d.cts +19 -28
- package/out/client.d.cts.map +1 -1
- package/out/client.d.mts +19 -28
- package/out/client.d.mts.map +1 -1
- package/out/client.mjs +7 -14
- package/out/client.mjs.map +1 -1
- package/out/{generate-D0CKBths.cjs → generate-Btr_u0Lr.cjs} +4 -7
- package/out/{generate-D0CKBths.cjs.map → generate-Btr_u0Lr.cjs.map} +1 -1
- package/out/{generate-BySnFVve.mjs → generate-Dzf2klR2.mjs} +4 -7
- package/out/{generate-BySnFVve.mjs.map → generate-Dzf2klR2.mjs.map} +1 -1
- package/out/index.cjs +56 -110
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +10 -300
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +10 -300
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +55 -108
- package/out/index.mjs.map +1 -1
- package/package.json +15 -12
package/out/index.d.cts
CHANGED
|
@@ -16,8 +16,6 @@ import { useSofa } from "@m1212e/sofa-api";
|
|
|
16
16
|
import { ServerOptions } from "graphql-ws";
|
|
17
17
|
import { z } from "zod";
|
|
18
18
|
import { PhoneNumber } from "libphonenumber-js";
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region lib/types/drizzleInstanceType.d.ts
|
|
21
19
|
type DrizzleInstance = PgAsyncDatabase<any, any> | SQLiteAsyncDatabase<any, any, any> | MySqlAsyncDatabase<any, any>;
|
|
22
20
|
/**
|
|
23
21
|
* Type representing the query function of a Drizzle instance.
|
|
@@ -37,8 +35,6 @@ type DrizzleQueryFunctionInput<DB extends DrizzleInstance, QueryField extends ke
|
|
|
37
35
|
* Type representing the type of a record in a specific table of the Drizzle instance.
|
|
38
36
|
*/
|
|
39
37
|
type DrizzleTableValueType<DB extends DrizzleInstance, QueryField extends keyof DrizzleQueryFunction<DB>> = NonNullable<Awaited<ReturnType<DrizzleQueryFunction<DB>[QueryField]["findFirst"]>>>;
|
|
40
|
-
//#endregion
|
|
41
|
-
//#region lib/abilityBuilder/queryFilter.d.ts
|
|
42
38
|
/**
|
|
43
39
|
* Static, non changing query filter input type for a specific table
|
|
44
40
|
*/
|
|
@@ -56,8 +52,6 @@ type QueryFilter<DB extends DrizzleInstance, Table extends keyof DrizzleQueryFun
|
|
|
56
52
|
* granted the action without conditions.
|
|
57
53
|
*/
|
|
58
54
|
type QueryFilterRegistry<UserContext extends Record<string, any>, DB extends DrizzleInstance, Action extends string, TableName extends keyof DrizzleQueryFunction<DB>> = Map<Action, QueryFilter<DB, TableName, DrizzleQueryFunctionInput<DB, TableName>, UserContext>[] | "unrestricted">;
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region lib/runtimeFiltersPlugin/filterTypes.d.ts
|
|
61
55
|
type Prefetch<Context, ReturnType> = (params: {
|
|
62
56
|
context: Context;
|
|
63
57
|
}) => Promise<ReturnType>;
|
|
@@ -70,8 +64,6 @@ type FilterPrefetchCombo<Context, FilteredEntityType, PrefetchReturnType = never
|
|
|
70
64
|
filter: Filter<Context, FilteredEntityType, PrefetchReturnType>;
|
|
71
65
|
prefetch?: Prefetch<Context, PrefetchReturnType>;
|
|
72
66
|
};
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region lib/types/rumbleInput.d.ts
|
|
75
67
|
interface RumbleLogger {
|
|
76
68
|
info(obj: Record<string, unknown>, msg: string): void;
|
|
77
69
|
warn(obj: Record<string, unknown>, msg: string): void;
|
|
@@ -232,16 +224,12 @@ type RumbleInput<UserContext extends Record<string, any>, DB extends DrizzleInst
|
|
|
232
224
|
*/
|
|
233
225
|
validation?: NonNullable<ConstructorParameters<typeof SchemaBuilder>[0]>["validation"];
|
|
234
226
|
};
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region lib/abilityBuilder/columnMask.d.ts
|
|
237
227
|
type MaskColumnsInput<DB extends DrizzleInstance, Action extends string> = {
|
|
238
228
|
table: TableRelationNames<DB>;
|
|
239
229
|
action: Action;
|
|
240
230
|
abilities: Record<string, any>;
|
|
241
231
|
entities: unknown[];
|
|
242
232
|
};
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region lib/abilityBuilder/filterResponse.d.ts
|
|
245
233
|
type FindFirstConfig<DB extends DrizzleInstance, TableName extends TableRelationNames<DB>> = NonNullable<Parameters<DB["query"][TableName]["findFirst"]>[0]>;
|
|
246
234
|
type FindManyConfig<DB extends DrizzleInstance, TableName extends TableRelationNames<DB>> = NonNullable<Parameters<DB["query"][TableName]["findMany"]>[0]>;
|
|
247
235
|
/**
|
|
@@ -304,8 +292,6 @@ type AbilityFilterResponse<DB extends DrizzleInstance, TableName extends TableRe
|
|
|
304
292
|
*/
|
|
305
293
|
merge: (filters: NonNullable<DrizzleQueryFunctionInput<DB, TableName>>) => AbilityFilter<DB, TableName>;
|
|
306
294
|
};
|
|
307
|
-
//#endregion
|
|
308
|
-
//#region lib/abilityBuilder/inputGuard.d.ts
|
|
309
295
|
type GuardedInput = {
|
|
310
296
|
where?: unknown;
|
|
311
297
|
orderBy?: unknown;
|
|
@@ -315,8 +301,6 @@ type GuardedInput = {
|
|
|
315
301
|
* abilities of the request let the caller read, see `createInputGuard`.
|
|
316
302
|
*/
|
|
317
303
|
export declare function guardFilterInput(abilities: object, table: string, action: string, input: GuardedInput): Promise<GuardedInput>;
|
|
318
|
-
//#endregion
|
|
319
|
-
//#region lib/helpers/asserts.d.ts
|
|
320
304
|
/**
|
|
321
305
|
*
|
|
322
306
|
* Helper function to map a drizzle findFirst query result,
|
|
@@ -388,8 +372,6 @@ export declare const assertFindFirstExists: <T>(value: T | undefined) => T;
|
|
|
388
372
|
* ```
|
|
389
373
|
*/
|
|
390
374
|
export declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
391
|
-
//#endregion
|
|
392
|
-
//#region lib/helpers/mapNullFieldsToUndefined.d.ts
|
|
393
375
|
/**
|
|
394
376
|
* Helper to map null fields to undefined
|
|
395
377
|
* @param obj The object to map
|
|
@@ -449,8 +431,6 @@ export declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
|
449
431
|
* ```
|
|
450
432
|
*/
|
|
451
433
|
export declare function mapNullFieldsToUndefined<T extends object>(obj: T): { [K in keyof T]: T[K] extends null ? undefined : Exclude<T[K], null>; };
|
|
452
|
-
//#endregion
|
|
453
|
-
//#region lib/args/whereArgsImplementer.d.ts
|
|
454
434
|
type NumberWhereInputArgument = {
|
|
455
435
|
eq?: number;
|
|
456
436
|
ne?: number;
|
|
@@ -600,10 +580,7 @@ type DateTimeWhereInputArgument = {
|
|
|
600
580
|
OR?: DateTimeWhereInputArgument[];
|
|
601
581
|
NOT?: DateTimeWhereInputArgument;
|
|
602
582
|
};
|
|
603
|
-
|
|
604
|
-
export { AnyTuple, CamelCase, Equal$2 as Equal, Every, Expect, Extends, Head$1 as Head, IsArrayStrict, IsNever$1 as IsNever, IsTuple, Iterator$1 as Iterator, KebabCase, Not$2 as Not, Prettify$1 as Prettify, Primitive$1 as Primitive, RecursivePrettify, SnakeCase, Some, Split$2 as Split, Stringifiable, UnionToIntersection, UnionToTuple };
|
|
605
|
-
}
|
|
606
|
-
type Equal$2<a, b> = (<T>() => T extends a ? 1 : 2) extends (<T>() => T extends b ? 1 : 2) ? true : false;
|
|
583
|
+
type Equal$1<a, b> = (<T>() => T extends a ? 1 : 2) extends (<T>() => T extends b ? 1 : 2) ? true : false;
|
|
607
584
|
/**
|
|
608
585
|
* HACK:
|
|
609
586
|
* Special function for never because `Equal<T, never>` doesn't
|
|
@@ -611,10 +588,6 @@ type Equal$2<a, b> = (<T>() => T extends a ? 1 : 2) extends (<T>() => T extends
|
|
|
611
588
|
* probably a TS bug).
|
|
612
589
|
*/
|
|
613
590
|
type IsNever$1<T> = [T] extends [never] ? true : false;
|
|
614
|
-
type Expect<a extends true> = a;
|
|
615
|
-
type Some<bools extends boolean[]> = true extends bools[number] ? true : false;
|
|
616
|
-
type Every<bools extends boolean[]> = bools[number] extends true ? true : false;
|
|
617
|
-
type Extends<a, b> = [a] extends [b] ? true : false;
|
|
618
591
|
type Not$2<a extends boolean> = a extends true ? false : true;
|
|
619
592
|
/**
|
|
620
593
|
* trick to combine multiple unions of objects into a single object
|
|
@@ -624,8 +597,6 @@ type Not$2<a extends boolean> = a extends true ? false : true;
|
|
|
624
597
|
*/
|
|
625
598
|
type UnionToIntersection<union> = (union extends any ? (k: union) => void : never) extends ((k: infer intersection) => void) ? intersection : never;
|
|
626
599
|
type Prettify$1<T> = { [K in keyof T]: T[K]; } | never;
|
|
627
|
-
type RecursivePrettify<T> = IsArrayStrict<T> extends true ? RecursivePrettify<Extract<T, readonly any[]>[number]>[] : { [K in keyof T]: RecursivePrettify<T[K]>; };
|
|
628
|
-
type AnyTuple = readonly [any, ...any];
|
|
629
600
|
declare namespace Iterator$1 {
|
|
630
601
|
type Get<it extends readonly any[]> = it["length"];
|
|
631
602
|
type Iterator<n extends number, it extends any[] = []> = it["length"] extends n ? it : Iterator$1<n, [any, ...it]>;
|
|
@@ -673,15 +644,11 @@ type Split$2<Str, Sep extends string, Acc extends string[] = []> = Str extends "
|
|
|
673
644
|
type Stringifiable = string | number | boolean | bigint | null | undefined;
|
|
674
645
|
type Primitive$1 = string | number | boolean | bigint | null | undefined | symbol;
|
|
675
646
|
type Head$1<xs> = xs extends [infer first, ...any] ? first : never;
|
|
676
|
-
|
|
677
|
-
//#region node_modules/hotscript/dist/internals/core/impl/MergeArgs.d.ts
|
|
678
|
-
type ExcludePlaceholders<xs, output extends any[] = []> = xs extends [infer first, ...infer rest] ? Equal$2<first, _> extends true ? ExcludePlaceholders<rest, output> : ExcludePlaceholders<rest, [...output, first]> : output;
|
|
647
|
+
type ExcludePlaceholders<xs, output extends any[] = []> = xs extends [infer first, ...infer rest] ? Equal$1<first, _> extends true ? ExcludePlaceholders<rest, output> : ExcludePlaceholders<rest, [...output, first]> : output;
|
|
679
648
|
type MergeArgsRec<pipedArgs extends any[], partialArgs extends any[], output extends any[] = []> = partialArgs extends [infer partialFirst, ...infer partialRest] ? IsNever$1<partialFirst> extends true ? MergeArgsRec<pipedArgs, partialRest, [...output, partialFirst]> : [partialFirst] extends [_] ? pipedArgs extends [infer pipedFirst, ...infer pipedRest] ? MergeArgsRec<pipedRest, partialRest, [...output, pipedFirst]> : [...output, ...ExcludePlaceholders<partialRest>] : MergeArgsRec<pipedArgs, partialRest, [...output, partialFirst]> : [...output, ...pipedArgs];
|
|
680
649
|
type EmptyIntoPlaceholder<x> = IsNever$1<x> extends true ? never : [x] extends [unset] ? _ : x;
|
|
681
650
|
type MapEmptyIntoPlaceholder<xs, output extends any[] = []> = xs extends [infer first, ...infer rest] ? MapEmptyIntoPlaceholder<rest, [...output, EmptyIntoPlaceholder<first>]> : output;
|
|
682
651
|
type MergeArgs<pipedArgs extends any[], partialArgs extends any[]> = MergeArgsRec<pipedArgs, MapEmptyIntoPlaceholder<partialArgs>>;
|
|
683
|
-
//#endregion
|
|
684
|
-
//#region node_modules/hotscript/dist/internals/core/Core.d.ts
|
|
685
652
|
declare const rawArgs: unique symbol;
|
|
686
653
|
type rawArgs = typeof rawArgs;
|
|
687
654
|
/**
|
|
@@ -819,11 +786,7 @@ type ComposeLeftImpl<fns extends Fn[], args extends any[]> = fns extends [infer
|
|
|
819
786
|
interface PartialApply<fn extends Fn, partialArgs extends unknown[]> extends Fn {
|
|
820
787
|
return: MergeArgs<this["args"], partialArgs> extends (infer args extends unknown[]) ? Apply<fn, args$1> : never;
|
|
821
788
|
}
|
|
822
|
-
//#endregion
|
|
823
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/absolute.d.ts
|
|
824
789
|
type Abs<T extends number | bigint> = `${T}` extends `-${infer U extends number | bigint}` ? U : T;
|
|
825
|
-
//#endregion
|
|
826
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/utils.d.ts
|
|
827
790
|
type ToNumber<T extends string> = T extends `${infer N extends number | bigint}` ? N : never;
|
|
828
791
|
type ToString<T extends number | bigint> = `${T}`;
|
|
829
792
|
type Digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
@@ -852,15 +815,11 @@ type Num<T extends DigitNumber> = T["num"];
|
|
|
852
815
|
type FromDigitNumber<T extends DigitNumber> = `${Sign<T>}${FromDigits<Num<T>>}`;
|
|
853
816
|
type TrimZeros<T extends Digit[]> = T extends [0] ? [0] : T extends [0, ...infer R extends Digit[]] ? TrimZeros<R> : T;
|
|
854
817
|
type Normalize<T extends DigitNumber, Trim extends Digit[] = TrimZeros<Num<T>>> = Trim extends [0] ? MakeDigitNumber<"", Trim> : MakeDigitNumber<Sign<T>, Trim>;
|
|
855
|
-
//#endregion
|
|
856
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/digits/addition.d.ts
|
|
857
818
|
type AddDigitTable = [[[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 5, 6, 7, 8, 9, 0], [2, 3, 4, 5, 6, 7, 8, 9, 0, 1], [3, 4, 5, 6, 7, 8, 9, 0, 1, 2], [4, 5, 6, 7, 8, 9, 0, 1, 2, 3], [5, 6, 7, 8, 9, 0, 1, 2, 3, 4], [6, 7, 8, 9, 0, 1, 2, 3, 4, 5], [7, 8, 9, 0, 1, 2, 3, 4, 5, 6], [8, 9, 0, 1, 2, 3, 4, 5, 6, 7], [9, 0, 1, 2, 3, 4, 5, 6, 7, 8]], [[1, 2, 3, 4, 5, 6, 7, 8, 9, 0], [2, 3, 4, 5, 6, 7, 8, 9, 0, 1], [3, 4, 5, 6, 7, 8, 9, 0, 1, 2], [4, 5, 6, 7, 8, 9, 0, 1, 2, 3], [5, 6, 7, 8, 9, 0, 1, 2, 3, 4], [6, 7, 8, 9, 0, 1, 2, 3, 4, 5], [7, 8, 9, 0, 1, 2, 3, 4, 5, 6], [8, 9, 0, 1, 2, 3, 4, 5, 6, 7], [9, 0, 1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]]];
|
|
858
819
|
type AddDigitCarryTable = [[[0, 0, 0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1]], [[0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]]];
|
|
859
820
|
type AddDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = AddDigitTable[Carry][T][U];
|
|
860
821
|
type AddCarryDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = AddDigitCarryTable[Carry][T][U];
|
|
861
822
|
type AddDigits<T extends Digit[], U extends Digit[], Carry extends 0 | 1 = 0, Acc extends Digit[] = []> = T extends [...infer R extends Digit[], infer N extends Digit] ? U extends [...infer S extends Digit[], infer M extends Digit] ? AddDigits<R, S, AddCarryDigit<N, M, Carry>, [AddDigit<N, M, Carry>, ...Acc]> : AddDigits<R, [], AddCarryDigit<N, 0, Carry>, [AddDigit<N, 0, Carry>, ...Acc]> : U extends [...infer S extends Digit[], infer M extends Digit] ? AddDigits<[], S, AddCarryDigit<0, M, Carry>, [AddDigit<0, M, Carry>, ...Acc]> : Carry extends 1 ? [1, ...Acc] : Acc;
|
|
862
|
-
//#endregion
|
|
863
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/compare.d.ts
|
|
864
823
|
type CompareLength<T extends any[], U extends any[]> = T["length"] extends U["length"] ? 1 : 0;
|
|
865
824
|
type DigitCompareTable = [[0, -1, -1, -1, -1, -1, -1, -1, -1, -1], [1, 0, -1, -1, -1, -1, -1, -1, -1, -1], [1, 1, 0, -1, -1, -1, -1, -1, -1, -1], [1, 1, 1, 0, -1, -1, -1, -1, -1, -1], [1, 1, 1, 1, 0, -1, -1, -1, -1, -1], [1, 1, 1, 1, 1, 0, -1, -1, -1, -1], [1, 1, 1, 1, 1, 1, 0, -1, -1, -1], [1, 1, 1, 1, 1, 1, 1, 0, -1, -1], [1, 1, 1, 1, 1, 1, 1, 1, 0, -1], [1, 1, 1, 1, 1, 1, 1, 1, 1, 0]];
|
|
866
825
|
type DigitCompare<D1 extends Digit, D2 extends Digit> = DigitCompareTable[D1][D2];
|
|
@@ -873,35 +832,25 @@ type CompareDigitNumbers<T extends DigitNumber, U extends DigitNumber> = Sign<T>
|
|
|
873
832
|
* @param U - Second number
|
|
874
833
|
* @returns 0 if T = U, 1 if T > U, -1 if T < U
|
|
875
834
|
*/
|
|
876
|
-
type Compare$1<T extends number | bigint, U extends number | bigint> = Equal$
|
|
835
|
+
type Compare$1<T extends number | bigint, U extends number | bigint> = Equal$1<T, U> extends true ? 0 : CompareDigitNumbers<ToDigitNumber<ToString<T>>, ToDigitNumber<ToString<U>>>;
|
|
877
836
|
type LessThan$1<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends -1 ? true : false;
|
|
878
837
|
type GreaterThan$1<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends 1 ? true : false;
|
|
879
|
-
type Equal
|
|
880
|
-
type NotEqual
|
|
838
|
+
type Equal<T extends number | bigint, U extends number | bigint> = Equal$1<T, U>;
|
|
839
|
+
type NotEqual<T extends number | bigint, U extends number | bigint> = Equal$1<T, U> extends true ? false : true;
|
|
881
840
|
type LessThanOrEqual$1<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends -1 | 0 ? true : false;
|
|
882
841
|
type GreaterThanOrEqual$1<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends 1 | 0 ? true : false;
|
|
883
842
|
type Max<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends 1 | 0 ? T : U;
|
|
884
843
|
type Min<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends 1 | 0 ? U : T;
|
|
885
|
-
//#endregion
|
|
886
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/digits/substraction.d.ts
|
|
887
844
|
type SubDigitTable = [[[0, 9, 8, 7, 6, 5, 4, 3, 2, 1], [1, 0, 9, 8, 7, 6, 5, 4, 3, 2], [2, 1, 0, 9, 8, 7, 6, 5, 4, 3], [3, 2, 1, 0, 9, 8, 7, 6, 5, 4], [4, 3, 2, 1, 0, 9, 8, 7, 6, 5], [5, 4, 3, 2, 1, 0, 9, 8, 7, 6], [6, 5, 4, 3, 2, 1, 0, 9, 8, 7], [7, 6, 5, 4, 3, 2, 1, 0, 9, 8], [8, 7, 6, 5, 4, 3, 2, 1, 0, 9], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]], [[9, 8, 7, 6, 5, 4, 3, 2, 1, 0], [0, 9, 8, 7, 6, 5, 4, 3, 2, 1], [1, 0, 9, 8, 7, 6, 5, 4, 3, 2], [2, 1, 0, 9, 8, 7, 6, 5, 4, 3], [3, 2, 1, 0, 9, 8, 7, 6, 5, 4], [4, 3, 2, 1, 0, 9, 8, 7, 6, 5], [5, 4, 3, 2, 1, 0, 9, 8, 7, 6], [6, 5, 4, 3, 2, 1, 0, 9, 8, 7], [7, 6, 5, 4, 3, 2, 1, 0, 9, 8], [8, 7, 6, 5, 4, 3, 2, 1, 0, 9]]];
|
|
888
845
|
type SubDigitCarryTable = [[[0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]], [[1, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 1, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 1, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 1, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 1, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 1, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 1, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 1, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 1, 1], [0, 0, 0, 0, 0, 0, 0, 0, 0, 1]]];
|
|
889
846
|
type SubDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = SubDigitTable[Carry][T][U];
|
|
890
847
|
type SubCarryDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = SubDigitCarryTable[Carry][T][U];
|
|
891
848
|
type SubDigits<T extends Digit[], U extends Digit[], Carry extends 0 | 1 = 0, Acc extends Digit[] = []> = T extends [...infer R extends Digit[], infer N extends Digit] ? U extends [...infer S extends Digit[], infer M extends Digit] ? SubDigits<R, S, SubCarryDigit<N, M, Carry>, [SubDigit<N, M, Carry>, ...Acc]> : SubDigits<R, [], SubCarryDigit<N, 0, Carry>, [SubDigit<N, 0, Carry>, ...Acc]> : U extends [...infer S extends Digit[], infer M extends Digit] ? SubDigits<[], S, SubCarryDigit<0, M, Carry>, [SubDigit<0, M, Carry>, ...Acc]> : Carry extends 1 ? [...Acc, 9] : Acc;
|
|
892
|
-
//#endregion
|
|
893
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/addition.d.ts
|
|
894
849
|
type AddDigitNumbers<T extends DigitNumber, U extends DigitNumber> = Sign<T> extends Sign<U> ? MakeDigitNumber<Sign<T>, AddDigits<Num<T>, Num<U>>> : CompareDigits<Num<T>, Num<U>> extends 1 ? MakeDigitNumber<Sign<T>, SubDigits<Num<T>, Num<U>>> : MakeDigitNumber<InvertSign<T>, SubDigits<Num<U>, Num<T>>>;
|
|
895
850
|
type Add<T extends number | bigint, U extends number | bigint> = ToNumber<FromDigitNumber<Normalize<AddDigitNumbers<ToDigitNumber<ToString<T>>, ToDigitNumber<ToString<U>>>>>>;
|
|
896
|
-
//#endregion
|
|
897
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/substraction.d.ts
|
|
898
851
|
type SubDigitNumbers<T extends DigitNumber, U extends DigitNumber> = Sign<T> extends Sign<U> ? CompareDigits<Num<T>, Num<U>> extends 1 ? MakeDigitNumber<Sign<T>, SubDigits<Num<T>, Num<U>>> : MakeDigitNumber<InvertSign<T>, SubDigits<Num<U>, Num<T>>> : MakeDigitNumber<Sign<T>, AddDigits<Num<T>, Num<U>>>;
|
|
899
852
|
type Sub<T extends number | bigint, U extends number | bigint> = ToNumber<FromDigitNumber<Normalize<SubDigitNumbers<ToDigitNumber<ToString<T>>, ToDigitNumber<ToString<U>>>>>>;
|
|
900
|
-
//#endregion
|
|
901
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/negate.d.ts
|
|
902
853
|
type Negate<T extends number | bigint> = `${T}` extends `-${infer U extends number | bigint}` ? U : `-${T}` extends `${infer U extends number | bigint}` ? U : never;
|
|
903
|
-
//#endregion
|
|
904
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/digits/multiply.d.ts
|
|
905
854
|
type MulX2<T extends Digit[]> = AddDigits<T, T>;
|
|
906
855
|
type MulX3<T extends Digit[]> = AddDigits<T, MulX2<T>>;
|
|
907
856
|
type MulX4<T extends Digit[]> = MulX2<MulX2<T>>;
|
|
@@ -913,12 +862,8 @@ type MulX9<T extends Digit[]> = SubDigits<MulX10<T>, T>;
|
|
|
913
862
|
type MulX10<T extends Digit[]> = [...T, 0];
|
|
914
863
|
type MulByDigit<T extends Digit[], U extends Digit> = U extends 0 ? [0] : U extends 1 ? T : U extends 2 ? MulX2<T> : U extends 3 ? MulX3<T> : U extends 4 ? MulX4<T> : U extends 5 ? MulX5<T> : U extends 6 ? MulX6<T> : U extends 7 ? MulX7<T> : U extends 8 ? MulX8<T> : MulX9<T>;
|
|
915
864
|
type MulDigits<T extends Digit[], U extends Digit[], Acc extends Digit[] = []> = U extends [infer N extends Digit, ...infer R extends Digit[]] ? MulDigits<T, R, AddDigits<MulByDigit<T, N>, MulX10<Acc>>> : Acc;
|
|
916
|
-
//#endregion
|
|
917
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/multiply.d.ts
|
|
918
865
|
type MulDigitNumbers<T extends DigitNumber, U extends DigitNumber> = MakeDigitNumber<MulSign<Sign<T>, Sign<U>>, MulDigits<Num<T>, Num<U>>>;
|
|
919
866
|
type Mul<T extends number | bigint, U extends number | bigint> = ToNumber<FromDigitNumber<Normalize<MulDigitNumbers<ToDigitNumber<ToString<T>>, ToDigitNumber<ToString<U>>>>>>;
|
|
920
|
-
//#endregion
|
|
921
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/digits/division.d.ts
|
|
922
867
|
type Rest$1<T extends Digit[]> = T extends [Digit, ...infer R extends Digit[]] ? R : never;
|
|
923
868
|
type TruncateWith<T extends Digit[], U extends Digit[], Acc extends Digit[] = []> = U extends [] ? [T, Acc] : T extends [infer D extends Digit, ...infer DR extends Digit[]] ? TruncateWith<DR, Rest$1<U>, [...Acc, D]> : [T, Acc];
|
|
924
869
|
type DivModByDigit<D extends Digit[], M extends Digit[], Mul extends Digit[] = [0], IterTable extends Digit[] = Digits, NextMul extends Digit[] = AddDigits<M, Mul>, Comp = CompareDigits<D, NextMul>> = IterTable extends [infer Iteration extends Digit, ...infer Next extends Digit[]] ? Comp extends 0 ? {
|
|
@@ -946,8 +891,6 @@ type _DivModDigits<A extends Digit[], D extends Digit[], M extends Digit[], Q ex
|
|
|
946
891
|
type DivDigits<N extends Digit[], M extends Digit[]> = TruncateWith<N, M> extends [infer A extends Digit[], infer D extends Digit[]] ? _DivModDigits<A, D, M>["Quotient"] : never;
|
|
947
892
|
type ModDigits<N extends Digit[], M extends Digit[]> = TruncateWith<N, M> extends [infer A extends Digit[], infer D extends Digit[]] ? _DivModDigits<A, D, M>["Remainder"] : never;
|
|
948
893
|
type DivModDigits<N extends Digit[], M extends Digit[]> = TruncateWith<N, M> extends [infer A extends Digit[], infer D extends Digit[]] ? _DivModDigits<A, D, M> : never;
|
|
949
|
-
//#endregion
|
|
950
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/division.d.ts
|
|
951
894
|
type DivDigitNumbers<T extends DigitNumber, U extends DigitNumber> = MakeDigitNumber<MulSign<Sign<T>, Sign<U>>, DivDigits<Num<T>, Num<U>>>;
|
|
952
895
|
type Div<T extends number | bigint, U extends number | bigint> = ToNumber<FromDigitNumber<Normalize<DivDigitNumbers<ToDigitNumber<ToString<T>>, ToDigitNumber<ToString<U>>>>>>;
|
|
953
896
|
type ModDigitNumbers<T extends DigitNumber, U extends DigitNumber> = MakeDigitNumber<Sign<T>, ModDigits<Num<T>, Num<U>>>;
|
|
@@ -966,22 +909,13 @@ type DivMod<T extends number | bigint, U extends number | bigint, DivModNumbers
|
|
|
966
909
|
Quotient: ToNumber<FromDigitNumber<Normalize<DivModNumbers["Quotient"]>>>;
|
|
967
910
|
Remainder: ToNumber<FromDigitNumber<Normalize<DivModNumbers["Remainder"]>>>;
|
|
968
911
|
};
|
|
969
|
-
//#endregion
|
|
970
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/digits/power.d.ts
|
|
971
912
|
type PowerDigits<T extends Digit[], U extends Digit[], Acc extends Digit[] = [1]> = U extends [0] ? [1] : U extends [1] ? MulDigits<T, Acc> : U extends [infer UN extends Digit, ...infer UR extends Digit[]] ? _DivModDigits<UR, [UN], [2]> extends {
|
|
972
913
|
Quotient: infer Q extends Digit[];
|
|
973
914
|
Remainder: infer R extends Digit[];
|
|
974
915
|
} ? TrimZeros<R> extends [0] ? PowerDigits<MulDigits<T, T>, TrimZeros<Q>, Acc> : PowerDigits<MulDigits<T, T>, TrimZeros<Q>, MulDigits<T, Acc>> : never : Acc;
|
|
975
|
-
//#endregion
|
|
976
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/power.d.ts
|
|
977
916
|
type PowerSign<S extends "" | "-", U extends DigitNumber> = S extends "-" ? Num<U> extends [...Digit[], 0 | 2 | 4 | 6 | 8] ? "" : "-" : "";
|
|
978
917
|
type PowerDigitNumbers<T extends DigitNumber, U extends DigitNumber> = Sign<U> extends "-" ? MakeDigitNumber<Sign<T>, [0]> : MakeDigitNumber<PowerSign<Sign<T>, U>, PowerDigits<Num<T>, Num<U>>>;
|
|
979
918
|
type Power<T extends number | bigint, U extends number | bigint> = ToNumber<FromDigitNumber<Normalize<PowerDigitNumbers<ToDigitNumber<ToString<T>>, ToDigitNumber<ToString<U>>>>>>;
|
|
980
|
-
declare namespace numbers_d_exports {
|
|
981
|
-
export { Abs, Add, Compare$1 as Compare, Div, Equal$1 as Equal, GreaterThan$1 as GreaterThan, GreaterThanOrEqual$1 as GreaterThanOrEqual, LessThan$1 as LessThan, LessThanOrEqual$1 as LessThanOrEqual, Max, Min, Mod, Mul, Negate, NotEqual$1 as NotEqual, Power, Sub };
|
|
982
|
-
}
|
|
983
|
-
//#endregion
|
|
984
|
-
//#region node_modules/hotscript/dist/internals/numbers/Numbers.d.ts
|
|
985
919
|
declare namespace Numbers {
|
|
986
920
|
/**
|
|
987
921
|
* Add two numbers together
|
|
@@ -1167,7 +1101,7 @@ declare namespace Numbers {
|
|
|
1167
1101
|
*/
|
|
1168
1102
|
export type Equal<n1 extends number | bigint | _ | unset = unset, n2 extends number | bigint | _ | unset = unset> = PartialApply<EqualFn, n2 extends unset ? [unset, n1] : [n1, n2]>;
|
|
1169
1103
|
interface EqualFn extends Fn {
|
|
1170
|
-
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? Equal
|
|
1104
|
+
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? Equal<a, b> : never;
|
|
1171
1105
|
}
|
|
1172
1106
|
/**
|
|
1173
1107
|
* Check if two numbers are not equal
|
|
@@ -1183,7 +1117,7 @@ declare namespace Numbers {
|
|
|
1183
1117
|
*/
|
|
1184
1118
|
export type NotEqual<n1 extends number | bigint | _ | unset = unset, n2 extends number | bigint | _ | unset = unset> = PartialApply<NotEqualFn, n2 extends unset ? [unset, n1] : [n1, n2]>;
|
|
1185
1119
|
interface NotEqualFn extends Fn {
|
|
1186
|
-
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? NotEqual
|
|
1120
|
+
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? NotEqual<a, b> : never;
|
|
1187
1121
|
}
|
|
1188
1122
|
/**
|
|
1189
1123
|
* Check if a number is less than another
|
|
@@ -1255,8 +1189,6 @@ declare namespace Numbers {
|
|
|
1255
1189
|
}
|
|
1256
1190
|
export {};
|
|
1257
1191
|
}
|
|
1258
|
-
//#endregion
|
|
1259
|
-
//#region node_modules/hotscript/dist/internals/std/Std.d.ts
|
|
1260
1192
|
declare namespace Std {
|
|
1261
1193
|
type _Pick<a, k extends keyof a> = Pick<a, k>;
|
|
1262
1194
|
type _Omit<a, k extends PropertyKey> = Omit<a, k>;
|
|
@@ -1272,8 +1204,6 @@ declare namespace Std {
|
|
|
1272
1204
|
type _Partial<a> = Partial<a>;
|
|
1273
1205
|
type _NonNullable<a> = NonNullable<a>;
|
|
1274
1206
|
}
|
|
1275
|
-
//#endregion
|
|
1276
|
-
//#region node_modules/hotscript/dist/internals/tuples/Tuples.d.ts
|
|
1277
1207
|
declare namespace Tuples {
|
|
1278
1208
|
type HeadImpl<xs> = xs extends readonly [infer head, ...any] ? head : never;
|
|
1279
1209
|
/**
|
|
@@ -1842,8 +1772,6 @@ declare namespace Tuples {
|
|
|
1842
1772
|
type MaxImpl<xs, min extends number | bigint = never> = xs extends [infer first extends number | bigint, ...infer rest] ? MaxImpl<rest, [min] extends [never] ? first : Max<first, min>> : min;
|
|
1843
1773
|
export {};
|
|
1844
1774
|
}
|
|
1845
|
-
//#endregion
|
|
1846
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/split.d.ts
|
|
1847
1775
|
type ConcatSplits<Parts extends string[], Seps extends string[], Acc extends string[] = []> = Parts extends [infer First extends string, ...infer Rest extends string[]] ? ConcatSplits<Rest, Seps, [...Acc, ...SplitManySep<First, Seps>]> : Acc;
|
|
1848
1776
|
type SplitManySep<Str extends string, Sep extends string[], Acc extends string[] = []> = Sep extends [infer FirstSep extends string, ...infer RestSep extends string[]] ? ConcatSplits<Split$2<Str, FirstSep>, RestSep> : [Str, ...Acc];
|
|
1849
1777
|
/**
|
|
@@ -1859,8 +1787,6 @@ type Split$1<Str, Sep extends string, Seps = UnionToTuple<Sep>> = Seps extends s
|
|
|
1859
1787
|
* @returns The tuple of each character.
|
|
1860
1788
|
*/
|
|
1861
1789
|
type StringToTuple<Str, Acc extends string[] = []> = Str extends string ? Str extends `${infer First}${infer Rest}` ? StringToTuple<Rest, [...Acc, First]> : Acc : [];
|
|
1862
|
-
//#endregion
|
|
1863
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/trim.d.ts
|
|
1864
1790
|
/**
|
|
1865
1791
|
* Trim the left side of a string.
|
|
1866
1792
|
* @param Str - The string to trim.
|
|
@@ -1882,21 +1808,15 @@ type TrimRight<Str, Sep extends string> = Str extends `${infer Rest}${Sep}` ? Tr
|
|
|
1882
1808
|
* @returns The trimmed string.
|
|
1883
1809
|
*/
|
|
1884
1810
|
type Trim<Str, Sep extends string> = TrimLeft<TrimRight<Str, Sep>, Sep>;
|
|
1885
|
-
//#endregion
|
|
1886
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/replace.d.ts
|
|
1887
1811
|
type Replace<Str, From extends string, To extends string> = Str extends string ? Str extends `${infer Before}${From}${infer After}` ? Replace<`${Before}${To}${After}`, From, To> : Str : Str;
|
|
1888
1812
|
interface ReplaceReducer<To extends string> extends Fn {
|
|
1889
1813
|
return: this["args"] extends [infer Str extends string, infer From extends string, ...any] ? Replace<Str, From, To> : never;
|
|
1890
1814
|
}
|
|
1891
|
-
//#endregion
|
|
1892
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/repeat.d.ts
|
|
1893
1815
|
type RepeatX2<T extends string> = `${T}${T}`;
|
|
1894
1816
|
type Repeat<T extends string, N extends number, Acc extends string = "", Calc extends {
|
|
1895
1817
|
Quotient: number;
|
|
1896
1818
|
Remainder: number;
|
|
1897
1819
|
} = DivMod<N, 2>> = N extends 0 ? Acc : N extends 1 ? `${Acc}${T}` : Calc["Remainder"] extends 0 ? Repeat<RepeatX2<T>, Calc["Quotient"], Acc> : Repeat<T, Sub<N, 1>, `${Acc}${T}`>;
|
|
1898
|
-
//#endregion
|
|
1899
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/compare.d.ts
|
|
1900
1820
|
type ascii = {
|
|
1901
1821
|
" ": 32;
|
|
1902
1822
|
"!": 33;
|
|
@@ -2120,15 +2040,11 @@ type ascii = {
|
|
|
2120
2040
|
};
|
|
2121
2041
|
type CharacterCompare<Char1 extends string, Char2 extends string> = Char1 extends Char2 ? 0 : Char1 extends keyof ascii ? Char2 extends keyof ascii ? Call<Numbers.Compare, ascii[Char1], ascii[Char2]> : 1 : -1;
|
|
2122
2042
|
type CharactersCompare<T extends string[], U extends string[]> = T extends [infer N1 extends string, ...infer R1 extends string[]] ? U extends [infer N2 extends string, ...infer R2 extends string[]] ? CharacterCompare<N1, N2> extends 0 ? CharactersCompare<R1, R2> : CharacterCompare<N1, N2> : 1 : U extends [string, ...string[]] ? -1 : 0;
|
|
2123
|
-
type Compare<T extends string, U extends string> = Equal$
|
|
2043
|
+
type Compare<T extends string, U extends string> = Equal$1<T, U> extends true ? 0 : CharactersCompare<StringToTuple<T>, StringToTuple<U>>;
|
|
2124
2044
|
type LessThan<T extends string, U extends string> = Compare<T, U> extends -1 ? true : false;
|
|
2125
2045
|
type LessThanOrEqual<T extends string, U extends string> = Compare<T, U> extends 1 ? false : true;
|
|
2126
|
-
type Equal<T extends string, U extends string> = Equal$2<T, U>;
|
|
2127
|
-
type NotEqual<T extends string, U extends string> = Equal$2<T, U> extends true ? false : true;
|
|
2128
2046
|
type GreaterThan<T extends string, U extends string> = Compare<T, U> extends 1 ? true : false;
|
|
2129
2047
|
type GreaterThanOrEqual<T extends string, U extends string> = Compare<T, U> extends -1 ? false : true;
|
|
2130
|
-
//#endregion
|
|
2131
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/utils.d.ts
|
|
2132
2048
|
declare namespace StringIterator {
|
|
2133
2049
|
type Iter = [string, number | bigint];
|
|
2134
2050
|
/**
|
|
@@ -2201,16 +2117,9 @@ declare namespace StringIterator {
|
|
|
2201
2117
|
export type CutAt<T extends string, It extends Iterator> = `$${T}` extends `${String<It>}${infer $Rest}` ? $Rest : undefined;
|
|
2202
2118
|
export {};
|
|
2203
2119
|
}
|
|
2204
|
-
//#endregion
|
|
2205
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/length.d.ts
|
|
2206
2120
|
type LengthUp<Str extends string, Length extends number | bigint = 0, It extends StringIterator.Iterator = StringIterator.Init> = StringIterator.Double<It> extends (infer $DoubleIt extends StringIterator.Iterator) ? StringIterator.CutAt<Str, $DoubleIt> extends `${infer $Rest}` ? StringIterator.Size<It> extends 12 ? LengthDown<$Rest, Add<Length, StringIterator.Value<$DoubleIt>>, $DoubleIt> : LengthUp<$Rest, Add<Length, StringIterator.Value<$DoubleIt>>, $DoubleIt> : StringIterator.CutAt<Str, It> extends `${infer $Rest}` ? LengthUp<$Rest, Add<Length, StringIterator.Value<It>>, It> : LengthDown<Str, Length, StringIterator.Prev<It>> : never;
|
|
2207
2121
|
type LengthDown<Str extends string, Length extends number | bigint, It> = It extends StringIterator.Iterator ? StringIterator.CutAt<Str, It> extends `${infer $Rest}` ? LengthDown<$Rest, Add<Length, StringIterator.Value<It>>, It> : LengthDown<Str, Length, StringIterator.Prev<It>> : Length;
|
|
2208
2122
|
type Length<T extends string> = T extends "" ? 0 : LengthUp<T>;
|
|
2209
|
-
declare namespace strings_d_exports {
|
|
2210
|
-
export { Compare, Equal, GreaterThan, GreaterThanOrEqual, Length, LessThan, LessThanOrEqual, NotEqual, Repeat, Replace, ReplaceReducer, Split$1 as Split, StringToTuple, Trim, TrimLeft, TrimRight };
|
|
2211
|
-
}
|
|
2212
|
-
//#endregion
|
|
2213
|
-
//#region node_modules/hotscript/dist/internals/strings/Strings.d.ts
|
|
2214
2123
|
declare namespace Strings {
|
|
2215
2124
|
export type Stringifiable = string | number | boolean | bigint | null | undefined;
|
|
2216
2125
|
/**
|
|
@@ -2609,9 +2518,6 @@ declare namespace Strings {
|
|
|
2609
2518
|
}
|
|
2610
2519
|
export {};
|
|
2611
2520
|
}
|
|
2612
|
-
declare namespace objects_d_exports {
|
|
2613
|
-
export { AllPaths, Assign, Create, Entries, FromEntries, GetFromPath, Keys, TransformObjectDeep, Update, Values };
|
|
2614
|
-
}
|
|
2615
2521
|
type Keys<src> = src extends readonly unknown[] ? { [key in keyof src]: key; }[number] extends (infer res) ? res extends string ? Call<Strings.ToNumber, res> & keyof src : res & keyof src : never : keyof src;
|
|
2616
2522
|
type Values<src> = Keys<src> extends (infer keys extends keyof src) ? src[keys] : never;
|
|
2617
2523
|
type FromEntries<entries extends [PropertyKey, any]> = { [entry in entries as entry[0]]: entry[1]; } | never;
|
|
@@ -2620,14 +2526,12 @@ type Assign<xs extends readonly any[]> = Prettify$1<UnionToIntersection<xs[numbe
|
|
|
2620
2526
|
type GetFromPath<Obj, path> = RecursiveGet<Obj, ParsePath<path>>;
|
|
2621
2527
|
type ParsePath<path, output extends string[] = [], currentChunk extends string = ""> = path extends number ? [`${path}`] : path extends `${infer first}${infer rest}` ? first extends "." | "[" | "]" ? ParsePath<rest, [...output, ...(currentChunk extends "" ? [] : [currentChunk])], ""> : ParsePath<rest, output, `${currentChunk}${first}`> : [...output, ...(currentChunk extends "" ? [] : [currentChunk])];
|
|
2622
2528
|
type RecursiveGet<Obj, pathList> = Obj extends any ? pathList extends [infer first, ...infer rest] ? first extends keyof Obj ? RecursiveGet<Obj[first], rest> : [first, Obj] extends [`${number}` | "number", readonly any[]] ? RecursiveGet<Extract<Obj, any[]>[number], rest> : undefined : Obj : never;
|
|
2623
|
-
type TransformObjectDeep<fn extends Fn, type> = type extends Function | Date ? type : type extends Map<infer keys, infer values> ? Map<TransformObjectDeep<fn, keys>, TransformObjectDeep<fn, values>> : type extends ReadonlyMap<infer keys, infer values> ? ReadonlyMap<TransformObjectDeep<fn, keys>, TransformObjectDeep<fn, values>> : type extends WeakMap<infer keys, infer values> ? WeakMap<Extract<TransformObjectDeep<fn, keys>, object>, TransformObjectDeep<fn, values>> : type extends Set<infer values> ? Set<TransformObjectDeep<fn, values>> : type extends ReadonlySet<infer values> ? ReadonlySet<TransformObjectDeep<fn, values>> : type extends WeakSet<infer values> ? WeakSet<Extract<TransformObjectDeep<fn, values>, object>> : type extends Array<infer values> ? IsTuple<type> extends true ? Call<fn, { [Key in keyof type]: TransformObjectDeep<fn, type[Key]>; }> : Array<TransformObjectDeep<fn, values> | undefined> : type extends Promise<infer value> ? Promise<TransformObjectDeep<fn, value>> : type extends object ? Call<fn, { [Key in keyof type]: TransformObjectDeep<fn, type[Key]>; }> : Equal$
|
|
2529
|
+
type TransformObjectDeep<fn extends Fn, type> = type extends Function | Date ? type : type extends Map<infer keys, infer values> ? Map<TransformObjectDeep<fn, keys>, TransformObjectDeep<fn, values>> : type extends ReadonlyMap<infer keys, infer values> ? ReadonlyMap<TransformObjectDeep<fn, keys>, TransformObjectDeep<fn, values>> : type extends WeakMap<infer keys, infer values> ? WeakMap<Extract<TransformObjectDeep<fn, keys>, object>, TransformObjectDeep<fn, values>> : type extends Set<infer values> ? Set<TransformObjectDeep<fn, values>> : type extends ReadonlySet<infer values> ? ReadonlySet<TransformObjectDeep<fn, values>> : type extends WeakSet<infer values> ? WeakSet<Extract<TransformObjectDeep<fn, values>, object>> : type extends Array<infer values> ? IsTuple<type> extends true ? Call<fn, { [Key in keyof type]: TransformObjectDeep<fn, type[Key]>; }> : Array<TransformObjectDeep<fn, values> | undefined> : type extends Promise<infer value> ? Promise<TransformObjectDeep<fn, value>> : type extends object ? Call<fn, { [Key in keyof type]: TransformObjectDeep<fn, type[Key]>; }> : Equal$1<type, unknown> extends true ? unknown : Partial<type>;
|
|
2624
2530
|
type Update<obj, path, fnOrValue> = RecursiveUpdate<obj, ParsePath<path>, fnOrValue>;
|
|
2625
|
-
type RecursiveUpdate<obj, pathList, fnOrValue> = obj extends any ? pathList extends [infer first, ...infer rest] ? first extends keyof obj ? { [K in keyof obj]: Equal$
|
|
2531
|
+
type RecursiveUpdate<obj, pathList, fnOrValue> = obj extends any ? pathList extends [infer first, ...infer rest] ? first extends keyof obj ? { [K in keyof obj]: Equal$1<first, K> extends true ? RecursiveUpdate<obj[K], rest, fnOrValue> : obj[K]; } : [first, obj] extends ["number", readonly any[]] ? RecursiveUpdate<Extract<obj, any[]>[number], rest, fnOrValue>[] : Assign<[obj, { [K in Extract<first, PropertyKey>]: RecursiveUpdate<{}, rest, fnOrValue>; }]> : fnOrValue extends Fn ? Call<Extract<fnOrValue, Fn>, obj> : fnOrValue : never;
|
|
2626
2532
|
type Create<pattern, args extends unknown[]> = pattern extends (infer p extends Fn) ? Apply<p, args> : pattern extends Primitive$1 ? pattern : pattern extends readonly [any, ...any] ? { [key in keyof pattern]: Create<pattern[key], args>; } : pattern extends readonly (infer V)[] ? Create<V, args>[] : pattern extends object ? { [key in keyof pattern]: Create<pattern[key], args>; } : pattern;
|
|
2627
2533
|
type JoinPath<A extends string, B extends string, Sep extends string = ""> = [A] extends [never] ? B : [B] extends [never] ? A : `${A}${Sep}${B}`;
|
|
2628
2534
|
type AllPaths<T, ParentPath extends string = never> = T extends Primitive$1 ? ParentPath : unknown extends T ? JoinPath<ParentPath, string, "."> : T extends readonly any[] ? Keys<T> extends (infer key extends string | number) ? JoinPath<ParentPath, `[${key}]`> | AllPaths<T[number], JoinPath<ParentPath, `[${key}]`>> : never : keyof T extends (infer key extends keyof T & string) ? key extends any ? JoinPath<ParentPath, key, "."> | AllPaths<T[key], JoinPath<ParentPath, key, ".">> : never : ParentPath;
|
|
2629
|
-
//#endregion
|
|
2630
|
-
//#region node_modules/hotscript/dist/internals/objects/Objects.d.ts
|
|
2631
2535
|
declare namespace Objects {
|
|
2632
2536
|
/**
|
|
2633
2537
|
* Create an object from a union of `[key, value]` entries.
|
|
@@ -3135,59 +3039,29 @@ declare namespace Objects {
|
|
|
3135
3039
|
}
|
|
3136
3040
|
export {};
|
|
3137
3041
|
}
|
|
3138
|
-
//#endregion
|
|
3139
|
-
//#region node_modules/ts-algebra/lib/utils/and.d.ts
|
|
3140
3042
|
declare type And$1<BOOL_A, BOOL_B> = BOOL_A extends true ? BOOL_B extends true ? true : false : false;
|
|
3141
|
-
//#endregion
|
|
3142
|
-
//#region node_modules/ts-algebra/lib/utils/extends.d.ts
|
|
3143
3043
|
declare type DoesExtend$1<TYPE_A, TYPE_B> = [TYPE_A] extends [TYPE_B] ? true : false;
|
|
3144
3044
|
declare type ArrayKeys = keyof [];
|
|
3145
3045
|
declare type IsObject<TYPE> = TYPE extends object ? ArrayKeys extends Extract<keyof TYPE, ArrayKeys> ? false : true : false;
|
|
3146
3046
|
declare type IsArray<TYPE> = TYPE extends object ? ArrayKeys extends Extract<keyof TYPE, ArrayKeys> ? true : false : false;
|
|
3147
|
-
//#endregion
|
|
3148
|
-
//#region node_modules/ts-algebra/lib/utils/if.d.ts
|
|
3149
3047
|
declare type If<CONDITION extends boolean, THEN, ELSE = never> = CONDITION extends true ? THEN : ELSE;
|
|
3150
|
-
//#endregion
|
|
3151
|
-
//#region node_modules/ts-algebra/lib/utils/intersectUnion.d.ts
|
|
3152
3048
|
declare type IntersectUnion$1<UNION> = (UNION extends unknown ? (arg: UNION) => void : never) extends ((arg: infer INTERSECTION) => void) ? INTERSECTION : never;
|
|
3153
|
-
//#endregion
|
|
3154
|
-
//#region node_modules/ts-algebra/lib/utils/isNever.d.ts
|
|
3155
3049
|
declare type IsNever<TYPE> = [TYPE] extends [never] ? true : false;
|
|
3156
|
-
//#endregion
|
|
3157
|
-
//#region node_modules/ts-algebra/lib/utils/merge.d.ts
|
|
3158
3050
|
declare type DeepMergeUnsafe<TYPE_A, TYPE_B> = IsObject<TYPE_A> extends true ? IsObject<TYPE_B> extends true ? { [KEY in keyof (TYPE_A & TYPE_B)]: KEY extends keyof TYPE_B ? KEY extends keyof TYPE_A ? DeepMergeUnsafe<TYPE_A[KEY], TYPE_B[KEY]> : TYPE_B[KEY] : KEY extends keyof TYPE_A ? TYPE_A[KEY] : never; } : TYPE_B : IsArray<TYPE_A> extends true ? IsArray<TYPE_B> extends true ? TYPE_B extends unknown[] ? [...(TYPE_A extends unknown[] ? TYPE_A : never), TYPE_B] : never : TYPE_B : TYPE_B;
|
|
3159
|
-
//#endregion
|
|
3160
|
-
//#region node_modules/ts-algebra/lib/utils/not.d.ts
|
|
3161
3051
|
declare type Not$1<BOOL extends boolean> = BOOL extends false ? true : BOOL extends true ? false : never;
|
|
3162
|
-
//#endregion
|
|
3163
|
-
//#region node_modules/ts-algebra/lib/utils/or.d.ts
|
|
3164
3052
|
declare type Or<BOOL_A extends boolean, BOOL_B extends boolean> = BOOL_A extends true ? true : BOOL_B extends true ? true : false;
|
|
3165
|
-
//#endregion
|
|
3166
|
-
//#region node_modules/ts-algebra/lib/utils/prettify.d.ts
|
|
3167
3053
|
declare type Prettify<TYPE> = IsObject<TYPE> extends true ? { [KEY in keyof TYPE]: KEY extends keyof TYPE ? TYPE[KEY] : never; } : TYPE;
|
|
3168
|
-
//#endregion
|
|
3169
|
-
//#region node_modules/ts-algebra/lib/utils/tail.d.ts
|
|
3170
3054
|
declare type Tail$2<ARRAY extends unknown[]> = ARRAY extends readonly [] ? ARRAY : ARRAY extends readonly [unknown?, ...infer TAIL] ? TAIL : ARRAY;
|
|
3171
|
-
//#endregion
|
|
3172
|
-
//#region node_modules/ts-algebra/lib/utils/unionLast.d.ts
|
|
3173
3055
|
declare type UnionLast<UNION> = IntersectUnion$1<UNION extends unknown ? (x: UNION) => void : never> extends ((x: infer LAST) => void) ? LAST : never;
|
|
3174
|
-
//#endregion
|
|
3175
|
-
//#region node_modules/ts-algebra/lib/utils/unionPop.d.ts
|
|
3176
3056
|
declare type UnionPop<UNION> = Exclude<UNION, UnionLast<UNION>>;
|
|
3177
|
-
//#endregion
|
|
3178
|
-
//#region node_modules/ts-algebra/lib/meta-types/never.d.ts
|
|
3179
3057
|
declare type NeverTypeId = "never";
|
|
3180
3058
|
declare type Never = {
|
|
3181
3059
|
type: NeverTypeId;
|
|
3182
3060
|
};
|
|
3183
3061
|
declare type NeverType = Never;
|
|
3184
3062
|
declare type ResolveNever = never;
|
|
3185
|
-
//#endregion
|
|
3186
|
-
//#region node_modules/ts-algebra/lib/meta-types/utils.d.ts
|
|
3187
3063
|
declare type IsSerialized<SERIALIZABLE_META_TYPE extends SerializableType> = SERIALIZABLE_META_TYPE["isSerialized"];
|
|
3188
3064
|
declare type Deserialized<SERIALIZABLE_META_TYPE extends SerializableType> = SERIALIZABLE_META_TYPE["deserialized"];
|
|
3189
|
-
//#endregion
|
|
3190
|
-
//#region node_modules/ts-algebra/lib/meta-types/const.d.ts
|
|
3191
3065
|
declare type ConstTypeId = "const";
|
|
3192
3066
|
declare type Const<VALUE, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = If<IsNever<VALUE>, Never, {
|
|
3193
3067
|
type: ConstTypeId;
|
|
@@ -3203,8 +3077,6 @@ declare type ConstType = {
|
|
|
3203
3077
|
};
|
|
3204
3078
|
declare type ConstValue<META_CONST extends ConstType> = META_CONST["value"];
|
|
3205
3079
|
declare type ResolveConst<META_CONST extends ConstType, OPTIONS extends ResolveOptions> = If<And$1<OPTIONS["deserialize"], IsSerialized<META_CONST>>, Deserialized<META_CONST>, ConstValue<META_CONST>>;
|
|
3206
|
-
//#endregion
|
|
3207
|
-
//#region node_modules/ts-algebra/lib/meta-types/enum.d.ts
|
|
3208
3080
|
declare type EnumTypeId = "enum";
|
|
3209
3081
|
declare type Enum<VALUES, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = If<IsNever<VALUES>, Never, {
|
|
3210
3082
|
type: EnumTypeId;
|
|
@@ -3220,8 +3092,6 @@ declare type EnumType = {
|
|
|
3220
3092
|
};
|
|
3221
3093
|
declare type EnumValues<META_ENUM extends EnumType> = META_ENUM["values"];
|
|
3222
3094
|
declare type ResolveEnum<META_ENUM extends EnumType, OPTIONS extends ResolveOptions> = If<And$1<OPTIONS["deserialize"], IsSerialized<META_ENUM>>, Deserialized<META_ENUM>, EnumValues<META_ENUM>>;
|
|
3223
|
-
//#endregion
|
|
3224
|
-
//#region node_modules/ts-algebra/lib/meta-types/object.d.ts
|
|
3225
3095
|
declare type ObjectTypeId = "object";
|
|
3226
3096
|
declare type _Object<VALUES extends Record<string, Type> = {}, REQUIRED_KEYS extends string = never, OPEN_PROPS extends Type = Never, CLOSE_ON_RESOLVE extends boolean = false, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = _$Object<VALUES, REQUIRED_KEYS, OPEN_PROPS, CLOSE_ON_RESOLVE, IS_SERIALIZED, DESERIALIZED>;
|
|
3227
3097
|
declare type _$Object<VALUES = {}, REQUIRED_KEYS = never, OPEN_PROPS = Never, CLOSE_ON_RESOLVE = false, IS_SERIALIZED = false, DESERIALIZED = never> = DoesExtend$1<true, { [KEY in Extract<REQUIRED_KEYS, string>]: KEY extends keyof VALUES ? DoesExtend$1<VALUES[KEY], NeverType> : DoesExtend$1<OPEN_PROPS, NeverType>; }[Extract<REQUIRED_KEYS, string>]> extends true ? Never : {
|
|
@@ -3256,8 +3126,6 @@ declare type ResolveObject<META_OBJECT extends ObjectType, OPTIONS extends Resol
|
|
|
3256
3126
|
}, {
|
|
3257
3127
|
[KEY: string]: Resolve<Any, OPTIONS>;
|
|
3258
3128
|
}>, {}>, DeepMergeUnsafe<{ [KEY in Exclude<keyof ObjectValues<META_OBJECT>, ObjectRequiredKeys<META_OBJECT>>]?: Resolve<ObjectValues<META_OBJECT>[KEY], OPTIONS>; }, { [KEY in ObjectRequiredKeys<META_OBJECT>]: KEY extends keyof ObjectValues<META_OBJECT> ? Resolve<ObjectValues<META_OBJECT>[KEY], OPTIONS> : Resolve<Any, OPTIONS>; }>>>;
|
|
3259
|
-
//#endregion
|
|
3260
|
-
//#region node_modules/ts-algebra/lib/meta-types/primitive.d.ts
|
|
3261
3129
|
declare type PrimitiveTypeId = "primitive";
|
|
3262
3130
|
declare type Primitive<VALUE extends null | boolean | number | string, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = $Primitive<VALUE, IS_SERIALIZED, DESERIALIZED>;
|
|
3263
3131
|
declare type $Primitive<VALUE, IS_SERIALIZED = false, DESERIALIZED = never> = If<IsNever<VALUE>, Never, {
|
|
@@ -3274,8 +3142,6 @@ declare type PrimitiveType = {
|
|
|
3274
3142
|
};
|
|
3275
3143
|
declare type PrimitiveValue<META_PRIMITIVE extends PrimitiveType> = META_PRIMITIVE["value"];
|
|
3276
3144
|
declare type ResolvePrimitive<META_PRIMITIVE extends PrimitiveType, OPTIONS extends ResolveOptions> = If<And$1<OPTIONS["deserialize"], IsSerialized<META_PRIMITIVE>>, Deserialized<META_PRIMITIVE>, PrimitiveValue<META_PRIMITIVE>>;
|
|
3277
|
-
//#endregion
|
|
3278
|
-
//#region node_modules/ts-algebra/lib/meta-types/tuple.d.ts
|
|
3279
3145
|
declare type TupleTypeId = "tuple";
|
|
3280
3146
|
declare type Tuple<VALUES extends Type[], OPEN_PROPS extends Type = Never, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = $Tuple<VALUES, OPEN_PROPS, IS_SERIALIZED, DESERIALIZED>;
|
|
3281
3147
|
declare type $Tuple<VALUES, OPEN_PROPS = Never, IS_SERIALIZED = false, DESERIALIZED = never> = IsAnyValueNever<VALUES> extends true ? Never : {
|
|
@@ -3300,8 +3166,6 @@ declare type IsTupleOpen<META_TUPLE extends TupleType> = META_TUPLE["isOpen"];
|
|
|
3300
3166
|
declare type TupleOpenProps<META_TUPLE extends TupleType> = META_TUPLE["openProps"];
|
|
3301
3167
|
declare type ResolveTuple<META_TUPLE extends TupleType, OPTIONS extends ResolveOptions> = If<And$1<OPTIONS["deserialize"], IsSerialized<META_TUPLE>>, Deserialized<META_TUPLE>, If<IsTupleOpen<META_TUPLE>, [...RecurseOnTuple<TupleValues<META_TUPLE>, OPTIONS>, ...Resolve<TupleOpenProps<META_TUPLE>, OPTIONS>[]], RecurseOnTuple<TupleValues<META_TUPLE>, OPTIONS>>>;
|
|
3302
3168
|
declare type RecurseOnTuple<VALUES extends Type[], OPTIONS extends ResolveOptions, RESULT extends unknown[] = []> = VALUES extends [infer VALUES_HEAD, ...infer VALUES_TAIL] ? VALUES_HEAD extends Type ? VALUES_TAIL extends Type[] ? RecurseOnTuple<VALUES_TAIL, OPTIONS, [...RESULT, Resolve<VALUES_HEAD, OPTIONS>]> : never : never : RESULT;
|
|
3303
|
-
//#endregion
|
|
3304
|
-
//#region node_modules/ts-algebra/lib/meta-types/union.d.ts
|
|
3305
3169
|
declare type UnionTypeId = "union";
|
|
3306
3170
|
declare type Union<VALUES extends Type> = $Union<VALUES>;
|
|
3307
3171
|
declare type $Union<VALUES> = If<IsNever<VALUES>, Never, DoesExtend$1<VALUES, NeverType> extends true ? Never : {
|
|
@@ -3315,15 +3179,11 @@ declare type UnionType = {
|
|
|
3315
3179
|
declare type UnionValues<META_UNION extends UnionType> = META_UNION["values"];
|
|
3316
3180
|
declare type ResolveUnion<META_UNION extends UnionType, OPTIONS extends ResolveOptions> = RecurseOnUnion<UnionValues<META_UNION>, OPTIONS>;
|
|
3317
3181
|
declare type RecurseOnUnion<VALUES extends Type, OPTIONS extends ResolveOptions> = VALUES extends (infer META_TYPE) ? $Resolve<META_TYPE, OPTIONS> : never;
|
|
3318
|
-
//#endregion
|
|
3319
|
-
//#region node_modules/ts-algebra/lib/meta-types/type.d.ts
|
|
3320
3182
|
declare type Type = NeverType | AnyType | ConstType | EnumType | PrimitiveType | ArrayType | TupleType | ObjectType | UnionType;
|
|
3321
3183
|
declare type SerializableType = Type extends (infer META_TYPE) ? META_TYPE extends {
|
|
3322
3184
|
isSerialized: boolean;
|
|
3323
3185
|
deserialized: unknown;
|
|
3324
3186
|
} ? META_TYPE : never : never;
|
|
3325
|
-
//#endregion
|
|
3326
|
-
//#region node_modules/ts-algebra/lib/meta-types/array.d.ts
|
|
3327
3187
|
declare type ArrayTypeId = "array";
|
|
3328
3188
|
declare type _Array<VALUES extends Type = Any, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = _$Array<VALUES, IS_SERIALIZED, DESERIALIZED>;
|
|
3329
3189
|
declare type _$Array<VALUES = Any, IS_SERIALIZED = false, DESERIALIZED = never> = {
|
|
@@ -3340,8 +3200,6 @@ declare type ArrayType = {
|
|
|
3340
3200
|
};
|
|
3341
3201
|
declare type ArrayValues<META_ARRAY extends ArrayType> = META_ARRAY["values"];
|
|
3342
3202
|
declare type ResolveArray<META_ARRAY extends ArrayType, OPTIONS extends ResolveOptions> = If<And$1<OPTIONS["deserialize"], IsSerialized<META_ARRAY>>, Deserialized<META_ARRAY>, ArrayValues<META_ARRAY> extends NeverType ? [] : Prettify<Resolve<ArrayValues<META_ARRAY>, OPTIONS>[]>>;
|
|
3343
|
-
//#endregion
|
|
3344
|
-
//#region node_modules/ts-algebra/lib/meta-types/resolve.d.ts
|
|
3345
3203
|
declare type ResolveOptions = {
|
|
3346
3204
|
deserialize: boolean;
|
|
3347
3205
|
};
|
|
@@ -3350,8 +3208,6 @@ declare type ResolveDefaultOptions = {
|
|
|
3350
3208
|
};
|
|
3351
3209
|
declare type Resolve<META_TYPE extends Type, OPTIONS extends ResolveOptions = ResolveDefaultOptions> = $Resolve<META_TYPE, OPTIONS>;
|
|
3352
3210
|
declare type $Resolve<META_TYPE, OPTIONS extends ResolveOptions = ResolveDefaultOptions> = META_TYPE extends AnyType ? ResolveAny<META_TYPE, OPTIONS> : META_TYPE extends NeverType ? ResolveNever : META_TYPE extends ConstType ? ResolveConst<META_TYPE, OPTIONS> : META_TYPE extends EnumType ? ResolveEnum<META_TYPE, OPTIONS> : META_TYPE extends PrimitiveType ? ResolvePrimitive<META_TYPE, OPTIONS> : META_TYPE extends ArrayType ? ResolveArray<META_TYPE, OPTIONS> : META_TYPE extends TupleType ? ResolveTuple<META_TYPE, OPTIONS> : META_TYPE extends ObjectType ? ResolveObject<META_TYPE, OPTIONS> : META_TYPE extends UnionType ? ResolveUnion<META_TYPE, OPTIONS> : never;
|
|
3353
|
-
//#endregion
|
|
3354
|
-
//#region node_modules/ts-algebra/lib/meta-types/any.d.ts
|
|
3355
3211
|
declare type AnyTypeId = "any";
|
|
3356
3212
|
declare type Any<IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = {
|
|
3357
3213
|
type: AnyTypeId;
|
|
@@ -3364,16 +3220,10 @@ declare type AnyType = {
|
|
|
3364
3220
|
deserialized: unknown;
|
|
3365
3221
|
};
|
|
3366
3222
|
declare type ResolveAny<META_ANY extends AnyType, OPTIONS extends ResolveOptions> = If<And$1<OPTIONS["deserialize"], IsSerialized<META_ANY>>, Deserialized<META_ANY>, unknown>;
|
|
3367
|
-
//#endregion
|
|
3368
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/union.d.ts
|
|
3369
3223
|
declare type IntersectUnion<META_UNION extends UnionType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? META_UNION : META_TYPE extends ConstType ? DistributeIntersection<META_UNION, META_TYPE> : META_TYPE extends EnumType ? DistributeIntersection<META_UNION, META_TYPE> : META_TYPE extends PrimitiveType ? DistributeIntersection<META_UNION, META_TYPE> : META_TYPE extends ArrayType ? DistributeIntersection<META_UNION, META_TYPE> : META_TYPE extends TupleType ? DistributeIntersection<META_UNION, META_TYPE> : META_TYPE extends ObjectType ? DistributeIntersection<META_UNION, META_TYPE> : META_TYPE extends UnionType ? DistributeIntersection<META_UNION, META_TYPE> : Never : Never;
|
|
3370
3224
|
declare type DistributeIntersection<META_UNION extends UnionType, META_TYPE> = $Union<UnionValues<META_UNION> extends (infer UNION_VALUE) ? $Intersect<UNION_VALUE, META_TYPE> : never>;
|
|
3371
|
-
//#endregion
|
|
3372
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/utils.d.ts
|
|
3373
3225
|
declare type IntersectIsSerialized<SERIALIZABLE_META_TYPE_A extends SerializableType, SERIALIZABLE_META_TYPE_B extends SerializableType> = Or<IsSerialized<SERIALIZABLE_META_TYPE_A>, IsSerialized<SERIALIZABLE_META_TYPE_B>>;
|
|
3374
3226
|
declare type IntersectDeserialized<SERIALIZABLE_META_TYPE_A extends SerializableType, SERIALIZABLE_META_TYPE_B extends SerializableType> = If<IsSerialized<SERIALIZABLE_META_TYPE_A>, If<IsSerialized<SERIALIZABLE_META_TYPE_B>, Deserialized<SERIALIZABLE_META_TYPE_A> & Deserialized<SERIALIZABLE_META_TYPE_B>, Deserialized<SERIALIZABLE_META_TYPE_A>>, If<IsSerialized<SERIALIZABLE_META_TYPE_B>, Deserialized<SERIALIZABLE_META_TYPE_B>>>;
|
|
3375
|
-
//#endregion
|
|
3376
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/const.d.ts
|
|
3377
3227
|
declare type IntersectConstSerializationParams<META_CONST extends ConstType, SERIALIZABLE_META_TYPE extends SerializableType> = Const<ConstValue<META_CONST>, IntersectIsSerialized<META_CONST, SERIALIZABLE_META_TYPE>, IntersectDeserialized<META_CONST, SERIALIZABLE_META_TYPE>>;
|
|
3378
3228
|
declare type IntersectConst<META_CONST extends ConstType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? IntersectConstSerializationParams<META_CONST, META_TYPE> : META_TYPE extends ConstType ? CheckExtendsResolved<META_CONST, META_TYPE> : META_TYPE extends EnumType ? IntersectConstToEnum<META_CONST, META_TYPE> : META_TYPE extends PrimitiveType ? IntersectConstToPrimitive<META_CONST, META_TYPE> : META_TYPE extends ArrayType ? IntersectConstToArray<META_CONST, META_TYPE> : META_TYPE extends TupleType ? IntersectConstToTuple<META_CONST, META_TYPE> : META_TYPE extends ObjectType ? IntersectConstToObject<META_CONST, META_TYPE> : META_TYPE extends UnionType ? DistributeIntersection<META_TYPE, META_CONST> : Never : Never;
|
|
3379
3229
|
declare type CheckExtendsResolved<META_CONST extends ConstType, SERIALIZABLE_META_TYPE extends SerializableType> = ConstValue<META_CONST> extends Resolve<SERIALIZABLE_META_TYPE, {
|
|
@@ -3387,8 +3237,6 @@ declare type IntersectConstToObject<META_CONST extends ConstType, META_OBJECT ex
|
|
|
3387
3237
|
declare type IntersectObjectConstToObject<META_CONST extends ConstType, META_OBJECT extends ObjectType, INTERSECTED_META_OBJECT = IntersectConstValuesToObjectValues<ConstValue<META_CONST>, META_OBJECT>> = If<IsNever<NeverKeys<INTERSECTED_META_OBJECT>>, IntersectConstSerializationParams<META_CONST, META_OBJECT>, Never>;
|
|
3388
3238
|
declare type IntersectConstValuesToObjectValues<CONST_VALUE, META_OBJECT extends ObjectType> = { [KEY in Extract<keyof CONST_VALUE | ObjectRequiredKeys<META_OBJECT>, string>]: KEY extends keyof CONST_VALUE ? Intersect<Const<CONST_VALUE[KEY]>, ObjectValue<META_OBJECT, KEY>> : Never; };
|
|
3389
3239
|
declare type NeverKeys<META_OBJECT> = { [KEY in keyof META_OBJECT]: META_OBJECT[KEY] extends Never ? KEY : never; }[keyof META_OBJECT];
|
|
3390
|
-
//#endregion
|
|
3391
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/enum.d.ts
|
|
3392
3240
|
declare type IntersectEnumSerializationParams<META_ENUM_VALUES, META_ENUM extends EnumType, SERIALIZABLE_META_TYPE extends SerializableType> = Enum<META_ENUM_VALUES, IntersectIsSerialized<META_ENUM, SERIALIZABLE_META_TYPE>, IntersectDeserialized<META_ENUM, SERIALIZABLE_META_TYPE>>;
|
|
3393
3241
|
declare type IntersectEnum<META_ENUM extends EnumType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? IntersectEnumSerializationParams<EnumValues<META_ENUM>, META_ENUM, META_TYPE> : META_TYPE extends ConstType ? IntersectConstToEnum<META_TYPE, META_ENUM> : META_TYPE extends EnumType ? FilterEnum<META_ENUM, META_TYPE> : META_TYPE extends PrimitiveType ? IntersectEnumToPrimitive<META_ENUM, META_TYPE> : META_TYPE extends ArrayType ? FilterEnum<META_ENUM, META_TYPE> : META_TYPE extends TupleType ? FilterEnum<META_ENUM, META_TYPE> : META_TYPE extends ObjectType ? FilterEnum<META_ENUM, META_TYPE> : META_TYPE extends UnionType ? DistributeIntersection<META_TYPE, META_ENUM> : Never : Never;
|
|
3394
3242
|
declare type FilterEnum<META_ENUM extends EnumType, SERIALIZABLE_META_TYPE extends SerializableType> = IntersectEnumSerializationParams<FilterEnumValues<EnumValues<META_ENUM>, SERIALIZABLE_META_TYPE>, META_ENUM, SERIALIZABLE_META_TYPE>;
|
|
@@ -3397,8 +3245,6 @@ declare type IntersectEnumToPrimitive<META_ENUM extends EnumType, META_PRIMITIVE
|
|
|
3397
3245
|
declare type IntersectEnumToArray<META_ENUM extends EnumType, META_ARRAY extends ArrayType> = FilterEnum<META_ENUM, META_ARRAY>;
|
|
3398
3246
|
declare type IntersectEnumToTuple<META_ENUM extends EnumType, META_TUPLE extends TupleType> = FilterEnum<META_ENUM, META_TUPLE>;
|
|
3399
3247
|
declare type IntersectEnumToObject<META_ENUM extends EnumType, META_OBJECT extends ObjectType> = FilterEnum<META_ENUM, META_OBJECT>;
|
|
3400
|
-
//#endregion
|
|
3401
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/tuple.d.ts
|
|
3402
3248
|
declare type IntersectTupleSerializationParams<VALUES extends Type[], OPEN_PROPS extends Type, META_TUPLE extends TupleType, SERIALIZABLE_META_TYPE extends SerializableType> = $MergeTuplePropsToSerializable<VALUES, OPEN_PROPS, META_TUPLE, SERIALIZABLE_META_TYPE>;
|
|
3403
3249
|
declare type $MergeTuplePropsToSerializable<VALUES, OPEN_PROPS, META_TUPLE extends TupleType, SERIALIZABLE_META_TYPE extends SerializableType> = $Tuple<VALUES, OPEN_PROPS, IntersectIsSerialized<META_TUPLE, SERIALIZABLE_META_TYPE>, IntersectDeserialized<META_TUPLE, SERIALIZABLE_META_TYPE>>;
|
|
3404
3250
|
declare type IntersectTuple<META_TUPLE extends TupleType, META_TYPE> = META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? IntersectTupleSerializationParams<TupleValues<META_TUPLE>, TupleOpenProps<META_TUPLE>, META_TUPLE, META_TYPE> : META_TYPE extends ConstType ? IntersectConstToTuple<META_TYPE, META_TUPLE> : META_TYPE extends EnumType ? IntersectEnumToTuple<META_TYPE, META_TUPLE> : META_TYPE extends PrimitiveType ? Never : META_TYPE extends ArrayType ? IntersectTupleToArray<META_TUPLE, META_TYPE> : META_TYPE extends TupleType ? IntersectTuples<META_TUPLE, META_TYPE> : META_TYPE extends ObjectType ? Never : META_TYPE extends UnionType ? DistributeIntersection<META_TYPE, META_TUPLE> : Never;
|
|
@@ -3406,44 +3252,26 @@ declare type IntersectTupleToArray<META_TUPLE extends TupleType, META_ARRAY exte
|
|
|
3406
3252
|
declare type IntersectTupleToArrayValues<TUPLE_VALUES extends Type[], ARRAY_VALUES extends Type, RESULT extends unknown[] = []> = TUPLE_VALUES extends [infer TUPLE_VALUES_HEAD, ...infer TUPLE_VALUES_TAIL] ? TUPLE_VALUES_HEAD extends Type ? TUPLE_VALUES_TAIL extends Type[] ? IntersectTupleToArrayValues<TUPLE_VALUES_TAIL, ARRAY_VALUES, [...RESULT, Intersect<TUPLE_VALUES_HEAD, ARRAY_VALUES>]> : never : never : RESULT;
|
|
3407
3253
|
declare type IntersectTuples<META_TUPLE_A extends TupleType, META_TUPLE_B extends TupleType, INTERSECTED_VALUES extends unknown[] = IntersectTupleValues<TupleValues<META_TUPLE_A>, TupleValues<META_TUPLE_B>, IsTupleOpen<META_TUPLE_A>, IsTupleOpen<META_TUPLE_B>, TupleOpenProps<META_TUPLE_A>, TupleOpenProps<META_TUPLE_B>>, INTERSECTED_OPEN_PROPS = $Intersect<TupleOpenProps<META_TUPLE_A>, TupleOpenProps<META_TUPLE_B>>> = $MergeTuplePropsToSerializable<INTERSECTED_VALUES, INTERSECTED_OPEN_PROPS, META_TUPLE_A, META_TUPLE_B>;
|
|
3408
3254
|
declare type IntersectTupleValues<TUPLE_A_VALUES extends Type[], TUPLE_B_VALUES extends Type[], TUPLE_A_IS_OPEN extends boolean, TUPLE_B_IS_OPEN extends boolean, TUPLE_A_OPEN_PROPS extends Type, TUPLE_B_OPEN_PROPS extends Type, RESULT extends unknown[] = []> = TUPLE_A_VALUES extends [infer TUPLE_A_VALUES_HEAD, ...infer TUPLE_A_VALUES_TAIL] ? TUPLE_A_VALUES_HEAD extends Type ? TUPLE_A_VALUES_TAIL extends Type[] ? TUPLE_B_VALUES extends [infer TUPLE_B_VALUES_HEAD, ...infer TUPLE_B_VALUES_TAIL] ? TUPLE_B_VALUES_HEAD extends Type ? TUPLE_B_VALUES_TAIL extends Type[] ? IntersectTupleValues<TUPLE_A_VALUES_TAIL, TUPLE_B_VALUES_TAIL, TUPLE_A_IS_OPEN, TUPLE_B_IS_OPEN, TUPLE_A_OPEN_PROPS, TUPLE_B_OPEN_PROPS, [...RESULT, Intersect<TUPLE_A_VALUES_HEAD, TUPLE_B_VALUES_HEAD>]> : never : never : IntersectTupleValues<TUPLE_A_VALUES_TAIL, TUPLE_B_VALUES, TUPLE_A_IS_OPEN, TUPLE_B_IS_OPEN, TUPLE_A_OPEN_PROPS, TUPLE_B_OPEN_PROPS, [...RESULT, TUPLE_B_IS_OPEN extends true ? Intersect<TUPLE_A_VALUES_HEAD, TUPLE_B_OPEN_PROPS> : Never]> : never : never : TUPLE_B_VALUES extends [infer TUPLE_B_VALUES_HEAD, ...infer TUPLE_B_VALUES_TAIL] ? TUPLE_B_VALUES_HEAD extends Type ? TUPLE_B_VALUES_TAIL extends Type[] ? IntersectTupleValues<TUPLE_A_VALUES, TUPLE_B_VALUES_TAIL, TUPLE_A_IS_OPEN, TUPLE_B_IS_OPEN, TUPLE_A_OPEN_PROPS, TUPLE_B_OPEN_PROPS, [...RESULT, TUPLE_A_IS_OPEN extends true ? Intersect<TUPLE_B_VALUES_HEAD, TUPLE_A_OPEN_PROPS> : Never]> : never : never : RESULT;
|
|
3409
|
-
//#endregion
|
|
3410
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/array.d.ts
|
|
3411
3255
|
declare type IntersectArraySerializationParams<VALUES extends Type, META_ARRAY extends ArrayType, SERIALIZABLE_META_TYPE extends SerializableType> = $MergeArrayValuesToSerializable<VALUES, META_ARRAY, SERIALIZABLE_META_TYPE>;
|
|
3412
3256
|
declare type $MergeArrayValuesToSerializable<VALUES, META_ARRAY extends ArrayType, SERIALIZABLE_META_TYPE extends SerializableType> = _$Array<VALUES, IntersectIsSerialized<META_ARRAY, SERIALIZABLE_META_TYPE>, IntersectDeserialized<META_ARRAY, SERIALIZABLE_META_TYPE>>;
|
|
3413
3257
|
declare type IntersectArray<META_ARRAY extends ArrayType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? IntersectArraySerializationParams<ArrayValues<META_ARRAY>, META_ARRAY, META_TYPE> : META_TYPE extends ConstType ? IntersectConstToArray<META_TYPE, META_ARRAY> : META_TYPE extends EnumType ? IntersectEnumToArray<META_TYPE, META_ARRAY> : META_TYPE extends PrimitiveType ? Never : META_TYPE extends ArrayType ? IntersectArrays<META_ARRAY, META_TYPE> : META_TYPE extends TupleType ? IntersectTupleToArray<META_TYPE, META_ARRAY> : META_TYPE extends ObjectType ? Never : META_TYPE extends UnionType ? DistributeIntersection<META_TYPE, META_ARRAY> : Never : Never;
|
|
3414
3258
|
declare type IntersectArrays<META_ARRAY_A extends ArrayType, META_ARRAY_B extends ArrayType> = $MergeArrayValuesToSerializable<Intersect<ArrayValues<META_ARRAY_A>, ArrayValues<META_ARRAY_B>>, META_ARRAY_A, META_ARRAY_B>;
|
|
3415
|
-
//#endregion
|
|
3416
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/object.d.ts
|
|
3417
3259
|
declare type IntersectObjectSerializationParams<VALUES extends Record<string, Type>, REQUIRED_KEYS extends string, OPEN_PROPS extends Type, CLOSE_ON_RESOLVE extends boolean, META_OBJECT extends ObjectType, SERIALIZABLE_META_TYPE extends SerializableType> = $MergeObjectPropsToSerializable<VALUES, REQUIRED_KEYS, OPEN_PROPS, CLOSE_ON_RESOLVE, META_OBJECT, SERIALIZABLE_META_TYPE>;
|
|
3418
3260
|
declare type $MergeObjectPropsToSerializable<VALUES, REQUIRED_KEYS, OPEN_PROPS, CLOSE_ON_RESOLVE, META_OBJECT extends ObjectType, SERIALIZABLE_META_TYPE extends SerializableType> = _$Object<VALUES, REQUIRED_KEYS, OPEN_PROPS, CLOSE_ON_RESOLVE, IntersectIsSerialized<META_OBJECT, SERIALIZABLE_META_TYPE>, IntersectDeserialized<META_OBJECT, SERIALIZABLE_META_TYPE>>;
|
|
3419
3261
|
declare type IntersectObject<META_OBJECT extends ObjectType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? IntersectObjectSerializationParams<ObjectValues<META_OBJECT>, ObjectRequiredKeys<META_OBJECT>, ObjectOpenProps<META_OBJECT>, IsObjectClosedOnResolve<META_OBJECT>, META_OBJECT, META_TYPE> : META_TYPE extends ConstType ? IntersectConstToObject<META_TYPE, META_OBJECT> : META_TYPE extends EnumType ? IntersectEnumToObject<META_TYPE, META_OBJECT> : META_TYPE extends PrimitiveType ? Never : META_TYPE extends ArrayType ? Never : META_TYPE extends TupleType ? Never : META_TYPE extends ObjectType ? IntersectObjects<META_OBJECT, META_TYPE> : META_TYPE extends UnionType ? DistributeIntersection<META_TYPE, META_OBJECT> : Never : Never;
|
|
3420
3262
|
declare type IntersectObjects<META_OBJECT_A extends ObjectType, META_OBJECT_B extends ObjectType, INTERSECTED_VALUES extends Record<string, unknown> = IntersectObjectsValues<META_OBJECT_A, META_OBJECT_B>, INTERSECTED_OPEN_PROPS = Intersect<ObjectOpenProps<META_OBJECT_A>, ObjectOpenProps<META_OBJECT_B>>, INTERSECTED_CLOSE_ON_RESOLVE = Or<IsObjectClosedOnResolve<META_OBJECT_A>, IsObjectClosedOnResolve<META_OBJECT_B>>> = $MergeObjectPropsToSerializable<{ [KEY in keyof INTERSECTED_VALUES]: INTERSECTED_VALUES[KEY]; }, ObjectRequiredKeys<META_OBJECT_A> | ObjectRequiredKeys<META_OBJECT_B>, INTERSECTED_OPEN_PROPS, INTERSECTED_CLOSE_ON_RESOLVE, META_OBJECT_A, META_OBJECT_B>;
|
|
3421
3263
|
declare type IntersectObjectsValues<META_OBJECT_A extends ObjectType, META_OBJECT_B extends ObjectType> = { [KEY in Extract<keyof ObjectValues<META_OBJECT_A> | keyof ObjectValues<META_OBJECT_B>, string>]: $Intersect<ObjectValue<META_OBJECT_A, KEY>, ObjectValue<META_OBJECT_B, KEY>>; };
|
|
3422
|
-
//#endregion
|
|
3423
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/primitive.d.ts
|
|
3424
3264
|
declare type IntersectPrimitiveSerializationParams<META_PRIMITIVE extends PrimitiveType, SERIALIZABLE_META_TYPE extends SerializableType> = Primitive<PrimitiveValue<META_PRIMITIVE>, IntersectIsSerialized<META_PRIMITIVE, SERIALIZABLE_META_TYPE>, IntersectDeserialized<META_PRIMITIVE, SERIALIZABLE_META_TYPE>>;
|
|
3425
3265
|
declare type IntersectPrimitive<META_PRIMITIVE extends PrimitiveType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? IntersectPrimitiveSerializationParams<META_PRIMITIVE, META_TYPE> : META_TYPE extends ConstType ? IntersectConstToPrimitive<META_TYPE, META_PRIMITIVE> : META_TYPE extends EnumType ? IntersectEnumToPrimitive<META_TYPE, META_PRIMITIVE> : META_TYPE extends PrimitiveType ? If<And$1<DoesExtend$1<PrimitiveValue<META_PRIMITIVE>, PrimitiveValue<META_TYPE>>, DoesExtend$1<PrimitiveValue<META_TYPE>, PrimitiveValue<META_PRIMITIVE>>>, IntersectPrimitiveSerializationParams<META_PRIMITIVE, META_TYPE>, Never> : META_TYPE extends ArrayType ? Never : META_TYPE extends TupleType ? Never : META_TYPE extends ObjectType ? Never : META_TYPE extends UnionType ? DistributeIntersection<META_TYPE, META_PRIMITIVE> : Never : Never;
|
|
3426
|
-
//#endregion
|
|
3427
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/any.d.ts
|
|
3428
3266
|
declare type IntersectAny<META_ANY extends AnyType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TYPE : META_TYPE extends AnyType ? Any<IntersectIsSerialized<META_ANY, META_TYPE>, IntersectDeserialized<META_ANY, META_TYPE>> : META_TYPE extends ConstType ? IntersectConstSerializationParams<META_TYPE, META_ANY> : META_TYPE extends EnumType ? IntersectEnumSerializationParams<EnumValues<META_TYPE>, META_TYPE, META_ANY> : META_TYPE extends PrimitiveType ? IntersectPrimitiveSerializationParams<META_TYPE, META_ANY> : META_TYPE extends ArrayType ? IntersectArraySerializationParams<ArrayValues<META_TYPE>, META_TYPE, META_ANY> : META_TYPE extends TupleType ? IntersectTupleSerializationParams<TupleValues<META_TYPE>, TupleOpenProps<META_TYPE>, META_TYPE, META_ANY> : META_TYPE extends ObjectType ? IntersectObjectSerializationParams<ObjectValues<META_TYPE>, ObjectRequiredKeys<META_TYPE>, ObjectOpenProps<META_TYPE>, IsObjectClosedOnResolve<META_TYPE>, META_TYPE, META_ANY> : META_TYPE extends UnionType ? DistributeIntersection<META_TYPE, META_ANY> : Never : Never;
|
|
3429
|
-
//#endregion
|
|
3430
|
-
//#region node_modules/ts-algebra/lib/meta-types/intersection/index.d.ts
|
|
3431
3267
|
declare type Intersect<META_TYPE_A extends Type, META_TYPE_B extends Type> = $Intersect<META_TYPE_A, META_TYPE_B>;
|
|
3432
3268
|
declare type $Intersect<META_TYPE_A, META_TYPE_B> = META_TYPE_A extends NeverType ? META_TYPE_A : META_TYPE_A extends AnyType ? IntersectAny<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends ConstType ? IntersectConst<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends EnumType ? IntersectEnum<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends PrimitiveType ? IntersectPrimitive<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends ArrayType ? IntersectArray<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends TupleType ? IntersectTuple<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends ObjectType ? IntersectObject<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends UnionType ? IntersectUnion<META_TYPE_A, META_TYPE_B> : Never;
|
|
3433
|
-
//#endregion
|
|
3434
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/union.d.ts
|
|
3435
3269
|
declare type ExcludeFromUnion<META_UNION extends UnionType, META_TYPE> = $Union<UnionValues<META_UNION> extends (infer META_UNION_VALUE) ? _$Exclude<META_UNION_VALUE, META_TYPE> : never>;
|
|
3436
3270
|
declare type ExcludeUnion<META_TYPE, META_UNION extends UnionType> = If<IsNever<UnionValues<META_UNION>>, META_TYPE, RecurseOnUnionValues<META_TYPE, UnionLast<UnionValues<META_UNION>>, META_UNION>>;
|
|
3437
3271
|
declare type RecurseOnUnionValues<META_TYPE, META_UNION_VALUE, META_UNION extends UnionType> = $Intersect<_$Exclude<META_TYPE, META_UNION_VALUE>, _$Exclude<META_TYPE, $Union<Exclude<UnionValues<META_UNION>, META_UNION_VALUE>>>>;
|
|
3438
|
-
//#endregion
|
|
3439
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/any.d.ts
|
|
3440
3272
|
declare type ExcludeFromAny<META_ANY extends AnyType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_ANY : META_TYPE extends AnyType ? Never : META_TYPE extends ConstType ? META_ANY : META_TYPE extends EnumType ? META_ANY : META_TYPE extends PrimitiveType ? META_ANY : META_TYPE extends ArrayType ? META_ANY : META_TYPE extends TupleType ? META_ANY : META_TYPE extends ObjectType ? META_ANY : META_TYPE extends UnionType ? ExcludeUnion<META_ANY, META_TYPE> : Never : Never;
|
|
3441
|
-
//#endregion
|
|
3442
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/array.d.ts
|
|
3443
3273
|
declare type ExcludeFromArray<META_ARRAY extends ArrayType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_ARRAY : META_TYPE extends AnyType ? Never : META_TYPE extends ConstType ? META_ARRAY : META_TYPE extends EnumType ? META_ARRAY : META_TYPE extends PrimitiveType ? META_ARRAY : META_TYPE extends ArrayType ? ExcludeArrays<META_ARRAY, META_TYPE> : META_TYPE extends TupleType ? And$1<DoesExtend$1<TupleValues<META_TYPE>, []>, IsTupleOpen<META_TYPE>> extends true ? ExcludeArrays<META_ARRAY, _Array<TupleOpenProps<META_TYPE>>> : META_ARRAY : META_TYPE extends ObjectType ? META_ARRAY : META_TYPE extends UnionType ? ExcludeUnion<META_ARRAY, META_TYPE> : Never : Never;
|
|
3444
3274
|
declare type ExcludeArrays<META_ARRAY_A extends ArrayType, META_ARRAY_B extends ArrayType> = _Exclude<ArrayValues<META_ARRAY_A>, ArrayValues<META_ARRAY_B>> extends NeverType ? NeverType : META_ARRAY_A;
|
|
3445
|
-
//#endregion
|
|
3446
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/const.d.ts
|
|
3447
3275
|
declare type ExcludeFromConst<META_CONST extends ConstType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_CONST : META_TYPE extends AnyType ? Never : META_TYPE extends ConstType ? CheckNotExtendsResolved<META_CONST, META_TYPE> : META_TYPE extends EnumType ? CheckNotExtendsResolved<META_CONST, META_TYPE> : META_TYPE extends PrimitiveType ? CheckNotExtendsResolved<META_CONST, META_TYPE> : META_TYPE extends ArrayType ? CheckNotExtendsResolved<META_CONST, META_TYPE> : META_TYPE extends TupleType ? CheckNotExtendsResolved<META_CONST, META_TYPE> : META_TYPE extends ObjectType ? ExcludeObject<META_CONST, META_TYPE> : META_TYPE extends UnionType ? ExcludeUnion<META_CONST, META_TYPE> : Never : Never;
|
|
3448
3276
|
declare type CheckNotExtendsResolved<META_CONST extends ConstType, META_TYPE extends Type> = ConstValue<META_CONST> extends Resolve<META_TYPE, {
|
|
3449
3277
|
deserialize: false;
|
|
@@ -3452,15 +3280,11 @@ declare type ExcludeObject<META_CONST extends ConstType, META_OBJECT extends Obj
|
|
|
3452
3280
|
declare type ExcludeObjectFromConst<META_CONST extends ConstType, META_OBJECT extends ObjectType, EXCLUDED_CONST_VALUES = ExcludeConstValues<ConstValue<META_CONST>, META_OBJECT>> = If<IsNever<RepresentableKeys$1<EXCLUDED_CONST_VALUES>>, Never, META_CONST>;
|
|
3453
3281
|
declare type ExcludeConstValues<VALUE, META_OBJECT extends ObjectType> = { [KEY in keyof VALUE]: KEY extends keyof ObjectValues<META_OBJECT> ? _Exclude<Const<VALUE[KEY]>, ObjectValues<META_OBJECT>[KEY]> : IsObjectOpen<META_OBJECT> extends true ? _Exclude<Const<VALUE[KEY]>, ObjectOpenProps<META_OBJECT>> : Const<VALUE[KEY]>; };
|
|
3454
3282
|
declare type RepresentableKeys$1<VALUES> = { [KEY in keyof VALUES]: VALUES[KEY] extends Never ? never : KEY; }[keyof VALUES];
|
|
3455
|
-
//#endregion
|
|
3456
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/enum.d.ts
|
|
3457
3283
|
declare type ExcludeFromEnum<META_ENUM extends EnumType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_ENUM : META_TYPE extends AnyType ? Never : META_TYPE extends ConstType ? FilterEnumExcluded<META_ENUM, META_TYPE> : META_TYPE extends EnumType ? FilterEnumExcluded<META_ENUM, META_TYPE> : META_TYPE extends PrimitiveType ? FilterEnumExcluded<META_ENUM, META_TYPE> : META_TYPE extends ArrayType ? FilterEnumExcluded<META_ENUM, META_TYPE> : META_TYPE extends TupleType ? FilterEnumExcluded<META_ENUM, META_TYPE> : META_TYPE extends ObjectType ? FilterEnumExcluded<META_ENUM, META_TYPE> : META_TYPE extends UnionType ? ExcludeUnion<META_ENUM, META_TYPE> : Never : Never;
|
|
3458
3284
|
declare type FilterEnumExcluded<META_ENUM extends EnumType, META_TYPE extends Type> = Enum<FilterEnumExcludedValues<EnumValues<META_ENUM>, META_TYPE>>;
|
|
3459
3285
|
declare type FilterEnumExcludedValues<ENUM_VALUES, META_TYPE extends Type> = ENUM_VALUES extends (infer ENUM_VALUE) ? _Exclude<Const<ENUM_VALUE>, META_TYPE> extends NeverType ? never : ENUM_VALUE : never;
|
|
3460
3286
|
declare type ExcludeEnum<META_TYPE extends Type, ENUM_TYPE extends EnumType, ENUM_VALUES = EnumValues<ENUM_TYPE>> = ExcludeEnumValue<META_TYPE, UnionLast<ENUM_VALUES>, ENUM_VALUES>;
|
|
3461
3287
|
declare type ExcludeEnumValue<META_TYPE extends Type, LAST_ENUM_VALUE, ENUM_VALUES> = $Intersect<_Exclude<META_TYPE, Const<LAST_ENUM_VALUE>>, _Exclude<META_TYPE, Enum<Exclude<ENUM_VALUES, LAST_ENUM_VALUE>>>>;
|
|
3462
|
-
//#endregion
|
|
3463
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/utils.d.ts
|
|
3464
3288
|
declare type ValueExclusionResult<VALUE_A extends Type, IS_ALLOWED_IN_A extends boolean, IS_REQUIRED_IN_A extends boolean, VALUE_B extends Type, IS_ALLOWED_IN_B extends boolean, IS_REQUIRED_IN_B extends boolean> = {
|
|
3465
3289
|
sourceValue: VALUE_A;
|
|
3466
3290
|
isAllowedInSource: IS_ALLOWED_IN_A;
|
|
@@ -3487,8 +3311,6 @@ declare type IsOutsideOfSourceScope<VALUE_EXCLUSION_RESULT extends ValueExclusio
|
|
|
3487
3311
|
declare type IsOutsideOfExcludedScope<VALUE_EXCLUSION_RESULT extends ValueExclusionResultType> = And$1<IsRequiredInSource<VALUE_EXCLUSION_RESULT>, Not$1<IsAllowedInExcluded<VALUE_EXCLUSION_RESULT>>>;
|
|
3488
3312
|
declare type IsOmittable<VALUE_EXCLUSION_RESULT extends ValueExclusionResultType> = And$1<Not$1<IsRequiredInSource<VALUE_EXCLUSION_RESULT>>, IsRequiredInExcluded<VALUE_EXCLUSION_RESULT>>;
|
|
3489
3313
|
declare type PropagateExclusion<VALUE_EXCLUSION_RESULT extends ValueExclusionResultType> = ExclusionResult<VALUE_EXCLUSION_RESULT> extends NeverType ? SourceValue<VALUE_EXCLUSION_RESULT> : ExclusionResult<VALUE_EXCLUSION_RESULT>;
|
|
3490
|
-
//#endregion
|
|
3491
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/object.d.ts
|
|
3492
3314
|
declare type ExcludeFromObject<META_OBJECT extends ObjectType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_OBJECT : META_TYPE extends AnyType ? Never : META_TYPE extends ConstType ? ExcludeConstFromObject<META_OBJECT, META_TYPE> : META_TYPE extends EnumType ? ExcludeEnum<META_OBJECT, META_TYPE> : META_TYPE extends PrimitiveType ? META_OBJECT : META_TYPE extends ArrayType ? META_OBJECT : META_TYPE extends TupleType ? META_OBJECT : META_TYPE extends ObjectType ? ExcludeObjects<META_OBJECT, META_TYPE> : META_TYPE extends UnionType ? ExcludeUnion<META_OBJECT, META_TYPE> : Never : Never;
|
|
3493
3315
|
declare type ExcludeObjects<META_OBJECT_A extends ObjectType, META_OBJECT_B extends ObjectType, VALUE_EXCLUSION_RESULTS extends Record<string, ValueExclusionResultType> = ExcludeObjectValues<META_OBJECT_A, META_OBJECT_B>, REPRESENTABLE_KEYS extends string = RepresentableKeys<VALUE_EXCLUSION_RESULTS>, OPEN_PROPS_EXCLUSION = _Exclude<ObjectOpenProps<META_OBJECT_A>, ObjectOpenProps<META_OBJECT_B>>> = DoesObjectSizesMatch<META_OBJECT_A, META_OBJECT_B, VALUE_EXCLUSION_RESULTS> extends true ? {
|
|
3494
3316
|
moreThanTwo: META_OBJECT_A;
|
|
@@ -3507,11 +3329,7 @@ declare type PropagateExclusions$1<META_OBJECT extends ObjectType, VALUE_EXCLUSI
|
|
|
3507
3329
|
declare type OmitOmittableKeys<META_OBJECT extends ObjectType, VALUE_EXCLUSION_RESULTS extends Record<string, ValueExclusionResultType>, OMITTABLE_KEYS extends string = OmittableKeys<VALUE_EXCLUSION_RESULTS>, OMITTABLE_KEYS_COUNT extends string = GetUnionLength<OMITTABLE_KEYS>> = OMITTABLE_KEYS_COUNT extends "moreThanTwo" ? META_OBJECT : OMITTABLE_KEYS_COUNT extends "onlyOne" ? _Object<{ [KEY in keyof VALUE_EXCLUSION_RESULTS]: KEY extends OMITTABLE_KEYS ? Never : SourceValue<VALUE_EXCLUSION_RESULTS[KEY]>; }, ObjectRequiredKeys<META_OBJECT>, ObjectOpenProps<META_OBJECT>, IsObjectClosedOnResolve<META_OBJECT>, IsSerialized<META_OBJECT>, Deserialized<META_OBJECT>> : Never;
|
|
3508
3330
|
declare type OmittableKeys<VALUE_EXCLUSION_RESULTS extends Record<string, ValueExclusionResultType>> = { [KEY in Extract<keyof VALUE_EXCLUSION_RESULTS, string>]: IsOmittable<VALUE_EXCLUSION_RESULTS[KEY]> extends true ? KEY : never; }[Extract<keyof VALUE_EXCLUSION_RESULTS, string>];
|
|
3509
3331
|
declare type ExcludeConstFromObject<META_OBJECT extends ObjectType, META_CONST extends ConstType, CONST_VALUE = ConstValue<META_CONST>> = If<IsObject<CONST_VALUE>, _$Exclude<META_OBJECT, _Object<{ [KEY in Extract<keyof CONST_VALUE, string>]: Const<CONST_VALUE[KEY]>; }, Extract<keyof CONST_VALUE, string>, Never, IsObjectClosedOnResolve<META_OBJECT>, IsSerialized<META_CONST>, Deserialized<META_CONST>>>, META_OBJECT>;
|
|
3510
|
-
//#endregion
|
|
3511
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/primitive.d.ts
|
|
3512
3332
|
declare type ExcludeFromPrimitive<META_PRIMITIVE extends PrimitiveType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_PRIMITIVE : META_TYPE extends AnyType ? Never : META_TYPE extends ConstType ? META_PRIMITIVE : META_TYPE extends EnumType ? META_PRIMITIVE : META_TYPE extends PrimitiveType ? PrimitiveValue<META_PRIMITIVE> extends PrimitiveValue<META_TYPE> ? Never : META_PRIMITIVE : META_TYPE extends ArrayType ? META_PRIMITIVE : META_TYPE extends TupleType ? META_PRIMITIVE : META_TYPE extends ObjectType ? META_PRIMITIVE : META_TYPE extends UnionType ? ExcludeUnion<META_PRIMITIVE, META_TYPE> : Never : Never;
|
|
3513
|
-
//#endregion
|
|
3514
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/tuple.d.ts
|
|
3515
3333
|
declare type ExcludeFromTuple<META_TUPLE extends TupleType, META_TYPE> = META_TYPE extends Type ? META_TYPE extends NeverType ? META_TUPLE : META_TYPE extends AnyType ? Never : META_TYPE extends ConstType ? ExcludeConst<META_TUPLE, META_TYPE> : META_TYPE extends EnumType ? ExcludeEnum<META_TUPLE, META_TYPE> : META_TYPE extends PrimitiveType ? META_TUPLE : META_TYPE extends ArrayType ? ExcludeArray<META_TUPLE, META_TYPE> : META_TYPE extends TupleType ? ExcludeTuples<META_TUPLE, META_TYPE> : META_TYPE extends ObjectType ? META_TUPLE : META_TYPE extends UnionType ? ExcludeUnion<META_TUPLE, META_TYPE> : Never : Never;
|
|
3516
3334
|
declare type ExcludeArray<META_TUPLE extends TupleType, META_ARRAY extends ArrayType> = ExcludeTuples<META_TUPLE, Tuple<[], ArrayValues<META_ARRAY>, IsSerialized<META_ARRAY>, Deserialized<META_ARRAY>>>;
|
|
3517
3335
|
declare type ExcludeTuples<META_TUPLE_A extends TupleType, META_TUPLE_B extends TupleType, VALUE_EXCLUSION_RESULTS extends ValueExclusionResultType[] = ExcludeTupleValues<TupleValues<META_TUPLE_A>, TupleValues<META_TUPLE_B>, IsTupleOpen<META_TUPLE_A>, IsTupleOpen<META_TUPLE_B>, TupleOpenProps<META_TUPLE_A>, TupleOpenProps<META_TUPLE_B>>, REPRESENTABLE_VALUE_EXCLUSION_RESULTS extends ValueExclusionResultType[] = RepresentableExcludedValues<VALUE_EXCLUSION_RESULTS>, EXCLUDED_OPEN_PROPS = _Exclude<TupleOpenProps<META_TUPLE_A>, TupleOpenProps<META_TUPLE_B>>, IS_OPEN_PROPS_EXCLUSION_REPRESENTABLE = Not$1<DoesExtend$1<EXCLUDED_OPEN_PROPS, NeverType>>> = If<DoesTupleSizesMatch<META_TUPLE_A, META_TUPLE_B, VALUE_EXCLUSION_RESULTS>, {
|
|
@@ -3531,21 +3349,12 @@ declare type OmittableExcludedItems<ITEM_EXCLUSION_RESULTS extends ValueExclusio
|
|
|
3531
3349
|
declare type RequiredExcludedItems<ITEM_EXCLUSION_RESULTS extends ValueExclusionResultType[], RESULT extends Type[] = []> = ITEM_EXCLUSION_RESULTS extends [infer VALUE_EXCLUSION_RESULTS_HEAD, ...infer VALUE_EXCLUSION_RESULTS_TAIL] ? VALUE_EXCLUSION_RESULTS_HEAD extends ValueExclusionResultType ? VALUE_EXCLUSION_RESULTS_TAIL extends ValueExclusionResultType[] ? IsOmittable<VALUE_EXCLUSION_RESULTS_HEAD> extends true ? RESULT : RequiredExcludedItems<VALUE_EXCLUSION_RESULTS_TAIL, [...RESULT, SourceValue<VALUE_EXCLUSION_RESULTS_HEAD>]> : never : never : RESULT;
|
|
3532
3350
|
declare type ExcludeConst<META_TUPLE extends TupleType, META_CONST extends ConstType, META_CONST_VALUE = ConstValue<META_CONST>> = META_CONST_VALUE extends unknown[] ? _Exclude<META_TUPLE, $Tuple<ExtractConstValues<META_CONST_VALUE>, Never, IsSerialized<META_CONST>, Deserialized<META_CONST>>> : META_TUPLE;
|
|
3533
3351
|
declare type ExtractConstValues<CONST_VALUES extends unknown[], RESULT extends unknown[] = []> = CONST_VALUES extends [infer CONST_VALUES_HEAD, ...infer CONST_VALUES_TAIL] ? ExtractConstValues<CONST_VALUES_TAIL, [...RESULT, Const<CONST_VALUES_HEAD>]> : RESULT;
|
|
3534
|
-
//#endregion
|
|
3535
|
-
//#region node_modules/ts-algebra/lib/meta-types/exclusion/index.d.ts
|
|
3536
3352
|
declare type _Exclude<META_TYPE_A extends Type, META_TYPE_B extends Type> = _$Exclude<META_TYPE_A, META_TYPE_B>;
|
|
3537
3353
|
declare type _$Exclude<META_TYPE_A, META_TYPE_B> = META_TYPE_A extends NeverType ? META_TYPE_A : META_TYPE_A extends AnyType ? ExcludeFromAny<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends ConstType ? ExcludeFromConst<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends EnumType ? ExcludeFromEnum<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends PrimitiveType ? ExcludeFromPrimitive<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends ArrayType ? ExcludeFromArray<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends TupleType ? ExcludeFromTuple<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends ObjectType ? ExcludeFromObject<META_TYPE_A, META_TYPE_B> : META_TYPE_A extends UnionType ? ExcludeFromUnion<META_TYPE_A, META_TYPE_B> : Never;
|
|
3538
|
-
declare namespace index_d_exports {
|
|
3539
|
-
export { _$Array as $Array, _$Exclude as $Exclude, $Intersect, _$Object as $Object, $Primitive, $Resolve, $Tuple, $Union, Any, AnyType, _Array as Array, ArrayType, Const, ConstType, Enum, EnumType, _Exclude as Exclude, Intersect, Never, NeverType, _Object as Object, ObjectType, Primitive, PrimitiveType, Resolve, Tuple, TupleType, Type, Union, UnionType };
|
|
3540
|
-
}
|
|
3541
|
-
//#endregion
|
|
3542
|
-
//#region node_modules/json-schema-to-ts/lib/types/definitions/deserializationPattern.d.ts
|
|
3543
3354
|
type DeserializationPattern = Readonly<{
|
|
3544
3355
|
pattern: unknown;
|
|
3545
3356
|
output: unknown;
|
|
3546
3357
|
}>;
|
|
3547
|
-
//#endregion
|
|
3548
|
-
//#region node_modules/json-schema-to-ts/lib/types/definitions/jsonSchema.d.ts
|
|
3549
3358
|
declare const $JSONSchema: unique symbol;
|
|
3550
3359
|
type $JSONSchema = typeof $JSONSchema;
|
|
3551
3360
|
type JSONSchemaType = "string" | "number" | "integer" | "boolean" | "object" | "array" | "null";
|
|
@@ -3603,8 +3412,6 @@ type JSONSchema$1 = boolean | Readonly<{
|
|
|
3603
3412
|
type JSONSchemaReference = JSONSchema$1 & Readonly<{
|
|
3604
3413
|
$id: string;
|
|
3605
3414
|
}>;
|
|
3606
|
-
//#endregion
|
|
3607
|
-
//#region node_modules/json-schema-to-ts/lib/types/definitions/fromSchemaOptions.d.ts
|
|
3608
3415
|
type FromSchemaOptions = {
|
|
3609
3416
|
parseNotKeyword?: boolean;
|
|
3610
3417
|
parseIfThenElseKeywords?: boolean;
|
|
@@ -3619,8 +3426,6 @@ type FromSchemaDefaultOptions = {
|
|
|
3619
3426
|
references: false;
|
|
3620
3427
|
deserialize: false;
|
|
3621
3428
|
};
|
|
3622
|
-
//#endregion
|
|
3623
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-options.d.ts
|
|
3624
3429
|
type IndexReferencesById<SCHEMA_REFERENCES extends readonly JSONSchemaReference[]> = { [REF_SCHEMA in SCHEMA_REFERENCES[number] as REF_SCHEMA["$id"]]: REF_SCHEMA; };
|
|
3625
3430
|
type ParseOptions<ROOT_SCHEMA extends JSONSchema$1, OPTIONS extends FromSchemaOptions> = {
|
|
3626
3431
|
parseNotKeyword: OPTIONS["parseNotKeyword"] extends boolean ? OPTIONS["parseNotKeyword"] : FromSchemaDefaultOptions["parseNotKeyword"];
|
|
@@ -3630,36 +3435,16 @@ type ParseOptions<ROOT_SCHEMA extends JSONSchema$1, OPTIONS extends FromSchemaOp
|
|
|
3630
3435
|
references: OPTIONS["references"] extends JSONSchemaReference[] ? IndexReferencesById<OPTIONS["references"]> : {};
|
|
3631
3436
|
deserialize: OPTIONS["deserialize"] extends DeserializationPattern[] | false ? OPTIONS["deserialize"] : FromSchemaDefaultOptions["deserialize"];
|
|
3632
3437
|
};
|
|
3633
|
-
//#endregion
|
|
3634
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/and.d.ts
|
|
3635
3438
|
type And<CONDITION_A, CONDITION_B> = CONDITION_A extends true ? CONDITION_B extends true ? true : false : false;
|
|
3636
|
-
//#endregion
|
|
3637
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/extends.d.ts
|
|
3638
3439
|
type DoesExtend<TYPE_A, TYPE_B> = [TYPE_A] extends [TYPE_B] ? true : false;
|
|
3639
|
-
//#endregion
|
|
3640
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/get.d.ts
|
|
3641
3440
|
type DeepGet<OBJECT, PATH extends string[], DEFAULT = undefined> = PATH extends [infer PATH_HEAD, ...infer PATH_TAIL] ? PATH_HEAD extends string ? PATH_TAIL extends string[] ? PATH_HEAD extends keyof OBJECT ? DeepGet<OBJECT[PATH_HEAD], PATH_TAIL, DEFAULT> : DEFAULT : never : never : OBJECT;
|
|
3642
|
-
//#endregion
|
|
3643
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/join.d.ts
|
|
3644
3441
|
type Join<STRINGS extends string[], SEPARATOR extends string = ","> = STRINGS extends [] ? "" : STRINGS extends [string] ? `${STRINGS[0]}` : STRINGS extends [string, ...infer STRINGS_TAIL] ? STRINGS_TAIL extends string[] ? `${STRINGS[0]}${SEPARATOR}${Join<STRINGS_TAIL, SEPARATOR>}` : never : string;
|
|
3645
|
-
//#endregion
|
|
3646
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/not.d.ts
|
|
3647
3442
|
type Not<BOOL> = BOOL extends false ? true : BOOL extends true ? false : never;
|
|
3648
|
-
//#endregion
|
|
3649
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/pop.d.ts
|
|
3650
3443
|
type Pop<ARRAY extends unknown[]> = ARRAY extends readonly [...infer ARRAY_BODY, unknown] | readonly [...infer ARRAY_BODY, unknown?] ? ARRAY_BODY : ARRAY;
|
|
3651
|
-
//#endregion
|
|
3652
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/split.d.ts
|
|
3653
3444
|
type RecursiveSplit<STRING extends string, SEPARATOR extends string = ""> = STRING extends `${infer BEFORE}${SEPARATOR}${infer AFTER}` ? [BEFORE, ...RecursiveSplit<AFTER, SEPARATOR>] : [STRING];
|
|
3654
3445
|
type Split<STRING extends string, SEPARATOR extends string = "", RESULT extends string[] = RecursiveSplit<STRING, SEPARATOR>> = SEPARATOR extends "" ? Pop<RESULT> : RESULT;
|
|
3655
|
-
//#endregion
|
|
3656
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/tail.d.ts
|
|
3657
3446
|
type Tail$1<ARRAY extends unknown[]> = ARRAY extends readonly [] ? ARRAY : ARRAY extends readonly [unknown?, ...infer ARRAY_TAIL] ? ARRAY_TAIL : ARRAY;
|
|
3658
|
-
//#endregion
|
|
3659
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/writable.d.ts
|
|
3660
3447
|
type Writable<TYPE> = TYPE extends ((...args: unknown[]) => unknown) | Date | RegExp ? TYPE : TYPE extends ReadonlyMap<infer KEYS, infer VALUES> ? Map<Writable<KEYS>, Writable<VALUES>> : TYPE extends ReadonlySet<infer VALUES> ? Set<Writable<VALUES>> : TYPE extends ReadonlyArray<unknown> ? `${bigint}` extends `${keyof TYPE & any}` ? { -readonly [KEY in keyof TYPE]: Writable<TYPE[KEY]>; } : Writable<TYPE[number]>[] : TYPE extends object ? { -readonly [KEY in keyof TYPE]: Writable<TYPE[KEY]>; } : TYPE;
|
|
3661
|
-
//#endregion
|
|
3662
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/utils.d.ts
|
|
3663
3448
|
type RemoveInvalidAdditionalItems<SCHEMA extends JSONSchema$1> = SCHEMA extends Readonly<{
|
|
3664
3449
|
items: JSONSchema$1 | readonly JSONSchema$1[];
|
|
3665
3450
|
}> ? SCHEMA extends Readonly<{
|
|
@@ -3675,42 +3460,30 @@ type RemoveInvalidAdditionalProperties<SCHEMA extends JSONSchema$1> = SCHEMA ext
|
|
|
3675
3460
|
properties: {};
|
|
3676
3461
|
}> : SCHEMA extends boolean ? SCHEMA : Omit<SCHEMA, "additionalProperties">;
|
|
3677
3462
|
type MergeSubSchema<PARENT_SCHEMA extends JSONSchema$1, SUB_SCHEMA extends JSONSchema$1, CLEANED_SUB_SCHEMA extends JSONSchema$1 = RemoveInvalidAdditionalProperties<RemoveInvalidAdditionalItems<SUB_SCHEMA>>> = Omit<PARENT_SCHEMA, keyof CLEANED_SUB_SCHEMA | "additionalProperties" | "patternProperties" | "unevaluatedProperties" | "required" | "additionalItems"> & CLEANED_SUB_SCHEMA;
|
|
3678
|
-
//#endregion
|
|
3679
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/allOf.d.ts
|
|
3680
3463
|
type AllOfSchema = JSONSchema$1 & Readonly<{
|
|
3681
3464
|
allOf: readonly JSONSchema$1[];
|
|
3682
3465
|
}>;
|
|
3683
3466
|
type ParseAllOfSchema<ALL_OF_SCHEMA extends AllOfSchema, OPTIONS extends ParseSchemaOptions> = RecurseOnAllOfSchema<ALL_OF_SCHEMA["allOf"], ALL_OF_SCHEMA, OPTIONS, ParseSchema<Omit<ALL_OF_SCHEMA, "allOf">, OPTIONS>>;
|
|
3684
3467
|
type RecurseOnAllOfSchema<SUB_SCHEMAS extends readonly JSONSchema$1[], ROOT_ALL_OF_SCHEMA extends AllOfSchema, OPTIONS extends ParseSchemaOptions, PARSED_ROOT_ALL_OF_SCHEMA> = SUB_SCHEMAS extends readonly [infer SUB_SCHEMAS_HEAD, ...infer SUB_SCHEMAS_TAIL] ? SUB_SCHEMAS_HEAD extends JSONSchema$1 ? SUB_SCHEMAS_TAIL extends readonly JSONSchema$1[] ? RecurseOnAllOfSchema<SUB_SCHEMAS_TAIL, ROOT_ALL_OF_SCHEMA, OPTIONS, $Intersect<ParseSchema<MergeSubSchema<Omit<ROOT_ALL_OF_SCHEMA, "allOf">, SUB_SCHEMAS_HEAD>, OPTIONS>, PARSED_ROOT_ALL_OF_SCHEMA>> : never : never : PARSED_ROOT_ALL_OF_SCHEMA;
|
|
3685
|
-
//#endregion
|
|
3686
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/anyOf.d.ts
|
|
3687
3468
|
type AnyOfSchema = JSONSchema$1 & Readonly<{
|
|
3688
3469
|
anyOf: readonly JSONSchema$1[];
|
|
3689
3470
|
}>;
|
|
3690
3471
|
type ParseAnyOfSchema<ANY_OF_SCHEMA extends AnyOfSchema, OPTIONS extends ParseSchemaOptions> = $Union<RecurseOnAnyOfSchema<ANY_OF_SCHEMA["anyOf"], ANY_OF_SCHEMA, OPTIONS>>;
|
|
3691
3472
|
type RecurseOnAnyOfSchema<SUB_SCHEMAS extends readonly JSONSchema$1[], ROOT_ANY_OF_SCHEMA extends AnyOfSchema, OPTIONS extends ParseSchemaOptions, RESULT = never> = SUB_SCHEMAS extends readonly [infer SUB_SCHEMAS_HEAD, ...infer SUB_SCHEMAS_TAIL] ? SUB_SCHEMAS_HEAD extends JSONSchema$1 ? SUB_SCHEMAS_TAIL extends readonly JSONSchema$1[] ? RecurseOnAnyOfSchema<SUB_SCHEMAS_TAIL, ROOT_ANY_OF_SCHEMA, OPTIONS, RESULT | $Intersect<ParseSchema<Omit<ROOT_ANY_OF_SCHEMA, "anyOf">, OPTIONS>, ParseSchema<MergeSubSchema<Omit<ROOT_ANY_OF_SCHEMA, "anyOf">, SUB_SCHEMAS_HEAD>, OPTIONS>>> : never : never : RESULT;
|
|
3692
|
-
//#endregion
|
|
3693
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/const.d.ts
|
|
3694
3473
|
type ConstSchema = JSONSchema$1 & Readonly<{
|
|
3695
3474
|
const: unknown;
|
|
3696
3475
|
}>;
|
|
3697
3476
|
type ParseConstSchema<CONST_SCHEMA extends ConstSchema, OPTIONS extends ParseSchemaOptions> = $Intersect<ParseConst<CONST_SCHEMA>, ParseSchema<Omit<CONST_SCHEMA, "const">, OPTIONS>>;
|
|
3698
3477
|
type ParseConst<CONST_SCHEMA extends ConstSchema> = Const<Writable<CONST_SCHEMA["const"]>>;
|
|
3699
|
-
//#endregion
|
|
3700
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/deserialize.d.ts
|
|
3701
3478
|
type DeserializeSchema<SCHEMA extends JSONSchema$1, OPTIONS extends Omit<ParseSchemaOptions, "deserialize"> & {
|
|
3702
3479
|
deserialize: DeserializationPattern[];
|
|
3703
3480
|
}> = RecurseOnDeserializationPatterns<SCHEMA, OPTIONS["deserialize"]>;
|
|
3704
3481
|
type RecurseOnDeserializationPatterns<SCHEMA extends JSONSchema$1, DESERIALIZATION_PATTERNS extends DeserializationPattern[], RESULT = Any> = DESERIALIZATION_PATTERNS extends [infer DESERIALIZATION_PATTERNS_HEAD, ...infer DESERIALIZATION_PATTERNS_TAIL] ? DESERIALIZATION_PATTERNS_HEAD extends DeserializationPattern ? DESERIALIZATION_PATTERNS_TAIL extends DeserializationPattern[] ? RecurseOnDeserializationPatterns<SCHEMA, DESERIALIZATION_PATTERNS_TAIL, SCHEMA extends DESERIALIZATION_PATTERNS_HEAD["pattern"] ? $Intersect<Any<true, DESERIALIZATION_PATTERNS_HEAD["output"]>, RESULT> : RESULT> : never : never : RESULT;
|
|
3705
|
-
//#endregion
|
|
3706
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/enum.d.ts
|
|
3707
3482
|
type EnumSchema = JSONSchema$1 & Readonly<{
|
|
3708
3483
|
enum: readonly unknown[];
|
|
3709
3484
|
}>;
|
|
3710
3485
|
type ParseEnumSchema<ENUM_SCHEMA extends EnumSchema, OPTIONS extends ParseSchemaOptions> = $Intersect<ParseEnum<ENUM_SCHEMA>, ParseSchema<Omit<ENUM_SCHEMA, "enum">, OPTIONS>>;
|
|
3711
3486
|
type ParseEnum<ENUM_SCHEMA extends EnumSchema> = Enum<Writable<ENUM_SCHEMA["enum"][number]>>;
|
|
3712
|
-
//#endregion
|
|
3713
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/ifThenElse.d.ts
|
|
3714
3487
|
type IfThenElseSchema = JSONSchema$1 & {
|
|
3715
3488
|
if: JSONSchema$1;
|
|
3716
3489
|
then?: JSONSchema$1;
|
|
@@ -3721,8 +3494,6 @@ type ParseIfThenElseSchema<IF_THEN_ELSE_SCHEMA extends IfThenElseSchema, OPTIONS
|
|
|
3721
3494
|
} ? $Intersect<ParseSchema<IF_SCHEMA, OPTIONS>, ParseSchema<MergeSubSchema<REST_SCHEMA, IF_THEN_ELSE_SCHEMA["then"]>, OPTIONS>> : ParseSchema<IF_SCHEMA, OPTIONS>, PARSED_ELSE_SCHEMA = IF_THEN_ELSE_SCHEMA extends {
|
|
3722
3495
|
else: JSONSchema$1;
|
|
3723
3496
|
} ? $Intersect<_$Exclude<ParseSchema<REST_SCHEMA, OPTIONS>, ParseSchema<IF_SCHEMA, OPTIONS>>, ParseSchema<MergeSubSchema<REST_SCHEMA, IF_THEN_ELSE_SCHEMA["else"]>, OPTIONS>> : _$Exclude<ParseSchema<REST_SCHEMA, OPTIONS>, ParseSchema<IF_SCHEMA, OPTIONS>>> = $Intersect<$Union<PARSED_THEN_SCHEMA | PARSED_ELSE_SCHEMA>, ParseSchema<REST_SCHEMA, OPTIONS>>;
|
|
3724
|
-
//#endregion
|
|
3725
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/multipleTypes.d.ts
|
|
3726
3497
|
type MultipleTypesSchema = JSONSchema$1 & Readonly<{
|
|
3727
3498
|
type: readonly JSONSchemaType[];
|
|
3728
3499
|
}>;
|
|
@@ -3730,33 +3501,23 @@ type ParseMultipleTypesSchema<MULTI_TYPE_SCHEMA extends MultipleTypesSchema, OPT
|
|
|
3730
3501
|
type RecurseOnMixedSchema<TYPES extends readonly JSONSchemaType[], ROOT_MULTI_TYPE_SCHEMA extends MultipleTypesSchema, OPTIONS extends ParseSchemaOptions, RESULT = never> = TYPES extends readonly [infer TYPES_HEAD, ...infer TYPES_TAIL] ? TYPES_HEAD extends JSONSchemaType ? TYPES_TAIL extends readonly JSONSchemaType[] ? RecurseOnMixedSchema<TYPES_TAIL, ROOT_MULTI_TYPE_SCHEMA, OPTIONS, RESULT | ParseSchema<Omit<ROOT_MULTI_TYPE_SCHEMA, "type"> & {
|
|
3731
3502
|
type: TYPES_HEAD;
|
|
3732
3503
|
}, OPTIONS>> : never : never : RESULT;
|
|
3733
|
-
//#endregion
|
|
3734
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/not.d.ts
|
|
3735
3504
|
type NotSchema = JSONSchema$1 & Readonly<{
|
|
3736
3505
|
not: JSONSchema$1;
|
|
3737
3506
|
}>;
|
|
3738
3507
|
type AllTypes = Union<Primitive<null> | Primitive<boolean> | Primitive<number> | Primitive<string> | _Array | _Object<{}, never, Any>>;
|
|
3739
3508
|
type ParseNotSchema<NOT_SCHEMA extends NotSchema, OPTIONS extends ParseSchemaOptions, PARSED_REST_SCHEMA = ParseSchema<Omit<NOT_SCHEMA, "not">, OPTIONS>, EXCLUSION = _$Exclude<PARSED_REST_SCHEMA extends AnyType ? $Intersect<AllTypes, PARSED_REST_SCHEMA> : PARSED_REST_SCHEMA, ParseSchema<MergeSubSchema<Omit<NOT_SCHEMA, "not">, NOT_SCHEMA["not"]>, OPTIONS>>> = EXCLUSION extends Never ? PARSED_REST_SCHEMA : EXCLUSION;
|
|
3740
|
-
//#endregion
|
|
3741
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/nullable.d.ts
|
|
3742
3509
|
type NullableSchema = JSONSchema$1 & Readonly<{
|
|
3743
3510
|
nullable: boolean;
|
|
3744
3511
|
}>;
|
|
3745
3512
|
type ParseNullableSchema<NULLABLE_SCHEMA extends NullableSchema, OPTIONS extends ParseSchemaOptions, PARSED_REST_SCHEMA = ParseSchema<Omit<NULLABLE_SCHEMA, "nullable">, OPTIONS>> = NULLABLE_SCHEMA extends Readonly<{
|
|
3746
3513
|
nullable: true;
|
|
3747
3514
|
}> ? $Union<Primitive<null> | PARSED_REST_SCHEMA> : PARSED_REST_SCHEMA;
|
|
3748
|
-
//#endregion
|
|
3749
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/oneOf.d.ts
|
|
3750
3515
|
type OneOfSchema = JSONSchema$1 & Readonly<{
|
|
3751
3516
|
oneOf: readonly JSONSchema$1[];
|
|
3752
3517
|
}>;
|
|
3753
3518
|
type ParseOneOfSchema<ONE_OF_SCHEMA extends OneOfSchema, OPTIONS extends ParseSchemaOptions> = $Union<RecurseOnOneOfSchema<ONE_OF_SCHEMA["oneOf"], ONE_OF_SCHEMA, OPTIONS>>;
|
|
3754
3519
|
type RecurseOnOneOfSchema<SUB_SCHEMAS extends readonly JSONSchema$1[], ROOT_ONE_OF_SCHEMA extends OneOfSchema, OPTIONS extends ParseSchemaOptions, RESULT = never> = SUB_SCHEMAS extends readonly [infer SUB_SCHEMAS_HEAD, ...infer SUB_SCHEMAS_TAIL] ? SUB_SCHEMAS_HEAD extends JSONSchema$1 ? SUB_SCHEMAS_TAIL extends readonly JSONSchema$1[] ? RecurseOnOneOfSchema<SUB_SCHEMAS_TAIL, ROOT_ONE_OF_SCHEMA, OPTIONS, RESULT | $Intersect<ParseSchema<Omit<ROOT_ONE_OF_SCHEMA, "oneOf">, OPTIONS>, ParseSchema<MergeSubSchema<Omit<ROOT_ONE_OF_SCHEMA, "oneOf">, SUB_SCHEMAS_HEAD>, OPTIONS>>> : never : never : RESULT;
|
|
3755
|
-
//#endregion
|
|
3756
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/references/utils.d.ts
|
|
3757
3520
|
type ParseReference<SCHEMA extends JSONSchema$1, OPTIONS extends ParseSchemaOptions, REFERENCE_SOURCE extends JSONSchema$1, PATH_IN_SOURCE extends string | undefined, MATCHING_REFERENCE extends JSONSchema$1 = PATH_IN_SOURCE extends string ? DeepGet<REFERENCE_SOURCE, Tail$1<Split<PATH_IN_SOURCE, "/">>, false> : REFERENCE_SOURCE> = $Intersect<ParseSchema<MATCHING_REFERENCE, OPTIONS>, ParseSchema<MergeSubSchema<MATCHING_REFERENCE, SCHEMA>, OPTIONS>>;
|
|
3758
|
-
//#endregion
|
|
3759
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/references/external.d.ts
|
|
3760
3521
|
type ParseExternalReferenceSchema<REF_SCHEMA extends ReferencingSchema, OPTIONS extends ParseSchemaOptions, EXTERNAL_REFERENCE_ID extends string, SUB_PATH extends string | undefined> = OPTIONS["references"] extends { [KEY in EXTERNAL_REFERENCE_ID]: JSONSchema$1; } ? ParseReference<Omit<REF_SCHEMA, "$ref">, OPTIONS, OPTIONS["references"][EXTERNAL_REFERENCE_ID], SUB_PATH> : OPTIONS extends {
|
|
3761
3522
|
rootSchema: IdSchema;
|
|
3762
3523
|
} ? ParseExternalReferenceWithoutDirectorySchema<Omit<REF_SCHEMA, "$ref">, OPTIONS, EXTERNAL_REFERENCE_ID, SUB_PATH> : Never;
|
|
@@ -3767,17 +3528,11 @@ type IdSchema = JSONSchema$1 & {
|
|
|
3767
3528
|
type ParseExternalReferenceWithoutDirectorySchema<SUB_SCHEMA extends JSONSchema$1, OPTIONS extends ParseSchemaOptions & {
|
|
3768
3529
|
rootSchema: IdSchema;
|
|
3769
3530
|
}, EXTERNAL_REFERENCE_ID extends string, SUB_PATH extends string | undefined, DIRECTORY extends string = ParseDirectory<OPTIONS["rootSchema"]["$id"]>, COMPLETE_REFERENCE extends string = Join<[DIRECTORY, EXTERNAL_REFERENCE_ID], "/">> = COMPLETE_REFERENCE extends keyof OPTIONS["references"] ? ParseReference<SUB_SCHEMA, OPTIONS, OPTIONS["references"][COMPLETE_REFERENCE], SUB_PATH> : Never;
|
|
3770
|
-
//#endregion
|
|
3771
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/references/internal.d.ts
|
|
3772
3531
|
type ParseInternalReferenceSchema<REFERENCING_SCHEMA extends ReferencingSchema, OPTIONS extends ParseSchemaOptions, PATH extends string> = ParseReference<Omit<REFERENCING_SCHEMA, "$ref">, OPTIONS, OPTIONS["rootSchema"], PATH>;
|
|
3773
|
-
//#endregion
|
|
3774
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/references/index.d.ts
|
|
3775
3532
|
type ReferencingSchema = JSONSchema$1 & {
|
|
3776
3533
|
$ref: string;
|
|
3777
3534
|
};
|
|
3778
3535
|
type ParseReferenceSchema<REFERENCING_SCHEMA extends ReferencingSchema, OPTIONS extends ParseSchemaOptions, REFERENCE_ID_AND_PATH extends string[] = Split<REFERENCING_SCHEMA["$ref"], "#">> = REFERENCE_ID_AND_PATH[0] extends "" ? ParseInternalReferenceSchema<REFERENCING_SCHEMA, OPTIONS, REFERENCE_ID_AND_PATH[1]> : ParseExternalReferenceSchema<REFERENCING_SCHEMA, OPTIONS, REFERENCE_ID_AND_PATH[0], REFERENCE_ID_AND_PATH[1]>;
|
|
3779
|
-
//#endregion
|
|
3780
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/array.d.ts
|
|
3781
3536
|
type ArrayOrTupleSchema = JSONSchema$1 & Readonly<{
|
|
3782
3537
|
type: "array";
|
|
3783
3538
|
}>;
|
|
@@ -3821,8 +3576,6 @@ type ApplyAdditionalItems<APPLY_MIN_MAX_RESULT extends {
|
|
|
3821
3576
|
} ? APPLY_MIN_MAX_RESULT["result"] | $Tuple<APPLY_MIN_MAX_RESULT["completeTuple"], Any> : $Tuple<APPLY_MIN_MAX_RESULT["completeTuple"], Any> : APPLY_MIN_MAX_RESULT extends {
|
|
3822
3577
|
hasEncounteredMin: true;
|
|
3823
3578
|
} ? APPLY_MIN_MAX_RESULT["result"] | $Tuple<APPLY_MIN_MAX_RESULT["completeTuple"], ParseSchema<ADDITIONAL_ITEMS_SCHEMA, OPTIONS>> : $Tuple<APPLY_MIN_MAX_RESULT["completeTuple"], ParseSchema<ADDITIONAL_ITEMS_SCHEMA, OPTIONS>>;
|
|
3824
|
-
//#endregion
|
|
3825
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/object.d.ts
|
|
3826
3579
|
type ObjectSchema$1 = JSONSchema$1 & Readonly<{
|
|
3827
3580
|
type: "object";
|
|
3828
3581
|
}>;
|
|
@@ -3848,8 +3601,6 @@ type GetClosedOnResolve<OBJECT_SCHEMA extends ObjectSchema$1> = OBJECT_SCHEMA ex
|
|
|
3848
3601
|
}> ? true : false;
|
|
3849
3602
|
type PatternProps<PATTERN_PROPERTY_SCHEMAS extends Readonly<Record<string, JSONSchema$1>>, OPTIONS extends ParseSchemaOptions> = $Union<{ [KEY in keyof PATTERN_PROPERTY_SCHEMAS]: ParseSchema<PATTERN_PROPERTY_SCHEMAS[KEY], OPTIONS>; }[keyof PATTERN_PROPERTY_SCHEMAS]>;
|
|
3850
3603
|
type AdditionalAndPatternProps<ADDITIONAL_PROPERTIES_SCHEMA extends JSONSchema$1, PATTERN_PROPERTY_SCHEMAS extends Readonly<Record<string, JSONSchema$1>>, OPTIONS extends ParseSchemaOptions> = ADDITIONAL_PROPERTIES_SCHEMA extends boolean ? PatternProps<PATTERN_PROPERTY_SCHEMAS, OPTIONS> : $Union<ParseSchema<ADDITIONAL_PROPERTIES_SCHEMA, OPTIONS> | { [KEY in keyof PATTERN_PROPERTY_SCHEMAS]: ParseSchema<PATTERN_PROPERTY_SCHEMAS[KEY], OPTIONS>; }[keyof PATTERN_PROPERTY_SCHEMAS]>;
|
|
3851
|
-
//#endregion
|
|
3852
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/singleType.d.ts
|
|
3853
3604
|
type SingleTypeSchema = JSONSchema$1 & Readonly<{
|
|
3854
3605
|
type: JSONSchemaType;
|
|
3855
3606
|
}>;
|
|
@@ -3864,8 +3615,6 @@ type ParseSingleTypeSchema<SINGLE_TYPE_SCHEMA extends SingleTypeSchema, OPTIONS
|
|
|
3864
3615
|
}> ? Primitive<number> : SINGLE_TYPE_SCHEMA extends Readonly<{
|
|
3865
3616
|
type: "string";
|
|
3866
3617
|
}> ? Primitive<string> : SINGLE_TYPE_SCHEMA extends ArrayOrTupleSchema ? ParseArrayOrTupleSchema<SINGLE_TYPE_SCHEMA, OPTIONS> : SINGLE_TYPE_SCHEMA extends ObjectSchema$1 ? ParseObjectSchema<SINGLE_TYPE_SCHEMA, OPTIONS> : Never;
|
|
3867
|
-
//#endregion
|
|
3868
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/index.d.ts
|
|
3869
3618
|
type ParseSchemaOptions = {
|
|
3870
3619
|
parseNotKeyword: boolean;
|
|
3871
3620
|
parseIfThenElseKeywords: boolean;
|
|
@@ -3877,15 +3626,9 @@ type ParseSchemaOptions = {
|
|
|
3877
3626
|
type ParseSchema<SCHEMA extends JSONSchema$1, OPTIONS extends ParseSchemaOptions, RESULT = JSONSchema$1 extends SCHEMA ? Any : SCHEMA extends true | string ? Any : SCHEMA extends false ? Never : SCHEMA extends NullableSchema ? ParseNullableSchema<SCHEMA, OPTIONS> : SCHEMA extends ReferencingSchema ? ParseReferenceSchema<SCHEMA, OPTIONS> : And<DoesExtend<OPTIONS["parseIfThenElseKeywords"], true>, DoesExtend<SCHEMA, IfThenElseSchema>> extends true ? SCHEMA extends IfThenElseSchema ? ParseIfThenElseSchema<SCHEMA, OPTIONS> : never : And<DoesExtend<OPTIONS["parseNotKeyword"], true>, DoesExtend<SCHEMA, NotSchema>> extends true ? SCHEMA extends NotSchema ? ParseNotSchema<SCHEMA, OPTIONS> : never : SCHEMA extends AllOfSchema ? ParseAllOfSchema<SCHEMA, OPTIONS> : SCHEMA extends OneOfSchema ? ParseOneOfSchema<SCHEMA, OPTIONS> : SCHEMA extends AnyOfSchema ? ParseAnyOfSchema<SCHEMA, OPTIONS> : SCHEMA extends EnumSchema ? ParseEnumSchema<SCHEMA, OPTIONS> : SCHEMA extends ConstSchema ? ParseConstSchema<SCHEMA, OPTIONS> : SCHEMA extends MultipleTypesSchema ? ParseMultipleTypesSchema<SCHEMA, OPTIONS> : SCHEMA extends SingleTypeSchema ? ParseSingleTypeSchema<SCHEMA, OPTIONS> : Any> = OPTIONS extends {
|
|
3878
3627
|
deserialize: DeserializationPattern[];
|
|
3879
3628
|
} ? $Intersect<DeserializeSchema<SCHEMA, OPTIONS>, RESULT> : RESULT;
|
|
3880
|
-
//#endregion
|
|
3881
|
-
//#region node_modules/json-schema-to-ts/lib/types/index.d.ts
|
|
3882
3629
|
type FromSchema$1<SCHEMA extends JSONSchema$1, OPTIONS extends FromSchemaOptions = FromSchemaDefaultOptions> = $Resolve<ParseSchema<SCHEMA, ParseOptions<SCHEMA, OPTIONS>>>;
|
|
3883
|
-
//#endregion
|
|
3884
|
-
//#region node_modules/@whatwg-node/promise-helpers/typings/index.d.cts
|
|
3885
3630
|
type MaybePromise<T> = Promise<T> | T;
|
|
3886
3631
|
type MaybePromiseLike<T> = PromiseLike<T> | T;
|
|
3887
|
-
//#endregion
|
|
3888
|
-
//#region node_modules/@whatwg-node/server/typings/utils.d.cts
|
|
3889
3632
|
interface NodeRequest {
|
|
3890
3633
|
protocol?: string | undefined;
|
|
3891
3634
|
hostname?: string | undefined;
|
|
@@ -3902,8 +3645,6 @@ interface NodeRequest {
|
|
|
3902
3645
|
aborted?: boolean | undefined;
|
|
3903
3646
|
}
|
|
3904
3647
|
type NodeResponse = ServerResponse | Http2ServerResponse;
|
|
3905
|
-
//#endregion
|
|
3906
|
-
//#region node_modules/@whatwg-node/server/typings/uwebsockets.d.cts
|
|
3907
3648
|
interface UWSRequest {
|
|
3908
3649
|
getMethod(): string;
|
|
3909
3650
|
forEach(callback: (key: string, value: string) => void): void;
|
|
@@ -3923,8 +3664,6 @@ interface UWSResponse {
|
|
|
3923
3664
|
cork(callback: () => void): void;
|
|
3924
3665
|
}
|
|
3925
3666
|
type UWSHandler = (res: UWSResponse, req: UWSRequest) => void | Promise<void>;
|
|
3926
|
-
//#endregion
|
|
3927
|
-
//#region node_modules/@whatwg-node/server/typings/types.d.cts
|
|
3928
3667
|
interface FetchEvent extends Event {
|
|
3929
3668
|
waitUntil(f: MaybePromise<void>): void;
|
|
3930
3669
|
request: Request;
|
|
@@ -4016,11 +3755,7 @@ type ServerAdapterInitialContext = {
|
|
|
4016
3755
|
*/
|
|
4017
3756
|
waitUntil: WaitUntilFn;
|
|
4018
3757
|
};
|
|
4019
|
-
//#endregion
|
|
4020
|
-
//#region node_modules/fets/typings/types.d.ts
|
|
4021
3758
|
type StatusCodeMap$1<T> = { [TKey in StatusCode$1]?: T; };
|
|
4022
|
-
//#endregion
|
|
4023
|
-
//#region node_modules/fets/typings/typed-fetch.d.ts
|
|
4024
3759
|
type OkStatusCode$1 = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
|
|
4025
3760
|
type RedirectStatusCode$1 = 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308;
|
|
4026
3761
|
type ClientErrorStatusCode$1 = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451;
|
|
@@ -4164,13 +3899,9 @@ interface TypedFormData$1<TMap extends Record<string, FormDataEntryValue | undef
|
|
|
4164
3899
|
values(): IterableIterator<TMap[keyof TMap]>;
|
|
4165
3900
|
[Symbol.iterator](): IterableIterator<[keyof TMap, TMap[keyof TMap]]>;
|
|
4166
3901
|
}
|
|
4167
|
-
//#endregion
|
|
4168
|
-
//#region node_modules/fets/typings/client/clientResponse.d.cts
|
|
4169
3902
|
type ClientTypedResponsePromise<TTypedResponse extends Response> = Promise<TTypedResponse> & {
|
|
4170
3903
|
json(): Promise<TTypedResponse extends TypedResponse$1 ? JSONofResponse<TTypedResponse> : any>;
|
|
4171
3904
|
};
|
|
4172
|
-
//#endregion
|
|
4173
|
-
//#region node_modules/fets/typings/typed-fetch.d.cts
|
|
4174
3905
|
type OkStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
|
|
4175
3906
|
type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308;
|
|
4176
3907
|
type ClientErrorStatusCode = 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | 421 | 422 | 423 | 424 | 425 | 426 | 428 | 429 | 431 | 451;
|
|
@@ -4321,11 +4052,7 @@ interface TypedFormData<TMap extends Record<string, FormDataEntryValue | undefin
|
|
|
4321
4052
|
values(): IterableIterator<TMap[keyof TMap]>;
|
|
4322
4053
|
[Symbol.iterator](): IterableIterator<[keyof TMap, TMap[keyof TMap]]>;
|
|
4323
4054
|
}
|
|
4324
|
-
//#endregion
|
|
4325
|
-
//#region node_modules/fets/typings/client/types.d.cts
|
|
4326
4055
|
type ClientRequestInit = Omit<RequestInit, 'body' | 'method' | 'headers'>;
|
|
4327
|
-
//#endregion
|
|
4328
|
-
//#region node_modules/fets/typings/types.d.cts
|
|
4329
4056
|
type Simplify<T> = { [KeyType in keyof T]: Simplify<T[KeyType]>; } & {};
|
|
4330
4057
|
type JSONSchema = Exclude<JSONSchema$1, boolean>;
|
|
4331
4058
|
interface OpenAPIInfo {
|
|
@@ -4631,8 +4358,6 @@ type RouteWithTypesOpts<TServerContext, TMethod extends HTTPMethod, TPath extend
|
|
|
4631
4358
|
handler: RouteHandler<TServerContext, TTypedRequest, TTypedResponse>;
|
|
4632
4359
|
};
|
|
4633
4360
|
type ExtractPathParamsWithPattern<TPath extends string> = Pipe<TPath, [Strings.Split<'/'>, Tuples.Filter<Strings.StartsWith<':'>>, Tuples.Map<Strings.Trim<':'>>, Tuples.ToUnion]>;
|
|
4634
|
-
//#endregion
|
|
4635
|
-
//#region lib/rumble.d.ts
|
|
4636
4361
|
export declare const rumble: <UserContext extends Record<string, any>, DB extends DrizzleInstance, RequestEvent extends Record<string, any>, PothosConfig extends CustomRumblePothosConfig, Schema extends Record<string, any>, Action extends string = "delete" | "read" | "update">(rumbleInput: RumbleInput<UserContext, DB, RequestEvent, Action, PothosConfig> & {
|
|
4637
4362
|
schema: Schema;
|
|
4638
4363
|
}) => {
|
|
@@ -5217,8 +4942,6 @@ export declare const rumble: <UserContext extends Record<string, any>, DB extend
|
|
|
5217
4942
|
*/
|
|
5218
4943
|
buildSchema: () => GraphQLSchema;
|
|
5219
4944
|
};
|
|
5220
|
-
//#endregion
|
|
5221
|
-
//#region lib/scalars/address.d.ts
|
|
5222
4945
|
/**
|
|
5223
4946
|
* The shape of a postal address, modeled after the OIDC `address` claim
|
|
5224
4947
|
* (https://openid.net/specs/openid-connect-core-1_0.html#AddressClaim) and schema.org's
|
|
@@ -5252,8 +4975,6 @@ type AddressInputShape = Omit<AddressShape, "countryCode" | "streetAddress"> & {
|
|
|
5252
4975
|
countryCode: string;
|
|
5253
4976
|
streetAddress: string;
|
|
5254
4977
|
};
|
|
5255
|
-
//#endregion
|
|
5256
|
-
//#region lib/scalars/addressData.d.ts
|
|
5257
4978
|
type RegionAddressRules = {
|
|
5258
4979
|
/** Regex the postal code must start with. */
|
|
5259
4980
|
zip?: string;
|
|
@@ -5277,8 +4998,6 @@ type CountryAddressRules = {
|
|
|
5277
4998
|
* Changes: reduced to required fields, postal code patterns and examples, and regions with
|
|
5278
4999
|
* their names, with region codes upper-cased and ISO 3166-2 ids used where available. */
|
|
5279
5000
|
export declare const addressData: Record<string, CountryAddressRules>;
|
|
5280
|
-
//#endregion
|
|
5281
|
-
//#region lib/scalars/addressValidation.d.ts
|
|
5282
5001
|
type AddressIssue = {
|
|
5283
5002
|
path: keyof AddressShape;
|
|
5284
5003
|
message: string;
|
|
@@ -5359,8 +5078,6 @@ export declare const addressValidationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
5359
5078
|
postalCode?: string | null | undefined;
|
|
5360
5079
|
countryCode: string;
|
|
5361
5080
|
}>>;
|
|
5362
|
-
//#endregion
|
|
5363
|
-
//#region lib/scalars/emailAddress.d.ts
|
|
5364
5081
|
/**
|
|
5365
5082
|
* Validates an email address using graphql-scalars' own format check, then lowercases it, exactly
|
|
5366
5083
|
* as the `EmailAddress` scalar does. Exported for values that do not arrive as GraphQL input,
|
|
@@ -5369,8 +5086,6 @@ export declare const addressValidationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
5369
5086
|
* @throws RumbleErrorSafe if the value is not a valid email address
|
|
5370
5087
|
*/
|
|
5371
5088
|
export declare const normalizeEmailAddress: (value: unknown) => string;
|
|
5372
|
-
//#endregion
|
|
5373
|
-
//#region lib/scalars/personName.d.ts
|
|
5374
5089
|
/**
|
|
5375
5090
|
* Normalizes and validates a person's name, exactly as the `PersonName` scalar does. Exported
|
|
5376
5091
|
* for values that do not arrive as GraphQL input, such as OIDC claims.
|
|
@@ -5378,8 +5093,6 @@ export declare const normalizeEmailAddress: (value: unknown) => string;
|
|
|
5378
5093
|
* @throws RumbleErrorSafe if the value is not a valid name
|
|
5379
5094
|
*/
|
|
5380
5095
|
export declare const normalizePersonName: (value: unknown) => string;
|
|
5381
|
-
//#endregion
|
|
5382
|
-
//#region lib/scalars/phoneNumber.d.ts
|
|
5383
5096
|
/**
|
|
5384
5097
|
* Parses and validates a phone number using libphonenumber-js (Google's phone number metadata),
|
|
5385
5098
|
* which checks real per-country validity (length, area code plausibility, ...) rather than just
|
|
@@ -5389,8 +5102,6 @@ export declare const normalizePersonName: (value: unknown) => string;
|
|
|
5389
5102
|
* @throws RumbleErrorSafe if the value is not a valid phone number
|
|
5390
5103
|
*/
|
|
5391
5104
|
export declare const parsePhoneNumber: (value: unknown) => PhoneNumber;
|
|
5392
|
-
//#endregion
|
|
5393
|
-
//#region lib/types/rumbleError.d.ts
|
|
5394
5105
|
/**
|
|
5395
5106
|
* An error that gets raised by rumble whenever something does not go according to plan.
|
|
5396
5107
|
* Mostly internals, configuration errors or other unexpected things.
|
|
@@ -5404,6 +5115,5 @@ export declare class RumbleError extends Error {
|
|
|
5404
5115
|
* E.g. the assert helpers issue these.
|
|
5405
5116
|
*/
|
|
5406
5117
|
export declare class RumbleErrorSafe extends GraphQLError {}
|
|
5407
|
-
//#endregion
|
|
5408
5118
|
export type { AddressCheck, AddressInputShape, AddressIssue, AddressShape, CountryAddressRules, NormalizedAddress, RegionAddressRules };
|
|
5409
5119
|
//# sourceMappingURL=index.d.cts.map
|