@ventrata/octo-types 0.0.15 → 0.0.17
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/dist/index.d.ts +140 -21
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +155 -12
- package/dist/models/Article.d.ts +13 -0
- package/dist/models/Article.d.ts.map +1 -0
- package/dist/models/AvailabilityCalendar.d.ts +4 -0
- package/dist/models/AvailabilityCalendar.d.ts.map +1 -1
- package/dist/models/AvailabilityCalendarBody.d.ts +1 -1
- package/dist/models/AvailabilityCalendarBody.d.ts.map +1 -1
- package/dist/models/AvailabilityCheckBody.d.ts +1 -1
- package/dist/models/AvailabilityCheckBody.d.ts.map +1 -1
- package/dist/models/Booking.d.ts +8 -5
- package/dist/models/Booking.d.ts.map +1 -1
- package/dist/models/BookingCancellationBody.d.ts +9 -2
- package/dist/models/BookingCancellationBody.d.ts.map +1 -1
- package/dist/models/BookingCardPayments.d.ts +2 -2
- package/dist/models/BookingCardPayments.d.ts.map +1 -1
- package/dist/models/BookingContact.d.ts +4 -0
- package/dist/models/BookingContact.d.ts.map +1 -1
- package/dist/models/BookingContentBody.d.ts +4 -0
- package/dist/models/BookingContentBody.d.ts.map +1 -0
- package/dist/models/BookingIdenititesBody.d.ts +4 -0
- package/dist/models/BookingIdenititesBody.d.ts.map +1 -0
- package/dist/models/BookingMemberships.d.ts +2 -0
- package/dist/models/BookingMemberships.d.ts.map +1 -1
- package/dist/models/BookingReservationBody.d.ts +3 -1
- package/dist/models/BookingReservationBody.d.ts.map +1 -1
- package/dist/models/BookingUpdateBody.d.ts +1 -0
- package/dist/models/BookingUpdateBody.d.ts.map +1 -1
- package/dist/models/Brand.d.ts +3 -1
- package/dist/models/Brand.d.ts.map +1 -1
- package/dist/models/BrandVentrataCheckoutContent.d.ts +5 -0
- package/dist/models/BrandVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/models/CancelGiftBody.d.ts +5 -0
- package/dist/models/CancelGiftBody.d.ts.map +1 -0
- package/dist/models/CancelGiftPathParams.d.ts +4 -0
- package/dist/models/CancelGiftPathParams.d.ts.map +1 -0
- package/dist/models/CancelOrderBody.d.ts +1 -0
- package/dist/models/CancelOrderBody.d.ts.map +1 -1
- package/dist/models/{BookingCancellation.d.ts → Cancellation.d.ts} +2 -2
- package/dist/models/Cancellation.d.ts.map +1 -0
- package/dist/models/CapabilityId.d.ts +3 -0
- package/dist/models/CapabilityId.d.ts.map +1 -1
- package/dist/models/CapabilityId.js +3 -0
- package/dist/models/CardPayment.d.ts +10 -32
- package/dist/models/CardPayment.d.ts.map +1 -1
- package/dist/models/CardPaymentGateway.d.ts +37 -0
- package/dist/models/CardPaymentGateway.d.ts.map +1 -0
- package/dist/models/Category.d.ts +7 -0
- package/dist/models/Category.d.ts.map +1 -1
- package/dist/models/CategoryVentrataCheckoutContent.d.ts +6 -0
- package/dist/models/CategoryVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/models/Checkout.d.ts +11 -0
- package/dist/models/Checkout.d.ts.map +1 -0
- package/dist/models/CheckoutConfig.d.ts +155 -0
- package/dist/models/CheckoutConfig.d.ts.map +1 -0
- package/dist/models/CheckoutConfigContent.d.ts +122 -0
- package/dist/models/CheckoutConfigContent.d.ts.map +1 -0
- package/dist/models/CheckoutConfigPricingDisplay.d.ts +5 -0
- package/dist/models/CheckoutConfigPricingDisplay.d.ts.map +1 -0
- package/dist/models/CheckoutConfigPricingDisplay.js +12 -0
- package/dist/models/CheckoutDomain.d.ts +5 -0
- package/dist/models/CheckoutDomain.d.ts.map +1 -0
- package/dist/models/CheckoutSitemapEntry.d.ts +12 -0
- package/dist/models/CheckoutSitemapEntry.d.ts.map +1 -0
- package/dist/models/CheckoutSitemapEntryRel.d.ts +7 -0
- package/dist/models/CheckoutSitemapEntryRel.d.ts.map +1 -0
- package/dist/models/CheckoutSitemapEntryRel.js +14 -0
- package/dist/models/Claim.d.ts +8 -0
- package/dist/models/Claim.d.ts.map +1 -0
- package/dist/models/Connection.d.ts +15 -0
- package/dist/models/Connection.d.ts.map +1 -0
- package/dist/models/CreateGiftBody.d.ts +19 -0
- package/dist/models/CreateGiftBody.d.ts.map +1 -0
- package/dist/models/CreateGiftRequest.d.ts +5 -0
- package/dist/models/CreateGiftRequest.d.ts.map +1 -0
- package/dist/models/CreateIdentityBody.d.ts +4 -0
- package/dist/models/CreateIdentityBody.d.ts.map +1 -0
- package/dist/models/CreateIdentityRequest.d.ts +5 -0
- package/dist/models/CreateIdentityRequest.d.ts.map +1 -0
- package/dist/models/CreateIdentityRequest.js +2 -0
- package/dist/models/CreateOrderBody.d.ts +16 -4
- package/dist/models/CreateOrderBody.d.ts.map +1 -1
- package/dist/models/CreateOrderCardPaymentsBody.d.ts +7 -0
- package/dist/models/CreateOrderCardPaymentsBody.d.ts.map +1 -0
- package/dist/models/CreateOrderCardPaymentsBody.js +2 -0
- package/dist/models/CreateOrderGiftsBody.d.ts +5 -0
- package/dist/models/CreateOrderGiftsBody.d.ts.map +1 -0
- package/dist/models/CreateOrderGiftsBody.js +2 -0
- package/dist/models/CreateOrderIdentitiesBody.d.ts +4 -0
- package/dist/models/CreateOrderIdentitiesBody.d.ts.map +1 -0
- package/dist/models/CreateOrderIdentitiesBody.js +2 -0
- package/dist/models/CreateOrderRequest.d.ts +5 -0
- package/dist/models/CreateOrderRequest.d.ts.map +1 -0
- package/dist/models/CreateOrderRequest.js +2 -0
- package/dist/models/DeleteIdentityPathParams.d.ts +4 -0
- package/dist/models/DeleteIdentityPathParams.d.ts.map +1 -0
- package/dist/models/DeleteIdentityPathParams.js +2 -0
- package/dist/models/DeleteIdentityRequest_id.d.ts +2 -0
- package/dist/models/DeleteIdentityRequest_id.d.ts.map +1 -0
- package/dist/models/DeleteIdentityRequest_id.js +2 -0
- package/dist/models/DeliveryFormat.d.ts +2 -1
- package/dist/models/DeliveryFormat.d.ts.map +1 -1
- package/dist/models/DeliveryFormat.js +1 -0
- package/dist/models/Destination.d.ts +17 -0
- package/dist/models/Destination.d.ts.map +1 -1
- package/dist/models/DestinationVentrataCheckoutContent.d.ts +16 -0
- package/dist/models/DestinationVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/models/DestinationVentrataCheckoutContent.js +2 -0
- package/dist/models/{OfferTax.d.ts → DiscountTax.d.ts} +2 -2
- package/dist/models/DiscountTax.d.ts.map +1 -0
- package/dist/models/DiscountTax.js +2 -0
- package/dist/models/ExternalGatewayRequest.d.ts +5 -0
- package/dist/models/ExternalGatewayRequest.d.ts.map +1 -0
- package/dist/models/ExternalGatewayRequest.js +2 -0
- package/dist/models/GetBookingsQueryParams.d.ts +31 -0
- package/dist/models/GetBookingsQueryParams.d.ts.map +1 -0
- package/dist/models/GetBookingsQueryParams.js +2 -0
- package/dist/models/GetBookingsQuery_localDate.d.ts +5 -0
- package/dist/models/GetBookingsQuery_localDate.d.ts.map +1 -0
- package/dist/models/GetBookingsQuery_localDate.js +2 -0
- package/dist/models/GetBookingsQuery_localDateEnd.d.ts +5 -0
- package/dist/models/GetBookingsQuery_localDateEnd.d.ts.map +1 -0
- package/dist/models/GetBookingsQuery_localDateEnd.js +2 -0
- package/dist/models/GetBookingsQuery_localDateStart.d.ts +5 -0
- package/dist/models/GetBookingsQuery_localDateStart.d.ts.map +1 -0
- package/dist/models/GetBookingsQuery_localDateStart.js +2 -0
- package/dist/models/GetBookingsQuery_optionId.d.ts +5 -0
- package/dist/models/GetBookingsQuery_optionId.d.ts.map +1 -0
- package/dist/models/GetBookingsQuery_optionId.js +2 -0
- package/dist/models/GetBookingsQuery_productId.d.ts +5 -0
- package/dist/models/GetBookingsQuery_productId.d.ts.map +1 -0
- package/dist/models/GetBookingsQuery_productId.js +2 -0
- package/dist/models/GetBookingsQuery_resellerReference.d.ts +5 -0
- package/dist/models/GetBookingsQuery_resellerReference.d.ts.map +1 -0
- package/dist/models/GetBookingsQuery_resellerReference.js +2 -0
- package/dist/models/GetBookingsQuery_supplierReference.d.ts +5 -0
- package/dist/models/GetBookingsQuery_supplierReference.d.ts.map +1 -0
- package/dist/models/GetBookingsQuery_supplierReference.js +2 -0
- package/dist/models/GetBookingsRequest.d.ts +30 -2
- package/dist/models/GetBookingsRequest.d.ts.map +1 -1
- package/dist/models/GetMappingsQueryParams.d.ts +20 -0
- package/dist/models/GetMappingsQueryParams.d.ts.map +1 -0
- package/dist/models/GetMappingsQueryParams.js +2 -0
- package/dist/models/GetMappingsQuery_optionId.d.ts +5 -0
- package/dist/models/GetMappingsQuery_optionId.d.ts.map +1 -0
- package/dist/models/GetMappingsQuery_optionId.js +2 -0
- package/dist/models/GetMappingsQuery_productId.d.ts +5 -0
- package/dist/models/GetMappingsQuery_productId.d.ts.map +1 -0
- package/dist/models/GetMappingsQuery_productId.js +2 -0
- package/dist/models/GetMappingsQuery_resellerReference.d.ts +5 -0
- package/dist/models/GetMappingsQuery_resellerReference.d.ts.map +1 -0
- package/dist/models/GetMappingsQuery_resellerReference.js +2 -0
- package/dist/models/GetMappingsQuery_resellerStatus.d.ts +6 -0
- package/dist/models/GetMappingsQuery_resellerStatus.d.ts.map +1 -0
- package/dist/models/GetMappingsQuery_resellerStatus.js +2 -0
- package/dist/models/GetYourGuideConnection.d.ts +2 -2
- package/dist/models/GetYourGuideConnection.d.ts.map +1 -1
- package/dist/models/Gift.d.ts +28 -4
- package/dist/models/Gift.d.ts.map +1 -1
- package/dist/models/GiftCardPayments.d.ts +2 -2
- package/dist/models/GiftCardPayments.d.ts.map +1 -1
- package/dist/models/GiftCart.d.ts +6 -0
- package/dist/models/GiftCart.d.ts.map +1 -0
- package/dist/models/GiftCart.js +2 -0
- package/dist/models/GiftExpiryUnit.d.ts +6 -0
- package/dist/models/GiftExpiryUnit.d.ts.map +1 -0
- package/dist/models/GiftExpiryUnit.js +13 -0
- package/dist/models/GiftOffers.d.ts +23 -0
- package/dist/models/GiftOffers.d.ts.map +1 -0
- package/dist/models/GiftOffers.js +2 -0
- package/dist/models/GiftsRestrictionItem.d.ts +6 -0
- package/dist/models/GiftsRestrictionItem.d.ts.map +1 -0
- package/dist/models/GiftsRestrictionItem.js +2 -0
- package/dist/models/GiftsRestrictions.d.ts +6 -0
- package/dist/models/GiftsRestrictions.d.ts.map +1 -0
- package/dist/models/GiftsRestrictions.js +2 -0
- package/dist/models/Link.d.ts +7 -0
- package/dist/models/Link.d.ts.map +1 -0
- package/dist/models/Link.js +2 -0
- package/dist/models/ListGiftsQueryParams.d.ts +10 -0
- package/dist/models/ListGiftsQueryParams.d.ts.map +1 -0
- package/dist/models/ListGiftsQueryParams.js +2 -0
- package/dist/models/{ListOrdersRequest.d.ts → ListOrdersQueryParams.d.ts} +2 -2
- package/dist/models/ListOrdersQueryParams.d.ts.map +1 -0
- package/dist/models/ListOrdersQueryParams.js +2 -0
- package/dist/models/Nav.d.ts +9 -0
- package/dist/models/Nav.d.ts.map +1 -0
- package/dist/models/Nav.js +2 -0
- package/dist/models/Octo_CapabilityId.d.ts +3 -1
- package/dist/models/Octo_CapabilityId.d.ts.map +1 -1
- package/dist/models/Octo_CapabilityId.js +2 -0
- package/dist/models/Offer.d.ts +1 -0
- package/dist/models/Offer.d.ts.map +1 -1
- package/dist/models/OfferDiscount.d.ts +2 -2
- package/dist/models/OfferDiscount.d.ts.map +1 -1
- package/dist/models/Operator.d.ts +11 -0
- package/dist/models/Operator.d.ts.map +1 -0
- package/dist/models/Operator.js +2 -0
- package/dist/models/Option.d.ts +1 -1
- package/dist/models/Option.d.ts.map +1 -1
- package/dist/models/OptionRestrictions.d.ts +1 -1
- package/dist/models/OptionRestrictions.d.ts.map +1 -1
- package/dist/models/Order.d.ts +3 -2
- package/dist/models/Order.d.ts.map +1 -1
- package/dist/models/OrderCardPayments.d.ts +2 -2
- package/dist/models/OrderCardPayments.d.ts.map +1 -1
- package/dist/models/Page.d.ts +13 -0
- package/dist/models/Page.d.ts.map +1 -0
- package/dist/models/Page.js +2 -0
- package/dist/models/Partner.d.ts +1 -2
- package/dist/models/Partner.d.ts.map +1 -1
- package/dist/models/PaypalGatewayRequest.d.ts +4 -0
- package/dist/models/PaypalGatewayRequest.d.ts.map +1 -0
- package/dist/models/PaypalGatewayRequest.js +2 -0
- package/dist/models/Product.d.ts +8 -0
- package/dist/models/Product.d.ts.map +1 -1
- package/dist/models/ProductPackages.d.ts +1 -0
- package/dist/models/ProductPackages.d.ts.map +1 -1
- package/dist/models/ProductVentrataCheckoutContent.d.ts +10 -0
- package/dist/models/ProductVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/models/ProductVentrataCheckoutContent.js +2 -0
- package/dist/models/RedemptionLookup.d.ts +314 -0
- package/dist/models/RedemptionLookup.d.ts.map +1 -0
- package/dist/models/RedemptionLookup.js +2 -0
- package/dist/models/RedemptionLookupQuery.d.ts +2 -0
- package/dist/models/RedemptionLookupQuery.d.ts.map +1 -0
- package/dist/models/RedemptionLookupQuery.js +2 -0
- package/dist/models/RedemptionLookupQueryParams.d.ts +4 -0
- package/dist/models/RedemptionLookupQueryParams.d.ts.map +1 -0
- package/dist/models/RedemptionLookupQueryParams.js +2 -0
- package/dist/models/RedemptionLookupRequest.d.ts +4 -0
- package/dist/models/RedemptionLookupRequest.d.ts.map +1 -0
- package/dist/models/RedemptionLookupRequest.js +2 -0
- package/dist/models/Terminal.d.ts +11 -0
- package/dist/models/Terminal.d.ts.map +1 -0
- package/dist/models/Terminal.js +2 -0
- package/dist/models/UnitItem.d.ts +2 -2
- package/dist/models/UnitItem.d.ts.map +1 -1
- package/dist/models/UnitRestrictions.d.ts +1 -0
- package/dist/models/UnitRestrictions.d.ts.map +1 -1
- package/dist/models/UpdateGiftBody.d.ts +17 -0
- package/dist/models/UpdateGiftBody.d.ts.map +1 -0
- package/dist/models/UpdateGiftBody.js +2 -0
- package/dist/models/UpdateGiftPathParams.d.ts +4 -0
- package/dist/models/UpdateGiftPathParams.d.ts.map +1 -0
- package/dist/models/UpdateGiftPathParams.js +2 -0
- package/dist/models/UpdateGiftRequest_id.d.ts +2 -0
- package/dist/models/UpdateGiftRequest_id.d.ts.map +1 -0
- package/dist/models/UpdateGiftRequest_id.js +2 -0
- package/dist/models/UpdateIdentityBody.d.ts +4 -0
- package/dist/models/UpdateIdentityBody.d.ts.map +1 -0
- package/dist/models/UpdateIdentityBody.js +2 -0
- package/dist/models/UpdateIdentityPathParams.d.ts +4 -0
- package/dist/models/UpdateIdentityPathParams.d.ts.map +1 -0
- package/dist/models/UpdateIdentityPathParams.js +2 -0
- package/dist/models/UpdateIdentityRequest_id.d.ts +2 -0
- package/dist/models/UpdateIdentityRequest_id.d.ts.map +1 -0
- package/dist/models/UpdateIdentityRequest_id.js +2 -0
- package/dist/models/UpdateOrderBody.d.ts +3 -0
- package/dist/models/UpdateOrderBody.d.ts.map +1 -1
- package/dist/models/WhoAmI.d.ts +17 -0
- package/dist/models/WhoAmI.d.ts.map +1 -0
- package/dist/models/WhoAmI.js +2 -0
- package/dist/models/WhoAmIRequest.d.ts +2 -0
- package/dist/models/WhoAmIRequest.d.ts.map +1 -0
- package/dist/models/WhoAmIRequest.js +2 -0
- package/dist/schemas/Article.d.ts +36 -0
- package/dist/schemas/Article.d.ts.map +1 -0
- package/dist/schemas/Article.js +17 -0
- package/dist/schemas/Availability.d.ts +10 -0
- package/dist/schemas/Availability.d.ts.map +1 -1
- package/dist/schemas/AvailabilityCalendar.d.ts +22 -0
- package/dist/schemas/AvailabilityCalendar.d.ts.map +1 -1
- package/dist/schemas/AvailabilityCalendar.js +4 -0
- package/dist/schemas/AvailabilityCalendarBody.d.ts +3 -3
- package/dist/schemas/AvailabilityCalendarBody.js +1 -1
- package/dist/schemas/AvailabilityCalendarOffers.d.ts +10 -0
- package/dist/schemas/AvailabilityCalendarOffers.d.ts.map +1 -1
- package/dist/schemas/AvailabilityCalendarRequest.d.ts +5 -5
- package/dist/schemas/AvailabilityCheckBody.d.ts +3 -3
- package/dist/schemas/AvailabilityCheckBody.js +1 -1
- package/dist/schemas/AvailabilityCheckRequest.d.ts +5 -5
- package/dist/schemas/AvailabilityOffers.d.ts +10 -0
- package/dist/schemas/AvailabilityOffers.d.ts.map +1 -1
- package/dist/schemas/AvailabilityUpdate.d.ts +678 -34
- package/dist/schemas/AvailabilityUpdate.d.ts.map +1 -1
- package/dist/schemas/Booking.d.ts.map +1 -1
- package/dist/schemas/Booking.js +8 -5
- package/dist/schemas/BookingCancellationBody.d.ts +5 -8
- package/dist/schemas/BookingCancellationBody.d.ts.map +1 -1
- package/dist/schemas/BookingCancellationBody.js +4 -3
- package/dist/schemas/BookingCancellationRequest.d.ts +7 -12
- package/dist/schemas/BookingCancellationRequest.d.ts.map +1 -1
- package/dist/schemas/BookingCardPayments.d.ts +18 -8
- package/dist/schemas/BookingCardPayments.d.ts.map +1 -1
- package/dist/schemas/BookingCardPayments.js +2 -2
- package/dist/schemas/BookingConfirmationBody.d.ts +24 -4
- package/dist/schemas/BookingConfirmationBody.d.ts.map +1 -1
- package/dist/schemas/BookingConfirmationRequest.d.ts +34 -6
- package/dist/schemas/BookingConfirmationRequest.d.ts.map +1 -1
- package/dist/schemas/BookingContact.d.ts +12 -0
- package/dist/schemas/BookingContact.d.ts.map +1 -1
- package/dist/schemas/BookingContact.js +4 -0
- package/dist/schemas/BookingContentBody.d.ts +9 -0
- package/dist/schemas/BookingContentBody.d.ts.map +1 -0
- package/dist/schemas/BookingContentBody.js +8 -0
- package/dist/schemas/BookingIdenititesBody.d.ts +9 -0
- package/dist/schemas/BookingIdenititesBody.d.ts.map +1 -0
- package/dist/schemas/BookingIdenititesBody.js +8 -0
- package/dist/schemas/BookingMemberships.d.ts +6 -0
- package/dist/schemas/BookingMemberships.d.ts.map +1 -1
- package/dist/schemas/BookingMemberships.js +2 -0
- package/dist/schemas/BookingOffers.d.ts +23 -4
- package/dist/schemas/BookingOffers.d.ts.map +1 -1
- package/dist/schemas/BookingPackages.d.ts +3 -53
- package/dist/schemas/BookingPackages.d.ts.map +1 -1
- package/dist/schemas/BookingReservationBody.d.ts +39 -13
- package/dist/schemas/BookingReservationBody.d.ts.map +1 -1
- package/dist/schemas/BookingReservationBody.js +3 -1
- package/dist/schemas/BookingReservationRequest.d.ts +61 -23
- package/dist/schemas/BookingReservationRequest.d.ts.map +1 -1
- package/dist/schemas/BookingUpdate.d.ts +664 -34
- package/dist/schemas/BookingUpdate.d.ts.map +1 -1
- package/dist/schemas/BookingUpdateBody.d.ts +33 -10
- package/dist/schemas/BookingUpdateBody.d.ts.map +1 -1
- package/dist/schemas/BookingUpdateBody.js +1 -0
- package/dist/schemas/BookingUpdateRequest.d.ts +51 -18
- package/dist/schemas/BookingUpdateRequest.d.ts.map +1 -1
- package/dist/schemas/Brand.d.ts +10 -4
- package/dist/schemas/Brand.d.ts.map +1 -1
- package/dist/schemas/Brand.js +3 -1
- package/dist/schemas/BrandVentrataCheckoutContent.d.ts +12 -0
- package/dist/schemas/BrandVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/schemas/BrandVentrataCheckoutContent.js +9 -0
- package/dist/schemas/CancelGiftBody.d.ts +12 -0
- package/dist/schemas/CancelGiftBody.d.ts.map +1 -0
- package/dist/schemas/CancelGiftBody.js +9 -0
- package/dist/schemas/CancelGiftPathParams.d.ts +9 -0
- package/dist/schemas/CancelGiftPathParams.d.ts.map +1 -0
- package/dist/schemas/CancelGiftPathParams.js +8 -0
- package/dist/schemas/CancelOrderBody.d.ts +3 -0
- package/dist/schemas/CancelOrderBody.d.ts.map +1 -1
- package/dist/schemas/CancelOrderBody.js +1 -0
- package/dist/schemas/Cancellation.d.ts +15 -0
- package/dist/schemas/Cancellation.d.ts.map +1 -0
- package/dist/schemas/Cancellation.js +11 -0
- package/dist/schemas/CardPayment.d.ts +43 -657
- package/dist/schemas/CardPayment.d.ts.map +1 -1
- package/dist/schemas/CardPayment.js +10 -32
- package/dist/schemas/CardPaymentGateway.d.ts +675 -0
- package/dist/schemas/CardPaymentGateway.d.ts.map +1 -0
- package/dist/schemas/CardPaymentGateway.js +41 -0
- package/dist/schemas/Category.d.ts +16 -4
- package/dist/schemas/Category.d.ts.map +1 -1
- package/dist/schemas/Category.js +4 -0
- package/dist/schemas/CategoryVentrataCheckoutContent.d.ts +15 -0
- package/dist/schemas/CategoryVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/schemas/CategoryVentrataCheckoutContent.js +10 -0
- package/dist/schemas/Checkout.d.ts +12 -0
- package/dist/schemas/Checkout.d.ts.map +1 -0
- package/dist/schemas/Checkout.js +9 -0
- package/dist/schemas/CheckoutConfig.d.ts +2074 -0
- package/dist/schemas/CheckoutConfig.d.ts.map +1 -0
- package/dist/schemas/CheckoutConfig.js +96 -0
- package/dist/schemas/CheckoutConfigContent.d.ts +1869 -0
- package/dist/schemas/CheckoutConfigContent.d.ts.map +1 -0
- package/dist/schemas/CheckoutConfigContent.js +63 -0
- package/dist/schemas/CheckoutConfigPricingDisplay.d.ts +4 -0
- package/dist/schemas/CheckoutConfigPricingDisplay.d.ts.map +1 -0
- package/dist/schemas/CheckoutConfigPricingDisplay.js +7 -0
- package/dist/schemas/CheckoutDomain.d.ts +12 -0
- package/dist/schemas/CheckoutDomain.d.ts.map +1 -0
- package/dist/schemas/CheckoutDomain.js +9 -0
- package/dist/schemas/CheckoutSitemapEntry.d.ts +30 -0
- package/dist/schemas/CheckoutSitemapEntry.d.ts.map +1 -0
- package/dist/schemas/CheckoutSitemapEntry.js +16 -0
- package/dist/schemas/CheckoutSitemapEntryRel.d.ts +4 -0
- package/dist/schemas/CheckoutSitemapEntryRel.d.ts.map +1 -0
- package/dist/schemas/CheckoutSitemapEntryRel.js +7 -0
- package/dist/schemas/Claim.d.ts +21 -0
- package/dist/schemas/Claim.d.ts.map +1 -0
- package/dist/schemas/Claim.js +12 -0
- package/dist/schemas/ConfirmOrderBody.d.ts +20 -0
- package/dist/schemas/ConfirmOrderBody.d.ts.map +1 -1
- package/dist/schemas/Connection.d.ts +15 -0
- package/dist/schemas/Connection.d.ts.map +1 -0
- package/dist/schemas/Connection.js +10 -0
- package/dist/schemas/CreateGiftBody.d.ts +160 -0
- package/dist/schemas/CreateGiftBody.d.ts.map +1 -0
- package/dist/schemas/CreateGiftBody.js +23 -0
- package/dist/schemas/CreateGiftRequest.d.ts +240 -0
- package/dist/schemas/CreateGiftRequest.d.ts.map +1 -0
- package/dist/schemas/CreateGiftRequest.js +9 -0
- package/dist/schemas/CreateIdentityBody.d.ts +9 -0
- package/dist/schemas/CreateIdentityBody.d.ts.map +1 -0
- package/dist/schemas/CreateIdentityBody.js +8 -0
- package/dist/schemas/CreateIdentityRequest.d.ts +19 -0
- package/dist/schemas/CreateIdentityRequest.d.ts.map +1 -0
- package/dist/schemas/CreateIdentityRequest.js +9 -0
- package/dist/schemas/CreateOrderBody.d.ts +662 -2
- package/dist/schemas/CreateOrderBody.d.ts.map +1 -1
- package/dist/schemas/CreateOrderBody.js +14 -2
- package/dist/schemas/CreateOrderCardPaymentsBody.d.ts +95 -0
- package/dist/schemas/CreateOrderCardPaymentsBody.d.ts.map +1 -0
- package/dist/schemas/CreateOrderCardPaymentsBody.js +11 -0
- package/dist/schemas/CreateOrderGiftsBody.d.ts +240 -0
- package/dist/schemas/CreateOrderGiftsBody.d.ts.map +1 -0
- package/dist/schemas/CreateOrderGiftsBody.js +9 -0
- package/dist/schemas/CreateOrderIdentitiesBody.d.ts +9 -0
- package/dist/schemas/CreateOrderIdentitiesBody.d.ts.map +1 -0
- package/dist/schemas/CreateOrderIdentitiesBody.js +8 -0
- package/dist/schemas/CreateOrderRequest.d.ts +1027 -0
- package/dist/schemas/CreateOrderRequest.d.ts.map +1 -0
- package/dist/schemas/CreateOrderRequest.js +9 -0
- package/dist/schemas/CreateWaitlistRequest.d.ts +20 -0
- package/dist/schemas/CreateWaitlistRequest.d.ts.map +1 -1
- package/dist/schemas/DeleteIdentityPathParams.d.ts +9 -0
- package/dist/schemas/DeleteIdentityPathParams.d.ts.map +1 -0
- package/dist/schemas/DeleteIdentityPathParams.js +8 -0
- package/dist/schemas/DeleteIdentityRequest_id.d.ts +3 -0
- package/dist/schemas/DeleteIdentityRequest_id.d.ts.map +1 -0
- package/dist/schemas/DeleteIdentityRequest_id.js +6 -0
- package/dist/schemas/Destination.d.ts +356 -14
- package/dist/schemas/Destination.d.ts.map +1 -1
- package/dist/schemas/Destination.js +14 -0
- package/dist/schemas/DestinationVentrataCheckoutContent.d.ts +270 -0
- package/dist/schemas/DestinationVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/schemas/DestinationVentrataCheckoutContent.js +20 -0
- package/dist/schemas/DiscountTax.d.ts +18 -0
- package/dist/schemas/DiscountTax.d.ts.map +1 -0
- package/dist/schemas/DiscountTax.js +11 -0
- package/dist/schemas/ExternalGatewayRequest.d.ts +12 -0
- package/dist/schemas/ExternalGatewayRequest.d.ts.map +1 -0
- package/dist/schemas/ExternalGatewayRequest.js +9 -0
- package/dist/schemas/GetBookingsQueryParams.d.ts +27 -0
- package/dist/schemas/GetBookingsQueryParams.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQueryParams.js +14 -0
- package/dist/schemas/GetBookingsQuery_localDate.d.ts +3 -0
- package/dist/schemas/GetBookingsQuery_localDate.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQuery_localDate.js +6 -0
- package/dist/schemas/GetBookingsQuery_localDateEnd.d.ts +3 -0
- package/dist/schemas/GetBookingsQuery_localDateEnd.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQuery_localDateEnd.js +6 -0
- package/dist/schemas/GetBookingsQuery_localDateStart.d.ts +3 -0
- package/dist/schemas/GetBookingsQuery_localDateStart.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQuery_localDateStart.js +6 -0
- package/dist/schemas/GetBookingsQuery_optionId.d.ts +3 -0
- package/dist/schemas/GetBookingsQuery_optionId.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQuery_optionId.js +6 -0
- package/dist/schemas/GetBookingsQuery_productId.d.ts +3 -0
- package/dist/schemas/GetBookingsQuery_productId.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQuery_productId.js +6 -0
- package/dist/schemas/GetBookingsQuery_resellerReference.d.ts +3 -0
- package/dist/schemas/GetBookingsQuery_resellerReference.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQuery_resellerReference.js +6 -0
- package/dist/schemas/GetBookingsQuery_supplierReference.d.ts +3 -0
- package/dist/schemas/GetBookingsQuery_supplierReference.d.ts.map +1 -0
- package/dist/schemas/GetBookingsQuery_supplierReference.js +6 -0
- package/dist/schemas/GetBookingsRequest.d.ts +10 -9
- package/dist/schemas/GetBookingsRequest.d.ts.map +1 -1
- package/dist/schemas/GetBookingsRequest.js +10 -2
- package/dist/schemas/GetMappingsQueryParams.d.ts +18 -0
- package/dist/schemas/GetMappingsQueryParams.d.ts.map +1 -0
- package/dist/schemas/GetMappingsQueryParams.js +12 -0
- package/dist/schemas/GetMappingsQuery_optionId.d.ts +3 -0
- package/dist/schemas/GetMappingsQuery_optionId.d.ts.map +1 -0
- package/dist/schemas/GetMappingsQuery_optionId.js +6 -0
- package/dist/schemas/GetMappingsQuery_productId.d.ts +3 -0
- package/dist/schemas/GetMappingsQuery_productId.d.ts.map +1 -0
- package/dist/schemas/GetMappingsQuery_productId.js +6 -0
- package/dist/schemas/GetMappingsQuery_resellerReference.d.ts +3 -0
- package/dist/schemas/GetMappingsQuery_resellerReference.d.ts.map +1 -0
- package/dist/schemas/GetMappingsQuery_resellerReference.js +6 -0
- package/dist/schemas/GetMappingsQuery_resellerStatus.d.ts +2 -0
- package/dist/schemas/GetMappingsQuery_resellerStatus.d.ts.map +1 -0
- package/dist/schemas/GetMappingsQuery_resellerStatus.js +6 -0
- package/dist/schemas/GetYourGuideConnection.js +2 -2
- package/dist/schemas/Gift.d.ts +4064 -54
- package/dist/schemas/Gift.d.ts.map +1 -1
- package/dist/schemas/Gift.js +16 -4
- package/dist/schemas/GiftCardPayments.d.ts +18 -8
- package/dist/schemas/GiftCardPayments.d.ts.map +1 -1
- package/dist/schemas/GiftCardPayments.js +2 -2
- package/dist/schemas/GiftCart.d.ts +15 -0
- package/dist/schemas/GiftCart.d.ts.map +1 -0
- package/dist/schemas/GiftCart.js +10 -0
- package/dist/schemas/GiftExpiryUnit.d.ts +4 -0
- package/dist/schemas/GiftExpiryUnit.d.ts.map +1 -0
- package/dist/schemas/GiftExpiryUnit.js +7 -0
- package/dist/schemas/GiftOffers.d.ts +3994 -0
- package/dist/schemas/GiftOffers.d.ts.map +1 -0
- package/dist/schemas/GiftOffers.js +15 -0
- package/dist/schemas/GiftsRestrictionItem.d.ts +15 -0
- package/dist/schemas/GiftsRestrictionItem.d.ts.map +1 -0
- package/dist/schemas/GiftsRestrictionItem.js +10 -0
- package/dist/schemas/GiftsRestrictions.d.ts +52 -0
- package/dist/schemas/GiftsRestrictions.d.ts.map +1 -0
- package/dist/schemas/GiftsRestrictions.js +10 -0
- package/dist/schemas/Include.d.ts +2 -31
- package/dist/schemas/Include.d.ts.map +1 -1
- package/dist/schemas/Include.js +2 -3
- package/dist/schemas/Link.d.ts +18 -0
- package/dist/schemas/Link.d.ts.map +1 -0
- package/dist/schemas/Link.js +11 -0
- package/dist/schemas/ListGiftsQueryParams.d.ts +27 -0
- package/dist/schemas/ListGiftsQueryParams.d.ts.map +1 -0
- package/dist/schemas/ListGiftsQueryParams.js +14 -0
- package/dist/schemas/ListOrdersQueryParams.d.ts +30 -0
- package/dist/schemas/ListOrdersQueryParams.d.ts.map +1 -0
- package/dist/schemas/ListOrdersQueryParams.js +15 -0
- package/dist/schemas/Nav.d.ts +24 -0
- package/dist/schemas/Nav.d.ts.map +1 -0
- package/dist/schemas/Nav.js +13 -0
- package/dist/schemas/Offer.d.ts +3 -0
- package/dist/schemas/Offer.d.ts.map +1 -1
- package/dist/schemas/Offer.js +1 -0
- package/dist/schemas/OfferCombination.d.ts +7 -0
- package/dist/schemas/OfferCombination.d.ts.map +1 -1
- package/dist/schemas/OfferComparison.d.ts +9 -2
- package/dist/schemas/OfferComparison.d.ts.map +1 -1
- package/dist/schemas/OfferDiscount.js +2 -2
- package/dist/schemas/Operator.d.ts +12 -0
- package/dist/schemas/Operator.d.ts.map +1 -0
- package/dist/schemas/Operator.js +9 -0
- package/dist/schemas/Option.d.ts +1 -1
- package/dist/schemas/Option.d.ts.map +1 -1
- package/dist/schemas/Option.js +1 -2
- package/dist/schemas/OptionPackages.d.ts +3 -93
- package/dist/schemas/OptionPackages.d.ts.map +1 -1
- package/dist/schemas/OptionRestrictions.d.ts +3 -3
- package/dist/schemas/OptionRestrictions.js +1 -1
- package/dist/schemas/Order.d.ts +5524 -208
- package/dist/schemas/Order.d.ts.map +1 -1
- package/dist/schemas/Order.js +3 -2
- package/dist/schemas/OrderCardPayments.d.ts +18 -8
- package/dist/schemas/OrderCardPayments.d.ts.map +1 -1
- package/dist/schemas/OrderCardPayments.js +2 -2
- package/dist/schemas/OrderContent.d.ts +526 -30
- package/dist/schemas/OrderContent.d.ts.map +1 -1
- package/dist/schemas/OrderGifts.d.ts +4840 -42
- package/dist/schemas/OrderGifts.d.ts.map +1 -1
- package/dist/schemas/OrderOffers.d.ts +9 -0
- package/dist/schemas/OrderOffers.d.ts.map +1 -1
- package/dist/schemas/PackageInclude.d.ts +2 -63
- package/dist/schemas/PackageInclude.d.ts.map +1 -1
- package/dist/schemas/PackageInclude.js +2 -3
- package/dist/schemas/Page.d.ts +36 -0
- package/dist/schemas/Page.d.ts.map +1 -0
- package/dist/schemas/Page.js +17 -0
- package/dist/schemas/Partner.d.ts +3 -3
- package/dist/schemas/Partner.d.ts.map +1 -1
- package/dist/schemas/Partner.js +1 -2
- package/dist/schemas/PartnersListConnection.d.ts +664 -34
- package/dist/schemas/PartnersListConnection.d.ts.map +1 -1
- package/dist/schemas/PaypalGatewayRequest.d.ts +9 -0
- package/dist/schemas/PaypalGatewayRequest.d.ts.map +1 -0
- package/dist/schemas/PaypalGatewayRequest.js +8 -0
- package/dist/schemas/Product.d.ts +1 -1
- package/dist/schemas/Product.d.ts.map +1 -1
- package/dist/schemas/Product.js +8 -1
- package/dist/schemas/ProductContent.d.ts +576 -60
- package/dist/schemas/ProductContent.d.ts.map +1 -1
- package/dist/schemas/ProductPackages.d.ts +3 -0
- package/dist/schemas/ProductPackages.d.ts.map +1 -1
- package/dist/schemas/ProductPackages.js +1 -0
- package/dist/schemas/ProductVentrataCheckoutContent.d.ts +49 -0
- package/dist/schemas/ProductVentrataCheckoutContent.d.ts.map +1 -0
- package/dist/schemas/ProductVentrataCheckoutContent.js +14 -0
- package/dist/schemas/RedemptionLookup.d.ts +16838 -0
- package/dist/schemas/RedemptionLookup.d.ts.map +1 -0
- package/dist/schemas/RedemptionLookup.js +152 -0
- package/dist/schemas/RedemptionLookupQuery.d.ts +3 -0
- package/dist/schemas/RedemptionLookupQuery.d.ts.map +1 -0
- package/dist/schemas/RedemptionLookupQuery.js +6 -0
- package/dist/schemas/RedemptionLookupQueryParams.d.ts +9 -0
- package/dist/schemas/RedemptionLookupQueryParams.d.ts.map +1 -0
- package/dist/schemas/RedemptionLookupQueryParams.js +8 -0
- package/dist/schemas/RedemptionLookupRequest.d.ts +9 -0
- package/dist/schemas/RedemptionLookupRequest.d.ts.map +1 -0
- package/dist/schemas/RedemptionLookupRequest.js +8 -0
- package/dist/schemas/StripeGateway.d.ts +4 -4
- package/dist/schemas/Supplier.d.ts +510 -24
- package/dist/schemas/Supplier.d.ts.map +1 -1
- package/dist/schemas/SupplierContent.d.ts +510 -24
- package/dist/schemas/SupplierContent.d.ts.map +1 -1
- package/dist/schemas/Terminal.d.ts +12 -0
- package/dist/schemas/Terminal.d.ts.map +1 -0
- package/dist/schemas/Terminal.js +9 -0
- package/dist/schemas/Unit.d.ts +5 -0
- package/dist/schemas/Unit.d.ts.map +1 -1
- package/dist/schemas/UnitItem.d.ts +15 -8
- package/dist/schemas/UnitItem.d.ts.map +1 -1
- package/dist/schemas/UnitItem.js +2 -2
- package/dist/schemas/UnitItemIdentifier.d.ts +2 -2
- package/dist/schemas/UnitRestrictions.d.ts +3 -0
- package/dist/schemas/UnitRestrictions.d.ts.map +1 -1
- package/dist/schemas/UnitRestrictions.js +1 -0
- package/dist/schemas/UpdateGiftBody.d.ts +154 -0
- package/dist/schemas/UpdateGiftBody.d.ts.map +1 -0
- package/dist/schemas/UpdateGiftBody.js +21 -0
- package/dist/schemas/UpdateGiftPathParams.d.ts +9 -0
- package/dist/schemas/UpdateGiftPathParams.d.ts.map +1 -0
- package/dist/schemas/UpdateGiftPathParams.js +8 -0
- package/dist/schemas/UpdateGiftRequest_id.d.ts +3 -0
- package/dist/schemas/UpdateGiftRequest_id.d.ts.map +1 -0
- package/dist/schemas/UpdateGiftRequest_id.js +6 -0
- package/dist/schemas/UpdateIdentityBody.d.ts +9 -0
- package/dist/schemas/UpdateIdentityBody.d.ts.map +1 -0
- package/dist/schemas/UpdateIdentityBody.js +8 -0
- package/dist/schemas/UpdateIdentityPathParams.d.ts +9 -0
- package/dist/schemas/UpdateIdentityPathParams.d.ts.map +1 -0
- package/dist/schemas/UpdateIdentityPathParams.js +8 -0
- package/dist/schemas/UpdateIdentityRequest_id.d.ts +3 -0
- package/dist/schemas/UpdateIdentityRequest_id.d.ts.map +1 -0
- package/dist/schemas/UpdateIdentityRequest_id.js +6 -0
- package/dist/schemas/UpdateOrderBody.d.ts +26 -0
- package/dist/schemas/UpdateOrderBody.d.ts.map +1 -1
- package/dist/schemas/UpdateOrderBody.js +3 -0
- package/dist/schemas/WhoAmI.d.ts +1602 -0
- package/dist/schemas/WhoAmI.d.ts.map +1 -0
- package/dist/schemas/WhoAmI.js +21 -0
- package/dist/schemas/WhoAmIRequest.d.ts +3 -0
- package/dist/schemas/WhoAmIRequest.d.ts.map +1 -0
- package/dist/schemas/WhoAmIRequest.js +6 -0
- package/dist/schemas/WhoIAm.d.ts +669 -39
- package/dist/schemas/WhoIAm.d.ts.map +1 -1
- package/dist/utils/generate-schemas.js +103 -33
- package/package.json +1 -1
- package/src/index.ts +140 -21
- package/src/models/Article.ts +16 -0
- package/src/models/AvailabilityCalendar.ts +4 -0
- package/src/models/AvailabilityCalendarBody.ts +1 -1
- package/src/models/AvailabilityCheckBody.ts +1 -1
- package/src/models/Booking.ts +8 -5
- package/src/models/BookingCancellationBody.ts +9 -2
- package/src/models/BookingCardPayments.ts +2 -2
- package/src/models/BookingContact.ts +4 -0
- package/src/models/BookingContentBody.ts +7 -0
- package/src/models/BookingIdenititesBody.ts +7 -0
- package/src/models/BookingMemberships.ts +2 -0
- package/src/models/BookingReservationBody.ts +3 -1
- package/src/models/BookingUpdateBody.ts +1 -0
- package/src/models/Brand.ts +3 -1
- package/src/models/BrandVentrataCheckoutContent.ts +8 -0
- package/src/models/CancelGiftBody.ts +8 -0
- package/src/models/CancelGiftPathParams.ts +7 -0
- package/src/models/CancelOrderBody.ts +1 -0
- package/src/models/{BookingCancellation.ts → Cancellation.ts} +1 -1
- package/src/models/CapabilityId.ts +3 -0
- package/src/models/CardPayment.ts +10 -32
- package/src/models/CardPaymentGateway.ts +40 -0
- package/src/models/Category.ts +7 -0
- package/src/models/CategoryVentrataCheckoutContent.ts +9 -0
- package/src/models/Checkout.ts +14 -0
- package/src/models/CheckoutConfig.ts +158 -0
- package/src/models/CheckoutConfigContent.ts +125 -0
- package/src/models/CheckoutConfigPricingDisplay.ts +8 -0
- package/src/models/CheckoutDomain.ts +8 -0
- package/src/models/CheckoutSitemapEntry.ts +15 -0
- package/src/models/CheckoutSitemapEntryRel.ts +10 -0
- package/src/models/Claim.ts +11 -0
- package/src/models/Connection.ts +18 -0
- package/src/models/CreateGiftBody.ts +22 -0
- package/src/models/CreateGiftRequest.ts +8 -0
- package/src/models/CreateIdentityBody.ts +7 -0
- package/src/models/CreateIdentityRequest.ts +8 -0
- package/src/models/CreateOrderBody.ts +16 -4
- package/src/models/CreateOrderCardPaymentsBody.ts +10 -0
- package/src/models/CreateOrderGiftsBody.ts +8 -0
- package/src/models/CreateOrderIdentitiesBody.ts +7 -0
- package/src/models/CreateOrderRequest.ts +8 -0
- package/src/models/DeleteIdentityPathParams.ts +7 -0
- package/src/models/{WhoIAmRequest.ts → DeleteIdentityRequest_id.ts} +1 -1
- package/src/models/DeliveryFormat.ts +1 -0
- package/src/models/Destination.ts +17 -0
- package/src/models/DestinationVentrataCheckoutContent.ts +19 -0
- package/src/models/{OfferTax.ts → DiscountTax.ts} +1 -1
- package/src/models/ExternalGatewayRequest.ts +8 -0
- package/src/models/{Octo_GetBookingsRequest.ts → GetBookingsQueryParams.ts} +8 -8
- package/src/models/{Octo_GetBookingsRequest_localDateEnd.ts → GetBookingsQuery_localDate.ts} +2 -2
- package/src/models/{Octo_GetBookingsRequest_productId.ts → GetBookingsQuery_localDateEnd.ts} +2 -2
- package/src/models/GetBookingsQuery_localDateStart.ts +8 -0
- package/src/models/{CreateOrderRequest_id.ts → GetBookingsQuery_optionId.ts} +2 -2
- package/src/models/{Octo_GetBookingsRequest_optionId.ts → GetBookingsQuery_productId.ts} +2 -2
- package/src/models/{Octo_GetBookingsRequest_localDate.ts → GetBookingsQuery_resellerReference.ts} +2 -2
- package/src/models/GetBookingsQuery_supplierReference.ts +8 -0
- package/src/models/GetBookingsRequest.ts +30 -2
- package/src/models/GetMappingsQueryParams.ts +23 -0
- package/src/models/{GetMappingsQueryParams_optionId.ts → GetMappingsQuery_optionId.ts} +1 -1
- package/src/models/{GetMappingsQueryParams_productId.ts → GetMappingsQuery_productId.ts} +1 -1
- package/src/models/{GetMappingsQueryParams_resellerReference.ts → GetMappingsQuery_resellerReference.ts} +1 -1
- package/src/models/{GetMappingsQueryParams_resellerStatus.ts → GetMappingsQuery_resellerStatus.ts} +1 -1
- package/src/models/GetYourGuideConnection.ts +2 -2
- package/src/models/Gift.ts +28 -4
- package/src/models/GiftCardPayments.ts +2 -2
- package/src/models/GiftCart.ts +9 -0
- package/src/models/GiftExpiryUnit.ts +9 -0
- package/src/models/GiftOffers.ts +26 -0
- package/src/models/GiftsRestrictionItem.ts +9 -0
- package/src/models/GiftsRestrictions.ts +9 -0
- package/src/models/Link.ts +10 -0
- package/src/models/ListGiftsQueryParams.ts +13 -0
- package/src/models/{ListOrdersRequest.ts → ListOrdersQueryParams.ts} +1 -1
- package/src/models/Nav.ts +12 -0
- package/src/models/Octo_CapabilityId.ts +2 -0
- package/src/models/Offer.ts +1 -0
- package/src/models/OfferDiscount.ts +2 -2
- package/src/models/Operator.ts +14 -0
- package/src/models/Option.ts +1 -1
- package/src/models/OptionRestrictions.ts +1 -1
- package/src/models/Order.ts +3 -2
- package/src/models/OrderCardPayments.ts +2 -2
- package/src/models/Page.ts +16 -0
- package/src/models/Partner.ts +1 -2
- package/src/models/PaypalGatewayRequest.ts +7 -0
- package/src/models/Product.ts +8 -0
- package/src/models/ProductPackages.ts +1 -0
- package/src/models/ProductVentrataCheckoutContent.ts +13 -0
- package/src/models/RedemptionLookup.ts +317 -0
- package/src/models/RedemptionLookupQuery.ts +5 -0
- package/src/models/RedemptionLookupQueryParams.ts +7 -0
- package/src/models/RedemptionLookupRequest.ts +7 -0
- package/src/models/Terminal.ts +14 -0
- package/src/models/UnitItem.ts +2 -2
- package/src/models/UnitRestrictions.ts +1 -0
- package/src/models/UpdateGiftBody.ts +20 -0
- package/src/models/UpdateGiftPathParams.ts +7 -0
- package/src/models/UpdateGiftRequest_id.ts +5 -0
- package/src/models/UpdateIdentityBody.ts +7 -0
- package/src/models/UpdateIdentityPathParams.ts +7 -0
- package/src/models/UpdateIdentityRequest_id.ts +5 -0
- package/src/models/UpdateOrderBody.ts +3 -0
- package/src/models/WhoAmI.ts +20 -0
- package/src/models/WhoAmIRequest.ts +5 -0
- package/src/openapi.yaml +10216 -6352
- package/src/schemas/Article.ts +15 -0
- package/src/schemas/AvailabilityCalendar.ts +4 -0
- package/src/schemas/AvailabilityCalendarBody.ts +1 -1
- package/src/schemas/AvailabilityCheckBody.ts +1 -1
- package/src/schemas/Booking.ts +8 -5
- package/src/schemas/BookingCancellationBody.ts +5 -6
- package/src/schemas/BookingCardPayments.ts +2 -2
- package/src/schemas/BookingContact.ts +4 -0
- package/src/schemas/BookingContentBody.ts +6 -0
- package/src/schemas/BookingIdenititesBody.ts +6 -0
- package/src/schemas/BookingMemberships.ts +2 -0
- package/src/schemas/BookingReservationBody.ts +3 -1
- package/src/schemas/BookingUpdateBody.ts +1 -0
- package/src/schemas/Brand.ts +3 -1
- package/src/schemas/BrandVentrataCheckoutContent.ts +7 -0
- package/src/schemas/CancelGiftBody.ts +7 -0
- package/src/schemas/CancelGiftPathParams.ts +6 -0
- package/src/schemas/CancelOrderBody.ts +1 -0
- package/src/schemas/Cancellation.ts +9 -0
- package/src/schemas/CardPayment.ts +10 -32
- package/src/schemas/CardPaymentGateway.ts +39 -0
- package/src/schemas/Category.ts +4 -0
- package/src/schemas/CategoryVentrataCheckoutContent.ts +8 -0
- package/src/schemas/Checkout.ts +7 -0
- package/src/schemas/CheckoutConfig.ts +94 -0
- package/src/schemas/CheckoutConfigContent.ts +61 -0
- package/src/schemas/CheckoutConfigPricingDisplay.ts +5 -0
- package/src/schemas/CheckoutDomain.ts +7 -0
- package/src/schemas/CheckoutSitemapEntry.ts +14 -0
- package/src/schemas/CheckoutSitemapEntryRel.ts +5 -0
- package/src/schemas/Claim.ts +10 -0
- package/src/schemas/Connection.ts +8 -0
- package/src/schemas/CreateGiftBody.ts +21 -0
- package/src/schemas/CreateGiftRequest.ts +7 -0
- package/src/schemas/CreateIdentityBody.ts +6 -0
- package/src/schemas/CreateIdentityRequest.ts +7 -0
- package/src/schemas/CreateOrderBody.ts +14 -2
- package/src/schemas/CreateOrderCardPaymentsBody.ts +9 -0
- package/src/schemas/CreateOrderGiftsBody.ts +7 -0
- package/src/schemas/CreateOrderIdentitiesBody.ts +6 -0
- package/src/schemas/CreateOrderRequest.ts +7 -0
- package/src/schemas/DeleteIdentityPathParams.ts +6 -0
- package/src/schemas/DeleteIdentityRequest_id.ts +4 -0
- package/src/schemas/Destination.ts +14 -0
- package/src/schemas/DestinationVentrataCheckoutContent.ts +18 -0
- package/src/schemas/DiscountTax.ts +9 -0
- package/src/schemas/ExternalGatewayRequest.ts +7 -0
- package/src/schemas/GetBookingsQueryParams.ts +12 -0
- package/src/schemas/GetBookingsQuery_localDate.ts +4 -0
- package/src/schemas/GetBookingsQuery_localDateEnd.ts +4 -0
- package/src/schemas/GetBookingsQuery_localDateStart.ts +4 -0
- package/src/schemas/GetBookingsQuery_optionId.ts +4 -0
- package/src/schemas/GetBookingsQuery_productId.ts +4 -0
- package/src/schemas/GetBookingsQuery_resellerReference.ts +4 -0
- package/src/schemas/GetBookingsQuery_supplierReference.ts +4 -0
- package/src/schemas/GetBookingsRequest.ts +10 -2
- package/src/schemas/GetMappingsQueryParams.ts +10 -0
- package/src/schemas/GetMappingsQuery_optionId.ts +4 -0
- package/src/schemas/GetMappingsQuery_productId.ts +4 -0
- package/src/schemas/GetMappingsQuery_resellerReference.ts +4 -0
- package/src/schemas/GetMappingsQuery_resellerStatus.ts +4 -0
- package/src/schemas/GetYourGuideConnection.ts +2 -2
- package/src/schemas/Gift.ts +16 -4
- package/src/schemas/GiftCardPayments.ts +2 -2
- package/src/schemas/GiftCart.ts +8 -0
- package/src/schemas/GiftExpiryUnit.ts +5 -0
- package/src/schemas/GiftOffers.ts +13 -0
- package/src/schemas/GiftsRestrictionItem.ts +8 -0
- package/src/schemas/GiftsRestrictions.ts +8 -0
- package/src/schemas/Include.ts +14 -11
- package/src/schemas/Link.ts +9 -0
- package/src/schemas/ListGiftsQueryParams.ts +12 -0
- package/src/schemas/ListOrdersQueryParams.ts +13 -0
- package/src/schemas/Nav.ts +11 -0
- package/src/schemas/Offer.ts +1 -0
- package/src/schemas/OfferDiscount.ts +2 -2
- package/src/schemas/Operator.ts +7 -0
- package/src/schemas/Option.ts +2 -2
- package/src/schemas/OptionRestrictions.ts +1 -1
- package/src/schemas/Order.ts +3 -2
- package/src/schemas/OrderCardPayments.ts +2 -2
- package/src/schemas/PackageInclude.ts +8 -5
- package/src/schemas/Page.ts +15 -0
- package/src/schemas/Partner.ts +1 -2
- package/src/schemas/PaypalGatewayRequest.ts +6 -0
- package/src/schemas/Product.ts +9 -1
- package/src/schemas/ProductPackages.ts +1 -0
- package/src/schemas/ProductVentrataCheckoutContent.ts +12 -0
- package/src/schemas/RedemptionLookup.ts +150 -0
- package/src/schemas/RedemptionLookupQuery.ts +4 -0
- package/src/schemas/RedemptionLookupQueryParams.ts +6 -0
- package/src/schemas/RedemptionLookupRequest.ts +6 -0
- package/src/schemas/Terminal.ts +7 -0
- package/src/schemas/UnitItem.ts +2 -2
- package/src/schemas/UnitRestrictions.ts +1 -0
- package/src/schemas/UpdateGiftBody.ts +19 -0
- package/src/schemas/UpdateGiftPathParams.ts +6 -0
- package/src/schemas/UpdateGiftRequest_id.ts +4 -0
- package/src/schemas/UpdateIdentityBody.ts +6 -0
- package/src/schemas/UpdateIdentityPathParams.ts +6 -0
- package/src/schemas/UpdateIdentityRequest_id.ts +4 -0
- package/src/schemas/UpdateOrderBody.ts +3 -0
- package/src/schemas/WhoAmI.ts +19 -0
- package/src/schemas/WhoAmIRequest.ts +4 -0
- package/src/utils/generate-schemas.ts +126 -36
- package/dist/models/BookingCancellation.d.ts.map +0 -1
- package/dist/models/CreateOrderRequest_id.d.ts +0 -5
- package/dist/models/CreateOrderRequest_id.d.ts.map +0 -1
- package/dist/models/GetMappingsQueryParams_optionId.d.ts +0 -5
- package/dist/models/GetMappingsQueryParams_optionId.d.ts.map +0 -1
- package/dist/models/GetMappingsQueryParams_productId.d.ts +0 -5
- package/dist/models/GetMappingsQueryParams_productId.d.ts.map +0 -1
- package/dist/models/GetMappingsQueryParams_resellerReference.d.ts +0 -5
- package/dist/models/GetMappingsQueryParams_resellerReference.d.ts.map +0 -1
- package/dist/models/GetMappingsQueryParams_resellerStatus.d.ts +0 -6
- package/dist/models/GetMappingsQueryParams_resellerStatus.d.ts.map +0 -1
- package/dist/models/ListOrdersRequest.d.ts.map +0 -1
- package/dist/models/Octo_BookingCancellationBody.d.ts +0 -11
- package/dist/models/Octo_BookingCancellationBody.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest.d.ts +0 -31
- package/dist/models/Octo_GetBookingsRequest.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest_localDate.d.ts +0 -5
- package/dist/models/Octo_GetBookingsRequest_localDate.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest_localDateEnd.d.ts +0 -5
- package/dist/models/Octo_GetBookingsRequest_localDateEnd.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest_localDateStart.d.ts +0 -5
- package/dist/models/Octo_GetBookingsRequest_localDateStart.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest_optionId.d.ts +0 -5
- package/dist/models/Octo_GetBookingsRequest_optionId.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest_productId.d.ts +0 -5
- package/dist/models/Octo_GetBookingsRequest_productId.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest_resellerReference.d.ts +0 -5
- package/dist/models/Octo_GetBookingsRequest_resellerReference.d.ts.map +0 -1
- package/dist/models/Octo_GetBookingsRequest_supplierReference.d.ts +0 -5
- package/dist/models/Octo_GetBookingsRequest_supplierReference.d.ts.map +0 -1
- package/dist/models/OfferTax.d.ts.map +0 -1
- package/dist/models/WhoIAm.d.ts +0 -15
- package/dist/models/WhoIAm.d.ts.map +0 -1
- package/dist/models/WhoIAmRequest.d.ts +0 -2
- package/dist/models/WhoIAmRequest.d.ts.map +0 -1
- package/src/models/Octo_BookingCancellationBody.ts +0 -14
- package/src/models/Octo_GetBookingsRequest_localDateStart.ts +0 -8
- package/src/models/Octo_GetBookingsRequest_resellerReference.ts +0 -8
- package/src/models/Octo_GetBookingsRequest_supplierReference.ts +0 -8
- package/src/models/WhoIAm.ts +0 -18
- /package/dist/models/{BookingCancellation.js → Article.js} +0 -0
- /package/dist/models/{CreateOrderRequest_id.js → BookingContentBody.js} +0 -0
- /package/dist/models/{GetMappingsQueryParams_optionId.js → BookingIdenititesBody.js} +0 -0
- /package/dist/models/{GetMappingsQueryParams_productId.js → BrandVentrataCheckoutContent.js} +0 -0
- /package/dist/models/{GetMappingsQueryParams_resellerReference.js → CancelGiftBody.js} +0 -0
- /package/dist/models/{GetMappingsQueryParams_resellerStatus.js → CancelGiftPathParams.js} +0 -0
- /package/dist/models/{ListOrdersRequest.js → Cancellation.js} +0 -0
- /package/dist/models/{Octo_BookingCancellationBody.js → CardPaymentGateway.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest.js → CategoryVentrataCheckoutContent.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest_localDate.js → Checkout.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest_localDateEnd.js → CheckoutConfig.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest_localDateStart.js → CheckoutConfigContent.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest_optionId.js → CheckoutDomain.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest_productId.js → CheckoutSitemapEntry.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest_resellerReference.js → Claim.js} +0 -0
- /package/dist/models/{Octo_GetBookingsRequest_supplierReference.js → Connection.js} +0 -0
- /package/dist/models/{OfferTax.js → CreateGiftBody.js} +0 -0
- /package/dist/models/{WhoIAm.js → CreateGiftRequest.js} +0 -0
- /package/dist/models/{WhoIAmRequest.js → CreateIdentityBody.js} +0 -0
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// Generated by ts-to-zod
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { bookingStatusSchema } from './BookingStatus';
|
|
4
|
+
import { productSchema } from './Product';
|
|
5
|
+
import { optionSchema } from './Option';
|
|
6
|
+
import { cancellationSchema } from './Cancellation';
|
|
7
|
+
import { availabilitySchema } from './Availability';
|
|
8
|
+
import { customerContactSchema } from './CustomerContact';
|
|
9
|
+
import { deliveryMethodSchema } from './DeliveryMethod';
|
|
10
|
+
import { ticketSchema } from './Ticket';
|
|
11
|
+
import { unitItemSchema } from './UnitItem';
|
|
12
|
+
import { pricingSchema } from './Pricing';
|
|
13
|
+
import { settlementMethodSchema } from './SettlementMethod';
|
|
14
|
+
import { agentSchema } from './Agent';
|
|
15
|
+
import { resellerSchema } from './Reseller';
|
|
16
|
+
import { contactFieldSchema } from './ContactField';
|
|
17
|
+
import { bookingRejectionSchema } from './BookingRejection';
|
|
18
|
+
import { userSchema } from './User';
|
|
19
|
+
import { sellerSchema } from './Seller';
|
|
20
|
+
import { labelSchema } from './Label';
|
|
21
|
+
import { pickupPointSchema } from './PickupPoint';
|
|
22
|
+
import { durationUnitSchema } from './DurationUnit';
|
|
23
|
+
import { noticeSchema } from './Notice';
|
|
24
|
+
import { offerComparisonSchema } from './OfferComparison';
|
|
25
|
+
import { offerSchema } from './Offer';
|
|
26
|
+
import { questionAnswerSchema } from './QuestionAnswer';
|
|
27
|
+
import { resourceAllocationSchema } from './ResourceAllocation';
|
|
28
|
+
import { giftPaymentSchema } from './GiftPayment';
|
|
29
|
+
import { extraItemSchema } from './ExtraItem';
|
|
30
|
+
import { extraPricingSchema } from './ExtraPricing';
|
|
31
|
+
import { includeSchema } from './Include';
|
|
32
|
+
import { bookingSchema } from './Booking';
|
|
33
|
+
import { bookingAdjustmentSchema } from './BookingAdjustment';
|
|
34
|
+
import { identitySchema } from './Identity';
|
|
35
|
+
import { membershipBenefitSchema } from './MembershipBenefit';
|
|
36
|
+
import { membershipSchema } from './Membership';
|
|
37
|
+
import { rentalDurationSchema } from './RentalDuration';
|
|
38
|
+
import { cardPaymentGatewaySchema } from './CardPaymentGateway';
|
|
39
|
+
|
|
40
|
+
export const redemptionLookupSchema = z.object({
|
|
41
|
+
redemptionCode: z.string(),
|
|
42
|
+
redeemable: z.boolean(),
|
|
43
|
+
unredeemableReason: z.string(),
|
|
44
|
+
unredeemableReasonCode: z.string(),
|
|
45
|
+
id: z.string(),
|
|
46
|
+
uuid: z.string(),
|
|
47
|
+
testMode: z.boolean(),
|
|
48
|
+
resellerReference: z.string().nullable(),
|
|
49
|
+
supplierReference: z.string().nullable(),
|
|
50
|
+
status: bookingStatusSchema,
|
|
51
|
+
utcCreatedAt: z.string(),
|
|
52
|
+
utcUpdatedAt: z.string(),
|
|
53
|
+
utcExpiresAt: z.string().nullable(),
|
|
54
|
+
utcRedeemedAt: z.string().nullable(),
|
|
55
|
+
utcConfirmedAt: z.string().nullable(),
|
|
56
|
+
productId: z.string(),
|
|
57
|
+
product: productSchema.optional(),
|
|
58
|
+
optionId: z.string(),
|
|
59
|
+
option: optionSchema,
|
|
60
|
+
cancellable: z.boolean(),
|
|
61
|
+
cancellation: cancellationSchema.nullable(),
|
|
62
|
+
freesale: z.boolean(),
|
|
63
|
+
availabilityId: z.string().nullable(),
|
|
64
|
+
availability: availabilitySchema.optional().nullable(),
|
|
65
|
+
contact: customerContactSchema.optional(),
|
|
66
|
+
notes: z.string().nullable(),
|
|
67
|
+
deliveryMethods: z.array(deliveryMethodSchema),
|
|
68
|
+
voucher: ticketSchema.nullable(),
|
|
69
|
+
unitItems: z.array(unitItemSchema),
|
|
70
|
+
pricing: pricingSchema.optional(),
|
|
71
|
+
rebookingUuid: z.string().nullable(),
|
|
72
|
+
originalRebookingUuid: z.string().nullable(),
|
|
73
|
+
alias: z.string().nullable(),
|
|
74
|
+
settlementMethod: settlementMethodSchema,
|
|
75
|
+
quote: z.boolean(),
|
|
76
|
+
confirmable: z.boolean(),
|
|
77
|
+
agent: agentSchema.nullable(),
|
|
78
|
+
reseller: resellerSchema.nullable(),
|
|
79
|
+
requiredContactFields: z.array(contactFieldSchema),
|
|
80
|
+
visibleContactFields: z.array(contactFieldSchema),
|
|
81
|
+
rejection: bookingRejectionSchema.nullable(),
|
|
82
|
+
utcNoshowedAt: z.string().nullable(),
|
|
83
|
+
utcRebookedAt: z.string().nullable(),
|
|
84
|
+
tags: z.array(z.string()).optional(),
|
|
85
|
+
user: userSchema.nullable(),
|
|
86
|
+
seller: sellerSchema.nullable(),
|
|
87
|
+
localDateTimeStart: z.string(),
|
|
88
|
+
localDateTimeEnd: z.string(),
|
|
89
|
+
emailReceipt: z.boolean(),
|
|
90
|
+
label: labelSchema.nullable(),
|
|
91
|
+
metadata: z.record(z.any()),
|
|
92
|
+
updatable: z.boolean(),
|
|
93
|
+
availabilityLocalDateStart: z.string().nullable(),
|
|
94
|
+
availabilityLocalDateEnd: z.string().nullable(),
|
|
95
|
+
guide: sellerSchema.nullable(),
|
|
96
|
+
driver: sellerSchema.nullable(),
|
|
97
|
+
active: z.boolean(),
|
|
98
|
+
pickupRequested: z.boolean().optional(),
|
|
99
|
+
pickupHotel: z.string().optional().nullable(),
|
|
100
|
+
pickupRoom: z.string().optional().nullable(),
|
|
101
|
+
pickupNotes: z.string().optional().nullable(),
|
|
102
|
+
pickupPoint: pickupPointSchema.optional().nullable(),
|
|
103
|
+
pickupPointId: z.string().optional().nullable(),
|
|
104
|
+
pickupHotelRoom: z.string().optional().nullable(),
|
|
105
|
+
pickupDispatch: z.string().optional().nullable(),
|
|
106
|
+
dropoffDispatch: z.string().optional().nullable(),
|
|
107
|
+
duration: z.string().optional(),
|
|
108
|
+
durationAmount: z.number().optional(),
|
|
109
|
+
durationUnit: durationUnitSchema.optional(),
|
|
110
|
+
meetingLocalDateTime: z.string().optional().nullable(),
|
|
111
|
+
meetingPoint: z.string().optional().nullable(),
|
|
112
|
+
meetingPointCoordinates: z.string().optional().nullable(),
|
|
113
|
+
meetingPointDirections: z.string().optional().nullable(),
|
|
114
|
+
notices: z.array(noticeSchema).optional(),
|
|
115
|
+
termsAccepted: z.boolean().optional(),
|
|
116
|
+
primary: z.boolean().optional(),
|
|
117
|
+
orderId: z.string().optional(),
|
|
118
|
+
orderReference: z.string().optional(),
|
|
119
|
+
offerCode: z.string().optional().nullable(),
|
|
120
|
+
offerTitle: z.string().optional().nullable(),
|
|
121
|
+
offerComparisons: z.array(offerComparisonSchema).optional(),
|
|
122
|
+
offerIsCombination: z.boolean().optional(),
|
|
123
|
+
offers: z.array(offerSchema).optional(),
|
|
124
|
+
offer: offerSchema.optional().nullable(),
|
|
125
|
+
questionAnswers: z.array(questionAnswerSchema).optional(),
|
|
126
|
+
resourceAllocations: z.array(resourceAllocationSchema).optional(),
|
|
127
|
+
giftPayment: giftPaymentSchema.optional().nullable(),
|
|
128
|
+
extraItems: z.array(extraItemSchema).optional(),
|
|
129
|
+
extraPricing: z.array(extraPricingSchema).optional(),
|
|
130
|
+
isPackage: z.boolean().optional(),
|
|
131
|
+
packageIncludeId: z.string().optional().nullable(),
|
|
132
|
+
packageInclude: includeSchema.optional().nullable(),
|
|
133
|
+
packageBookings: z.array(bookingSchema).optional(),
|
|
134
|
+
packageUnitItemUuid: z.any().optional(),
|
|
135
|
+
adjustments: z.array(bookingAdjustmentSchema).optional(),
|
|
136
|
+
identity: identitySchema.optional(),
|
|
137
|
+
identityId: z.string().optional(),
|
|
138
|
+
checkedIn: z.boolean().optional(),
|
|
139
|
+
checkinAvailable: z.boolean().optional(),
|
|
140
|
+
checkinUrl: z.string().optional().nullable(),
|
|
141
|
+
membershipBenefit: membershipBenefitSchema.optional().nullable(),
|
|
142
|
+
membership: membershipSchema.optional().nullable(),
|
|
143
|
+
isMembership: z.boolean().optional(),
|
|
144
|
+
appendMembershipValidity: z.boolean().optional(),
|
|
145
|
+
isRental: z.boolean().optional(),
|
|
146
|
+
rentalDurationId: z.string().optional().nullable(),
|
|
147
|
+
rentalDuration: rentalDurationSchema.optional().nullable(),
|
|
148
|
+
cardPayment: cardPaymentGatewaySchema.optional().nullable(),
|
|
149
|
+
returnUrl: z.string().optional().nullable(),
|
|
150
|
+
});
|
package/src/schemas/UnitItem.ts
CHANGED
|
@@ -28,8 +28,8 @@ export const unitItemSchema = z.object({
|
|
|
28
28
|
originalRebookingUnitItemUuid: z.string().nullable(),
|
|
29
29
|
utcRebookedAt: z.string().nullable(),
|
|
30
30
|
utcNoshowedAt: z.string().nullable(),
|
|
31
|
-
requiredContactFields: z.array(z.string())
|
|
32
|
-
visibleContactFields: z.array(z.string())
|
|
31
|
+
requiredContactFields: z.array(z.string()),
|
|
32
|
+
visibleContactFields: z.array(z.string()),
|
|
33
33
|
unitType: unitTypeSchema,
|
|
34
34
|
localDateTimeStart: z.string().nullable(),
|
|
35
35
|
localDateTimeEnd: z.string().nullable(),
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Generated by ts-to-zod
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { customerContactSchema } from './CustomerContact';
|
|
4
|
+
import { giftPaymentSchema } from './GiftPayment';
|
|
5
|
+
import { settlementMethodSchema } from './SettlementMethod';
|
|
6
|
+
|
|
7
|
+
export const updateGiftBodySchema = z.object({
|
|
8
|
+
alias: z.string().optional(),
|
|
9
|
+
amount: z.number().optional(),
|
|
10
|
+
contact: customerContactSchema.optional(),
|
|
11
|
+
currency: z.string().optional(),
|
|
12
|
+
emailReceipt: z.boolean().optional(),
|
|
13
|
+
expirationMinutes: z.number().optional(),
|
|
14
|
+
giftPayment: giftPaymentSchema.optional(),
|
|
15
|
+
message: z.string().optional(),
|
|
16
|
+
notes: z.string().optional(),
|
|
17
|
+
resellerReference: z.string().optional(),
|
|
18
|
+
settlementMethod: settlementMethodSchema.optional(),
|
|
19
|
+
});
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
// Generated by ts-to-zod
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
import { bookingContactSchema } from './BookingContact';
|
|
4
|
+
import { settlementMethodSchema } from './SettlementMethod';
|
|
4
5
|
|
|
5
6
|
export const updateOrderBodySchema = z.object({
|
|
6
7
|
expirationMinutes: z.number().optional(),
|
|
7
8
|
emailReceipt: z.boolean().optional(),
|
|
8
9
|
contact: bookingContactSchema.optional(),
|
|
10
|
+
quote: z.boolean().optional(),
|
|
11
|
+
settlementMethod: settlementMethodSchema.optional(),
|
|
9
12
|
currency: z.string().optional(),
|
|
10
13
|
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Generated by ts-to-zod
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { supplierSchema } from './Supplier';
|
|
4
|
+
import { connectionSchema } from './Connection';
|
|
5
|
+
import { partnerSchema } from './Partner';
|
|
6
|
+
import { resellerSchema } from './Reseller';
|
|
7
|
+
import { checkoutSchema } from './Checkout';
|
|
8
|
+
import { operatorSchema } from './Operator';
|
|
9
|
+
import { terminalSchema } from './Terminal';
|
|
10
|
+
|
|
11
|
+
export const whoAmISchema = z.object({
|
|
12
|
+
supplier: supplierSchema,
|
|
13
|
+
connection: connectionSchema,
|
|
14
|
+
partner: partnerSchema.nullable(),
|
|
15
|
+
reseller: resellerSchema.nullable(),
|
|
16
|
+
checkout: checkoutSchema.nullable(),
|
|
17
|
+
operator: operatorSchema.nullable(),
|
|
18
|
+
terminal: terminalSchema.nullable(),
|
|
19
|
+
});
|
|
@@ -222,13 +222,22 @@ function toPascalCase(name: string): string {
|
|
|
222
222
|
async function fixCircularDependencies(schemasDir: string): Promise<void> {
|
|
223
223
|
const schemaFiles = glob.sync('**/*.ts', { cwd: schemasDir });
|
|
224
224
|
const dependencyGraph = new Map<string, Set<string>>();
|
|
225
|
-
const schemaContents = new Map<
|
|
225
|
+
const schemaContents = new Map<
|
|
226
|
+
string,
|
|
227
|
+
{
|
|
228
|
+
content: string;
|
|
229
|
+
relativePath: string;
|
|
230
|
+
}
|
|
231
|
+
>();
|
|
226
232
|
|
|
227
233
|
for (const schemaFile of schemaFiles) {
|
|
228
234
|
const baseName = path.basename(schemaFile, '.ts');
|
|
229
235
|
const schemaFilePath = path.join(schemasDir, schemaFile);
|
|
230
236
|
const content = await promises.readFile(schemaFilePath, 'utf-8');
|
|
231
|
-
schemaContents.set(baseName,
|
|
237
|
+
schemaContents.set(baseName, {
|
|
238
|
+
content,
|
|
239
|
+
relativePath: schemaFile,
|
|
240
|
+
});
|
|
232
241
|
|
|
233
242
|
const dependencies = new Set<string>();
|
|
234
243
|
const importRegex = /import\s+\{[^}]*\}\s+from\s+['"]([^'"]+)['"]/g;
|
|
@@ -247,25 +256,28 @@ async function fixCircularDependencies(schemasDir: string): Promise<void> {
|
|
|
247
256
|
}
|
|
248
257
|
|
|
249
258
|
const visited = new Set<string>();
|
|
250
|
-
const recursionStack =
|
|
259
|
+
const recursionStack: string[] = [];
|
|
251
260
|
const circularSchemas = new Set<string>();
|
|
252
261
|
|
|
253
262
|
function detectCycles(node: string): void {
|
|
254
|
-
|
|
255
|
-
|
|
263
|
+
const existingIndex = recursionStack.indexOf(node);
|
|
264
|
+
if (existingIndex !== -1) {
|
|
265
|
+
for (const schema of recursionStack.slice(existingIndex)) {
|
|
266
|
+
circularSchemas.add(schema);
|
|
267
|
+
}
|
|
256
268
|
return;
|
|
257
269
|
}
|
|
258
270
|
if (visited.has(node)) return;
|
|
259
271
|
|
|
260
272
|
visited.add(node);
|
|
261
|
-
recursionStack.
|
|
273
|
+
recursionStack.push(node);
|
|
262
274
|
|
|
263
275
|
const dependencies = dependencyGraph.get(node) || new Set();
|
|
264
276
|
for (const dep of dependencies) {
|
|
265
277
|
detectCycles(dep);
|
|
266
278
|
}
|
|
267
279
|
|
|
268
|
-
recursionStack.
|
|
280
|
+
recursionStack.pop();
|
|
269
281
|
}
|
|
270
282
|
|
|
271
283
|
for (const schema of dependencyGraph.keys()) {
|
|
@@ -275,47 +287,125 @@ async function fixCircularDependencies(schemasDir: string): Promise<void> {
|
|
|
275
287
|
}
|
|
276
288
|
|
|
277
289
|
for (const schemaName of circularSchemas) {
|
|
278
|
-
const
|
|
279
|
-
if (!
|
|
290
|
+
const metadata = schemaContents.get(schemaName);
|
|
291
|
+
if (!metadata) continue;
|
|
292
|
+
const { content, relativePath } = metadata;
|
|
280
293
|
|
|
281
|
-
const
|
|
282
|
-
|
|
283
|
-
if (!match) continue;
|
|
294
|
+
const exportMatches = Array.from(content.matchAll(/export\s+const\s+(\w+Schema)\s*=/g));
|
|
295
|
+
if (exportMatches.length === 0) continue;
|
|
284
296
|
|
|
285
|
-
const schemaVarName = match[1];
|
|
286
|
-
const typeName = toPascalCase(schemaName);
|
|
287
|
-
|
|
288
|
-
const importTypeLine = `import { type ${typeName} } from "../models/${typeName}";`;
|
|
289
297
|
let updatedContent = content;
|
|
298
|
+
const seenImports = new Set<string>();
|
|
290
299
|
|
|
291
|
-
|
|
292
|
-
const
|
|
293
|
-
const
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
}
|
|
300
|
+
for (const match of exportMatches) {
|
|
301
|
+
const schemaVarName = match[1];
|
|
302
|
+
const baseTypeName = schemaVarName.replace(/Schema$/, '');
|
|
303
|
+
const typeName = toPascalCase(baseTypeName);
|
|
304
|
+
const importTypeLine = getTypeImportLine(relativePath, typeName, schemasDir);
|
|
297
305
|
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
const exportStart = updatedContent.indexOf(`export const ${schemaVarName}`);
|
|
302
|
-
if (exportStart !== -1) {
|
|
303
|
-
const afterStart = updatedContent.slice(exportStart);
|
|
304
|
-
const closeIdx = afterStart.indexOf('});');
|
|
305
|
-
if (closeIdx !== -1) {
|
|
306
|
-
updatedContent =
|
|
307
|
-
updatedContent.slice(0, exportStart) +
|
|
308
|
-
afterStart.slice(0, closeIdx) +
|
|
309
|
-
'}));' +
|
|
310
|
-
afterStart.slice(closeIdx + 3);
|
|
306
|
+
if (!seenImports.has(importTypeLine)) {
|
|
307
|
+
updatedContent = ensureTypeImport(updatedContent, importTypeLine);
|
|
308
|
+
seenImports.add(importTypeLine);
|
|
311
309
|
}
|
|
310
|
+
|
|
311
|
+
updatedContent = ensureSchemaIsLazy(updatedContent, schemaVarName, typeName);
|
|
312
312
|
}
|
|
313
313
|
|
|
314
|
-
const schemaFilePath = path.join(schemasDir,
|
|
314
|
+
const schemaFilePath = path.join(schemasDir, relativePath);
|
|
315
315
|
await promises.writeFile(schemaFilePath, updatedContent);
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
318
|
|
|
319
|
+
function ensureTypeImport(content: string, importLine: string): string {
|
|
320
|
+
if (content.includes(importLine)) {
|
|
321
|
+
return content;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
const lines = content.split('\n');
|
|
325
|
+
const trimmedImport = importLine.trimEnd();
|
|
326
|
+
const firstImportIndex = lines.findIndex((line) => line.startsWith('import '));
|
|
327
|
+
|
|
328
|
+
if (firstImportIndex !== -1) {
|
|
329
|
+
lines.splice(firstImportIndex, 0, trimmedImport);
|
|
330
|
+
} else {
|
|
331
|
+
let insertAt = 0;
|
|
332
|
+
while (insertAt < lines.length && lines[insertAt].startsWith('//')) {
|
|
333
|
+
insertAt += 1;
|
|
334
|
+
}
|
|
335
|
+
lines.splice(insertAt, 0, trimmedImport);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
return lines.join('\n');
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
function ensureSchemaIsLazy(content: string, schemaVarName: string, typeName: string): string {
|
|
342
|
+
const exportRegex = new RegExp(`export\\s+const\\s+${schemaVarName}\\s*[:=]`);
|
|
343
|
+
if (!exportRegex.test(content)) {
|
|
344
|
+
return content;
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
let updatedContent = content;
|
|
348
|
+
const annotationRegex = new RegExp(`export\\s+const\\s+${schemaVarName}\\s*:\\s*z\\.ZodSchema<${typeName}>\\s*=`);
|
|
349
|
+
if (!annotationRegex.test(updatedContent)) {
|
|
350
|
+
const assignmentRegex = new RegExp(`export\\s+const\\s+${schemaVarName}\\s*=\\s*`);
|
|
351
|
+
updatedContent = updatedContent.replace(
|
|
352
|
+
assignmentRegex,
|
|
353
|
+
`export const ${schemaVarName}: z.ZodSchema<${typeName}> = `,
|
|
354
|
+
);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const exportIndex = updatedContent.indexOf(`export const ${schemaVarName}`);
|
|
358
|
+
if (exportIndex === -1) return updatedContent;
|
|
359
|
+
|
|
360
|
+
const equalsIndex = updatedContent.indexOf('=', exportIndex);
|
|
361
|
+
if (equalsIndex === -1) return updatedContent;
|
|
362
|
+
|
|
363
|
+
const semicolonIndex = findExpressionEnd(updatedContent, equalsIndex + 1);
|
|
364
|
+
if (semicolonIndex === -1) return updatedContent;
|
|
365
|
+
|
|
366
|
+
const expression = updatedContent.slice(equalsIndex + 1, semicolonIndex);
|
|
367
|
+
const trimmedExpression = expression.trimStart();
|
|
368
|
+
|
|
369
|
+
if (trimmedExpression.startsWith('z.lazy')) {
|
|
370
|
+
return updatedContent;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
const leadingWhitespace = expression.slice(0, expression.length - trimmedExpression.length);
|
|
374
|
+
const wrappedExpression = `${leadingWhitespace}z.lazy(() => ${trimmedExpression})`;
|
|
375
|
+
|
|
376
|
+
return updatedContent.slice(0, equalsIndex + 1) + wrappedExpression + updatedContent.slice(semicolonIndex);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
function getTypeImportLine(relativeSchemaPath: string, typeName: string, schemasDir: string): string {
|
|
380
|
+
const schemaFileDir = path.dirname(path.join(schemasDir, relativeSchemaPath));
|
|
381
|
+
const modelsDir = path.join(process.cwd(), CONFIG.relativePaths.models);
|
|
382
|
+
const targetTypePath = path.join(modelsDir, typeName);
|
|
383
|
+
let importPath = path.relative(schemaFileDir, targetTypePath);
|
|
384
|
+
|
|
385
|
+
if (!importPath.startsWith('.')) {
|
|
386
|
+
importPath = `./${importPath}`;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
importPath = importPath.split(path.sep).join('/');
|
|
390
|
+
|
|
391
|
+
return `import { type ${typeName} } from '${importPath}';`;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
function findExpressionEnd(content: string, startIndex: number): number {
|
|
395
|
+
let depth = 0;
|
|
396
|
+
for (let idx = startIndex; idx < content.length; idx++) {
|
|
397
|
+
const char = content[idx];
|
|
398
|
+
if (char === '(' || char === '{' || char === '[') {
|
|
399
|
+
depth += 1;
|
|
400
|
+
} else if (char === ')' || char === '}' || char === ']') {
|
|
401
|
+
depth = Math.max(depth - 1, 0);
|
|
402
|
+
} else if (char === ';' && depth === 0) {
|
|
403
|
+
return idx;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
return -1;
|
|
407
|
+
}
|
|
408
|
+
|
|
319
409
|
async function updateIndexFileWithSchemas(schemasDir: string): Promise<void> {
|
|
320
410
|
try {
|
|
321
411
|
const projectRoot = process.cwd();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BookingCancellation.d.ts","sourceRoot":"","sources":["../../src/models/BookingCancellation.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,MAAM,MAAM,mBAAmB,GAAG;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CreateOrderRequest_id.d.ts","sourceRoot":"","sources":["../../src/models/CreateOrderRequest_id.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMappingsQueryParams_optionId.d.ts","sourceRoot":"","sources":["../../src/models/GetMappingsQueryParams_optionId.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMappingsQueryParams_productId.d.ts","sourceRoot":"","sources":["../../src/models/GetMappingsQueryParams_productId.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMappingsQueryParams_resellerReference.d.ts","sourceRoot":"","sources":["../../src/models/GetMappingsQueryParams_resellerReference.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,wCAAwC,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetMappingsQueryParams_resellerStatus.d.ts","sourceRoot":"","sources":["../../src/models/GetMappingsQueryParams_resellerStatus.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AACvD;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,cAAc,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListOrdersRequest.d.ts","sourceRoot":"","sources":["../../src/models/ListOrdersRequest.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,iBAAiB,GAAG;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type Octo_BookingCancellationBody = {
|
|
2
|
-
/**
|
|
3
|
-
* A text value describing why the cancellation happened.
|
|
4
|
-
*/
|
|
5
|
-
reason?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Whether you want OCTO Cloud to email the guest a copy of their receipt and tickets. (defaults to false)
|
|
8
|
-
*/
|
|
9
|
-
force?: boolean;
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=Octo_BookingCancellationBody.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Octo_BookingCancellationBody.d.ts","sourceRoot":"","sources":["../../src/models/Octo_BookingCancellationBody.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,4BAA4B,GAAG;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export type Octo_GetBookingsRequest = {
|
|
2
|
-
/**
|
|
3
|
-
* The reseller reference on the booking
|
|
4
|
-
*/
|
|
5
|
-
resellerReference?: string;
|
|
6
|
-
/**
|
|
7
|
-
* The reference provided by the supplier
|
|
8
|
-
*/
|
|
9
|
-
supplierReference?: string;
|
|
10
|
-
/**
|
|
11
|
-
* All bookings made for a specific date
|
|
12
|
-
*/
|
|
13
|
-
localDate?: string;
|
|
14
|
-
/**
|
|
15
|
-
* First date of a date range search
|
|
16
|
-
*/
|
|
17
|
-
localDateStart?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Last date of a date range search
|
|
20
|
-
*/
|
|
21
|
-
localDateEnd?: string;
|
|
22
|
-
/**
|
|
23
|
-
* The product id to filter by
|
|
24
|
-
*/
|
|
25
|
-
productId?: string;
|
|
26
|
-
/**
|
|
27
|
-
* The option id to filter by
|
|
28
|
-
*/
|
|
29
|
-
optionId?: string;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=Octo_GetBookingsRequest.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Octo_GetBookingsRequest.d.ts","sourceRoot":"","sources":["../../src/models/Octo_GetBookingsRequest.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,uBAAuB,GAAG;IACrC;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Octo_GetBookingsRequest_localDate.d.ts","sourceRoot":"","sources":["../../src/models/Octo_GetBookingsRequest_localDate.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Octo_GetBookingsRequest_localDateEnd.d.ts","sourceRoot":"","sources":["../../src/models/Octo_GetBookingsRequest_localDateEnd.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,MAAM,CAAC"}
|