@ken2008/zapit-schema 0.1.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/README.md +16 -0
- package/generated/prisma/client.d.ts +1 -0
- package/generated/prisma/client.js +5 -0
- package/generated/prisma/default.d.ts +1 -0
- package/generated/prisma/default.js +5 -0
- package/generated/prisma/edge.d.ts +1 -0
- package/generated/prisma/edge.js +3072 -0
- package/generated/prisma/index-browser.js +3098 -0
- package/generated/prisma/index.d.ts +359962 -0
- package/generated/prisma/index.js +3072 -0
- package/generated/prisma/package.json +144 -0
- package/generated/prisma/query_compiler_fast_bg.js +2 -0
- package/generated/prisma/query_compiler_fast_bg.wasm +0 -0
- package/generated/prisma/query_compiler_fast_bg.wasm-base64.js +2 -0
- package/generated/prisma/runtime/client.d.ts +3330 -0
- package/generated/prisma/runtime/client.js +86 -0
- package/generated/prisma/runtime/index-browser.d.ts +87 -0
- package/generated/prisma/runtime/index-browser.js +6 -0
- package/generated/prisma/runtime/wasm-compiler-edge.js +76 -0
- package/generated/prisma/schema.prisma +3735 -0
- package/generated/prisma/wasm-edge-light-loader.mjs +5 -0
- package/generated/prisma/wasm-worker-loader.mjs +5 -0
- package/package.json +37 -0
- package/prisma/migrations/20250507132411_zapit/migration.sql +183 -0
- package/prisma/migrations/migration_lock.toml +3 -0
- package/prisma/schema.prisma +3735 -0
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { AnyNull } from '@prisma/client-runtime-utils';
|
|
2
|
+
import { DbNull } from '@prisma/client-runtime-utils';
|
|
3
|
+
import { Decimal } from '@prisma/client-runtime-utils';
|
|
4
|
+
import { isAnyNull } from '@prisma/client-runtime-utils';
|
|
5
|
+
import { isDbNull } from '@prisma/client-runtime-utils';
|
|
6
|
+
import { isJsonNull } from '@prisma/client-runtime-utils';
|
|
7
|
+
import { JsonNull } from '@prisma/client-runtime-utils';
|
|
8
|
+
import { NullTypes } from '@prisma/client-runtime-utils';
|
|
9
|
+
|
|
10
|
+
export { AnyNull }
|
|
11
|
+
|
|
12
|
+
declare type Args<T, F extends Operation> = T extends {
|
|
13
|
+
[K: symbol]: {
|
|
14
|
+
types: {
|
|
15
|
+
operations: {
|
|
16
|
+
[K in F]: {
|
|
17
|
+
args: any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
} ? T[symbol]['types']['operations'][F]['args'] : any;
|
|
23
|
+
|
|
24
|
+
export { DbNull }
|
|
25
|
+
|
|
26
|
+
export { Decimal }
|
|
27
|
+
|
|
28
|
+
declare type Exact<A, W> = (A extends unknown ? (W extends A ? {
|
|
29
|
+
[K in keyof A]: Exact<A[K], W[K]>;
|
|
30
|
+
} : W) : never) | (A extends Narrowable ? A : never);
|
|
31
|
+
|
|
32
|
+
export declare function getRuntime(): GetRuntimeOutput;
|
|
33
|
+
|
|
34
|
+
declare type GetRuntimeOutput = {
|
|
35
|
+
id: RuntimeName;
|
|
36
|
+
prettyName: string;
|
|
37
|
+
isEdge: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { isAnyNull }
|
|
41
|
+
|
|
42
|
+
export { isDbNull }
|
|
43
|
+
|
|
44
|
+
export { isJsonNull }
|
|
45
|
+
|
|
46
|
+
export { JsonNull }
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Generates more strict variant of an enum which, unlike regular enum,
|
|
50
|
+
* throws on non-existing property access. This can be useful in following situations:
|
|
51
|
+
* - we have an API, that accepts both `undefined` and `SomeEnumType` as an input
|
|
52
|
+
* - enum values are generated dynamically from DMMF.
|
|
53
|
+
*
|
|
54
|
+
* In that case, if using normal enums and no compile-time typechecking, using non-existing property
|
|
55
|
+
* will result in `undefined` value being used, which will be accepted. Using strict enum
|
|
56
|
+
* in this case will help to have a runtime exception, telling you that you are probably doing something wrong.
|
|
57
|
+
*
|
|
58
|
+
* Note: if you need to check for existence of a value in the enum you can still use either
|
|
59
|
+
* `in` operator or `hasOwnProperty` function.
|
|
60
|
+
*
|
|
61
|
+
* @param definition
|
|
62
|
+
* @returns
|
|
63
|
+
*/
|
|
64
|
+
export declare function makeStrictEnum<T extends Record<PropertyKey, string | number>>(definition: T): T;
|
|
65
|
+
|
|
66
|
+
declare type Narrowable = string | number | bigint | boolean | [];
|
|
67
|
+
|
|
68
|
+
export { NullTypes }
|
|
69
|
+
|
|
70
|
+
declare type Operation = 'findFirst' | 'findFirstOrThrow' | 'findUnique' | 'findUniqueOrThrow' | 'findMany' | 'create' | 'createMany' | 'createManyAndReturn' | 'update' | 'updateMany' | 'updateManyAndReturn' | 'upsert' | 'delete' | 'deleteMany' | 'aggregate' | 'count' | 'groupBy' | '$queryRaw' | '$executeRaw' | '$queryRawUnsafe' | '$executeRawUnsafe' | 'findRaw' | 'aggregateRaw' | '$runCommandRaw';
|
|
71
|
+
|
|
72
|
+
declare namespace Public {
|
|
73
|
+
export {
|
|
74
|
+
validator
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
export { Public }
|
|
78
|
+
|
|
79
|
+
declare type RuntimeName = 'workerd' | 'deno' | 'netlify' | 'node' | 'bun' | 'edge-light' | '';
|
|
80
|
+
|
|
81
|
+
declare function validator<V>(): <S>(select: Exact<S, V>) => S;
|
|
82
|
+
|
|
83
|
+
declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation>(client: C, model: M, operation: O): <S>(select: Exact<S, Args<C[M], O>>) => S;
|
|
84
|
+
|
|
85
|
+
declare function validator<C, M extends Exclude<keyof C, `$${string}`>, O extends keyof C[M] & Operation, P extends keyof Args<C[M], O>>(client: C, model: M, operation: O, prop: P): <S>(select: Exact<S, Args<C[M], O>[P]>) => S;
|
|
86
|
+
|
|
87
|
+
export { }
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!!
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
"use strict";var s=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var a=(e,t)=>{for(var n in t)s(e,n,{get:t[n],enumerable:!0})},y=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of p(t))!f.call(e,i)&&i!==n&&s(e,i,{get:()=>t[i],enumerable:!(r=g(t,i))||r.enumerable});return e};var x=e=>y(s({},"__esModule",{value:!0}),e);var O={};a(O,{AnyNull:()=>o.AnyNull,DbNull:()=>o.DbNull,Decimal:()=>m.Decimal,JsonNull:()=>o.JsonNull,NullTypes:()=>o.NullTypes,Public:()=>l,getRuntime:()=>c,isAnyNull:()=>o.isAnyNull,isDbNull:()=>o.isDbNull,isJsonNull:()=>o.isJsonNull,makeStrictEnum:()=>u});module.exports=x(O);var l={};a(l,{validator:()=>d});function d(...e){return t=>t}var b=new Set(["toJSON","$$typeof","asymmetricMatch",Symbol.iterator,Symbol.toStringTag,Symbol.isConcatSpreadable,Symbol.toPrimitive]);function u(e){return new Proxy(e,{get(t,n){if(n in t)return t[n];if(!b.has(n))throw new TypeError("Invalid enum value: ".concat(String(n)))}})}var N=()=>{var e,t;return((t=(e=globalThis.process)==null?void 0:e.release)==null?void 0:t.name)==="node"},S=()=>{var e,t;return!!globalThis.Bun||!!((t=(e=globalThis.process)==null?void 0:e.versions)!=null&&t.bun)},E=()=>!!globalThis.Deno,R=()=>typeof globalThis.Netlify=="object",h=()=>typeof globalThis.EdgeRuntime=="object",C=()=>{var e;return((e=globalThis.navigator)==null?void 0:e.userAgent)==="Cloudflare-Workers"};function k(){var n;return(n=[[R,"netlify"],[h,"edge-light"],[C,"workerd"],[E,"deno"],[S,"bun"],[N,"node"]].flatMap(r=>r[0]()?[r[1]]:[]).at(0))!=null?n:""}var M={node:"Node.js",workerd:"Cloudflare Workers",deno:"Deno and Deno Deploy",netlify:"Netlify Edge Functions","edge-light":"Edge Runtime (Vercel Edge Functions, Vercel Edge Middleware, Next.js (Pages Router) Edge API Routes, Next.js (App Router) Edge Route Handlers or Next.js Middleware)"};function c(){let e=k();return{id:e,prettyName:M[e]||e,isEdge:["workerd","deno","netlify","edge-light"].includes(e)}}var o=require("@prisma/client-runtime-utils"),m=require("@prisma/client-runtime-utils");0&&(module.exports={AnyNull,DbNull,Decimal,JsonNull,NullTypes,Public,getRuntime,isAnyNull,isDbNull,isJsonNull,makeStrictEnum});
|
|
6
|
+
//# sourceMappingURL=index-browser.js.map
|