@v-office/website-sdk 2.20.1 → 2.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as quoteEffect, B as OnOfficeUnitSchema, Bt as defineV9PropertyHighlightSources, 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, Vt as defineV9PropertyHighlightSourcesFromUnknown, 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-Bl21lJQb.mjs";
1
+ import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as quoteEffect, B as OnOfficeUnitSchema, Bt as defineV9PropertyHighlightSources, 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, Vt as defineV9PropertyHighlightSourcesFromUnknown, 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-BC2JLEak.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,8 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/2.20.3/CHANGELOG.md`: release notes for 2.20.3
8
+ - `versions/2.20.2/CHANGELOG.md`: release notes for 2.20.2
7
9
  - `versions/2.20.1/CHANGELOG.md`: release notes for 2.20.1
8
10
  - `versions/2.20.0/CHANGELOG.md`: release notes for 2.20.0
9
11
  - `versions/2.19.0/CHANGELOG.md`: release notes for 2.19.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/2.20.3/MIGRATION.md`: Migration: 2.20.2 to 2.20.3
8
+ - `versions/2.20.2/MIGRATION.md`: Migration: 2.20.1 to 2.20.2
7
9
  - `versions/2.20.1/MIGRATION.md`: Migration: 2.20.0 to 2.20.1
8
10
  - `versions/2.20.0/MIGRATION.md`: Migration: 2.19.0 to 2.20.0
9
11
  - `versions/2.19.0/MIGRATION.md`: Migration: 2.18.2 to 2.19.0
@@ -1,6 +1,10 @@
1
1
  # Migration: 2.20.0 to 2.20.1
2
2
 
3
- <!-- What a consumer has to do to move to this version. "No changes required." is a complete guide for a compatible release. -->
3
+ No changes required. The `getSearch` signature and output type are unchanged;
4
+ only the price of an exact-date match in the legacy-v9 path is affected (see
5
+ the changelog). The published tarball of 2.20.1 still carries the scaffold
6
+ comment in this file; it was written on 2026-09-15, the day the release gate
7
+ learned to refuse scaffold notes.
4
8
 
5
9
  ## 1. Upgrade
6
10
 
@@ -0,0 +1,19 @@
1
+ # Changelog: 2.20.2
2
+
3
+ Quoting a rental against a v9 hub failed outright whenever the agency had no
4
+ add-on products booked. The price had already been loaded in full at that point
5
+ and was discarded anyway.
6
+
7
+ ## Fixed
8
+
9
+ - `quote` now returns a price against a v9 hub even when the hub sends its
10
+ add-on settings as an empty list instead of an empty object. Before, the
11
+ whole quote request aborted there: the website showed no price and a booking
12
+ was not possible. The same fix covers every other free-form settings map the
13
+ hub can return empty.
14
+
15
+ ## Unchanged
16
+
17
+ - The input and output types of `quote`.
18
+ - Price, line items and insurance options when the hub does have add-on
19
+ products.
@@ -0,0 +1,11 @@
1
+ # Migration: 2.20.1 to 2.20.2
2
+
3
+ No changes required. The `quote` signature and its result type are unchanged;
4
+ only whether a price comes back at all against certain v9 hubs is affected (see
5
+ the changelog).
6
+
7
+ ## 1. Upgrade
8
+
9
+ ```sh
10
+ pnpm add @v-office/website-sdk@2.20.2
11
+ ```
@@ -0,0 +1,8 @@
1
+ # Changelog: 2.20.3
2
+
3
+ This release updates the packaged `@v-office/sdk-core` dependency to `1.22.0`.
4
+
5
+ ## Changed
6
+
7
+ - The exact core dependency now includes owner period-blocking, rental-review and selected-service
8
+ summary capabilities. Website-facing behavior is unchanged.
@@ -0,0 +1,9 @@
1
+ # Migration: 2.20.2 to 2.20.3
2
+
3
+ ## 1. Upgrade
4
+
5
+ ```sh
6
+ pnpm add @v-office/website-sdk@2.20.3
7
+ ```
8
+
9
+ No changes are required. This patch only updates the packaged core dependency.
@@ -1,4 +1,4 @@
1
- import { Ht as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-Bl21lJQb.mjs";
1
+ import { Ht as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-BC2JLEak.mjs";
2
2
  import { c as parseVofficeUnitData, i as VofficeUnitDataPropertyMetadata, n as VofficeUnitDataPropertyCategoryLabelKeys, o as parseVofficeFacilityData, r as VofficeUnitDataPropertyCategoryValues, s as parseVofficeFeedbackData, t as VofficeUnitDataFieldSchemas } from "./v9-data-BnYxa2Ek.mjs";
3
3
  import { a as toAddress, c as rentalFacilitiesForObjectGroupRelationQuery, d as rentalsAllFeedbacksQuery, f as rentalsAllWithoutFeedbacksQuery, i as toImages, l as rentalIdsQuery, n as renderVofficePropertyAttribute, o as toLocalizedString, r as toFacilityImages, t as toRentalHighlights, u as rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery } from "./to-rental-highlights-CN-wpRh3.mjs";
4
4
  import { CoreSDKError, makeTranslate, renderResolvedCustomAttribute, toCustomAttributeList, toResolvedCustomAttributeCategoryTranslationKey } from "@v-office/sdk-core";
@@ -1,4 +1,4 @@
1
- import { a as parseQueryParameters, i as collectQueryParameters, n as makeV9CustomAttributeFilterCapabilities, o as toQueryString, r as toBasicQueryInputs, s as applyVofficeFilterDerivedBasicQueryInputs } from "./client-Bl21lJQb.mjs";
1
+ import { a as parseQueryParameters, i as collectQueryParameters, n as makeV9CustomAttributeFilterCapabilities, o as toQueryString, r as toBasicQueryInputs, s as applyVofficeFilterDerivedBasicQueryInputs } from "./client-BC2JLEak.mjs";
2
2
  import { c as parseVofficeUnitData, t as VofficeUnitDataFieldSchemas } from "./v9-data-BnYxa2Ek.mjs";
3
3
  import { a as toAddress, i as toImages, s as searchQuery, t as toRentalHighlights } from "./to-rental-highlights-CN-wpRh3.mjs";
4
4
  import { CoreSDKError, STABLE_SEARCH_INPUTS, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, parseChildrenAges, parseOccupancyCount, resolveExpandedCompositions, toFormattedSearchPrice, toIsoDateFromPeriodQueryDate, toStableSearchInputBackendQueryKeys, toStableSearchInputParameterValues, toStableSearchInputQueryKeys, toUnusedFilterKeys } from "@v-office/sdk-core";
@@ -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/2.20.3/CHANGELOG.md`: release notes for 2.20.3
8
+ - `versions/2.20.2/CHANGELOG.md`: release notes for 2.20.2
7
9
  - `versions/2.20.1/CHANGELOG.md`: release notes for 2.20.1
8
10
  - `versions/2.20.0/CHANGELOG.md`: release notes for 2.20.0
9
11
  - `versions/2.19.0/CHANGELOG.md`: release notes for 2.19.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/2.20.3/MIGRATION.md`: Migration: 2.20.2 to 2.20.3
8
+ - `versions/2.20.2/MIGRATION.md`: Migration: 2.20.1 to 2.20.2
7
9
  - `versions/2.20.1/MIGRATION.md`: Migration: 2.20.0 to 2.20.1
8
10
  - `versions/2.20.0/MIGRATION.md`: Migration: 2.19.0 to 2.20.0
9
11
  - `versions/2.19.0/MIGRATION.md`: Migration: 2.18.2 to 2.19.0
@@ -1,6 +1,10 @@
1
1
  # Migration: 2.20.0 to 2.20.1
2
2
 
3
- <!-- What a consumer has to do to move to this version. "No changes required." is a complete guide for a compatible release. -->
3
+ No changes required. The `getSearch` signature and output type are unchanged;
4
+ only the price of an exact-date match in the legacy-v9 path is affected (see
5
+ the changelog). The published tarball of 2.20.1 still carries the scaffold
6
+ comment in this file; it was written on 2026-09-15, the day the release gate
7
+ learned to refuse scaffold notes.
4
8
 
5
9
  ## 1. Upgrade
6
10
 
@@ -0,0 +1,19 @@
1
+ # Changelog: 2.20.2
2
+
3
+ Quoting a rental against a v9 hub failed outright whenever the agency had no
4
+ add-on products booked. The price had already been loaded in full at that point
5
+ and was discarded anyway.
6
+
7
+ ## Fixed
8
+
9
+ - `quote` now returns a price against a v9 hub even when the hub sends its
10
+ add-on settings as an empty list instead of an empty object. Before, the
11
+ whole quote request aborted there: the website showed no price and a booking
12
+ was not possible. The same fix covers every other free-form settings map the
13
+ hub can return empty.
14
+
15
+ ## Unchanged
16
+
17
+ - The input and output types of `quote`.
18
+ - Price, line items and insurance options when the hub does have add-on
19
+ products.
@@ -0,0 +1,11 @@
1
+ # Migration: 2.20.1 to 2.20.2
2
+
3
+ No changes required. The `quote` signature and its result type are unchanged;
4
+ only whether a price comes back at all against certain v9 hubs is affected (see
5
+ the changelog).
6
+
7
+ ## 1. Upgrade
8
+
9
+ ```sh
10
+ pnpm add @v-office/website-sdk@2.20.2
11
+ ```
@@ -0,0 +1,3 @@
1
+ {
2
+ "componentsAffectedByHeadlessChange": []
3
+ }
@@ -0,0 +1,8 @@
1
+ # Changelog: 2.20.3
2
+
3
+ This release updates the packaged `@v-office/sdk-core` dependency to `1.22.0`.
4
+
5
+ ## Changed
6
+
7
+ - The exact core dependency now includes owner period-blocking, rental-review and selected-service
8
+ summary capabilities. Website-facing behavior is unchanged.
@@ -0,0 +1,9 @@
1
+ # Migration: 2.20.2 to 2.20.3
2
+
3
+ ## 1. Upgrade
4
+
5
+ ```sh
6
+ pnpm add @v-office/website-sdk@2.20.3
7
+ ```
8
+
9
+ No changes are required. This patch only updates the packaged core dependency.
@@ -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": "2.20.1",
3
+ "version": "2.20.3",
4
4
  "description": "Website-facing SDK facade backed by @v-office/sdk-core",
5
5
  "bin": {
6
6
  "website-sdk": "./dist/cli.mjs"
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@graphql-typed-document-node/core": "3.2.0",
45
- "@v-office/sdk-core": "1.21.0",
45
+ "@v-office/sdk-core": "1.22.0",
46
46
  "effect": "4.0.0-rc.115",
47
47
  "graphql": "17.0.2",
48
48
  "yaml": "^2.9.0"
@@ -77,7 +77,8 @@
77
77
  "fmt": "oxfmt",
78
78
  "fmt:check": "oxfmt --check",
79
79
  "check": "pnpm run typecheck && pnpm run lint && pnpm run fmt:check",
80
- "test": "pnpm run test:v9:properties && pnpm run test:v9:rentals && pnpm run test:v9:availability && pnpm run test:v9:search && pnpm run build && node --test test/*.test.mjs",
80
+ "test": "pnpm run test:v9:openapi && pnpm run test:v9:properties && pnpm run test:v9:rentals && pnpm run test:v9:availability && pnpm run test:v9:search && pnpm run build && node --test test/*.test.mjs",
81
+ "test:v9:openapi": "node --test codegen/v9/php-record.test.ts src/legacy-v9/openapi/setup-response.test.ts src/legacy-v9/openapi/quote-response.test.ts",
81
82
  "test:v9:properties": "node --test codegen/v9/heuristic-generation/generate/property.test.ts src/legacy-v9/property-highlight-sources.test.ts src/legacy-v9/parser/rentals/render-property-attribute.test.ts src/legacy-v9/parser/rentals/to-property.test.ts src/legacy-v9/parser/rentals/to-rooms.test.ts",
82
83
  "test:v9:rentals": "node --test src/legacy-v9/static/associate-rentals-with-facilities-by-object-groups.test.ts",
83
84
  "test:v9:availability": "node --test src/legacy-v9/parser/availability/to-initial-availability-calendar-days.test.ts",