@shophost/rest-api 2.0.34 → 2.0.35

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 (148) hide show
  1. package/package.json +1 -1
  2. package/scripts/minify-dist.mjs +45 -0
  3. package/src/app.js +1 -53
  4. package/src/core/auth/auth.schema.js +1 -41
  5. package/src/core/auth/auth.util.js +1 -44
  6. package/src/core/auth/better-auth.lib.js +1 -100
  7. package/src/core/auth/generate-password-hash.util.js +1 -30
  8. package/src/core/auth/headers.schema.js +1 -22
  9. package/src/core/auth/user.schema.js +1 -30
  10. package/src/core/db/__generated__/client/browser.js +1 -18
  11. package/src/core/db/__generated__/client/client.js +1 -35
  12. package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
  13. package/src/core/db/__generated__/client/enums.js +1 -200
  14. package/src/core/db/__generated__/client/internal/class.js +769 -55
  15. package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
  16. package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
  17. package/src/core/db/__generated__/client/models/Account.js +1 -2
  18. package/src/core/db/__generated__/client/models/Address.js +1 -2
  19. package/src/core/db/__generated__/client/models/Campaign.js +1 -2
  20. package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
  21. package/src/core/db/__generated__/client/models/File.js +1 -2
  22. package/src/core/db/__generated__/client/models/Invitation.js +1 -2
  23. package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
  24. package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
  25. package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
  26. package/src/core/db/__generated__/client/models/Member.js +1 -2
  27. package/src/core/db/__generated__/client/models/Modifier.js +1 -2
  28. package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
  29. package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
  30. package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
  31. package/src/core/db/__generated__/client/models/Order.js +1 -2
  32. package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
  33. package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
  34. package/src/core/db/__generated__/client/models/Organization.js +1 -2
  35. package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
  36. package/src/core/db/__generated__/client/models/Payment.js +1 -2
  37. package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
  38. package/src/core/db/__generated__/client/models/Product.js +1 -2
  39. package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
  40. package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
  41. package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
  42. package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
  43. package/src/core/db/__generated__/client/models/Reservation.js +1 -2
  44. package/src/core/db/__generated__/client/models/Session.js +1 -2
  45. package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
  46. package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
  47. package/src/core/db/__generated__/client/models/User.js +1 -2
  48. package/src/core/db/__generated__/client/models/Verification.js +1 -2
  49. package/src/core/db/__generated__/client/models.js +1 -2
  50. package/src/core/db/index.js +1 -2
  51. package/src/core/exceptions/http-exception.js +1 -9
  52. package/src/core/hono/hono.js +1 -123
  53. package/src/core/lib/prisma.js +1 -11
  54. package/src/core/logging/pino.js +1 -5
  55. package/src/core/notifications/email.service.js +1 -116
  56. package/src/core/openapi/openapi.lib.js +1 -26
  57. package/src/core/types/google-maps.types.js +1 -2
  58. package/src/core/utils/currency.util.js +1 -11
  59. package/src/core/utils/env.util.js +1 -8
  60. package/src/core/utils/object.util.js +1 -39
  61. package/src/core/utils/translations.util.js +0 -1
  62. package/src/core/utils/zod.util.js +1 -85
  63. package/src/db.js +1 -3
  64. package/src/features/access/access.handler.js +1 -91
  65. package/src/features/access/access.route.js +1 -220
  66. package/src/features/access/access.schema.js +1 -108
  67. package/src/features/access/access.service.js +1 -294
  68. package/src/features/cart/cart.handler.js +1 -17
  69. package/src/features/cart/cart.route.js +1 -32
  70. package/src/features/cart/cart.schema.js +1 -39
  71. package/src/features/cart/cart.service.js +1 -97
  72. package/src/features/cart/cart.util.js +1 -76
  73. package/src/features/file/file.handler.js +1 -23
  74. package/src/features/file/file.route.js +1 -34
  75. package/src/features/file/file.schema.js +1 -77
  76. package/src/features/file/file.service.js +1 -66
  77. package/src/features/health/health.handler.js +1 -10
  78. package/src/features/health/health.route.js +1 -25
  79. package/src/features/index.js +1 -16
  80. package/src/features/location/location.handler.js +1 -25
  81. package/src/features/location/location.route.js +1 -56
  82. package/src/features/location/location.schema.js +1 -50
  83. package/src/features/location/location.service.js +1 -141
  84. package/src/features/manufacturer/manufacturer.handler.js +1 -53
  85. package/src/features/manufacturer/manufacturer.route.js +1 -97
  86. package/src/features/manufacturer/manufacturer.schema.js +1 -125
  87. package/src/features/manufacturer/manufacturer.service.js +1 -190
  88. package/src/features/order/emails/order-confirmation.email.js +1 -229
  89. package/src/features/order/emails/order-notification.email.js +1 -229
  90. package/src/features/order/fulfilment.schema.js +1 -3
  91. package/src/features/order/order.handler.js +1 -54
  92. package/src/features/order/order.route.js +1 -111
  93. package/src/features/order/order.schema.js +1 -158
  94. package/src/features/order/order.service.js +1 -306
  95. package/src/features/order/recipient.schema.js +1 -38
  96. package/src/features/organization/legal-entity.schema.js +1 -83
  97. package/src/features/organization/organization-configuration.schema.js +1 -115
  98. package/src/features/organization/organization.handler.js +1 -48
  99. package/src/features/organization/organization.route.js +1 -84
  100. package/src/features/organization/organization.schema.js +1 -64
  101. package/src/features/organization/organization.service.js +1 -334
  102. package/src/features/payment/payment.handler.js +1 -16
  103. package/src/features/payment/payment.route.js +1 -22
  104. package/src/features/payment/payment.schema.js +1 -46
  105. package/src/features/payment/payment.service.js +1 -100
  106. package/src/features/payment/stripe.service.js +1 -164
  107. package/src/features/product/product-modifier.schema.js +1 -84
  108. package/src/features/product/product.handler.js +1 -87
  109. package/src/features/product/product.route.js +1 -179
  110. package/src/features/product/product.schema.js +1 -143
  111. package/src/features/product/product.service.js +1 -440
  112. package/src/features/product-category/product-category.handler.js +1 -59
  113. package/src/features/product-category/product-category.route.js +1 -139
  114. package/src/features/product-category/product-category.schema.js +1 -86
  115. package/src/features/product-category/product-category.service.js +1 -220
  116. package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
  117. package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
  118. package/src/features/reservation/emails/reservation-notification.email.js +1 -93
  119. package/src/features/reservation/reservation.handler.js +1 -65
  120. package/src/features/reservation/reservation.route.js +1 -167
  121. package/src/features/reservation/reservation.schema.js +1 -51
  122. package/src/features/reservation/reservation.service.js +1 -231
  123. package/src/features/shipping/shipping.handler.js +1 -32
  124. package/src/features/shipping/shipping.route.js +1 -51
  125. package/src/features/shipping/shipping.service.js +1 -96
  126. package/src/features/shipping-method/shipping-method.handler.js +1 -60
  127. package/src/features/shipping-method/shipping-method.route.js +1 -144
  128. package/src/features/shipping-method/shipping-method.schema.js +1 -48
  129. package/src/features/shipping-method/shipping-method.service.js +1 -229
  130. package/src/features/shipping-method/shipping-zone.schema.js +1 -31
  131. package/src/features/webhook/webhook.handler.js +1 -50
  132. package/src/features/webhook/webhook.route.js +1 -33
  133. package/src/index.js +1 -6
  134. package/src/integrations/next.js +1 -82
  135. package/src/schemas/address.schema.js +1 -112
  136. package/src/schemas/currency.schema.js +1 -118
  137. package/src/schemas/error.schema.js +1 -12
  138. package/src/schemas/index.js +1 -29
  139. package/src/schemas/locales.schema.js +1 -238
  140. package/src/schemas/number.schema.js +1 -29
  141. package/src/schemas/pagination.schema.js +1 -54
  142. package/src/schemas/params.schema.js +1 -20
  143. package/src/schemas/queries.schema.js +1 -6
  144. package/src/test/global-setup.js +1 -37
  145. package/src/test/integration/api-fixtures.js +1 -160
  146. package/src/test/integration/seed.js +1 -368
  147. package/src/test/integration/test-helpers.js +1 -154
  148. package/src/test/setup-test-env.js +1 -7
@@ -1,541 +1 @@
1
- /* !!! This is code generated by Prisma. Do not edit directly. !!! */
2
- /* eslint-disable */
3
- // biome-ignore-all lint: generated file
4
- // @ts-nocheck
5
- /*
6
- * WARNING: This is an internal file that is subject to change!
7
- *
8
- * 🛑 Under no circumstances should you import this file directly! 🛑
9
- *
10
- * All exports from this file are wrapped under a `Prisma` namespace object in the client.ts file.
11
- * While this enables partial backward compatibility, it is not part of the stable public API.
12
- *
13
- * If you are looking for your Models, Enums, and Input Types, please import them from the respective
14
- * model files in the `model` directory!
15
- */
16
- import * as runtime from "@prisma/client/runtime/client";
17
- /**
18
- * Prisma Errors
19
- */
20
- export const PrismaClientKnownRequestError = runtime.PrismaClientKnownRequestError;
21
- export const PrismaClientUnknownRequestError = runtime.PrismaClientUnknownRequestError;
22
- export const PrismaClientRustPanicError = runtime.PrismaClientRustPanicError;
23
- export const PrismaClientInitializationError = runtime.PrismaClientInitializationError;
24
- export const PrismaClientValidationError = runtime.PrismaClientValidationError;
25
- /**
26
- * Re-export of sql-template-tag
27
- */
28
- export const sql = runtime.sqltag;
29
- export const empty = runtime.empty;
30
- export const join = runtime.join;
31
- export const raw = runtime.raw;
32
- export const Sql = runtime.Sql;
33
- /**
34
- * Decimal.js
35
- */
36
- export const Decimal = runtime.Decimal;
37
- export const getExtensionContext = runtime.Extensions.getExtensionContext;
38
- /**
39
- * Prisma Client JS version: 7.5.0
40
- * Query Engine version: 280c870be64f457428992c43c1f6d557fab6e29e
41
- */
42
- export const prismaVersion = {
43
- client: "7.5.0",
44
- engine: "280c870be64f457428992c43c1f6d557fab6e29e"
45
- };
46
- export const NullTypes = {
47
- DbNull: runtime.NullTypes.DbNull,
48
- JsonNull: runtime.NullTypes.JsonNull,
49
- AnyNull: runtime.NullTypes.AnyNull,
50
- };
51
- /**
52
- * Helper for filtering JSON entries that have `null` on the database (empty on the db)
53
- *
54
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
55
- */
56
- export const DbNull = runtime.DbNull;
57
- /**
58
- * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
59
- *
60
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
61
- */
62
- export const JsonNull = runtime.JsonNull;
63
- /**
64
- * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
65
- *
66
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
67
- */
68
- export const AnyNull = runtime.AnyNull;
69
- export const ModelName = {
70
- User: 'User',
71
- Session: 'Session',
72
- Account: 'Account',
73
- Verification: 'Verification',
74
- Member: 'Member',
75
- Invitation: 'Invitation',
76
- Organization: 'Organization',
77
- OpeningTimes: 'OpeningTimes',
78
- ClosingTimes: 'ClosingTimes',
79
- OrganizationConfiguration: 'OrganizationConfiguration',
80
- Address: 'Address',
81
- LegalEntity: 'LegalEntity',
82
- File: 'File',
83
- Manufacturer: 'Manufacturer',
84
- ManufacturerTranslation: 'ManufacturerTranslation',
85
- ProductCategory: 'ProductCategory',
86
- ProductCategoryTranslation: 'ProductCategoryTranslation',
87
- Product: 'Product',
88
- ProductSnapshot: 'ProductSnapshot',
89
- ProductTranslation: 'ProductTranslation',
90
- ModifierGroup: 'ModifierGroup',
91
- ModifierGroupTranslation: 'ModifierGroupTranslation',
92
- Modifier: 'Modifier',
93
- Order: 'Order',
94
- OrderItem: 'OrderItem',
95
- OrderItemTranslation: 'OrderItemTranslation',
96
- Payment: 'Payment',
97
- PaymentSession: 'PaymentSession',
98
- Campaign: 'Campaign',
99
- ShippingMethod: 'ShippingMethod',
100
- ShippingZone: 'ShippingZone',
101
- Reservation: 'Reservation'
102
- };
103
- /**
104
- * Enums
105
- */
106
- export const TransactionIsolationLevel = runtime.makeStrictEnum({
107
- ReadUncommitted: 'ReadUncommitted',
108
- ReadCommitted: 'ReadCommitted',
109
- RepeatableRead: 'RepeatableRead',
110
- Serializable: 'Serializable'
111
- });
112
- export const UserScalarFieldEnum = {
113
- id: 'id',
114
- name: 'name',
115
- firstname: 'firstname',
116
- lastname: 'lastname',
117
- email: 'email',
118
- emailVerified: 'emailVerified',
119
- image: 'image',
120
- createdAt: 'createdAt',
121
- updatedAt: 'updatedAt'
122
- };
123
- export const SessionScalarFieldEnum = {
124
- id: 'id',
125
- expiresAt: 'expiresAt',
126
- token: 'token',
127
- createdAt: 'createdAt',
128
- updatedAt: 'updatedAt',
129
- ipAddress: 'ipAddress',
130
- userAgent: 'userAgent',
131
- userId: 'userId',
132
- activeOrganizationId: 'activeOrganizationId'
133
- };
134
- export const AccountScalarFieldEnum = {
135
- id: 'id',
136
- accountId: 'accountId',
137
- providerId: 'providerId',
138
- userId: 'userId',
139
- accessToken: 'accessToken',
140
- refreshToken: 'refreshToken',
141
- idToken: 'idToken',
142
- accessTokenExpiresAt: 'accessTokenExpiresAt',
143
- refreshTokenExpiresAt: 'refreshTokenExpiresAt',
144
- scope: 'scope',
145
- password: 'password',
146
- createdAt: 'createdAt',
147
- updatedAt: 'updatedAt'
148
- };
149
- export const VerificationScalarFieldEnum = {
150
- id: 'id',
151
- identifier: 'identifier',
152
- value: 'value',
153
- expiresAt: 'expiresAt',
154
- createdAt: 'createdAt',
155
- updatedAt: 'updatedAt'
156
- };
157
- export const MemberScalarFieldEnum = {
158
- id: 'id',
159
- organizationId: 'organizationId',
160
- userId: 'userId',
161
- role: 'role',
162
- createdAt: 'createdAt'
163
- };
164
- export const InvitationScalarFieldEnum = {
165
- id: 'id',
166
- organizationId: 'organizationId',
167
- email: 'email',
168
- role: 'role',
169
- status: 'status',
170
- expiresAt: 'expiresAt',
171
- inviterId: 'inviterId'
172
- };
173
- export const OrganizationScalarFieldEnum = {
174
- id: 'id',
175
- name: 'name',
176
- slug: 'slug',
177
- phone: 'phone',
178
- email: 'email',
179
- legalEntityId: 'legalEntityId',
180
- addressId: 'addressId',
181
- configurationId: 'configurationId',
182
- logo: 'logo',
183
- logoId: 'logoId',
184
- createdAt: 'createdAt',
185
- createdBy: 'createdBy',
186
- updatedAt: 'updatedAt',
187
- updatedBy: 'updatedBy',
188
- deletedAt: 'deletedAt',
189
- deletedBy: 'deletedBy'
190
- };
191
- export const OpeningTimesScalarFieldEnum = {
192
- id: 'id',
193
- monday: 'monday',
194
- tuesday: 'tuesday',
195
- wednesday: 'wednesday',
196
- thursday: 'thursday',
197
- friday: 'friday',
198
- saturday: 'saturday',
199
- sunday: 'sunday'
200
- };
201
- export const ClosingTimesScalarFieldEnum = {
202
- id: 'id',
203
- monday: 'monday',
204
- tuesday: 'tuesday',
205
- wednesday: 'wednesday',
206
- thursday: 'thursday',
207
- friday: 'friday',
208
- saturday: 'saturday',
209
- sunday: 'sunday'
210
- };
211
- export const OrganizationConfigurationScalarFieldEnum = {
212
- id: 'id',
213
- hostname: 'hostname',
214
- countriesShipping: 'countriesShipping',
215
- stripeAccountId: 'stripeAccountId',
216
- enableHostCheckout: 'enableHostCheckout',
217
- enableHostTracking: 'enableHostTracking',
218
- isAcceptingOrders: 'isAcceptingOrders',
219
- defaultCurrency: 'defaultCurrency',
220
- defaultLocale: 'defaultLocale',
221
- supportedLocales: 'supportedLocales',
222
- openingTimesId: 'openingTimesId',
223
- closingTimesId: 'closingTimesId',
224
- facebookProfile: 'facebookProfile',
225
- instagramProfile: 'instagramProfile',
226
- xProfile: 'xProfile',
227
- createdAt: 'createdAt',
228
- createdBy: 'createdBy',
229
- updatedAt: 'updatedAt',
230
- updatedBy: 'updatedBy'
231
- };
232
- export const AddressScalarFieldEnum = {
233
- id: 'id',
234
- firstname: 'firstname',
235
- lastname: 'lastname',
236
- phone: 'phone',
237
- addressLineOne: 'addressLineOne',
238
- doorNumber: 'doorNumber',
239
- addressLineTwo: 'addressLineTwo',
240
- zipCode: 'zipCode',
241
- placeId: 'placeId',
242
- deliveryInstructions: 'deliveryInstructions',
243
- city: 'city',
244
- country: 'country',
245
- latitude: 'latitude',
246
- longitude: 'longitude',
247
- isDefault: 'isDefault',
248
- createdAt: 'createdAt',
249
- createdBy: 'createdBy',
250
- updatedAt: 'updatedAt',
251
- updatedBy: 'updatedBy',
252
- deletedAt: 'deletedAt',
253
- deletedBy: 'deletedBy'
254
- };
255
- export const LegalEntityScalarFieldEnum = {
256
- id: 'id',
257
- name: 'name',
258
- taxId: 'taxId',
259
- addressId: 'addressId',
260
- email: 'email',
261
- phone: 'phone',
262
- createdAt: 'createdAt',
263
- createdBy: 'createdBy',
264
- updatedAt: 'updatedAt',
265
- updatedBy: 'updatedBy',
266
- deletedAt: 'deletedAt',
267
- deletedBy: 'deletedBy'
268
- };
269
- export const FileScalarFieldEnum = {
270
- id: 'id',
271
- mimeType: 'mimeType',
272
- size: 'size',
273
- filename: 'filename',
274
- url: 'url',
275
- status: 'status',
276
- organizationId: 'organizationId',
277
- createdAt: 'createdAt',
278
- createdBy: 'createdBy',
279
- updatedAt: 'updatedAt',
280
- updatedBy: 'updatedBy',
281
- deletedAt: 'deletedAt',
282
- deletedBy: 'deletedBy'
283
- };
284
- export const ManufacturerScalarFieldEnum = {
285
- id: 'id',
286
- name: 'name',
287
- logoId: 'logoId',
288
- organizationId: 'organizationId',
289
- createdAt: 'createdAt',
290
- createdBy: 'createdBy',
291
- updatedAt: 'updatedAt',
292
- updatedBy: 'updatedBy',
293
- deletedAt: 'deletedAt',
294
- deletedBy: 'deletedBy'
295
- };
296
- export const ManufacturerTranslationScalarFieldEnum = {
297
- id: 'id',
298
- locale: 'locale',
299
- about: 'about',
300
- manufacturerId: 'manufacturerId',
301
- createdAt: 'createdAt',
302
- createdBy: 'createdBy',
303
- updatedAt: 'updatedAt',
304
- updatedBy: 'updatedBy'
305
- };
306
- export const ProductCategoryScalarFieldEnum = {
307
- id: 'id',
308
- slug: 'slug',
309
- organizationId: 'organizationId',
310
- priority: 'priority',
311
- imageId: 'imageId',
312
- createdAt: 'createdAt',
313
- createdBy: 'createdBy',
314
- updatedAt: 'updatedAt',
315
- updatedBy: 'updatedBy',
316
- deletedAt: 'deletedAt',
317
- deletedBy: 'deletedBy',
318
- publishedAt: 'publishedAt',
319
- publishedBy: 'publishedBy'
320
- };
321
- export const ProductCategoryTranslationScalarFieldEnum = {
322
- id: 'id',
323
- locale: 'locale',
324
- title: 'title',
325
- description: 'description',
326
- productCategoryId: 'productCategoryId',
327
- createdAt: 'createdAt',
328
- createdBy: 'createdBy',
329
- updatedAt: 'updatedAt',
330
- updatedBy: 'updatedBy'
331
- };
332
- export const ProductScalarFieldEnum = {
333
- id: 'id',
334
- content: 'content',
335
- slug: 'slug',
336
- sku: 'sku',
337
- basePrice: 'basePrice',
338
- discountedBasePrice: 'discountedBasePrice',
339
- currency: 'currency',
340
- organizationId: 'organizationId',
341
- manufacturerId: 'manufacturerId',
342
- tags: 'tags',
343
- metadata: 'metadata',
344
- publishedAt: 'publishedAt',
345
- publishedBy: 'publishedBy',
346
- deletedAt: 'deletedAt',
347
- deletedBy: 'deletedBy',
348
- createdAt: 'createdAt',
349
- createdBy: 'createdBy',
350
- updatedAt: 'updatedAt',
351
- updatedBy: 'updatedBy',
352
- latestSnapshotId: 'latestSnapshotId'
353
- };
354
- export const ProductSnapshotScalarFieldEnum = {
355
- id: 'id',
356
- productId: 'productId',
357
- data: 'data',
358
- createdAt: 'createdAt',
359
- createdBy: 'createdBy'
360
- };
361
- export const ProductTranslationScalarFieldEnum = {
362
- id: 'id',
363
- locale: 'locale',
364
- title: 'title',
365
- description: 'description',
366
- productId: 'productId',
367
- createdAt: 'createdAt',
368
- createdBy: 'createdBy',
369
- updatedAt: 'updatedAt',
370
- updatedBy: 'updatedBy'
371
- };
372
- export const ModifierGroupScalarFieldEnum = {
373
- id: 'id',
374
- selectMin: 'selectMin',
375
- selectMax: 'selectMax',
376
- createdAt: 'createdAt',
377
- updatedAt: 'updatedAt'
378
- };
379
- export const ModifierGroupTranslationScalarFieldEnum = {
380
- id: 'id',
381
- locale: 'locale',
382
- title: 'title',
383
- description: 'description',
384
- modifierGroupId: 'modifierGroupId'
385
- };
386
- export const ModifierScalarFieldEnum = {
387
- id: 'id',
388
- title: 'title',
389
- description: 'description',
390
- sku: 'sku',
391
- price: 'price',
392
- modifierGroupId: 'modifierGroupId'
393
- };
394
- export const OrderScalarFieldEnum = {
395
- id: 'id',
396
- organizationId: 'organizationId',
397
- userId: 'userId',
398
- paymentId: 'paymentId',
399
- token: 'token',
400
- expiresAt: 'expiresAt',
401
- referenceId: 'referenceId',
402
- fulfilmentMethod: 'fulfilmentMethod',
403
- shippingMethodId: 'shippingMethodId',
404
- shippingAddressId: 'shippingAddressId',
405
- dateOfExecution: 'dateOfExecution',
406
- currency: 'currency',
407
- sourceIp: 'sourceIp',
408
- acceptedAt: 'acceptedAt',
409
- readyForDispatchAt: 'readyForDispatchAt',
410
- dispatchedAt: 'dispatchedAt',
411
- completedAt: 'completedAt',
412
- cancelledAt: 'cancelledAt',
413
- deletedAt: 'deletedAt',
414
- deletedBy: 'deletedBy',
415
- createdAt: 'createdAt',
416
- updatedAt: 'updatedAt'
417
- };
418
- export const OrderItemScalarFieldEnum = {
419
- id: 'id',
420
- quantity: 'quantity',
421
- unitPrice: 'unitPrice',
422
- totalPrice: 'totalPrice',
423
- orderId: 'orderId',
424
- rawData: 'rawData',
425
- productSnapshotId: 'productSnapshotId',
426
- imageId: 'imageId'
427
- };
428
- export const OrderItemTranslationScalarFieldEnum = {
429
- id: 'id',
430
- locale: 'locale',
431
- title: 'title',
432
- subtitle: 'subtitle',
433
- orderItemId: 'orderItemId'
434
- };
435
- export const PaymentScalarFieldEnum = {
436
- id: 'id',
437
- method: 'method',
438
- provider: 'provider',
439
- shipping: 'shipping',
440
- subtotal: 'subtotal',
441
- total: 'total',
442
- discount: 'discount',
443
- currency: 'currency',
444
- status: 'status',
445
- createdAt: 'createdAt',
446
- updatedAt: 'updatedAt'
447
- };
448
- export const PaymentSessionScalarFieldEnum = {
449
- id: 'id',
450
- referenceId: 'referenceId',
451
- amount: 'amount',
452
- currency: 'currency',
453
- rawData: 'rawData',
454
- capturedAt: 'capturedAt',
455
- expiredAt: 'expiredAt',
456
- createdAt: 'createdAt',
457
- updatedAt: 'updatedAt',
458
- paymentId: 'paymentId'
459
- };
460
- export const CampaignScalarFieldEnum = {
461
- id: 'id',
462
- title: 'title',
463
- type: 'type',
464
- validFrom: 'validFrom',
465
- validTo: 'validTo',
466
- organizationId: 'organizationId',
467
- amount: 'amount',
468
- percentage: 'percentage',
469
- publishedAt: 'publishedAt',
470
- publishedBy: 'publishedBy',
471
- createdAt: 'createdAt',
472
- updatedAt: 'updatedAt'
473
- };
474
- export const ShippingMethodScalarFieldEnum = {
475
- id: 'id',
476
- title: 'title',
477
- providerName: 'providerName',
478
- providerLogoId: 'providerLogoId',
479
- requireDateOfDelivery: 'requireDateOfDelivery',
480
- organizationId: 'organizationId',
481
- archivedAt: 'archivedAt',
482
- archivedBy: 'archivedBy',
483
- publishedAt: 'publishedAt',
484
- publishedBy: 'publishedBy',
485
- createdAt: 'createdAt',
486
- createdBy: 'createdBy',
487
- updatedAt: 'updatedAt',
488
- updatedBy: 'updatedBy'
489
- };
490
- export const ShippingZoneScalarFieldEnum = {
491
- id: 'id',
492
- title: 'title',
493
- distanceUpto: 'distanceUpto',
494
- price: 'price',
495
- minimumOrderAmount: 'minimumOrderAmount',
496
- shippingMethodId: 'shippingMethodId',
497
- eta: 'eta',
498
- createdAt: 'createdAt',
499
- updatedAt: 'updatedAt'
500
- };
501
- export const ReservationScalarFieldEnum = {
502
- id: 'id',
503
- firstname: 'firstname',
504
- lastname: 'lastname',
505
- userId: 'userId',
506
- guests: 'guests',
507
- phone: 'phone',
508
- date: 'date',
509
- referenceId: 'referenceId',
510
- organizationId: 'organizationId',
511
- createdAt: 'createdAt',
512
- acceptedAt: 'acceptedAt',
513
- cancelledAt: 'cancelledAt',
514
- updatedAt: 'updatedAt'
515
- };
516
- export const SortOrder = {
517
- asc: 'asc',
518
- desc: 'desc'
519
- };
520
- export const NullableJsonNullValueInput = {
521
- DbNull: DbNull,
522
- JsonNull: JsonNull
523
- };
524
- export const JsonNullValueInput = {
525
- JsonNull: JsonNull
526
- };
527
- export const QueryMode = {
528
- default: 'default',
529
- insensitive: 'insensitive'
530
- };
531
- export const NullsOrder = {
532
- first: 'first',
533
- last: 'last'
534
- };
535
- export const JsonNullValueFilter = {
536
- DbNull: DbNull,
537
- JsonNull: JsonNull,
538
- AnyNull: AnyNull
539
- };
540
- export const defineExtension = runtime.Extensions.defineExtension;
541
- //# sourceMappingURL=prismaNamespace.js.map
1
+ import*as e from"@prisma/client/runtime/client";export const PrismaClientKnownRequestError=e.PrismaClientKnownRequestError,PrismaClientUnknownRequestError=e.PrismaClientUnknownRequestError,PrismaClientRustPanicError=e.PrismaClientRustPanicError,PrismaClientInitializationError=e.PrismaClientInitializationError,PrismaClientValidationError=e.PrismaClientValidationError,sql=e.sqltag,empty=e.empty,join=e.join,raw=e.raw,Sql=e.Sql,Decimal=e.Decimal,getExtensionContext=e.Extensions.getExtensionContext,prismaVersion={client:"7.5.0",engine:"280c870be64f457428992c43c1f6d557fab6e29e"},NullTypes={DbNull:e.NullTypes.DbNull,JsonNull:e.NullTypes.JsonNull,AnyNull:e.NullTypes.AnyNull},DbNull=e.DbNull,JsonNull=e.JsonNull,AnyNull=e.AnyNull,ModelName={User:"User",Session:"Session",Account:"Account",Verification:"Verification",Member:"Member",Invitation:"Invitation",Organization:"Organization",OpeningTimes:"OpeningTimes",ClosingTimes:"ClosingTimes",OrganizationConfiguration:"OrganizationConfiguration",Address:"Address",LegalEntity:"LegalEntity",File:"File",Manufacturer:"Manufacturer",ManufacturerTranslation:"ManufacturerTranslation",ProductCategory:"ProductCategory",ProductCategoryTranslation:"ProductCategoryTranslation",Product:"Product",ProductSnapshot:"ProductSnapshot",ProductTranslation:"ProductTranslation",ModifierGroup:"ModifierGroup",ModifierGroupTranslation:"ModifierGroupTranslation",Modifier:"Modifier",Order:"Order",OrderItem:"OrderItem",OrderItemTranslation:"OrderItemTranslation",Payment:"Payment",PaymentSession:"PaymentSession",Campaign:"Campaign",ShippingMethod:"ShippingMethod",ShippingZone:"ShippingZone",Reservation:"Reservation"},TransactionIsolationLevel=e.makeStrictEnum({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"}),UserScalarFieldEnum={id:"id",name:"name",firstname:"firstname",lastname:"lastname",email:"email",emailVerified:"emailVerified",image:"image",createdAt:"createdAt",updatedAt:"updatedAt"},SessionScalarFieldEnum={id:"id",expiresAt:"expiresAt",token:"token",createdAt:"createdAt",updatedAt:"updatedAt",ipAddress:"ipAddress",userAgent:"userAgent",userId:"userId",activeOrganizationId:"activeOrganizationId"},AccountScalarFieldEnum={id:"id",accountId:"accountId",providerId:"providerId",userId:"userId",accessToken:"accessToken",refreshToken:"refreshToken",idToken:"idToken",accessTokenExpiresAt:"accessTokenExpiresAt",refreshTokenExpiresAt:"refreshTokenExpiresAt",scope:"scope",password:"password",createdAt:"createdAt",updatedAt:"updatedAt"},VerificationScalarFieldEnum={id:"id",identifier:"identifier",value:"value",expiresAt:"expiresAt",createdAt:"createdAt",updatedAt:"updatedAt"},MemberScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",role:"role",createdAt:"createdAt"},InvitationScalarFieldEnum={id:"id",organizationId:"organizationId",email:"email",role:"role",status:"status",expiresAt:"expiresAt",inviterId:"inviterId"},OrganizationScalarFieldEnum={id:"id",name:"name",slug:"slug",phone:"phone",email:"email",legalEntityId:"legalEntityId",addressId:"addressId",configurationId:"configurationId",logo:"logo",logoId:"logoId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},OpeningTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},ClosingTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"},OrganizationConfigurationScalarFieldEnum={id:"id",hostname:"hostname",countriesShipping:"countriesShipping",stripeAccountId:"stripeAccountId",enableHostCheckout:"enableHostCheckout",enableHostTracking:"enableHostTracking",isAcceptingOrders:"isAcceptingOrders",defaultCurrency:"defaultCurrency",defaultLocale:"defaultLocale",supportedLocales:"supportedLocales",openingTimesId:"openingTimesId",closingTimesId:"closingTimesId",facebookProfile:"facebookProfile",instagramProfile:"instagramProfile",xProfile:"xProfile",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},AddressScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",phone:"phone",addressLineOne:"addressLineOne",doorNumber:"doorNumber",addressLineTwo:"addressLineTwo",zipCode:"zipCode",placeId:"placeId",deliveryInstructions:"deliveryInstructions",city:"city",country:"country",latitude:"latitude",longitude:"longitude",isDefault:"isDefault",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},LegalEntityScalarFieldEnum={id:"id",name:"name",taxId:"taxId",addressId:"addressId",email:"email",phone:"phone",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},FileScalarFieldEnum={id:"id",mimeType:"mimeType",size:"size",filename:"filename",url:"url",status:"status",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerScalarFieldEnum={id:"id",name:"name",logoId:"logoId",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"},ManufacturerTranslationScalarFieldEnum={id:"id",locale:"locale",about:"about",manufacturerId:"manufacturerId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductCategoryScalarFieldEnum={id:"id",slug:"slug",organizationId:"organizationId",priority:"priority",imageId:"imageId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",publishedAt:"publishedAt",publishedBy:"publishedBy"},ProductCategoryTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productCategoryId:"productCategoryId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ProductScalarFieldEnum={id:"id",content:"content",slug:"slug",sku:"sku",basePrice:"basePrice",discountedBasePrice:"discountedBasePrice",currency:"currency",organizationId:"organizationId",manufacturerId:"manufacturerId",tags:"tags",metadata:"metadata",publishedAt:"publishedAt",publishedBy:"publishedBy",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",latestSnapshotId:"latestSnapshotId"},ProductSnapshotScalarFieldEnum={id:"id",productId:"productId",data:"data",createdAt:"createdAt",createdBy:"createdBy"},ProductTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productId:"productId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ModifierGroupScalarFieldEnum={id:"id",selectMin:"selectMin",selectMax:"selectMax",createdAt:"createdAt",updatedAt:"updatedAt"},ModifierGroupTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",modifierGroupId:"modifierGroupId"},ModifierScalarFieldEnum={id:"id",title:"title",description:"description",sku:"sku",price:"price",modifierGroupId:"modifierGroupId"},OrderScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",paymentId:"paymentId",token:"token",expiresAt:"expiresAt",referenceId:"referenceId",fulfilmentMethod:"fulfilmentMethod",shippingMethodId:"shippingMethodId",shippingAddressId:"shippingAddressId",dateOfExecution:"dateOfExecution",currency:"currency",sourceIp:"sourceIp",acceptedAt:"acceptedAt",readyForDispatchAt:"readyForDispatchAt",dispatchedAt:"dispatchedAt",completedAt:"completedAt",cancelledAt:"cancelledAt",deletedAt:"deletedAt",deletedBy:"deletedBy",createdAt:"createdAt",updatedAt:"updatedAt"},OrderItemScalarFieldEnum={id:"id",quantity:"quantity",unitPrice:"unitPrice",totalPrice:"totalPrice",orderId:"orderId",rawData:"rawData",productSnapshotId:"productSnapshotId",imageId:"imageId"},OrderItemTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",subtitle:"subtitle",orderItemId:"orderItemId"},PaymentScalarFieldEnum={id:"id",method:"method",provider:"provider",shipping:"shipping",subtotal:"subtotal",total:"total",discount:"discount",currency:"currency",status:"status",createdAt:"createdAt",updatedAt:"updatedAt"},PaymentSessionScalarFieldEnum={id:"id",referenceId:"referenceId",amount:"amount",currency:"currency",rawData:"rawData",capturedAt:"capturedAt",expiredAt:"expiredAt",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId"},CampaignScalarFieldEnum={id:"id",title:"title",type:"type",validFrom:"validFrom",validTo:"validTo",organizationId:"organizationId",amount:"amount",percentage:"percentage",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",updatedAt:"updatedAt"},ShippingMethodScalarFieldEnum={id:"id",title:"title",providerName:"providerName",providerLogoId:"providerLogoId",requireDateOfDelivery:"requireDateOfDelivery",organizationId:"organizationId",archivedAt:"archivedAt",archivedBy:"archivedBy",publishedAt:"publishedAt",publishedBy:"publishedBy",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"},ShippingZoneScalarFieldEnum={id:"id",title:"title",distanceUpto:"distanceUpto",price:"price",minimumOrderAmount:"minimumOrderAmount",shippingMethodId:"shippingMethodId",eta:"eta",createdAt:"createdAt",updatedAt:"updatedAt"},ReservationScalarFieldEnum={id:"id",firstname:"firstname",lastname:"lastname",userId:"userId",guests:"guests",phone:"phone",date:"date",referenceId:"referenceId",organizationId:"organizationId",createdAt:"createdAt",acceptedAt:"acceptedAt",cancelledAt:"cancelledAt",updatedAt:"updatedAt"},SortOrder={asc:"asc",desc:"desc"},NullableJsonNullValueInput={DbNull,JsonNull},JsonNullValueInput={JsonNull},QueryMode={default:"default",insensitive:"insensitive"},NullsOrder={first:"first",last:"last"},JsonNullValueFilter={DbNull,JsonNull,AnyNull},defineExtension=e.Extensions.defineExtension;