@betterinternship/db 1.0.3 → 1.0.5
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/dist/db/index.d.ts +10 -10
- package/dist/db/index.js +11 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17 -17
- package/dist/prisma/browser.d.ts +6 -6
- package/dist/prisma/browser.js +43 -43
- package/dist/prisma/client.d.ts +10 -10
- package/dist/prisma/client.js +48 -48
- package/dist/prisma/commonInputTypes.d.ts +284 -284
- package/dist/prisma/commonInputTypes.js +2 -2
- package/dist/prisma/enums.d.ts +1 -1
- package/dist/prisma/enums.js +2 -2
- package/dist/prisma/internal/class.d.ts +38 -38
- package/dist/prisma/internal/class.js +65 -65
- package/dist/prisma/internal/prismaNamespace.d.ts +462 -462
- package/dist/prisma/internal/prismaNamespace.js +112 -112
- package/dist/prisma/internal/prismaNamespaceBrowser.d.ts +71 -71
- package/dist/prisma/internal/prismaNamespaceBrowser.js +96 -96
- package/dist/prisma/models/processes.d.ts +503 -503
- package/dist/prisma/models/processes.js +2 -2
- package/dist/prisma/models/tasks.d.ts +747 -747
- package/dist/prisma/models/tasks.js +2 -2
- package/dist/prisma/models.d.ts +3 -3
- package/dist/prisma/models.js +2 -2
- package/package.json +1 -1
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
-
import type * as Prisma from "./prismaNamespace.js";
|
|
3
|
-
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
|
|
4
|
-
export interface PrismaClientConstructor {
|
|
5
|
-
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
6
|
-
omit: infer U;
|
|
7
|
-
} ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
8
|
-
}
|
|
9
|
-
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
10
|
-
[K: symbol]: {
|
|
11
|
-
types: Prisma.TypeMap<ExtArgs>['other'];
|
|
12
|
-
};
|
|
13
|
-
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
14
|
-
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
15
|
-
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
16
|
-
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
17
|
-
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
18
|
-
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
19
|
-
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
20
|
-
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
21
|
-
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
22
|
-
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
23
|
-
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
24
|
-
maxWait?: number;
|
|
25
|
-
timeout?: number;
|
|
26
|
-
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
27
|
-
}): runtime.Types.Utils.JsPromise<R>;
|
|
28
|
-
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
29
|
-
extArgs: ExtArgs;
|
|
30
|
-
}>>;
|
|
31
|
-
get processes(): Prisma.processesDelegate<ExtArgs, {
|
|
32
|
-
omit: OmitOpts;
|
|
33
|
-
}>;
|
|
34
|
-
get tasks(): Prisma.tasksDelegate<ExtArgs, {
|
|
35
|
-
omit: OmitOpts;
|
|
36
|
-
}>;
|
|
37
|
-
}
|
|
38
|
-
export declare function getPrismaClientClass(): PrismaClientConstructor;
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./prismaNamespace.js";
|
|
3
|
+
export type LogOptions<ClientOptions extends Prisma.PrismaClientOptions> = 'log' extends keyof ClientOptions ? ClientOptions['log'] extends Array<Prisma.LogLevel | Prisma.LogDefinition> ? Prisma.GetEvents<ClientOptions['log']> : never : never;
|
|
4
|
+
export interface PrismaClientConstructor {
|
|
5
|
+
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
6
|
+
omit: infer U;
|
|
7
|
+
} ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.Subset<Options, Prisma.PrismaClientOptions>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
8
|
+
}
|
|
9
|
+
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = undefined, in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
10
|
+
[K: symbol]: {
|
|
11
|
+
types: Prisma.TypeMap<ExtArgs>['other'];
|
|
12
|
+
};
|
|
13
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
14
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
15
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
16
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
17
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
18
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
19
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
20
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
21
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
22
|
+
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
23
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
24
|
+
maxWait?: number;
|
|
25
|
+
timeout?: number;
|
|
26
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
27
|
+
}): runtime.Types.Utils.JsPromise<R>;
|
|
28
|
+
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
29
|
+
extArgs: ExtArgs;
|
|
30
|
+
}>>;
|
|
31
|
+
get processes(): Prisma.processesDelegate<ExtArgs, {
|
|
32
|
+
omit: OmitOpts;
|
|
33
|
+
}>;
|
|
34
|
+
get tasks(): Prisma.tasksDelegate<ExtArgs, {
|
|
35
|
+
omit: OmitOpts;
|
|
36
|
+
}>;
|
|
37
|
+
}
|
|
38
|
+
export declare function getPrismaClientClass(): PrismaClientConstructor;
|
|
@@ -1,66 +1,66 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.getPrismaClientClass = getPrismaClientClass;
|
|
37
|
-
const runtime = __importStar(require("@prisma/client/runtime/client"));
|
|
38
|
-
const config = {
|
|
39
|
-
"previewFeatures": [],
|
|
40
|
-
"clientVersion": "7.2.0",
|
|
41
|
-
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
42
|
-
"activeProvider": "postgresql",
|
|
43
|
-
"inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\n/// This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.\nmodel processes {\n id String @id @default(dbgenerated(\"gen_random_uuid()\")) @db.Uuid\n result Json?\n status String @default(\"pending\")\n error Json?\n timestamp DateTime @default(now()) @db.Timestamptz(6)\n tasks tasks[]\n}\n\n/// This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.\nmodel tasks {\n id String @id @default(dbgenerated(\"gen_random_uuid()\")) @db.Uuid\n internal_id String\n handler_id String\n process_id String @db.Uuid\n result Json?\n status String @default(\"pending\")\n error Json?\n retries Int @default(0)\n max_retries Int\n timestamp DateTime @default(now()) @db.Timestamptz(6)\n processes processes @relation(fields: [process_id], references: [id], onDelete: Cascade, map: \"fk_processes\")\n}\n",
|
|
44
|
-
"runtimeDataModel": {
|
|
45
|
-
"models": {},
|
|
46
|
-
"enums": {},
|
|
47
|
-
"types": {}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
config.runtimeDataModel = JSON.parse("{\"models\":{\"processes\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"result\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"error\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tasks\",\"kind\":\"object\",\"type\":\"tasks\",\"relationName\":\"processesTotasks\"}],\"dbName\":null},\"tasks\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"internal_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"handler_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"process_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"result\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"error\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"retries\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"max_retries\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"processes\",\"kind\":\"object\",\"type\":\"processes\",\"relationName\":\"processesTotasks\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}");
|
|
51
|
-
async function decodeBase64AsWasm(wasmBase64) {
|
|
52
|
-
const { Buffer } = await import('node:buffer');
|
|
53
|
-
const wasmArray = Buffer.from(wasmBase64, 'base64');
|
|
54
|
-
return new WebAssembly.Module(wasmArray);
|
|
55
|
-
}
|
|
56
|
-
config.compilerWasm = {
|
|
57
|
-
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.mjs"),
|
|
58
|
-
getQueryCompilerWasmModule: async () => {
|
|
59
|
-
const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.mjs");
|
|
60
|
-
return await decodeBase64AsWasm(wasm);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
function getPrismaClientClass() {
|
|
64
|
-
return runtime.getPrismaClient(config);
|
|
65
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.getPrismaClientClass = getPrismaClientClass;
|
|
37
|
+
const runtime = __importStar(require("@prisma/client/runtime/client"));
|
|
38
|
+
const config = {
|
|
39
|
+
"previewFeatures": [],
|
|
40
|
+
"clientVersion": "7.2.0",
|
|
41
|
+
"engineVersion": "0c8ef2ce45c83248ab3df073180d5eda9e8be7a3",
|
|
42
|
+
"activeProvider": "postgresql",
|
|
43
|
+
"inlineSchema": "generator client {\n provider = \"prisma-client\"\n output = \"../src/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n\n/// This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.\nmodel processes {\n id String @id @default(dbgenerated(\"gen_random_uuid()\")) @db.Uuid\n result Json?\n status String @default(\"pending\")\n error Json?\n timestamp DateTime @default(now()) @db.Timestamptz(6)\n tasks tasks[]\n}\n\n/// This table contains check constraints and requires additional setup for migrations. Visit https://pris.ly/d/check-constraints for more info.\nmodel tasks {\n id String @id @default(dbgenerated(\"gen_random_uuid()\")) @db.Uuid\n internal_id String\n handler_id String\n process_id String @db.Uuid\n result Json?\n status String @default(\"pending\")\n error Json?\n retries Int @default(0)\n max_retries Int\n timestamp DateTime @default(now()) @db.Timestamptz(6)\n processes processes @relation(fields: [process_id], references: [id], onDelete: Cascade, map: \"fk_processes\")\n}\n",
|
|
44
|
+
"runtimeDataModel": {
|
|
45
|
+
"models": {},
|
|
46
|
+
"enums": {},
|
|
47
|
+
"types": {}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{\"processes\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"result\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"error\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"tasks\",\"kind\":\"object\",\"type\":\"tasks\",\"relationName\":\"processesTotasks\"}],\"dbName\":null},\"tasks\":{\"fields\":[{\"name\":\"id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"internal_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"handler_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"process_id\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"result\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"status\",\"kind\":\"scalar\",\"type\":\"String\"},{\"name\":\"error\",\"kind\":\"scalar\",\"type\":\"Json\"},{\"name\":\"retries\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"max_retries\",\"kind\":\"scalar\",\"type\":\"Int\"},{\"name\":\"timestamp\",\"kind\":\"scalar\",\"type\":\"DateTime\"},{\"name\":\"processes\",\"kind\":\"object\",\"type\":\"processes\",\"relationName\":\"processesTotasks\"}],\"dbName\":null}},\"enums\":{},\"types\":{}}");
|
|
51
|
+
async function decodeBase64AsWasm(wasmBase64) {
|
|
52
|
+
const { Buffer } = await import('node:buffer');
|
|
53
|
+
const wasmArray = Buffer.from(wasmBase64, 'base64');
|
|
54
|
+
return new WebAssembly.Module(wasmArray);
|
|
55
|
+
}
|
|
56
|
+
config.compilerWasm = {
|
|
57
|
+
getRuntime: async () => await import("@prisma/client/runtime/query_compiler_bg.postgresql.mjs"),
|
|
58
|
+
getQueryCompilerWasmModule: async () => {
|
|
59
|
+
const { wasm } = await import("@prisma/client/runtime/query_compiler_bg.postgresql.wasm-base64.mjs");
|
|
60
|
+
return await decodeBase64AsWasm(wasm);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
function getPrismaClientClass() {
|
|
64
|
+
return runtime.getPrismaClient(config);
|
|
65
|
+
}
|
|
66
66
|
//# sourceMappingURL=class.js.map
|