@v-office/website-sdk 2.12.0 → 2.13.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.
@@ -0,0 +1,2 @@
1
+ import { BackendKind, SearchPeriodQueryKey, getSupportedPeriodQueryKeys, supportsFlexiblePeriodSearch } from "@v-office/sdk-core/capabilities/search";
2
+ export { type BackendKind, type SearchPeriodQueryKey, getSupportedPeriodQueryKeys, supportsFlexiblePeriodSearch };
@@ -0,0 +1,2 @@
1
+ import { getSupportedPeriodQueryKeys, supportsFlexiblePeriodSearch } from "@v-office/sdk-core/capabilities/search";
2
+ export { getSupportedPeriodQueryKeys, supportsFlexiblePeriodSearch };
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as createWebsiteSDK, zt as defineWebsiteSDKOptions } from "./client-Bmxh2SAu.mjs";
2
+ import { t as createWebsiteSDK, zt as defineWebsiteSDKOptions } from "./client-Ma0daa2H.mjs";
3
3
  import { SearchSearchSortSchema, defineCustomAttributesFromUnknown } from "@v-office/sdk-core";
4
4
  import { Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
5
5
  import { Command, Flag } from "effect/unstable/cli";
@@ -16,7 +16,7 @@ var CLICheckFailed = class extends Error {
16
16
  const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
17
17
  //#endregion
18
18
  //#region package.json
19
- var version = "2.12.0";
19
+ var version = "2.13.0";
20
20
  //#endregion
21
21
  //#region src/cli/output.ts
22
22
  const toJson = (value) => Effect.try({
@@ -1,4 +1,4 @@
1
- import { AvailabilityService, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
1
+ import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getBookingBookGuestToken, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
2
2
  import { Context, Data, DateTime, Effect, Layer, Schema } from "effect";
3
3
  import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http";
4
4
  import { print } from "graphql";
@@ -3836,7 +3836,7 @@ const toTotalPriceAmount = ({ fullAmount, prepaymentAmount, prepaymentPercent, r
3836
3836
  if (fullAmount !== void 0 && prepaymentAmount !== void 0 && prepaymentPercent !== void 0 && prepaymentPercent > 0 && prepaymentPercent < 100) return fullAmount - (prepaymentAmount - fullAmount * (prepaymentPercent / 100)) / (1 - prepaymentPercent / 100);
3837
3837
  };
3838
3838
  const toDepositAmount = ({ fullAmount, totalPriceAmount }) => fullAmount === void 0 || totalPriceAmount === void 0 ? void 0 : fullAmount - totalPriceAmount;
3839
- const toScheduleOption = ({ currency, depositAmount, forceFullAmount, scheduleItem, scheduleKey, totalPriceAmount, quotePaymentSchedule }) => {
3839
+ const toScheduleOption = ({ currency, depositAmount, forceFullAmount, payableNow, scheduleItem, scheduleKey, totalPriceAmount, quotePaymentSchedule }) => {
3840
3840
  const amount = positiveNumber(scheduleItem.amount);
3841
3841
  if (amount === void 0) return void 0;
3842
3842
  const percent = toPercent(scheduleKey, quotePaymentSchedule);
@@ -3847,6 +3847,7 @@ const toScheduleOption = ({ currency, depositAmount, forceFullAmount, scheduleIt
3847
3847
  scheduleKey,
3848
3848
  amount,
3849
3849
  currency,
3850
+ payableNow,
3850
3851
  ...scheduleDepositAmount === void 0 ? {} : { depositAmount: scheduleDepositAmount },
3851
3852
  ...scheduleItem.date === void 0 ? {} : { dueOn: scheduleItem.date },
3852
3853
  ...includesDeposit === void 0 ? {} : { includesDeposit },
@@ -3855,7 +3856,7 @@ const toScheduleOption = ({ currency, depositAmount, forceFullAmount, scheduleIt
3855
3856
  ...forceFullAmount && totalPriceAmount !== void 0 ? { priceAmount: totalPriceAmount } : {}
3856
3857
  };
3857
3858
  };
3858
- const removeInstallmentDuplicates = (paymentScheduleOptions) => paymentScheduleOptions.filter((option) => option.kind === "full_amount" || !paymentScheduleOptions.some((candidate) => candidate.kind === "full_amount" && candidate.amount === option.amount && candidate.currency === option.currency));
3859
+ const removeInstallmentDuplicates = (paymentScheduleOptions) => paymentScheduleOptions.filter((option) => option.kind !== "full_amount" || !paymentScheduleOptions.some((candidate) => candidate.kind === "installment" && candidate.payableNow && candidate.amount === option.amount && candidate.currency === option.currency));
3859
3860
  const toPaymentScheduleOptions = ({ bookResponse, currency, quotePaymentSchedule }) => Effect.succeed((() => {
3860
3861
  const paymentSchedule = bookResponse.reservation?.paymentSchedule;
3861
3862
  if (paymentSchedule === void 0) return [];
@@ -3878,26 +3879,40 @@ const toPaymentScheduleOptions = ({ bookResponse, currency, quotePaymentSchedule
3878
3879
  const prepaymentOption = paymentSchedule.prepayment === void 0 ? void 0 : toScheduleOption({
3879
3880
  currency,
3880
3881
  depositAmount,
3882
+ payableNow: true,
3881
3883
  scheduleItem: paymentSchedule.prepayment,
3882
3884
  scheduleKey: "prepayment",
3883
3885
  totalPriceAmount,
3884
3886
  ...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
3885
3887
  });
3888
+ const restOption = paymentSchedule.rest === void 0 ? void 0 : toScheduleOption({
3889
+ currency,
3890
+ depositAmount,
3891
+ payableNow: false,
3892
+ scheduleItem: paymentSchedule.rest,
3893
+ scheduleKey: "rest",
3894
+ totalPriceAmount,
3895
+ ...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
3896
+ });
3886
3897
  const totalScheduleItem = paymentSchedule.total ?? (fullAmount === void 0 ? void 0 : {
3887
3898
  amount: fullAmount,
3888
- date: paymentSchedule.prepayment?.date ?? paymentSchedule.rest?.date,
3889
3899
  includesDeposit: true
3890
3900
  });
3891
3901
  const totalOption = totalScheduleItem === void 0 ? void 0 : toScheduleOption({
3892
3902
  currency,
3893
3903
  depositAmount,
3894
3904
  forceFullAmount: true,
3905
+ payableNow: true,
3895
3906
  scheduleItem: totalScheduleItem,
3896
3907
  scheduleKey: "total",
3897
3908
  totalPriceAmount,
3898
3909
  ...quotePaymentSchedule === void 0 ? {} : { quotePaymentSchedule }
3899
3910
  });
3900
- return removeInstallmentDuplicates([prepaymentOption, totalOption].flatMap((option) => option === void 0 ? [] : [option]));
3911
+ return removeInstallmentDuplicates([
3912
+ prepaymentOption,
3913
+ restOption,
3914
+ totalOption
3915
+ ].flatMap((option) => option === void 0 ? [] : [option]));
3901
3916
  })());
3902
3917
  //#endregion
3903
3918
  //#region src/legacy-v9/parser/booking/output/to-payment-schedules.ts
@@ -4012,14 +4027,17 @@ const toPaymentSchedules = ({ bookResponse, locale, paymentScheduleOptionWithStr
4012
4027
  const payInstallmentLabel = yield* translations.translate(locale, "booking.payment.schedule.installment.label");
4013
4028
  const payPrepaymentLabel = yield* translations.translate(locale, "booking.payment.schedule.prepayment.label");
4014
4029
  const payRestLabel = yield* translations.translate(locale, "booking.payment.schedule.rest.label");
4030
+ const dueOnLabel = yield* translations.translate(locale, "booking.payment.schedule.dueOn");
4015
4031
  const depositLabel = yield* translations.translate(locale, "booking.payment.schedule.deposit");
4016
4032
  const totalAmountLabel = yield* translations.translate(locale, "booking.payment.schedule.totalAmount");
4017
4033
  const remittanceTextLabel = yield* translations.translate(locale, "booking.payment.option.bankTransfer.remittanceText");
4018
- const bankTransferOption = toBankTransferOption(findPaymentMethod(bookResponse, "BANKACCOUNT"), bankTransferLabel, `${remittanceTextLabel} ${bookResponse.reservation?.nr ?? ""}`.trim(), firstString((bookResponse.reservation?.customer)?.showAs));
4034
+ const bankTransferOption = toBankTransferOption(findPaymentMethod(bookResponse, "BANKACCOUNT"), bankTransferLabel, `${remittanceTextLabel}: ${bookResponse.reservation?.nr ?? ""}`.trim(), firstString((bookResponse.reservation?.customer)?.showAs));
4019
4035
  const paypalPaymentMethod = findPaymentMethod(bookResponse, "PAYPAL");
4020
4036
  const v9BookingTotal = getBookingTotal(bookResponse) ?? quoteBookingTotal ?? deriveBookingTotal(paymentScheduleOptionWithStripeResults);
4021
4037
  const v9DepositAmount = getDepositAmount(bookResponse);
4022
- return paymentScheduleOptionWithStripeResults.map(({ paymentScheduleOption, stripeResult }) => {
4038
+ const schedule = [];
4039
+ const alternatives = [];
4040
+ for (const { paymentScheduleOption, stripeResult } of paymentScheduleOptionWithStripeResults) {
4023
4041
  const lines = toPaymentScheduleLines({
4024
4042
  depositLabel,
4025
4043
  locale,
@@ -4028,28 +4046,49 @@ const toPaymentSchedules = ({ bookResponse, locale, paymentScheduleOptionWithStr
4028
4046
  totalAmountLabel,
4029
4047
  v9BookingTotal
4030
4048
  });
4031
- return {
4032
- label: toPaymentScheduleLabel({
4033
- locale,
4034
- paymentScheduleOption,
4035
- payFullAmountLabel,
4036
- payInstallmentLabel,
4037
- payPrepaymentLabel,
4038
- payRestLabel
4039
- }),
4040
- ...paymentScheduleOption.dueOn === void 0 ? {} : { dueOn: formatLocalDate({
4041
- date: paymentScheduleOption.dueOn,
4042
- locale
4043
- }) },
4049
+ const label = toPaymentScheduleLabel({
4050
+ locale,
4051
+ paymentScheduleOption,
4052
+ payFullAmountLabel,
4053
+ payInstallmentLabel,
4054
+ payPrepaymentLabel,
4055
+ payRestLabel
4056
+ });
4057
+ const dueOn = paymentScheduleOption.dueOn === void 0 ? void 0 : `${dueOnLabel} ${formatLocalDate({
4058
+ date: paymentScheduleOption.dueOn,
4059
+ locale,
4060
+ style: "long"
4061
+ })}`;
4062
+ const availablePaymentOptions = [
4063
+ bankTransferOption,
4064
+ toPaypalOption(paypalPaymentMethod, paypalLabel, paymentScheduleOption),
4065
+ toStripeOption(stripeResult, stripeLabel)
4066
+ ].flatMap((paymentOption) => paymentOption === void 0 ? [] : [paymentOption]);
4067
+ const paymentOptions = paymentScheduleOption.payableNow && availablePaymentOptions.length > 0 ? availablePaymentOptions : void 0;
4068
+ if (paymentScheduleOption.kind === "full_amount") {
4069
+ alternatives.push({
4070
+ kind: "full_amount",
4071
+ label,
4072
+ amount: formatCurrency(paymentScheduleOption.amount, locale, paymentScheduleOption.currency),
4073
+ ...dueOn === void 0 ? {} : { dueOn },
4074
+ ...lines === void 0 || lines.length === 0 ? {} : { lines },
4075
+ paymentOptions: paymentOptions ?? []
4076
+ });
4077
+ continue;
4078
+ }
4079
+ schedule.push({
4080
+ kind: paymentScheduleOption.scheduleKey === "prepayment" ? "prepayment" : "remaining_payment",
4081
+ label,
4082
+ amount: formatCurrency(paymentScheduleOption.amount, locale, paymentScheduleOption.currency),
4083
+ ...dueOn === void 0 ? {} : { dueOn },
4044
4084
  ...lines === void 0 || lines.length === 0 ? {} : { lines },
4045
- total: formatCurrency(paymentScheduleOption.amount, locale, paymentScheduleOption.currency),
4046
- paymentOptions: [
4047
- bankTransferOption,
4048
- toPaypalOption(paypalPaymentMethod, paypalLabel, paymentScheduleOption),
4049
- toStripeOption(stripeResult, stripeLabel)
4050
- ].flatMap((paymentOption) => paymentOption === void 0 ? [] : [paymentOption])
4051
- };
4052
- });
4085
+ ...paymentOptions === void 0 ? {} : { paymentOptions }
4086
+ });
4087
+ }
4088
+ return {
4089
+ schedule,
4090
+ alternatives
4091
+ };
4053
4092
  });
4054
4093
  //#endregion
4055
4094
  //#region src/legacy-v9/parser/booking/output/to-stripe-payment-input.ts
@@ -4148,6 +4187,7 @@ const book = ({ client, input, translations }) => Effect.gen(function* () {
4148
4187
  const stripePaymentMethod = findPaymentMethod(bookResponse, "STRIPE");
4149
4188
  const stripePaymentKey = bookResponse.reservation.guestToken;
4150
4189
  const paymentScheduleOptionWithStripeResults = yield* Effect.all(paymentScheduleOptions.map((paymentScheduleOption) => Effect.gen(function* () {
4190
+ if (!paymentScheduleOption.payableNow) return { paymentScheduleOption };
4151
4191
  if (stripePaymentMethod === void 0) return { paymentScheduleOption };
4152
4192
  if (stripePaymentKey === void 0) return yield* Effect.fail(new CoreSDKError({
4153
4193
  source: "v10",
@@ -4185,7 +4225,7 @@ const book = ({ client, input, translations }) => Effect.gen(function* () {
4185
4225
  stripeResult: stripeResponse
4186
4226
  };
4187
4227
  })));
4188
- const paymentSchedules = yield* toPaymentSchedules({
4228
+ const payment = yield* toPaymentSchedules({
4189
4229
  bookResponse,
4190
4230
  locale: quoteInput.locale,
4191
4231
  paymentScheduleOptionWithStripeResults,
@@ -4202,12 +4242,12 @@ const book = ({ client, input, translations }) => Effect.gen(function* () {
4202
4242
  sepaDebitDescription: insuranceSepaDebitDescription,
4203
4243
  canBookInsurance: reservation.guestToken !== void 0
4204
4244
  });
4205
- return {
4245
+ return new BookingBookOutput({
4206
4246
  bookingNumber,
4207
- ...reservation.guestToken === void 0 ? {} : { guestToken: reservation.guestToken },
4208
- paymentSchedules,
4209
- insurancePaymentOptions: [...urvInsurancePaymentOptions, ...postBookingInsurancePaymentOptions]
4210
- };
4247
+ payment,
4248
+ insurancePaymentOptions: [...urvInsurancePaymentOptions, ...postBookingInsurancePaymentOptions],
4249
+ ...reservation.guestToken === void 0 ? {} : { guestToken: reservation.guestToken }
4250
+ });
4211
4251
  });
4212
4252
  const makeV9BookingApi = ({ config, options }) => {
4213
4253
  const translations = makeV9TranslationService(options.translationOverrides);
@@ -4825,11 +4865,19 @@ const makeV9QuoteApi = ({ config, options }) => {
4825
4865
  v1Client
4826
4866
  })),
4827
4867
  selectInsurancePayment: (input) => withClients(() => selectV9InsurancePayment(input)),
4828
- bookInsurance: ({ quote, bookingNumber, guestToken }) => withClients(({ v1Client }) => bookV9Insurance({
4829
- quote,
4830
- bookingNumber,
4831
- guestToken,
4832
- v1Client
4868
+ bookInsurance: ({ quote, booking }) => withClients(({ v1Client }) => Effect.gen(function* () {
4869
+ const guestToken = getBookingBookGuestToken(booking);
4870
+ if (guestToken === void 0) return yield* Effect.fail(new CoreSDKError({
4871
+ source: "v9",
4872
+ operation: "v9.insurance",
4873
+ message: "The booking does not contain the private v9 guest token required to book insurance."
4874
+ }));
4875
+ return yield* bookV9Insurance({
4876
+ quote,
4877
+ bookingNumber: booking.bookingNumber,
4878
+ guestToken,
4879
+ v1Client
4880
+ });
4833
4881
  }))
4834
4882
  };
4835
4883
  };
@@ -4975,7 +5023,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
4975
5023
  return page;
4976
5024
  });
4977
5025
  const loadV9SearchRuntime = Effect.tryPromise({
4978
- try: () => import("./search-BlL8vSPY.mjs"),
5026
+ try: () => import("./search-Byi6XboR.mjs"),
4979
5027
  catch: (cause) => new CoreSDKError({
4980
5028
  source: "v10",
4981
5029
  operation: "v9.search.runtime",
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdditionalServiceLimitExceeded, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPaymentOption, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, Locale, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V9OnlyCustomAttributeInput, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
1
+ import { AdditionalServiceLimitExceeded, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, Locale, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V9OnlyCustomAttributeInput, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
2
2
  import { Context, Effect, Layer, Schema } from "effect";
3
3
  import { HttpClient } from "effect/unstable/http";
4
4
  //#region src/legacy-v9/config.d.ts
@@ -515,60 +515,7 @@ declare const bookInsuranceEffect: (input: QuoteBookInsuranceInput) => Effect.Ef
515
515
  readonly url: string;
516
516
  }[];
517
517
  }, import("@v-office/sdk-core").CoreSDKError, QuoteService$1>;
518
- declare const bookEffect: (input: BookingBookInput$1) => Effect.Effect<{
519
- readonly bookingNumber: string;
520
- readonly guestToken?: string;
521
- readonly paymentSchedules: readonly {
522
- readonly label: string;
523
- readonly dueOn?: string;
524
- readonly lines?: readonly {
525
- readonly label: string;
526
- readonly amount: string;
527
- }[];
528
- readonly total: string;
529
- readonly paymentOptions: readonly ({
530
- readonly kind: "bank_transfer";
531
- readonly label: string;
532
- readonly holder: string;
533
- readonly remittanceText?: string;
534
- readonly iban: string;
535
- readonly swiftOrBic?: string;
536
- readonly institution?: string;
537
- } | {
538
- readonly kind: "redirect";
539
- readonly provider: "adyen";
540
- readonly label: string;
541
- readonly url: string;
542
- } | {
543
- readonly kind: "form_post";
544
- readonly provider: "paypal";
545
- readonly label: string;
546
- readonly action: string;
547
- readonly method: "POST";
548
- readonly fields: {
549
- readonly [x: string]: string;
550
- };
551
- readonly fallbackUrl: string;
552
- } | {
553
- readonly kind: "stripe_checkout";
554
- readonly provider: "stripe";
555
- readonly label: string;
556
- readonly sessionId?: string;
557
- readonly accountId?: string;
558
- readonly url?: string;
559
- })[];
560
- }[];
561
- readonly insurancePaymentOptions: readonly ({
562
- readonly kind: "sepa_debit";
563
- readonly label: string;
564
- readonly description?: string;
565
- } | {
566
- readonly kind: "external_url";
567
- readonly label: string;
568
- readonly url: string;
569
- readonly description?: string;
570
- })[];
571
- }, import("@v-office/sdk-core").CoreSDKError, BookingService>;
518
+ declare const bookEffect: (input: BookingBookInput$1) => Effect.Effect<import("@v-office/sdk-core").BookingBookOutput, import("@v-office/sdk-core").CoreSDKError, BookingService>;
572
519
  declare const submitContactEffect: (input: ContactSubmitInput$1) => Effect.Effect<void, import("@v-office/sdk-core").CoreSDKError, ContactService>;
573
520
  //#endregion
574
521
  //#region codegen/v9/v0/generated/openapi-types.d.ts
@@ -7499,4 +7446,4 @@ type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
7499
7446
  type RentalSearchInput = SearchSearchInput$1;
7500
7447
  type RentalSearchOutput = SearchSearchOutput$1;
7501
7448
  //#endregion
7502
- export { AdditionalServiceLimitExceeded, ApiEnvelopeBase, ApiEnvelopeBaseSchema, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBookInput, type BookingBookOutput, BookingInput, BookingOutput, type BookingPaymentOption, CMSError, CalendarDay, CalendarDaySchema, CalendarResponse, CalendarResponseSchema, ContactInput, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, CurrentMemberResponse, CurrentMemberResponseSchema, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, CustomerUnitSummary, CustomerUnitSummarySchema, type DataAttribute, DefineDataAttributes, DocumentCollectionResponse, DocumentCollectionResponseSchema, DocumentResource, DocumentResourceResponse, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatus, DocumentStatusSchema, DocumentStatusUpdateRequest, DocumentStatusUpdateRequestSchema, DocumentSummary, DocumentSummarySchema, DocumentType, DocumentTypeSchema, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, ErgoAddress, ErgoAddressSchema, ErgoBank, ErgoBankSchema, ErgoBookRequest, ErgoBookRequestSchema, ErgoCommonFields, ErgoCommonFieldsSchema, ErgoCreatePreContractRequest, ErgoCreatePreContractRequestSchema, ErgoPerson, ErgoPersonSchema, ErgoPlanSearchRequest, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequest, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequest, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequest, ErgoTripAndCustomerRequestSchema, FacilityListResponse, FacilityListResponseSchema, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, InitialAvailabilityInput, InitialAvailabilityOutput, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, OnOfficeUnit, OnOfficeUnitCollectionResponse, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, PaymentSchedule, PaymentScheduleItem, PaymentScheduleItemSchema, PaymentScheduleSchema, Quote, QuoteLine, QuoteLineSchema, QuotePricesPayload, QuotePricesPayloadSchema, QuotePricesResponse, QuotePricesResponseSchema, type QuoteQuoteInput, type QuoteQuoteOutput, QuoteSchema, QuoteService, QuoteServiceSchema, RawObjectResponse, RawObjectResponseSchema, RawVofficeObject, RawVofficeObjectSchema, RegionListResponse, RegionListResponseSchema, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, RentalRentalsInput, RentalRentalsOutput, RentalSearchInput, RentalSearchOutput, type ResolvedCustomAttribute, RoomImage, RoomImageSchema, SearchPropertiesResponse, SearchPropertiesResponseSchema, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, ServiceBeonData, ServiceBeonDataSchema, ServiceImage, ServiceImageSchema, ServiceLimit, ServiceLimitSchema, ServiceListResponse, ServiceListResponseSchema, SetupData, SetupDataSchema, SetupResponse, SetupResponseSchema, StartDateSelectedAvailabilityInput, StartDateSelectedAvailabilityOutput, type SubmittableBookingPaymentOption, Tile, TileCollectionResponse, TileCollectionResponseSchema, TileSchema, TileTag, TileTagSchema, type TranslationOverrides, TravelInsuranceBooking, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequest, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponse, UnitIdsResponseSchema, UnitListItem, UnitListItemSchema, UnitListResponse, UnitListResponseSchema, UnitOffer, UnitOfferSchema, UnitResponse, UnitResponseSchema, UnitServicePrice, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, V1DecodedResponse, V1HttpMethod, V1OpenApiClient, V1OpenApiClientError, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, V1OperationId, V1OperationRuntime, V1OperationSchema, V1SchemaDecodeError, V1_BASE_URL, V1_OPERATIONS, type V9OnlyCustomAttributeInput, type V9SearchSearchInput, type V9SearchSearchSort, VideoResponse, VideoResponseSchema, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9Live, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
7449
+ export { AdditionalServiceLimitExceeded, ApiEnvelopeBase, ApiEnvelopeBaseSchema, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBookInput, type BookingBookOutput, BookingInput, BookingOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, CalendarDay, CalendarDaySchema, CalendarResponse, CalendarResponseSchema, ContactInput, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, CurrentMemberResponse, CurrentMemberResponseSchema, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, CustomerUnitSummary, CustomerUnitSummarySchema, type DataAttribute, DefineDataAttributes, DocumentCollectionResponse, DocumentCollectionResponseSchema, DocumentResource, DocumentResourceResponse, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatus, DocumentStatusSchema, DocumentStatusUpdateRequest, DocumentStatusUpdateRequestSchema, DocumentSummary, DocumentSummarySchema, DocumentType, DocumentTypeSchema, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, ErgoAddress, ErgoAddressSchema, ErgoBank, ErgoBankSchema, ErgoBookRequest, ErgoBookRequestSchema, ErgoCommonFields, ErgoCommonFieldsSchema, ErgoCreatePreContractRequest, ErgoCreatePreContractRequestSchema, ErgoPerson, ErgoPersonSchema, ErgoPlanSearchRequest, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequest, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequest, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequest, ErgoTripAndCustomerRequestSchema, FacilityListResponse, FacilityListResponseSchema, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, InitialAvailabilityInput, InitialAvailabilityOutput, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, OnOfficeUnit, OnOfficeUnitCollectionResponse, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, PaymentSchedule, PaymentScheduleItem, PaymentScheduleItemSchema, PaymentScheduleSchema, Quote, QuoteLine, QuoteLineSchema, QuotePricesPayload, QuotePricesPayloadSchema, QuotePricesResponse, QuotePricesResponseSchema, type QuoteQuoteInput, type QuoteQuoteOutput, QuoteSchema, QuoteService, QuoteServiceSchema, RawObjectResponse, RawObjectResponseSchema, RawVofficeObject, RawVofficeObjectSchema, RegionListResponse, RegionListResponseSchema, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, RentalRentalsInput, RentalRentalsOutput, RentalSearchInput, RentalSearchOutput, type ResolvedCustomAttribute, RoomImage, RoomImageSchema, SearchPropertiesResponse, SearchPropertiesResponseSchema, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, ServiceBeonData, ServiceBeonDataSchema, ServiceImage, ServiceImageSchema, ServiceLimit, ServiceLimitSchema, ServiceListResponse, ServiceListResponseSchema, SetupData, SetupDataSchema, SetupResponse, SetupResponseSchema, StartDateSelectedAvailabilityInput, StartDateSelectedAvailabilityOutput, type SubmittableBookingPaymentOption, Tile, TileCollectionResponse, TileCollectionResponseSchema, TileSchema, TileTag, TileTagSchema, type TranslationOverrides, TravelInsuranceBooking, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequest, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponse, UnitIdsResponseSchema, UnitListItem, UnitListItemSchema, UnitListResponse, UnitListResponseSchema, UnitOffer, UnitOfferSchema, UnitResponse, UnitResponseSchema, UnitServicePrice, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, V1DecodedResponse, V1HttpMethod, V1OpenApiClient, V1OpenApiClientError, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, V1OperationId, V1OperationRuntime, V1OperationSchema, V1SchemaDecodeError, V1_BASE_URL, V1_OPERATIONS, type V9OnlyCustomAttributeInput, type V9SearchSearchInput, type V9SearchSearchSort, VideoResponse, VideoResponseSchema, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9Live, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as quoteEffect, B as OnOfficeUnitSchema, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getRentalsEffect, E as DocumentSummarySchema, Et as getInitialAvailabilityEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectInsurancePaymentEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, I as ErgoReadPreContractRequestSchema, It as submitContactEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as submitPaymentOption, M as ErgoCreatePreContractRequestSchema, Mt as searchEffect, N as ErgoPersonSchema, Nt as selectCancellationPolicyEffect, O as ErgoAddressSchema, Ot as getStartDateSelectedAvailabilityEffect, P as ErgoPlanSearchRequestSchema, Pt as selectInsuranceEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitPaymentOptionEffect, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getFiltersEffect, U as QuoteLineSchema, V as PaymentScheduleItemSchema, W as QuotePricesPayloadSchema, X as RegionListResponseSchema, Y as RawVofficeObjectSchema, Z as RoomImageSchema, _ as CalendarDaySchema, _t as V1_OPERATIONS, at as TileCollectionResponseSchema, b as CustomerUnitSummarySchema, bt as addAdditionalServiceEffect, c as V0OpenApiClient, ct as TravelInsuranceBookingSchema, d as makeV0OpenApiClientLive, dt as UnitListItemSchema, et as ServiceImageSchema, f as V1OpenApiClient, ft as UnitListResponseSchema, g as ApiEnvelopeBaseSchema, gt as V1_BASE_URL, h as makeV1OpenApiClientLive, ht as UnitServicePriceSchema, it as SetupResponseSchema, j as ErgoCommonFieldsSchema, jt as removeAdditionalServiceEffect, k as ErgoBankSchema, kt as getTermsAndPrivacyPolicyEffect, l as V0OpenApiClientError, lt as TravelInsuranceBookingStoreRequestSchema, m as makeV1OpenApiClientFetchLive, mt as UnitResponseSchema, nt as ServiceListResponseSchema, ot as TileSchema, p as V1OpenApiClientError, pt as UnitOfferSchema, q as QuoteServiceSchema, rt as SetupDataSchema, st as TileTagSchema, t as createWebsiteSDK, tt as ServiceLimitSchema, u as makeV0OpenApiClientFetchLive, ut as UnitIdsResponseSchema, v as CalendarResponseSchema, vt as VideoResponseSchema, w as DocumentStatusSchema, wt as createInsurancePreContractEffect, x as DocumentCollectionResponseSchema, xt as bookEffect, y as CurrentMemberResponseSchema, yt as decodeV1OperationResponse, z as OnOfficeUnitCollectionResponseSchema, zt as defineWebsiteSDKOptions } from "./client-Bmxh2SAu.mjs";
1
+ import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as quoteEffect, B as OnOfficeUnitSchema, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getRentalsEffect, E as DocumentSummarySchema, Et as getInitialAvailabilityEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectInsurancePaymentEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, I as ErgoReadPreContractRequestSchema, It as submitContactEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as submitPaymentOption, M as ErgoCreatePreContractRequestSchema, Mt as searchEffect, N as ErgoPersonSchema, Nt as selectCancellationPolicyEffect, O as ErgoAddressSchema, Ot as getStartDateSelectedAvailabilityEffect, P as ErgoPlanSearchRequestSchema, Pt as selectInsuranceEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitPaymentOptionEffect, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getFiltersEffect, U as QuoteLineSchema, V as PaymentScheduleItemSchema, W as QuotePricesPayloadSchema, X as RegionListResponseSchema, Y as RawVofficeObjectSchema, Z as RoomImageSchema, _ as CalendarDaySchema, _t as V1_OPERATIONS, at as TileCollectionResponseSchema, b as CustomerUnitSummarySchema, bt as addAdditionalServiceEffect, c as V0OpenApiClient, ct as TravelInsuranceBookingSchema, d as makeV0OpenApiClientLive, dt as UnitListItemSchema, et as ServiceImageSchema, f as V1OpenApiClient, ft as UnitListResponseSchema, g as ApiEnvelopeBaseSchema, gt as V1_BASE_URL, h as makeV1OpenApiClientLive, ht as UnitServicePriceSchema, it as SetupResponseSchema, j as ErgoCommonFieldsSchema, jt as removeAdditionalServiceEffect, k as ErgoBankSchema, kt as getTermsAndPrivacyPolicyEffect, l as V0OpenApiClientError, lt as TravelInsuranceBookingStoreRequestSchema, m as makeV1OpenApiClientFetchLive, mt as UnitResponseSchema, nt as ServiceListResponseSchema, ot as TileSchema, p as V1OpenApiClientError, pt as UnitOfferSchema, q as QuoteServiceSchema, rt as SetupDataSchema, st as TileTagSchema, t as createWebsiteSDK, tt as ServiceLimitSchema, u as makeV0OpenApiClientFetchLive, ut as UnitIdsResponseSchema, v as CalendarResponseSchema, vt as VideoResponseSchema, w as DocumentStatusSchema, wt as createInsurancePreContractEffect, x as DocumentCollectionResponseSchema, xt as bookEffect, y as CurrentMemberResponseSchema, yt as decodeV1OperationResponse, z as OnOfficeUnitCollectionResponseSchema, zt as defineWebsiteSDKOptions } from "./client-Ma0daa2H.mjs";
2
2
  import { AdditionalServiceLimitExceeded, CoreSDKError, CoreSDKError as CMSError, CustomAttributeCatalogSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, UnknownAdditionalService, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
3
3
  //#region codegen/v9/heuristic-generation/public-api.ts
4
4
  const customDataAttribute = (name) => name;
@@ -4,6 +4,7 @@ This file is the versioned changelog index for the website SDK instructions.
4
4
 
5
5
  ## Versions
6
6
 
7
+ - `versions/2.13.0/CHANGELOG.md`: `@v-office/website-sdk` 2.13.0 release notes.
7
8
  - `versions/2.12.0/CHANGELOG.md`: `@v-office/website-sdk` 2.12.0 release notes.
8
9
  - `versions/2.11.0/CHANGELOG.md`: `@v-office/website-sdk` 2.11.0 release notes.
9
10
  - `versions/2.10.0/CHANGELOG.md`: `@v-office/website-sdk` 2.10.0 release notes.
@@ -4,6 +4,7 @@ This file is the versioned migration index for the website SDK instructions.
4
4
 
5
5
  ## Available Guides
6
6
 
7
+ - `versions/2.13.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.12.0 to 2.13.0.
7
8
  - `versions/2.12.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.11.0 to 2.12.0.
8
9
  - `versions/2.11.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.10.0 to 2.11.0.
9
10
  - `versions/2.10.0/MIGRATION.md`: migrate from `@v-office/website-sdk` 2.9.0 to 2.10.0.
@@ -1,7 +1,7 @@
1
1
  # Website SDK Instructions
2
2
 
3
3
  These instructions describe the current source targeted for
4
- `@v-office/website-sdk` 2.12.0. Package versions remain unchanged until the release
4
+ `@v-office/website-sdk` 2.13.0. Package versions remain unchanged until the release
5
5
  workflow performs the coordinated core and website bumps.
6
6
 
7
7
  Use this directory as the consumer-facing reference for the package:
@@ -18,6 +18,9 @@ Use this directory as the consumer-facing reference for the package:
18
18
  - `document-structured-json.md`: `sdk.static.documents.getTermsAndPrivacyPolicy` and structured document JSON rendering rules.
19
19
  - `CHANGELOG.md`: versioned changelog index.
20
20
  - `MIGRATION.md`: versioned migration index.
21
+ - `versions/2.13.0/`: 2.13.0 static search capability discovery, shared v9/v10
22
+ booking-payment output, corrected remaining-payment deadlines, opaque booking
23
+ credentials, and the 2.12.0-to-2.13.0 migration guide.
21
24
  - `versions/2.12.0/`: 2.12.0 legacy-v9 search discounts, empty-query browsing,
22
25
  and flexible-period rejection; quote booking-card cleanup; and v10 modifier
23
26
  guidance, plus the 2.11.0-to-2.12.0 migration guide.
@@ -42,7 +45,9 @@ Use this directory as the consumer-facing reference for the package:
42
45
  pnpm add @v-office/website-sdk
43
46
  ```
44
47
 
45
- The package is ESM-only and exports the root SDK facade from `@v-office/website-sdk`.
48
+ The package is ESM-only. It exports the SDK facade from `@v-office/website-sdk`
49
+ and instance-independent search capability helpers from
50
+ `@v-office/website-sdk/capabilities/search`.
46
51
 
47
52
  ## Quick Start
48
53
 
@@ -82,5 +87,5 @@ website-sdk --backend v10 search --locale de-DE --query "adults=2" --sort '{"by"
82
87
  ```
83
88
 
84
89
  Config file examples in these docs use the flat `WebsiteSDKConfig` shape introduced
85
- in 2.0.0 and kept in 2.12.0. v10 config additionally requires `searchEndpoint` as
90
+ in 2.0.0 and kept in 2.13.0. v10 config additionally requires `searchEndpoint` as
86
91
  of 2.5.0.
@@ -78,47 +78,63 @@ Sample:
78
78
  ```json
79
79
  {
80
80
  "bookingNumber": "B-2026-0001",
81
- "guestToken": "guest-token",
82
- "paymentSchedules": [
83
- {
84
- "label": "Deposit",
85
- "dueOn": "2026-06-15",
86
- "lines": [
87
- {
88
- "label": "Deposit",
89
- "amount": "300.00 EUR"
90
- }
91
- ],
92
- "total": "300.00 EUR",
93
- "paymentOptions": [
94
- {
95
- "kind": "bank_transfer",
96
- "label": "Bank transfer",
97
- "holder": "Example GmbH",
98
- "iban": "DE02120300000000202051",
99
- "swiftOrBic": "BYLADEM1001",
100
- "remittanceText": "B-2026-0001"
101
- },
102
- {
103
- "kind": "redirect",
104
- "provider": "adyen",
105
- "label": "Credit card",
106
- "url": "https://checkout.example.com"
107
- },
108
- {
109
- "kind": "stripe_checkout",
110
- "provider": "stripe",
111
- "label": "Credit card",
112
- "sessionId": "cs_live_a1Upmvi1v62AdILeDZl4l",
113
- "accountId": "acct_1MpAB7AFrTg9gw7b"
114
- }
115
- ]
116
- }
117
- ],
118
- "insurancePaymentOptions": []
81
+ "payment": {
82
+ "schedule": [
83
+ {
84
+ "kind": "prepayment",
85
+ "label": "Down payment",
86
+ "amount": "€76.00",
87
+ "dueOn": "Payable until August 19, 2026",
88
+ "paymentOptions": [
89
+ {
90
+ "kind": "bank_transfer",
91
+ "label": "Bank transfer",
92
+ "holder": "Example GmbH",
93
+ "iban": "DE02120300000000202051",
94
+ "swiftOrBic": "BYLADEM1001",
95
+ "remittanceText": "Booking number: B-2026-0001"
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "kind": "remaining_payment",
101
+ "label": "Remaining payment",
102
+ "amount": "€304.00",
103
+ "dueOn": "Payable until February 6, 2027"
104
+ }
105
+ ],
106
+ "alternatives": [
107
+ {
108
+ "kind": "full_amount",
109
+ "label": "Total payment",
110
+ "amount": "€380.00",
111
+ "paymentOptions": [
112
+ {
113
+ "kind": "bank_transfer",
114
+ "label": "Bank transfer",
115
+ "holder": "Example GmbH",
116
+ "iban": "DE02120300000000202051",
117
+ "swiftOrBic": "BYLADEM1001",
118
+ "remittanceText": "Booking number: B-2026-0001"
119
+ }
120
+ ]
121
+ }
122
+ ]
123
+ }
119
124
  }
120
125
  ```
121
126
 
127
+ `payment.schedule` contains the remaining contractual payment steps known to the backend. Its `kind` is one of `prepayment`, `remaining_payment`, `installment`, or `deposit`. `v9` emits named prepayment and remaining-payment steps; `v10` emits its backend-provided installment and deposit steps.
128
+
129
+ `payment.alternatives` contains ways to settle the complete outstanding balance. A `full_amount` alternative has no inferred deadline. `dueOn`, `paymentAt`, labels, amounts, and line amounts are already translated and formatted for the booking locale.
130
+
131
+ `paymentOptions` is present only when the SDK can currently perform that payment. Future or on-site steps remain visible without payment options.
132
+
133
+ An optional `insurancePaymentOptions` array is returned only when post-booking insurance payment is available.
134
+
135
+ Sites upgrading from 2.12.0 must replace the former `paymentSchedules` output. See
136
+ `versions/2.13.0/MIGRATION.md`.
137
+
122
138
  Payment option variants:
123
139
 
124
140
  - `bank_transfer`: display-only payment details.
@@ -153,13 +169,13 @@ try {
153
169
 
154
170
  Online payment providers return the guest to a URL derived from `relativeRedirectUrl`. Stripe returns to that path with `payment=stripe&success=true` after payment and `payment=stripe&cancel=true` after cancellation, so the path must exist in your site and should read those query parameters.
155
171
 
156
- `relativeRedirectUrl` is supplied before the reservation exists, so the return URL cannot carry the booking number or guest token. Persist whatever the return page needs, for example in `sessionStorage`, before submitting a payment option.
172
+ `relativeRedirectUrl` is supplied before the reservation exists, so the return URL cannot carry the booking number. Persist whatever the return page needs, for example in `sessionStorage`, before submitting a payment option.
157
173
 
158
174
  A successful return means the provider sent the browser back, not that the payment has settled. Confirmation reaches vOffice through the provider's webhook.
159
175
 
160
176
  ## Configuration
161
177
 
162
- Booking requests are rate-limited to one backend request per second with a queue size of five. `v9` books through the v0 `book` action and initializes one Stripe Checkout Session per payment schedule option when the property has Stripe enabled. `v10` books through GraphQL and initializes Adyen redirect payment options.
178
+ Booking requests are rate-limited to one backend request per second with a queue size of five. `v9` books through the v0 `book` action and initializes Stripe only for currently payable choices when the property has Stripe enabled. `v10` books through GraphQL, preserves all remaining payment steps for display, and initializes Adyen for the next payable online step and the full-outstanding alternative.
163
179
 
164
180
  ## CLI Usage
165
181
 
@@ -393,16 +393,18 @@ quote = await sdk.live.quote.selectInsurancePayment({
393
393
  });
394
394
  ```
395
395
 
396
- After the rental booking is created, complete insurance booking with the booking number and guest token:
396
+ After the rental booking is created, complete insurance booking with the opaque booking result. Keep the live result object; its private backend credentials are intentionally not serialized:
397
397
 
398
398
  ```ts
399
399
  const insuranceBooking = await sdk.live.quote.bookInsurance({
400
400
  quote,
401
- bookingNumber: booking.bookingNumber,
402
- guestToken: booking.guestToken,
401
+ booking,
403
402
  });
404
403
  ```
405
404
 
405
+ This is a breaking change in 2.13.0. The former public `guestToken` input is no
406
+ longer used; see `versions/2.13.0/MIGRATION.md`.
407
+
406
408
  `v9` supports real insurance option refresh, pre-contract, payment selection, and booking. `v10` currently returns a no-insurance placeholder and insurance actions resolve as not required.
407
409
 
408
410
  ## Configuration