@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.
Files changed (271) hide show
  1. package/LICENSE +1 -0
  2. package/README.md +7 -0
  3. package/app/application.d.ts +43 -0
  4. package/app/application.js +112 -0
  5. package/app/create-app.d.ts +32 -0
  6. package/app/create-app.js +38 -0
  7. package/app/index.d.ts +2 -0
  8. package/app/index.js +18 -0
  9. package/app/lifecycle-manager.d.ts +20 -0
  10. package/app/lifecycle-manager.js +42 -0
  11. package/app/load-modules.d.ts +10 -0
  12. package/app/load-modules.js +50 -0
  13. package/app/load-providers.d.ts +8 -0
  14. package/app/load-providers.js +33 -0
  15. package/cache/cache-service.d.ts +72 -0
  16. package/cache/cache-service.js +202 -0
  17. package/cache/cache.d.ts +12 -0
  18. package/cache/cache.js +184 -0
  19. package/cache/caching.d.ts +8 -0
  20. package/cache/caching.js +72 -0
  21. package/cache/eviction/eviction-index.d.ts +35 -0
  22. package/cache/eviction/eviction-index.js +2 -0
  23. package/cache/eviction/fifo-eviction-index.d.ts +7 -0
  24. package/cache/eviction/fifo-eviction-index.js +28 -0
  25. package/cache/eviction/index.d.ts +4 -0
  26. package/cache/eviction/index.js +20 -0
  27. package/cache/eviction/lfu-eviction-index.d.ts +8 -0
  28. package/cache/eviction/lfu-eviction-index.js +82 -0
  29. package/cache/eviction/lru-eviction-index.d.ts +8 -0
  30. package/cache/eviction/lru-eviction-index.js +81 -0
  31. package/cache/index.d.ts +2 -0
  32. package/cache/index.js +18 -0
  33. package/cache/memory-cache.d.ts +4 -0
  34. package/cache/memory-cache.js +12 -0
  35. package/cache/redis-cache.d.ts +4 -0
  36. package/cache/redis-cache.js +12 -0
  37. package/context/context.d.ts +2 -0
  38. package/context/context.js +13 -0
  39. package/context/dependency-injection.d.ts +98 -0
  40. package/context/dependency-injection.js +276 -0
  41. package/context/index.d.ts +2 -0
  42. package/context/index.js +18 -0
  43. package/database/create-client.d.ts +11 -0
  44. package/database/create-client.js +142 -0
  45. package/database/index.d.ts +1 -0
  46. package/database/index.js +17 -0
  47. package/database/prisma-database.d.ts +15 -0
  48. package/database/prisma-database.js +53 -0
  49. package/errors/error-handler.d.ts +3 -0
  50. package/errors/error-handler.js +24 -0
  51. package/errors/error-schema.d.ts +32 -0
  52. package/errors/error-schema.js +31 -0
  53. package/errors/http-error.d.ts +21 -0
  54. package/errors/http-error.js +33 -0
  55. package/errors/index.d.ts +3 -0
  56. package/errors/index.js +19 -0
  57. package/events/node-events.d.ts +7 -0
  58. package/events/node-events.js +39 -0
  59. package/export/export-service.d.ts +19 -0
  60. package/export/export-service.js +154 -0
  61. package/export/index.d.ts +1 -0
  62. package/export/index.js +17 -0
  63. package/factory/create-model.d.ts +2 -0
  64. package/factory/create-model.js +366 -0
  65. package/factory/create-policy.d.ts +2 -0
  66. package/factory/create-policy.js +16 -0
  67. package/factory/create-routes.d.ts +2 -0
  68. package/factory/create-routes.js +21 -0
  69. package/factory/create-service.d.ts +3 -0
  70. package/factory/create-service.js +97 -0
  71. package/factory/index.d.ts +4 -0
  72. package/factory/index.js +20 -0
  73. package/health/health-routes.d.ts +2 -0
  74. package/health/health-routes.js +36 -0
  75. package/health/health-schema.d.ts +45 -0
  76. package/health/health-schema.js +52 -0
  77. package/health/health-service.d.ts +38 -0
  78. package/health/health-service.js +82 -0
  79. package/health/index.d.ts +2 -0
  80. package/health/index.js +18 -0
  81. package/index.d.ts +15 -0
  82. package/index.js +31 -0
  83. package/mailer/email-service.d.ts +36 -0
  84. package/mailer/email-service.js +89 -0
  85. package/mailer/index.d.ts +1 -0
  86. package/mailer/index.js +17 -0
  87. package/mailer/json-mailer.d.ts +7 -0
  88. package/mailer/json-mailer.js +32 -0
  89. package/mailer/smtp-mailer.d.ts +7 -0
  90. package/mailer/smtp-mailer.js +43 -0
  91. package/memory/in-memory.d.ts +24 -0
  92. package/memory/in-memory.js +164 -0
  93. package/memory/redis.d.ts +26 -0
  94. package/memory/redis.js +158 -0
  95. package/package.json +68 -0
  96. package/prisma/client/browser.d.ts +34 -0
  97. package/prisma/client/browser.js +56 -0
  98. package/prisma/client/client.d.ts +53 -0
  99. package/prisma/client/client.js +70 -0
  100. package/prisma/client/commonInputTypes.d.ts +395 -0
  101. package/prisma/client/commonInputTypes.js +11 -0
  102. package/prisma/client/enums.d.ts +1 -0
  103. package/prisma/client/enums.js +11 -0
  104. package/prisma/client/internal/class.d.ts +187 -0
  105. package/prisma/client/internal/class.js +85 -0
  106. package/prisma/client/internal/prismaNamespace.d.ts +987 -0
  107. package/prisma/client/internal/prismaNamespace.js +193 -0
  108. package/prisma/client/internal/prismaNamespaceBrowser.d.ts +125 -0
  109. package/prisma/client/internal/prismaNamespaceBrowser.js +164 -0
  110. package/prisma/client/models/ApiKey.d.ts +1167 -0
  111. package/prisma/client/models/ApiKey.js +2 -0
  112. package/prisma/client/models/File.d.ts +1248 -0
  113. package/prisma/client/models/File.js +2 -0
  114. package/prisma/client/models/OneTimeToken.d.ts +1083 -0
  115. package/prisma/client/models/OneTimeToken.js +2 -0
  116. package/prisma/client/models/Permission.d.ts +1209 -0
  117. package/prisma/client/models/Permission.js +2 -0
  118. package/prisma/client/models/Role.d.ts +1209 -0
  119. package/prisma/client/models/Role.js +2 -0
  120. package/prisma/client/models/Seeder.d.ts +1023 -0
  121. package/prisma/client/models/Seeder.js +2 -0
  122. package/prisma/client/models.d.ts +7 -0
  123. package/prisma/client/models.js +2 -0
  124. package/queue/bull-queue.d.ts +37 -0
  125. package/queue/bull-queue.js +207 -0
  126. package/queue/memory-queue.d.ts +54 -0
  127. package/queue/memory-queue.js +283 -0
  128. package/resource/index.d.ts +4 -0
  129. package/resource/index.js +20 -0
  130. package/resource/resource-loader.d.ts +26 -0
  131. package/resource/resource-loader.js +161 -0
  132. package/resource/resource-routes.d.ts +3 -0
  133. package/resource/resource-routes.js +174 -0
  134. package/resource/resource-schema.d.ts +33 -0
  135. package/resource/resource-schema.js +186 -0
  136. package/resource/resource-service.d.ts +89 -0
  137. package/resource/resource-service.js +772 -0
  138. package/resources.d.ts +9 -0
  139. package/resources.js +24 -0
  140. package/scheduler/cron-scheduler.d.ts +12 -0
  141. package/scheduler/cron-scheduler.js +73 -0
  142. package/security/account/account-routes.d.ts +2 -0
  143. package/security/account/account-routes.js +104 -0
  144. package/security/account/account-schema.d.ts +290 -0
  145. package/security/account/account-schema.js +166 -0
  146. package/security/account/account-service.d.ts +88 -0
  147. package/security/account/account-service.js +218 -0
  148. package/security/account/index.d.ts +3 -0
  149. package/security/account/index.js +19 -0
  150. package/security/api-key/api-key-auth.d.ts +4 -0
  151. package/security/api-key/api-key-auth.js +66 -0
  152. package/security/api-key/index.d.ts +1 -0
  153. package/security/api-key/index.js +17 -0
  154. package/security/auth-routes.d.ts +2 -0
  155. package/security/auth-routes.js +80 -0
  156. package/security/auth-schema.d.ts +215 -0
  157. package/security/auth-schema.js +129 -0
  158. package/security/auth-service.d.ts +117 -0
  159. package/security/auth-service.js +272 -0
  160. package/security/auth.d.ts +3 -0
  161. package/security/auth.js +127 -0
  162. package/security/basic/basic-auth.d.ts +4 -0
  163. package/security/basic/basic-auth.js +32 -0
  164. package/security/basic/index.d.ts +1 -0
  165. package/security/basic/index.js +17 -0
  166. package/security/create-auth-resources.d.ts +6 -0
  167. package/security/create-auth-resources.js +129 -0
  168. package/security/helper.d.ts +127 -0
  169. package/security/helper.js +329 -0
  170. package/security/index.d.ts +4 -0
  171. package/security/index.js +20 -0
  172. package/security/jwt/index.d.ts +2 -0
  173. package/security/jwt/index.js +18 -0
  174. package/security/jwt/jwt-auth.d.ts +4 -0
  175. package/security/jwt/jwt-auth.js +57 -0
  176. package/security/jwt/jwt-keys.d.ts +7 -0
  177. package/security/jwt/jwt-keys.js +43 -0
  178. package/security/oauth2/create-oauth2-plugin.d.ts +17 -0
  179. package/security/oauth2/create-oauth2-plugin.js +85 -0
  180. package/security/oauth2/index.d.ts +3 -0
  181. package/security/oauth2/index.js +19 -0
  182. package/security/oauth2/oauth2-custom.d.ts +7 -0
  183. package/security/oauth2/oauth2-custom.js +40 -0
  184. package/security/oauth2/oauth2-facebook.d.ts +1 -0
  185. package/security/oauth2/oauth2-facebook.js +30 -0
  186. package/security/oauth2/oauth2-google.d.ts +1 -0
  187. package/security/oauth2/oauth2-google.js +28 -0
  188. package/security/oauth2/oauth2-schema.d.ts +10 -0
  189. package/security/oauth2/oauth2-schema.js +53 -0
  190. package/security/recaptcha/index.d.ts +2 -0
  191. package/security/recaptcha/index.js +18 -0
  192. package/security/recaptcha/recaptcha-verify.d.ts +1 -0
  193. package/security/recaptcha/recaptcha-verify.js +33 -0
  194. package/security/recaptcha/recaptcha.d.ts +2 -0
  195. package/security/recaptcha/recaptcha.js +22 -0
  196. package/security/resources/api-key/model.d.ts +2 -0
  197. package/security/resources/api-key/model.js +63 -0
  198. package/security/resources/api-key/policy.d.ts +2 -0
  199. package/security/resources/api-key/policy.js +26 -0
  200. package/security/resources/api-key/routes.d.ts +2 -0
  201. package/security/resources/api-key/routes.js +15 -0
  202. package/security/resources/api-key/service.d.ts +3 -0
  203. package/security/resources/api-key/service.js +33 -0
  204. package/security/resources/one-time-token/model.d.ts +2 -0
  205. package/security/resources/one-time-token/model.js +32 -0
  206. package/security/resources/permission/model.d.ts +2 -0
  207. package/security/resources/permission/model.js +16 -0
  208. package/security/resources/role/model.d.ts +2 -0
  209. package/security/resources/role/model.js +22 -0
  210. package/security/store/database-security-store.d.ts +5 -0
  211. package/security/store/database-security-store.js +51 -0
  212. package/security/store/redis-security-store.d.ts +5 -0
  213. package/security/store/redis-security-store.js +32 -0
  214. package/seeder/create-seeder.d.ts +21 -0
  215. package/seeder/create-seeder.js +17 -0
  216. package/seeder/index.d.ts +2 -0
  217. package/seeder/index.js +18 -0
  218. package/seeder/resources/seeder/model.d.ts +2 -0
  219. package/seeder/resources/seeder/model.js +38 -0
  220. package/seeder/seeder.d.ts +20 -0
  221. package/seeder/seeder.js +175 -0
  222. package/server/create-server.d.ts +20 -0
  223. package/server/create-server.js +160 -0
  224. package/server/index.d.ts +4 -0
  225. package/server/index.js +20 -0
  226. package/server/info-route.d.ts +2 -0
  227. package/server/info-route.js +18 -0
  228. package/server/info-schema.d.ts +37 -0
  229. package/server/info-schema.js +19 -0
  230. package/server/register-model.d.ts +2 -0
  231. package/server/register-model.js +12 -0
  232. package/server/register-plugin.d.ts +2 -0
  233. package/server/register-plugin.js +13 -0
  234. package/server/register-route.d.ts +3 -0
  235. package/server/register-route.js +74 -0
  236. package/server/schemas.d.ts +3 -0
  237. package/server/schemas.js +30 -0
  238. package/server/swagger.d.ts +3 -0
  239. package/server/swagger.js +122 -0
  240. package/storage/file-route.d.ts +2 -0
  241. package/storage/file-route.js +39 -0
  242. package/storage/file-schema.d.ts +9 -0
  243. package/storage/file-schema.js +42 -0
  244. package/storage/file-service.d.ts +81 -0
  245. package/storage/file-service.js +384 -0
  246. package/storage/filesystem-storage.d.ts +10 -0
  247. package/storage/filesystem-storage.js +128 -0
  248. package/storage/index.d.ts +2 -0
  249. package/storage/index.js +18 -0
  250. package/storage/resources/file/model.d.ts +2 -0
  251. package/storage/resources/file/model.js +75 -0
  252. package/types/application-context.d.ts +20 -0
  253. package/types/application-context.js +2 -0
  254. package/types/auth.d.ts +31 -0
  255. package/types/auth.js +2 -0
  256. package/types/fastify-extensions.d.ts +24 -0
  257. package/types/fastify-extensions.js +4 -0
  258. package/types/generated.d.ts +193 -0
  259. package/types/generated.js +3 -0
  260. package/types/index.d.ts +4 -0
  261. package/types/index.js +20 -0
  262. package/types/server.d.ts +4 -0
  263. package/types/server.js +2 -0
  264. package/utils/export-util.d.ts +8 -0
  265. package/utils/export-util.js +25 -0
  266. package/utils/file-util.d.ts +64 -0
  267. package/utils/file-util.js +141 -0
  268. package/utils/index.d.ts +3 -0
  269. package/utils/index.js +19 -0
  270. package/utils/schema-util.d.ts +20 -0
  271. 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
+ };