@m1212e/rumble 0.18.8 → 0.20.0
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/client/generate.cjs +1 -1
- package/out/client/generate.d.cts.map +1 -1
- package/out/client/generate.d.mts.map +1 -1
- package/out/client/generate.mjs +1 -1
- package/out/client.cjs +2 -3
- package/out/client.cjs.map +1 -1
- package/out/client.d.cts +7 -3
- package/out/client.d.cts.map +1 -1
- package/out/client.d.mts +7 -3
- package/out/client.d.mts.map +1 -1
- package/out/client.mjs +2 -2
- package/out/client.mjs.map +1 -1
- package/out/{generate-BxAyU8HE.mjs → generate-B4w-hX0K.mjs} +1 -1
- package/out/{generate-BxAyU8HE.mjs.map → generate-B4w-hX0K.mjs.map} +1 -1
- package/out/{generate-v10zBoUq.cjs → generate-Ch5LEiBr.cjs} +1 -2
- package/out/{generate-v10zBoUq.cjs.map → generate-Ch5LEiBr.cjs.map} +1 -1
- package/out/index.cjs +40 -47
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +35 -41
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +33 -39
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +41 -47
- package/out/index.mjs.map +1 -1
- package/out/{lazy-BgeBy3-B.mjs → lazy-C7IyM4M4.mjs} +1 -1
- package/out/{lazy-BgeBy3-B.mjs.map → lazy-C7IyM4M4.mjs.map} +1 -1
- package/out/{lazy-DT--QoPa.cjs → lazy-CAN0oaXD.cjs} +1 -1
- package/out/{lazy-DT--QoPa.cjs.map → lazy-CAN0oaXD.cjs.map} +1 -1
- package/package.json +20 -20
package/out/index.d.cts
CHANGED
|
@@ -1,22 +1,16 @@
|
|
|
1
|
-
import * as _$graphql from "graphql";
|
|
2
1
|
import { GraphQLError } from "graphql";
|
|
3
2
|
import { MySqlDatabase } from "drizzle-orm/mysql-core";
|
|
4
|
-
import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
5
3
|
import { PgAsyncDatabase } from "drizzle-orm/pg-core";
|
|
6
4
|
import { BaseSQLiteDatabase } from "drizzle-orm/sqlite-core";
|
|
7
|
-
import * as _$drizzle_orm0 from "drizzle-orm";
|
|
8
|
-
import * as _$graphql_yoga0 from "graphql-yoga";
|
|
9
|
-
import { YogaServerOptions, createPubSub } from "graphql-yoga";
|
|
10
5
|
import { IncomingMessage, RequestListener, ServerResponse } from "node:http";
|
|
11
6
|
import { Http2ServerRequest, Http2ServerResponse } from "node:http2";
|
|
12
7
|
import { Socket } from "node:net";
|
|
13
|
-
import * as _$_pothos_plugin_drizzle0 from "@pothos/plugin-drizzle";
|
|
14
|
-
import * as _$_pothos_core0 from "@pothos/core";
|
|
15
|
-
import SchemaBuilder from "@pothos/core";
|
|
16
8
|
import { EnvelopArmorPlugin } from "@escape.tech/graphql-armor";
|
|
17
9
|
import { ServerOptions } from "graphql-ws";
|
|
10
|
+
import { YogaServerOptions, createPubSub } from "graphql-yoga";
|
|
18
11
|
import { useSofa } from "sofa-api";
|
|
19
12
|
import { Tracer } from "@opentelemetry/api";
|
|
13
|
+
import SchemaBuilder from "@pothos/core";
|
|
20
14
|
import { TracingWrapperOptions } from "@pothos/tracing-opentelemetry";
|
|
21
15
|
|
|
22
16
|
//#region lib/helpers/asserts.d.ts
|
|
@@ -154,7 +148,7 @@ declare const assertFirstEntryExists: <T>(value: T[]) => T;
|
|
|
154
148
|
declare function mapNullFieldsToUndefined<T extends object>(obj: T): { [K in keyof T]: T[K] extends null ? undefined : Exclude<T[K], null> };
|
|
155
149
|
//#endregion
|
|
156
150
|
//#region lib/types/drizzleInstanceType.d.ts
|
|
157
|
-
type DrizzleInstance = PgAsyncDatabase<any, any
|
|
151
|
+
type DrizzleInstance = PgAsyncDatabase<any, any> | BaseSQLiteDatabase<any, any, any, any> | MySqlDatabase<any, any>;
|
|
158
152
|
/**
|
|
159
153
|
* Type representing the query function of a Drizzle instance.
|
|
160
154
|
*/
|
|
@@ -3515,7 +3509,7 @@ type FromSchema$1<SCHEMA extends JSONSchema$1, OPTIONS extends FromSchemaOptions
|
|
|
3515
3509
|
type MaybePromise<T> = Promise<T> | T;
|
|
3516
3510
|
type MaybePromiseLike<T> = PromiseLike<T> | T;
|
|
3517
3511
|
//#endregion
|
|
3518
|
-
//#region node_modules/@whatwg-node/server/typings/utils.d.cts
|
|
3512
|
+
//#region node_modules/fets/node_modules/@whatwg-node/server/typings/utils.d.cts
|
|
3519
3513
|
interface NodeRequest {
|
|
3520
3514
|
protocol?: string | undefined;
|
|
3521
3515
|
hostname?: string | undefined;
|
|
@@ -3533,7 +3527,7 @@ interface NodeRequest {
|
|
|
3533
3527
|
}
|
|
3534
3528
|
type NodeResponse = ServerResponse | Http2ServerResponse;
|
|
3535
3529
|
//#endregion
|
|
3536
|
-
//#region node_modules/@whatwg-node/server/typings/uwebsockets.d.cts
|
|
3530
|
+
//#region node_modules/fets/node_modules/@whatwg-node/server/typings/uwebsockets.d.cts
|
|
3537
3531
|
interface UWSRequest {
|
|
3538
3532
|
getMethod(): string;
|
|
3539
3533
|
forEach(callback: (key: string, value: string) => void): void;
|
|
@@ -3554,7 +3548,7 @@ interface UWSResponse {
|
|
|
3554
3548
|
}
|
|
3555
3549
|
type UWSHandler = (res: UWSResponse, req: UWSRequest) => void | Promise<void>;
|
|
3556
3550
|
//#endregion
|
|
3557
|
-
//#region node_modules/@whatwg-node/server/typings/types.d.cts
|
|
3551
|
+
//#region node_modules/fets/node_modules/@whatwg-node/server/typings/types.d.cts
|
|
3558
3552
|
interface FetchEvent extends Event {
|
|
3559
3553
|
waitUntil(f: MaybePromise<void>): void;
|
|
3560
3554
|
request: Request;
|
|
@@ -4295,7 +4289,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4295
4289
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4296
4290
|
};
|
|
4297
4291
|
sql: {
|
|
4298
|
-
readonly where:
|
|
4292
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4299
4293
|
};
|
|
4300
4294
|
} & {
|
|
4301
4295
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4304,7 +4298,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4304
4298
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4305
4299
|
};
|
|
4306
4300
|
sql: {
|
|
4307
|
-
readonly where:
|
|
4301
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4308
4302
|
};
|
|
4309
4303
|
};
|
|
4310
4304
|
};
|
|
@@ -4323,7 +4317,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4323
4317
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4324
4318
|
};
|
|
4325
4319
|
sql: {
|
|
4326
|
-
readonly where:
|
|
4320
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4327
4321
|
};
|
|
4328
4322
|
} & {
|
|
4329
4323
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4332,7 +4326,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4332
4326
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4333
4327
|
};
|
|
4334
4328
|
sql: {
|
|
4335
|
-
readonly where:
|
|
4329
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4336
4330
|
};
|
|
4337
4331
|
};
|
|
4338
4332
|
};
|
|
@@ -4394,7 +4388,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4394
4388
|
* createYoga({ armorConfig: { maxDepth: { n: 20 } } })
|
|
4395
4389
|
*/
|
|
4396
4390
|
armorConfig?: Parameters<typeof EnvelopArmorPlugin>[0];
|
|
4397
|
-
}) | undefined) =>
|
|
4391
|
+
}) | undefined) => import("graphql-yoga").YogaServerInstance<RequestEvent, {}>;
|
|
4398
4392
|
/**
|
|
4399
4393
|
* Creates a sofa instance to offer a REST API.
|
|
4400
4394
|
*
|
|
@@ -4443,7 +4437,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4443
4437
|
table: TableName;
|
|
4444
4438
|
refName?: RefName | undefined;
|
|
4445
4439
|
readAction?: Action | undefined;
|
|
4446
|
-
adjust?: ((t:
|
|
4440
|
+
adjust?: ((t: import("@pothos/plugin-drizzle").DrizzleObjectFieldBuilder<PothosSchemaTypes.ExtendDefaultTypes<{
|
|
4447
4441
|
Context: Awaited<UserContext & {
|
|
4448
4442
|
abilities: keyof DrizzleQueryFunction<DB> extends infer T_2 extends keyof DrizzleQueryFunction<DB> ? { [key_1 in T_2]: {
|
|
4449
4443
|
filter: (action: Action) => {
|
|
@@ -4452,7 +4446,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4452
4446
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4453
4447
|
};
|
|
4454
4448
|
sql: {
|
|
4455
|
-
readonly where:
|
|
4449
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4456
4450
|
};
|
|
4457
4451
|
} & {
|
|
4458
4452
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4461,7 +4455,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4461
4455
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4462
4456
|
};
|
|
4463
4457
|
sql: {
|
|
4464
|
-
readonly where:
|
|
4458
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4465
4459
|
};
|
|
4466
4460
|
};
|
|
4467
4461
|
};
|
|
@@ -4505,8 +4499,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4505
4499
|
_: {
|
|
4506
4500
|
brand: "Table";
|
|
4507
4501
|
};
|
|
4508
|
-
}>["_"]["columns"][Key]["_"]["data"] | null } extends infer T_3 ? { [K in keyof T_3]: T_3[K] } : never>) =>
|
|
4509
|
-
}) =>
|
|
4502
|
+
}>["_"]["columns"][Key]["_"]["data"] | null } extends infer T_3 ? { [K in keyof T_3]: T_3[K] } : never>) => import("@pothos/core").FieldMap) | undefined;
|
|
4503
|
+
}) => import("@pothos/plugin-drizzle").DrizzleObjectRef<PothosSchemaTypes.ExtendDefaultTypes<{
|
|
4510
4504
|
Context: Awaited<UserContext & {
|
|
4511
4505
|
abilities: keyof DrizzleQueryFunction<DB> extends infer T_2 extends keyof DrizzleQueryFunction<DB> ? { [key_1 in T_2]: {
|
|
4512
4506
|
filter: (action: Action) => {
|
|
@@ -4515,7 +4509,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4515
4509
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4516
4510
|
};
|
|
4517
4511
|
sql: {
|
|
4518
|
-
readonly where:
|
|
4512
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4519
4513
|
};
|
|
4520
4514
|
} & {
|
|
4521
4515
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4524,7 +4518,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4524
4518
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4525
4519
|
};
|
|
4526
4520
|
sql: {
|
|
4527
|
-
readonly where:
|
|
4521
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4528
4522
|
};
|
|
4529
4523
|
};
|
|
4530
4524
|
};
|
|
@@ -4552,9 +4546,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4552
4546
|
DateWhereInputArgument: DateWhereInputArgument;
|
|
4553
4547
|
};
|
|
4554
4548
|
DefaultFieldNullability: false;
|
|
4555
|
-
}>, TableName,
|
|
4549
|
+
}>, 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]>) & {
|
|
4556
4550
|
columns: {};
|
|
4557
|
-
},
|
|
4551
|
+
}, import("drizzle-orm").Assume<(DB["_"]["relations"] & {})[TableName]["table"], {
|
|
4558
4552
|
$inferSelect: Record<string, unknown>;
|
|
4559
4553
|
}>["$inferSelect"]>>;
|
|
4560
4554
|
/**
|
|
@@ -4581,7 +4575,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4581
4575
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4582
4576
|
};
|
|
4583
4577
|
sql: {
|
|
4584
|
-
readonly where:
|
|
4578
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4585
4579
|
};
|
|
4586
4580
|
} & {
|
|
4587
4581
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4590,7 +4584,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4590
4584
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4591
4585
|
};
|
|
4592
4586
|
sql: {
|
|
4593
|
-
readonly where:
|
|
4587
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4594
4588
|
};
|
|
4595
4589
|
};
|
|
4596
4590
|
};
|
|
@@ -4645,7 +4639,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4645
4639
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4646
4640
|
};
|
|
4647
4641
|
sql: {
|
|
4648
|
-
readonly where:
|
|
4642
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4649
4643
|
};
|
|
4650
4644
|
} & {
|
|
4651
4645
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4654,7 +4648,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4654
4648
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4655
4649
|
};
|
|
4656
4650
|
sql: {
|
|
4657
|
-
readonly where:
|
|
4651
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4658
4652
|
};
|
|
4659
4653
|
};
|
|
4660
4654
|
};
|
|
@@ -4726,28 +4720,28 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4726
4720
|
* The other helpers use this helper internally so in most cases you do not have to
|
|
4727
4721
|
* call this helper directly, unless you need the reference to an enum type
|
|
4728
4722
|
*/
|
|
4729
|
-
enum_: <
|
|
4730
|
-
|
|
4723
|
+
enum_: <EnumColumn extends import("drizzle-orm/pg-core").PgEnumColumn<any>, RefName_2 extends string>({
|
|
4724
|
+
enum: enumObject,
|
|
4731
4725
|
enumColumn,
|
|
4732
4726
|
refName
|
|
4733
|
-
}:
|
|
4734
|
-
tsName: ExplicitEnumVariableName;
|
|
4735
|
-
enumColumn: EnumColumn;
|
|
4727
|
+
}: {
|
|
4736
4728
|
refName?: RefName_2 | undefined;
|
|
4737
|
-
}
|
|
4738
|
-
|
|
4729
|
+
} & ({
|
|
4730
|
+
enum: import("drizzle-orm/pg-core").PgEnum<any>;
|
|
4731
|
+
enumColumn?: never;
|
|
4739
4732
|
} | {
|
|
4740
4733
|
enumColumn: EnumColumn;
|
|
4734
|
+
enum?: never;
|
|
4741
4735
|
})) => PothosSchemaTypes.EnumRef<PothosSchemaTypes.ExtendDefaultTypes<{
|
|
4742
4736
|
Context: Awaited<UserContext & {
|
|
4743
|
-
abilities: keyof DrizzleQueryFunction<DB> extends infer
|
|
4737
|
+
abilities: keyof DrizzleQueryFunction<DB> extends infer T_2 extends keyof DrizzleQueryFunction<DB> ? { [key_1 in T_2]: {
|
|
4744
4738
|
filter: (action: Action) => {
|
|
4745
4739
|
query: {
|
|
4746
4740
|
single: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findFirst"]>[0]>>, "where">;
|
|
4747
4741
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4748
4742
|
};
|
|
4749
4743
|
sql: {
|
|
4750
|
-
readonly where:
|
|
4744
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4751
4745
|
};
|
|
4752
4746
|
} & {
|
|
4753
4747
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4756,7 +4750,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4756
4750
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4757
4751
|
};
|
|
4758
4752
|
sql: {
|
|
4759
|
-
readonly where:
|
|
4753
|
+
readonly where: import("drizzle-orm").SQL<unknown> | undefined;
|
|
4760
4754
|
};
|
|
4761
4755
|
};
|
|
4762
4756
|
};
|
|
@@ -4823,7 +4817,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4823
4817
|
* When calling this function, the schema will be built for the first time and cached for later usage. So you can call this function multiple times without performance issues.
|
|
4824
4818
|
* After calling, you cannot adjust the schema via the schema builder
|
|
4825
4819
|
*/
|
|
4826
|
-
buildSchema: () =>
|
|
4820
|
+
buildSchema: () => import("graphql").GraphQLSchema;
|
|
4827
4821
|
};
|
|
4828
4822
|
//#endregion
|
|
4829
4823
|
//#region lib/types/rumbleError.d.ts
|