@betterinternship/db 1.0.1 → 1.0.3
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 +12 -10
- package/dist/db/index.d.ts +10 -0
- package/dist/db/index.js +12 -0
- package/dist/db/index.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +18 -0
- package/dist/index.js.map +1 -0
- package/dist/prisma/browser.d.ts +6 -0
- package/dist/prisma/browser.js +44 -0
- package/dist/prisma/browser.js.map +1 -0
- package/dist/prisma/client.d.ts +10 -0
- package/dist/prisma/client.js +49 -0
- package/dist/prisma/client.js.map +1 -0
- package/dist/prisma/commonInputTypes.d.ts +284 -0
- package/dist/prisma/commonInputTypes.js +3 -0
- package/dist/prisma/commonInputTypes.js.map +1 -0
- package/dist/prisma/enums.d.ts +1 -0
- package/dist/prisma/enums.js +3 -0
- package/dist/prisma/enums.js.map +1 -0
- package/dist/prisma/internal/class.d.ts +38 -0
- package/dist/prisma/internal/class.js +66 -0
- package/dist/prisma/internal/class.js.map +1 -0
- package/dist/prisma/internal/prismaNamespace.d.ts +462 -0
- package/dist/prisma/internal/prismaNamespace.js +113 -0
- package/dist/prisma/internal/prismaNamespace.js.map +1 -0
- package/dist/prisma/internal/prismaNamespaceBrowser.d.ts +71 -0
- package/dist/prisma/internal/prismaNamespaceBrowser.js +97 -0
- package/dist/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
- package/dist/prisma/models/processes.d.ts +503 -0
- package/dist/prisma/models/processes.js +3 -0
- package/dist/prisma/models/processes.js.map +1 -0
- package/dist/prisma/models/tasks.d.ts +747 -0
- package/dist/prisma/models/tasks.js +3 -0
- package/dist/prisma/models/tasks.js.map +1 -0
- package/dist/prisma/models.d.ts +3 -0
- package/dist/prisma/models.js +3 -0
- package/dist/prisma/models.js.map +1 -0
- package/dist/prisma.config.js.map +1 -1
- package/dist/src/db/index.d.ts +10 -0
- package/dist/src/db/index.js +12 -0
- package/dist/src/db/index.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -37
package/README.md
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
# BetterInternship Master DB
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
# BetterInternship Master DB
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
> Make sure to include DB_URL as an env variable; it should be the direct database connection string
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
# This pulls the latest schema from our postgresql database.
|
|
8
|
+
# Url is stored in the env (DB_URL)
|
|
9
|
+
npx prisma db pull
|
|
10
|
+
|
|
11
|
+
# This regenerates the Prisma Client
|
|
12
|
+
npx prisma generate
|
|
11
13
|
```
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { tasks as _tTask, processes as _tProcess } from '../prisma/client';
|
|
2
|
+
export declare const prisma: import("../prisma/internal/class").PrismaClient<never, import("../prisma/internal/prismaNamespace").GlobalOmitConfig | undefined, import("@prisma/client/runtime/client").DefaultArgs>;
|
|
3
|
+
export type Task = _tTask;
|
|
4
|
+
export type Process = _tProcess;
|
|
5
|
+
export declare const tasks: import("../prisma/models").tasksDelegate<import("@prisma/client/runtime/client").DefaultArgs, {
|
|
6
|
+
omit: import("../prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export declare const processes: import("../prisma/models").processesDelegate<import("@prisma/client/runtime/client").DefaultArgs, {
|
|
9
|
+
omit: import("../prisma/internal/prismaNamespace").GlobalOmitConfig | undefined;
|
|
10
|
+
}>;
|
package/dist/db/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.processes = exports.tasks = exports.prisma = void 0;
|
|
4
|
+
const adapter_pg_1 = require("@prisma/adapter-pg");
|
|
5
|
+
const client_1 = require("../prisma/client");
|
|
6
|
+
const adapter = new adapter_pg_1.PrismaPg({
|
|
7
|
+
connectionString: process.env.DB_URL
|
|
8
|
+
});
|
|
9
|
+
exports.prisma = new client_1.PrismaClient({ adapter });
|
|
10
|
+
exports.tasks = exports.prisma.tasks;
|
|
11
|
+
exports.processes = exports.prisma.processes;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/db/index.ts"],"names":[],"mappings":";;;AAAA,mDAA6C;AAC7C,6CAGiD;AAEjD,MAAM,OAAO,GAAG,IAAI,qBAAQ,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC,GAAG,CAAC,MAAO;CACrC,CAAC,CAAA;AAEW,QAAA,MAAM,GAAG,IAAI,qBAAY,CAAC,EAAE,OAAO,EAAE,CAAC,CAAA;AAOtC,QAAA,KAAK,GAAG,cAAM,CAAC,KAAK,CAAC;AACrB,QAAA,SAAS,GAAG,cAAM,CAAC,SAAS,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/db';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./src/db"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.$Enums = exports.Prisma = void 0;
|
|
40
|
+
const Prisma = __importStar(require("./internal/prismaNamespaceBrowser.js"));
|
|
41
|
+
exports.Prisma = Prisma;
|
|
42
|
+
exports.$Enums = __importStar(require("./enums.js"));
|
|
43
|
+
__exportStar(require("./enums.js"), exports);
|
|
44
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../src/prisma/browser.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,6EAA8D;AACrD,wBAAM;AACf,qDAAoC;AACpC,6CAA2B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import * as $Class from "./internal/class.js";
|
|
3
|
+
import * as Prisma from "./internal/prismaNamespace.js";
|
|
4
|
+
export * as $Enums from './enums.js';
|
|
5
|
+
export * from "./enums.js";
|
|
6
|
+
export declare const PrismaClient: $Class.PrismaClientConstructor;
|
|
7
|
+
export type PrismaClient<LogOpts extends Prisma.LogLevel = never, OmitOpts extends Prisma.PrismaClientOptions["omit"] = Prisma.PrismaClientOptions["omit"], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = $Class.PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
8
|
+
export { Prisma };
|
|
9
|
+
export type processes = Prisma.processesModel;
|
|
10
|
+
export type tasks = Prisma.tasksModel;
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
36
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.Prisma = exports.PrismaClient = exports.$Enums = void 0;
|
|
40
|
+
const path = __importStar(require("node:path"));
|
|
41
|
+
const node_url_1 = require("node:url");
|
|
42
|
+
globalThis['__dirname'] = path.dirname((0, node_url_1.fileURLToPath)(import.meta.url));
|
|
43
|
+
const $Class = __importStar(require("./internal/class.js"));
|
|
44
|
+
const Prisma = __importStar(require("./internal/prismaNamespace.js"));
|
|
45
|
+
exports.Prisma = Prisma;
|
|
46
|
+
exports.$Enums = __importStar(require("./enums.js"));
|
|
47
|
+
__exportStar(require("./enums.js"), exports);
|
|
48
|
+
exports.PrismaClient = $Class.getPrismaClientClass();
|
|
49
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../src/prisma/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,gDAAiC;AACjC,uCAAwC;AACxC,UAAU,CAAC,WAAW,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,IAAA,wBAAa,EAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAA;AAItE,4DAA6C;AAC7C,sEAAuD;AAmB9C,wBAAM;AAjBf,qDAAoC;AACpC,6CAA0B;AAcb,QAAA,YAAY,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAA"}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import type * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./internal/prismaNamespace.js";
|
|
3
|
+
export type UuidFilter<$PrismaModel = never> = {
|
|
4
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
5
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
6
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
7
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
8
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
9
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
10
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
11
|
+
mode?: Prisma.QueryMode;
|
|
12
|
+
not?: Prisma.NestedUuidFilter<$PrismaModel> | string;
|
|
13
|
+
};
|
|
14
|
+
export type JsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
15
|
+
export type JsonNullableFilterBase<$PrismaModel = never> = {
|
|
16
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
17
|
+
path?: string[];
|
|
18
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
19
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
20
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
21
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
22
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
23
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
24
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
25
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
26
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
27
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
28
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
29
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
30
|
+
};
|
|
31
|
+
export type StringFilter<$PrismaModel = never> = {
|
|
32
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
33
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
34
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
35
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
36
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
37
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
38
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
39
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
40
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
41
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
42
|
+
mode?: Prisma.QueryMode;
|
|
43
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
44
|
+
};
|
|
45
|
+
export type DateTimeFilter<$PrismaModel = never> = {
|
|
46
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
47
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
48
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
49
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
50
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
51
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
52
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
53
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
54
|
+
};
|
|
55
|
+
export type SortOrderInput = {
|
|
56
|
+
sort: Prisma.SortOrder;
|
|
57
|
+
nulls?: Prisma.NullsOrder;
|
|
58
|
+
};
|
|
59
|
+
export type UuidWithAggregatesFilter<$PrismaModel = never> = {
|
|
60
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
61
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
62
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
63
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
64
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
65
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
66
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
67
|
+
mode?: Prisma.QueryMode;
|
|
68
|
+
not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string;
|
|
69
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
70
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
71
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
72
|
+
};
|
|
73
|
+
export type JsonNullableWithAggregatesFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, Exclude<keyof Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>, Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<JsonNullableWithAggregatesFilterBase<$PrismaModel>>, 'path'>>;
|
|
74
|
+
export type JsonNullableWithAggregatesFilterBase<$PrismaModel = never> = {
|
|
75
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
76
|
+
path?: string[];
|
|
77
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
78
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
79
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
80
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
81
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
82
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
83
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
84
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
85
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
86
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
87
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
88
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
89
|
+
_count?: Prisma.NestedIntNullableFilter<$PrismaModel>;
|
|
90
|
+
_min?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
91
|
+
_max?: Prisma.NestedJsonNullableFilter<$PrismaModel>;
|
|
92
|
+
};
|
|
93
|
+
export type StringWithAggregatesFilter<$PrismaModel = never> = {
|
|
94
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
95
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
96
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
97
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
98
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
99
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
100
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
101
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
102
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
103
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
104
|
+
mode?: Prisma.QueryMode;
|
|
105
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
106
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
107
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
108
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
109
|
+
};
|
|
110
|
+
export type DateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
111
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
112
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
113
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
114
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
115
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
116
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
117
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
118
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
119
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
120
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
121
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
122
|
+
};
|
|
123
|
+
export type IntFilter<$PrismaModel = never> = {
|
|
124
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
125
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
126
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
127
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
128
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
129
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
130
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
131
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
132
|
+
};
|
|
133
|
+
export type IntWithAggregatesFilter<$PrismaModel = never> = {
|
|
134
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
135
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
136
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
137
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
138
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
139
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
140
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
141
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
142
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
143
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
144
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
145
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
146
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
147
|
+
};
|
|
148
|
+
export type NestedUuidFilter<$PrismaModel = never> = {
|
|
149
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
150
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
151
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
152
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
153
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
154
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
155
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
156
|
+
not?: Prisma.NestedUuidFilter<$PrismaModel> | string;
|
|
157
|
+
};
|
|
158
|
+
export type NestedStringFilter<$PrismaModel = never> = {
|
|
159
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
160
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
161
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
162
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
163
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
164
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
165
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
166
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
167
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
168
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
169
|
+
not?: Prisma.NestedStringFilter<$PrismaModel> | string;
|
|
170
|
+
};
|
|
171
|
+
export type NestedDateTimeFilter<$PrismaModel = never> = {
|
|
172
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
173
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
174
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
175
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
176
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
177
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
178
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
179
|
+
not?: Prisma.NestedDateTimeFilter<$PrismaModel> | Date | string;
|
|
180
|
+
};
|
|
181
|
+
export type NestedUuidWithAggregatesFilter<$PrismaModel = never> = {
|
|
182
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
183
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
184
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
185
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
186
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
187
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
188
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
189
|
+
not?: Prisma.NestedUuidWithAggregatesFilter<$PrismaModel> | string;
|
|
190
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
191
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
192
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
193
|
+
};
|
|
194
|
+
export type NestedIntFilter<$PrismaModel = never> = {
|
|
195
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
196
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
197
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
198
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
199
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
200
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
201
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
202
|
+
not?: Prisma.NestedIntFilter<$PrismaModel> | number;
|
|
203
|
+
};
|
|
204
|
+
export type NestedIntNullableFilter<$PrismaModel = never> = {
|
|
205
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel> | null;
|
|
206
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
207
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null;
|
|
208
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
209
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
210
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
211
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
212
|
+
not?: Prisma.NestedIntNullableFilter<$PrismaModel> | number | null;
|
|
213
|
+
};
|
|
214
|
+
export type NestedJsonNullableFilter<$PrismaModel = never> = Prisma.PatchUndefined<Prisma.Either<Required<NestedJsonNullableFilterBase<$PrismaModel>>, Exclude<keyof Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>, Required<NestedJsonNullableFilterBase<$PrismaModel>>> | Prisma.OptionalFlat<Omit<Required<NestedJsonNullableFilterBase<$PrismaModel>>, 'path'>>;
|
|
215
|
+
export type NestedJsonNullableFilterBase<$PrismaModel = never> = {
|
|
216
|
+
equals?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
217
|
+
path?: string[];
|
|
218
|
+
mode?: Prisma.QueryMode | Prisma.EnumQueryModeFieldRefInput<$PrismaModel>;
|
|
219
|
+
string_contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
220
|
+
string_starts_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
221
|
+
string_ends_with?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
222
|
+
array_starts_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
223
|
+
array_ends_with?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
224
|
+
array_contains?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | null;
|
|
225
|
+
lt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
226
|
+
lte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
227
|
+
gt?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
228
|
+
gte?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel>;
|
|
229
|
+
not?: runtime.InputJsonValue | Prisma.JsonFieldRefInput<$PrismaModel> | Prisma.JsonNullValueFilter;
|
|
230
|
+
};
|
|
231
|
+
export type NestedStringWithAggregatesFilter<$PrismaModel = never> = {
|
|
232
|
+
equals?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
233
|
+
in?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
234
|
+
notIn?: string[] | Prisma.ListStringFieldRefInput<$PrismaModel>;
|
|
235
|
+
lt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
236
|
+
lte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
237
|
+
gt?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
238
|
+
gte?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
239
|
+
contains?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
240
|
+
startsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
241
|
+
endsWith?: string | Prisma.StringFieldRefInput<$PrismaModel>;
|
|
242
|
+
not?: Prisma.NestedStringWithAggregatesFilter<$PrismaModel> | string;
|
|
243
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
244
|
+
_min?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
245
|
+
_max?: Prisma.NestedStringFilter<$PrismaModel>;
|
|
246
|
+
};
|
|
247
|
+
export type NestedDateTimeWithAggregatesFilter<$PrismaModel = never> = {
|
|
248
|
+
equals?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
249
|
+
in?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
250
|
+
notIn?: Date[] | string[] | Prisma.ListDateTimeFieldRefInput<$PrismaModel>;
|
|
251
|
+
lt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
252
|
+
lte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
253
|
+
gt?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
254
|
+
gte?: Date | string | Prisma.DateTimeFieldRefInput<$PrismaModel>;
|
|
255
|
+
not?: Prisma.NestedDateTimeWithAggregatesFilter<$PrismaModel> | Date | string;
|
|
256
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
257
|
+
_min?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
258
|
+
_max?: Prisma.NestedDateTimeFilter<$PrismaModel>;
|
|
259
|
+
};
|
|
260
|
+
export type NestedIntWithAggregatesFilter<$PrismaModel = never> = {
|
|
261
|
+
equals?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
262
|
+
in?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
263
|
+
notIn?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>;
|
|
264
|
+
lt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
265
|
+
lte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
266
|
+
gt?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
267
|
+
gte?: number | Prisma.IntFieldRefInput<$PrismaModel>;
|
|
268
|
+
not?: Prisma.NestedIntWithAggregatesFilter<$PrismaModel> | number;
|
|
269
|
+
_count?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
270
|
+
_avg?: Prisma.NestedFloatFilter<$PrismaModel>;
|
|
271
|
+
_sum?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
272
|
+
_min?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
273
|
+
_max?: Prisma.NestedIntFilter<$PrismaModel>;
|
|
274
|
+
};
|
|
275
|
+
export type NestedFloatFilter<$PrismaModel = never> = {
|
|
276
|
+
equals?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
277
|
+
in?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
|
278
|
+
notIn?: number[] | Prisma.ListFloatFieldRefInput<$PrismaModel>;
|
|
279
|
+
lt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
280
|
+
lte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
281
|
+
gt?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
282
|
+
gte?: number | Prisma.FloatFieldRefInput<$PrismaModel>;
|
|
283
|
+
not?: Prisma.NestedFloatFilter<$PrismaModel> | number;
|
|
284
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonInputTypes.js","sourceRoot":"","sources":["../../src/prisma/commonInputTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/prisma/enums.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +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;
|
|
@@ -0,0 +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
|
+
}
|
|
66
|
+
//# sourceMappingURL=class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../src/prisma/internal/class.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqMA,oDAEC;AA1LD,uEAAwD;AAIxD,MAAM,MAAM,GAAkC;IAC5C,iBAAiB,EAAE,EAAE;IACrB,eAAe,EAAE,OAAO;IACxB,eAAe,EAAE,0CAA0C;IAC3D,gBAAgB,EAAE,YAAY;IAC9B,cAAc,EAAE,+qCAA+qC;IAC/rC,kBAAkB,EAAE;QAClB,QAAQ,EAAE,EAAE;QACZ,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,EAAE;KACZ;CACF,CAAA;AAED,MAAM,CAAC,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,mvCAAmvC,CAAC,CAAA;AAEzxC,KAAK,UAAU,kBAAkB,CAAC,UAAkB;IAClD,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,MAAM,CAAC,aAAa,CAAC,CAAA;IAC9C,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;IACnD,OAAO,IAAI,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;AAC1C,CAAC;AAED,MAAM,CAAC,YAAY,GAAG;IACpB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,yDAAyD,CAAC;IAE/F,0BAA0B,EAAE,KAAK,IAAI,EAAE;QACrC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,qEAAqE,CAAC,CAAA;QACpG,OAAO,MAAM,kBAAkB,CAAC,IAAI,CAAC,CAAA;IACvC,CAAC;CACF,CAAA;AAwJD,SAAgB,oBAAoB;IAClC,OAAO,OAAO,CAAC,eAAe,CAAC,MAAM,CAAuC,CAAA;AAC9E,CAAC"}
|