@shophost/rest-api 2.0.29 → 2.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +18 -13
- package/scripts/minify.mjs +110 -0
- package/src/app.js +1 -53
- package/src/core/auth/auth.schema.js +1 -41
- package/src/core/auth/auth.util.js +1 -44
- package/src/core/auth/better-auth.lib.js +1 -100
- package/src/core/auth/generate-password-hash.util.d.ts +0 -3
- package/src/core/auth/generate-password-hash.util.js +1 -30
- package/src/core/auth/headers.schema.js +1 -22
- package/src/core/auth/user.schema.js +1 -30
- package/src/core/db/__generated__/client/browser.d.ts +0 -128
- package/src/core/db/__generated__/client/browser.js +1 -18
- package/src/core/db/__generated__/client/client.d.ts +0 -143
- package/src/core/db/__generated__/client/client.js +1 -35
- package/src/core/db/__generated__/client/commonInputTypes.js +1 -11
- package/src/core/db/__generated__/client/enums.js +1 -200
- package/src/core/db/__generated__/client/internal/class.d.ts +0 -343
- package/src/core/db/__generated__/client/internal/class.js +1 -55
- package/src/core/db/__generated__/client/internal/prismaNamespace.d.ts +0 -234
- package/src/core/db/__generated__/client/internal/prismaNamespace.js +1 -541
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +0 -15
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +1 -512
- package/src/core/db/__generated__/client/models/Account.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Account.js +1 -2
- package/src/core/db/__generated__/client/models/Address.d.ts +0 -701
- package/src/core/db/__generated__/client/models/Address.js +1 -2
- package/src/core/db/__generated__/client/models/Campaign.d.ts +0 -638
- package/src/core/db/__generated__/client/models/Campaign.js +1 -2
- package/src/core/db/__generated__/client/models/ClosingTimes.d.ts +0 -634
- package/src/core/db/__generated__/client/models/ClosingTimes.js +1 -2
- package/src/core/db/__generated__/client/models/File.d.ts +0 -752
- package/src/core/db/__generated__/client/models/File.js +1 -2
- package/src/core/db/__generated__/client/models/Invitation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Invitation.js +1 -2
- package/src/core/db/__generated__/client/models/LegalEntity.d.ts +0 -652
- package/src/core/db/__generated__/client/models/LegalEntity.js +1 -2
- package/src/core/db/__generated__/client/models/Manufacturer.d.ts +0 -679
- package/src/core/db/__generated__/client/models/Manufacturer.js +1 -2
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Member.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Member.js +1 -2
- package/src/core/db/__generated__/client/models/Modifier.d.ts +0 -662
- package/src/core/db/__generated__/client/models/Modifier.js +1 -2
- package/src/core/db/__generated__/client/models/ModifierGroup.d.ts +0 -686
- package/src/core/db/__generated__/client/models/ModifierGroup.js +1 -2
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/OpeningTimes.d.ts +0 -634
- package/src/core/db/__generated__/client/models/OpeningTimes.js +1 -2
- package/src/core/db/__generated__/client/models/Order.d.ts +0 -700
- package/src/core/db/__generated__/client/models/Order.js +1 -2
- package/src/core/db/__generated__/client/models/OrderItem.d.ts +0 -686
- package/src/core/db/__generated__/client/models/OrderItem.js +1 -2
- package/src/core/db/__generated__/client/models/OrderItemTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Organization.d.ts +0 -811
- package/src/core/db/__generated__/client/models/Organization.js +1 -2
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.d.ts +0 -676
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js +1 -2
- package/src/core/db/__generated__/client/models/Payment.d.ts +0 -668
- package/src/core/db/__generated__/client/models/Payment.js +1 -2
- package/src/core/db/__generated__/client/models/PaymentSession.d.ts +0 -638
- package/src/core/db/__generated__/client/models/PaymentSession.js +1 -2
- package/src/core/db/__generated__/client/models/Product.d.ts +0 -746
- package/src/core/db/__generated__/client/models/Product.js +1 -2
- package/src/core/db/__generated__/client/models/ProductCategory.d.ts +0 -689
- package/src/core/db/__generated__/client/models/ProductCategory.js +1 -2
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/ProductSnapshot.d.ts +0 -664
- package/src/core/db/__generated__/client/models/ProductSnapshot.js +1 -2
- package/src/core/db/__generated__/client/models/ProductTranslation.d.ts +0 -628
- package/src/core/db/__generated__/client/models/ProductTranslation.js +1 -2
- package/src/core/db/__generated__/client/models/Reservation.d.ts +0 -650
- package/src/core/db/__generated__/client/models/Reservation.js +1 -2
- package/src/core/db/__generated__/client/models/Session.d.ts +0 -628
- package/src/core/db/__generated__/client/models/Session.js +1 -2
- package/src/core/db/__generated__/client/models/ShippingMethod.d.ts +0 -679
- package/src/core/db/__generated__/client/models/ShippingMethod.js +1 -2
- package/src/core/db/__generated__/client/models/ShippingZone.d.ts +0 -638
- package/src/core/db/__generated__/client/models/ShippingZone.js +1 -2
- package/src/core/db/__generated__/client/models/User.d.ts +0 -736
- package/src/core/db/__generated__/client/models/User.js +1 -2
- package/src/core/db/__generated__/client/models/Verification.d.ts +0 -592
- package/src/core/db/__generated__/client/models/Verification.js +1 -2
- package/src/core/db/__generated__/client/models.js +1 -2
- package/src/core/db/index.js +1 -2
- package/src/core/exceptions/http-exception.js +1 -9
- package/src/core/hono/hono.js +1 -123
- package/src/core/lib/prisma.d.ts +9 -1
- package/src/core/lib/prisma.js +1 -11
- package/src/core/logging/pino.js +1 -5
- package/src/core/notifications/email.service.d.ts +0 -15
- package/src/core/notifications/email.service.js +1 -116
- package/src/core/openapi/openapi.lib.js +1 -26
- package/src/core/types/google-maps.types.js +1 -2
- package/src/core/utils/currency.util.js +1 -11
- package/src/core/utils/env.util.js +1 -8
- package/src/core/utils/object.util.d.ts +0 -10
- package/src/core/utils/object.util.js +1 -39
- package/src/core/utils/translations.util.js +0 -2
- package/src/core/utils/zod.util.d.ts +0 -12
- package/src/core/utils/zod.util.js +1 -85
- package/src/db.js +1 -3
- package/src/features/access/access.handler.js +1 -91
- package/src/features/access/access.route.js +1 -220
- package/src/features/access/access.schema.js +1 -108
- package/src/features/access/access.service.js +1 -294
- package/src/features/cart/cart.handler.js +1 -17
- package/src/features/cart/cart.route.js +1 -32
- package/src/features/cart/cart.schema.js +1 -39
- package/src/features/cart/cart.service.d.ts +0 -7
- package/src/features/cart/cart.service.js +1 -97
- package/src/features/cart/cart.util.js +1 -76
- package/src/features/file/file.handler.js +1 -23
- package/src/features/file/file.route.js +1 -34
- package/src/features/file/file.schema.js +1 -77
- package/src/features/file/file.service.d.ts +0 -6
- package/src/features/file/file.service.js +1 -66
- package/src/features/health/health.handler.js +1 -10
- package/src/features/health/health.route.js +1 -25
- package/src/features/index.js +1 -16
- package/src/features/location/location.handler.js +1 -25
- package/src/features/location/location.route.js +1 -56
- package/src/features/location/location.schema.js +1 -50
- package/src/features/location/location.service.d.ts +0 -3
- package/src/features/location/location.service.js +1 -141
- package/src/features/manufacturer/manufacturer.handler.js +1 -53
- package/src/features/manufacturer/manufacturer.route.js +1 -97
- package/src/features/manufacturer/manufacturer.schema.js +1 -125
- package/src/features/manufacturer/manufacturer.service.d.ts +0 -19
- package/src/features/manufacturer/manufacturer.service.js +1 -190
- package/src/features/order/emails/order-confirmation.email.js +1 -229
- package/src/features/order/emails/order-notification.email.js +1 -229
- package/src/features/order/fulfilment.schema.js +1 -3
- package/src/features/order/order.handler.js +1 -54
- package/src/features/order/order.route.js +1 -111
- package/src/features/order/order.schema.js +1 -158
- package/src/features/order/order.service.d.ts +0 -15
- package/src/features/order/order.service.js +1 -306
- package/src/features/order/recipient.schema.js +1 -38
- package/src/features/organization/legal-entity.schema.js +1 -83
- package/src/features/organization/organization-configuration.schema.js +1 -115
- package/src/features/organization/organization.handler.js +1 -48
- package/src/features/organization/organization.route.js +1 -84
- package/src/features/organization/organization.schema.js +1 -64
- package/src/features/organization/organization.service.d.ts +0 -15
- package/src/features/organization/organization.service.js +1 -334
- package/src/features/payment/payment.handler.js +1 -16
- package/src/features/payment/payment.route.js +1 -22
- package/src/features/payment/payment.schema.js +1 -46
- package/src/features/payment/payment.service.js +1 -100
- package/src/features/payment/stripe.service.js +1 -164
- package/src/features/product/product-modifier.schema.js +1 -84
- package/src/features/product/product.handler.js +1 -87
- package/src/features/product/product.route.js +1 -179
- package/src/features/product/product.schema.js +1 -143
- package/src/features/product/product.service.d.ts +0 -25
- package/src/features/product/product.service.js +1 -440
- package/src/features/product-category/product-category.handler.js +1 -59
- package/src/features/product-category/product-category.route.js +1 -139
- package/src/features/product-category/product-category.schema.js +1 -86
- package/src/features/product-category/product-category.service.d.ts +0 -22
- package/src/features/product-category/product-category.service.js +1 -220
- package/src/features/reservation/emails/reservation-cancellation.email.js +1 -82
- package/src/features/reservation/emails/reservation-confirmation.email.js +1 -82
- package/src/features/reservation/emails/reservation-notification.email.js +1 -93
- package/src/features/reservation/reservation.handler.js +1 -65
- package/src/features/reservation/reservation.route.js +1 -167
- package/src/features/reservation/reservation.schema.js +1 -51
- package/src/features/reservation/reservation.service.d.ts +0 -18
- package/src/features/reservation/reservation.service.js +1 -231
- package/src/features/shipping/shipping.handler.js +1 -32
- package/src/features/shipping/shipping.route.js +1 -51
- package/src/features/shipping/shipping.service.d.ts +0 -7
- package/src/features/shipping/shipping.service.js +1 -96
- package/src/features/shipping-method/shipping-method.handler.js +1 -60
- package/src/features/shipping-method/shipping-method.route.js +1 -144
- package/src/features/shipping-method/shipping-method.schema.js +1 -48
- package/src/features/shipping-method/shipping-method.service.d.ts +0 -25
- package/src/features/shipping-method/shipping-method.service.js +1 -229
- package/src/features/shipping-method/shipping-zone.schema.js +1 -31
- package/src/features/webhook/webhook.handler.js +1 -50
- package/src/features/webhook/webhook.route.js +1 -33
- package/src/index.js +1 -6
- package/src/integrations/next.js +1 -82
- package/src/schemas/address.schema.d.ts +0 -8
- package/src/schemas/address.schema.js +1 -112
- package/src/schemas/currency.schema.d.ts +0 -42
- package/src/schemas/currency.schema.js +1 -118
- package/src/schemas/error.schema.js +1 -12
- package/src/schemas/index.js +1 -29
- package/src/schemas/locales.schema.js +1 -238
- package/src/schemas/number.schema.js +1 -29
- package/src/schemas/pagination.schema.js +1 -54
- package/src/schemas/params.schema.js +1 -20
- package/src/schemas/queries.schema.js +1 -6
- package/src/test/global-setup.d.ts +1 -0
- package/src/test/global-setup.js +1 -0
- package/src/test/integration/api-fixtures.d.ts +4 -16
- package/src/test/integration/api-fixtures.js +1 -225
- package/src/test/integration/seed.d.ts +81 -0
- package/src/test/integration/seed.js +1 -0
- package/src/test/integration/test-helpers.d.ts +107 -924
- package/src/test/integration/test-helpers.js +1 -1100
- package/src/test/setup-test-env.d.ts +1 -1
- package/src/test/setup-test-env.js +1 -29
- package/src/app.js.map +0 -1
- package/src/core/auth/auth.schema.js.map +0 -1
- package/src/core/auth/auth.util.js.map +0 -1
- package/src/core/auth/better-auth.lib.js.map +0 -1
- package/src/core/auth/generate-password-hash.util.js.map +0 -1
- package/src/core/auth/headers.schema.js.map +0 -1
- package/src/core/auth/user.schema.js.map +0 -1
- package/src/core/db/__generated__/client/browser.js.map +0 -1
- package/src/core/db/__generated__/client/client.js.map +0 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +0 -1
- package/src/core/db/__generated__/client/enums.js.map +0 -1
- package/src/core/db/__generated__/client/internal/class.js.map +0 -1
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +0 -1
- package/src/core/db/__generated__/client/models/Account.js.map +0 -1
- package/src/core/db/__generated__/client/models/Address.js.map +0 -1
- package/src/core/db/__generated__/client/models/Campaign.js.map +0 -1
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +0 -1
- package/src/core/db/__generated__/client/models/File.js.map +0 -1
- package/src/core/db/__generated__/client/models/Invitation.js.map +0 -1
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +0 -1
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +0 -1
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Member.js.map +0 -1
- package/src/core/db/__generated__/client/models/Modifier.js.map +0 -1
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +0 -1
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +0 -1
- package/src/core/db/__generated__/client/models/Order.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrderItem.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Organization.js.map +0 -1
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
- package/src/core/db/__generated__/client/models/Payment.js.map +0 -1
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +0 -1
- package/src/core/db/__generated__/client/models/Product.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Reservation.js.map +0 -1
- package/src/core/db/__generated__/client/models/Session.js.map +0 -1
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +0 -1
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +0 -1
- package/src/core/db/__generated__/client/models/User.js.map +0 -1
- package/src/core/db/__generated__/client/models/Verification.js.map +0 -1
- package/src/core/db/__generated__/client/models.js.map +0 -1
- package/src/core/db/index.js.map +0 -1
- package/src/core/exceptions/http-exception.js.map +0 -1
- package/src/core/hono/hono.js.map +0 -1
- package/src/core/lib/prisma.js.map +0 -1
- package/src/core/logging/pino.js.map +0 -1
- package/src/core/notifications/email.service.js.map +0 -1
- package/src/core/openapi/openapi.lib.js.map +0 -1
- package/src/core/types/google-maps.types.js.map +0 -1
- package/src/core/utils/currency.util.js.map +0 -1
- package/src/core/utils/env.util.js.map +0 -1
- package/src/core/utils/object.util.js.map +0 -1
- package/src/core/utils/translations.util.js.map +0 -1
- package/src/core/utils/zod.util.js.map +0 -1
- package/src/db.js.map +0 -1
- package/src/features/access/access.handler.js.map +0 -1
- package/src/features/access/access.route.js.map +0 -1
- package/src/features/access/access.schema.js.map +0 -1
- package/src/features/access/access.service.js.map +0 -1
- package/src/features/cart/cart.handler.js.map +0 -1
- package/src/features/cart/cart.route.js.map +0 -1
- package/src/features/cart/cart.schema.js.map +0 -1
- package/src/features/cart/cart.service.js.map +0 -1
- package/src/features/cart/cart.util.js.map +0 -1
- package/src/features/file/file.handler.js.map +0 -1
- package/src/features/file/file.route.js.map +0 -1
- package/src/features/file/file.schema.js.map +0 -1
- package/src/features/file/file.service.js.map +0 -1
- package/src/features/health/health.handler.js.map +0 -1
- package/src/features/health/health.route.js.map +0 -1
- package/src/features/index.js.map +0 -1
- package/src/features/location/location.handler.js.map +0 -1
- package/src/features/location/location.route.js.map +0 -1
- package/src/features/location/location.schema.js.map +0 -1
- package/src/features/location/location.service.js.map +0 -1
- package/src/features/manufacturer/manufacturer.handler.js.map +0 -1
- package/src/features/manufacturer/manufacturer.route.js.map +0 -1
- package/src/features/manufacturer/manufacturer.schema.js.map +0 -1
- package/src/features/manufacturer/manufacturer.service.js.map +0 -1
- package/src/features/order/emails/order-confirmation.email.js.map +0 -1
- package/src/features/order/emails/order-notification.email.js.map +0 -1
- package/src/features/order/fulfilment.schema.js.map +0 -1
- package/src/features/order/order.handler.js.map +0 -1
- package/src/features/order/order.route.js.map +0 -1
- package/src/features/order/order.schema.js.map +0 -1
- package/src/features/order/order.service.js.map +0 -1
- package/src/features/order/recipient.schema.js.map +0 -1
- package/src/features/organization/legal-entity.schema.js.map +0 -1
- package/src/features/organization/organization-configuration.schema.js.map +0 -1
- package/src/features/organization/organization.handler.js.map +0 -1
- package/src/features/organization/organization.route.js.map +0 -1
- package/src/features/organization/organization.schema.js.map +0 -1
- package/src/features/organization/organization.service.js.map +0 -1
- package/src/features/payment/payment.handler.js.map +0 -1
- package/src/features/payment/payment.route.js.map +0 -1
- package/src/features/payment/payment.schema.js.map +0 -1
- package/src/features/payment/payment.service.js.map +0 -1
- package/src/features/payment/stripe.service.js.map +0 -1
- package/src/features/product/product-modifier.schema.js.map +0 -1
- package/src/features/product/product.handler.js.map +0 -1
- package/src/features/product/product.route.js.map +0 -1
- package/src/features/product/product.schema.js.map +0 -1
- package/src/features/product/product.service.js.map +0 -1
- package/src/features/product-category/product-category.handler.js.map +0 -1
- package/src/features/product-category/product-category.route.js.map +0 -1
- package/src/features/product-category/product-category.schema.js.map +0 -1
- package/src/features/product-category/product-category.service.js.map +0 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +0 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +0 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +0 -1
- package/src/features/reservation/reservation.handler.js.map +0 -1
- package/src/features/reservation/reservation.route.js.map +0 -1
- package/src/features/reservation/reservation.schema.js.map +0 -1
- package/src/features/reservation/reservation.service.js.map +0 -1
- package/src/features/shipping/shipping.handler.js.map +0 -1
- package/src/features/shipping/shipping.route.js.map +0 -1
- package/src/features/shipping/shipping.service.js.map +0 -1
- package/src/features/shipping-method/shipping-method.handler.js.map +0 -1
- package/src/features/shipping-method/shipping-method.route.js.map +0 -1
- package/src/features/shipping-method/shipping-method.schema.js.map +0 -1
- package/src/features/shipping-method/shipping-method.service.js.map +0 -1
- package/src/features/shipping-method/shipping-zone.schema.js.map +0 -1
- package/src/features/webhook/webhook.handler.js.map +0 -1
- package/src/features/webhook/webhook.route.js.map +0 -1
- package/src/index.js.map +0 -1
- package/src/integrations/next.js.map +0 -1
- package/src/schemas/address.schema.js.map +0 -1
- package/src/schemas/currency.schema.js.map +0 -1
- package/src/schemas/error.schema.js.map +0 -1
- package/src/schemas/index.js.map +0 -1
- package/src/schemas/locales.schema.js.map +0 -1
- package/src/schemas/number.schema.js.map +0 -1
- package/src/schemas/pagination.schema.js.map +0 -1
- package/src/schemas/params.schema.js.map +0 -1
- package/src/schemas/queries.schema.js.map +0 -1
- package/src/test/integration/api-fixtures.js.map +0 -1
- package/src/test/integration/test-helpers.js.map +0 -1
- package/src/test/setup-test-env.js.map +0 -1
|
@@ -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.4.2
|
|
40
|
-
* Query Engine version: 94a226be1cf2967af2541cca5529f0f7ba866919
|
|
41
|
-
*/
|
|
42
|
-
export const prismaVersion = {
|
|
43
|
-
client: "7.4.2",
|
|
44
|
-
engine: "94a226be1cf2967af2541cca5529f0f7ba866919"
|
|
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;export const PrismaClientUnknownRequestError=e.PrismaClientUnknownRequestError;export const PrismaClientRustPanicError=e.PrismaClientRustPanicError;export const PrismaClientInitializationError=e.PrismaClientInitializationError;export const PrismaClientValidationError=e.PrismaClientValidationError;export const sql=e.sqltag;export const empty=e.empty;export const join=e.join;export const raw=e.raw;export const Sql=e.Sql;export const Decimal=e.Decimal;export const getExtensionContext=e.Extensions.getExtensionContext;export const prismaVersion={client:"7.5.0",engine:"280c870be64f457428992c43c1f6d557fab6e29e"};export const NullTypes={DbNull:e.NullTypes.DbNull,JsonNull:e.NullTypes.JsonNull,AnyNull:e.NullTypes.AnyNull};export const DbNull=e.DbNull;export const JsonNull=e.JsonNull;export const AnyNull=e.AnyNull;export const 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"};export const TransactionIsolationLevel=e.makeStrictEnum({ReadUncommitted:"ReadUncommitted",ReadCommitted:"ReadCommitted",RepeatableRead:"RepeatableRead",Serializable:"Serializable"});export const UserScalarFieldEnum={id:"id",name:"name",firstname:"firstname",lastname:"lastname",email:"email",emailVerified:"emailVerified",image:"image",createdAt:"createdAt",updatedAt:"updatedAt"};export const SessionScalarFieldEnum={id:"id",expiresAt:"expiresAt",token:"token",createdAt:"createdAt",updatedAt:"updatedAt",ipAddress:"ipAddress",userAgent:"userAgent",userId:"userId",activeOrganizationId:"activeOrganizationId"};export const 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"};export const VerificationScalarFieldEnum={id:"id",identifier:"identifier",value:"value",expiresAt:"expiresAt",createdAt:"createdAt",updatedAt:"updatedAt"};export const MemberScalarFieldEnum={id:"id",organizationId:"organizationId",userId:"userId",role:"role",createdAt:"createdAt"};export const InvitationScalarFieldEnum={id:"id",organizationId:"organizationId",email:"email",role:"role",status:"status",expiresAt:"expiresAt",inviterId:"inviterId"};export const 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"};export const OpeningTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"};export const ClosingTimesScalarFieldEnum={id:"id",monday:"monday",tuesday:"tuesday",wednesday:"wednesday",thursday:"thursday",friday:"friday",saturday:"saturday",sunday:"sunday"};export const 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"};export const 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"};export const 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"};export const 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"};export const ManufacturerScalarFieldEnum={id:"id",name:"name",logoId:"logoId",organizationId:"organizationId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy",deletedAt:"deletedAt",deletedBy:"deletedBy"};export const ManufacturerTranslationScalarFieldEnum={id:"id",locale:"locale",about:"about",manufacturerId:"manufacturerId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"};export const 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"};export const ProductCategoryTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productCategoryId:"productCategoryId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"};export const 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"};export const ProductSnapshotScalarFieldEnum={id:"id",productId:"productId",data:"data",createdAt:"createdAt",createdBy:"createdBy"};export const ProductTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",productId:"productId",createdAt:"createdAt",createdBy:"createdBy",updatedAt:"updatedAt",updatedBy:"updatedBy"};export const ModifierGroupScalarFieldEnum={id:"id",selectMin:"selectMin",selectMax:"selectMax",createdAt:"createdAt",updatedAt:"updatedAt"};export const ModifierGroupTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",description:"description",modifierGroupId:"modifierGroupId"};export const ModifierScalarFieldEnum={id:"id",title:"title",description:"description",sku:"sku",price:"price",modifierGroupId:"modifierGroupId"};export const 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"};export const OrderItemScalarFieldEnum={id:"id",quantity:"quantity",unitPrice:"unitPrice",totalPrice:"totalPrice",orderId:"orderId",rawData:"rawData",productSnapshotId:"productSnapshotId",imageId:"imageId"};export const OrderItemTranslationScalarFieldEnum={id:"id",locale:"locale",title:"title",subtitle:"subtitle",orderItemId:"orderItemId"};export const PaymentScalarFieldEnum={id:"id",method:"method",provider:"provider",shipping:"shipping",subtotal:"subtotal",total:"total",discount:"discount",currency:"currency",status:"status",createdAt:"createdAt",updatedAt:"updatedAt"};export const PaymentSessionScalarFieldEnum={id:"id",referenceId:"referenceId",amount:"amount",currency:"currency",rawData:"rawData",capturedAt:"capturedAt",expiredAt:"expiredAt",createdAt:"createdAt",updatedAt:"updatedAt",paymentId:"paymentId"};export const 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"};export const 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"};export const ShippingZoneScalarFieldEnum={id:"id",title:"title",distanceUpto:"distanceUpto",price:"price",minimumOrderAmount:"minimumOrderAmount",shippingMethodId:"shippingMethodId",eta:"eta",createdAt:"createdAt",updatedAt:"updatedAt"};export const 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"};export const SortOrder={asc:"asc",desc:"desc"};export const NullableJsonNullValueInput={DbNull,JsonNull};export const JsonNullValueInput={JsonNull};export const QueryMode={default:"default",insensitive:"insensitive"};export const NullsOrder={first:"first",last:"last"};export const JsonNullValueFilter={DbNull,JsonNull,AnyNull};export const defineExtension=e.Extensions.defineExtension;
|
|
@@ -7,23 +7,8 @@ export declare const NullTypes: {
|
|
|
7
7
|
JsonNull: (new (secret: never) => typeof runtime.JsonNull);
|
|
8
8
|
AnyNull: (new (secret: never) => typeof runtime.AnyNull);
|
|
9
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
10
|
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
11
|
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
12
|
export declare const AnyNull: import("@prisma/client-runtime-utils").AnyNullClass;
|
|
28
13
|
export declare const ModelName: {
|
|
29
14
|
readonly User: "User";
|