@igstack/app-catalog-backend-core 0.1.1-alpha-20260304050203 → 0.2.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 (33) hide show
  1. package/dist/index.d.ts +11282 -20
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +5507 -117
  4. package/dist/index.js.map +1 -1
  5. package/package.json +6 -6
  6. package/prisma/schema.prisma +2 -2
  7. package/src/db/client.ts +20 -2
  8. package/src/db/prisma.ts +3 -0
  9. package/src/db/syncAppCatalog.ts +1 -1
  10. package/src/db/tableSyncMagazine.ts +1 -1
  11. package/src/db/tableSyncPrismaAdapter.ts +2 -3
  12. package/src/generated/prisma/browser.ts +59 -0
  13. package/src/generated/prisma/client.ts +83 -0
  14. package/src/generated/prisma/commonInputTypes.ts +658 -0
  15. package/src/generated/prisma/enums.ts +26 -0
  16. package/src/generated/prisma/internal/class.ts +274 -0
  17. package/src/generated/prisma/internal/prismaNamespace.ts +1506 -0
  18. package/src/generated/prisma/internal/prismaNamespaceBrowser.ts +250 -0
  19. package/src/generated/prisma/models/DbAppForCatalog.ts +1490 -0
  20. package/src/generated/prisma/models/DbAppTagDefinition.ts +1199 -0
  21. package/src/generated/prisma/models/DbApprovalMethod.ts +1181 -0
  22. package/src/generated/prisma/models/DbAsset.ts +1394 -0
  23. package/src/generated/prisma/models/account.ts +1632 -0
  24. package/src/generated/prisma/models/session.ts +1447 -0
  25. package/src/generated/prisma/models/user.ts +1562 -0
  26. package/src/generated/prisma/models/verification.ts +1180 -0
  27. package/src/generated/prisma/models.ts +19 -0
  28. package/src/generated/prisma/pjtg.ts +183 -0
  29. package/src/index.ts +3 -0
  30. package/src/middleware/database.ts +13 -2
  31. package/src/modules/approvalMethod/approvalMethodRouter.ts +1 -1
  32. package/src/modules/approvalMethod/syncApprovalMethods.ts +1 -1
  33. package/src/modules/assets/upsertAsset.ts +1 -1
@@ -0,0 +1,250 @@
1
+
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
+
18
+ import * as runtime from "@prisma/client/runtime/index-browser"
19
+
20
+ export type * from '../models'
21
+ export type * from './prismaNamespace'
22
+
23
+ export const Decimal = runtime.Decimal
24
+
25
+
26
+ export const NullTypes = {
27
+ DbNull: runtime.NullTypes.DbNull as (new (secret: never) => typeof runtime.DbNull),
28
+ JsonNull: runtime.NullTypes.JsonNull as (new (secret: never) => typeof runtime.JsonNull),
29
+ AnyNull: runtime.NullTypes.AnyNull as (new (secret: never) => typeof runtime.AnyNull),
30
+ }
31
+ /**
32
+ * Helper for filtering JSON entries that have `null` on the database (empty on the db)
33
+ *
34
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
35
+ */
36
+ export const DbNull = runtime.DbNull
37
+
38
+ /**
39
+ * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
40
+ *
41
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
42
+ */
43
+ export const JsonNull = runtime.JsonNull
44
+
45
+ /**
46
+ * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
47
+ *
48
+ * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
49
+ */
50
+ export const AnyNull = runtime.AnyNull
51
+
52
+
53
+ export const ModelName = {
54
+ user: 'user',
55
+ session: 'session',
56
+ account: 'account',
57
+ verification: 'verification',
58
+ DbApprovalMethod: 'DbApprovalMethod',
59
+ DbAppForCatalog: 'DbAppForCatalog',
60
+ DbAppTagDefinition: 'DbAppTagDefinition',
61
+ DbAsset: 'DbAsset'
62
+ } as const
63
+
64
+ export type ModelName = (typeof ModelName)[keyof typeof ModelName]
65
+
66
+ /*
67
+ * Enums
68
+ */
69
+
70
+ export const TransactionIsolationLevel = runtime.makeStrictEnum({
71
+ ReadUncommitted: 'ReadUncommitted',
72
+ ReadCommitted: 'ReadCommitted',
73
+ RepeatableRead: 'RepeatableRead',
74
+ Serializable: 'Serializable'
75
+ } as const)
76
+
77
+ export type TransactionIsolationLevel = (typeof TransactionIsolationLevel)[keyof typeof TransactionIsolationLevel]
78
+
79
+
80
+ export const UserScalarFieldEnum = {
81
+ id: 'id',
82
+ name: 'name',
83
+ email: 'email',
84
+ emailVerified: 'emailVerified',
85
+ image: 'image',
86
+ role: 'role',
87
+ createdAt: 'createdAt',
88
+ updatedAt: 'updatedAt'
89
+ } as const
90
+
91
+ export type UserScalarFieldEnum = (typeof UserScalarFieldEnum)[keyof typeof UserScalarFieldEnum]
92
+
93
+
94
+ export const SessionScalarFieldEnum = {
95
+ id: 'id',
96
+ token: 'token',
97
+ userId: 'userId',
98
+ expiresAt: 'expiresAt',
99
+ ipAddress: 'ipAddress',
100
+ userAgent: 'userAgent',
101
+ createdAt: 'createdAt',
102
+ updatedAt: 'updatedAt'
103
+ } as const
104
+
105
+ export type SessionScalarFieldEnum = (typeof SessionScalarFieldEnum)[keyof typeof SessionScalarFieldEnum]
106
+
107
+
108
+ export const AccountScalarFieldEnum = {
109
+ id: 'id',
110
+ userId: 'userId',
111
+ accountId: 'accountId',
112
+ providerId: 'providerId',
113
+ refreshToken: 'refreshToken',
114
+ accessToken: 'accessToken',
115
+ accessTokenExpiresAt: 'accessTokenExpiresAt',
116
+ refreshTokenExpiresAt: 'refreshTokenExpiresAt',
117
+ idToken: 'idToken',
118
+ scope: 'scope',
119
+ password: 'password',
120
+ createdAt: 'createdAt',
121
+ updatedAt: 'updatedAt'
122
+ } as const
123
+
124
+ export type AccountScalarFieldEnum = (typeof AccountScalarFieldEnum)[keyof typeof AccountScalarFieldEnum]
125
+
126
+
127
+ export const VerificationScalarFieldEnum = {
128
+ id: 'id',
129
+ identifier: 'identifier',
130
+ value: 'value',
131
+ expiresAt: 'expiresAt',
132
+ createdAt: 'createdAt',
133
+ updatedAt: 'updatedAt'
134
+ } as const
135
+
136
+ export type VerificationScalarFieldEnum = (typeof VerificationScalarFieldEnum)[keyof typeof VerificationScalarFieldEnum]
137
+
138
+
139
+ export const DbApprovalMethodScalarFieldEnum = {
140
+ slug: 'slug',
141
+ type: 'type',
142
+ displayName: 'displayName',
143
+ config: 'config',
144
+ createdAt: 'createdAt',
145
+ updatedAt: 'updatedAt'
146
+ } as const
147
+
148
+ export type DbApprovalMethodScalarFieldEnum = (typeof DbApprovalMethodScalarFieldEnum)[keyof typeof DbApprovalMethodScalarFieldEnum]
149
+
150
+
151
+ export const DbAppForCatalogScalarFieldEnum = {
152
+ id: 'id',
153
+ slug: 'slug',
154
+ displayName: 'displayName',
155
+ description: 'description',
156
+ access: 'access',
157
+ teams: 'teams',
158
+ accessRequest: 'accessRequest',
159
+ notes: 'notes',
160
+ tags: 'tags',
161
+ appUrl: 'appUrl',
162
+ links: 'links',
163
+ iconName: 'iconName',
164
+ screenshotIds: 'screenshotIds',
165
+ deprecated: 'deprecated',
166
+ sources: 'sources',
167
+ createdAt: 'createdAt',
168
+ updatedAt: 'updatedAt'
169
+ } as const
170
+
171
+ export type DbAppForCatalogScalarFieldEnum = (typeof DbAppForCatalogScalarFieldEnum)[keyof typeof DbAppForCatalogScalarFieldEnum]
172
+
173
+
174
+ export const DbAppTagDefinitionScalarFieldEnum = {
175
+ id: 'id',
176
+ prefix: 'prefix',
177
+ displayName: 'displayName',
178
+ description: 'description',
179
+ values: 'values',
180
+ createdAt: 'createdAt',
181
+ updatedAt: 'updatedAt'
182
+ } as const
183
+
184
+ export type DbAppTagDefinitionScalarFieldEnum = (typeof DbAppTagDefinitionScalarFieldEnum)[keyof typeof DbAppTagDefinitionScalarFieldEnum]
185
+
186
+
187
+ export const DbAssetScalarFieldEnum = {
188
+ id: 'id',
189
+ name: 'name',
190
+ assetType: 'assetType',
191
+ content: 'content',
192
+ checksum: 'checksum',
193
+ mimeType: 'mimeType',
194
+ fileSize: 'fileSize',
195
+ width: 'width',
196
+ height: 'height',
197
+ createdAt: 'createdAt',
198
+ updatedAt: 'updatedAt'
199
+ } as const
200
+
201
+ export type DbAssetScalarFieldEnum = (typeof DbAssetScalarFieldEnum)[keyof typeof DbAssetScalarFieldEnum]
202
+
203
+
204
+ export const SortOrder = {
205
+ asc: 'asc',
206
+ desc: 'desc'
207
+ } as const
208
+
209
+ export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder]
210
+
211
+
212
+ export const NullableJsonNullValueInput = {
213
+ DbNull: DbNull,
214
+ JsonNull: JsonNull
215
+ } as const
216
+
217
+ export type NullableJsonNullValueInput = (typeof NullableJsonNullValueInput)[keyof typeof NullableJsonNullValueInput]
218
+
219
+
220
+ export const JsonNullValueInput = {
221
+ JsonNull: JsonNull
222
+ } as const
223
+
224
+ export type JsonNullValueInput = (typeof JsonNullValueInput)[keyof typeof JsonNullValueInput]
225
+
226
+
227
+ export const QueryMode = {
228
+ default: 'default',
229
+ insensitive: 'insensitive'
230
+ } as const
231
+
232
+ export type QueryMode = (typeof QueryMode)[keyof typeof QueryMode]
233
+
234
+
235
+ export const NullsOrder = {
236
+ first: 'first',
237
+ last: 'last'
238
+ } as const
239
+
240
+ export type NullsOrder = (typeof NullsOrder)[keyof typeof NullsOrder]
241
+
242
+
243
+ export const JsonNullValueFilter = {
244
+ DbNull: DbNull,
245
+ JsonNull: JsonNull,
246
+ AnyNull: AnyNull
247
+ } as const
248
+
249
+ export type JsonNullValueFilter = (typeof JsonNullValueFilter)[keyof typeof JsonNullValueFilter]
250
+