@shophost/rest-api 2.0.33 → 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,512 +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 browser.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/index-browser";
17
- export const Decimal = runtime.Decimal;
18
- export const NullTypes = {
19
- DbNull: runtime.NullTypes.DbNull,
20
- JsonNull: runtime.NullTypes.JsonNull,
21
- AnyNull: runtime.NullTypes.AnyNull,
22
- };
23
- /**
24
- * Helper for filtering JSON entries that have `null` on the database (empty on the db)
25
- *
26
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
27
- */
28
- export const DbNull = runtime.DbNull;
29
- /**
30
- * Helper for filtering JSON entries that have JSON `null` values (not empty on the db)
31
- *
32
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
33
- */
34
- export const JsonNull = runtime.JsonNull;
35
- /**
36
- * Helper for filtering JSON entries that are `Prisma.DbNull` or `Prisma.JsonNull`
37
- *
38
- * @see https://www.prisma.io/docs/concepts/components/prisma-client/working-with-fields/working-with-json-fields#filtering-on-a-json-field
39
- */
40
- export const AnyNull = runtime.AnyNull;
41
- export const ModelName = {
42
- User: 'User',
43
- Session: 'Session',
44
- Account: 'Account',
45
- Verification: 'Verification',
46
- Member: 'Member',
47
- Invitation: 'Invitation',
48
- Organization: 'Organization',
49
- OpeningTimes: 'OpeningTimes',
50
- ClosingTimes: 'ClosingTimes',
51
- OrganizationConfiguration: 'OrganizationConfiguration',
52
- Address: 'Address',
53
- LegalEntity: 'LegalEntity',
54
- File: 'File',
55
- Manufacturer: 'Manufacturer',
56
- ManufacturerTranslation: 'ManufacturerTranslation',
57
- ProductCategory: 'ProductCategory',
58
- ProductCategoryTranslation: 'ProductCategoryTranslation',
59
- Product: 'Product',
60
- ProductSnapshot: 'ProductSnapshot',
61
- ProductTranslation: 'ProductTranslation',
62
- ModifierGroup: 'ModifierGroup',
63
- ModifierGroupTranslation: 'ModifierGroupTranslation',
64
- Modifier: 'Modifier',
65
- Order: 'Order',
66
- OrderItem: 'OrderItem',
67
- OrderItemTranslation: 'OrderItemTranslation',
68
- Payment: 'Payment',
69
- PaymentSession: 'PaymentSession',
70
- Campaign: 'Campaign',
71
- ShippingMethod: 'ShippingMethod',
72
- ShippingZone: 'ShippingZone',
73
- Reservation: 'Reservation'
74
- };
75
- /*
76
- * Enums
77
- */
78
- export const TransactionIsolationLevel = runtime.makeStrictEnum({
79
- ReadUncommitted: 'ReadUncommitted',
80
- ReadCommitted: 'ReadCommitted',
81
- RepeatableRead: 'RepeatableRead',
82
- Serializable: 'Serializable'
83
- });
84
- export const UserScalarFieldEnum = {
85
- id: 'id',
86
- name: 'name',
87
- firstname: 'firstname',
88
- lastname: 'lastname',
89
- email: 'email',
90
- emailVerified: 'emailVerified',
91
- image: 'image',
92
- createdAt: 'createdAt',
93
- updatedAt: 'updatedAt'
94
- };
95
- export const SessionScalarFieldEnum = {
96
- id: 'id',
97
- expiresAt: 'expiresAt',
98
- token: 'token',
99
- createdAt: 'createdAt',
100
- updatedAt: 'updatedAt',
101
- ipAddress: 'ipAddress',
102
- userAgent: 'userAgent',
103
- userId: 'userId',
104
- activeOrganizationId: 'activeOrganizationId'
105
- };
106
- export const AccountScalarFieldEnum = {
107
- id: 'id',
108
- accountId: 'accountId',
109
- providerId: 'providerId',
110
- userId: 'userId',
111
- accessToken: 'accessToken',
112
- refreshToken: 'refreshToken',
113
- idToken: 'idToken',
114
- accessTokenExpiresAt: 'accessTokenExpiresAt',
115
- refreshTokenExpiresAt: 'refreshTokenExpiresAt',
116
- scope: 'scope',
117
- password: 'password',
118
- createdAt: 'createdAt',
119
- updatedAt: 'updatedAt'
120
- };
121
- export const VerificationScalarFieldEnum = {
122
- id: 'id',
123
- identifier: 'identifier',
124
- value: 'value',
125
- expiresAt: 'expiresAt',
126
- createdAt: 'createdAt',
127
- updatedAt: 'updatedAt'
128
- };
129
- export const MemberScalarFieldEnum = {
130
- id: 'id',
131
- organizationId: 'organizationId',
132
- userId: 'userId',
133
- role: 'role',
134
- createdAt: 'createdAt'
135
- };
136
- export const InvitationScalarFieldEnum = {
137
- id: 'id',
138
- organizationId: 'organizationId',
139
- email: 'email',
140
- role: 'role',
141
- status: 'status',
142
- expiresAt: 'expiresAt',
143
- inviterId: 'inviterId'
144
- };
145
- export const OrganizationScalarFieldEnum = {
146
- id: 'id',
147
- name: 'name',
148
- slug: 'slug',
149
- phone: 'phone',
150
- email: 'email',
151
- legalEntityId: 'legalEntityId',
152
- addressId: 'addressId',
153
- configurationId: 'configurationId',
154
- logo: 'logo',
155
- logoId: 'logoId',
156
- createdAt: 'createdAt',
157
- createdBy: 'createdBy',
158
- updatedAt: 'updatedAt',
159
- updatedBy: 'updatedBy',
160
- deletedAt: 'deletedAt',
161
- deletedBy: 'deletedBy'
162
- };
163
- export const OpeningTimesScalarFieldEnum = {
164
- id: 'id',
165
- monday: 'monday',
166
- tuesday: 'tuesday',
167
- wednesday: 'wednesday',
168
- thursday: 'thursday',
169
- friday: 'friday',
170
- saturday: 'saturday',
171
- sunday: 'sunday'
172
- };
173
- export const ClosingTimesScalarFieldEnum = {
174
- id: 'id',
175
- monday: 'monday',
176
- tuesday: 'tuesday',
177
- wednesday: 'wednesday',
178
- thursday: 'thursday',
179
- friday: 'friday',
180
- saturday: 'saturday',
181
- sunday: 'sunday'
182
- };
183
- export const OrganizationConfigurationScalarFieldEnum = {
184
- id: 'id',
185
- hostname: 'hostname',
186
- countriesShipping: 'countriesShipping',
187
- stripeAccountId: 'stripeAccountId',
188
- enableHostCheckout: 'enableHostCheckout',
189
- enableHostTracking: 'enableHostTracking',
190
- isAcceptingOrders: 'isAcceptingOrders',
191
- defaultCurrency: 'defaultCurrency',
192
- defaultLocale: 'defaultLocale',
193
- supportedLocales: 'supportedLocales',
194
- openingTimesId: 'openingTimesId',
195
- closingTimesId: 'closingTimesId',
196
- facebookProfile: 'facebookProfile',
197
- instagramProfile: 'instagramProfile',
198
- xProfile: 'xProfile',
199
- createdAt: 'createdAt',
200
- createdBy: 'createdBy',
201
- updatedAt: 'updatedAt',
202
- updatedBy: 'updatedBy'
203
- };
204
- export const AddressScalarFieldEnum = {
205
- id: 'id',
206
- firstname: 'firstname',
207
- lastname: 'lastname',
208
- phone: 'phone',
209
- addressLineOne: 'addressLineOne',
210
- doorNumber: 'doorNumber',
211
- addressLineTwo: 'addressLineTwo',
212
- zipCode: 'zipCode',
213
- placeId: 'placeId',
214
- deliveryInstructions: 'deliveryInstructions',
215
- city: 'city',
216
- country: 'country',
217
- latitude: 'latitude',
218
- longitude: 'longitude',
219
- isDefault: 'isDefault',
220
- createdAt: 'createdAt',
221
- createdBy: 'createdBy',
222
- updatedAt: 'updatedAt',
223
- updatedBy: 'updatedBy',
224
- deletedAt: 'deletedAt',
225
- deletedBy: 'deletedBy'
226
- };
227
- export const LegalEntityScalarFieldEnum = {
228
- id: 'id',
229
- name: 'name',
230
- taxId: 'taxId',
231
- addressId: 'addressId',
232
- email: 'email',
233
- phone: 'phone',
234
- createdAt: 'createdAt',
235
- createdBy: 'createdBy',
236
- updatedAt: 'updatedAt',
237
- updatedBy: 'updatedBy',
238
- deletedAt: 'deletedAt',
239
- deletedBy: 'deletedBy'
240
- };
241
- export const FileScalarFieldEnum = {
242
- id: 'id',
243
- mimeType: 'mimeType',
244
- size: 'size',
245
- filename: 'filename',
246
- url: 'url',
247
- status: 'status',
248
- organizationId: 'organizationId',
249
- createdAt: 'createdAt',
250
- createdBy: 'createdBy',
251
- updatedAt: 'updatedAt',
252
- updatedBy: 'updatedBy',
253
- deletedAt: 'deletedAt',
254
- deletedBy: 'deletedBy'
255
- };
256
- export const ManufacturerScalarFieldEnum = {
257
- id: 'id',
258
- name: 'name',
259
- logoId: 'logoId',
260
- organizationId: 'organizationId',
261
- createdAt: 'createdAt',
262
- createdBy: 'createdBy',
263
- updatedAt: 'updatedAt',
264
- updatedBy: 'updatedBy',
265
- deletedAt: 'deletedAt',
266
- deletedBy: 'deletedBy'
267
- };
268
- export const ManufacturerTranslationScalarFieldEnum = {
269
- id: 'id',
270
- locale: 'locale',
271
- about: 'about',
272
- manufacturerId: 'manufacturerId',
273
- createdAt: 'createdAt',
274
- createdBy: 'createdBy',
275
- updatedAt: 'updatedAt',
276
- updatedBy: 'updatedBy'
277
- };
278
- export const ProductCategoryScalarFieldEnum = {
279
- id: 'id',
280
- slug: 'slug',
281
- organizationId: 'organizationId',
282
- priority: 'priority',
283
- imageId: 'imageId',
284
- createdAt: 'createdAt',
285
- createdBy: 'createdBy',
286
- updatedAt: 'updatedAt',
287
- updatedBy: 'updatedBy',
288
- deletedAt: 'deletedAt',
289
- deletedBy: 'deletedBy',
290
- publishedAt: 'publishedAt',
291
- publishedBy: 'publishedBy'
292
- };
293
- export const ProductCategoryTranslationScalarFieldEnum = {
294
- id: 'id',
295
- locale: 'locale',
296
- title: 'title',
297
- description: 'description',
298
- productCategoryId: 'productCategoryId',
299
- createdAt: 'createdAt',
300
- createdBy: 'createdBy',
301
- updatedAt: 'updatedAt',
302
- updatedBy: 'updatedBy'
303
- };
304
- export const ProductScalarFieldEnum = {
305
- id: 'id',
306
- content: 'content',
307
- slug: 'slug',
308
- sku: 'sku',
309
- basePrice: 'basePrice',
310
- discountedBasePrice: 'discountedBasePrice',
311
- currency: 'currency',
312
- organizationId: 'organizationId',
313
- manufacturerId: 'manufacturerId',
314
- tags: 'tags',
315
- metadata: 'metadata',
316
- publishedAt: 'publishedAt',
317
- publishedBy: 'publishedBy',
318
- deletedAt: 'deletedAt',
319
- deletedBy: 'deletedBy',
320
- createdAt: 'createdAt',
321
- createdBy: 'createdBy',
322
- updatedAt: 'updatedAt',
323
- updatedBy: 'updatedBy',
324
- latestSnapshotId: 'latestSnapshotId'
325
- };
326
- export const ProductSnapshotScalarFieldEnum = {
327
- id: 'id',
328
- productId: 'productId',
329
- data: 'data',
330
- createdAt: 'createdAt',
331
- createdBy: 'createdBy'
332
- };
333
- export const ProductTranslationScalarFieldEnum = {
334
- id: 'id',
335
- locale: 'locale',
336
- title: 'title',
337
- description: 'description',
338
- productId: 'productId',
339
- createdAt: 'createdAt',
340
- createdBy: 'createdBy',
341
- updatedAt: 'updatedAt',
342
- updatedBy: 'updatedBy'
343
- };
344
- export const ModifierGroupScalarFieldEnum = {
345
- id: 'id',
346
- selectMin: 'selectMin',
347
- selectMax: 'selectMax',
348
- createdAt: 'createdAt',
349
- updatedAt: 'updatedAt'
350
- };
351
- export const ModifierGroupTranslationScalarFieldEnum = {
352
- id: 'id',
353
- locale: 'locale',
354
- title: 'title',
355
- description: 'description',
356
- modifierGroupId: 'modifierGroupId'
357
- };
358
- export const ModifierScalarFieldEnum = {
359
- id: 'id',
360
- title: 'title',
361
- description: 'description',
362
- sku: 'sku',
363
- price: 'price',
364
- modifierGroupId: 'modifierGroupId'
365
- };
366
- export const OrderScalarFieldEnum = {
367
- id: 'id',
368
- organizationId: 'organizationId',
369
- userId: 'userId',
370
- paymentId: 'paymentId',
371
- token: 'token',
372
- expiresAt: 'expiresAt',
373
- referenceId: 'referenceId',
374
- fulfilmentMethod: 'fulfilmentMethod',
375
- shippingMethodId: 'shippingMethodId',
376
- shippingAddressId: 'shippingAddressId',
377
- dateOfExecution: 'dateOfExecution',
378
- currency: 'currency',
379
- sourceIp: 'sourceIp',
380
- acceptedAt: 'acceptedAt',
381
- readyForDispatchAt: 'readyForDispatchAt',
382
- dispatchedAt: 'dispatchedAt',
383
- completedAt: 'completedAt',
384
- cancelledAt: 'cancelledAt',
385
- deletedAt: 'deletedAt',
386
- deletedBy: 'deletedBy',
387
- createdAt: 'createdAt',
388
- updatedAt: 'updatedAt'
389
- };
390
- export const OrderItemScalarFieldEnum = {
391
- id: 'id',
392
- quantity: 'quantity',
393
- unitPrice: 'unitPrice',
394
- totalPrice: 'totalPrice',
395
- orderId: 'orderId',
396
- rawData: 'rawData',
397
- productSnapshotId: 'productSnapshotId',
398
- imageId: 'imageId'
399
- };
400
- export const OrderItemTranslationScalarFieldEnum = {
401
- id: 'id',
402
- locale: 'locale',
403
- title: 'title',
404
- subtitle: 'subtitle',
405
- orderItemId: 'orderItemId'
406
- };
407
- export const PaymentScalarFieldEnum = {
408
- id: 'id',
409
- method: 'method',
410
- provider: 'provider',
411
- shipping: 'shipping',
412
- subtotal: 'subtotal',
413
- total: 'total',
414
- discount: 'discount',
415
- currency: 'currency',
416
- status: 'status',
417
- createdAt: 'createdAt',
418
- updatedAt: 'updatedAt'
419
- };
420
- export const PaymentSessionScalarFieldEnum = {
421
- id: 'id',
422
- referenceId: 'referenceId',
423
- amount: 'amount',
424
- currency: 'currency',
425
- rawData: 'rawData',
426
- capturedAt: 'capturedAt',
427
- expiredAt: 'expiredAt',
428
- createdAt: 'createdAt',
429
- updatedAt: 'updatedAt',
430
- paymentId: 'paymentId'
431
- };
432
- export const CampaignScalarFieldEnum = {
433
- id: 'id',
434
- title: 'title',
435
- type: 'type',
436
- validFrom: 'validFrom',
437
- validTo: 'validTo',
438
- organizationId: 'organizationId',
439
- amount: 'amount',
440
- percentage: 'percentage',
441
- publishedAt: 'publishedAt',
442
- publishedBy: 'publishedBy',
443
- createdAt: 'createdAt',
444
- updatedAt: 'updatedAt'
445
- };
446
- export const ShippingMethodScalarFieldEnum = {
447
- id: 'id',
448
- title: 'title',
449
- providerName: 'providerName',
450
- providerLogoId: 'providerLogoId',
451
- requireDateOfDelivery: 'requireDateOfDelivery',
452
- organizationId: 'organizationId',
453
- archivedAt: 'archivedAt',
454
- archivedBy: 'archivedBy',
455
- publishedAt: 'publishedAt',
456
- publishedBy: 'publishedBy',
457
- createdAt: 'createdAt',
458
- createdBy: 'createdBy',
459
- updatedAt: 'updatedAt',
460
- updatedBy: 'updatedBy'
461
- };
462
- export const ShippingZoneScalarFieldEnum = {
463
- id: 'id',
464
- title: 'title',
465
- distanceUpto: 'distanceUpto',
466
- price: 'price',
467
- minimumOrderAmount: 'minimumOrderAmount',
468
- shippingMethodId: 'shippingMethodId',
469
- eta: 'eta',
470
- createdAt: 'createdAt',
471
- updatedAt: 'updatedAt'
472
- };
473
- export const ReservationScalarFieldEnum = {
474
- id: 'id',
475
- firstname: 'firstname',
476
- lastname: 'lastname',
477
- userId: 'userId',
478
- guests: 'guests',
479
- phone: 'phone',
480
- date: 'date',
481
- referenceId: 'referenceId',
482
- organizationId: 'organizationId',
483
- createdAt: 'createdAt',
484
- acceptedAt: 'acceptedAt',
485
- cancelledAt: 'cancelledAt',
486
- updatedAt: 'updatedAt'
487
- };
488
- export const SortOrder = {
489
- asc: 'asc',
490
- desc: 'desc'
491
- };
492
- export const NullableJsonNullValueInput = {
493
- DbNull: DbNull,
494
- JsonNull: JsonNull
495
- };
496
- export const JsonNullValueInput = {
497
- JsonNull: JsonNull
498
- };
499
- export const QueryMode = {
500
- default: 'default',
501
- insensitive: 'insensitive'
502
- };
503
- export const NullsOrder = {
504
- first: 'first',
505
- last: 'last'
506
- };
507
- export const JsonNullValueFilter = {
508
- DbNull: DbNull,
509
- JsonNull: JsonNull,
510
- AnyNull: AnyNull
511
- };
512
- //# sourceMappingURL=prismaNamespaceBrowser.js.map
1
+ import*as e from"@prisma/client/runtime/index-browser";export const Decimal=e.Decimal,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};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Account.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Address.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Campaign.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ClosingTimes.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=File.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Invitation.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=LegalEntity.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Manufacturer.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ManufacturerTranslation.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Member.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Modifier.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ModifierGroup.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ModifierGroupTranslation.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=OpeningTimes.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Order.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=OrderItem.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=OrderItemTranslation.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Organization.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=OrganizationConfiguration.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Payment.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=PaymentSession.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=Product.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ProductCategory.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ProductCategoryTranslation.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ProductSnapshot.js.map
1
+ export{};
@@ -1,2 +1 @@
1
- export {};
2
- //# sourceMappingURL=ProductTranslation.js.map
1
+ export{};