@m1212e/rumble 0.27.0 → 0.27.4
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 +250 -171
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +56 -300
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +59 -303
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +252 -173
- 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,23 @@ type FilterPrefetchCombo<Context, FilteredEntityType, PrefetchReturnType = never
|
|
|
70
64
|
filter: Filter<Context, FilteredEntityType, PrefetchReturnType>;
|
|
71
65
|
prefetch?: Prefetch<Context, PrefetchReturnType>;
|
|
72
66
|
};
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
/**
|
|
68
|
+
* Settings for resolving relational rules to primary key lists, see
|
|
69
|
+
* `resolveRelationalRules` on the rumble input.
|
|
70
|
+
*/
|
|
71
|
+
type RuleResolutionConfig = {
|
|
72
|
+
/**
|
|
73
|
+
* Whether relational rules are resolved to primary key lists before the
|
|
74
|
+
* query.
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
enabled?: boolean;
|
|
78
|
+
/**
|
|
79
|
+
* A rule matching more rows than this stays relational.
|
|
80
|
+
* @default 500
|
|
81
|
+
*/
|
|
82
|
+
maxIds?: number;
|
|
83
|
+
};
|
|
75
84
|
interface RumbleLogger {
|
|
76
85
|
info(obj: Record<string, unknown>, msg: string): void;
|
|
77
86
|
warn(obj: Record<string, unknown>, msg: string): void;
|
|
@@ -111,6 +120,27 @@ type RumbleInput<UserContext extends Record<string, any>, DB extends DrizzleInst
|
|
|
111
120
|
* @default 100
|
|
112
121
|
*/
|
|
113
122
|
defaultLimit?: number | undefined | null;
|
|
123
|
+
/**
|
|
124
|
+
* Resolves the relational conditions of abilities (`where: { posts: { author: { id } } }`)
|
|
125
|
+
* to lists of primary keys once per request, before the query runs.
|
|
126
|
+
*
|
|
127
|
+
* A relational condition renders as nested `exists` subqueries, once in the row
|
|
128
|
+
* filter and once more per column flag, at every place the table is nested in a
|
|
129
|
+
* query. Statements with many such rules grow to tens of kilobytes and cost the
|
|
130
|
+
* database tens of megabytes to plan. For a given caller such a condition matches a
|
|
131
|
+
* fixed set of rows, so with this enabled rumble looks them up once per request
|
|
132
|
+
* (`select id from table where <condition>`) and the condition becomes `id in (...)`.
|
|
133
|
+
* Conditions matching more than `maxIds` rows stay relational.
|
|
134
|
+
*
|
|
135
|
+
* Costs one small query per table with relational conditions per request. The ids
|
|
136
|
+
* are a snapshot: a live query takes a new one each time it refetches.
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* ```ts
|
|
140
|
+
* resolveRelationalRules: { enabled: true, maxIds: 500 }
|
|
141
|
+
* ```
|
|
142
|
+
*/
|
|
143
|
+
resolveRelationalRules?: RuleResolutionConfig;
|
|
114
144
|
/**
|
|
115
145
|
* rumble supports fuzzy search for the query helpers. This enables the users of your API to search for entities via fuzzy search inputs.
|
|
116
146
|
* This currently only is supported by postgres databases and will fail if enabled on other dialects.
|
|
@@ -232,16 +262,12 @@ type RumbleInput<UserContext extends Record<string, any>, DB extends DrizzleInst
|
|
|
232
262
|
*/
|
|
233
263
|
validation?: NonNullable<ConstructorParameters<typeof SchemaBuilder>[0]>["validation"];
|
|
234
264
|
};
|
|
235
|
-
//#endregion
|
|
236
|
-
//#region lib/abilityBuilder/columnMask.d.ts
|
|
237
265
|
type MaskColumnsInput<DB extends DrizzleInstance, Action extends string> = {
|
|
238
266
|
table: TableRelationNames<DB>;
|
|
239
267
|
action: Action;
|
|
240
268
|
abilities: Record<string, any>;
|
|
241
269
|
entities: unknown[];
|
|
242
270
|
};
|
|
243
|
-
//#endregion
|
|
244
|
-
//#region lib/abilityBuilder/filterResponse.d.ts
|
|
245
271
|
type FindFirstConfig<DB extends DrizzleInstance, TableName extends TableRelationNames<DB>> = NonNullable<Parameters<DB["query"][TableName]["findFirst"]>[0]>;
|
|
246
272
|
type FindManyConfig<DB extends DrizzleInstance, TableName extends TableRelationNames<DB>> = NonNullable<Parameters<DB["query"][TableName]["findMany"]>[0]>;
|
|
247
273
|
/**
|
|
@@ -304,8 +330,6 @@ type AbilityFilterResponse<DB extends DrizzleInstance, TableName extends TableRe
|
|
|
304
330
|
*/
|
|
305
331
|
merge: (filters: NonNullable<DrizzleQueryFunctionInput<DB, TableName>>) => AbilityFilter<DB, TableName>;
|
|
306
332
|
};
|
|
307
|
-
//#endregion
|
|
308
|
-
//#region lib/abilityBuilder/inputGuard.d.ts
|
|
309
333
|
type GuardedInput = {
|
|
310
334
|
where?: unknown;
|
|
311
335
|
orderBy?: unknown;
|
|
@@ -315,8 +339,14 @@ type GuardedInput = {
|
|
|
315
339
|
* abilities of the request let the caller read, see `createInputGuard`.
|
|
316
340
|
*/
|
|
317
341
|
export declare function guardFilterInput(abilities: object, table: string, action: string, input: GuardedInput): Promise<GuardedInput>;
|
|
318
|
-
|
|
319
|
-
|
|
342
|
+
/**
|
|
343
|
+
* Starts a new snapshot of the resolved relational rules of every table, see
|
|
344
|
+
* `resolveRelationalRules`. Rumble calls this whenever a root field starts to
|
|
345
|
+
* resolve. Call it yourself in a resolver that writes rows and then reads them
|
|
346
|
+
* through a table whose rules it already resolved before the write. A no-op
|
|
347
|
+
* unless rules are resolved.
|
|
348
|
+
*/
|
|
349
|
+
export declare function refreshAbilities(abilities: object | undefined): void;
|
|
320
350
|
/**
|
|
321
351
|
*
|
|
322
352
|
* Helper function to map a drizzle findFirst query result,
|
|
@@ -388,8 +418,6 @@ export declare const assertFindFirstExists: <T>(value: T | undefined) => T;
|
|
|
388
418
|
* ```
|
|
389
419
|
*/
|
|
390
420
|
export declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
391
|
-
//#endregion
|
|
392
|
-
//#region lib/helpers/mapNullFieldsToUndefined.d.ts
|
|
393
421
|
/**
|
|
394
422
|
* Helper to map null fields to undefined
|
|
395
423
|
* @param obj The object to map
|
|
@@ -449,8 +477,6 @@ export declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
|
449
477
|
* ```
|
|
450
478
|
*/
|
|
451
479
|
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
480
|
type NumberWhereInputArgument = {
|
|
455
481
|
eq?: number;
|
|
456
482
|
ne?: number;
|
|
@@ -600,10 +626,7 @@ type DateTimeWhereInputArgument = {
|
|
|
600
626
|
OR?: DateTimeWhereInputArgument[];
|
|
601
627
|
NOT?: DateTimeWhereInputArgument;
|
|
602
628
|
};
|
|
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;
|
|
629
|
+
type Equal$1<a, b> = (<T>() => T extends a ? 1 : 2) extends (<T>() => T extends b ? 1 : 2) ? true : false;
|
|
607
630
|
/**
|
|
608
631
|
* HACK:
|
|
609
632
|
* Special function for never because `Equal<T, never>` doesn't
|
|
@@ -611,10 +634,6 @@ type Equal$2<a, b> = (<T>() => T extends a ? 1 : 2) extends (<T>() => T extends
|
|
|
611
634
|
* probably a TS bug).
|
|
612
635
|
*/
|
|
613
636
|
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
637
|
type Not$2<a extends boolean> = a extends true ? false : true;
|
|
619
638
|
/**
|
|
620
639
|
* trick to combine multiple unions of objects into a single object
|
|
@@ -624,8 +643,6 @@ type Not$2<a extends boolean> = a extends true ? false : true;
|
|
|
624
643
|
*/
|
|
625
644
|
type UnionToIntersection<union> = (union extends any ? (k: union) => void : never) extends ((k: infer intersection) => void) ? intersection : never;
|
|
626
645
|
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
646
|
declare namespace Iterator$1 {
|
|
630
647
|
type Get<it extends readonly any[]> = it["length"];
|
|
631
648
|
type Iterator<n extends number, it extends any[] = []> = it["length"] extends n ? it : Iterator$1<n, [any, ...it]>;
|
|
@@ -673,15 +690,11 @@ type Split$2<Str, Sep extends string, Acc extends string[] = []> = Str extends "
|
|
|
673
690
|
type Stringifiable = string | number | boolean | bigint | null | undefined;
|
|
674
691
|
type Primitive$1 = string | number | boolean | bigint | null | undefined | symbol;
|
|
675
692
|
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;
|
|
693
|
+
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
694
|
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
695
|
type EmptyIntoPlaceholder<x> = IsNever$1<x> extends true ? never : [x] extends [unset] ? _ : x;
|
|
681
696
|
type MapEmptyIntoPlaceholder<xs, output extends any[] = []> = xs extends [infer first, ...infer rest] ? MapEmptyIntoPlaceholder<rest, [...output, EmptyIntoPlaceholder<first>]> : output;
|
|
682
697
|
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
698
|
declare const rawArgs: unique symbol;
|
|
686
699
|
type rawArgs = typeof rawArgs;
|
|
687
700
|
/**
|
|
@@ -819,11 +832,7 @@ type ComposeLeftImpl<fns extends Fn[], args extends any[]> = fns extends [infer
|
|
|
819
832
|
interface PartialApply<fn extends Fn, partialArgs extends unknown[]> extends Fn {
|
|
820
833
|
return: MergeArgs<this["args"], partialArgs> extends (infer args extends unknown[]) ? Apply<fn, args$1> : never;
|
|
821
834
|
}
|
|
822
|
-
//#endregion
|
|
823
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/absolute.d.ts
|
|
824
835
|
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
836
|
type ToNumber<T extends string> = T extends `${infer N extends number | bigint}` ? N : never;
|
|
828
837
|
type ToString<T extends number | bigint> = `${T}`;
|
|
829
838
|
type Digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
@@ -852,15 +861,11 @@ type Num<T extends DigitNumber> = T["num"];
|
|
|
852
861
|
type FromDigitNumber<T extends DigitNumber> = `${Sign<T>}${FromDigits<Num<T>>}`;
|
|
853
862
|
type TrimZeros<T extends Digit[]> = T extends [0] ? [0] : T extends [0, ...infer R extends Digit[]] ? TrimZeros<R> : T;
|
|
854
863
|
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
864
|
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
865
|
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
866
|
type AddDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = AddDigitTable[Carry][T][U];
|
|
860
867
|
type AddCarryDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = AddDigitCarryTable[Carry][T][U];
|
|
861
868
|
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
869
|
type CompareLength<T extends any[], U extends any[]> = T["length"] extends U["length"] ? 1 : 0;
|
|
865
870
|
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
871
|
type DigitCompare<D1 extends Digit, D2 extends Digit> = DigitCompareTable[D1][D2];
|
|
@@ -873,35 +878,25 @@ type CompareDigitNumbers<T extends DigitNumber, U extends DigitNumber> = Sign<T>
|
|
|
873
878
|
* @param U - Second number
|
|
874
879
|
* @returns 0 if T = U, 1 if T > U, -1 if T < U
|
|
875
880
|
*/
|
|
876
|
-
type Compare$1<T extends number | bigint, U extends number | bigint> = Equal$
|
|
881
|
+
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
882
|
type LessThan$1<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends -1 ? true : false;
|
|
878
883
|
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
|
|
884
|
+
type Equal<T extends number | bigint, U extends number | bigint> = Equal$1<T, U>;
|
|
885
|
+
type NotEqual<T extends number | bigint, U extends number | bigint> = Equal$1<T, U> extends true ? false : true;
|
|
881
886
|
type LessThanOrEqual$1<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends -1 | 0 ? true : false;
|
|
882
887
|
type GreaterThanOrEqual$1<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends 1 | 0 ? true : false;
|
|
883
888
|
type Max<T extends number | bigint, U extends number | bigint> = Compare$1<T, U> extends 1 | 0 ? T : U;
|
|
884
889
|
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
890
|
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
891
|
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
892
|
type SubDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = SubDigitTable[Carry][T][U];
|
|
890
893
|
type SubCarryDigit<T extends Digit, U extends Digit, Carry extends 0 | 1 = 0> = SubDigitCarryTable[Carry][T][U];
|
|
891
894
|
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
895
|
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
896
|
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
897
|
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
898
|
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
899
|
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
900
|
type MulX2<T extends Digit[]> = AddDigits<T, T>;
|
|
906
901
|
type MulX3<T extends Digit[]> = AddDigits<T, MulX2<T>>;
|
|
907
902
|
type MulX4<T extends Digit[]> = MulX2<MulX2<T>>;
|
|
@@ -913,12 +908,8 @@ type MulX9<T extends Digit[]> = SubDigits<MulX10<T>, T>;
|
|
|
913
908
|
type MulX10<T extends Digit[]> = [...T, 0];
|
|
914
909
|
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
910
|
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
911
|
type MulDigitNumbers<T extends DigitNumber, U extends DigitNumber> = MakeDigitNumber<MulSign<Sign<T>, Sign<U>>, MulDigits<Num<T>, Num<U>>>;
|
|
919
912
|
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
913
|
type Rest$1<T extends Digit[]> = T extends [Digit, ...infer R extends Digit[]] ? R : never;
|
|
923
914
|
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
915
|
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 +937,6 @@ type _DivModDigits<A extends Digit[], D extends Digit[], M extends Digit[], Q ex
|
|
|
946
937
|
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
938
|
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
939
|
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
940
|
type DivDigitNumbers<T extends DigitNumber, U extends DigitNumber> = MakeDigitNumber<MulSign<Sign<T>, Sign<U>>, DivDigits<Num<T>, Num<U>>>;
|
|
952
941
|
type Div<T extends number | bigint, U extends number | bigint> = ToNumber<FromDigitNumber<Normalize<DivDigitNumbers<ToDigitNumber<ToString<T>>, ToDigitNumber<ToString<U>>>>>>;
|
|
953
942
|
type ModDigitNumbers<T extends DigitNumber, U extends DigitNumber> = MakeDigitNumber<Sign<T>, ModDigits<Num<T>, Num<U>>>;
|
|
@@ -966,22 +955,13 @@ type DivMod<T extends number | bigint, U extends number | bigint, DivModNumbers
|
|
|
966
955
|
Quotient: ToNumber<FromDigitNumber<Normalize<DivModNumbers["Quotient"]>>>;
|
|
967
956
|
Remainder: ToNumber<FromDigitNumber<Normalize<DivModNumbers["Remainder"]>>>;
|
|
968
957
|
};
|
|
969
|
-
//#endregion
|
|
970
|
-
//#region node_modules/hotscript/dist/internals/numbers/impl/digits/power.d.ts
|
|
971
958
|
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
959
|
Quotient: infer Q extends Digit[];
|
|
973
960
|
Remainder: infer R extends Digit[];
|
|
974
961
|
} ? 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
962
|
type PowerSign<S extends "" | "-", U extends DigitNumber> = S extends "-" ? Num<U> extends [...Digit[], 0 | 2 | 4 | 6 | 8] ? "" : "-" : "";
|
|
978
963
|
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
964
|
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
965
|
declare namespace Numbers {
|
|
986
966
|
/**
|
|
987
967
|
* Add two numbers together
|
|
@@ -1167,7 +1147,7 @@ declare namespace Numbers {
|
|
|
1167
1147
|
*/
|
|
1168
1148
|
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
1149
|
interface EqualFn extends Fn {
|
|
1170
|
-
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? Equal
|
|
1150
|
+
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? Equal<a, b> : never;
|
|
1171
1151
|
}
|
|
1172
1152
|
/**
|
|
1173
1153
|
* Check if two numbers are not equal
|
|
@@ -1183,7 +1163,7 @@ declare namespace Numbers {
|
|
|
1183
1163
|
*/
|
|
1184
1164
|
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
1165
|
interface NotEqualFn extends Fn {
|
|
1186
|
-
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? NotEqual
|
|
1166
|
+
return: this["args"] extends [infer a extends number | bigint, infer b extends number | bigint, ...any] ? NotEqual<a, b> : never;
|
|
1187
1167
|
}
|
|
1188
1168
|
/**
|
|
1189
1169
|
* Check if a number is less than another
|
|
@@ -1255,8 +1235,6 @@ declare namespace Numbers {
|
|
|
1255
1235
|
}
|
|
1256
1236
|
export {};
|
|
1257
1237
|
}
|
|
1258
|
-
//#endregion
|
|
1259
|
-
//#region node_modules/hotscript/dist/internals/std/Std.d.ts
|
|
1260
1238
|
declare namespace Std {
|
|
1261
1239
|
type _Pick<a, k extends keyof a> = Pick<a, k>;
|
|
1262
1240
|
type _Omit<a, k extends PropertyKey> = Omit<a, k>;
|
|
@@ -1272,8 +1250,6 @@ declare namespace Std {
|
|
|
1272
1250
|
type _Partial<a> = Partial<a>;
|
|
1273
1251
|
type _NonNullable<a> = NonNullable<a>;
|
|
1274
1252
|
}
|
|
1275
|
-
//#endregion
|
|
1276
|
-
//#region node_modules/hotscript/dist/internals/tuples/Tuples.d.ts
|
|
1277
1253
|
declare namespace Tuples {
|
|
1278
1254
|
type HeadImpl<xs> = xs extends readonly [infer head, ...any] ? head : never;
|
|
1279
1255
|
/**
|
|
@@ -1842,8 +1818,6 @@ declare namespace Tuples {
|
|
|
1842
1818
|
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
1819
|
export {};
|
|
1844
1820
|
}
|
|
1845
|
-
//#endregion
|
|
1846
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/split.d.ts
|
|
1847
1821
|
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
1822
|
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
1823
|
/**
|
|
@@ -1859,8 +1833,6 @@ type Split$1<Str, Sep extends string, Seps = UnionToTuple<Sep>> = Seps extends s
|
|
|
1859
1833
|
* @returns The tuple of each character.
|
|
1860
1834
|
*/
|
|
1861
1835
|
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
1836
|
/**
|
|
1865
1837
|
* Trim the left side of a string.
|
|
1866
1838
|
* @param Str - The string to trim.
|
|
@@ -1882,21 +1854,15 @@ type TrimRight<Str, Sep extends string> = Str extends `${infer Rest}${Sep}` ? Tr
|
|
|
1882
1854
|
* @returns The trimmed string.
|
|
1883
1855
|
*/
|
|
1884
1856
|
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
1857
|
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
1858
|
interface ReplaceReducer<To extends string> extends Fn {
|
|
1889
1859
|
return: this["args"] extends [infer Str extends string, infer From extends string, ...any] ? Replace<Str, From, To> : never;
|
|
1890
1860
|
}
|
|
1891
|
-
//#endregion
|
|
1892
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/repeat.d.ts
|
|
1893
1861
|
type RepeatX2<T extends string> = `${T}${T}`;
|
|
1894
1862
|
type Repeat<T extends string, N extends number, Acc extends string = "", Calc extends {
|
|
1895
1863
|
Quotient: number;
|
|
1896
1864
|
Remainder: number;
|
|
1897
1865
|
} = 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
1866
|
type ascii = {
|
|
1901
1867
|
" ": 32;
|
|
1902
1868
|
"!": 33;
|
|
@@ -2120,15 +2086,11 @@ type ascii = {
|
|
|
2120
2086
|
};
|
|
2121
2087
|
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
2088
|
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$
|
|
2089
|
+
type Compare<T extends string, U extends string> = Equal$1<T, U> extends true ? 0 : CharactersCompare<StringToTuple<T>, StringToTuple<U>>;
|
|
2124
2090
|
type LessThan<T extends string, U extends string> = Compare<T, U> extends -1 ? true : false;
|
|
2125
2091
|
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
2092
|
type GreaterThan<T extends string, U extends string> = Compare<T, U> extends 1 ? true : false;
|
|
2129
2093
|
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
2094
|
declare namespace StringIterator {
|
|
2133
2095
|
type Iter = [string, number | bigint];
|
|
2134
2096
|
/**
|
|
@@ -2201,16 +2163,9 @@ declare namespace StringIterator {
|
|
|
2201
2163
|
export type CutAt<T extends string, It extends Iterator> = `$${T}` extends `${String<It>}${infer $Rest}` ? $Rest : undefined;
|
|
2202
2164
|
export {};
|
|
2203
2165
|
}
|
|
2204
|
-
//#endregion
|
|
2205
|
-
//#region node_modules/hotscript/dist/internals/strings/impl/length.d.ts
|
|
2206
2166
|
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
2167
|
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
2168
|
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
2169
|
declare namespace Strings {
|
|
2215
2170
|
export type Stringifiable = string | number | boolean | bigint | null | undefined;
|
|
2216
2171
|
/**
|
|
@@ -2609,9 +2564,6 @@ declare namespace Strings {
|
|
|
2609
2564
|
}
|
|
2610
2565
|
export {};
|
|
2611
2566
|
}
|
|
2612
|
-
declare namespace objects_d_exports {
|
|
2613
|
-
export { AllPaths, Assign, Create, Entries, FromEntries, GetFromPath, Keys, TransformObjectDeep, Update, Values };
|
|
2614
|
-
}
|
|
2615
2567
|
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
2568
|
type Values<src> = Keys<src> extends (infer keys extends keyof src) ? src[keys] : never;
|
|
2617
2569
|
type FromEntries<entries extends [PropertyKey, any]> = { [entry in entries as entry[0]]: entry[1]; } | never;
|
|
@@ -2620,14 +2572,12 @@ type Assign<xs extends readonly any[]> = Prettify$1<UnionToIntersection<xs[numbe
|
|
|
2620
2572
|
type GetFromPath<Obj, path> = RecursiveGet<Obj, ParsePath<path>>;
|
|
2621
2573
|
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
2574
|
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$
|
|
2575
|
+
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
2576
|
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$
|
|
2577
|
+
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
2578
|
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
2579
|
type JoinPath<A extends string, B extends string, Sep extends string = ""> = [A] extends [never] ? B : [B] extends [never] ? A : `${A}${Sep}${B}`;
|
|
2628
2580
|
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
2581
|
declare namespace Objects {
|
|
2632
2582
|
/**
|
|
2633
2583
|
* Create an object from a union of `[key, value]` entries.
|
|
@@ -3135,59 +3085,29 @@ declare namespace Objects {
|
|
|
3135
3085
|
}
|
|
3136
3086
|
export {};
|
|
3137
3087
|
}
|
|
3138
|
-
//#endregion
|
|
3139
|
-
//#region node_modules/ts-algebra/lib/utils/and.d.ts
|
|
3140
3088
|
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
3089
|
declare type DoesExtend$1<TYPE_A, TYPE_B> = [TYPE_A] extends [TYPE_B] ? true : false;
|
|
3144
3090
|
declare type ArrayKeys = keyof [];
|
|
3145
3091
|
declare type IsObject<TYPE> = TYPE extends object ? ArrayKeys extends Extract<keyof TYPE, ArrayKeys> ? false : true : false;
|
|
3146
3092
|
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
3093
|
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
3094
|
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
3095
|
declare type IsNever<TYPE> = [TYPE] extends [never] ? true : false;
|
|
3156
|
-
//#endregion
|
|
3157
|
-
//#region node_modules/ts-algebra/lib/utils/merge.d.ts
|
|
3158
3096
|
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
3097
|
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
3098
|
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
3099
|
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
3100
|
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
3101
|
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
3102
|
declare type UnionPop<UNION> = Exclude<UNION, UnionLast<UNION>>;
|
|
3177
|
-
//#endregion
|
|
3178
|
-
//#region node_modules/ts-algebra/lib/meta-types/never.d.ts
|
|
3179
3103
|
declare type NeverTypeId = "never";
|
|
3180
3104
|
declare type Never = {
|
|
3181
3105
|
type: NeverTypeId;
|
|
3182
3106
|
};
|
|
3183
3107
|
declare type NeverType = Never;
|
|
3184
3108
|
declare type ResolveNever = never;
|
|
3185
|
-
//#endregion
|
|
3186
|
-
//#region node_modules/ts-algebra/lib/meta-types/utils.d.ts
|
|
3187
3109
|
declare type IsSerialized<SERIALIZABLE_META_TYPE extends SerializableType> = SERIALIZABLE_META_TYPE["isSerialized"];
|
|
3188
3110
|
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
3111
|
declare type ConstTypeId = "const";
|
|
3192
3112
|
declare type Const<VALUE, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = If<IsNever<VALUE>, Never, {
|
|
3193
3113
|
type: ConstTypeId;
|
|
@@ -3203,8 +3123,6 @@ declare type ConstType = {
|
|
|
3203
3123
|
};
|
|
3204
3124
|
declare type ConstValue<META_CONST extends ConstType> = META_CONST["value"];
|
|
3205
3125
|
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
3126
|
declare type EnumTypeId = "enum";
|
|
3209
3127
|
declare type Enum<VALUES, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = If<IsNever<VALUES>, Never, {
|
|
3210
3128
|
type: EnumTypeId;
|
|
@@ -3220,8 +3138,6 @@ declare type EnumType = {
|
|
|
3220
3138
|
};
|
|
3221
3139
|
declare type EnumValues<META_ENUM extends EnumType> = META_ENUM["values"];
|
|
3222
3140
|
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
3141
|
declare type ObjectTypeId = "object";
|
|
3226
3142
|
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
3143
|
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 +3172,6 @@ declare type ResolveObject<META_OBJECT extends ObjectType, OPTIONS extends Resol
|
|
|
3256
3172
|
}, {
|
|
3257
3173
|
[KEY: string]: Resolve<Any, OPTIONS>;
|
|
3258
3174
|
}>, {}>, 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
3175
|
declare type PrimitiveTypeId = "primitive";
|
|
3262
3176
|
declare type Primitive<VALUE extends null | boolean | number | string, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = $Primitive<VALUE, IS_SERIALIZED, DESERIALIZED>;
|
|
3263
3177
|
declare type $Primitive<VALUE, IS_SERIALIZED = false, DESERIALIZED = never> = If<IsNever<VALUE>, Never, {
|
|
@@ -3274,8 +3188,6 @@ declare type PrimitiveType = {
|
|
|
3274
3188
|
};
|
|
3275
3189
|
declare type PrimitiveValue<META_PRIMITIVE extends PrimitiveType> = META_PRIMITIVE["value"];
|
|
3276
3190
|
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
3191
|
declare type TupleTypeId = "tuple";
|
|
3280
3192
|
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
3193
|
declare type $Tuple<VALUES, OPEN_PROPS = Never, IS_SERIALIZED = false, DESERIALIZED = never> = IsAnyValueNever<VALUES> extends true ? Never : {
|
|
@@ -3300,8 +3212,6 @@ declare type IsTupleOpen<META_TUPLE extends TupleType> = META_TUPLE["isOpen"];
|
|
|
3300
3212
|
declare type TupleOpenProps<META_TUPLE extends TupleType> = META_TUPLE["openProps"];
|
|
3301
3213
|
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
3214
|
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
3215
|
declare type UnionTypeId = "union";
|
|
3306
3216
|
declare type Union<VALUES extends Type> = $Union<VALUES>;
|
|
3307
3217
|
declare type $Union<VALUES> = If<IsNever<VALUES>, Never, DoesExtend$1<VALUES, NeverType> extends true ? Never : {
|
|
@@ -3315,15 +3225,11 @@ declare type UnionType = {
|
|
|
3315
3225
|
declare type UnionValues<META_UNION extends UnionType> = META_UNION["values"];
|
|
3316
3226
|
declare type ResolveUnion<META_UNION extends UnionType, OPTIONS extends ResolveOptions> = RecurseOnUnion<UnionValues<META_UNION>, OPTIONS>;
|
|
3317
3227
|
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
3228
|
declare type Type = NeverType | AnyType | ConstType | EnumType | PrimitiveType | ArrayType | TupleType | ObjectType | UnionType;
|
|
3321
3229
|
declare type SerializableType = Type extends (infer META_TYPE) ? META_TYPE extends {
|
|
3322
3230
|
isSerialized: boolean;
|
|
3323
3231
|
deserialized: unknown;
|
|
3324
3232
|
} ? META_TYPE : never : never;
|
|
3325
|
-
//#endregion
|
|
3326
|
-
//#region node_modules/ts-algebra/lib/meta-types/array.d.ts
|
|
3327
3233
|
declare type ArrayTypeId = "array";
|
|
3328
3234
|
declare type _Array<VALUES extends Type = Any, IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = _$Array<VALUES, IS_SERIALIZED, DESERIALIZED>;
|
|
3329
3235
|
declare type _$Array<VALUES = Any, IS_SERIALIZED = false, DESERIALIZED = never> = {
|
|
@@ -3340,8 +3246,6 @@ declare type ArrayType = {
|
|
|
3340
3246
|
};
|
|
3341
3247
|
declare type ArrayValues<META_ARRAY extends ArrayType> = META_ARRAY["values"];
|
|
3342
3248
|
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
3249
|
declare type ResolveOptions = {
|
|
3346
3250
|
deserialize: boolean;
|
|
3347
3251
|
};
|
|
@@ -3350,8 +3254,6 @@ declare type ResolveDefaultOptions = {
|
|
|
3350
3254
|
};
|
|
3351
3255
|
declare type Resolve<META_TYPE extends Type, OPTIONS extends ResolveOptions = ResolveDefaultOptions> = $Resolve<META_TYPE, OPTIONS>;
|
|
3352
3256
|
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
3257
|
declare type AnyTypeId = "any";
|
|
3356
3258
|
declare type Any<IS_SERIALIZED extends boolean = false, DESERIALIZED = never> = {
|
|
3357
3259
|
type: AnyTypeId;
|
|
@@ -3364,16 +3266,10 @@ declare type AnyType = {
|
|
|
3364
3266
|
deserialized: unknown;
|
|
3365
3267
|
};
|
|
3366
3268
|
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
3269
|
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
3270
|
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
3271
|
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
3272
|
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
3273
|
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
3274
|
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
3275
|
declare type CheckExtendsResolved<META_CONST extends ConstType, SERIALIZABLE_META_TYPE extends SerializableType> = ConstValue<META_CONST> extends Resolve<SERIALIZABLE_META_TYPE, {
|
|
@@ -3387,8 +3283,6 @@ declare type IntersectConstToObject<META_CONST extends ConstType, META_OBJECT ex
|
|
|
3387
3283
|
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
3284
|
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
3285
|
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
3286
|
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
3287
|
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
3288
|
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 +3291,6 @@ declare type IntersectEnumToPrimitive<META_ENUM extends EnumType, META_PRIMITIVE
|
|
|
3397
3291
|
declare type IntersectEnumToArray<META_ENUM extends EnumType, META_ARRAY extends ArrayType> = FilterEnum<META_ENUM, META_ARRAY>;
|
|
3398
3292
|
declare type IntersectEnumToTuple<META_ENUM extends EnumType, META_TUPLE extends TupleType> = FilterEnum<META_ENUM, META_TUPLE>;
|
|
3399
3293
|
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
3294
|
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
3295
|
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
3296
|
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 +3298,26 @@ declare type IntersectTupleToArray<META_TUPLE extends TupleType, META_ARRAY exte
|
|
|
3406
3298
|
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
3299
|
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
3300
|
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
3301
|
declare type IntersectArraySerializationParams<VALUES extends Type, META_ARRAY extends ArrayType, SERIALIZABLE_META_TYPE extends SerializableType> = $MergeArrayValuesToSerializable<VALUES, META_ARRAY, SERIALIZABLE_META_TYPE>;
|
|
3412
3302
|
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
3303
|
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
3304
|
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
3305
|
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
3306
|
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
3307
|
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
3308
|
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
3309
|
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
3310
|
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
3311
|
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
3312
|
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
3313
|
declare type Intersect<META_TYPE_A extends Type, META_TYPE_B extends Type> = $Intersect<META_TYPE_A, META_TYPE_B>;
|
|
3432
3314
|
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
3315
|
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
3316
|
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
3317
|
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
3318
|
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
3319
|
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
3320
|
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
3321
|
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
3322
|
declare type CheckNotExtendsResolved<META_CONST extends ConstType, META_TYPE extends Type> = ConstValue<META_CONST> extends Resolve<META_TYPE, {
|
|
3449
3323
|
deserialize: false;
|
|
@@ -3452,15 +3326,11 @@ declare type ExcludeObject<META_CONST extends ConstType, META_OBJECT extends Obj
|
|
|
3452
3326
|
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
3327
|
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
3328
|
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
3329
|
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
3330
|
declare type FilterEnumExcluded<META_ENUM extends EnumType, META_TYPE extends Type> = Enum<FilterEnumExcludedValues<EnumValues<META_ENUM>, META_TYPE>>;
|
|
3459
3331
|
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
3332
|
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
3333
|
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
3334
|
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
3335
|
sourceValue: VALUE_A;
|
|
3466
3336
|
isAllowedInSource: IS_ALLOWED_IN_A;
|
|
@@ -3487,8 +3357,6 @@ declare type IsOutsideOfSourceScope<VALUE_EXCLUSION_RESULT extends ValueExclusio
|
|
|
3487
3357
|
declare type IsOutsideOfExcludedScope<VALUE_EXCLUSION_RESULT extends ValueExclusionResultType> = And$1<IsRequiredInSource<VALUE_EXCLUSION_RESULT>, Not$1<IsAllowedInExcluded<VALUE_EXCLUSION_RESULT>>>;
|
|
3488
3358
|
declare type IsOmittable<VALUE_EXCLUSION_RESULT extends ValueExclusionResultType> = And$1<Not$1<IsRequiredInSource<VALUE_EXCLUSION_RESULT>>, IsRequiredInExcluded<VALUE_EXCLUSION_RESULT>>;
|
|
3489
3359
|
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
3360
|
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
3361
|
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
3362
|
moreThanTwo: META_OBJECT_A;
|
|
@@ -3507,11 +3375,7 @@ declare type PropagateExclusions$1<META_OBJECT extends ObjectType, VALUE_EXCLUSI
|
|
|
3507
3375
|
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
3376
|
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
3377
|
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
3378
|
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
3379
|
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
3380
|
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
3381
|
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 +3395,12 @@ declare type OmittableExcludedItems<ITEM_EXCLUSION_RESULTS extends ValueExclusio
|
|
|
3531
3395
|
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
3396
|
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
3397
|
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
3398
|
declare type _Exclude<META_TYPE_A extends Type, META_TYPE_B extends Type> = _$Exclude<META_TYPE_A, META_TYPE_B>;
|
|
3537
3399
|
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
3400
|
type DeserializationPattern = Readonly<{
|
|
3544
3401
|
pattern: unknown;
|
|
3545
3402
|
output: unknown;
|
|
3546
3403
|
}>;
|
|
3547
|
-
//#endregion
|
|
3548
|
-
//#region node_modules/json-schema-to-ts/lib/types/definitions/jsonSchema.d.ts
|
|
3549
3404
|
declare const $JSONSchema: unique symbol;
|
|
3550
3405
|
type $JSONSchema = typeof $JSONSchema;
|
|
3551
3406
|
type JSONSchemaType = "string" | "number" | "integer" | "boolean" | "object" | "array" | "null";
|
|
@@ -3603,8 +3458,6 @@ type JSONSchema$1 = boolean | Readonly<{
|
|
|
3603
3458
|
type JSONSchemaReference = JSONSchema$1 & Readonly<{
|
|
3604
3459
|
$id: string;
|
|
3605
3460
|
}>;
|
|
3606
|
-
//#endregion
|
|
3607
|
-
//#region node_modules/json-schema-to-ts/lib/types/definitions/fromSchemaOptions.d.ts
|
|
3608
3461
|
type FromSchemaOptions = {
|
|
3609
3462
|
parseNotKeyword?: boolean;
|
|
3610
3463
|
parseIfThenElseKeywords?: boolean;
|
|
@@ -3619,8 +3472,6 @@ type FromSchemaDefaultOptions = {
|
|
|
3619
3472
|
references: false;
|
|
3620
3473
|
deserialize: false;
|
|
3621
3474
|
};
|
|
3622
|
-
//#endregion
|
|
3623
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-options.d.ts
|
|
3624
3475
|
type IndexReferencesById<SCHEMA_REFERENCES extends readonly JSONSchemaReference[]> = { [REF_SCHEMA in SCHEMA_REFERENCES[number] as REF_SCHEMA["$id"]]: REF_SCHEMA; };
|
|
3625
3476
|
type ParseOptions<ROOT_SCHEMA extends JSONSchema$1, OPTIONS extends FromSchemaOptions> = {
|
|
3626
3477
|
parseNotKeyword: OPTIONS["parseNotKeyword"] extends boolean ? OPTIONS["parseNotKeyword"] : FromSchemaDefaultOptions["parseNotKeyword"];
|
|
@@ -3630,36 +3481,16 @@ type ParseOptions<ROOT_SCHEMA extends JSONSchema$1, OPTIONS extends FromSchemaOp
|
|
|
3630
3481
|
references: OPTIONS["references"] extends JSONSchemaReference[] ? IndexReferencesById<OPTIONS["references"]> : {};
|
|
3631
3482
|
deserialize: OPTIONS["deserialize"] extends DeserializationPattern[] | false ? OPTIONS["deserialize"] : FromSchemaDefaultOptions["deserialize"];
|
|
3632
3483
|
};
|
|
3633
|
-
//#endregion
|
|
3634
|
-
//#region node_modules/json-schema-to-ts/lib/types/type-utils/and.d.ts
|
|
3635
3484
|
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
3485
|
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
3486
|
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
3487
|
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
3488
|
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
3489
|
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
3490
|
type RecursiveSplit<STRING extends string, SEPARATOR extends string = ""> = STRING extends `${infer BEFORE}${SEPARATOR}${infer AFTER}` ? [BEFORE, ...RecursiveSplit<AFTER, SEPARATOR>] : [STRING];
|
|
3654
3491
|
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
3492
|
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
3493
|
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
3494
|
type RemoveInvalidAdditionalItems<SCHEMA extends JSONSchema$1> = SCHEMA extends Readonly<{
|
|
3664
3495
|
items: JSONSchema$1 | readonly JSONSchema$1[];
|
|
3665
3496
|
}> ? SCHEMA extends Readonly<{
|
|
@@ -3675,42 +3506,30 @@ type RemoveInvalidAdditionalProperties<SCHEMA extends JSONSchema$1> = SCHEMA ext
|
|
|
3675
3506
|
properties: {};
|
|
3676
3507
|
}> : SCHEMA extends boolean ? SCHEMA : Omit<SCHEMA, "additionalProperties">;
|
|
3677
3508
|
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
3509
|
type AllOfSchema = JSONSchema$1 & Readonly<{
|
|
3681
3510
|
allOf: readonly JSONSchema$1[];
|
|
3682
3511
|
}>;
|
|
3683
3512
|
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
3513
|
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
3514
|
type AnyOfSchema = JSONSchema$1 & Readonly<{
|
|
3688
3515
|
anyOf: readonly JSONSchema$1[];
|
|
3689
3516
|
}>;
|
|
3690
3517
|
type ParseAnyOfSchema<ANY_OF_SCHEMA extends AnyOfSchema, OPTIONS extends ParseSchemaOptions> = $Union<RecurseOnAnyOfSchema<ANY_OF_SCHEMA["anyOf"], ANY_OF_SCHEMA, OPTIONS>>;
|
|
3691
3518
|
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
3519
|
type ConstSchema = JSONSchema$1 & Readonly<{
|
|
3695
3520
|
const: unknown;
|
|
3696
3521
|
}>;
|
|
3697
3522
|
type ParseConstSchema<CONST_SCHEMA extends ConstSchema, OPTIONS extends ParseSchemaOptions> = $Intersect<ParseConst<CONST_SCHEMA>, ParseSchema<Omit<CONST_SCHEMA, "const">, OPTIONS>>;
|
|
3698
3523
|
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
3524
|
type DeserializeSchema<SCHEMA extends JSONSchema$1, OPTIONS extends Omit<ParseSchemaOptions, "deserialize"> & {
|
|
3702
3525
|
deserialize: DeserializationPattern[];
|
|
3703
3526
|
}> = RecurseOnDeserializationPatterns<SCHEMA, OPTIONS["deserialize"]>;
|
|
3704
3527
|
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
3528
|
type EnumSchema = JSONSchema$1 & Readonly<{
|
|
3708
3529
|
enum: readonly unknown[];
|
|
3709
3530
|
}>;
|
|
3710
3531
|
type ParseEnumSchema<ENUM_SCHEMA extends EnumSchema, OPTIONS extends ParseSchemaOptions> = $Intersect<ParseEnum<ENUM_SCHEMA>, ParseSchema<Omit<ENUM_SCHEMA, "enum">, OPTIONS>>;
|
|
3711
3532
|
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
3533
|
type IfThenElseSchema = JSONSchema$1 & {
|
|
3715
3534
|
if: JSONSchema$1;
|
|
3716
3535
|
then?: JSONSchema$1;
|
|
@@ -3721,8 +3540,6 @@ type ParseIfThenElseSchema<IF_THEN_ELSE_SCHEMA extends IfThenElseSchema, OPTIONS
|
|
|
3721
3540
|
} ? $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
3541
|
else: JSONSchema$1;
|
|
3723
3542
|
} ? $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
3543
|
type MultipleTypesSchema = JSONSchema$1 & Readonly<{
|
|
3727
3544
|
type: readonly JSONSchemaType[];
|
|
3728
3545
|
}>;
|
|
@@ -3730,33 +3547,23 @@ type ParseMultipleTypesSchema<MULTI_TYPE_SCHEMA extends MultipleTypesSchema, OPT
|
|
|
3730
3547
|
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
3548
|
type: TYPES_HEAD;
|
|
3732
3549
|
}, OPTIONS>> : never : never : RESULT;
|
|
3733
|
-
//#endregion
|
|
3734
|
-
//#region node_modules/json-schema-to-ts/lib/types/parse-schema/not.d.ts
|
|
3735
3550
|
type NotSchema = JSONSchema$1 & Readonly<{
|
|
3736
3551
|
not: JSONSchema$1;
|
|
3737
3552
|
}>;
|
|
3738
3553
|
type AllTypes = Union<Primitive<null> | Primitive<boolean> | Primitive<number> | Primitive<string> | _Array | _Object<{}, never, Any>>;
|
|
3739
3554
|
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
3555
|
type NullableSchema = JSONSchema$1 & Readonly<{
|
|
3743
3556
|
nullable: boolean;
|
|
3744
3557
|
}>;
|
|
3745
3558
|
type ParseNullableSchema<NULLABLE_SCHEMA extends NullableSchema, OPTIONS extends ParseSchemaOptions, PARSED_REST_SCHEMA = ParseSchema<Omit<NULLABLE_SCHEMA, "nullable">, OPTIONS>> = NULLABLE_SCHEMA extends Readonly<{
|
|
3746
3559
|
nullable: true;
|
|
3747
3560
|
}> ? $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
3561
|
type OneOfSchema = JSONSchema$1 & Readonly<{
|
|
3751
3562
|
oneOf: readonly JSONSchema$1[];
|
|
3752
3563
|
}>;
|
|
3753
3564
|
type ParseOneOfSchema<ONE_OF_SCHEMA extends OneOfSchema, OPTIONS extends ParseSchemaOptions> = $Union<RecurseOnOneOfSchema<ONE_OF_SCHEMA["oneOf"], ONE_OF_SCHEMA, OPTIONS>>;
|
|
3754
3565
|
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
3566
|
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
3567
|
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
3568
|
rootSchema: IdSchema;
|
|
3762
3569
|
} ? ParseExternalReferenceWithoutDirectorySchema<Omit<REF_SCHEMA, "$ref">, OPTIONS, EXTERNAL_REFERENCE_ID, SUB_PATH> : Never;
|
|
@@ -3767,17 +3574,11 @@ type IdSchema = JSONSchema$1 & {
|
|
|
3767
3574
|
type ParseExternalReferenceWithoutDirectorySchema<SUB_SCHEMA extends JSONSchema$1, OPTIONS extends ParseSchemaOptions & {
|
|
3768
3575
|
rootSchema: IdSchema;
|
|
3769
3576
|
}, 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
3577
|
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
3578
|
type ReferencingSchema = JSONSchema$1 & {
|
|
3776
3579
|
$ref: string;
|
|
3777
3580
|
};
|
|
3778
3581
|
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
3582
|
type ArrayOrTupleSchema = JSONSchema$1 & Readonly<{
|
|
3782
3583
|
type: "array";
|
|
3783
3584
|
}>;
|
|
@@ -3821,8 +3622,6 @@ type ApplyAdditionalItems<APPLY_MIN_MAX_RESULT extends {
|
|
|
3821
3622
|
} ? 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
3623
|
hasEncounteredMin: true;
|
|
3823
3624
|
} ? 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
3625
|
type ObjectSchema$1 = JSONSchema$1 & Readonly<{
|
|
3827
3626
|
type: "object";
|
|
3828
3627
|
}>;
|
|
@@ -3848,8 +3647,6 @@ type GetClosedOnResolve<OBJECT_SCHEMA extends ObjectSchema$1> = OBJECT_SCHEMA ex
|
|
|
3848
3647
|
}> ? true : false;
|
|
3849
3648
|
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
3649
|
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
3650
|
type SingleTypeSchema = JSONSchema$1 & Readonly<{
|
|
3854
3651
|
type: JSONSchemaType;
|
|
3855
3652
|
}>;
|
|
@@ -3864,8 +3661,6 @@ type ParseSingleTypeSchema<SINGLE_TYPE_SCHEMA extends SingleTypeSchema, OPTIONS
|
|
|
3864
3661
|
}> ? Primitive<number> : SINGLE_TYPE_SCHEMA extends Readonly<{
|
|
3865
3662
|
type: "string";
|
|
3866
3663
|
}> ? 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
3664
|
type ParseSchemaOptions = {
|
|
3870
3665
|
parseNotKeyword: boolean;
|
|
3871
3666
|
parseIfThenElseKeywords: boolean;
|
|
@@ -3877,15 +3672,9 @@ type ParseSchemaOptions = {
|
|
|
3877
3672
|
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
3673
|
deserialize: DeserializationPattern[];
|
|
3879
3674
|
} ? $Intersect<DeserializeSchema<SCHEMA, OPTIONS>, RESULT> : RESULT;
|
|
3880
|
-
//#endregion
|
|
3881
|
-
//#region node_modules/json-schema-to-ts/lib/types/index.d.ts
|
|
3882
3675
|
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
3676
|
type MaybePromise<T> = Promise<T> | T;
|
|
3886
3677
|
type MaybePromiseLike<T> = PromiseLike<T> | T;
|
|
3887
|
-
//#endregion
|
|
3888
|
-
//#region node_modules/@whatwg-node/server/typings/utils.d.cts
|
|
3889
3678
|
interface NodeRequest {
|
|
3890
3679
|
protocol?: string | undefined;
|
|
3891
3680
|
hostname?: string | undefined;
|
|
@@ -3902,8 +3691,6 @@ interface NodeRequest {
|
|
|
3902
3691
|
aborted?: boolean | undefined;
|
|
3903
3692
|
}
|
|
3904
3693
|
type NodeResponse = ServerResponse | Http2ServerResponse;
|
|
3905
|
-
//#endregion
|
|
3906
|
-
//#region node_modules/@whatwg-node/server/typings/uwebsockets.d.cts
|
|
3907
3694
|
interface UWSRequest {
|
|
3908
3695
|
getMethod(): string;
|
|
3909
3696
|
forEach(callback: (key: string, value: string) => void): void;
|
|
@@ -3923,8 +3710,6 @@ interface UWSResponse {
|
|
|
3923
3710
|
cork(callback: () => void): void;
|
|
3924
3711
|
}
|
|
3925
3712
|
type UWSHandler = (res: UWSResponse, req: UWSRequest) => void | Promise<void>;
|
|
3926
|
-
//#endregion
|
|
3927
|
-
//#region node_modules/@whatwg-node/server/typings/types.d.cts
|
|
3928
3713
|
interface FetchEvent extends Event {
|
|
3929
3714
|
waitUntil(f: MaybePromise<void>): void;
|
|
3930
3715
|
request: Request;
|
|
@@ -4016,11 +3801,7 @@ type ServerAdapterInitialContext = {
|
|
|
4016
3801
|
*/
|
|
4017
3802
|
waitUntil: WaitUntilFn;
|
|
4018
3803
|
};
|
|
4019
|
-
//#endregion
|
|
4020
|
-
//#region node_modules/fets/typings/types.d.ts
|
|
4021
3804
|
type StatusCodeMap$1<T> = { [TKey in StatusCode$1]?: T; };
|
|
4022
|
-
//#endregion
|
|
4023
|
-
//#region node_modules/fets/typings/typed-fetch.d.ts
|
|
4024
3805
|
type OkStatusCode$1 = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
|
|
4025
3806
|
type RedirectStatusCode$1 = 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308;
|
|
4026
3807
|
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 +3945,9 @@ interface TypedFormData$1<TMap extends Record<string, FormDataEntryValue | undef
|
|
|
4164
3945
|
values(): IterableIterator<TMap[keyof TMap]>;
|
|
4165
3946
|
[Symbol.iterator](): IterableIterator<[keyof TMap, TMap[keyof TMap]]>;
|
|
4166
3947
|
}
|
|
4167
|
-
//#endregion
|
|
4168
|
-
//#region node_modules/fets/typings/client/clientResponse.d.cts
|
|
4169
3948
|
type ClientTypedResponsePromise<TTypedResponse extends Response> = Promise<TTypedResponse> & {
|
|
4170
3949
|
json(): Promise<TTypedResponse extends TypedResponse$1 ? JSONofResponse<TTypedResponse> : any>;
|
|
4171
3950
|
};
|
|
4172
|
-
//#endregion
|
|
4173
|
-
//#region node_modules/fets/typings/typed-fetch.d.cts
|
|
4174
3951
|
type OkStatusCode = 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226;
|
|
4175
3952
|
type RedirectStatusCode = 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308;
|
|
4176
3953
|
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 +4098,7 @@ interface TypedFormData<TMap extends Record<string, FormDataEntryValue | undefin
|
|
|
4321
4098
|
values(): IterableIterator<TMap[keyof TMap]>;
|
|
4322
4099
|
[Symbol.iterator](): IterableIterator<[keyof TMap, TMap[keyof TMap]]>;
|
|
4323
4100
|
}
|
|
4324
|
-
//#endregion
|
|
4325
|
-
//#region node_modules/fets/typings/client/types.d.cts
|
|
4326
4101
|
type ClientRequestInit = Omit<RequestInit, 'body' | 'method' | 'headers'>;
|
|
4327
|
-
//#endregion
|
|
4328
|
-
//#region node_modules/fets/typings/types.d.cts
|
|
4329
4102
|
type Simplify<T> = { [KeyType in keyof T]: Simplify<T[KeyType]>; } & {};
|
|
4330
4103
|
type JSONSchema = Exclude<JSONSchema$1, boolean>;
|
|
4331
4104
|
interface OpenAPIInfo {
|
|
@@ -4631,8 +4404,6 @@ type RouteWithTypesOpts<TServerContext, TMethod extends HTTPMethod, TPath extend
|
|
|
4631
4404
|
handler: RouteHandler<TServerContext, TTypedRequest, TTypedResponse>;
|
|
4632
4405
|
};
|
|
4633
4406
|
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
4407
|
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
4408
|
schema: Schema;
|
|
4638
4409
|
}) => {
|
|
@@ -5217,8 +4988,6 @@ export declare const rumble: <UserContext extends Record<string, any>, DB extend
|
|
|
5217
4988
|
*/
|
|
5218
4989
|
buildSchema: () => GraphQLSchema;
|
|
5219
4990
|
};
|
|
5220
|
-
//#endregion
|
|
5221
|
-
//#region lib/scalars/address.d.ts
|
|
5222
4991
|
/**
|
|
5223
4992
|
* The shape of a postal address, modeled after the OIDC `address` claim
|
|
5224
4993
|
* (https://openid.net/specs/openid-connect-core-1_0.html#AddressClaim) and schema.org's
|
|
@@ -5252,8 +5021,6 @@ type AddressInputShape = Omit<AddressShape, "countryCode" | "streetAddress"> & {
|
|
|
5252
5021
|
countryCode: string;
|
|
5253
5022
|
streetAddress: string;
|
|
5254
5023
|
};
|
|
5255
|
-
//#endregion
|
|
5256
|
-
//#region lib/scalars/addressData.d.ts
|
|
5257
5024
|
type RegionAddressRules = {
|
|
5258
5025
|
/** Regex the postal code must start with. */
|
|
5259
5026
|
zip?: string;
|
|
@@ -5277,8 +5044,6 @@ type CountryAddressRules = {
|
|
|
5277
5044
|
* Changes: reduced to required fields, postal code patterns and examples, and regions with
|
|
5278
5045
|
* their names, with region codes upper-cased and ISO 3166-2 ids used where available. */
|
|
5279
5046
|
export declare const addressData: Record<string, CountryAddressRules>;
|
|
5280
|
-
//#endregion
|
|
5281
|
-
//#region lib/scalars/addressValidation.d.ts
|
|
5282
5047
|
type AddressIssue = {
|
|
5283
5048
|
path: keyof AddressShape;
|
|
5284
5049
|
message: string;
|
|
@@ -5359,8 +5124,6 @@ export declare const addressValidationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
5359
5124
|
postalCode?: string | null | undefined;
|
|
5360
5125
|
countryCode: string;
|
|
5361
5126
|
}>>;
|
|
5362
|
-
//#endregion
|
|
5363
|
-
//#region lib/scalars/emailAddress.d.ts
|
|
5364
5127
|
/**
|
|
5365
5128
|
* Validates an email address using graphql-scalars' own format check, then lowercases it, exactly
|
|
5366
5129
|
* as the `EmailAddress` scalar does. Exported for values that do not arrive as GraphQL input,
|
|
@@ -5369,8 +5132,6 @@ export declare const addressValidationSchema: z.ZodPipe<z.ZodObject<{
|
|
|
5369
5132
|
* @throws RumbleErrorSafe if the value is not a valid email address
|
|
5370
5133
|
*/
|
|
5371
5134
|
export declare const normalizeEmailAddress: (value: unknown) => string;
|
|
5372
|
-
//#endregion
|
|
5373
|
-
//#region lib/scalars/personName.d.ts
|
|
5374
5135
|
/**
|
|
5375
5136
|
* Normalizes and validates a person's name, exactly as the `PersonName` scalar does. Exported
|
|
5376
5137
|
* for values that do not arrive as GraphQL input, such as OIDC claims.
|
|
@@ -5378,8 +5139,6 @@ export declare const normalizeEmailAddress: (value: unknown) => string;
|
|
|
5378
5139
|
* @throws RumbleErrorSafe if the value is not a valid name
|
|
5379
5140
|
*/
|
|
5380
5141
|
export declare const normalizePersonName: (value: unknown) => string;
|
|
5381
|
-
//#endregion
|
|
5382
|
-
//#region lib/scalars/phoneNumber.d.ts
|
|
5383
5142
|
/**
|
|
5384
5143
|
* Parses and validates a phone number using libphonenumber-js (Google's phone number metadata),
|
|
5385
5144
|
* which checks real per-country validity (length, area code plausibility, ...) rather than just
|
|
@@ -5389,8 +5148,6 @@ export declare const normalizePersonName: (value: unknown) => string;
|
|
|
5389
5148
|
* @throws RumbleErrorSafe if the value is not a valid phone number
|
|
5390
5149
|
*/
|
|
5391
5150
|
export declare const parsePhoneNumber: (value: unknown) => PhoneNumber;
|
|
5392
|
-
//#endregion
|
|
5393
|
-
//#region lib/types/rumbleError.d.ts
|
|
5394
5151
|
/**
|
|
5395
5152
|
* An error that gets raised by rumble whenever something does not go according to plan.
|
|
5396
5153
|
* Mostly internals, configuration errors or other unexpected things.
|
|
@@ -5404,6 +5161,5 @@ export declare class RumbleError extends Error {
|
|
|
5404
5161
|
* E.g. the assert helpers issue these.
|
|
5405
5162
|
*/
|
|
5406
5163
|
export declare class RumbleErrorSafe extends GraphQLError {}
|
|
5407
|
-
//#endregion
|
|
5408
5164
|
export type { AddressCheck, AddressInputShape, AddressIssue, AddressShape, CountryAddressRules, NormalizedAddress, RegionAddressRules };
|
|
5409
5165
|
//# sourceMappingURL=index.d.cts.map
|