@v-office/website-sdk 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { $t as V9_HUB_FACILITY_SCOPE_FILTER_KEY, Yt as defineWebsiteSDKOptions, Zt as defineV9PropertyHighlightSourcesFromUnknown, _ as rental_attributes_default$1, an as V9_HUB_REGION_FILTER_KEY, cn as V9_SDK_OWNED_HUB_FILTER_KEYS, en as V9_HUB_FACILITY_SEARCH_FILTER_KEY, f as makeV9GraphQLClient, h as makeV0OpenApiClientFetchLive, i as toV9SdkOwnedHubFilterKeys, in as V9_HUB_OFFER_FILTER_KEY, ln as stable_filters_default, n as checkV9HubFilters, nn as V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY, on as V9_HUB_RENTAL_IDS_FILTER_KEY, p as V0OpenApiClient, r as toV9RequiredHubFilterKeys, rn as V9_HUB_OFFERS_FILTER_KEY, sn as V9_HUB_UNIT_TYPE_FILTER_KEY, t as createWebsiteSDK, tn as V9_HUB_OBJECT_GROUP_FILTER_KEY, v as rental_attributes_default } from "./client-C6r06QHZ.mjs";
2
+ import { $t as V9_HUB_FACILITY_SCOPE_FILTER_KEY, Yt as defineWebsiteSDKOptions, Zt as defineV9PropertyHighlightSourcesFromUnknown, _ as rental_attributes_default$1, an as V9_HUB_REGION_FILTER_KEY, cn as V9_SDK_OWNED_HUB_FILTER_KEYS, en as V9_HUB_FACILITY_SEARCH_FILTER_KEY, f as makeV9GraphQLClient, h as makeV0OpenApiClientFetchLive, i as toV9SdkOwnedHubFilterKeys, in as V9_HUB_OFFER_FILTER_KEY, ln as stable_filters_default, n as checkV9HubFilters, nn as V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY, on as V9_HUB_RENTAL_IDS_FILTER_KEY, p as V0OpenApiClient, r as toV9RequiredHubFilterKeys, rn as V9_HUB_OFFERS_FILTER_KEY, sn as V9_HUB_UNIT_TYPE_FILTER_KEY, t as createWebsiteSDK, tn as V9_HUB_OBJECT_GROUP_FILTER_KEY, v as rental_attributes_default } from "./client-DXqHhnpA.mjs";
3
3
  import { C as parseVofficeRatingData, a as hubFiltersQuery, b as parseJsonData, o as hubRentalDataQuery, p as rentalsAllWithoutFeedbacksQuery, v as VofficeUnitDataPropertyMetadata } from "./operations-Bc3WxjV8.mjs";
4
4
  import { STABLE_SEARCH_INPUTS, SearchSearchSortSchema, defineCustomAttributesFromUnknown, toStableSearchInputQueryKeys } from "@v-office/sdk-core";
5
5
  import { ByteSize, Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
@@ -17,7 +17,7 @@ var CLICheckFailed = class extends Error {
17
17
  const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
18
18
  //#endregion
19
19
  //#region package.json
20
- var version = "3.1.0";
20
+ var version = "3.2.0";
21
21
  //#endregion
22
22
  //#region src/cli/output.ts
23
23
  const toJson = (value) => Effect.try({
@@ -1745,10 +1745,17 @@ const applyV9CalendarPrices = ({ availability, calendarDays, locale, currency, r
1745
1745
  night: date,
1746
1746
  nights: calendarDay.minStay
1747
1747
  }) ?? calendarDay.price;
1748
- if (day.isAvailableDate && typeof price === "number") result[date] = {
1749
- ...day,
1750
- formattedPrice: formatCurrency(price, locale, currency ?? "EUR")
1751
- };
1748
+ if (day.isAvailableDate && typeof price === "number") {
1749
+ const priceCurrency = currency ?? "EUR";
1750
+ result[date] = {
1751
+ ...day,
1752
+ formattedPrice: formatCurrency(price, locale, priceCurrency),
1753
+ price: {
1754
+ amount: price,
1755
+ currency: priceCurrency
1756
+ }
1757
+ };
1758
+ }
1752
1759
  }
1753
1760
  return result;
1754
1761
  };
@@ -1810,9 +1817,17 @@ const applyV9EndDatePrices = ({ availability, calendarDays, selectedStartDate, l
1810
1817
  end: endDate
1811
1818
  })
1812
1819
  }) ?? availability.caldata_beon[lastNight]?.price : void 0;
1813
- result[endDate] = {
1820
+ const priceCurrency = currency ?? "EUR";
1821
+ result[endDate] = typeof price === "number" ? {
1822
+ ...day,
1823
+ formattedPrice: formatCurrency(price, locale, priceCurrency),
1824
+ price: {
1825
+ amount: price,
1826
+ currency: priceCurrency
1827
+ }
1828
+ } : {
1814
1829
  ...day,
1815
- formattedPrice: typeof price === "number" ? formatCurrency(price, locale, currency ?? "EUR") : null
1830
+ formattedPrice: null
1816
1831
  };
1817
1832
  }
1818
1833
  return result;
@@ -6149,7 +6164,7 @@ const bookV9Insurance = ({ quote, booking, translations, v1Client }) => Effect.g
6149
6164
  pre_contractual_information_id: insurance.preContract.id,
6150
6165
  bank: {
6151
6166
  iban: insurance.paymentInformation.iban,
6152
- ...insurance.paymentInformation.bic === void 0 ? {} : { bic: insurance.paymentInformation.bic }
6167
+ bic: insurance.paymentInformation.bic ?? null
6153
6168
  }
6154
6169
  };
6155
6170
  const result = yield* v1Client.execute("bookErgoTravelCancellationInsurance", { body }).pipe(Effect.mapError(toInsuranceError("Failed to book ERGO insurance.")), Effect.flatMap(({ raw }) => requireErgoSuccess({
@@ -6575,7 +6590,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
6575
6590
  return page;
6576
6591
  });
6577
6592
  const loadV9SearchRuntime = Effect.tryPromise({
6578
- try: () => import("./search-BvgpkUPo.mjs"),
6593
+ try: () => import("./search-Dljn4VGV.mjs"),
6579
6594
  catch: (cause) => new CoreSDKError({
6580
6595
  source: "v9",
6581
6596
  operation: "v9.search.runtime",
@@ -7486,7 +7501,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
7486
7501
  });
7487
7502
  };
7488
7503
  const loadV9RentalsRuntime = Effect.tryPromise({
7489
- try: () => import("./rentals-BP7dfcfg.mjs"),
7504
+ try: () => import("./rentals-C6PIx1RJ.mjs"),
7490
7505
  catch: (cause) => new CoreSDKError({
7491
7506
  source: "v9",
7492
7507
  operation: "v9.rentals.runtime",
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, 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, GuestQuote as GuestQuote$1, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, 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, RegionsGetRegionsInput, RegionsGetRegionsInput as RegionsGetRegionsInput$1, RegionsService, RentalCapacity, RentalFact, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchMoney, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, 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, V10RateBudget, V9OnlyCustomAttributeInput, WebsiteRegion, WebsiteRegions, WebsiteRegions as WebsiteRegions$1, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
1
+ import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, 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, GuestQuote as GuestQuote$1, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, Money, Money as Money$1, 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, RegionsGetRegionsInput, RegionsGetRegionsInput as RegionsGetRegionsInput$1, RegionsService, RentalCapacity, RentalFact, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchMoney, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, 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, V10RateBudget, V9OnlyCustomAttributeInput, WebsiteRegion, WebsiteRegions, WebsiteRegions as WebsiteRegions$1, 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
  import "@graphql-typed-document-node/core";
@@ -109,6 +109,8 @@ type V9InitialAvailabilityOutput = AvailabilityGetInitialAvailabilityOutput$1 &
109
109
  };
110
110
  type V9EndDateOption = AvailabilityEndDateOption & {
111
111
  readonly formattedPrice: string | null;
112
+ /** `formattedPrice` as a number, omitted whenever that is null. */
113
+ readonly price?: Money$1;
112
114
  };
113
115
  type V9StartDateSelectedAvailabilityOutput = {
114
116
  readonly calendarDays: Record<LocalDateString, V9EndDateOption>;
@@ -598,6 +600,9 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
598
600
  readonly summary?: {
599
601
  readonly rating: string;
600
602
  readonly count: string;
603
+ readonly averageRating?: number;
604
+ readonly maxRating?: number;
605
+ readonly ratingCount?: number;
601
606
  readonly classification: string;
602
607
  readonly categories?: readonly {
603
608
  readonly label: string;
@@ -704,6 +709,10 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
704
709
  readonly applied: readonly {
705
710
  readonly label: string;
706
711
  readonly formattedAmount: string;
712
+ readonly amount?: {
713
+ readonly amount: number;
714
+ readonly currency: string;
715
+ };
707
716
  readonly type?: string;
708
717
  }[];
709
718
  };
@@ -796,6 +805,10 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
796
805
  readonly applied: readonly {
797
806
  readonly label: string;
798
807
  readonly formattedAmount: string;
808
+ readonly amount?: {
809
+ readonly amount: number;
810
+ readonly currency: string;
811
+ };
799
812
  readonly type?: string;
800
813
  }[];
801
814
  };
@@ -850,6 +863,10 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
850
863
  readonly applied: readonly {
851
864
  readonly label: string;
852
865
  readonly formattedAmount: string;
866
+ readonly amount?: {
867
+ readonly amount: number;
868
+ readonly currency: string;
869
+ };
853
870
  readonly type?: string;
854
871
  }[];
855
872
  };
@@ -892,6 +909,10 @@ export declare const getInitialAvailabilityEffect: (input: AvailabilityGetInitia
892
909
  readonly isAvailableDate: boolean;
893
910
  readonly status: "after_last_bookable_date" | "available" | "before_today" | "check_in_not_allowed" | "no_valid_check_out_from_start" | "unavailable";
894
911
  readonly formattedPrice: string | null;
912
+ readonly price?: {
913
+ readonly amount: number;
914
+ readonly currency: string;
915
+ };
895
916
  readonly tooltip: string | null;
896
917
  };
897
918
  };
@@ -7984,4 +8005,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
7984
8005
  export type RentalSearchInput = SearchSearchInput$1;
7985
8006
  export type RentalSearchOutput = SearchSearchOutput$1;
7986
8007
  //#endregion
7987
- export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, 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, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, 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, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RegionsGetRegionsInput, type RentalCapacity, type RentalFact, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, type SearchAllRentalsAtOnceInput, type SearchMapSearchInput, SearchMapSearchInputSchema, type SearchMapSearchOutput, type SearchMapSearchOutputItem, SearchMapSearchOutputSchema, type SearchMoney, 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, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9AvailabilityGetBlockedRangesInput, type V9AvailabilityGetBlockedRangesOutput, type V9BlockedRange, type V9EndDateOption, type V9InitialAvailabilityOutput, type V9InsurancePolicy, type V9InsuranceReadPolicyInput, type V9InsuranceRevokePolicyInput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9QuoteCreateInsurancePreContractInput, type V9RentalBlockedRanges, type V9RentalsGetRentalsByIdsInput, type V9ReviewCriterion, type V9ReviewCriterionDataAttribute, type V9ReviewsOptions, type V9SearchAllRentalsAtOnceInput, type V9SearchPagesInput, type V9SearchSearchInput, type V9SearchSearchOutput, type V9SearchSearchOutputItem, type V9SearchSearchSort, type V9StartDateSelectedAvailabilityOutput, type V9Video, type V9VideosGetVideosInput, type V9VoucherValidateInput, type V9VoucherValidateOutput, type V9VoucherValidityReason, 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 WebsiteRegion, type WebsiteRegions, type WebsiteSDK, type WebsiteSDKAllRentalsAtOnce, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10AllRentalsAtOnce, type WebsiteSDKV10AllRentalsAtOnceLive, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9AllRentalsAtOnce, type WebsiteSDKV9AllRentalsAtOnceLive, type WebsiteSDKV9Live, type WebsiteSDKV9Static, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
8008
+ export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, 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, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, 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, type Money, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RegionsGetRegionsInput, type RentalCapacity, type RentalFact, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, type SearchAllRentalsAtOnceInput, type SearchMapSearchInput, SearchMapSearchInputSchema, type SearchMapSearchOutput, type SearchMapSearchOutputItem, SearchMapSearchOutputSchema, type SearchMoney, 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, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9AvailabilityGetBlockedRangesInput, type V9AvailabilityGetBlockedRangesOutput, type V9BlockedRange, type V9EndDateOption, type V9InitialAvailabilityOutput, type V9InsurancePolicy, type V9InsuranceReadPolicyInput, type V9InsuranceRevokePolicyInput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9QuoteCreateInsurancePreContractInput, type V9RentalBlockedRanges, type V9RentalsGetRentalsByIdsInput, type V9ReviewCriterion, type V9ReviewCriterionDataAttribute, type V9ReviewsOptions, type V9SearchAllRentalsAtOnceInput, type V9SearchPagesInput, type V9SearchSearchInput, type V9SearchSearchOutput, type V9SearchSearchOutputItem, type V9SearchSearchSort, type V9StartDateSelectedAvailabilityOutput, type V9Video, type V9VideosGetVideosInput, type V9VoucherValidateInput, type V9VoucherValidateOutput, type V9VoucherValidityReason, 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 WebsiteRegion, type WebsiteRegions, type WebsiteSDK, type WebsiteSDKAllRentalsAtOnce, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10AllRentalsAtOnce, type WebsiteSDKV10AllRentalsAtOnceLive, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9AllRentalsAtOnce, type WebsiteSDKV9AllRentalsAtOnceLive, type WebsiteSDKV9Live, type WebsiteSDKV9Static, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as QuoteSchema, A as DocumentResourceSchema, At as bookInsuranceEffect, B as ErgoPersonSchema, Bt as quoteEffect, C as ApiEnvelopeBaseSchema, Ct as V1_BASE_URL, D as CustomerUnitSummarySchema, Dt as decodeV1OperationResponse, E as CurrentMemberResponseSchema, Et as VideoResponseSchema, F as ErgoAddressSchema, Ft as getInitialAvailabilityEffect, G as FacilityListResponseSchema, Gt as selectInsurancePaymentEffect, H as ErgoPolicyNumberRequestSchema, Ht as searchEffect, I as ErgoBankSchema, It as getRentalsEffect, J as PaymentScheduleItemSchema, Jt as submitPaymentOptionEffect, K as OnOfficeUnitCollectionResponseSchema, Kt as submitContactEffect, L as ErgoBookRequestSchema, Lt as getStartDateSelectedAvailabilityEffect, M as DocumentStatusUpdateRequestSchema, Mt as createInsurancePreContractEffect, N as DocumentSummarySchema, Nt as getBankTransferDetailsEffect, O as DocumentCollectionResponseSchema, Ot as addAdditionalServiceEffect, P as DocumentTypeSchema, Pt as getFiltersEffect, Q as QuotePricesResponseSchema, R as ErgoCommonFieldsSchema, Rt as getTermsAndPrivacyPolicyEffect, S as makeV1OpenApiClientLive, St as UnitServicePriceSchema, T as CalendarResponseSchema, Tt as VideoListResponseSchema, U as ErgoReadPreContractRequestSchema, Ut as selectCancellationPolicyEffect, V as ErgoPlanSearchRequestSchema, Vt as removeAdditionalServiceEffect, W as ErgoTripAndCustomerRequestSchema, Wt as selectInsuranceEffect, X as QuoteLineSchema, Xt as defineV9PropertyHighlightSources, Y as PaymentScheduleSchema, Yt as defineWebsiteSDKOptions, Z as QuotePricesPayloadSchema, Zt as defineV9PropertyHighlightSourcesFromUnknown, _t as UnitIdsResponseSchema, at as SearchPropertiesResponseSchema, b as V1OpenApiClientError, bt as UnitOfferSchema, ct as ServiceLimitSchema, dt as SetupResponseSchema, et as QuoteServiceSchema, ft as TileCollectionResponseSchema, g as makeV0OpenApiClientLive, gt as TravelInsuranceBookingStoreRequestSchema, h as makeV0OpenApiClientFetchLive, ht as TravelInsuranceBookingSchema, it as RoomImageSchema, j as DocumentStatusSchema, jt as clearAdditionalServicesEffect, k as DocumentResourceResponseSchema, kt as bookEffect, lt as ServiceListResponseSchema, m as V0OpenApiClientError, mt as TileTagSchema, nt as RawVofficeObjectSchema, ot as ServiceBeonDataSchema, p as V0OpenApiClient, pt as TileSchema, q as OnOfficeUnitSchema, qt as submitPaymentOption, rt as RegionListResponseSchema, st as ServiceImageSchema, t as createWebsiteSDK, tt as RawObjectResponseSchema, ut as SetupDataSchema, vt as UnitListItemSchema, w as CalendarDaySchema, wt as V1_OPERATIONS, x as makeV1OpenApiClientFetchLive, xt as UnitResponseSchema, y as V1OpenApiClient, yt as UnitListResponseSchema, z as ErgoCreatePreContractRequestSchema, zt as mapSearchEffect } from "./client-C6r06QHZ.mjs";
1
+ import { $ as QuoteSchema, A as DocumentResourceSchema, At as bookInsuranceEffect, B as ErgoPersonSchema, Bt as quoteEffect, C as ApiEnvelopeBaseSchema, Ct as V1_BASE_URL, D as CustomerUnitSummarySchema, Dt as decodeV1OperationResponse, E as CurrentMemberResponseSchema, Et as VideoResponseSchema, F as ErgoAddressSchema, Ft as getInitialAvailabilityEffect, G as FacilityListResponseSchema, Gt as selectInsurancePaymentEffect, H as ErgoPolicyNumberRequestSchema, Ht as searchEffect, I as ErgoBankSchema, It as getRentalsEffect, J as PaymentScheduleItemSchema, Jt as submitPaymentOptionEffect, K as OnOfficeUnitCollectionResponseSchema, Kt as submitContactEffect, L as ErgoBookRequestSchema, Lt as getStartDateSelectedAvailabilityEffect, M as DocumentStatusUpdateRequestSchema, Mt as createInsurancePreContractEffect, N as DocumentSummarySchema, Nt as getBankTransferDetailsEffect, O as DocumentCollectionResponseSchema, Ot as addAdditionalServiceEffect, P as DocumentTypeSchema, Pt as getFiltersEffect, Q as QuotePricesResponseSchema, R as ErgoCommonFieldsSchema, Rt as getTermsAndPrivacyPolicyEffect, S as makeV1OpenApiClientLive, St as UnitServicePriceSchema, T as CalendarResponseSchema, Tt as VideoListResponseSchema, U as ErgoReadPreContractRequestSchema, Ut as selectCancellationPolicyEffect, V as ErgoPlanSearchRequestSchema, Vt as removeAdditionalServiceEffect, W as ErgoTripAndCustomerRequestSchema, Wt as selectInsuranceEffect, X as QuoteLineSchema, Xt as defineV9PropertyHighlightSources, Y as PaymentScheduleSchema, Yt as defineWebsiteSDKOptions, Z as QuotePricesPayloadSchema, Zt as defineV9PropertyHighlightSourcesFromUnknown, _t as UnitIdsResponseSchema, at as SearchPropertiesResponseSchema, b as V1OpenApiClientError, bt as UnitOfferSchema, ct as ServiceLimitSchema, dt as SetupResponseSchema, et as QuoteServiceSchema, ft as TileCollectionResponseSchema, g as makeV0OpenApiClientLive, gt as TravelInsuranceBookingStoreRequestSchema, h as makeV0OpenApiClientFetchLive, ht as TravelInsuranceBookingSchema, it as RoomImageSchema, j as DocumentStatusSchema, jt as clearAdditionalServicesEffect, k as DocumentResourceResponseSchema, kt as bookEffect, lt as ServiceListResponseSchema, m as V0OpenApiClientError, mt as TileTagSchema, nt as RawVofficeObjectSchema, ot as ServiceBeonDataSchema, p as V0OpenApiClient, pt as TileSchema, q as OnOfficeUnitSchema, qt as submitPaymentOption, rt as RegionListResponseSchema, st as ServiceImageSchema, t as createWebsiteSDK, tt as RawObjectResponseSchema, ut as SetupDataSchema, vt as UnitListItemSchema, w as CalendarDaySchema, wt as V1_OPERATIONS, x as makeV1OpenApiClientFetchLive, xt as UnitResponseSchema, y as V1OpenApiClient, yt as UnitListResponseSchema, z as ErgoCreatePreContractRequestSchema, zt as mapSearchEffect } from "./client-DXqHhnpA.mjs";
2
2
  import { AdditionalServiceLimitExceeded, CoreSDKError, CoreSDKError as CMSError, CustomAttributeCatalogSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchMapSearchInputSchema, SearchMapSearchOutputSchema, 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,8 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/3.2.0/CHANGELOG.md`: release notes for 3.2.0
8
+ - `versions/3.1.1/CHANGELOG.md`: release notes for 3.1.1
7
9
  - `versions/3.1.0/CHANGELOG.md`: release notes for 3.1.0
8
10
  - `versions/3.0.0/CHANGELOG.md`: release notes for 3.0.0
9
11
  - `versions/2.38.0/CHANGELOG.md`: release notes for 2.38.0
@@ -4,6 +4,8 @@
4
4
 
5
5
  Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
6
6
 
7
+ - `versions/3.2.0/MIGRATION.md`: Migration: 3.1.1 to 3.2.0
8
+ - `versions/3.1.1/MIGRATION.md`: Migration: 3.1.0 to 3.1.1
7
9
  - `versions/3.1.0/MIGRATION.md`: Migration: 3.0.0 to 3.1.0
8
10
  - `versions/3.0.0/MIGRATION.md`: Migration: 2.38.0 to 3.0.0
9
11
  - `versions/2.38.0/MIGRATION.md`: Migration: 2.37.1 to 2.38.0
@@ -57,6 +57,7 @@ Initial availability returns `Promise<InitialAvailabilityOutput>`.
57
57
  "isAvailableDate": true,
58
58
  "status": "available",
59
59
  "formattedPrice": "120.00 EUR",
60
+ "price": { "amount": 12000, "currency": "EUR" },
60
61
  "tooltip": null
61
62
  },
62
63
  "2026-07-02": {
@@ -64,6 +65,7 @@ Initial availability returns `Promise<InitialAvailabilityOutput>`.
64
65
  "isAvailableDate": true,
65
66
  "status": "check_in_not_allowed",
66
67
  "formattedPrice": "120.00 EUR",
68
+ "price": { "amount": 12000, "currency": "EUR" },
67
69
  "tooltip": "Arrival is not possible on this date."
68
70
  }
69
71
  },
@@ -94,6 +96,11 @@ Start-date-selected availability returns `Promise<StartDateSelectedAvailabilityO
94
96
  }
95
97
  ```
96
98
 
99
+ A day with a `formattedPrice` also states it as a number in `price`: `amount` in the
100
+ currency's minor unit (`12000` = €120.00) and `currency`. `price` is omitted exactly where
101
+ `formattedPrice` is null. Show the text, and compare or calculate with the number, never by
102
+ parsing the text: its separators change with the locale.
103
+
97
104
  Common statuses include `available`, `before_today`, `check_in_not_allowed`, `no_valid_check_out_from_start`, `after_last_bookable_date`, and `unavailable`. End-date results can also return `same_day`, `not_after_selected_start`, `minimum_stay_not_met`, `check_out_not_allowed`, and range-crossing statuses.
98
105
 
99
106
  ### Legacy v9 Calendar-Day Prices
@@ -132,8 +139,8 @@ Each night is priced by its own season, as the quote does.
132
139
  - `getStartDateSelectedAvailability` returns `formattedPrice` on every day
133
140
  (`V9StartDateSelectedAvailabilityOutput`). On a day that can be the end date
134
141
  it is the price of the last night of a stay from the selected start date to
135
- that day, at the rate for that number of nights. On all other days it is
136
- `null`.
142
+ that day, at the rate for that number of nights, and `price` states it as a
143
+ number. On all other days it is `null` and `price` is omitted.
137
144
 
138
145
  When the rental's price list cannot be loaded or has no rate for a day, both
139
146
  calls use the calendar price described above. The price list is cached per
@@ -85,8 +85,11 @@ Sample item:
85
85
  }
86
86
  ],
87
87
  "summary": {
88
- "rating": "4.8",
89
- "count": "12",
88
+ "rating": "4.8/5",
89
+ "count": "12 reviews",
90
+ "averageRating": 4.8,
91
+ "maxRating": 5,
92
+ "ratingCount": 12,
90
93
  "classification": "Exceptional"
91
94
  }
92
95
  }
@@ -448,6 +451,8 @@ For v10, public answers with the same form-response ID are combined into one rev
448
451
 
449
452
  `createdAt` is the form response's creation timestamp, not a travel date. A text-only rental can have `reviews.items` without `reviews.summary`, so check the summary independently. The localized `summary.count` describes form responses with valid ratings and does not necessarily equal `items.length`. It reads `reviews.summary.count.one` for one rating and `reviews.summary.count` otherwise.
450
453
 
454
+ `summary.rating` and `summary.count` are texts for display; their wording and separators change with the locale and the translations. For stars, sorting or structured data, read the numbers next to them on both backends: `averageRating` (the same average as the text, rounded up to one decimal), `maxRating` (`5`) and `ratingCount` (the number in `count`).
455
+
451
456
  `summary.classification` is the rating band, translated as `reviews.summary.classification.<band>`, on both backends:
452
457
 
453
458
  | Average | Band | de-DE | en-US |
@@ -632,6 +632,7 @@ type SearchDiscount = {
632
632
  readonly applied: readonly {
633
633
  readonly label: string;
634
634
  readonly formattedAmount: string;
635
+ readonly amount?: SearchMoney; // negative: -12300 = -€123.00
635
636
  readonly type?: string; // v10 only: EARLY_BIRD, LAST_MINUTE, …
636
637
  }[];
637
638
  };
@@ -673,6 +674,7 @@ Sample:
673
674
  {
674
675
  "label": "Frühbucher-Rabatt",
675
676
  "formattedAmount": "-123,00 €",
677
+ "amount": { "amount": -12300, "currency": "EUR" },
676
678
  "type": "EARLY_BIRD"
677
679
  }
678
680
  ]
@@ -730,7 +732,10 @@ and `formattedTotal`. A priced item or alternative period
730
732
  may also include `discount`. When it does, `formattedTotal` is the final price and
731
733
  `discount.formattedOriginalTotal` is the price before the applied discounts.
732
734
  Discount totals, labels, and amounts are localized and formatted for the requested
733
- locale; `total` and `discount.originalTotal` state the same totals as numbers. On v10,
735
+ locale; `total` and `discount.originalTotal` state the same totals as numbers, and each
736
+ applied discount's `amount` states its `formattedAmount`, negative like the text. For the
737
+ saving on the whole stay, subtract `total` from `discount.originalTotal`: on v10 the applied
738
+ amounts need not add up to it. On v10,
734
739
  each applied discount also states its `type`, which stays the same in every locale while
735
740
  its `label` is translated: filter or group campaigns by `type`, not by `label`. v9 states
736
741
  no type; its discount `label` is the name entered in the PMS, as the be-on! Hub sends it, in
@@ -0,0 +1,9 @@
1
+ # Changelog: 3.1.1
2
+
3
+ v9 ERGO insurance bookings without a BIC.
4
+
5
+ ## Fixed
6
+
7
+ - v9: `live.quote.bookInsurance` sends the SEPA debit's BIC to the be-on! Hub as empty when the
8
+ guest entered none. Before, it left the BIC out, and an ERGO booking without a BIC could fail
9
+ at the Hub. A BIC the guest entered is sent as before.
@@ -0,0 +1,10 @@
1
+ # Migration: 3.1.0 to 3.1.1
2
+
3
+ No changes required. A v9 site that passes `bic: ""` to `selectInsurancePayment` only so that ERGO
4
+ accepts a SEPA debit without a BIC can drop it: `iban` alone is enough.
5
+
6
+ ## 1. Upgrade
7
+
8
+ ```sh
9
+ pnpm add @v-office/website-sdk@3.1.1
10
+ ```
@@ -0,0 +1,19 @@
1
+ # Changelog: 3.2.0
2
+
3
+ The last figures a site had to read out of formatted text come as numbers too, on v9 and v10:
4
+ the review summary's average and count, each applied discount's amount, and calendar prices.
5
+ A site no longer parses "4.3/5", "4 Bewertungen", "-163,30 €" or "€120.00".
6
+
7
+ ## Added
8
+
9
+ - `averageRating`, `maxRating` (`5`) and `ratingCount` on `reviews.summary` of rentals. They
10
+ state the numbers in `rating` and `count`: the average is rounded up to one decimal as in the
11
+ text, and the count is of the reviews with a rating, which can be fewer than `items`.
12
+ - `amount` on each `discount.applied` entry of search items and alternative periods:
13
+ `formattedAmount` as `{ amount, currency }`, in the currency's minor unit and negative
14
+ (`-16330` = -€163.30). v9 states it in EUR, as it formats it.
15
+ - `price` on calendar days: `formattedPrice` as `{ amount, currency }`, omitted whenever
16
+ `formattedPrice` is null. On v9 also on the end dates of `getStartDateSelectedAvailability`,
17
+ where it is the price of the stay's last night.
18
+ - The type `Money`, the `{ amount, currency }` shape of these and of the search totals.
19
+ `SearchMoney` stays, as the same shape.
@@ -0,0 +1,26 @@
1
+ # Migration: 3.1.1 to 3.2.0
2
+
3
+ No changes required.
4
+
5
+ ## 1. Upgrade
6
+
7
+ ```sh
8
+ pnpm add @v-office/website-sdk@3.2.0
9
+ ```
10
+
11
+ ## 2. Optional: stop parsing review figures, discount amounts and calendar prices
12
+
13
+ The formatted texts change with the locale's separators ("1.033,39 €", "€1,033.39") and with
14
+ the translations' wording, so a number read out of them breaks between languages. Read the
15
+ numbers instead and keep the texts for display:
16
+
17
+ - Review stars and count: `reviews.summary.averageRating` (out of `maxRating`) and
18
+ `reviews.summary.ratingCount` instead of parsing `summary.rating` ("4.3/5") and
19
+ `summary.count` ("4 Bewertungen").
20
+ - A discount line: `discount.applied[].amount.amount` instead of parsing `formattedAmount`. It is
21
+ negative, like the text. For the saving on the whole stay, subtract `total.amount` from
22
+ `discount.originalTotal.amount`: on v10 the applied amounts need not add up to it.
23
+ - A calendar price: `calendarDays[date].price.amount` instead of parsing `formattedPrice`.
24
+ `price` is missing exactly where `formattedPrice` is null.
25
+
26
+ All amounts are in the currency's minor unit (`12000` = €120.00).
@@ -1,4 +1,4 @@
1
- import { Qt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-C6r06QHZ.mjs";
1
+ import { Qt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-DXqHhnpA.mjs";
2
2
  import { S as parseVofficeFeedbackData, _ as VofficeUnitDataPropertyCategoryValues, a as hubFiltersQuery, c as rentalIdsQuery, d as rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery, f as rentalsAllFeedbacksQuery, g as VofficeUnitDataPropertyCategoryLabelKeys, h as VofficeUnitDataFieldSchemas, i as facilityTextsQuery, p as rentalsAllWithoutFeedbacksQuery, s as rentalFacilitiesForObjectGroupRelationQuery, u as rentalTextsQuery, v as VofficeUnitDataPropertyMetadata, w as parseVofficeUnitData, x as parseVofficeFacilityData } from "./operations-Bc3WxjV8.mjs";
3
3
  import { a as toLocation, d as toLocalizedString, l as toCapacity, n as renderVofficePropertyAttribute, o as toFacilityImages, r as toV9Fact, s as toImages, t as toRentalHighlights, u as toAddress } from "./to-rental-highlights-9AbqVIso.mjs";
4
4
  import { CoreSDKError, makeTranslate, pushFact, renderResolvedCustomAttribute, toCustomAttributeFact, toCustomAttributeList, toFact, toResolvedCustomAttributeCategoryTranslationKey, toReviewClassification } from "@v-office/sdk-core";
@@ -426,6 +426,9 @@ const toReviews = ({ locale, translations, rental, options }) => Effect.gen(func
426
426
  maxRating: "5"
427
427
  }),
428
428
  count: renderTemplate(summaryCountTemplate, { count: ratings.length.toString() }),
429
+ averageRating: summaryRating,
430
+ maxRating: 5,
431
+ ratingCount: ratings.length,
429
432
  classification: yield* translations.translate(locale, `reviews.summary.classification.${classification}`),
430
433
  ...categories.length === 0 ? {} : { categories }
431
434
  }
@@ -1,4 +1,4 @@
1
- import { a as makeV9CustomAttributeFilterCapabilities, c as parseQueryParameters, d as toVoucherCode, l as toQueryString, o as toBasicQueryInputs, s as collectQueryParameters, u as applyVofficeFilterDerivedBasicQueryInputs } from "./client-C6r06QHZ.mjs";
1
+ import { a as makeV9CustomAttributeFilterCapabilities, c as parseQueryParameters, d as toVoucherCode, l as toQueryString, o as toBasicQueryInputs, s as collectQueryParameters, u as applyVofficeFilterDerivedBasicQueryInputs } from "./client-DXqHhnpA.mjs";
2
2
  import { n as mapSearchQuery, r as searchQuery, w as parseVofficeUnitData } from "./operations-Bc3WxjV8.mjs";
3
3
  import { a as toLocation, c as CAPACITY_DATA_ATTRIBUTES, i as toV9RentalHighlightKey, l as toCapacity, s as toImages, t as toRentalHighlights, u as toAddress } from "./to-rental-highlights-9AbqVIso.mjs";
4
4
  import { CoreSDKError, STABLE_SEARCH_INPUTS, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, parseChildrenAges, parseOccupancyCount, resolveExpandedCompositions, toFormattedSearchPrice, toIsoDateFromPeriodQueryDate, toStableSearchInputBackendQueryKeys, toStableSearchInputParameterValues, toStableSearchInputQueryKeys, toUnusedFilterKeys } from "@v-office/sdk-core";
@@ -287,7 +287,11 @@ const toSearchPriceFields = ({ locale, calc }) => {
287
287
  amount: calc.total - calc.oTotal,
288
288
  currency: DEFAULT_V9_SEARCH_CURRENCY,
289
289
  locale
290
- })
290
+ }),
291
+ amount: {
292
+ amount: calc.total - calc.oTotal,
293
+ currency: DEFAULT_V9_SEARCH_CURRENCY
294
+ }
291
295
  }]
292
296
  }
293
297
  };
@@ -4,6 +4,8 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/3.2.0/CHANGELOG.md`: release notes for 3.2.0
8
+ - `versions/3.1.1/CHANGELOG.md`: release notes for 3.1.1
7
9
  - `versions/3.1.0/CHANGELOG.md`: release notes for 3.1.0
8
10
  - `versions/3.0.0/CHANGELOG.md`: release notes for 3.0.0
9
11
  - `versions/2.38.0/CHANGELOG.md`: release notes for 2.38.0
@@ -4,6 +4,8 @@
4
4
 
5
5
  Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
6
6
 
7
+ - `versions/3.2.0/MIGRATION.md`: Migration: 3.1.1 to 3.2.0
8
+ - `versions/3.1.1/MIGRATION.md`: Migration: 3.1.0 to 3.1.1
7
9
  - `versions/3.1.0/MIGRATION.md`: Migration: 3.0.0 to 3.1.0
8
10
  - `versions/3.0.0/MIGRATION.md`: Migration: 2.38.0 to 3.0.0
9
11
  - `versions/2.38.0/MIGRATION.md`: Migration: 2.37.1 to 2.38.0
@@ -57,6 +57,7 @@ Initial availability returns `Promise<InitialAvailabilityOutput>`.
57
57
  "isAvailableDate": true,
58
58
  "status": "available",
59
59
  "formattedPrice": "120.00 EUR",
60
+ "price": { "amount": 12000, "currency": "EUR" },
60
61
  "tooltip": null
61
62
  },
62
63
  "2026-07-02": {
@@ -64,6 +65,7 @@ Initial availability returns `Promise<InitialAvailabilityOutput>`.
64
65
  "isAvailableDate": true,
65
66
  "status": "check_in_not_allowed",
66
67
  "formattedPrice": "120.00 EUR",
68
+ "price": { "amount": 12000, "currency": "EUR" },
67
69
  "tooltip": "Arrival is not possible on this date."
68
70
  }
69
71
  },
@@ -94,6 +96,11 @@ Start-date-selected availability returns `Promise<StartDateSelectedAvailabilityO
94
96
  }
95
97
  ```
96
98
 
99
+ A day with a `formattedPrice` also states it as a number in `price`: `amount` in the
100
+ currency's minor unit (`12000` = €120.00) and `currency`. `price` is omitted exactly where
101
+ `formattedPrice` is null. Show the text, and compare or calculate with the number, never by
102
+ parsing the text: its separators change with the locale.
103
+
97
104
  Common statuses include `available`, `before_today`, `check_in_not_allowed`, `no_valid_check_out_from_start`, `after_last_bookable_date`, and `unavailable`. End-date results can also return `same_day`, `not_after_selected_start`, `minimum_stay_not_met`, `check_out_not_allowed`, and range-crossing statuses.
98
105
 
99
106
  ### Legacy v9 Calendar-Day Prices
@@ -132,8 +139,8 @@ Each night is priced by its own season, as the quote does.
132
139
  - `getStartDateSelectedAvailability` returns `formattedPrice` on every day
133
140
  (`V9StartDateSelectedAvailabilityOutput`). On a day that can be the end date
134
141
  it is the price of the last night of a stay from the selected start date to
135
- that day, at the rate for that number of nights. On all other days it is
136
- `null`.
142
+ that day, at the rate for that number of nights, and `price` states it as a
143
+ number. On all other days it is `null` and `price` is omitted.
137
144
 
138
145
  When the rental's price list cannot be loaded or has no rate for a day, both
139
146
  calls use the calendar price described above. The price list is cached per
@@ -85,8 +85,11 @@ Sample item:
85
85
  }
86
86
  ],
87
87
  "summary": {
88
- "rating": "4.8",
89
- "count": "12",
88
+ "rating": "4.8/5",
89
+ "count": "12 reviews",
90
+ "averageRating": 4.8,
91
+ "maxRating": 5,
92
+ "ratingCount": 12,
90
93
  "classification": "Exceptional"
91
94
  }
92
95
  }
@@ -448,6 +451,8 @@ For v10, public answers with the same form-response ID are combined into one rev
448
451
 
449
452
  `createdAt` is the form response's creation timestamp, not a travel date. A text-only rental can have `reviews.items` without `reviews.summary`, so check the summary independently. The localized `summary.count` describes form responses with valid ratings and does not necessarily equal `items.length`. It reads `reviews.summary.count.one` for one rating and `reviews.summary.count` otherwise.
450
453
 
454
+ `summary.rating` and `summary.count` are texts for display; their wording and separators change with the locale and the translations. For stars, sorting or structured data, read the numbers next to them on both backends: `averageRating` (the same average as the text, rounded up to one decimal), `maxRating` (`5`) and `ratingCount` (the number in `count`).
455
+
451
456
  `summary.classification` is the rating band, translated as `reviews.summary.classification.<band>`, on both backends:
452
457
 
453
458
  | Average | Band | de-DE | en-US |
@@ -632,6 +632,7 @@ type SearchDiscount = {
632
632
  readonly applied: readonly {
633
633
  readonly label: string;
634
634
  readonly formattedAmount: string;
635
+ readonly amount?: SearchMoney; // negative: -12300 = -€123.00
635
636
  readonly type?: string; // v10 only: EARLY_BIRD, LAST_MINUTE, …
636
637
  }[];
637
638
  };
@@ -673,6 +674,7 @@ Sample:
673
674
  {
674
675
  "label": "Frühbucher-Rabatt",
675
676
  "formattedAmount": "-123,00 €",
677
+ "amount": { "amount": -12300, "currency": "EUR" },
676
678
  "type": "EARLY_BIRD"
677
679
  }
678
680
  ]
@@ -730,7 +732,10 @@ and `formattedTotal`. A priced item or alternative period
730
732
  may also include `discount`. When it does, `formattedTotal` is the final price and
731
733
  `discount.formattedOriginalTotal` is the price before the applied discounts.
732
734
  Discount totals, labels, and amounts are localized and formatted for the requested
733
- locale; `total` and `discount.originalTotal` state the same totals as numbers. On v10,
735
+ locale; `total` and `discount.originalTotal` state the same totals as numbers, and each
736
+ applied discount's `amount` states its `formattedAmount`, negative like the text. For the
737
+ saving on the whole stay, subtract `total` from `discount.originalTotal`: on v10 the applied
738
+ amounts need not add up to it. On v10,
734
739
  each applied discount also states its `type`, which stays the same in every locale while
735
740
  its `label` is translated: filter or group campaigns by `type`, not by `label`. v9 states
736
741
  no type; its discount `label` is the name entered in the PMS, as the be-on! Hub sends it, in
@@ -0,0 +1,9 @@
1
+ # Changelog: 3.1.1
2
+
3
+ v9 ERGO insurance bookings without a BIC.
4
+
5
+ ## Fixed
6
+
7
+ - v9: `live.quote.bookInsurance` sends the SEPA debit's BIC to the be-on! Hub as empty when the
8
+ guest entered none. Before, it left the BIC out, and an ERGO booking without a BIC could fail
9
+ at the Hub. A BIC the guest entered is sent as before.
@@ -0,0 +1,10 @@
1
+ # Migration: 3.1.0 to 3.1.1
2
+
3
+ No changes required. A v9 site that passes `bic: ""` to `selectInsurancePayment` only so that ERGO
4
+ accepts a SEPA debit without a BIC can drop it: `iban` alone is enough.
5
+
6
+ ## 1. Upgrade
7
+
8
+ ```sh
9
+ pnpm add @v-office/website-sdk@3.1.1
10
+ ```
@@ -0,0 +1,3 @@
1
+ {
2
+ "componentsAffectedByHeadlessChange": []
3
+ }
@@ -0,0 +1,19 @@
1
+ # Changelog: 3.2.0
2
+
3
+ The last figures a site had to read out of formatted text come as numbers too, on v9 and v10:
4
+ the review summary's average and count, each applied discount's amount, and calendar prices.
5
+ A site no longer parses "4.3/5", "4 Bewertungen", "-163,30 €" or "€120.00".
6
+
7
+ ## Added
8
+
9
+ - `averageRating`, `maxRating` (`5`) and `ratingCount` on `reviews.summary` of rentals. They
10
+ state the numbers in `rating` and `count`: the average is rounded up to one decimal as in the
11
+ text, and the count is of the reviews with a rating, which can be fewer than `items`.
12
+ - `amount` on each `discount.applied` entry of search items and alternative periods:
13
+ `formattedAmount` as `{ amount, currency }`, in the currency's minor unit and negative
14
+ (`-16330` = -€163.30). v9 states it in EUR, as it formats it.
15
+ - `price` on calendar days: `formattedPrice` as `{ amount, currency }`, omitted whenever
16
+ `formattedPrice` is null. On v9 also on the end dates of `getStartDateSelectedAvailability`,
17
+ where it is the price of the stay's last night.
18
+ - The type `Money`, the `{ amount, currency }` shape of these and of the search totals.
19
+ `SearchMoney` stays, as the same shape.
@@ -0,0 +1,26 @@
1
+ # Migration: 3.1.1 to 3.2.0
2
+
3
+ No changes required.
4
+
5
+ ## 1. Upgrade
6
+
7
+ ```sh
8
+ pnpm add @v-office/website-sdk@3.2.0
9
+ ```
10
+
11
+ ## 2. Optional: stop parsing review figures, discount amounts and calendar prices
12
+
13
+ The formatted texts change with the locale's separators ("1.033,39 €", "€1,033.39") and with
14
+ the translations' wording, so a number read out of them breaks between languages. Read the
15
+ numbers instead and keep the texts for display:
16
+
17
+ - Review stars and count: `reviews.summary.averageRating` (out of `maxRating`) and
18
+ `reviews.summary.ratingCount` instead of parsing `summary.rating` ("4.3/5") and
19
+ `summary.count` ("4 Bewertungen").
20
+ - A discount line: `discount.applied[].amount.amount` instead of parsing `formattedAmount`. It is
21
+ negative, like the text. For the saving on the whole stay, subtract `total.amount` from
22
+ `discount.originalTotal.amount`: on v10 the applied amounts need not add up to it.
23
+ - A calendar price: `calendarDays[date].price.amount` instead of parsing `formattedPrice`.
24
+ `price` is missing exactly where `formattedPrice` is null.
25
+
26
+ All amounts are in the currency's minor unit (`12000` = €120.00).
@@ -0,0 +1,3 @@
1
+ {
2
+ "componentsAffectedByHeadlessChange": []
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v-office/website-sdk",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
4
4
  "description": "Website-facing SDK facade backed by @v-office/sdk-core",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -48,7 +48,7 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@graphql-typed-document-node/core": "3.2.0",
51
- "@v-office/sdk-core": "1.30.0",
51
+ "@v-office/sdk-core": "1.31.0",
52
52
  "effect": "4.0.0-rc.115",
53
53
  "graphql": "17.0.2",
54
54
  "yaml": "^2.9.0"