@m1212e/rumble 0.10.8 → 0.10.10
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 +1 -3
- package/index.cjs +6 -6
- package/index.cjs.map +1 -1
- package/index.d.cts +56 -81
- package/index.d.ts +56 -81
- package/index.js +6 -6
- package/index.js.map +1 -1
- package/package.json +1 -1
package/index.d.cts
CHANGED
@@ -2,7 +2,7 @@ import * as SchemaBuilder from '@pothos/core';
|
|
2
2
|
import SchemaBuilder__default, { SchemaTypes, BasePlugin, PothosOutputFieldConfig } from '@pothos/core';
|
3
3
|
import { GraphQLFieldResolver, GraphQLError } from 'graphql';
|
4
4
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
5
|
-
import { PgEnum } from 'drizzle-orm/pg-core';
|
5
|
+
import { PgDatabase, PgEnum } from 'drizzle-orm/pg-core';
|
6
6
|
import * as _pothos_plugin_drizzle from '@pothos/plugin-drizzle';
|
7
7
|
import { DrizzleClient } from '@pothos/plugin-drizzle';
|
8
8
|
import * as fets from 'fets';
|
@@ -10,6 +10,9 @@ import * as graphql_yoga from 'graphql-yoga';
|
|
10
10
|
import { createPubSub, YogaServerOptions } from 'graphql-yoga';
|
11
11
|
import * as drizzle_orm from 'drizzle-orm';
|
12
12
|
import { useSofa } from 'sofa-api';
|
13
|
+
import { MySqlDatabase } from 'drizzle-orm/mysql-core';
|
14
|
+
import { SingleStoreDatabase } from 'drizzle-orm/singlestore-core';
|
15
|
+
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
13
16
|
|
14
17
|
declare const pluginName = "ManualFiltersPlugin";
|
15
18
|
|
@@ -165,18 +168,22 @@ declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
165
168
|
*/
|
166
169
|
declare function mapNullFieldsToUndefined<T extends object>(obj: T): { [K in keyof T]: T[K] extends null ? undefined : Exclude<T[K], null>; };
|
167
170
|
|
168
|
-
type QueryFilterObject = Partial<{
|
169
|
-
where: any;
|
170
|
-
columns: any;
|
171
|
-
limit: any;
|
172
|
-
}>;
|
173
171
|
type GenericDrizzleDbTypeConstraints = {
|
174
172
|
query: {
|
175
173
|
[key: string]: {
|
176
|
-
findMany: (P:
|
177
|
-
|
174
|
+
findMany: (P: Partial<{
|
175
|
+
where: any;
|
176
|
+
columns: any;
|
177
|
+
limit: any;
|
178
|
+
}>) => any;
|
179
|
+
findFirst: (P: Partial<{
|
180
|
+
where: any;
|
181
|
+
columns: any;
|
182
|
+
}>) => any;
|
178
183
|
};
|
179
184
|
};
|
185
|
+
execute?: PgDatabase<any, any>["execute"] | MySqlDatabase<any, any>["execute"] | SingleStoreDatabase<any, any>["execute"] | undefined;
|
186
|
+
run?: BaseSQLiteDatabase<any, any>["run"];
|
180
187
|
} & DrizzleClient;
|
181
188
|
|
182
189
|
type CustomRumblePothosConfig = Omit<ConstructorParameters<typeof SchemaBuilder__default>[0], "smartSubscriptions" | "drizzle">;
|
@@ -215,6 +222,23 @@ type RumbleInput<UserContext extends Record<string, any>, DB extends GenericDriz
|
|
215
222
|
* @default 100
|
216
223
|
*/
|
217
224
|
defaultLimit?: number | undefined | null;
|
225
|
+
/**
|
226
|
+
* rumble supports fuzzy search for the query helpers. This enables the users of your API to search for entities via fuzzy search inputs.
|
227
|
+
* This currently only is supported by postgres databases and will fail if enabled on other dialects.
|
228
|
+
*
|
229
|
+
* Please note that this will install the pg_trgm extension on startup if your database does not have it already installed.
|
230
|
+
* https://www.postgresql.org/docs/current/pgtrgm.html
|
231
|
+
*/
|
232
|
+
search?: {
|
233
|
+
/**
|
234
|
+
* Whether search is enabled
|
235
|
+
*/
|
236
|
+
enabled?: boolean;
|
237
|
+
/**
|
238
|
+
* The threshold for cutting off non matching results. Defaults to 0.1. Lower = more results.
|
239
|
+
*/
|
240
|
+
threshold?: number;
|
241
|
+
} | undefined;
|
218
242
|
};
|
219
243
|
|
220
244
|
type NumberWhereInputArgument = {
|
@@ -314,22 +338,15 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
314
338
|
by: (explicitFilter: Filter<UserContext, NonNullable<Awaited<ReturnType<DB["query"][key]["findFirst"]>>>>) => void;
|
315
339
|
};
|
316
340
|
}; } : never) & {
|
317
|
-
|
318
|
-
|
319
|
-
|
341
|
+
z_registeredQueryFilters: keyof DB["query"] extends infer T_1 extends keyof DB["query"] ? { [key_1 in T_1]: { [key_2 in Action]: any[] | "unspecified"; }; } : never;
|
342
|
+
z_registeredFilters: keyof DB["query"] extends infer T_2 extends keyof DB["query"] ? { [key_3 in T_2]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never;
|
343
|
+
z_buildWithUserContext: (userContext: UserContext) => keyof DB["query"] extends infer T_3 extends keyof DB["query"] ? { [key_5 in T_3]: {
|
320
344
|
filter: <Injection extends Parameters<DB["query"][key_5]["findMany"]>[0]>(action: Action, options?: {
|
321
345
|
inject?: Injection | undefined;
|
322
346
|
} | undefined) => {
|
323
347
|
query: {
|
324
|
-
single:
|
325
|
-
|
326
|
-
columns: undefined;
|
327
|
-
};
|
328
|
-
many: {
|
329
|
-
readonly where: any;
|
330
|
-
columns: undefined;
|
331
|
-
readonly limit: any;
|
332
|
-
};
|
348
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
349
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
333
350
|
};
|
334
351
|
sql: {
|
335
352
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -337,7 +354,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
337
354
|
readonly limit: any;
|
338
355
|
};
|
339
356
|
};
|
340
|
-
|
357
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_4 extends keyof DB["query"] ? { [key_3 in T_4]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
341
358
|
}; } : never;
|
342
359
|
};
|
343
360
|
/**
|
@@ -350,15 +367,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
350
367
|
inject?: Injection | undefined;
|
351
368
|
} | undefined) => {
|
352
369
|
query: {
|
353
|
-
single:
|
354
|
-
|
355
|
-
columns: undefined;
|
356
|
-
};
|
357
|
-
many: {
|
358
|
-
readonly where: any;
|
359
|
-
columns: undefined;
|
360
|
-
readonly limit: any;
|
361
|
-
};
|
370
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
371
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
362
372
|
};
|
363
373
|
sql: {
|
364
374
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -366,7 +376,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
366
376
|
readonly limit: any;
|
367
377
|
};
|
368
378
|
};
|
369
|
-
|
379
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_4 extends keyof DB["query"] ? { [key_3 in T_4]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
370
380
|
}; } : never;
|
371
381
|
}>;
|
372
382
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -444,15 +454,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
444
454
|
inject?: Injection | undefined;
|
445
455
|
} | undefined) => {
|
446
456
|
query: {
|
447
|
-
single:
|
448
|
-
|
449
|
-
columns: undefined;
|
450
|
-
};
|
451
|
-
many: {
|
452
|
-
readonly where: any;
|
453
|
-
columns: undefined;
|
454
|
-
readonly limit: any;
|
455
|
-
};
|
457
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
458
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
456
459
|
};
|
457
460
|
sql: {
|
458
461
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -460,7 +463,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
460
463
|
readonly limit: any;
|
461
464
|
};
|
462
465
|
};
|
463
|
-
|
466
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
464
467
|
}; } : never;
|
465
468
|
}>;
|
466
469
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -524,15 +527,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
524
527
|
inject?: Injection | undefined;
|
525
528
|
} | undefined) => {
|
526
529
|
query: {
|
527
|
-
single:
|
528
|
-
|
529
|
-
columns: undefined;
|
530
|
-
};
|
531
|
-
many: {
|
532
|
-
readonly where: any;
|
533
|
-
columns: undefined;
|
534
|
-
readonly limit: any;
|
535
|
-
};
|
530
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
531
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
536
532
|
};
|
537
533
|
sql: {
|
538
534
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -540,7 +536,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
540
536
|
readonly limit: any;
|
541
537
|
};
|
542
538
|
};
|
543
|
-
|
539
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
544
540
|
}; } : never;
|
545
541
|
}>;
|
546
542
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -583,15 +579,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
583
579
|
inject?: Injection | undefined;
|
584
580
|
} | undefined) => {
|
585
581
|
query: {
|
586
|
-
single:
|
587
|
-
|
588
|
-
columns: undefined;
|
589
|
-
};
|
590
|
-
many: {
|
591
|
-
readonly where: any;
|
592
|
-
columns: undefined;
|
593
|
-
readonly limit: any;
|
594
|
-
};
|
582
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
583
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
595
584
|
};
|
596
585
|
sql: {
|
597
586
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -599,7 +588,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
599
588
|
readonly limit: any;
|
600
589
|
};
|
601
590
|
};
|
602
|
-
|
591
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
603
592
|
}; } : never;
|
604
593
|
}>;
|
605
594
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -644,15 +633,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
644
633
|
inject?: Injection | undefined;
|
645
634
|
} | undefined) => {
|
646
635
|
query: {
|
647
|
-
single:
|
648
|
-
|
649
|
-
columns: undefined;
|
650
|
-
};
|
651
|
-
many: {
|
652
|
-
readonly where: any;
|
653
|
-
columns: undefined;
|
654
|
-
readonly limit: any;
|
655
|
-
};
|
636
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
637
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
656
638
|
};
|
657
639
|
sql: {
|
658
640
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -660,7 +642,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
660
642
|
readonly limit: any;
|
661
643
|
};
|
662
644
|
};
|
663
|
-
|
645
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
664
646
|
}; } : never;
|
665
647
|
}>;
|
666
648
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -733,15 +715,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
733
715
|
inject?: Injection | undefined;
|
734
716
|
} | undefined) => {
|
735
717
|
query: {
|
736
|
-
single:
|
737
|
-
|
738
|
-
columns: undefined;
|
739
|
-
};
|
740
|
-
many: {
|
741
|
-
readonly where: any;
|
742
|
-
columns: undefined;
|
743
|
-
readonly limit: any;
|
744
|
-
};
|
718
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
719
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
745
720
|
};
|
746
721
|
sql: {
|
747
722
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -749,7 +724,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
749
724
|
readonly limit: any;
|
750
725
|
};
|
751
726
|
};
|
752
|
-
|
727
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_6 extends keyof DB["query"] ? { [key_3 in T_6]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
753
728
|
}; } : never;
|
754
729
|
}>;
|
755
730
|
DrizzleRelations: DB["_"]["relations"];
|
package/index.d.ts
CHANGED
@@ -2,7 +2,7 @@ import * as SchemaBuilder from '@pothos/core';
|
|
2
2
|
import SchemaBuilder__default, { SchemaTypes, BasePlugin, PothosOutputFieldConfig } from '@pothos/core';
|
3
3
|
import { GraphQLFieldResolver, GraphQLError } from 'graphql';
|
4
4
|
import * as drizzle_orm_pg_core from 'drizzle-orm/pg-core';
|
5
|
-
import { PgEnum } from 'drizzle-orm/pg-core';
|
5
|
+
import { PgDatabase, PgEnum } from 'drizzle-orm/pg-core';
|
6
6
|
import * as _pothos_plugin_drizzle from '@pothos/plugin-drizzle';
|
7
7
|
import { DrizzleClient } from '@pothos/plugin-drizzle';
|
8
8
|
import * as fets from 'fets';
|
@@ -10,6 +10,9 @@ import * as graphql_yoga from 'graphql-yoga';
|
|
10
10
|
import { createPubSub, YogaServerOptions } from 'graphql-yoga';
|
11
11
|
import * as drizzle_orm from 'drizzle-orm';
|
12
12
|
import { useSofa } from 'sofa-api';
|
13
|
+
import { MySqlDatabase } from 'drizzle-orm/mysql-core';
|
14
|
+
import { SingleStoreDatabase } from 'drizzle-orm/singlestore-core';
|
15
|
+
import { BaseSQLiteDatabase } from 'drizzle-orm/sqlite-core';
|
13
16
|
|
14
17
|
declare const pluginName = "ManualFiltersPlugin";
|
15
18
|
|
@@ -165,18 +168,22 @@ declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
165
168
|
*/
|
166
169
|
declare function mapNullFieldsToUndefined<T extends object>(obj: T): { [K in keyof T]: T[K] extends null ? undefined : Exclude<T[K], null>; };
|
167
170
|
|
168
|
-
type QueryFilterObject = Partial<{
|
169
|
-
where: any;
|
170
|
-
columns: any;
|
171
|
-
limit: any;
|
172
|
-
}>;
|
173
171
|
type GenericDrizzleDbTypeConstraints = {
|
174
172
|
query: {
|
175
173
|
[key: string]: {
|
176
|
-
findMany: (P:
|
177
|
-
|
174
|
+
findMany: (P: Partial<{
|
175
|
+
where: any;
|
176
|
+
columns: any;
|
177
|
+
limit: any;
|
178
|
+
}>) => any;
|
179
|
+
findFirst: (P: Partial<{
|
180
|
+
where: any;
|
181
|
+
columns: any;
|
182
|
+
}>) => any;
|
178
183
|
};
|
179
184
|
};
|
185
|
+
execute?: PgDatabase<any, any>["execute"] | MySqlDatabase<any, any>["execute"] | SingleStoreDatabase<any, any>["execute"] | undefined;
|
186
|
+
run?: BaseSQLiteDatabase<any, any>["run"];
|
180
187
|
} & DrizzleClient;
|
181
188
|
|
182
189
|
type CustomRumblePothosConfig = Omit<ConstructorParameters<typeof SchemaBuilder__default>[0], "smartSubscriptions" | "drizzle">;
|
@@ -215,6 +222,23 @@ type RumbleInput<UserContext extends Record<string, any>, DB extends GenericDriz
|
|
215
222
|
* @default 100
|
216
223
|
*/
|
217
224
|
defaultLimit?: number | undefined | null;
|
225
|
+
/**
|
226
|
+
* rumble supports fuzzy search for the query helpers. This enables the users of your API to search for entities via fuzzy search inputs.
|
227
|
+
* This currently only is supported by postgres databases and will fail if enabled on other dialects.
|
228
|
+
*
|
229
|
+
* Please note that this will install the pg_trgm extension on startup if your database does not have it already installed.
|
230
|
+
* https://www.postgresql.org/docs/current/pgtrgm.html
|
231
|
+
*/
|
232
|
+
search?: {
|
233
|
+
/**
|
234
|
+
* Whether search is enabled
|
235
|
+
*/
|
236
|
+
enabled?: boolean;
|
237
|
+
/**
|
238
|
+
* The threshold for cutting off non matching results. Defaults to 0.1. Lower = more results.
|
239
|
+
*/
|
240
|
+
threshold?: number;
|
241
|
+
} | undefined;
|
218
242
|
};
|
219
243
|
|
220
244
|
type NumberWhereInputArgument = {
|
@@ -314,22 +338,15 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
314
338
|
by: (explicitFilter: Filter<UserContext, NonNullable<Awaited<ReturnType<DB["query"][key]["findFirst"]>>>>) => void;
|
315
339
|
};
|
316
340
|
}; } : never) & {
|
317
|
-
|
318
|
-
|
319
|
-
|
341
|
+
z_registeredQueryFilters: keyof DB["query"] extends infer T_1 extends keyof DB["query"] ? { [key_1 in T_1]: { [key_2 in Action]: any[] | "unspecified"; }; } : never;
|
342
|
+
z_registeredFilters: keyof DB["query"] extends infer T_2 extends keyof DB["query"] ? { [key_3 in T_2]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never;
|
343
|
+
z_buildWithUserContext: (userContext: UserContext) => keyof DB["query"] extends infer T_3 extends keyof DB["query"] ? { [key_5 in T_3]: {
|
320
344
|
filter: <Injection extends Parameters<DB["query"][key_5]["findMany"]>[0]>(action: Action, options?: {
|
321
345
|
inject?: Injection | undefined;
|
322
346
|
} | undefined) => {
|
323
347
|
query: {
|
324
|
-
single:
|
325
|
-
|
326
|
-
columns: undefined;
|
327
|
-
};
|
328
|
-
many: {
|
329
|
-
readonly where: any;
|
330
|
-
columns: undefined;
|
331
|
-
readonly limit: any;
|
332
|
-
};
|
348
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
349
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
333
350
|
};
|
334
351
|
sql: {
|
335
352
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -337,7 +354,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
337
354
|
readonly limit: any;
|
338
355
|
};
|
339
356
|
};
|
340
|
-
|
357
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_4 extends keyof DB["query"] ? { [key_3 in T_4]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
341
358
|
}; } : never;
|
342
359
|
};
|
343
360
|
/**
|
@@ -350,15 +367,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
350
367
|
inject?: Injection | undefined;
|
351
368
|
} | undefined) => {
|
352
369
|
query: {
|
353
|
-
single:
|
354
|
-
|
355
|
-
columns: undefined;
|
356
|
-
};
|
357
|
-
many: {
|
358
|
-
readonly where: any;
|
359
|
-
columns: undefined;
|
360
|
-
readonly limit: any;
|
361
|
-
};
|
370
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
371
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
362
372
|
};
|
363
373
|
sql: {
|
364
374
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -366,7 +376,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
366
376
|
readonly limit: any;
|
367
377
|
};
|
368
378
|
};
|
369
|
-
|
379
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_4 extends keyof DB["query"] ? { [key_3 in T_4]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
370
380
|
}; } : never;
|
371
381
|
}>;
|
372
382
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -444,15 +454,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
444
454
|
inject?: Injection | undefined;
|
445
455
|
} | undefined) => {
|
446
456
|
query: {
|
447
|
-
single:
|
448
|
-
|
449
|
-
columns: undefined;
|
450
|
-
};
|
451
|
-
many: {
|
452
|
-
readonly where: any;
|
453
|
-
columns: undefined;
|
454
|
-
readonly limit: any;
|
455
|
-
};
|
457
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
458
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
456
459
|
};
|
457
460
|
sql: {
|
458
461
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -460,7 +463,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
460
463
|
readonly limit: any;
|
461
464
|
};
|
462
465
|
};
|
463
|
-
|
466
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
464
467
|
}; } : never;
|
465
468
|
}>;
|
466
469
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -524,15 +527,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
524
527
|
inject?: Injection | undefined;
|
525
528
|
} | undefined) => {
|
526
529
|
query: {
|
527
|
-
single:
|
528
|
-
|
529
|
-
columns: undefined;
|
530
|
-
};
|
531
|
-
many: {
|
532
|
-
readonly where: any;
|
533
|
-
columns: undefined;
|
534
|
-
readonly limit: any;
|
535
|
-
};
|
530
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
531
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
536
532
|
};
|
537
533
|
sql: {
|
538
534
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -540,7 +536,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
540
536
|
readonly limit: any;
|
541
537
|
};
|
542
538
|
};
|
543
|
-
|
539
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
544
540
|
}; } : never;
|
545
541
|
}>;
|
546
542
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -583,15 +579,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
583
579
|
inject?: Injection | undefined;
|
584
580
|
} | undefined) => {
|
585
581
|
query: {
|
586
|
-
single:
|
587
|
-
|
588
|
-
columns: undefined;
|
589
|
-
};
|
590
|
-
many: {
|
591
|
-
readonly where: any;
|
592
|
-
columns: undefined;
|
593
|
-
readonly limit: any;
|
594
|
-
};
|
582
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
583
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
595
584
|
};
|
596
585
|
sql: {
|
597
586
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -599,7 +588,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
599
588
|
readonly limit: any;
|
600
589
|
};
|
601
590
|
};
|
602
|
-
|
591
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
603
592
|
}; } : never;
|
604
593
|
}>;
|
605
594
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -644,15 +633,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
644
633
|
inject?: Injection | undefined;
|
645
634
|
} | undefined) => {
|
646
635
|
query: {
|
647
|
-
single:
|
648
|
-
|
649
|
-
columns: undefined;
|
650
|
-
};
|
651
|
-
many: {
|
652
|
-
readonly where: any;
|
653
|
-
columns: undefined;
|
654
|
-
readonly limit: any;
|
655
|
-
};
|
636
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
637
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
656
638
|
};
|
657
639
|
sql: {
|
658
640
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -660,7 +642,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
660
642
|
readonly limit: any;
|
661
643
|
};
|
662
644
|
};
|
663
|
-
|
645
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_5 extends keyof DB["query"] ? { [key_3 in T_5]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
664
646
|
}; } : never;
|
665
647
|
}>;
|
666
648
|
DrizzleRelations: DB["_"]["relations"];
|
@@ -733,15 +715,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
733
715
|
inject?: Injection | undefined;
|
734
716
|
} | undefined) => {
|
735
717
|
query: {
|
736
|
-
single:
|
737
|
-
|
738
|
-
columns: undefined;
|
739
|
-
};
|
740
|
-
many: {
|
741
|
-
readonly where: any;
|
742
|
-
columns: undefined;
|
743
|
-
readonly limit: any;
|
744
|
-
};
|
718
|
+
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findFirst"]>[0]>>, "columns" | "where">;
|
719
|
+
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_5]["findMany"]>[0]>>, "columns" | "where" | "limit">;
|
745
720
|
};
|
746
721
|
sql: {
|
747
722
|
readonly where: drizzle_orm.SQL<unknown> | undefined;
|
@@ -749,7 +724,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
|
|
749
724
|
readonly limit: any;
|
750
725
|
};
|
751
726
|
};
|
752
|
-
|
727
|
+
runtimeFilters: (action: Action) => (keyof DB["query"] extends infer T_6 extends keyof DB["query"] ? { [key_3 in T_6]: { [key_4 in Action]: Filter<UserContext, any>[]; }; } : never)[key_5][Action];
|
753
728
|
}; } : never;
|
754
729
|
}>;
|
755
730
|
DrizzleRelations: DB["_"]["relations"];
|