@m1212e/rumble 0.16.28 → 0.16.31
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 +18 -12
- package/out/index.cjs.map +1 -1
- package/out/index.d.cts +26 -26
- package/out/index.d.cts.map +1 -1
- package/out/index.d.mts +26 -26
- package/out/index.d.mts.map +1 -1
- package/out/index.mjs +18 -12
- package/out/index.mjs.map +1 -1
- package/package.json +19 -19
package/out/index.d.cts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/// <reference types="urlpattern-polyfill" />
|
|
2
2
|
import { GraphQLError } from "graphql";
|
|
3
3
|
import { MySqlDatabase } from "drizzle-orm/mysql-core";
|
|
4
|
-
import * as drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
4
|
+
import * as _$drizzle_orm_pg_core0 from "drizzle-orm/pg-core";
|
|
5
5
|
import { PgAsyncDatabase } from "drizzle-orm/pg-core";
|
|
6
6
|
import { BaseSQLiteDatabase } from "drizzle-orm/sqlite-core";
|
|
7
|
-
import * as drizzle_orm0 from "drizzle-orm";
|
|
8
|
-
import * as graphql_yoga0 from "graphql-yoga";
|
|
7
|
+
import * as _$drizzle_orm0 from "drizzle-orm";
|
|
8
|
+
import * as _$graphql_yoga0 from "graphql-yoga";
|
|
9
9
|
import { YogaServerOptions, createPubSub } from "graphql-yoga";
|
|
10
10
|
import { IncomingMessage, RequestListener, ServerResponse } from "node:http";
|
|
11
11
|
import { Http2ServerRequest, Http2ServerResponse } from "node:http2";
|
|
12
12
|
import { Socket } from "node:net";
|
|
13
|
-
import * as _pothos_plugin_drizzle0 from "@pothos/plugin-drizzle";
|
|
14
|
-
import * as _pothos_core0 from "@pothos/core";
|
|
13
|
+
import * as _$_pothos_plugin_drizzle0 from "@pothos/plugin-drizzle";
|
|
14
|
+
import * as _$_pothos_core0 from "@pothos/core";
|
|
15
15
|
import SchemaBuilder from "@pothos/core";
|
|
16
16
|
import { useSofa } from "sofa-api";
|
|
17
17
|
import { Tracer } from "@opentelemetry/api";
|
|
@@ -4356,7 +4356,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4356
4356
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4357
4357
|
};
|
|
4358
4358
|
sql: {
|
|
4359
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4359
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4360
4360
|
};
|
|
4361
4361
|
} & {
|
|
4362
4362
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4365,7 +4365,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4365
4365
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4366
4366
|
};
|
|
4367
4367
|
sql: {
|
|
4368
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4368
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4369
4369
|
};
|
|
4370
4370
|
};
|
|
4371
4371
|
};
|
|
@@ -4384,7 +4384,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4384
4384
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4385
4385
|
};
|
|
4386
4386
|
sql: {
|
|
4387
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4387
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4388
4388
|
};
|
|
4389
4389
|
} & {
|
|
4390
4390
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4393,7 +4393,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4393
4393
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4394
4394
|
};
|
|
4395
4395
|
sql: {
|
|
4396
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4396
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4397
4397
|
};
|
|
4398
4398
|
};
|
|
4399
4399
|
};
|
|
@@ -4444,7 +4444,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4444
4444
|
* explorer and will not apply the additional envelop armor plugin.
|
|
4445
4445
|
*/
|
|
4446
4446
|
enableApiDocs?: boolean;
|
|
4447
|
-
}) | undefined) => graphql_yoga0.YogaServerInstance<RequestEvent, {}>;
|
|
4447
|
+
}) | undefined) => _$graphql_yoga0.YogaServerInstance<RequestEvent, {}>;
|
|
4448
4448
|
/**
|
|
4449
4449
|
* Creates a sofa instance to offer a REST API.
|
|
4450
4450
|
*
|
|
@@ -4473,7 +4473,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4473
4473
|
table: TableName;
|
|
4474
4474
|
refName?: RefName | undefined;
|
|
4475
4475
|
readAction?: Action | undefined;
|
|
4476
|
-
adjust?: ((t: _pothos_plugin_drizzle0.DrizzleObjectFieldBuilder<PothosSchemaTypes.ExtendDefaultTypes<{
|
|
4476
|
+
adjust?: ((t: _$_pothos_plugin_drizzle0.DrizzleObjectFieldBuilder<PothosSchemaTypes.ExtendDefaultTypes<{
|
|
4477
4477
|
Context: Awaited<UserContext & {
|
|
4478
4478
|
abilities: keyof DrizzleQueryFunction<DB> extends infer T_2 extends keyof DrizzleQueryFunction<DB> ? { [key_1 in T_2]: {
|
|
4479
4479
|
filter: (action: Action) => {
|
|
@@ -4482,7 +4482,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4482
4482
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4483
4483
|
};
|
|
4484
4484
|
sql: {
|
|
4485
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4485
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4486
4486
|
};
|
|
4487
4487
|
} & {
|
|
4488
4488
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4491,7 +4491,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4491
4491
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4492
4492
|
};
|
|
4493
4493
|
sql: {
|
|
4494
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4494
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4495
4495
|
};
|
|
4496
4496
|
};
|
|
4497
4497
|
};
|
|
@@ -4535,8 +4535,8 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4535
4535
|
_: {
|
|
4536
4536
|
brand: "Table";
|
|
4537
4537
|
};
|
|
4538
|
-
}>["_"]["columns"][Key]["_"]["data"] | null } extends infer T_3 ? { [K in keyof T_3]: T_3[K] } : never>) => _pothos_core0.FieldMap) | undefined;
|
|
4539
|
-
}) => _pothos_plugin_drizzle0.DrizzleObjectRef<PothosSchemaTypes.ExtendDefaultTypes<{
|
|
4538
|
+
}>["_"]["columns"][Key]["_"]["data"] | null } extends infer T_3 ? { [K in keyof T_3]: T_3[K] } : never>) => _$_pothos_core0.FieldMap) | undefined;
|
|
4539
|
+
}) => _$_pothos_plugin_drizzle0.DrizzleObjectRef<PothosSchemaTypes.ExtendDefaultTypes<{
|
|
4540
4540
|
Context: Awaited<UserContext & {
|
|
4541
4541
|
abilities: keyof DrizzleQueryFunction<DB> extends infer T_2 extends keyof DrizzleQueryFunction<DB> ? { [key_1 in T_2]: {
|
|
4542
4542
|
filter: (action: Action) => {
|
|
@@ -4545,7 +4545,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4545
4545
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4546
4546
|
};
|
|
4547
4547
|
sql: {
|
|
4548
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4548
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4549
4549
|
};
|
|
4550
4550
|
} & {
|
|
4551
4551
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4554,7 +4554,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4554
4554
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4555
4555
|
};
|
|
4556
4556
|
sql: {
|
|
4557
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4557
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4558
4558
|
};
|
|
4559
4559
|
};
|
|
4560
4560
|
};
|
|
@@ -4582,9 +4582,9 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4582
4582
|
DateWhereInputArgument: DateWhereInputArgument;
|
|
4583
4583
|
};
|
|
4584
4584
|
DefaultFieldNullability: false;
|
|
4585
|
-
}>, TableName, drizzle_orm0.BuildQueryResult<DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName], true extends true | drizzle_orm0.DBQueryConfig<"one", DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName]> ? true : (true | drizzle_orm0.DBQueryConfig<"one", DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName]>) & {
|
|
4585
|
+
}>, TableName, _$drizzle_orm0.BuildQueryResult<DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName], true extends true | _$drizzle_orm0.DBQueryConfig<"one", DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName]> ? true : (true | _$drizzle_orm0.DBQueryConfig<"one", DB["_"]["relations"] & {}, (DB["_"]["relations"] & {})[TableName]>) & {
|
|
4586
4586
|
columns: {};
|
|
4587
|
-
}, drizzle_orm0.Assume<(DB["_"]["relations"] & {})[TableName]["table"], {
|
|
4587
|
+
}, _$drizzle_orm0.Assume<(DB["_"]["relations"] & {})[TableName]["table"], {
|
|
4588
4588
|
$inferSelect: Record<string, unknown>;
|
|
4589
4589
|
}>["$inferSelect"]>>;
|
|
4590
4590
|
/**
|
|
@@ -4611,7 +4611,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4611
4611
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4612
4612
|
};
|
|
4613
4613
|
sql: {
|
|
4614
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4614
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4615
4615
|
};
|
|
4616
4616
|
} & {
|
|
4617
4617
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4620,7 +4620,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4620
4620
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4621
4621
|
};
|
|
4622
4622
|
sql: {
|
|
4623
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4623
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4624
4624
|
};
|
|
4625
4625
|
};
|
|
4626
4626
|
};
|
|
@@ -4675,7 +4675,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4675
4675
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4676
4676
|
};
|
|
4677
4677
|
sql: {
|
|
4678
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4678
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4679
4679
|
};
|
|
4680
4680
|
} & {
|
|
4681
4681
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4684,7 +4684,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4684
4684
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4685
4685
|
};
|
|
4686
4686
|
sql: {
|
|
4687
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4687
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4688
4688
|
};
|
|
4689
4689
|
};
|
|
4690
4690
|
};
|
|
@@ -4756,7 +4756,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4756
4756
|
* The other helpers use this helper internally so in most cases you do not have to
|
|
4757
4757
|
* call this helper directly, unless you need the reference to an enum type
|
|
4758
4758
|
*/
|
|
4759
|
-
enum_: <ExplicitEnumVariableName extends keyof (NonNullable<DB["_"]["fullSchema"]> extends infer T_2 ? { [K in keyof T_2 as NonNullable<DB["_"]["fullSchema"]>[K] extends drizzle_orm_pg_core0.PgEnum<any> ? K : never]: T_2[K] } : never), EnumColumn extends drizzle_orm_pg_core0.PgEnum<any>, RefName_2 extends string>({
|
|
4759
|
+
enum_: <ExplicitEnumVariableName extends keyof (NonNullable<DB["_"]["fullSchema"]> extends infer T_2 ? { [K in keyof T_2 as NonNullable<DB["_"]["fullSchema"]>[K] extends _$drizzle_orm_pg_core0.PgEnum<any> ? K : never]: T_2[K] } : never), EnumColumn extends _$drizzle_orm_pg_core0.PgEnum<any>, RefName_2 extends string>({
|
|
4760
4760
|
tsName,
|
|
4761
4761
|
enumColumn,
|
|
4762
4762
|
refName
|
|
@@ -4777,7 +4777,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4777
4777
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4778
4778
|
};
|
|
4779
4779
|
sql: {
|
|
4780
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4780
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4781
4781
|
};
|
|
4782
4782
|
} & {
|
|
4783
4783
|
merge: (p: NonNullable<DrizzleQueryFunctionInput<DB, key_1>>) => {
|
|
@@ -4786,7 +4786,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Drizz
|
|
|
4786
4786
|
many: Pick<NonNullable<NonNullable<Parameters<DB["query"][key_1]["findMany"]>[0]>>, "where" | "limit">;
|
|
4787
4787
|
};
|
|
4788
4788
|
sql: {
|
|
4789
|
-
readonly where: drizzle_orm0.SQL<unknown> | undefined;
|
|
4789
|
+
readonly where: _$drizzle_orm0.SQL<unknown> | undefined;
|
|
4790
4790
|
};
|
|
4791
4791
|
};
|
|
4792
4792
|
};
|