@toride/prisma 0.2.0 → 0.3.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.
Files changed (2) hide show
  1. package/dist/index.d.ts +4 -1
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -22,8 +22,11 @@ interface PrismaAdapterOptions {
22
22
  *
23
23
  * No Prisma dependency required - produces plain JS objects matching
24
24
  * Prisma's WHERE clause structure.
25
+ *
26
+ * @typeParam TQueryMap - Maps resource type names to their Prisma WHERE clause types.
27
+ * Defaults to `Record<string, PrismaWhere>` for backward compatibility.
25
28
  */
26
- declare function createPrismaAdapter(options?: PrismaAdapterOptions): ConstraintAdapter<PrismaWhere>;
29
+ declare function createPrismaAdapter<TQueryMap extends Record<string, PrismaWhere> = Record<string, PrismaWhere>>(options?: PrismaAdapterOptions): ConstraintAdapter<TQueryMap>;
27
30
  /** Options for createPrismaResolver. */
28
31
  interface PrismaResolverOptions {
29
32
  /** Fields to select. Defaults to all scalar fields. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toride/prisma",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Prisma integration for Toride authorization engine",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,7 +20,7 @@
20
20
  ]
21
21
  },
22
22
  "dependencies": {
23
- "toride": "0.2.0"
23
+ "toride": "0.3.0"
24
24
  },
25
25
  "publishConfig": {
26
26
  "access": "public"