@salemticket/common 1.0.0 → 1.0.2
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/build/config/app_config.d.ts +18 -0
- package/build/config/app_config.d.ts.map +1 -0
- package/build/config/app_config.js +21 -0
- package/build/config/app_config.js.map +1 -0
- package/build/config/db.d.ts +2 -0
- package/build/config/db.d.ts.map +1 -0
- package/build/config/db.js +23 -0
- package/build/config/db.js.map +1 -0
- package/build/generated/prisma/browser.d.ts +5 -0
- package/build/generated/prisma/browser.d.ts.map +1 -0
- package/build/generated/prisma/browser.js +57 -0
- package/build/generated/prisma/browser.js.map +1 -0
- package/build/generated/prisma/client.d.ts +24 -0
- package/build/generated/prisma/client.d.ts.map +1 -0
- package/build/generated/prisma/client.js +71 -0
- package/build/generated/prisma/client.js.map +1 -0
- package/build/generated/prisma/commonInputTypes.d.ts +2 -0
- package/build/generated/prisma/commonInputTypes.d.ts.map +1 -0
- package/build/generated/prisma/commonInputTypes.js +12 -0
- package/build/generated/prisma/commonInputTypes.js.map +1 -0
- package/build/generated/prisma/enums.d.ts +2 -0
- package/build/generated/prisma/enums.d.ts.map +1 -0
- package/build/generated/prisma/enums.js +12 -0
- package/build/generated/prisma/enums.js.map +1 -0
- package/build/generated/prisma/internal/class.d.ts +122 -0
- package/build/generated/prisma/internal/class.d.ts.map +1 -0
- package/build/generated/prisma/internal/class.js +86 -0
- package/build/generated/prisma/internal/class.js.map +1 -0
- package/build/generated/prisma/internal/prismaNamespace.d.ts +465 -0
- package/build/generated/prisma/internal/prismaNamespace.d.ts.map +1 -0
- package/build/generated/prisma/internal/prismaNamespace.js +116 -0
- package/build/generated/prisma/internal/prismaNamespace.js.map +1 -0
- package/build/generated/prisma/internal/prismaNamespaceBrowser.d.ts +37 -0
- package/build/generated/prisma/internal/prismaNamespaceBrowser.d.ts.map +1 -0
- package/build/generated/prisma/internal/prismaNamespaceBrowser.js +87 -0
- package/build/generated/prisma/internal/prismaNamespaceBrowser.js.map +1 -0
- package/build/generated/prisma/models.d.ts +2 -0
- package/build/generated/prisma/models.d.ts.map +1 -0
- package/build/generated/prisma/models.js +3 -0
- package/build/generated/prisma/models.js.map +1 -0
- package/build/index.d.ts +8 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +10 -0
- package/build/index.js.map +1 -0
- package/build/lib/prisma.d.ts +3 -0
- package/build/lib/prisma.d.ts.map +1 -0
- package/build/lib/prisma.js +13 -0
- package/build/lib/prisma.js.map +1 -0
- package/build/middleware/current-user.d.ts +18 -0
- package/build/middleware/current-user.d.ts.map +1 -0
- package/build/middleware/current-user.js +24 -0
- package/build/middleware/current-user.js.map +1 -0
- package/build/middleware/error_handler.d.ts +4 -0
- package/build/middleware/error_handler.d.ts.map +1 -0
- package/build/middleware/error_handler.js +91 -0
- package/build/middleware/error_handler.js.map +1 -0
- package/build/middleware/requireAuth.d.ts +4 -0
- package/build/middleware/requireAuth.d.ts.map +1 -0
- package/build/middleware/requireAuth.js +11 -0
- package/build/middleware/requireAuth.js.map +1 -0
- package/build/middleware/validators.d.ts +4 -0
- package/build/middleware/validators.d.ts.map +1 -0
- package/build/middleware/validators.js +51 -0
- package/build/middleware/validators.js.map +1 -0
- package/build/utils/error/custom_error_handler.d.ts +58 -0
- package/build/utils/error/custom_error_handler.d.ts.map +1 -0
- package/build/utils/error/custom_error_handler.js +91 -0
- package/build/utils/error/custom_error_handler.js.map +1 -0
- package/build/utils/error/not_found_error.d.ts +4 -0
- package/build/utils/error/not_found_error.d.ts.map +1 -0
- package/build/utils/error/not_found_error.js +8 -0
- package/build/utils/error/not_found_error.js.map +1 -0
- package/build/utils/helper/response-helper.d.ts +10 -0
- package/build/utils/helper/response-helper.d.ts.map +1 -0
- package/build/utils/helper/response-helper.js +24 -0
- package/build/utils/helper/response-helper.js.map +1 -0
- package/build/utils/logger/logger.d.ts +11 -0
- package/build/utils/logger/logger.d.ts.map +1 -0
- package/build/utils/logger/logger.js +52 -0
- package/build/utils/logger/logger.js.map +1 -0
- package/package.json +38 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const appConfig: {
|
|
2
|
+
PORT: string | number;
|
|
3
|
+
APP_NAME: string;
|
|
4
|
+
APP_ENV: string;
|
|
5
|
+
APP_PORT: string | number;
|
|
6
|
+
JWT_SECRET: string;
|
|
7
|
+
JWT_EXPIRES_IN: string;
|
|
8
|
+
DB_HOST: string;
|
|
9
|
+
DB_PORT: string | number;
|
|
10
|
+
DB_USER: string;
|
|
11
|
+
DB_PASSWORD: string;
|
|
12
|
+
DB_NAME: string;
|
|
13
|
+
LOG_LEVEL: string;
|
|
14
|
+
DATABASE_URL: string;
|
|
15
|
+
REDIS_URL: string;
|
|
16
|
+
};
|
|
17
|
+
export default appConfig;
|
|
18
|
+
//# sourceMappingURL=app_config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app_config.d.ts","sourceRoot":"","sources":["../../src/config/app_config.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;CAiBd,CAAC;eAEa,SAAS"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const appConfig = {
|
|
4
|
+
PORT: process.env.PORT || 3000,
|
|
5
|
+
APP_NAME: process.env.APP_NAME || "auth-service",
|
|
6
|
+
APP_ENV: process.env.APP_ENV || "development",
|
|
7
|
+
APP_PORT: process.env.APP_PORT || 3000,
|
|
8
|
+
JWT_SECRET: process.env.JWT_SECRET || "default-secret",
|
|
9
|
+
JWT_EXPIRES_IN: process.env.JWT_EXPIRES_IN || "1h",
|
|
10
|
+
DB_HOST: process.env.DB_HOST || "auth-postgres-srv",
|
|
11
|
+
DB_PORT: process.env.DB_PORT || 5432,
|
|
12
|
+
DB_USER: process.env.DB_USER || "postgres",
|
|
13
|
+
DB_PASSWORD: process.env.DB_PASSWORD || "salem21211",
|
|
14
|
+
DB_NAME: process.env.DB_NAME || "ticketing_auth",
|
|
15
|
+
LOG_LEVEL: process.env.LOG_LEVEL || "info",
|
|
16
|
+
DATABASE_URL: process.env.DATABASE_URL ||
|
|
17
|
+
"postgresql://postgres:salem21211@localhost:5432/ticketing_auth",
|
|
18
|
+
REDIS_URL: process.env.REDIS_URL || "redis://localhost:6379",
|
|
19
|
+
};
|
|
20
|
+
exports.default = appConfig;
|
|
21
|
+
//# sourceMappingURL=app_config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app_config.js","sourceRoot":"","sources":["../../src/config/app_config.ts"],"names":[],"mappings":";;AAAA,MAAM,SAAS,GAAG;IAChB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,IAAI;IAC9B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,cAAc;IAChD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,aAAa;IAC7C,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,IAAI;IACtC,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU,IAAI,gBAAgB;IACtD,cAAc,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc,IAAI,IAAI;IAClD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,mBAAmB;IACnD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,IAAI;IACpC,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,UAAU;IAC1C,WAAW,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,YAAY;IACpD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,gBAAgB;IAChD,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,MAAM;IAC1C,YAAY,EACV,OAAO,CAAC,GAAG,CAAC,YAAY;QACxB,gEAAgE;IAClE,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,wBAAwB;CAC7D,CAAC;kBAEa,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.d.ts","sourceRoot":"","sources":["../../src/config/db.ts"],"names":[],"mappings":"AAWA,wBAAsB,WAAW,kBAShC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.connectToDB = connectToDB;
|
|
4
|
+
const logger_js_1 = require("../utils/logger/logger.js");
|
|
5
|
+
const prisma_js_1 = require("../lib/prisma.js");
|
|
6
|
+
// const readEnv = (key: string, fallback = ''): string => {
|
|
7
|
+
// const value = process.env[key];
|
|
8
|
+
// return value === undefined || value === null || value === ''
|
|
9
|
+
// ? fallback
|
|
10
|
+
// : value;
|
|
11
|
+
// };
|
|
12
|
+
async function connectToDB() {
|
|
13
|
+
try {
|
|
14
|
+
await prisma_js_1.db.$connect();
|
|
15
|
+
logger_js_1.logger.info("[database]: connected!");
|
|
16
|
+
}
|
|
17
|
+
catch (err) {
|
|
18
|
+
console.log("[database]: connection error: ", err);
|
|
19
|
+
await prisma_js_1.db.$disconnect();
|
|
20
|
+
throw err;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=db.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"db.js","sourceRoot":"","sources":["../../src/config/db.ts"],"names":[],"mappings":";;;AACA,yDAAmD;AACnD,gDAAsC;AAEtC,4DAA4D;AAC5D,oCAAoC;AACpC,iEAAiE;AACjE,iBAAiB;AACjB,eAAe;AACf,KAAK;AAEE,KAAK;IACV,IAAI,CAAC;QACH,MAAM,cAAE,CAAC,QAAQ,EAAE,CAAC;QACpB,kBAAM,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,GAAG,CAAC,CAAC;QACnD,MAAM,cAAE,CAAC,WAAW,EAAE,CAAC;QACvB,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/browser.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,MAAM,MAAM,mCAAmC,CAAA;AAC3D,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,KAAK,MAAM,MAAM,SAAS,CAAA;AACjC,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file should be your main import to use Prisma-related types and utilities in a browser.
|
|
8
|
+
* Use it to get access to models, enums, and input types.
|
|
9
|
+
*
|
|
10
|
+
* This file does not contain a `PrismaClient` class, nor several other helpers that are intended as server-side only.
|
|
11
|
+
* See `client.ts` for the standard, server-side entry point.
|
|
12
|
+
*
|
|
13
|
+
* 🟢 You can import this file directly.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
27
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
28
|
+
}) : function(o, v) {
|
|
29
|
+
o["default"] = v;
|
|
30
|
+
});
|
|
31
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
32
|
+
var ownKeys = function(o) {
|
|
33
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
34
|
+
var ar = [];
|
|
35
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
36
|
+
return ar;
|
|
37
|
+
};
|
|
38
|
+
return ownKeys(o);
|
|
39
|
+
};
|
|
40
|
+
return function (mod) {
|
|
41
|
+
if (mod && mod.__esModule) return mod;
|
|
42
|
+
var result = {};
|
|
43
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44
|
+
__setModuleDefault(result, mod);
|
|
45
|
+
return result;
|
|
46
|
+
};
|
|
47
|
+
})();
|
|
48
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
49
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
50
|
+
};
|
|
51
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
52
|
+
exports.$Enums = exports.Prisma = void 0;
|
|
53
|
+
const Prisma = __importStar(require("./internal/prismaNamespaceBrowser"));
|
|
54
|
+
exports.Prisma = Prisma;
|
|
55
|
+
exports.$Enums = __importStar(require("./enums"));
|
|
56
|
+
__exportStar(require("./enums"), exports);
|
|
57
|
+
//# sourceMappingURL=browser.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../../../src/generated/prisma/browser.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;;;;GAQG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,MAAY,MAAM,8DAAyC;QAClD,MAAM;AACf,QAAY,MAAM,oCAAe;AACjC,0CAAwB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import * as $Class from "./internal/class";
|
|
3
|
+
import * as Prisma from "./internal/prismaNamespace";
|
|
4
|
+
export * as $Enums from './enums';
|
|
5
|
+
export * from "./enums";
|
|
6
|
+
/**
|
|
7
|
+
* ## Prisma Client
|
|
8
|
+
*
|
|
9
|
+
* Type-safe database client for TypeScript
|
|
10
|
+
* @example
|
|
11
|
+
* ```
|
|
12
|
+
* const prisma = new PrismaClient({
|
|
13
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
14
|
+
* })
|
|
15
|
+
* // Fetch zero or more Users
|
|
16
|
+
* const users = await prisma.user.findMany()
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
20
|
+
*/
|
|
21
|
+
export declare const PrismaClient: $Class.PrismaClientConstructor;
|
|
22
|
+
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>;
|
|
23
|
+
export { Prisma };
|
|
24
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/client.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AAExD,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAA;AAC1C,OAAO,KAAK,MAAM,MAAM,4BAA4B,CAAA;AAEpD,OAAO,KAAK,MAAM,MAAM,SAAS,CAAA;AACjC,cAAc,SAAS,CAAA;AACvB;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,YAAY,gCAAgC,CAAA;AACzD,MAAM,MAAM,YAAY,CAAC,OAAO,SAAS,MAAM,CAAC,QAAQ,GAAG,KAAK,EAAE,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAAE,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,IAAI,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;AAC3S,OAAO,EAAE,MAAM,EAAE,CAAA"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file should be your main import to use Prisma. Through it you get access to all the models, enums, and input types.
|
|
8
|
+
* If you're looking for something you can import in the client-side of your application, please refer to the `browser.ts` file instead.
|
|
9
|
+
*
|
|
10
|
+
* 🟢 You can import this file directly.
|
|
11
|
+
*/
|
|
12
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
19
|
+
}) : (function(o, m, k, k2) {
|
|
20
|
+
if (k2 === undefined) k2 = k;
|
|
21
|
+
o[k2] = m[k];
|
|
22
|
+
}));
|
|
23
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
24
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
25
|
+
}) : function(o, v) {
|
|
26
|
+
o["default"] = v;
|
|
27
|
+
});
|
|
28
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
29
|
+
var ownKeys = function(o) {
|
|
30
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
31
|
+
var ar = [];
|
|
32
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
33
|
+
return ar;
|
|
34
|
+
};
|
|
35
|
+
return ownKeys(o);
|
|
36
|
+
};
|
|
37
|
+
return function (mod) {
|
|
38
|
+
if (mod && mod.__esModule) return mod;
|
|
39
|
+
var result = {};
|
|
40
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
41
|
+
__setModuleDefault(result, mod);
|
|
42
|
+
return result;
|
|
43
|
+
};
|
|
44
|
+
})();
|
|
45
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
46
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
47
|
+
};
|
|
48
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49
|
+
exports.Prisma = exports.PrismaClient = exports.$Enums = void 0;
|
|
50
|
+
const $Class = __importStar(require("./internal/class"));
|
|
51
|
+
const Prisma = __importStar(require("./internal/prismaNamespace"));
|
|
52
|
+
exports.Prisma = Prisma;
|
|
53
|
+
exports.$Enums = __importStar(require("./enums"));
|
|
54
|
+
__exportStar(require("./enums"), exports);
|
|
55
|
+
/**
|
|
56
|
+
* ## Prisma Client
|
|
57
|
+
*
|
|
58
|
+
* Type-safe database client for TypeScript
|
|
59
|
+
* @example
|
|
60
|
+
* ```
|
|
61
|
+
* const prisma = new PrismaClient({
|
|
62
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
63
|
+
* })
|
|
64
|
+
* // Fetch zero or more Users
|
|
65
|
+
* const users = await prisma.user.findMany()
|
|
66
|
+
* ```
|
|
67
|
+
*
|
|
68
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
69
|
+
*/
|
|
70
|
+
exports.PrismaClient = $Class.getPrismaClientClass();
|
|
71
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../src/generated/prisma/client.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOH,MAAY,MAAM,6CAAwB;AAC1C,MAAY,MAAM,uDAAkC;QAqB3C,MAAM;AAnBf,QAAY,MAAM,oCAAe;AACjC,0CAAuB;AACvB;;;;;;;;;;;;;;GAcG;AACU,QAAA,YAAY,GAAG,MAAM,CAAC,oBAAoB,EAAE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonInputTypes.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/commonInputTypes.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports various common sort, input & filter types that are not directly linked to a particular model.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=commonInputTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commonInputTypes.js","sourceRoot":"","sources":["../../../src/generated/prisma/commonInputTypes.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;GAIG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/generated/prisma/enums.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* This file exports all enum related types from the schema.
|
|
8
|
+
*
|
|
9
|
+
* 🟢 You can import this file directly.
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=enums.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../../src/generated/prisma/enums.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;EAIE"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/client";
|
|
2
|
+
import type * as Prisma from "./prismaNamespace";
|
|
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
|
+
/**
|
|
6
|
+
* ## Prisma Client
|
|
7
|
+
*
|
|
8
|
+
* Type-safe database client for TypeScript
|
|
9
|
+
* @example
|
|
10
|
+
* ```
|
|
11
|
+
* const prisma = new PrismaClient({
|
|
12
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
13
|
+
* })
|
|
14
|
+
* // Fetch zero or more Users
|
|
15
|
+
* const users = await prisma.user.findMany()
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
19
|
+
*/
|
|
20
|
+
new <Options extends Prisma.PrismaClientOptions = Prisma.PrismaClientOptions, LogOpts extends LogOptions<Options> = LogOptions<Options>, OmitOpts extends Prisma.PrismaClientOptions['omit'] = Options extends {
|
|
21
|
+
omit: infer U;
|
|
22
|
+
} ? U : Prisma.PrismaClientOptions['omit'], ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs>(options: Prisma.PrismaClientConstructorArgs<Options>): PrismaClient<LogOpts, OmitOpts, ExtArgs>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* ## Prisma Client
|
|
26
|
+
*
|
|
27
|
+
* Type-safe database client for TypeScript
|
|
28
|
+
* @example
|
|
29
|
+
* ```
|
|
30
|
+
* const prisma = new PrismaClient({
|
|
31
|
+
* adapter: new PrismaPg({ connectionString: process.env.DATABASE_URL })
|
|
32
|
+
* })
|
|
33
|
+
* // Fetch zero or more Users
|
|
34
|
+
* const users = await prisma.user.findMany()
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* Read more in our [docs](https://pris.ly/d/client).
|
|
38
|
+
*/
|
|
39
|
+
export interface PrismaClient<in LogOpts extends Prisma.LogLevel = never, in out OmitOpts extends Prisma.PrismaClientOptions['omit'] = Prisma.PrismaClientOptions['omit'], in out ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> {
|
|
40
|
+
[K: symbol]: {
|
|
41
|
+
types: Prisma.TypeMap<ExtArgs>['other'];
|
|
42
|
+
};
|
|
43
|
+
$on<V extends LogOpts>(eventType: V, callback: (event: V extends 'query' ? Prisma.QueryEvent : Prisma.LogEvent) => void): PrismaClient;
|
|
44
|
+
/**
|
|
45
|
+
* Connect with the database
|
|
46
|
+
*/
|
|
47
|
+
$connect(): runtime.Types.Utils.JsPromise<void>;
|
|
48
|
+
/**
|
|
49
|
+
* Disconnect from the database
|
|
50
|
+
*/
|
|
51
|
+
$disconnect(): runtime.Types.Utils.JsPromise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Executes a prepared raw query and returns the number of affected rows.
|
|
54
|
+
* @example
|
|
55
|
+
* ```
|
|
56
|
+
* const result = await prisma.$executeRaw`UPDATE User SET cool = ${true} WHERE email = ${'user@email.com'};`
|
|
57
|
+
* ```
|
|
58
|
+
*
|
|
59
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
60
|
+
*/
|
|
61
|
+
$executeRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
62
|
+
/**
|
|
63
|
+
* Executes a raw query and returns the number of affected rows.
|
|
64
|
+
* Susceptible to SQL injections, see documentation.
|
|
65
|
+
* @example
|
|
66
|
+
* ```
|
|
67
|
+
* const result = await prisma.$executeRawUnsafe('UPDATE User SET cool = $1 WHERE email = $2 ;', true, 'user@email.com')
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
71
|
+
*/
|
|
72
|
+
$executeRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<number>;
|
|
73
|
+
/**
|
|
74
|
+
* Performs a prepared raw query and returns the `SELECT` data.
|
|
75
|
+
* @example
|
|
76
|
+
* ```
|
|
77
|
+
* const result = await prisma.$queryRaw`SELECT * FROM User WHERE id = ${1} OR email = ${'user@email.com'};`
|
|
78
|
+
* ```
|
|
79
|
+
*
|
|
80
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
81
|
+
*/
|
|
82
|
+
$queryRaw<T = unknown>(query: TemplateStringsArray | Prisma.Sql, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
83
|
+
/**
|
|
84
|
+
* Performs a raw query and returns the `SELECT` data.
|
|
85
|
+
* Susceptible to SQL injections, see documentation.
|
|
86
|
+
* @example
|
|
87
|
+
* ```
|
|
88
|
+
* const result = await prisma.$queryRawUnsafe('SELECT * FROM User WHERE id = $1 OR email = $2;', 1, 'user@email.com')
|
|
89
|
+
* ```
|
|
90
|
+
*
|
|
91
|
+
* Read more in our [docs](https://pris.ly/d/raw-queries).
|
|
92
|
+
*/
|
|
93
|
+
$queryRawUnsafe<T = unknown>(query: string, ...values: any[]): Prisma.PrismaPromise<T>;
|
|
94
|
+
/**
|
|
95
|
+
* Allows the running of a sequence of read/write operations that are guaranteed to either succeed or fail as a whole.
|
|
96
|
+
* @example
|
|
97
|
+
* ```
|
|
98
|
+
* const [george, bob, alice] = await prisma.$transaction([
|
|
99
|
+
* prisma.user.create({ data: { name: 'George' } }),
|
|
100
|
+
* prisma.user.create({ data: { name: 'Bob' } }),
|
|
101
|
+
* prisma.user.create({ data: { name: 'Alice' } }),
|
|
102
|
+
* ])
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* Read more in our [docs](https://www.prisma.io/docs/orm/prisma-client/queries/transactions).
|
|
106
|
+
*/
|
|
107
|
+
$transaction<P extends Prisma.PrismaPromise<any>[]>(arg: [...P], options?: {
|
|
108
|
+
maxWait?: number;
|
|
109
|
+
timeout?: number;
|
|
110
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
111
|
+
}): runtime.Types.Utils.JsPromise<runtime.Types.Utils.UnwrapTuple<P>>;
|
|
112
|
+
$transaction<R>(fn: (prisma: Omit<PrismaClient, runtime.ITXClientDenyList>) => runtime.Types.Utils.JsPromise<R>, options?: {
|
|
113
|
+
maxWait?: number;
|
|
114
|
+
timeout?: number;
|
|
115
|
+
isolationLevel?: Prisma.TransactionIsolationLevel;
|
|
116
|
+
}): runtime.Types.Utils.JsPromise<R>;
|
|
117
|
+
$extends: runtime.Types.Extensions.ExtendsHook<"extends", Prisma.TypeMapCb<OmitOpts>, ExtArgs, runtime.Types.Utils.Call<Prisma.TypeMapCb<OmitOpts>, {
|
|
118
|
+
extArgs: ExtArgs;
|
|
119
|
+
}>>;
|
|
120
|
+
}
|
|
121
|
+
export declare function getPrismaClientClass(): PrismaClientConstructor;
|
|
122
|
+
//# sourceMappingURL=class.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../../../../src/generated/prisma/internal/class.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,OAAO,MAAM,+BAA+B,CAAA;AACxD,OAAO,KAAK,KAAK,MAAM,MAAM,mBAAmB,CAAA;AA6ChD,MAAM,MAAM,UAAU,CAAC,aAAa,SAAS,MAAM,CAAC,mBAAmB,IACrE,KAAK,SAAS,MAAM,aAAa,GAAG,aAAa,CAAC,KAAK,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,aAAa,CAAC,GAAG,MAAM,CAAC,SAAS,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,GAAG,KAAK,GAAG,KAAK,CAAA;AAEzK,MAAM,WAAW,uBAAuB;IACpC;;;;;;;;;;;;;;KAcC;IAEH,KACE,OAAO,SAAS,MAAM,CAAC,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,EACvE,OAAO,SAAS,UAAU,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC,EACzD,QAAQ,SAAS,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,GAAG,OAAO,SAAS;QAAE,IAAI,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,MAAM,CAAC,mBAAmB,CAAC,MAAM,CAAC,EAChI,OAAO,SAAS,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,Y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MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,MAAM,CAAC,yBAAyB,CAAA;KAAE,GAAG,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAA;IAEvP,QAAQ,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,SAAS,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;QAClJ,OAAO,EAAE,OAAO,CAAA;KACjB,CAAC,CAAC,CAAA;CAGJ;AAED,wBAAgB,oBAAoB,IAAI,uBAAuB,CAE9D"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// biome-ignore-all lint: generated file
|
|
5
|
+
// @ts-nocheck
|
|
6
|
+
/*
|
|
7
|
+
* WARNING: This is an internal file that is subject to change!
|
|
8
|
+
*
|
|
9
|
+
* 🛑 Under no circumstances should you import this file directly! 🛑
|
|
10
|
+
*
|
|
11
|
+
* Please import the `PrismaClient` class from the `client.ts` file instead.
|
|
12
|
+
*/
|
|
13
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
30
|
+
var ownKeys = function(o) {
|
|
31
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
32
|
+
var ar = [];
|
|
33
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
34
|
+
return ar;
|
|
35
|
+
};
|
|
36
|
+
return ownKeys(o);
|
|
37
|
+
};
|
|
38
|
+
return function (mod) {
|
|
39
|
+
if (mod && mod.__esModule) return mod;
|
|
40
|
+
var result = {};
|
|
41
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
42
|
+
__setModuleDefault(result, mod);
|
|
43
|
+
return result;
|
|
44
|
+
};
|
|
45
|
+
})();
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.getPrismaClientClass = getPrismaClientClass;
|
|
48
|
+
const runtime = __importStar(require("@prisma/client/runtime/client"));
|
|
49
|
+
const config = {
|
|
50
|
+
"previewFeatures": [],
|
|
51
|
+
"clientVersion": "7.10.1",
|
|
52
|
+
"engineVersion": "d1b3f377ca835d73fd50954a5e22128b9ebdd6b8",
|
|
53
|
+
"activeProvider": "postgresql",
|
|
54
|
+
"inlineSchema": "// This is your Prisma schema file,\n// learn more about it in the docs: https://pris.ly/d/prisma-schema\n\n// Get a free hosted Postgres database in seconds: `npx create-db`\n\ngenerator client {\n provider = \"prisma-client\"\n output = \"../src/generated/prisma\"\n}\n\ndatasource db {\n provider = \"postgresql\"\n}\n",
|
|
55
|
+
"runtimeDataModel": {
|
|
56
|
+
"models": {},
|
|
57
|
+
"enums": {},
|
|
58
|
+
"types": {}
|
|
59
|
+
},
|
|
60
|
+
"parameterizationSchema": {
|
|
61
|
+
"strings": [],
|
|
62
|
+
"graph": ""
|
|
63
|
+
}
|
|
64
|
+
};
|
|
65
|
+
config.runtimeDataModel = JSON.parse("{\"models\":{},\"enums\":{},\"types\":{}}");
|
|
66
|
+
config.parameterizationSchema = {
|
|
67
|
+
strings: JSON.parse("[]"),
|
|
68
|
+
graph: "AAAA"
|
|
69
|
+
};
|
|
70
|
+
async function decodeBase64AsWasm(wasmBase64) {
|
|
71
|
+
const { Buffer } = await Promise.resolve().then(() => __importStar(require('node:buffer')));
|
|
72
|
+
const wasmArray = Buffer.from(wasmBase64, 'base64');
|
|
73
|
+
return new WebAssembly.Module(wasmArray);
|
|
74
|
+
}
|
|
75
|
+
config.compilerWasm = {
|
|
76
|
+
getRuntime: async () => await Promise.resolve().then(() => __importStar(require("@prisma/client/runtime/query_compiler_fast_bg.postgresql.js"))),
|
|
77
|
+
getQueryCompilerWasmModule: async () => {
|
|
78
|
+
const { wasm } = await Promise.resolve().then(() => __importStar(require("@prisma/client/runtime/query_compiler_fast_bg.postgresql.wasm-base64.js")));
|
|
79
|
+
return await decodeBase64AsWasm(wasm);
|
|
80
|
+
},
|
|
81
|
+
importName: "./query_compiler_fast_bg.js"
|
|
82
|
+
};
|
|
83
|
+
function getPrismaClientClass() {
|
|
84
|
+
return runtime.getPrismaClient(config);
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=class.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"class.js","sourceRoot":"","sources":["../../../../src/generated/prisma/internal/class.ts"],"names":[],"mappings":";AACA,qEAAqE;AACrE,oBAAoB;AACpB,wCAAwC;AACxC,eAAe;AACf;;;;;;GAMG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,MAAY,OAAO,0DAAqC;AAIxD,MAAM,MAAM,GAAkC;IAC5C,iBAAiB,EAAE,EAAE;IACrB,eAAe,EAAE,QAAQ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