@appweaver/core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -0
- package/README.md +7 -0
- package/app/application.d.ts +43 -0
- package/app/application.js +112 -0
- package/app/create-app.d.ts +32 -0
- package/app/create-app.js +38 -0
- package/app/index.d.ts +2 -0
- package/app/index.js +18 -0
- package/app/lifecycle-manager.d.ts +20 -0
- package/app/lifecycle-manager.js +42 -0
- package/app/load-modules.d.ts +10 -0
- package/app/load-modules.js +50 -0
- package/app/load-providers.d.ts +8 -0
- package/app/load-providers.js +33 -0
- package/cache/cache-service.d.ts +72 -0
- package/cache/cache-service.js +202 -0
- package/cache/cache.d.ts +12 -0
- package/cache/cache.js +184 -0
- package/cache/caching.d.ts +8 -0
- package/cache/caching.js +72 -0
- package/cache/eviction/eviction-index.d.ts +35 -0
- package/cache/eviction/eviction-index.js +2 -0
- package/cache/eviction/fifo-eviction-index.d.ts +7 -0
- package/cache/eviction/fifo-eviction-index.js +28 -0
- package/cache/eviction/index.d.ts +4 -0
- package/cache/eviction/index.js +20 -0
- package/cache/eviction/lfu-eviction-index.d.ts +8 -0
- package/cache/eviction/lfu-eviction-index.js +82 -0
- package/cache/eviction/lru-eviction-index.d.ts +8 -0
- package/cache/eviction/lru-eviction-index.js +81 -0
- package/cache/index.d.ts +2 -0
- package/cache/index.js +18 -0
- package/cache/memory-cache.d.ts +4 -0
- package/cache/memory-cache.js +12 -0
- package/cache/redis-cache.d.ts +4 -0
- package/cache/redis-cache.js +12 -0
- package/context/context.d.ts +2 -0
- package/context/context.js +13 -0
- package/context/dependency-injection.d.ts +98 -0
- package/context/dependency-injection.js +276 -0
- package/context/index.d.ts +2 -0
- package/context/index.js +18 -0
- package/database/create-client.d.ts +11 -0
- package/database/create-client.js +142 -0
- package/database/index.d.ts +1 -0
- package/database/index.js +17 -0
- package/database/prisma-database.d.ts +15 -0
- package/database/prisma-database.js +53 -0
- package/errors/error-handler.d.ts +3 -0
- package/errors/error-handler.js +24 -0
- package/errors/error-schema.d.ts +32 -0
- package/errors/error-schema.js +31 -0
- package/errors/http-error.d.ts +21 -0
- package/errors/http-error.js +33 -0
- package/errors/index.d.ts +3 -0
- package/errors/index.js +19 -0
- package/events/node-events.d.ts +7 -0
- package/events/node-events.js +39 -0
- package/export/export-service.d.ts +19 -0
- package/export/export-service.js +154 -0
- package/export/index.d.ts +1 -0
- package/export/index.js +17 -0
- package/factory/create-model.d.ts +2 -0
- package/factory/create-model.js +366 -0
- package/factory/create-policy.d.ts +2 -0
- package/factory/create-policy.js +16 -0
- package/factory/create-routes.d.ts +2 -0
- package/factory/create-routes.js +21 -0
- package/factory/create-service.d.ts +3 -0
- package/factory/create-service.js +97 -0
- package/factory/index.d.ts +4 -0
- package/factory/index.js +20 -0
- package/health/health-routes.d.ts +2 -0
- package/health/health-routes.js +36 -0
- package/health/health-schema.d.ts +45 -0
- package/health/health-schema.js +52 -0
- package/health/health-service.d.ts +38 -0
- package/health/health-service.js +82 -0
- package/health/index.d.ts +2 -0
- package/health/index.js +18 -0
- package/index.d.ts +15 -0
- package/index.js +31 -0
- package/mailer/email-service.d.ts +36 -0
- package/mailer/email-service.js +89 -0
- package/mailer/index.d.ts +1 -0
- package/mailer/index.js +17 -0
- package/mailer/json-mailer.d.ts +7 -0
- package/mailer/json-mailer.js +32 -0
- package/mailer/smtp-mailer.d.ts +7 -0
- package/mailer/smtp-mailer.js +43 -0
- package/memory/in-memory.d.ts +24 -0
- package/memory/in-memory.js +164 -0
- package/memory/redis.d.ts +26 -0
- package/memory/redis.js +158 -0
- package/package.json +68 -0
- package/prisma/client/browser.d.ts +34 -0
- package/prisma/client/browser.js +56 -0
- package/prisma/client/client.d.ts +53 -0
- package/prisma/client/client.js +70 -0
- package/prisma/client/commonInputTypes.d.ts +395 -0
- package/prisma/client/commonInputTypes.js +11 -0
- package/prisma/client/enums.d.ts +1 -0
- package/prisma/client/enums.js +11 -0
- package/prisma/client/internal/class.d.ts +187 -0
- package/prisma/client/internal/class.js +85 -0
- package/prisma/client/internal/prismaNamespace.d.ts +987 -0
- package/prisma/client/internal/prismaNamespace.js +193 -0
- package/prisma/client/internal/prismaNamespaceBrowser.d.ts +125 -0
- package/prisma/client/internal/prismaNamespaceBrowser.js +164 -0
- package/prisma/client/models/ApiKey.d.ts +1167 -0
- package/prisma/client/models/ApiKey.js +2 -0
- package/prisma/client/models/File.d.ts +1248 -0
- package/prisma/client/models/File.js +2 -0
- package/prisma/client/models/OneTimeToken.d.ts +1083 -0
- package/prisma/client/models/OneTimeToken.js +2 -0
- package/prisma/client/models/Permission.d.ts +1209 -0
- package/prisma/client/models/Permission.js +2 -0
- package/prisma/client/models/Role.d.ts +1209 -0
- package/prisma/client/models/Role.js +2 -0
- package/prisma/client/models/Seeder.d.ts +1023 -0
- package/prisma/client/models/Seeder.js +2 -0
- package/prisma/client/models.d.ts +7 -0
- package/prisma/client/models.js +2 -0
- package/queue/bull-queue.d.ts +37 -0
- package/queue/bull-queue.js +207 -0
- package/queue/memory-queue.d.ts +54 -0
- package/queue/memory-queue.js +283 -0
- package/resource/index.d.ts +4 -0
- package/resource/index.js +20 -0
- package/resource/resource-loader.d.ts +26 -0
- package/resource/resource-loader.js +161 -0
- package/resource/resource-routes.d.ts +3 -0
- package/resource/resource-routes.js +174 -0
- package/resource/resource-schema.d.ts +33 -0
- package/resource/resource-schema.js +186 -0
- package/resource/resource-service.d.ts +89 -0
- package/resource/resource-service.js +772 -0
- package/resources.d.ts +9 -0
- package/resources.js +24 -0
- package/scheduler/cron-scheduler.d.ts +12 -0
- package/scheduler/cron-scheduler.js +73 -0
- package/security/account/account-routes.d.ts +2 -0
- package/security/account/account-routes.js +104 -0
- package/security/account/account-schema.d.ts +290 -0
- package/security/account/account-schema.js +166 -0
- package/security/account/account-service.d.ts +88 -0
- package/security/account/account-service.js +218 -0
- package/security/account/index.d.ts +3 -0
- package/security/account/index.js +19 -0
- package/security/api-key/api-key-auth.d.ts +4 -0
- package/security/api-key/api-key-auth.js +66 -0
- package/security/api-key/index.d.ts +1 -0
- package/security/api-key/index.js +17 -0
- package/security/auth-routes.d.ts +2 -0
- package/security/auth-routes.js +80 -0
- package/security/auth-schema.d.ts +215 -0
- package/security/auth-schema.js +129 -0
- package/security/auth-service.d.ts +117 -0
- package/security/auth-service.js +272 -0
- package/security/auth.d.ts +3 -0
- package/security/auth.js +127 -0
- package/security/basic/basic-auth.d.ts +4 -0
- package/security/basic/basic-auth.js +32 -0
- package/security/basic/index.d.ts +1 -0
- package/security/basic/index.js +17 -0
- package/security/create-auth-resources.d.ts +6 -0
- package/security/create-auth-resources.js +129 -0
- package/security/helper.d.ts +127 -0
- package/security/helper.js +329 -0
- package/security/index.d.ts +4 -0
- package/security/index.js +20 -0
- package/security/jwt/index.d.ts +2 -0
- package/security/jwt/index.js +18 -0
- package/security/jwt/jwt-auth.d.ts +4 -0
- package/security/jwt/jwt-auth.js +57 -0
- package/security/jwt/jwt-keys.d.ts +7 -0
- package/security/jwt/jwt-keys.js +43 -0
- package/security/oauth2/create-oauth2-plugin.d.ts +17 -0
- package/security/oauth2/create-oauth2-plugin.js +85 -0
- package/security/oauth2/index.d.ts +3 -0
- package/security/oauth2/index.js +19 -0
- package/security/oauth2/oauth2-custom.d.ts +7 -0
- package/security/oauth2/oauth2-custom.js +40 -0
- package/security/oauth2/oauth2-facebook.d.ts +1 -0
- package/security/oauth2/oauth2-facebook.js +30 -0
- package/security/oauth2/oauth2-google.d.ts +1 -0
- package/security/oauth2/oauth2-google.js +28 -0
- package/security/oauth2/oauth2-schema.d.ts +10 -0
- package/security/oauth2/oauth2-schema.js +53 -0
- package/security/recaptcha/index.d.ts +2 -0
- package/security/recaptcha/index.js +18 -0
- package/security/recaptcha/recaptcha-verify.d.ts +1 -0
- package/security/recaptcha/recaptcha-verify.js +33 -0
- package/security/recaptcha/recaptcha.d.ts +2 -0
- package/security/recaptcha/recaptcha.js +22 -0
- package/security/resources/api-key/model.d.ts +2 -0
- package/security/resources/api-key/model.js +63 -0
- package/security/resources/api-key/policy.d.ts +2 -0
- package/security/resources/api-key/policy.js +26 -0
- package/security/resources/api-key/routes.d.ts +2 -0
- package/security/resources/api-key/routes.js +15 -0
- package/security/resources/api-key/service.d.ts +3 -0
- package/security/resources/api-key/service.js +33 -0
- package/security/resources/one-time-token/model.d.ts +2 -0
- package/security/resources/one-time-token/model.js +32 -0
- package/security/resources/permission/model.d.ts +2 -0
- package/security/resources/permission/model.js +16 -0
- package/security/resources/role/model.d.ts +2 -0
- package/security/resources/role/model.js +22 -0
- package/security/store/database-security-store.d.ts +5 -0
- package/security/store/database-security-store.js +51 -0
- package/security/store/redis-security-store.d.ts +5 -0
- package/security/store/redis-security-store.js +32 -0
- package/seeder/create-seeder.d.ts +21 -0
- package/seeder/create-seeder.js +17 -0
- package/seeder/index.d.ts +2 -0
- package/seeder/index.js +18 -0
- package/seeder/resources/seeder/model.d.ts +2 -0
- package/seeder/resources/seeder/model.js +38 -0
- package/seeder/seeder.d.ts +20 -0
- package/seeder/seeder.js +175 -0
- package/server/create-server.d.ts +20 -0
- package/server/create-server.js +160 -0
- package/server/index.d.ts +4 -0
- package/server/index.js +20 -0
- package/server/info-route.d.ts +2 -0
- package/server/info-route.js +18 -0
- package/server/info-schema.d.ts +37 -0
- package/server/info-schema.js +19 -0
- package/server/register-model.d.ts +2 -0
- package/server/register-model.js +12 -0
- package/server/register-plugin.d.ts +2 -0
- package/server/register-plugin.js +13 -0
- package/server/register-route.d.ts +3 -0
- package/server/register-route.js +74 -0
- package/server/schemas.d.ts +3 -0
- package/server/schemas.js +30 -0
- package/server/swagger.d.ts +3 -0
- package/server/swagger.js +122 -0
- package/storage/file-route.d.ts +2 -0
- package/storage/file-route.js +39 -0
- package/storage/file-schema.d.ts +9 -0
- package/storage/file-schema.js +42 -0
- package/storage/file-service.d.ts +81 -0
- package/storage/file-service.js +384 -0
- package/storage/filesystem-storage.d.ts +10 -0
- package/storage/filesystem-storage.js +128 -0
- package/storage/index.d.ts +2 -0
- package/storage/index.js +18 -0
- package/storage/resources/file/model.d.ts +2 -0
- package/storage/resources/file/model.js +75 -0
- package/types/application-context.d.ts +20 -0
- package/types/application-context.js +2 -0
- package/types/auth.d.ts +31 -0
- package/types/auth.js +2 -0
- package/types/fastify-extensions.d.ts +24 -0
- package/types/fastify-extensions.js +4 -0
- package/types/generated.d.ts +193 -0
- package/types/generated.js +3 -0
- package/types/index.d.ts +4 -0
- package/types/index.js +20 -0
- package/types/server.d.ts +4 -0
- package/types/server.js +2 -0
- package/utils/export-util.d.ts +8 -0
- package/utils/export-util.js +25 -0
- package/utils/file-util.d.ts +64 -0
- package/utils/file-util.js +141 -0
- package/utils/index.d.ts +3 -0
- package/utils/index.js +19 -0
- package/utils/schema-util.d.ts +20 -0
- package/utils/schema-util.js +37 -0
|
@@ -0,0 +1,193 @@
|
|
|
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
|
+
* All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
|
|
12
|
+
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
13
|
+
*
|
|
14
|
+
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
15
|
+
* model files in the `model` directory!
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.defineExtension = exports.QueryMode = exports.JsonNullValueFilter = exports.NullsOrder = exports.JsonNullValueInput = exports.SortOrder = exports.FileScalarFieldEnum = exports.SeederScalarFieldEnum = exports.RoleScalarFieldEnum = exports.PermissionScalarFieldEnum = exports.OneTimeTokenScalarFieldEnum = exports.ApiKeyScalarFieldEnum = exports.TransactionIsolationLevel = exports.ModelName = exports.AnyNull = exports.JsonNull = exports.DbNull = exports.NullTypes = exports.prismaVersion = exports.getExtensionContext = exports.Decimal = exports.Sql = exports.raw = exports.join = exports.empty = exports.sql = exports.PrismaClientValidationError = exports.PrismaClientInitializationError = exports.PrismaClientRustPanicError = exports.PrismaClientUnknownRequestError = exports.PrismaClientKnownRequestError = void 0;
|
|
52
|
+
const runtime = __importStar(require("@prisma/client/runtime/client"));
|
|
53
|
+
/**
|
|
54
|
+
* Prisma Errors
|
|
55
|
+
*/
|
|
56
|
+
exports.PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
|
|
57
|
+
exports.PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
|
|
58
|
+
exports.PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
|
|
59
|
+
exports.PrismaClientInitializationError = runtime.PrismaClientInitializationError;
|
|
60
|
+
exports.PrismaClientValidationError = runtime.PrismaClientValidationError;
|
|
61
|
+
/**
|
|
62
|
+
* Re-export of sql-template-tag
|
|
63
|
+
*/
|
|
64
|
+
exports.sql = runtime.sqltag;
|
|
65
|
+
exports.empty = runtime.empty;
|
|
66
|
+
exports.join = runtime.join;
|
|
67
|
+
exports.raw = runtime.raw;
|
|
68
|
+
exports.Sql = runtime.Sql;
|
|
69
|
+
/**
|
|
70
|
+
* Decimal.js
|
|
71
|
+
*/
|
|
72
|
+
exports.Decimal = runtime.Decimal;
|
|
73
|
+
exports.getExtensionContext = runtime.Extensions.getExtensionContext;
|
|
74
|
+
/**
|
|
75
|
+
* Prisma Client JS version: 7.8.0
|
|
76
|
+
* Query Engine version: 3c6e192761c0362d496ed980de936e2f3cebcd3a
|
|
77
|
+
*/
|
|
78
|
+
exports.prismaVersion = {
|
|
79
|
+
client: "7.8.0",
|
|
80
|
+
engine: "3c6e192761c0362d496ed980de936e2f3cebcd3a"
|
|
81
|
+
};
|
|
82
|
+
exports.NullTypes = {
|
|
83
|
+
DbNull: runtime.NullTypes.DbNull,
|
|
84
|
+
JsonNull: runtime.NullTypes.JsonNull,
|
|
85
|
+
AnyNull: runtime.NullTypes.AnyNull,
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
89
|
+
*
|
|
90
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
91
|
+
*/
|
|
92
|
+
exports.DbNull = runtime.DbNull;
|
|
93
|
+
/**
|
|
94
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
95
|
+
*
|
|
96
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
97
|
+
*/
|
|
98
|
+
exports.JsonNull = runtime.JsonNull;
|
|
99
|
+
/**
|
|
100
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
101
|
+
*
|
|
102
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
103
|
+
*/
|
|
104
|
+
exports.AnyNull = runtime.AnyNull;
|
|
105
|
+
exports.ModelName = {
|
|
106
|
+
ApiKey: 'ApiKey',
|
|
107
|
+
OneTimeToken: 'OneTimeToken',
|
|
108
|
+
Permission: 'Permission',
|
|
109
|
+
Role: 'Role',
|
|
110
|
+
Seeder: 'Seeder',
|
|
111
|
+
File: 'File'
|
|
112
|
+
};
|
|
113
|
+
/**
|
|
114
|
+
* Enums
|
|
115
|
+
*/
|
|
116
|
+
exports.TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
117
|
+
Serializable: 'Serializable'
|
|
118
|
+
});
|
|
119
|
+
exports.ApiKeyScalarFieldEnum = {
|
|
120
|
+
id: 'id',
|
|
121
|
+
key: 'key',
|
|
122
|
+
keyHash: 'keyHash',
|
|
123
|
+
name: 'name',
|
|
124
|
+
description: 'description',
|
|
125
|
+
enabled: 'enabled',
|
|
126
|
+
expiresAt: 'expiresAt',
|
|
127
|
+
updatedAt: 'updatedAt',
|
|
128
|
+
createdAt: 'createdAt'
|
|
129
|
+
};
|
|
130
|
+
exports.OneTimeTokenScalarFieldEnum = {
|
|
131
|
+
id: 'id',
|
|
132
|
+
tokenHash: 'tokenHash',
|
|
133
|
+
purpose: 'purpose',
|
|
134
|
+
expiresAt: 'expiresAt',
|
|
135
|
+
data: 'data',
|
|
136
|
+
updatedAt: 'updatedAt',
|
|
137
|
+
createdAt: 'createdAt'
|
|
138
|
+
};
|
|
139
|
+
exports.PermissionScalarFieldEnum = {
|
|
140
|
+
id: 'id',
|
|
141
|
+
name: 'name',
|
|
142
|
+
updatedAt: 'updatedAt',
|
|
143
|
+
createdAt: 'createdAt'
|
|
144
|
+
};
|
|
145
|
+
exports.RoleScalarFieldEnum = {
|
|
146
|
+
id: 'id',
|
|
147
|
+
name: 'name',
|
|
148
|
+
updatedAt: 'updatedAt',
|
|
149
|
+
createdAt: 'createdAt'
|
|
150
|
+
};
|
|
151
|
+
exports.SeederScalarFieldEnum = {
|
|
152
|
+
id: 'id',
|
|
153
|
+
checksum: 'checksum',
|
|
154
|
+
seederName: 'seederName',
|
|
155
|
+
startedAt: 'startedAt',
|
|
156
|
+
finishedAt: 'finishedAt',
|
|
157
|
+
logs: 'logs'
|
|
158
|
+
};
|
|
159
|
+
exports.FileScalarFieldEnum = {
|
|
160
|
+
id: 'id',
|
|
161
|
+
name: 'name',
|
|
162
|
+
originalName: 'originalName',
|
|
163
|
+
mimeType: 'mimeType',
|
|
164
|
+
sizeBytes: 'sizeBytes',
|
|
165
|
+
title: 'title',
|
|
166
|
+
description: 'description',
|
|
167
|
+
resourceField: 'resourceField',
|
|
168
|
+
resourceName: 'resourceName',
|
|
169
|
+
resourceId: 'resourceId',
|
|
170
|
+
updatedAt: 'updatedAt',
|
|
171
|
+
createdAt: 'createdAt'
|
|
172
|
+
};
|
|
173
|
+
exports.SortOrder = {
|
|
174
|
+
asc: 'asc',
|
|
175
|
+
desc: 'desc'
|
|
176
|
+
};
|
|
177
|
+
exports.JsonNullValueInput = {
|
|
178
|
+
JsonNull: exports.JsonNull
|
|
179
|
+
};
|
|
180
|
+
exports.NullsOrder = {
|
|
181
|
+
first: 'first',
|
|
182
|
+
last: 'last'
|
|
183
|
+
};
|
|
184
|
+
exports.JsonNullValueFilter = {
|
|
185
|
+
DbNull: exports.DbNull,
|
|
186
|
+
JsonNull: exports.JsonNull,
|
|
187
|
+
AnyNull: exports.AnyNull
|
|
188
|
+
};
|
|
189
|
+
exports.QueryMode = {
|
|
190
|
+
default: 'default',
|
|
191
|
+
insensitive: 'insensitive'
|
|
192
|
+
};
|
|
193
|
+
exports.defineExtension = runtime.Extensions.defineExtension;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import * as runtime from "@prisma/client/runtime/index-browser";
|
|
2
|
+
export type * from '../models';
|
|
3
|
+
export type * from './prismaNamespace';
|
|
4
|
+
export declare const Decimal: typeof runtime.Decimal;
|
|
5
|
+
export declare const NullTypes: {
|
|
6
|
+
DbNull: (new (secret: never) => typeof runtime.DbNull);
|
|
7
|
+
JsonNull: (new (secret: never) => typeof runtime.JsonNull);
|
|
8
|
+
AnyNull: (new (secret: never) => typeof runtime.AnyNull);
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
12
|
+
*
|
|
13
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
14
|
+
*/
|
|
15
|
+
export declare const DbNull: import("@prisma/client-runtime-utils").DbNullClass;
|
|
16
|
+
/**
|
|
17
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
18
|
+
*
|
|
19
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
20
|
+
*/
|
|
21
|
+
export declare const JsonNull: import("@prisma/client-runtime-utils").JsonNullClass;
|
|
22
|
+
/**
|
|
23
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
24
|
+
*
|
|
25
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
26
|
+
*/
|
|
27
|
+
export declare const AnyNull: import("@prisma/client-runtime-utils").AnyNullClass;
|
|
28
|
+
export declare const ModelName: {
|
|
29
|
+
readonly ApiKey: "ApiKey";
|
|
30
|
+
readonly OneTimeToken: "OneTimeToken";
|
|
31
|
+
readonly Permission: "Permission";
|
|
32
|
+
readonly Role: "Role";
|
|
33
|
+
readonly Seeder: "Seeder";
|
|
34
|
+
readonly File: "File";
|
|
35
|
+
};
|
|
36
|
+
export type ModelName = (typeof ModelName)[keyof typeof ModelName];
|
|
37
|
+
export declare const TransactionIsolationLevel: {
|
|
38
|
+
readonly Serializable: "Serializable";
|
|
39
|
+
};
|
|
40
|
+
export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel];
|
|
41
|
+
export declare const ApiKeyScalarFieldEnum: {
|
|
42
|
+
readonly id: "id";
|
|
43
|
+
readonly key: "key";
|
|
44
|
+
readonly keyHash: "keyHash";
|
|
45
|
+
readonly name: "name";
|
|
46
|
+
readonly description: "description";
|
|
47
|
+
readonly enabled: "enabled";
|
|
48
|
+
readonly expiresAt: "expiresAt";
|
|
49
|
+
readonly updatedAt: "updatedAt";
|
|
50
|
+
readonly createdAt: "createdAt";
|
|
51
|
+
};
|
|
52
|
+
export type ApiKeyScalarFieldEnum = (typeof ApiKeyScalarFieldEnum)[keyof typeof ApiKeyScalarFieldEnum];
|
|
53
|
+
export declare const OneTimeTokenScalarFieldEnum: {
|
|
54
|
+
readonly id: "id";
|
|
55
|
+
readonly tokenHash: "tokenHash";
|
|
56
|
+
readonly purpose: "purpose";
|
|
57
|
+
readonly expiresAt: "expiresAt";
|
|
58
|
+
readonly data: "data";
|
|
59
|
+
readonly updatedAt: "updatedAt";
|
|
60
|
+
readonly createdAt: "createdAt";
|
|
61
|
+
};
|
|
62
|
+
export type OneTimeTokenScalarFieldEnum = (typeof OneTimeTokenScalarFieldEnum)[keyof typeof OneTimeTokenScalarFieldEnum];
|
|
63
|
+
export declare const PermissionScalarFieldEnum: {
|
|
64
|
+
readonly id: "id";
|
|
65
|
+
readonly name: "name";
|
|
66
|
+
readonly updatedAt: "updatedAt";
|
|
67
|
+
readonly createdAt: "createdAt";
|
|
68
|
+
};
|
|
69
|
+
export type PermissionScalarFieldEnum = (typeof PermissionScalarFieldEnum)[keyof typeof PermissionScalarFieldEnum];
|
|
70
|
+
export declare const RoleScalarFieldEnum: {
|
|
71
|
+
readonly id: "id";
|
|
72
|
+
readonly name: "name";
|
|
73
|
+
readonly updatedAt: "updatedAt";
|
|
74
|
+
readonly createdAt: "createdAt";
|
|
75
|
+
};
|
|
76
|
+
export type RoleScalarFieldEnum = (typeof RoleScalarFieldEnum)[keyof typeof RoleScalarFieldEnum];
|
|
77
|
+
export declare const SeederScalarFieldEnum: {
|
|
78
|
+
readonly id: "id";
|
|
79
|
+
readonly checksum: "checksum";
|
|
80
|
+
readonly seederName: "seederName";
|
|
81
|
+
readonly startedAt: "startedAt";
|
|
82
|
+
readonly finishedAt: "finishedAt";
|
|
83
|
+
readonly logs: "logs";
|
|
84
|
+
};
|
|
85
|
+
export type SeederScalarFieldEnum = (typeof SeederScalarFieldEnum)[keyof typeof SeederScalarFieldEnum];
|
|
86
|
+
export declare const FileScalarFieldEnum: {
|
|
87
|
+
readonly id: "id";
|
|
88
|
+
readonly name: "name";
|
|
89
|
+
readonly originalName: "originalName";
|
|
90
|
+
readonly mimeType: "mimeType";
|
|
91
|
+
readonly sizeBytes: "sizeBytes";
|
|
92
|
+
readonly title: "title";
|
|
93
|
+
readonly description: "description";
|
|
94
|
+
readonly resourceField: "resourceField";
|
|
95
|
+
readonly resourceName: "resourceName";
|
|
96
|
+
readonly resourceId: "resourceId";
|
|
97
|
+
readonly updatedAt: "updatedAt";
|
|
98
|
+
readonly createdAt: "createdAt";
|
|
99
|
+
};
|
|
100
|
+
export type FileScalarFieldEnum = (typeof FileScalarFieldEnum)[keyof typeof FileScalarFieldEnum];
|
|
101
|
+
export declare const SortOrder: {
|
|
102
|
+
readonly asc: "asc";
|
|
103
|
+
readonly desc: "desc";
|
|
104
|
+
};
|
|
105
|
+
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
106
|
+
export declare const JsonNullValueInput: {
|
|
107
|
+
readonly JsonNull: import("@prisma/client-runtime-utils").JsonNullClass;
|
|
108
|
+
};
|
|
109
|
+
export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput];
|
|
110
|
+
export declare const NullsOrder: {
|
|
111
|
+
readonly first: "first";
|
|
112
|
+
readonly last: "last";
|
|
113
|
+
};
|
|
114
|
+
export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder];
|
|
115
|
+
export declare const JsonNullValueFilter: {
|
|
116
|
+
readonly DbNull: import("@prisma/client-runtime-utils").DbNullClass;
|
|
117
|
+
readonly JsonNull: import("@prisma/client-runtime-utils").JsonNullClass;
|
|
118
|
+
readonly AnyNull: import("@prisma/client-runtime-utils").AnyNullClass;
|
|
119
|
+
};
|
|
120
|
+
export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter];
|
|
121
|
+
export declare const QueryMode: {
|
|
122
|
+
readonly default: "default";
|
|
123
|
+
readonly insensitive: "insensitive";
|
|
124
|
+
};
|
|
125
|
+
export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode];
|
|
@@ -0,0 +1,164 @@
|
|
|
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
|
+
* All exports from this file are wrapped under a `Prisma` namespace object in the browser.ts file.
|
|
12
|
+
* While this enables partial backward compatibility, it is not part of the stable public API.
|
|
13
|
+
*
|
|
14
|
+
* If you are looking for your Models, Enums, and Input Types, please import them from the respective
|
|
15
|
+
* model files in the `model` directory!
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
29
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
30
|
+
}) : function(o, v) {
|
|
31
|
+
o["default"] = v;
|
|
32
|
+
});
|
|
33
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
34
|
+
var ownKeys = function(o) {
|
|
35
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
36
|
+
var ar = [];
|
|
37
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
38
|
+
return ar;
|
|
39
|
+
};
|
|
40
|
+
return ownKeys(o);
|
|
41
|
+
};
|
|
42
|
+
return function (mod) {
|
|
43
|
+
if (mod && mod.__esModule) return mod;
|
|
44
|
+
var result = {};
|
|
45
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
46
|
+
__setModuleDefault(result, mod);
|
|
47
|
+
return result;
|
|
48
|
+
};
|
|
49
|
+
})();
|
|
50
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
|
+
exports.QueryMode = exports.JsonNullValueFilter = exports.NullsOrder = exports.JsonNullValueInput = exports.SortOrder = exports.FileScalarFieldEnum = exports.SeederScalarFieldEnum = exports.RoleScalarFieldEnum = exports.PermissionScalarFieldEnum = exports.OneTimeTokenScalarFieldEnum = exports.ApiKeyScalarFieldEnum = exports.TransactionIsolationLevel = exports.ModelName = exports.AnyNull = exports.JsonNull = exports.DbNull = exports.NullTypes = exports.Decimal = void 0;
|
|
52
|
+
const runtime = __importStar(require("@prisma/client/runtime/index-browser"));
|
|
53
|
+
exports.Decimal = runtime.Decimal;
|
|
54
|
+
exports.NullTypes = {
|
|
55
|
+
DbNull: runtime.NullTypes.DbNull,
|
|
56
|
+
JsonNull: runtime.NullTypes.JsonNull,
|
|
57
|
+
AnyNull: runtime.NullTypes.AnyNull,
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Helper for filtering JSON entries that have `null` on the database (empty on the db)
|
|
61
|
+
*
|
|
62
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
63
|
+
*/
|
|
64
|
+
exports.DbNull = runtime.DbNull;
|
|
65
|
+
/**
|
|
66
|
+
* Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
|
|
67
|
+
*
|
|
68
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
69
|
+
*/
|
|
70
|
+
exports.JsonNull = runtime.JsonNull;
|
|
71
|
+
/**
|
|
72
|
+
* Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
|
|
73
|
+
*
|
|
74
|
+
* @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
|
|
75
|
+
*/
|
|
76
|
+
exports.AnyNull = runtime.AnyNull;
|
|
77
|
+
exports.ModelName = {
|
|
78
|
+
ApiKey: 'ApiKey',
|
|
79
|
+
OneTimeToken: 'OneTimeToken',
|
|
80
|
+
Permission: 'Permission',
|
|
81
|
+
Role: 'Role',
|
|
82
|
+
Seeder: 'Seeder',
|
|
83
|
+
File: 'File'
|
|
84
|
+
};
|
|
85
|
+
/*
|
|
86
|
+
* Enums
|
|
87
|
+
*/
|
|
88
|
+
exports.TransactionIsolationLevel = runtime.makeStrictEnum({
|
|
89
|
+
Serializable: 'Serializable'
|
|
90
|
+
});
|
|
91
|
+
exports.ApiKeyScalarFieldEnum = {
|
|
92
|
+
id: 'id',
|
|
93
|
+
key: 'key',
|
|
94
|
+
keyHash: 'keyHash',
|
|
95
|
+
name: 'name',
|
|
96
|
+
description: 'description',
|
|
97
|
+
enabled: 'enabled',
|
|
98
|
+
expiresAt: 'expiresAt',
|
|
99
|
+
updatedAt: 'updatedAt',
|
|
100
|
+
createdAt: 'createdAt'
|
|
101
|
+
};
|
|
102
|
+
exports.OneTimeTokenScalarFieldEnum = {
|
|
103
|
+
id: 'id',
|
|
104
|
+
tokenHash: 'tokenHash',
|
|
105
|
+
purpose: 'purpose',
|
|
106
|
+
expiresAt: 'expiresAt',
|
|
107
|
+
data: 'data',
|
|
108
|
+
updatedAt: 'updatedAt',
|
|
109
|
+
createdAt: 'createdAt'
|
|
110
|
+
};
|
|
111
|
+
exports.PermissionScalarFieldEnum = {
|
|
112
|
+
id: 'id',
|
|
113
|
+
name: 'name',
|
|
114
|
+
updatedAt: 'updatedAt',
|
|
115
|
+
createdAt: 'createdAt'
|
|
116
|
+
};
|
|
117
|
+
exports.RoleScalarFieldEnum = {
|
|
118
|
+
id: 'id',
|
|
119
|
+
name: 'name',
|
|
120
|
+
updatedAt: 'updatedAt',
|
|
121
|
+
createdAt: 'createdAt'
|
|
122
|
+
};
|
|
123
|
+
exports.SeederScalarFieldEnum = {
|
|
124
|
+
id: 'id',
|
|
125
|
+
checksum: 'checksum',
|
|
126
|
+
seederName: 'seederName',
|
|
127
|
+
startedAt: 'startedAt',
|
|
128
|
+
finishedAt: 'finishedAt',
|
|
129
|
+
logs: 'logs'
|
|
130
|
+
};
|
|
131
|
+
exports.FileScalarFieldEnum = {
|
|
132
|
+
id: 'id',
|
|
133
|
+
name: 'name',
|
|
134
|
+
originalName: 'originalName',
|
|
135
|
+
mimeType: 'mimeType',
|
|
136
|
+
sizeBytes: 'sizeBytes',
|
|
137
|
+
title: 'title',
|
|
138
|
+
description: 'description',
|
|
139
|
+
resourceField: 'resourceField',
|
|
140
|
+
resourceName: 'resourceName',
|
|
141
|
+
resourceId: 'resourceId',
|
|
142
|
+
updatedAt: 'updatedAt',
|
|
143
|
+
createdAt: 'createdAt'
|
|
144
|
+
};
|
|
145
|
+
exports.SortOrder = {
|
|
146
|
+
asc: 'asc',
|
|
147
|
+
desc: 'desc'
|
|
148
|
+
};
|
|
149
|
+
exports.JsonNullValueInput = {
|
|
150
|
+
JsonNull: exports.JsonNull
|
|
151
|
+
};
|
|
152
|
+
exports.NullsOrder = {
|
|
153
|
+
first: 'first',
|
|
154
|
+
last: 'last'
|
|
155
|
+
};
|
|
156
|
+
exports.JsonNullValueFilter = {
|
|
157
|
+
DbNull: exports.DbNull,
|
|
158
|
+
JsonNull: exports.JsonNull,
|
|
159
|
+
AnyNull: exports.AnyNull
|
|
160
|
+
};
|
|
161
|
+
exports.QueryMode = {
|
|
162
|
+
default: 'default',
|
|
163
|
+
insensitive: 'insensitive'
|
|
164
|
+
};
|