@m1212e/rumble 0.21.5 → 0.22.2
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/out/index.cjs +184 -53
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +66 -49
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +66 -49
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +184 -53
- package/out/index.mjs.map +1 -1
- package/package.json +1 -1
package/out/index.d.mts
CHANGED
|
@@ -243,6 +243,56 @@ type DateWhereInputArgument = {
|
|
|
243
243
|
OR?: DateWhereInputArgument[];
|
|
244
244
|
NOT?: DateWhereInputArgument;
|
|
245
245
|
};
|
|
246
|
+
type BooleanWhereInputArgument = {
|
|
247
|
+
eq?: boolean;
|
|
248
|
+
ne?: boolean;
|
|
249
|
+
in?: boolean[];
|
|
250
|
+
notIn?: boolean[];
|
|
251
|
+
isNull?: boolean;
|
|
252
|
+
isNotNull?: boolean;
|
|
253
|
+
arrayOverlaps?: boolean[];
|
|
254
|
+
arrayContained?: boolean[];
|
|
255
|
+
arrayContains?: boolean[];
|
|
256
|
+
AND?: BooleanWhereInputArgument[];
|
|
257
|
+
OR?: BooleanWhereInputArgument[];
|
|
258
|
+
NOT?: BooleanWhereInputArgument;
|
|
259
|
+
};
|
|
260
|
+
type IDWhereInputArgument = {
|
|
261
|
+
eq?: string;
|
|
262
|
+
ne?: string;
|
|
263
|
+
gt?: string;
|
|
264
|
+
gte?: string;
|
|
265
|
+
lt?: string;
|
|
266
|
+
lte?: string;
|
|
267
|
+
in?: string[];
|
|
268
|
+
notIn?: string[];
|
|
269
|
+
like?: string;
|
|
270
|
+
ilike?: string;
|
|
271
|
+
notLike?: string;
|
|
272
|
+
notIlike?: string;
|
|
273
|
+
isNull?: boolean;
|
|
274
|
+
isNotNull?: boolean;
|
|
275
|
+
arrayOverlaps?: string[];
|
|
276
|
+
arrayContained?: string[];
|
|
277
|
+
arrayContains?: string[];
|
|
278
|
+
AND?: IDWhereInputArgument[];
|
|
279
|
+
OR?: IDWhereInputArgument[];
|
|
280
|
+
NOT?: IDWhereInputArgument;
|
|
281
|
+
};
|
|
282
|
+
type JSONWhereInputArgument = {
|
|
283
|
+
eq?: unknown;
|
|
284
|
+
ne?: unknown;
|
|
285
|
+
in?: unknown[];
|
|
286
|
+
notIn?: unknown[];
|
|
287
|
+
isNull?: boolean;
|
|
288
|
+
isNotNull?: boolean;
|
|
289
|
+
arrayOverlaps?: unknown[];
|
|
290
|
+
arrayContained?: unknown[];
|
|
291
|
+
arrayContains?: unknown[];
|
|
292
|
+
AND?: JSONWhereInputArgument[];
|
|
293
|
+
OR?: JSONWhereInputArgument[];
|
|
294
|
+
NOT?: JSONWhereInputArgument;
|
|
295
|
+
};
|
|
246
296
|
//#endregion
|
|
247
297
|
//#region node_modules/hotscript/dist/internals/helpers.d.ts
|
|
248
298
|
type Equal$1<a, b> = (<T>() => T extends a ? 1 : 2) extends (<T>() => T extends b ? 1 : 2) ? true : false;
|
|
@@ -4358,6 +4408,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4358
4408
|
FloatWhereInputArgument: NumberWhereInputArgument;
|
|
4359
4409
|
StringWhereInputArgument: StringWhereInputArgument;
|
|
4360
4410
|
DateWhereInputArgument: DateWhereInputArgument;
|
|
4411
|
+
BooleanWhereInputArgument: BooleanWhereInputArgument;
|
|
4412
|
+
IDWhereInputArgument: IDWhereInputArgument;
|
|
4413
|
+
JSONWhereInputArgument: JSONWhereInputArgument;
|
|
4361
4414
|
};
|
|
4362
4415
|
DefaultFieldNullability: false;
|
|
4363
4416
|
}>>;
|
|
@@ -4487,6 +4540,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4487
4540
|
FloatWhereInputArgument: NumberWhereInputArgument;
|
|
4488
4541
|
StringWhereInputArgument: StringWhereInputArgument;
|
|
4489
4542
|
DateWhereInputArgument: DateWhereInputArgument;
|
|
4543
|
+
BooleanWhereInputArgument: BooleanWhereInputArgument;
|
|
4544
|
+
IDWhereInputArgument: IDWhereInputArgument;
|
|
4545
|
+
JSONWhereInputArgument: JSONWhereInputArgument;
|
|
4490
4546
|
};
|
|
4491
4547
|
DefaultFieldNullability: false;
|
|
4492
4548
|
}>, (DB["_"]["relations"] & {})[TableName], DrizzleTableValueType<DB, TableName>, { [Key in keyof Extract<(DB["_"]["relations"] & {})[TableName]["table"], {
|
|
@@ -4550,6 +4606,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4550
4606
|
FloatWhereInputArgument: NumberWhereInputArgument;
|
|
4551
4607
|
StringWhereInputArgument: StringWhereInputArgument;
|
|
4552
4608
|
DateWhereInputArgument: DateWhereInputArgument;
|
|
4609
|
+
BooleanWhereInputArgument: BooleanWhereInputArgument;
|
|
4610
|
+
IDWhereInputArgument: IDWhereInputArgument;
|
|
4611
|
+
JSONWhereInputArgument: JSONWhereInputArgument;
|
|
4553
4612
|
};
|
|
4554
4613
|
DefaultFieldNullability: false;
|
|
4555
4614
|
}>, TableName, import("drizzle-orm").BuildQueryResult<DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName], true extends true | import("drizzle-orm").DBQueryConfig<"one", DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName]> ? true : (true | import("drizzle-orm").DBQueryConfig<"one", DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName]>) & {
|
|
@@ -4572,55 +4631,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4572
4631
|
dbName: string;
|
|
4573
4632
|
} | {
|
|
4574
4633
|
table: TableName;
|
|
4575
|
-
})) =>
|
|
4576
|
-
Context: Awaited<UserContext & {
|
|
4577
|
-
abilities: keyof DrizzleQueryFunction<DB> extends infer T_2 extends keyof DrizzleQueryFunction<DB> ? { [key_1 in T_2]: {
|
|
4578
|
-
filter: (action: Action) => {
|
|
4579
|
-
query: {
|
|
4580
|
-
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findFirst"]>[0]>>, "where">;
|
|
4581
|
-
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4582
|
-
};
|
|
4583
|
-
sql: {
|
|
4584
|
-
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4585
|
-
};
|
|
4586
|
-
} & {
|
|
4587
|
-
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
4588
|
-
query: {
|
|
4589
|
-
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findFirst"]>[0]>>, "where">;
|
|
4590
|
-
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4591
|
-
};
|
|
4592
|
-
sql: {
|
|
4593
|
-
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4594
|
-
};
|
|
4595
|
-
};
|
|
4596
|
-
};
|
|
4597
|
-
} } : never;
|
|
4598
|
-
}>;
|
|
4599
|
-
DrizzleRelations: DB["_"]["relations"];
|
|
4600
|
-
Scalars: {
|
|
4601
|
-
JSON: {
|
|
4602
|
-
Input: unknown;
|
|
4603
|
-
Output: unknown;
|
|
4604
|
-
};
|
|
4605
|
-
Date: {
|
|
4606
|
-
Input: Date;
|
|
4607
|
-
Output: Date;
|
|
4608
|
-
};
|
|
4609
|
-
DateTime: {
|
|
4610
|
-
Input: Date;
|
|
4611
|
-
Output: Date;
|
|
4612
|
-
};
|
|
4613
|
-
};
|
|
4614
|
-
Inputs: {
|
|
4615
|
-
IntWhereInputArgument: NumberWhereInputArgument;
|
|
4616
|
-
FloatWhereInputArgument: NumberWhereInputArgument;
|
|
4617
|
-
StringWhereInputArgument: StringWhereInputArgument;
|
|
4618
|
-
DateWhereInputArgument: DateWhereInputArgument;
|
|
4619
|
-
};
|
|
4620
|
-
DefaultFieldNullability: false;
|
|
4621
|
-
}>, {
|
|
4622
|
-
[x: string]: unknown;
|
|
4623
|
-
}>;
|
|
4634
|
+
})) => any;
|
|
4624
4635
|
/**
|
|
4625
4636
|
* A function for creating order args to sort entities
|
|
4626
4637
|
*/
|
|
@@ -4680,6 +4691,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4680
4691
|
FloatWhereInputArgument: NumberWhereInputArgument;
|
|
4681
4692
|
StringWhereInputArgument: StringWhereInputArgument;
|
|
4682
4693
|
DateWhereInputArgument: DateWhereInputArgument;
|
|
4694
|
+
BooleanWhereInputArgument: BooleanWhereInputArgument;
|
|
4695
|
+
IDWhereInputArgument: IDWhereInputArgument;
|
|
4696
|
+
JSONWhereInputArgument: JSONWhereInputArgument;
|
|
4683
4697
|
};
|
|
4684
4698
|
DefaultFieldNullability: false;
|
|
4685
4699
|
}>, {
|
|
@@ -4784,6 +4798,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4784
4798
|
FloatWhereInputArgument: NumberWhereInputArgument;
|
|
4785
4799
|
StringWhereInputArgument: StringWhereInputArgument;
|
|
4786
4800
|
DateWhereInputArgument: DateWhereInputArgument;
|
|
4801
|
+
BooleanWhereInputArgument: BooleanWhereInputArgument;
|
|
4802
|
+
IDWhereInputArgument: IDWhereInputArgument;
|
|
4803
|
+
JSONWhereInputArgument: JSONWhereInputArgument;
|
|
4787
4804
|
};
|
|
4788
4805
|
DefaultFieldNullability: false;
|
|
4789
4806
|
}>, [EnumColumn] extends [never] ? [EnumArg] extends [never] ? [TsName] extends [never] ? string : TsName extends keyof Schema ? (Schema[TsName] extends infer T_3 ? T_3 extends Schema[TsName] ? T_3 extends import("drizzle-orm/pg-core").PgEnum<infer V extends [string, ...string[]]> ? V : T_3 extends import("drizzle-orm/pg-core").PgEnumObject<infer O extends object> ? readonly (O[keyof O] & string)[] : readonly [string, ...string[]] : never : never)[number] : string : (EnumArg extends import("drizzle-orm/pg-core").PgEnum<infer V extends [string, ...string[]]> ? V : EnumArg extends import("drizzle-orm/pg-core").PgEnumObject<infer O extends object> ? readonly (O[keyof O] & string)[] : readonly [string, ...string[]])[number] : EnumColumn extends {
|