@m1212e/rumble 0.0.9 → 0.0.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.
Files changed (3) hide show
  1. package/index.d.cts +3 -16
  2. package/index.d.ts +3 -16
  3. package/package.json +1 -1
package/index.d.cts CHANGED
@@ -1,21 +1,8 @@
1
- import { SchemaTypes, ObjectRef, abstractReturnShapeKey } from '@pothos/core';
2
- import { WithBrand } from './types.js';
1
+ import * as _pothos_plugin_drizzle from '@pothos/plugin-drizzle';
2
+ import { DrizzleClient } from '@pothos/plugin-drizzle';
3
3
  import * as graphql_yoga from 'graphql-yoga';
4
4
  import { YogaServerOptions } from 'graphql-yoga';
5
5
  import * as drizzle_orm from 'drizzle-orm';
6
- import { DrizzleClient } from '@pothos/plugin-drizzle';
7
-
8
- declare const drizzleTableKey: unique symbol;
9
- declare class DrizzleObjectRef<Types extends SchemaTypes, Table extends keyof Types["DrizzleRelationSchema"] = keyof Types["DrizzleRelationSchema"], T = {}> extends ObjectRef<Types, T> {
10
- [drizzleTableKey]: Types["DrizzleRelationSchema"][Table];
11
- [abstractReturnShapeKey]: WithBrand<T>;
12
- tableName: string;
13
- constructor(name: string, tableName: string);
14
- addBrand<V extends T | T[]>(value: V): V extends T[] ? {
15
- [K in keyof V]: WithBrand<V[K]>;
16
- } : WithBrand<V>;
17
- hasBrand(value: unknown): boolean;
18
- }
19
6
 
20
7
  type QueryConditionObject = Partial<{
21
8
  where: any;
@@ -139,7 +126,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
139
126
  tableName: ExplicitTableName;
140
127
  name: RefName;
141
128
  readAction?: Action;
142
- }) => DrizzleObjectRef<PothosSchemaTypes.ExtendDefaultTypes<{
129
+ }) => _pothos_plugin_drizzle.DrizzleObjectRef<PothosSchemaTypes.ExtendDefaultTypes<{
143
130
  Context: Awaited<ReturnType<(req: RequestEvent) => Promise<UserContext & {
144
131
  abilities: keyof DB["query"] extends infer T_2 extends keyof DB["query"] ? { [key_3 in T_2]: {
145
132
  filter: (action: Action, options?: {
package/index.d.ts CHANGED
@@ -1,21 +1,8 @@
1
- import { SchemaTypes, ObjectRef, abstractReturnShapeKey } from '@pothos/core';
2
- import { WithBrand } from './types.js';
1
+ import * as _pothos_plugin_drizzle from '@pothos/plugin-drizzle';
2
+ import { DrizzleClient } from '@pothos/plugin-drizzle';
3
3
  import * as graphql_yoga from 'graphql-yoga';
4
4
  import { YogaServerOptions } from 'graphql-yoga';
5
5
  import * as drizzle_orm from 'drizzle-orm';
6
- import { DrizzleClient } from '@pothos/plugin-drizzle';
7
-
8
- declare const drizzleTableKey: unique symbol;
9
- declare class DrizzleObjectRef<Types extends SchemaTypes, Table extends keyof Types["DrizzleRelationSchema"] = keyof Types["DrizzleRelationSchema"], T = {}> extends ObjectRef<Types, T> {
10
- [drizzleTableKey]: Types["DrizzleRelationSchema"][Table];
11
- [abstractReturnShapeKey]: WithBrand<T>;
12
- tableName: string;
13
- constructor(name: string, tableName: string);
14
- addBrand<V extends T | T[]>(value: V): V extends T[] ? {
15
- [K in keyof V]: WithBrand<V[K]>;
16
- } : WithBrand<V>;
17
- hasBrand(value: unknown): boolean;
18
- }
19
6
 
20
7
  type QueryConditionObject = Partial<{
21
8
  where: any;
@@ -139,7 +126,7 @@ declare const rumble: <UserContext extends Record<string, any>, DB extends Gener
139
126
  tableName: ExplicitTableName;
140
127
  name: RefName;
141
128
  readAction?: Action;
142
- }) => DrizzleObjectRef<PothosSchemaTypes.ExtendDefaultTypes<{
129
+ }) => _pothos_plugin_drizzle.DrizzleObjectRef<PothosSchemaTypes.ExtendDefaultTypes<{
143
130
  Context: Awaited<ReturnType<(req: RequestEvent) => Promise<UserContext & {
144
131
  abilities: keyof DB["query"] extends infer T_2 extends keyof DB["query"] ? { [key_3 in T_2]: {
145
132
  filter: (action: Action, options?: {
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@m1212e/rumble","module":"index.ts","type":"module","peerDependencies":{"typescript":"^5.7.2","drizzle-orm":"^0.38.3"},"dependencies":{"@pothos/core":"^4.3.0","@pothos/plugin-drizzle":"^0.5.3","graphql-yoga":"^5.10.8"},"version":"0.0.9","exports":{"./package.json":"./package.json",".":{"require":"./index.cjs","import":"./index.js","node":"./index.cjs","default":"./index.cjs"}}}
1
+ {"name":"@m1212e/rumble","module":"index.ts","type":"module","peerDependencies":{"typescript":"^5.7.2","drizzle-orm":"^0.38.3"},"dependencies":{"@pothos/plugin-drizzle":"^0.6.0","@pothos/core":"^4.3.0","graphql-yoga":"^5.10.9"},"version":"0.0.10","exports":{"./package.json":"./package.json",".":{"require":"./index.cjs","import":"./index.js","node":"./index.cjs","default":"./index.cjs"}}}