@shophost/rest-api 0.1.20 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -2
- package/global.d.ts +1 -1
- package/package.json +16 -16
- package/src/app.d.ts +16 -0
- package/src/app.js +46 -0
- package/src/app.js.map +1 -0
- package/src/client/__generated__/openapi.json +13633 -0
- package/src/client/generated/client/client.gen.d.ts +2 -0
- package/src/client/generated/client/client.gen.js +200 -0
- package/src/client/generated/client/client.gen.js.map +1 -0
- package/src/client/generated/client/index.d.ts +8 -0
- package/src/client/generated/client/index.js +7 -0
- package/src/client/generated/client/index.js.map +1 -0
- package/src/client/generated/client/types.gen.d.ts +117 -0
- package/src/client/generated/client/types.gen.js +3 -0
- package/src/client/generated/client/types.gen.js.map +1 -0
- package/src/client/generated/client/utils.gen.d.ts +33 -0
- package/src/client/generated/client/utils.gen.js +221 -0
- package/src/client/generated/client/utils.gen.js.map +1 -0
- package/src/client/generated/client.gen.d.ts +12 -0
- package/src/client/generated/client.gen.js +4 -0
- package/src/client/generated/client.gen.js.map +1 -0
- package/src/client/generated/core/auth.gen.d.ts +18 -0
- package/src/client/generated/core/auth.gen.js +16 -0
- package/src/client/generated/core/auth.gen.js.map +1 -0
- package/src/client/generated/core/bodySerializer.gen.d.ts +25 -0
- package/src/client/generated/core/bodySerializer.gen.js +58 -0
- package/src/client/generated/core/bodySerializer.gen.js.map +1 -0
- package/src/client/generated/core/params.gen.d.ts +43 -0
- package/src/client/generated/core/params.gen.js +101 -0
- package/src/client/generated/core/params.gen.js.map +1 -0
- package/src/client/generated/core/pathSerializer.gen.d.ts +33 -0
- package/src/client/generated/core/pathSerializer.gen.js +115 -0
- package/src/client/generated/core/pathSerializer.gen.js.map +1 -0
- package/src/client/generated/core/queryKeySerializer.gen.d.ts +18 -0
- package/src/client/generated/core/queryKeySerializer.gen.js +100 -0
- package/src/client/generated/core/queryKeySerializer.gen.js.map +1 -0
- package/src/client/generated/core/serverSentEvents.gen.d.ts +71 -0
- package/src/client/generated/core/serverSentEvents.gen.js +135 -0
- package/src/client/generated/core/serverSentEvents.gen.js.map +1 -0
- package/src/client/generated/core/types.gen.d.ts +78 -0
- package/src/client/generated/core/types.gen.js +3 -0
- package/src/client/generated/core/types.gen.js.map +1 -0
- package/src/client/generated/core/utils.gen.d.ts +19 -0
- package/src/client/generated/core/utils.gen.js +88 -0
- package/src/client/generated/core/utils.gen.js.map +1 -0
- package/src/client/generated/index.d.ts +2 -0
- package/src/client/generated/index.js +3 -0
- package/src/client/generated/index.js.map +1 -0
- package/src/client/generated/sdk.gen.d.ts +315 -0
- package/src/client/generated/sdk.gen.js +360 -0
- package/src/client/generated/sdk.gen.js.map +1 -0
- package/src/client/generated/types.gen.d.ts +5113 -0
- package/src/client/generated/types.gen.js +3 -0
- package/src/client/generated/types.gen.js.map +1 -0
- package/src/client/index.d.ts +112 -0
- package/src/client/index.js +147 -0
- package/src/client/index.js.map +1 -0
- package/src/core/auth/auth.schema.d.ts +11 -0
- package/src/{schemas → core/auth}/auth.schema.js +10 -8
- package/src/core/auth/auth.schema.js.map +1 -0
- package/src/{utils → core/auth}/auth.util.d.ts +1 -1
- package/src/core/auth/auth.util.js.map +1 -0
- package/src/{lib → core/auth}/better-auth.lib.d.ts +1 -1
- package/src/{lib → core/auth}/better-auth.lib.js +1 -1
- package/src/core/auth/better-auth.lib.js.map +1 -0
- package/src/core/auth/generate-password-hash.util.js.map +1 -0
- package/src/core/auth/headers.schema.d.ts +5 -0
- package/src/{schemas → core/auth}/headers.schema.js +10 -3
- package/src/core/auth/headers.schema.js.map +1 -0
- package/src/core/auth/user.schema.d.ts +10 -0
- package/src/{schemas → core/auth}/user.schema.js +1 -3
- package/src/core/auth/user.schema.js.map +1 -0
- package/src/core/db/__generated__/client/browser.d.ts +164 -0
- package/src/core/db/__generated__/client/browser.js +18 -0
- package/src/core/db/__generated__/client/browser.js.map +1 -0
- package/src/core/db/__generated__/client/client.d.ts +183 -0
- package/src/core/db/__generated__/client/client.js +35 -0
- package/src/core/db/__generated__/client/client.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/commonInputTypes.d.ts +1 -6
- package/src/{db → core/db}/__generated__/client/commonInputTypes.js +2 -1
- package/src/core/db/__generated__/client/commonInputTypes.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/enums.d.ts +0 -5
- package/src/{db → core/db}/__generated__/client/enums.js +2 -1
- package/src/core/db/__generated__/client/enums.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/internal/class.d.ts +117 -60
- package/src/core/db/__generated__/client/internal/class.js +55 -0
- package/src/core/db/__generated__/client/internal/class.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/internal/prismaNamespace.d.ts +62 -125
- package/src/{db → core/db}/__generated__/client/internal/prismaNamespace.js +13 -16
- package/src/core/db/__generated__/client/internal/prismaNamespace.js.map +1 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.d.ts +535 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js +512 -0
- package/src/core/db/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Account.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Account.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Address.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Address.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Campaign.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Campaign.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ClosingTimes.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ClosingTimes.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/File.d.ts +1 -6
- package/src/core/db/__generated__/client/models/File.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Invitation.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Invitation.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/LegalEntity.d.ts +1 -6
- package/src/core/db/__generated__/client/models/LegalEntity.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Manufacturer.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Manufacturer.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ManufacturerTranslation.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ManufacturerTranslation.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Member.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Member.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Modifier.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Modifier.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ModifierGroup.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ModifierGroup.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ModifierGroupTranslation.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ModifierGroupTranslation.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/OpeningTimes.d.ts +1 -6
- package/src/core/db/__generated__/client/models/OpeningTimes.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Order.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Order.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/OrderItem.d.ts +1 -6
- package/src/core/db/__generated__/client/models/OrderItem.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/OrderItemTranslation.d.ts +1 -6
- package/src/core/db/__generated__/client/models/OrderItemTranslation.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Organization.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Organization.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/OrganizationConfiguration.d.ts +1 -6
- package/src/core/db/__generated__/client/models/OrganizationConfiguration.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Payment.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Payment.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/PaymentSession.d.ts +1 -6
- package/src/core/db/__generated__/client/models/PaymentSession.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Product.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Product.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ProductCategory.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ProductCategory.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ProductCategoryTranslation.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ProductCategoryTranslation.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ProductSnapshot.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ProductSnapshot.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ProductTranslation.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ProductTranslation.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Reservation.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Reservation.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Session.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Session.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ShippingMethod.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ShippingMethod.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/ShippingZone.d.ts +1 -6
- package/src/core/db/__generated__/client/models/ShippingZone.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/User.d.ts +1 -6
- package/src/core/db/__generated__/client/models/User.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models/Verification.d.ts +1 -6
- package/src/core/db/__generated__/client/models/Verification.js.map +1 -0
- package/src/{db → core/db}/__generated__/client/models.d.ts +0 -5
- package/src/core/db/__generated__/client/models.js.map +1 -0
- package/src/core/db/index.d.ts +1 -0
- package/src/core/db/index.js +2 -0
- package/src/core/db/index.js.map +1 -0
- package/src/core/exceptions/http-exception.js.map +1 -0
- package/src/core/hono/hono.d.ts +34 -0
- package/src/core/hono/hono.js +123 -0
- package/src/core/hono/hono.js.map +1 -0
- package/src/{lib → core/lib}/prisma.d.ts +333 -340
- package/src/core/lib/prisma.js.map +1 -0
- package/src/core/logging/pino.js.map +1 -0
- package/src/{services → core/notifications}/email.service.d.ts +1 -1
- package/src/{services → core/notifications}/email.service.js +5 -5
- package/src/core/notifications/email.service.js.map +1 -0
- package/src/core/openapi/openapi.lib.d.ts +13 -0
- package/src/core/openapi/openapi.lib.js +26 -0
- package/src/core/openapi/openapi.lib.js.map +1 -0
- package/src/core/types/google-maps.types.js.map +1 -0
- package/src/core/utils/currency.util.js.map +1 -0
- package/src/{utils → core/utils}/env.util.js +1 -1
- package/src/core/utils/env.util.js.map +1 -0
- package/src/core/utils/object.util.js.map +1 -0
- package/src/core/utils/translations.util.js.map +1 -0
- package/src/{utils → core/utils}/zod.util.d.ts +1 -1
- package/src/{utils → core/utils}/zod.util.js +1 -1
- package/src/core/utils/zod.util.js.map +1 -0
- package/src/features/cart/cart.handler.d.ts +2 -0
- package/src/features/cart/cart.handler.js +17 -0
- package/src/features/cart/cart.handler.js.map +1 -0
- package/src/features/cart/cart.route.d.ts +3 -0
- package/src/features/cart/cart.route.js +32 -0
- package/src/features/cart/cart.route.js.map +1 -0
- package/src/features/cart/cart.schema.d.ts +180 -0
- package/src/{schemas → features/cart}/cart.schema.js +2 -4
- package/src/features/cart/cart.schema.js.map +1 -0
- package/src/{services → features/cart}/cart.service.d.ts +6 -6
- package/src/{services → features/cart}/cart.service.js +2 -2
- package/src/features/cart/cart.service.js.map +1 -0
- package/src/{utils → features/cart}/cart.util.d.ts +3 -3
- package/src/features/cart/cart.util.js.map +1 -0
- package/src/features/file/file.handler.d.ts +2 -0
- package/src/features/file/file.handler.js +23 -0
- package/src/features/file/file.handler.js.map +1 -0
- package/src/features/file/file.route.d.ts +4 -0
- package/src/features/file/file.route.js +34 -0
- package/src/features/file/file.route.js.map +1 -0
- package/src/features/file/file.schema.d.ts +37 -0
- package/src/{schemas → features/file}/file.schema.js +1 -3
- package/src/features/file/file.schema.js.map +1 -0
- package/src/{services → features/file}/file.service.d.ts +4 -4
- package/src/{services → features/file}/file.service.js +2 -2
- package/src/features/file/file.service.js.map +1 -0
- package/src/features/health/health.handler.d.ts +1 -0
- package/src/features/health/health.handler.js +10 -0
- package/src/features/health/health.handler.js.map +1 -0
- package/src/features/health/health.route.d.ts +3 -0
- package/src/features/health/health.route.js +25 -0
- package/src/features/health/health.route.js.map +1 -0
- package/src/features/index.d.ts +14 -0
- package/src/features/index.js +15 -0
- package/src/features/index.js.map +1 -0
- package/src/features/location/location.handler.d.ts +7 -0
- package/src/features/location/location.handler.js +25 -0
- package/src/features/location/location.handler.js.map +1 -0
- package/src/features/location/location.route.d.ts +4 -0
- package/src/features/location/location.route.js +56 -0
- package/src/features/location/location.route.js.map +1 -0
- package/src/features/location/location.schema.d.ts +17 -0
- package/src/{schemas → features/location}/location.schema.js +1 -1
- package/src/features/location/location.schema.js.map +1 -0
- package/src/features/location/location.service.js.map +1 -0
- package/src/features/manufacturer/manufacturer.handler.d.ts +2 -0
- package/src/features/manufacturer/manufacturer.handler.js +53 -0
- package/src/features/manufacturer/manufacturer.handler.js.map +1 -0
- package/src/features/manufacturer/manufacturer.route.d.ts +7 -0
- package/src/features/manufacturer/manufacturer.route.js +97 -0
- package/src/features/manufacturer/manufacturer.route.js.map +1 -0
- package/src/features/manufacturer/manufacturer.schema.d.ts +66 -0
- package/src/{schemas → features/manufacturer}/manufacturer.schema.js +3 -5
- package/src/features/manufacturer/manufacturer.schema.js.map +1 -0
- package/src/{services → features/manufacturer}/manufacturer.service.d.ts +29 -29
- package/src/{services → features/manufacturer}/manufacturer.service.js +4 -4
- package/src/features/manufacturer/manufacturer.service.js.map +1 -0
- package/src/{emails/order-confirmation-email.d.ts → features/order/emails/order-confirmation.email.d.ts} +1 -1
- package/src/{emails/order-confirmation-email.js → features/order/emails/order-confirmation.email.js} +1 -1
- package/src/features/order/emails/order-confirmation.email.js.map +1 -0
- package/src/{emails/order-notification-email.d.ts → features/order/emails/order-notification.email.d.ts} +1 -1
- package/src/{emails/order-notification-email.js → features/order/emails/order-notification.email.js} +1 -1
- package/src/features/order/emails/order-notification.email.js.map +1 -0
- package/src/features/order/fulfilment.schema.d.ts +5 -0
- package/src/features/order/fulfilment.schema.js +3 -0
- package/src/features/order/fulfilment.schema.js.map +1 -0
- package/src/features/order/order.handler.d.ts +3 -0
- package/src/features/order/order.handler.js +54 -0
- package/src/features/order/order.handler.js.map +1 -0
- package/src/features/order/order.route.d.ts +7 -0
- package/src/features/order/order.route.js +111 -0
- package/src/features/order/order.route.js.map +1 -0
- package/src/features/order/order.schema.d.ts +697 -0
- package/src/{schemas → features/order}/order.schema.js +8 -10
- package/src/features/order/order.schema.js.map +1 -0
- package/src/{services → features/order}/order.service.d.ts +64 -64
- package/src/{services → features/order}/order.service.js +5 -5
- package/src/features/order/order.service.js.map +1 -0
- package/src/features/order/recipient.schema.d.ts +54 -0
- package/src/{schemas → features/order}/recipient.schema.js +2 -4
- package/src/features/order/recipient.schema.js.map +1 -0
- package/src/features/organization/legal-entity.schema.d.ts +56 -0
- package/src/{schemas → features/organization}/legal-entity.schema.js +2 -4
- package/src/features/organization/legal-entity.schema.js.map +1 -0
- package/src/features/organization/organization-configuration.schema.d.ts +601 -0
- package/src/{schemas → features/organization}/organization-configuration.schema.js +3 -5
- package/src/features/organization/organization-configuration.schema.js.map +1 -0
- package/src/features/organization/organization.handler.d.ts +2 -0
- package/src/features/organization/organization.handler.js +48 -0
- package/src/features/organization/organization.handler.js.map +1 -0
- package/src/features/organization/organization.route.d.ts +7 -0
- package/src/features/organization/organization.route.js +84 -0
- package/src/features/organization/organization.route.js.map +1 -0
- package/src/features/organization/organization.schema.d.ts +669 -0
- package/src/{schemas → features/organization}/organization.schema.js +4 -6
- package/src/features/organization/organization.schema.js.map +1 -0
- package/src/{services → features/organization}/organization.service.d.ts +19 -19
- package/src/{services → features/organization}/organization.service.js +8 -7
- package/src/features/organization/organization.service.js.map +1 -0
- package/src/features/payment/payment.handler.d.ts +3 -0
- package/src/features/payment/payment.handler.js +16 -0
- package/src/features/payment/payment.handler.js.map +1 -0
- package/src/features/payment/payment.route.d.ts +3 -0
- package/src/features/payment/payment.route.js +22 -0
- package/src/features/payment/payment.route.js.map +1 -0
- package/src/features/payment/payment.schema.d.ts +100 -0
- package/src/{schemas → features/payment}/payment.schema.js +2 -4
- package/src/{schemas → features/payment}/payment.schema.js.map +1 -1
- package/src/{services → features/payment}/payment.service.d.ts +4 -4
- package/src/{services → features/payment}/payment.service.js +1 -1
- package/src/features/payment/payment.service.js.map +1 -0
- package/src/{services → features/payment}/stripe.service.d.ts +3 -3
- package/src/{services → features/payment}/stripe.service.js +3 -3
- package/src/features/payment/stripe.service.js.map +1 -0
- package/src/features/product/product-modifier.schema.d.ts +621 -0
- package/src/{schemas → features/product}/product-modifier.schema.js +3 -5
- package/src/{schemas → features/product}/product-modifier.schema.js.map +1 -1
- package/src/features/product/product.handler.d.ts +2 -0
- package/src/features/product/product.handler.js +87 -0
- package/src/features/product/product.handler.js.map +1 -0
- package/src/features/product/product.route.d.ts +9 -0
- package/src/features/product/product.route.js +179 -0
- package/src/features/product/product.route.js.map +1 -0
- package/src/features/product/product.schema.d.ts +1316 -0
- package/src/{schemas → features/product}/product.schema.js +6 -8
- package/src/features/product/product.schema.js.map +1 -0
- package/src/{services → features/product}/product.service.d.ts +129 -129
- package/src/{services → features/product}/product.service.js +4 -4
- package/src/features/product/product.service.js.map +1 -0
- package/src/features/product-category/product-category.handler.d.ts +2 -0
- package/src/features/product-category/product-category.handler.js +59 -0
- package/src/features/product-category/product-category.handler.js.map +1 -0
- package/src/features/product-category/product-category.route.d.ts +8 -0
- package/src/features/product-category/product-category.route.js +139 -0
- package/src/features/product-category/product-category.route.js.map +1 -0
- package/src/features/product-category/product-category.schema.d.ts +72 -0
- package/src/{schemas → features/product-category}/product-category.schema.js +3 -5
- package/src/features/product-category/product-category.schema.js.map +1 -0
- package/src/{services → features/product-category}/product-category.service.d.ts +25 -25
- package/src/{services → features/product-category}/product-category.service.js +4 -4
- package/src/features/product-category/product-category.service.js.map +1 -0
- package/src/{emails/reservation-cancellation-email.d.ts → features/reservation/emails/reservation-cancellation.email.d.ts} +1 -1
- package/src/{emails/reservation-cancellation-email.js → features/reservation/emails/reservation-cancellation.email.js} +1 -1
- package/src/features/reservation/emails/reservation-cancellation.email.js.map +1 -0
- package/src/{emails/reservation-confirmation-email.d.ts → features/reservation/emails/reservation-confirmation.email.d.ts} +1 -1
- package/src/{emails/reservation-confirmation-email.js → features/reservation/emails/reservation-confirmation.email.js} +1 -1
- package/src/features/reservation/emails/reservation-confirmation.email.js.map +1 -0
- package/src/{emails/reservation-notification-email.d.ts → features/reservation/emails/reservation-notification.email.d.ts} +1 -1
- package/src/{emails/reservation-notification-email.js → features/reservation/emails/reservation-notification.email.js} +1 -1
- package/src/features/reservation/emails/reservation-notification.email.js.map +1 -0
- package/src/features/reservation/reservation.handler.d.ts +2 -0
- package/src/features/reservation/reservation.handler.js +65 -0
- package/src/features/reservation/reservation.handler.js.map +1 -0
- package/src/features/reservation/reservation.route.d.ts +8 -0
- package/src/features/reservation/reservation.route.js +167 -0
- package/src/features/reservation/reservation.route.js.map +1 -0
- package/src/features/reservation/reservation.schema.d.ts +22 -0
- package/src/{schemas → features/reservation}/reservation.schema.js +2 -4
- package/src/features/reservation/reservation.schema.js.map +1 -0
- package/src/{services → features/reservation}/reservation.service.d.ts +18 -18
- package/src/{services → features/reservation}/reservation.service.js +4 -4
- package/src/features/reservation/reservation.service.js.map +1 -0
- package/src/features/shipping/shipping.handler.d.ts +2 -0
- package/src/features/shipping/shipping.handler.js +32 -0
- package/src/features/shipping/shipping.handler.js.map +1 -0
- package/src/features/shipping/shipping.route.d.ts +5 -0
- package/src/features/shipping/shipping.route.js +51 -0
- package/src/features/shipping/shipping.route.js.map +1 -0
- package/src/{services → features/shipping}/shipping.service.d.ts +11 -11
- package/src/{services → features/shipping}/shipping.service.js +3 -3
- package/src/features/shipping/shipping.service.js.map +1 -0
- package/src/features/shipping-method/shipping-method.handler.d.ts +2 -0
- package/src/features/shipping-method/shipping-method.handler.js +60 -0
- package/src/features/shipping-method/shipping-method.handler.js.map +1 -0
- package/src/features/shipping-method/shipping-method.route.d.ts +8 -0
- package/src/features/shipping-method/shipping-method.route.js +144 -0
- package/src/features/shipping-method/shipping-method.route.js.map +1 -0
- package/src/features/shipping-method/shipping-method.schema.d.ts +77 -0
- package/src/{schemas → features/shipping-method}/shipping-method.schema.js +2 -4
- package/src/features/shipping-method/shipping-method.schema.js.map +1 -0
- package/src/{services → features/shipping-method}/shipping-method.service.d.ts +23 -23
- package/src/{services → features/shipping-method}/shipping-method.service.js +3 -3
- package/src/features/shipping-method/shipping-method.service.js.map +1 -0
- package/src/features/shipping-method/shipping-zone.schema.d.ts +10 -0
- package/src/{schemas → features/shipping-method}/shipping-zone.schema.js +2 -4
- package/src/features/shipping-method/shipping-zone.schema.js.map +1 -0
- package/src/features/webhook/webhook.handler.d.ts +4 -0
- package/src/features/webhook/webhook.handler.js +50 -0
- package/src/features/webhook/webhook.handler.js.map +1 -0
- package/src/features/webhook/webhook.route.d.ts +3 -0
- package/src/features/webhook/webhook.route.js +33 -0
- package/src/features/webhook/webhook.route.js.map +1 -0
- package/src/index.d.ts +4 -4
- package/src/index.js +4 -5
- package/src/index.js.map +1 -1
- package/src/integrations/next.d.ts +6 -5
- package/src/integrations/next.js +30 -51
- package/src/integrations/next.js.map +1 -1
- package/src/schemas/address.schema.d.ts +12 -153
- package/src/schemas/address.schema.js +1 -3
- package/src/schemas/address.schema.js.map +1 -1
- package/src/schemas/currency.schema.d.ts +36 -2
- package/src/schemas/currency.schema.js +1 -3
- package/src/schemas/currency.schema.js.map +1 -1
- package/src/schemas/error.schema.d.ts +2 -8
- package/src/schemas/error.schema.js +1 -3
- package/src/schemas/error.schema.js.map +1 -1
- package/src/schemas/index.d.ts +20 -20
- package/src/schemas/index.js +20 -20
- package/src/schemas/index.js.map +1 -1
- package/src/schemas/locales.schema.d.ts +116 -2
- package/src/schemas/locales.schema.js +1 -3
- package/src/schemas/locales.schema.js.map +1 -1
- package/src/schemas/number.schema.d.ts +3 -3
- package/src/schemas/number.schema.js +1 -1
- package/src/schemas/number.schema.js.map +1 -1
- package/src/schemas/pagination.schema.d.ts +121 -35
- package/src/schemas/pagination.schema.js +1 -1
- package/src/schemas/pagination.schema.js.map +1 -1
- package/src/schemas/params.schema.d.ts +3 -14
- package/src/schemas/params.schema.js +1 -3
- package/src/schemas/params.schema.js.map +1 -1
- package/src/schemas/queries.schema.d.ts +117 -7
- package/src/schemas/queries.schema.js +1 -3
- package/src/schemas/queries.schema.js.map +1 -1
- package/src/test/integration/api-fixtures.d.ts +159 -0
- package/src/test/integration/api-fixtures.js +225 -0
- package/src/test/integration/api-fixtures.js.map +1 -0
- package/src/test/integration/test-helpers.d.ts +961 -0
- package/src/test/integration/test-helpers.js +1100 -0
- package/src/test/integration/test-helpers.js.map +1 -0
- package/src/test/setup-test-env.d.ts +1 -0
- package/src/test/setup-test-env.js +29 -0
- package/src/test/setup-test-env.js.map +1 -0
- package/src/contract.d.ts +0 -3864
- package/src/contract.js +0 -6
- package/src/contract.js.map +0 -1
- package/src/contracts/cart.contract.d.ts +0 -407
- package/src/contracts/cart.contract.js +0 -29
- package/src/contracts/cart.contract.js.map +0 -1
- package/src/contracts/customers.contract.d.ts +0 -903
- package/src/contracts/customers.contract.js +0 -119
- package/src/contracts/customers.contract.js.map +0 -1
- package/src/contracts/files.contract.d.ts +0 -152
- package/src/contracts/files.contract.js +0 -29
- package/src/contracts/files.contract.js.map +0 -1
- package/src/contracts/health.contract.d.ts +0 -38
- package/src/contracts/health.contract.js +0 -25
- package/src/contracts/health.contract.js.map +0 -1
- package/src/contracts/index.d.ts +0 -15096
- package/src/contracts/index.js +0 -32
- package/src/contracts/index.js.map +0 -1
- package/src/contracts/location.contract.d.ts +0 -127
- package/src/contracts/location.contract.js +0 -40
- package/src/contracts/location.contract.js.map +0 -1
- package/src/contracts/manufacturers.contract.d.ts +0 -931
- package/src/contracts/manufacturers.contract.js +0 -85
- package/src/contracts/manufacturers.contract.js.map +0 -1
- package/src/contracts/orders.contract.d.ts +0 -3910
- package/src/contracts/orders.contract.js +0 -92
- package/src/contracts/orders.contract.js.map +0 -1
- package/src/contracts/organizations.contract.d.ts +0 -2234
- package/src/contracts/organizations.contract.js +0 -71
- package/src/contracts/organizations.contract.js.map +0 -1
- package/src/contracts/payment.contract.d.ts +0 -64
- package/src/contracts/payment.contract.js +0 -20
- package/src/contracts/payment.contract.js.map +0 -1
- package/src/contracts/product-categories.contract.d.ts +0 -1172
- package/src/contracts/product-categories.contract.js +0 -103
- package/src/contracts/product-categories.contract.js.map +0 -1
- package/src/contracts/products.contract.d.ts +0 -3748
- package/src/contracts/products.contract.js +0 -128
- package/src/contracts/products.contract.js.map +0 -1
- package/src/contracts/reservation.contract.d.ts +0 -675
- package/src/contracts/reservation.contract.js +0 -141
- package/src/contracts/reservation.contract.js.map +0 -1
- package/src/contracts/shipping-methods.contract.d.ts +0 -1276
- package/src/contracts/shipping-methods.contract.js +0 -118
- package/src/contracts/shipping-methods.contract.js.map +0 -1
- package/src/contracts/shipping.contract.d.ts +0 -306
- package/src/contracts/shipping.contract.js +0 -42
- package/src/contracts/shipping.contract.js.map +0 -1
- package/src/contracts/webhook.contract.d.ts +0 -66
- package/src/contracts/webhook.contract.js +0 -28
- package/src/contracts/webhook.contract.js.map +0 -1
- package/src/db/__generated__/client/client.d.ts +0 -385
- package/src/db/__generated__/client/client.js +0 -50
- package/src/db/__generated__/client/client.js.map +0 -1
- package/src/db/__generated__/client/commonInputTypes.js.map +0 -1
- package/src/db/__generated__/client/enums.js.map +0 -1
- package/src/db/__generated__/client/index.d.ts +0 -1
- package/src/db/__generated__/client/index.js +0 -5
- package/src/db/__generated__/client/index.js.map +0 -1
- package/src/db/__generated__/client/internal/class.js +0 -83
- package/src/db/__generated__/client/internal/class.js.map +0 -1
- package/src/db/__generated__/client/internal/prismaNamespace.js.map +0 -1
- package/src/db/__generated__/client/libquery_engine-darwin-arm64.dylib.node +0 -0
- package/src/db/__generated__/client/libquery_engine-debian-openssl-3.0.x.so.node +0 -0
- package/src/db/__generated__/client/libquery_engine-rhel-openssl-3.0.x.so.node +0 -0
- package/src/db/__generated__/client/models/Account.js.map +0 -1
- package/src/db/__generated__/client/models/Address.js.map +0 -1
- package/src/db/__generated__/client/models/Campaign.js.map +0 -1
- package/src/db/__generated__/client/models/ClosingTimes.js.map +0 -1
- package/src/db/__generated__/client/models/File.js.map +0 -1
- package/src/db/__generated__/client/models/Invitation.js.map +0 -1
- package/src/db/__generated__/client/models/LegalEntity.js.map +0 -1
- package/src/db/__generated__/client/models/Manufacturer.js.map +0 -1
- package/src/db/__generated__/client/models/ManufacturerTranslation.js.map +0 -1
- package/src/db/__generated__/client/models/Member.js.map +0 -1
- package/src/db/__generated__/client/models/Modifier.js.map +0 -1
- package/src/db/__generated__/client/models/ModifierGroup.js.map +0 -1
- package/src/db/__generated__/client/models/ModifierGroupTranslation.js.map +0 -1
- package/src/db/__generated__/client/models/OpeningTimes.js.map +0 -1
- package/src/db/__generated__/client/models/Order.js.map +0 -1
- package/src/db/__generated__/client/models/OrderItem.js.map +0 -1
- package/src/db/__generated__/client/models/OrderItemTranslation.js.map +0 -1
- package/src/db/__generated__/client/models/Organization.js.map +0 -1
- package/src/db/__generated__/client/models/OrganizationConfiguration.js.map +0 -1
- package/src/db/__generated__/client/models/Payment.js.map +0 -1
- package/src/db/__generated__/client/models/PaymentSession.js.map +0 -1
- package/src/db/__generated__/client/models/Product.js.map +0 -1
- package/src/db/__generated__/client/models/ProductCategory.js.map +0 -1
- package/src/db/__generated__/client/models/ProductCategoryTranslation.js.map +0 -1
- package/src/db/__generated__/client/models/ProductSnapshot.js.map +0 -1
- package/src/db/__generated__/client/models/ProductTranslation.js.map +0 -1
- package/src/db/__generated__/client/models/Reservation.js.map +0 -1
- package/src/db/__generated__/client/models/Session.js.map +0 -1
- package/src/db/__generated__/client/models/ShippingMethod.js.map +0 -1
- package/src/db/__generated__/client/models/ShippingZone.js.map +0 -1
- package/src/db/__generated__/client/models/User.js.map +0 -1
- package/src/db/__generated__/client/models/Verification.js.map +0 -1
- package/src/db/__generated__/client/models.js.map +0 -1
- package/src/db/index.d.ts +0 -1
- package/src/db/index.js +0 -2
- package/src/db/index.js.map +0 -1
- package/src/emails/order-confirmation-email.js.map +0 -1
- package/src/emails/order-notification-email.js.map +0 -1
- package/src/emails/reservation-cancellation-email.js.map +0 -1
- package/src/emails/reservation-confirmation-email.js.map +0 -1
- package/src/emails/reservation-notification-email.js.map +0 -1
- package/src/exceptions/http-exception.js.map +0 -1
- package/src/handlers/webhook.handler.d.ts +0 -8
- package/src/handlers/webhook.handler.js +0 -36
- package/src/handlers/webhook.handler.js.map +0 -1
- package/src/lib/better-auth.lib.js.map +0 -1
- package/src/lib/openapi.lib.d.ts +0 -2
- package/src/lib/openapi.lib.js +0 -25
- package/src/lib/openapi.lib.js.map +0 -1
- package/src/lib/pino.js.map +0 -1
- package/src/lib/prisma.js.map +0 -1
- package/src/lib/stripe.d.ts +0 -2
- package/src/lib/stripe.js +0 -8
- package/src/lib/stripe.js.map +0 -1
- package/src/lib/ts-rest.d.ts +0 -2
- package/src/lib/ts-rest.js +0 -3
- package/src/lib/ts-rest.js.map +0 -1
- package/src/routers/cart.router.d.ts +0 -407
- package/src/routers/cart.router.js +0 -20
- package/src/routers/cart.router.js.map +0 -1
- package/src/routers/file.router.d.ts +0 -153
- package/src/routers/file.router.js +0 -28
- package/src/routers/file.router.js.map +0 -1
- package/src/routers/health.router.d.ts +0 -37
- package/src/routers/health.router.js +0 -17
- package/src/routers/health.router.js.map +0 -1
- package/src/routers/index.d.ts +0 -11
- package/src/routers/index.js +0 -12
- package/src/routers/index.js.map +0 -1
- package/src/routers/manufacturer.router.d.ts +0 -931
- package/src/routers/manufacturer.router.js +0 -58
- package/src/routers/manufacturer.router.js.map +0 -1
- package/src/routers/order.router.d.ts +0 -3911
- package/src/routers/order.router.js +0 -60
- package/src/routers/order.router.js.map +0 -1
- package/src/routers/organization.router.d.ts +0 -2234
- package/src/routers/organization.router.js +0 -55
- package/src/routers/organization.router.js.map +0 -1
- package/src/routers/payment.router.d.ts +0 -65
- package/src/routers/payment.router.js +0 -22
- package/src/routers/payment.router.js.map +0 -1
- package/src/routers/places.router.d.ts +0 -132
- package/src/routers/places.router.js +0 -31
- package/src/routers/places.router.js.map +0 -1
- package/src/routers/product-category.router.d.ts +0 -1172
- package/src/routers/product-category.router.js +0 -66
- package/src/routers/product-category.router.js.map +0 -1
- package/src/routers/product.router.d.ts +0 -3748
- package/src/routers/product.router.js +0 -94
- package/src/routers/product.router.js.map +0 -1
- package/src/routers/reservation.router.d.ts +0 -675
- package/src/routers/reservation.router.js +0 -71
- package/src/routers/reservation.router.js.map +0 -1
- package/src/routers/shipping-method.router.d.ts +0 -1276
- package/src/routers/shipping-method.router.js +0 -67
- package/src/routers/shipping-method.router.js.map +0 -1
- package/src/routers/shipping.router.d.ts +0 -307
- package/src/routers/shipping.router.js +0 -38
- package/src/routers/shipping.router.js.map +0 -1
- package/src/routers/webhook.router.d.ts +0 -65
- package/src/routers/webhook.router.js +0 -19
- package/src/routers/webhook.router.js.map +0 -1
- package/src/schemas/auth.schema.d.ts +0 -29
- package/src/schemas/auth.schema.js.map +0 -1
- package/src/schemas/cart.schema.d.ts +0 -315
- package/src/schemas/cart.schema.js.map +0 -1
- package/src/schemas/file.schema.d.ts +0 -115
- package/src/schemas/file.schema.js.map +0 -1
- package/src/schemas/fulfilment.schema.d.ts +0 -2
- package/src/schemas/fulfilment.schema.js +0 -5
- package/src/schemas/fulfilment.schema.js.map +0 -1
- package/src/schemas/headers.schema.d.ts +0 -11
- package/src/schemas/headers.schema.js.map +0 -1
- package/src/schemas/legal-entity.schema.d.ts +0 -212
- package/src/schemas/legal-entity.schema.js.map +0 -1
- package/src/schemas/location.schema.d.ts +0 -41
- package/src/schemas/location.schema.js.map +0 -1
- package/src/schemas/manufacturer.schema.d.ts +0 -287
- package/src/schemas/manufacturer.schema.js.map +0 -1
- package/src/schemas/order.schema.d.ts +0 -1046
- package/src/schemas/order.schema.js.map +0 -1
- package/src/schemas/organization-configuration.schema.d.ts +0 -287
- package/src/schemas/organization-configuration.schema.js.map +0 -1
- package/src/schemas/organization.schema.d.ts +0 -894
- package/src/schemas/organization.schema.js.map +0 -1
- package/src/schemas/payment.schema.d.ts +0 -54
- package/src/schemas/product-category.schema.d.ts +0 -352
- package/src/schemas/product-category.schema.js.map +0 -1
- package/src/schemas/product-modifier.schema.d.ts +0 -280
- package/src/schemas/product.schema.d.ts +0 -1287
- package/src/schemas/product.schema.js.map +0 -1
- package/src/schemas/recipient.schema.d.ts +0 -260
- package/src/schemas/recipient.schema.js.map +0 -1
- package/src/schemas/reservation.schema.d.ts +0 -61
- package/src/schemas/reservation.schema.js.map +0 -1
- package/src/schemas/shipping-method.schema.d.ts +0 -335
- package/src/schemas/shipping-method.schema.js.map +0 -1
- package/src/schemas/shipping-zone.schema.d.ts +0 -24
- package/src/schemas/shipping-zone.schema.js.map +0 -1
- package/src/schemas/user.schema.d.ts +0 -24
- package/src/schemas/user.schema.js.map +0 -1
- package/src/services/cart.service.js.map +0 -1
- package/src/services/email.service.js.map +0 -1
- package/src/services/file.service.js.map +0 -1
- package/src/services/location.service.js.map +0 -1
- package/src/services/manufacturer.service.js.map +0 -1
- package/src/services/order.service.js.map +0 -1
- package/src/services/organization.service.js.map +0 -1
- package/src/services/payment.service.js.map +0 -1
- package/src/services/product-category.service.js.map +0 -1
- package/src/services/product.service.js.map +0 -1
- package/src/services/reservation.service.js.map +0 -1
- package/src/services/shipping-method.service.js.map +0 -1
- package/src/services/shipping.service.js.map +0 -1
- package/src/services/stripe.service.js.map +0 -1
- package/src/types/google-maps.types.js.map +0 -1
- package/src/utils/auth.util.js.map +0 -1
- package/src/utils/cart.util.js.map +0 -1
- package/src/utils/client.util.d.ts +0 -3864
- package/src/utils/client.util.js +0 -6
- package/src/utils/client.util.js.map +0 -1
- package/src/utils/currency.util.js.map +0 -1
- package/src/utils/env.util.js.map +0 -1
- package/src/utils/error-handler.util.d.ts +0 -3
- package/src/utils/error-handler.util.js +0 -30
- package/src/utils/error-handler.util.js.map +0 -1
- package/src/utils/generate-password-hash.util.js.map +0 -1
- package/src/utils/object.util.js.map +0 -1
- package/src/utils/translations.util.js.map +0 -1
- package/src/utils/zod.util.js.map +0 -1
- /package/src/{utils → core/auth}/auth.util.js +0 -0
- /package/src/{utils → core/auth}/generate-password-hash.util.d.ts +0 -0
- /package/src/{utils → core/auth}/generate-password-hash.util.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Account.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Address.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Campaign.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ClosingTimes.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/File.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Invitation.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/LegalEntity.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Manufacturer.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ManufacturerTranslation.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Member.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Modifier.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ModifierGroup.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ModifierGroupTranslation.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/OpeningTimes.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Order.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/OrderItem.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/OrderItemTranslation.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Organization.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/OrganizationConfiguration.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Payment.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/PaymentSession.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Product.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ProductCategory.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ProductCategoryTranslation.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ProductSnapshot.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ProductTranslation.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Reservation.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Session.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ShippingMethod.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/ShippingZone.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/User.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models/Verification.js +0 -0
- /package/src/{db → core/db}/__generated__/client/models.js +0 -0
- /package/src/{exceptions → core/exceptions}/http-exception.d.ts +0 -0
- /package/src/{exceptions → core/exceptions}/http-exception.js +0 -0
- /package/src/{lib → core/lib}/prisma.js +0 -0
- /package/src/{lib → core/logging}/pino.d.ts +0 -0
- /package/src/{lib → core/logging}/pino.js +0 -0
- /package/src/{types → core/types}/google-maps.types.d.ts +0 -0
- /package/src/{types → core/types}/google-maps.types.js +0 -0
- /package/src/{utils → core/utils}/currency.util.d.ts +0 -0
- /package/src/{utils → core/utils}/currency.util.js +0 -0
- /package/src/{utils → core/utils}/env.util.d.ts +0 -0
- /package/src/{utils → core/utils}/object.util.d.ts +0 -0
- /package/src/{utils → core/utils}/object.util.js +0 -0
- /package/src/{utils → core/utils}/translations.util.d.ts +0 -0
- /package/src/{utils → core/utils}/translations.util.js +0 -0
- /package/src/{utils → features/cart}/cart.util.js +0 -0
- /package/src/{services → features/location}/location.service.d.ts +0 -0
- /package/src/{services → features/location}/location.service.js +0 -0
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import type { Client, Options as Options2, TDataShape } from './client';
|
|
2
|
+
import type { AccessEligibilityData, AccessEligibilityResponses, CreateManufacturerData, CreateManufacturerErrors, CreateManufacturerResponses, CreateOrderData, CreateOrderErrors, CreateOrderResponses, CreateOrganizationData, CreateOrganizationErrors, CreateOrganizationResponses, CreateProductCategoryData, CreateProductCategoryErrors, CreateProductCategoryResponses, CreateProductData, CreateProductErrors, CreateProductResponses, CreateReservationData, CreateReservationErrors, CreateReservationResponses, CreateShippingAddressData, CreateShippingAddressErrors, CreateShippingAddressResponses, CreateShippingMethodData, CreateShippingMethodErrors, CreateShippingMethodResponses, CreateTemporaryFileData, CreateTemporaryFileResponses, DeleteManufacturerData, DeleteManufacturerErrors, DeleteManufacturerResponses, DeleteOrderData, DeleteOrderErrors, DeleteOrderResponses, DeleteOrganizationData, DeleteOrganizationErrors, DeleteOrganizationResponses, DeleteProductCategoryData, DeleteProductCategoryErrors, DeleteProductCategoryResponses, DeleteProductData, DeleteProductErrors, DeleteProductResponses, DeleteReservationData, DeleteReservationErrors, DeleteReservationResponses, DeleteShippingMethodData, DeleteShippingMethodErrors, DeleteShippingMethodResponses, GetAvailablePaymentMethodsData, GetAvailablePaymentMethodsErrors, GetAvailablePaymentMethodsResponses, GetCartDataData, GetCartDataErrors, GetCartDataResponses, GetManufacturerData, GetManufacturerErrors, GetManufacturerResponses, GetManufacturersData, GetManufacturersErrors, GetManufacturersResponses, GetOrderData, GetOrderErrors, GetOrderResponses, GetOrdersData, GetOrdersErrors, GetOrdersResponses, GetOrganizationData, GetOrganizationErrors, GetOrganizationResponses, GetOrganizationsData, GetOrganizationsResponses, GetPlaceDetailsData, GetPlaceDetailsErrors, GetPlaceDetailsResponses, GetPredictionsData, GetPredictionsErrors, GetPredictionsResponses, GetProductCategoriesData, GetProductCategoriesErrors, GetProductCategoriesResponses, GetProductCategoryData, GetProductCategoryErrors, GetProductCategoryResponses, GetProductData, GetProductErrors, GetProductResponses, GetProductsByCategoryData, GetProductsByCategoryErrors, GetProductsByCategoryResponses, GetProductsData, GetProductsErrors, GetProductsResponses, GetReservationData, GetReservationErrors, GetReservationResponses, GetReservationsData, GetReservationsErrors, GetReservationsResponses, GetShippingAddressData, GetShippingAddressErrors, GetShippingAddressResponses, GetShippingMethodData, GetShippingMethodErrors, GetShippingMethodResponses, GetShippingMethodsData, GetShippingMethodsErrors, GetShippingMethodsResponses, GetUserReservationsData, GetUserReservationsErrors, GetUserReservationsResponses, GetVercelTokenData, GetVercelTokenResponses, PingData, PingErrors, PingResponses, UpdateManufacturerData, UpdateManufacturerErrors, UpdateManufacturerResponses, UpdateOrderStatusData, UpdateOrderStatusErrors, UpdateOrderStatusResponses, UpdateOrganizationData, UpdateOrganizationErrors, UpdateOrganizationResponses, UpdateProductCategoryData, UpdateProductCategoryErrors, UpdateProductCategoryResponses, UpdateProductCategoryStatusData, UpdateProductCategoryStatusErrors, UpdateProductCategoryStatusResponses, UpdateProductData, UpdateProductErrors, UpdateProductResponses, UpdateProductStatusData, UpdateProductStatusErrors, UpdateProductStatusResponses, UpdateReservationStatusData, UpdateReservationStatusErrors, UpdateReservationStatusResponses, UpdateShippingAddressData, UpdateShippingAddressErrors, UpdateShippingAddressResponses, UpdateShippingMethodData, UpdateShippingMethodErrors, UpdateShippingMethodResponses, WebhookData, WebhookErrors, WebhookResponses } from './types.gen';
|
|
3
|
+
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
|
+
/**
|
|
5
|
+
* You can provide a client instance returned by `createClient()` instead of
|
|
6
|
+
* individual options. This might be also useful if you want to implement a
|
|
7
|
+
* custom client.
|
|
8
|
+
*/
|
|
9
|
+
client?: Client;
|
|
10
|
+
/**
|
|
11
|
+
* You can pass arbitrary values through the `meta` object. This can be
|
|
12
|
+
* used to access values that aren't defined as part of the SDK function.
|
|
13
|
+
*/
|
|
14
|
+
meta?: Record<string, unknown>;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Ping
|
|
18
|
+
*
|
|
19
|
+
* Pings the relevancy score service to check its availability
|
|
20
|
+
*/
|
|
21
|
+
export declare const ping: <ThrowOnError extends boolean = false>(options?: Options<PingData, ThrowOnError>) => import("./client").RequestResult<PingResponses, PingErrors, ThrowOnError, "fields">;
|
|
22
|
+
/**
|
|
23
|
+
* Get Manufacturers
|
|
24
|
+
*
|
|
25
|
+
* Fetches a paginated list of manufacturers for a specific organization
|
|
26
|
+
*/
|
|
27
|
+
export declare const getManufacturers: <ThrowOnError extends boolean = false>(options: Options<GetManufacturersData, ThrowOnError>) => import("./client").RequestResult<GetManufacturersResponses, GetManufacturersErrors, ThrowOnError, "fields">;
|
|
28
|
+
/**
|
|
29
|
+
* Create Manufacturer
|
|
30
|
+
*
|
|
31
|
+
* Creates a new manufacturer for a specific organization
|
|
32
|
+
*/
|
|
33
|
+
export declare const createManufacturer: <ThrowOnError extends boolean = false>(options: Options<CreateManufacturerData, ThrowOnError>) => import("./client").RequestResult<CreateManufacturerResponses, CreateManufacturerErrors, ThrowOnError, "fields">;
|
|
34
|
+
/**
|
|
35
|
+
* Delete Manufacturer
|
|
36
|
+
*
|
|
37
|
+
* Soft deletes a manufacturer
|
|
38
|
+
*/
|
|
39
|
+
export declare const deleteManufacturer: <ThrowOnError extends boolean = false>(options: Options<DeleteManufacturerData, ThrowOnError>) => import("./client").RequestResult<DeleteManufacturerResponses, DeleteManufacturerErrors, ThrowOnError, "fields">;
|
|
40
|
+
/**
|
|
41
|
+
* Get Manufacturer
|
|
42
|
+
*/
|
|
43
|
+
export declare const getManufacturer: <ThrowOnError extends boolean = false>(options: Options<GetManufacturerData, ThrowOnError>) => import("./client").RequestResult<GetManufacturerResponses, GetManufacturerErrors, ThrowOnError, "fields">;
|
|
44
|
+
/**
|
|
45
|
+
* Update Manufacturer
|
|
46
|
+
*
|
|
47
|
+
* Updates an existing manufacturer
|
|
48
|
+
*/
|
|
49
|
+
export declare const updateManufacturer: <ThrowOnError extends boolean = false>(options: Options<UpdateManufacturerData, ThrowOnError>) => import("./client").RequestResult<UpdateManufacturerResponses, UpdateManufacturerErrors, ThrowOnError, "fields">;
|
|
50
|
+
/**
|
|
51
|
+
* Get Organizations
|
|
52
|
+
*
|
|
53
|
+
* Fetches a paginated list of organizations
|
|
54
|
+
*/
|
|
55
|
+
export declare const getOrganizations: <ThrowOnError extends boolean = false>(options?: Options<GetOrganizationsData, ThrowOnError>) => import("./client").RequestResult<GetOrganizationsResponses, unknown, ThrowOnError, "fields">;
|
|
56
|
+
/**
|
|
57
|
+
* Create Organization
|
|
58
|
+
*
|
|
59
|
+
* Creates a new organization
|
|
60
|
+
*/
|
|
61
|
+
export declare const createOrganization: <ThrowOnError extends boolean = false>(options: Options<CreateOrganizationData, ThrowOnError>) => import("./client").RequestResult<CreateOrganizationResponses, CreateOrganizationErrors, ThrowOnError, "fields">;
|
|
62
|
+
/**
|
|
63
|
+
* Delete Organization
|
|
64
|
+
*
|
|
65
|
+
* Deletes a specific organization by ID
|
|
66
|
+
*/
|
|
67
|
+
export declare const deleteOrganization: <ThrowOnError extends boolean = false>(options: Options<DeleteOrganizationData, ThrowOnError>) => import("./client").RequestResult<DeleteOrganizationResponses, DeleteOrganizationErrors, ThrowOnError, "fields">;
|
|
68
|
+
/**
|
|
69
|
+
* Get Organization
|
|
70
|
+
*
|
|
71
|
+
* Fetches a specific organization by ID
|
|
72
|
+
*/
|
|
73
|
+
export declare const getOrganization: <ThrowOnError extends boolean = false>(options: Options<GetOrganizationData, ThrowOnError>) => import("./client").RequestResult<GetOrganizationResponses, GetOrganizationErrors, ThrowOnError, "fields">;
|
|
74
|
+
/**
|
|
75
|
+
* Update Organization
|
|
76
|
+
*
|
|
77
|
+
* Updates a specific organization by ID
|
|
78
|
+
*/
|
|
79
|
+
export declare const updateOrganization: <ThrowOnError extends boolean = false>(options: Options<UpdateOrganizationData, ThrowOnError>) => import("./client").RequestResult<UpdateOrganizationResponses, UpdateOrganizationErrors, ThrowOnError, "fields">;
|
|
80
|
+
/**
|
|
81
|
+
* Get Vercel Token
|
|
82
|
+
*
|
|
83
|
+
* Returns a Vercel token
|
|
84
|
+
*/
|
|
85
|
+
export declare const getVercelToken: <ThrowOnError extends boolean = false>(options: Options<GetVercelTokenData, ThrowOnError>) => import("./client").RequestResult<GetVercelTokenResponses, unknown, ThrowOnError, "fields">;
|
|
86
|
+
/**
|
|
87
|
+
* Create Temporary File
|
|
88
|
+
*
|
|
89
|
+
* Creates a temporary file record and returns its ID
|
|
90
|
+
*/
|
|
91
|
+
export declare const createTemporaryFile: <ThrowOnError extends boolean = false>(options: Options<CreateTemporaryFileData, ThrowOnError>) => import("./client").RequestResult<CreateTemporaryFileResponses, unknown, ThrowOnError, "fields">;
|
|
92
|
+
/**
|
|
93
|
+
* Get Product Categories
|
|
94
|
+
*
|
|
95
|
+
* Fetches a paginated list of product categories for a specific organization
|
|
96
|
+
*/
|
|
97
|
+
export declare const getProductCategories: <ThrowOnError extends boolean = false>(options: Options<GetProductCategoriesData, ThrowOnError>) => import("./client").RequestResult<GetProductCategoriesResponses, GetProductCategoriesErrors, ThrowOnError, "fields">;
|
|
98
|
+
/**
|
|
99
|
+
* Create Product Category
|
|
100
|
+
*
|
|
101
|
+
* Creates a new product category for a specific organization
|
|
102
|
+
*/
|
|
103
|
+
export declare const createProductCategory: <ThrowOnError extends boolean = false>(options: Options<CreateProductCategoryData, ThrowOnError>) => import("./client").RequestResult<CreateProductCategoryResponses, CreateProductCategoryErrors, ThrowOnError, "fields">;
|
|
104
|
+
/**
|
|
105
|
+
* Delete Product Category
|
|
106
|
+
*
|
|
107
|
+
* Deletes a specific product category by ID
|
|
108
|
+
*/
|
|
109
|
+
export declare const deleteProductCategory: <ThrowOnError extends boolean = false>(options: Options<DeleteProductCategoryData, ThrowOnError>) => import("./client").RequestResult<DeleteProductCategoryResponses, DeleteProductCategoryErrors, ThrowOnError, "fields">;
|
|
110
|
+
/**
|
|
111
|
+
* Get Product Category
|
|
112
|
+
*
|
|
113
|
+
* Fetches a specific product category by ID
|
|
114
|
+
*/
|
|
115
|
+
export declare const getProductCategory: <ThrowOnError extends boolean = false>(options: Options<GetProductCategoryData, ThrowOnError>) => import("./client").RequestResult<GetProductCategoryResponses, GetProductCategoryErrors, ThrowOnError, "fields">;
|
|
116
|
+
/**
|
|
117
|
+
* Update Product Category
|
|
118
|
+
*
|
|
119
|
+
* Updates a specific product category by ID
|
|
120
|
+
*/
|
|
121
|
+
export declare const updateProductCategory: <ThrowOnError extends boolean = false>(options: Options<UpdateProductCategoryData, ThrowOnError>) => import("./client").RequestResult<UpdateProductCategoryResponses, UpdateProductCategoryErrors, ThrowOnError, "fields">;
|
|
122
|
+
/**
|
|
123
|
+
* Publish or Unpublish Product Category
|
|
124
|
+
*
|
|
125
|
+
* Sets the published status of an existing product category based on the operation (publish or unpublish)
|
|
126
|
+
*/
|
|
127
|
+
export declare const updateProductCategoryStatus: <ThrowOnError extends boolean = false>(options: Options<UpdateProductCategoryStatusData, ThrowOnError>) => import("./client").RequestResult<UpdateProductCategoryStatusResponses, UpdateProductCategoryStatusErrors, ThrowOnError, "fields">;
|
|
128
|
+
/**
|
|
129
|
+
* Get Products
|
|
130
|
+
*
|
|
131
|
+
* Fetches paginated list of products
|
|
132
|
+
*/
|
|
133
|
+
export declare const getProducts: <ThrowOnError extends boolean = false>(options: Options<GetProductsData, ThrowOnError>) => import("./client").RequestResult<GetProductsResponses, GetProductsErrors, ThrowOnError, "fields">;
|
|
134
|
+
/**
|
|
135
|
+
* Create Product
|
|
136
|
+
*
|
|
137
|
+
* Creates a new product
|
|
138
|
+
*/
|
|
139
|
+
export declare const createProduct: <ThrowOnError extends boolean = false>(options: Options<CreateProductData, ThrowOnError>) => import("./client").RequestResult<CreateProductResponses, CreateProductErrors, ThrowOnError, "fields">;
|
|
140
|
+
/**
|
|
141
|
+
* Delete Product
|
|
142
|
+
*
|
|
143
|
+
* Deletes a specific product by ID
|
|
144
|
+
*/
|
|
145
|
+
export declare const deleteProduct: <ThrowOnError extends boolean = false>(options: Options<DeleteProductData, ThrowOnError>) => import("./client").RequestResult<DeleteProductResponses, DeleteProductErrors, ThrowOnError, "fields">;
|
|
146
|
+
/**
|
|
147
|
+
* Get Product
|
|
148
|
+
*
|
|
149
|
+
* Fetches a specific product by ID
|
|
150
|
+
*/
|
|
151
|
+
export declare const getProduct: <ThrowOnError extends boolean = false>(options: Options<GetProductData, ThrowOnError>) => import("./client").RequestResult<GetProductResponses, GetProductErrors, ThrowOnError, "fields">;
|
|
152
|
+
/**
|
|
153
|
+
* Update Product
|
|
154
|
+
*
|
|
155
|
+
* Updates a specific product by ID
|
|
156
|
+
*/
|
|
157
|
+
export declare const updateProduct: <ThrowOnError extends boolean = false>(options: Options<UpdateProductData, ThrowOnError>) => import("./client").RequestResult<UpdateProductResponses, UpdateProductErrors, ThrowOnError, "fields">;
|
|
158
|
+
/**
|
|
159
|
+
* Publish or Unpublish Product
|
|
160
|
+
*
|
|
161
|
+
* Sets the published status of an existing product based on the operation (publish or unpublish)
|
|
162
|
+
*/
|
|
163
|
+
export declare const updateProductStatus: <ThrowOnError extends boolean = false>(options: Options<UpdateProductStatusData, ThrowOnError>) => import("./client").RequestResult<UpdateProductStatusResponses, UpdateProductStatusErrors, ThrowOnError, "fields">;
|
|
164
|
+
/**
|
|
165
|
+
* Get Products by Category
|
|
166
|
+
*
|
|
167
|
+
* Fetches a paginated list of products for a specific category
|
|
168
|
+
*/
|
|
169
|
+
export declare const getProductsByCategory: <ThrowOnError extends boolean = false>(options: Options<GetProductsByCategoryData, ThrowOnError>) => import("./client").RequestResult<GetProductsByCategoryResponses, GetProductsByCategoryErrors, ThrowOnError, "fields">;
|
|
170
|
+
/**
|
|
171
|
+
* Get Shipping Methods
|
|
172
|
+
*
|
|
173
|
+
* Fetches a paginated list of shipping methods for an organization
|
|
174
|
+
*/
|
|
175
|
+
export declare const getShippingMethods: <ThrowOnError extends boolean = false>(options: Options<GetShippingMethodsData, ThrowOnError>) => import("./client").RequestResult<GetShippingMethodsResponses, GetShippingMethodsErrors, ThrowOnError, "fields">;
|
|
176
|
+
/**
|
|
177
|
+
* Create Shipping Method
|
|
178
|
+
*
|
|
179
|
+
* Creates a new shipping method for an organization
|
|
180
|
+
*/
|
|
181
|
+
export declare const createShippingMethod: <ThrowOnError extends boolean = false>(options: Options<CreateShippingMethodData, ThrowOnError>) => import("./client").RequestResult<CreateShippingMethodResponses, CreateShippingMethodErrors, ThrowOnError, "fields">;
|
|
182
|
+
/**
|
|
183
|
+
* Delete Shipping Method
|
|
184
|
+
*
|
|
185
|
+
* Soft deletes a shipping method
|
|
186
|
+
*/
|
|
187
|
+
export declare const deleteShippingMethod: <ThrowOnError extends boolean = false>(options: Options<DeleteShippingMethodData, ThrowOnError>) => import("./client").RequestResult<DeleteShippingMethodResponses, DeleteShippingMethodErrors, ThrowOnError, "fields">;
|
|
188
|
+
/**
|
|
189
|
+
* Get Shipping Method
|
|
190
|
+
*/
|
|
191
|
+
export declare const getShippingMethod: <ThrowOnError extends boolean = false>(options: Options<GetShippingMethodData, ThrowOnError>) => import("./client").RequestResult<GetShippingMethodResponses, GetShippingMethodErrors, ThrowOnError, "fields">;
|
|
192
|
+
/**
|
|
193
|
+
* Update Shipping Method
|
|
194
|
+
*
|
|
195
|
+
* Updates an existing shipping method
|
|
196
|
+
*/
|
|
197
|
+
export declare const updateShippingMethod: <ThrowOnError extends boolean = false>(options: Options<UpdateShippingMethodData, ThrowOnError>) => import("./client").RequestResult<UpdateShippingMethodResponses, UpdateShippingMethodErrors, ThrowOnError, "fields">;
|
|
198
|
+
/**
|
|
199
|
+
* Get Eligible Shipping Methods
|
|
200
|
+
*
|
|
201
|
+
* Fetches a list of published shipping methods a user can use
|
|
202
|
+
*/
|
|
203
|
+
export declare const accessEligibility: <ThrowOnError extends boolean = false>(options: Options<AccessEligibilityData, ThrowOnError>) => import("./client").RequestResult<AccessEligibilityResponses, unknown, ThrowOnError, "fields">;
|
|
204
|
+
/**
|
|
205
|
+
* Get Orders
|
|
206
|
+
*
|
|
207
|
+
* Fetches paginated list of orders
|
|
208
|
+
*/
|
|
209
|
+
export declare const getOrders: <ThrowOnError extends boolean = false>(options: Options<GetOrdersData, ThrowOnError>) => import("./client").RequestResult<GetOrdersResponses, GetOrdersErrors, ThrowOnError, "fields">;
|
|
210
|
+
/**
|
|
211
|
+
* Create Order
|
|
212
|
+
*
|
|
213
|
+
* Creates a new order
|
|
214
|
+
*/
|
|
215
|
+
export declare const createOrder: <ThrowOnError extends boolean = false>(options: Options<CreateOrderData, ThrowOnError>) => import("./client").RequestResult<CreateOrderResponses, CreateOrderErrors, ThrowOnError, "fields">;
|
|
216
|
+
/**
|
|
217
|
+
* Delete Order
|
|
218
|
+
*
|
|
219
|
+
* Soft deletes order
|
|
220
|
+
*/
|
|
221
|
+
export declare const deleteOrder: <ThrowOnError extends boolean = false>(options: Options<DeleteOrderData, ThrowOnError>) => import("./client").RequestResult<DeleteOrderResponses, DeleteOrderErrors, ThrowOnError, "fields">;
|
|
222
|
+
/**
|
|
223
|
+
* Get Order
|
|
224
|
+
*/
|
|
225
|
+
export declare const getOrder: <ThrowOnError extends boolean = false>(options: Options<GetOrderData, ThrowOnError>) => import("./client").RequestResult<GetOrderResponses, GetOrderErrors, ThrowOnError, "fields">;
|
|
226
|
+
/**
|
|
227
|
+
* Change Order Status
|
|
228
|
+
*
|
|
229
|
+
* Changes the status of an existing order based on the operation
|
|
230
|
+
*/
|
|
231
|
+
export declare const updateOrderStatus: <ThrowOnError extends boolean = false>(options: Options<UpdateOrderStatusData, ThrowOnError>) => import("./client").RequestResult<UpdateOrderStatusResponses, UpdateOrderStatusErrors, ThrowOnError, "fields">;
|
|
232
|
+
/**
|
|
233
|
+
* Get Formatted Cart
|
|
234
|
+
*
|
|
235
|
+
* Fetches formatted cart data
|
|
236
|
+
*/
|
|
237
|
+
export declare const getCartData: <ThrowOnError extends boolean = false>(options: Options<GetCartDataData, ThrowOnError>) => import("./client").RequestResult<GetCartDataResponses, GetCartDataErrors, ThrowOnError, "fields">;
|
|
238
|
+
/**
|
|
239
|
+
* Get Shipping Address
|
|
240
|
+
*
|
|
241
|
+
* Get the default shipping address for the user
|
|
242
|
+
*/
|
|
243
|
+
export declare const getShippingAddress: <ThrowOnError extends boolean = false>(options?: Options<GetShippingAddressData, ThrowOnError>) => import("./client").RequestResult<GetShippingAddressResponses, GetShippingAddressErrors, ThrowOnError, "fields">;
|
|
244
|
+
/**
|
|
245
|
+
* Create Shipping Address
|
|
246
|
+
*
|
|
247
|
+
* Creates a new shipping address for the user
|
|
248
|
+
*/
|
|
249
|
+
export declare const createShippingAddress: <ThrowOnError extends boolean = false>(options: Options<CreateShippingAddressData, ThrowOnError>) => import("./client").RequestResult<CreateShippingAddressResponses, CreateShippingAddressErrors, ThrowOnError, "fields">;
|
|
250
|
+
/**
|
|
251
|
+
* Update Shipping Address
|
|
252
|
+
*
|
|
253
|
+
* Updates the shipping address for the user
|
|
254
|
+
*/
|
|
255
|
+
export declare const updateShippingAddress: <ThrowOnError extends boolean = false>(options: Options<UpdateShippingAddressData, ThrowOnError>) => import("./client").RequestResult<UpdateShippingAddressResponses, UpdateShippingAddressErrors, ThrowOnError, "fields">;
|
|
256
|
+
/**
|
|
257
|
+
* Get Places Predictions
|
|
258
|
+
*
|
|
259
|
+
* Returns a list of places for autocompletion based on a search query
|
|
260
|
+
*/
|
|
261
|
+
export declare const getPredictions: <ThrowOnError extends boolean = false>(options: Options<GetPredictionsData, ThrowOnError>) => import("./client").RequestResult<GetPredictionsResponses, GetPredictionsErrors, ThrowOnError, "fields">;
|
|
262
|
+
/**
|
|
263
|
+
* Get Place Details
|
|
264
|
+
*
|
|
265
|
+
* Returns details for a specific place based on its placeId
|
|
266
|
+
*/
|
|
267
|
+
export declare const getPlaceDetails: <ThrowOnError extends boolean = false>(options: Options<GetPlaceDetailsData, ThrowOnError>) => import("./client").RequestResult<GetPlaceDetailsResponses, GetPlaceDetailsErrors, ThrowOnError, "fields">;
|
|
268
|
+
/**
|
|
269
|
+
* Get Available Payment Methods
|
|
270
|
+
*
|
|
271
|
+
* Returns a list of available payment methods for the organization.
|
|
272
|
+
*/
|
|
273
|
+
export declare const getAvailablePaymentMethods: <ThrowOnError extends boolean = false>(options: Options<GetAvailablePaymentMethodsData, ThrowOnError>) => import("./client").RequestResult<GetAvailablePaymentMethodsResponses, GetAvailablePaymentMethodsErrors, ThrowOnError, "fields">;
|
|
274
|
+
/**
|
|
275
|
+
* Process Event
|
|
276
|
+
*
|
|
277
|
+
* Receive webhook events from payment providers
|
|
278
|
+
*/
|
|
279
|
+
export declare const webhook: <ThrowOnError extends boolean = false>(options: Options<WebhookData, ThrowOnError>) => import("./client").RequestResult<WebhookResponses, WebhookErrors, ThrowOnError, "fields">;
|
|
280
|
+
/**
|
|
281
|
+
* Get Reservations
|
|
282
|
+
*
|
|
283
|
+
* Get all reservations for an organization
|
|
284
|
+
*/
|
|
285
|
+
export declare const getReservations: <ThrowOnError extends boolean = false>(options: Options<GetReservationsData, ThrowOnError>) => import("./client").RequestResult<GetReservationsResponses, GetReservationsErrors, ThrowOnError, "fields">;
|
|
286
|
+
/**
|
|
287
|
+
* Create Reservation
|
|
288
|
+
*
|
|
289
|
+
* Create a new reservation
|
|
290
|
+
*/
|
|
291
|
+
export declare const createReservation: <ThrowOnError extends boolean = false>(options: Options<CreateReservationData, ThrowOnError>) => import("./client").RequestResult<CreateReservationResponses, CreateReservationErrors, ThrowOnError, "fields">;
|
|
292
|
+
/**
|
|
293
|
+
* Delete Reservation
|
|
294
|
+
*
|
|
295
|
+
* Delete a reservation
|
|
296
|
+
*/
|
|
297
|
+
export declare const deleteReservation: <ThrowOnError extends boolean = false>(options: Options<DeleteReservationData, ThrowOnError>) => import("./client").RequestResult<DeleteReservationResponses, DeleteReservationErrors, ThrowOnError, "fields">;
|
|
298
|
+
/**
|
|
299
|
+
* Get Reservation
|
|
300
|
+
*
|
|
301
|
+
* Get a specific reservation by ID
|
|
302
|
+
*/
|
|
303
|
+
export declare const getReservation: <ThrowOnError extends boolean = false>(options: Options<GetReservationData, ThrowOnError>) => import("./client").RequestResult<GetReservationResponses, GetReservationErrors, ThrowOnError, "fields">;
|
|
304
|
+
/**
|
|
305
|
+
* Get User Reservations
|
|
306
|
+
*
|
|
307
|
+
* Get all reservations for a user
|
|
308
|
+
*/
|
|
309
|
+
export declare const getUserReservations: <ThrowOnError extends boolean = false>(options: Options<GetUserReservationsData, ThrowOnError>) => import("./client").RequestResult<GetUserReservationsResponses, GetUserReservationsErrors, ThrowOnError, "fields">;
|
|
310
|
+
/**
|
|
311
|
+
* Update Reservation Status
|
|
312
|
+
*
|
|
313
|
+
* Update the status of a reservation
|
|
314
|
+
*/
|
|
315
|
+
export declare const updateReservationStatus: <ThrowOnError extends boolean = false>(options: Options<UpdateReservationStatusData, ThrowOnError>) => import("./client").RequestResult<UpdateReservationStatusResponses, UpdateReservationStatusErrors, ThrowOnError, "fields">;
|