@v-office/website-sdk 3.2.0 → 3.2.1
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 +2 -2
- package/dist/{client-DXqHhnpA.mjs → client-F2V6hCg6.mjs} +3 -3
- package/dist/index.mjs +1 -1
- package/dist/instructions/CHANGELOG.md +1 -0
- package/dist/instructions/MIGRATION.md +1 -0
- package/dist/instructions/quote.md +5 -0
- package/dist/instructions/versions/3.2.1/CHANGELOG.md +13 -0
- package/dist/instructions/versions/3.2.1/MIGRATION.md +10 -0
- package/dist/{quote-cjFdLn0m.mjs → quote-Co8iWjF6.mjs} +1 -0
- package/dist/{rentals-C6PIx1RJ.mjs → rentals-DfDeL0Qk.mjs} +1 -1
- package/dist/{search-Dljn4VGV.mjs → search-_gISebZ1.mjs} +1 -1
- package/dist/translations/shared/de-DE/quote.json +1 -0
- package/dist/translations/shared/en-US/quote.json +1 -0
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/quote.md +5 -0
- package/instructions/versions/3.2.1/CHANGELOG.md +13 -0
- package/instructions/versions/3.2.1/MIGRATION.md +10 -0
- package/instructions/versions/3.2.1/release.json +3 -0
- package/package.json +2 -2
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-
|
|
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-F2V6hCg6.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.2.
|
|
20
|
+
var version = "3.2.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/cli/output.ts
|
|
23
23
|
const toJson = (value) => Effect.try({
|
|
@@ -6236,7 +6236,7 @@ const revokeV9InsurancePolicy = ({ policyNumber, booking, v1Client }) => Effect.
|
|
|
6236
6236
|
//#region src/legacy-v9/live/quote.ts
|
|
6237
6237
|
const loadQuoteRuntime = Effect.tryPromise({
|
|
6238
6238
|
try: async () => {
|
|
6239
|
-
return { toGuestQuote: (await import("./quote-
|
|
6239
|
+
return { toGuestQuote: (await import("./quote-Co8iWjF6.mjs")).toGuestQuote };
|
|
6240
6240
|
},
|
|
6241
6241
|
catch: (cause) => new CoreSDKError({
|
|
6242
6242
|
source: "v9",
|
|
@@ -6590,7 +6590,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
6590
6590
|
return page;
|
|
6591
6591
|
});
|
|
6592
6592
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
6593
|
-
try: () => import("./search-
|
|
6593
|
+
try: () => import("./search-_gISebZ1.mjs"),
|
|
6594
6594
|
catch: (cause) => new CoreSDKError({
|
|
6595
6595
|
source: "v9",
|
|
6596
6596
|
operation: "v9.search.runtime",
|
|
@@ -7501,7 +7501,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
|
|
|
7501
7501
|
});
|
|
7502
7502
|
};
|
|
7503
7503
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
7504
|
-
try: () => import("./rentals-
|
|
7504
|
+
try: () => import("./rentals-DfDeL0Qk.mjs"),
|
|
7505
7505
|
catch: (cause) => new CoreSDKError({
|
|
7506
7506
|
source: "v9",
|
|
7507
7507
|
operation: "v9.rentals.runtime",
|
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-
|
|
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-F2V6hCg6.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,7 @@
|
|
|
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.1/CHANGELOG.md`: release notes for 3.2.1
|
|
7
8
|
- `versions/3.2.0/CHANGELOG.md`: release notes for 3.2.0
|
|
8
9
|
- `versions/3.1.1/CHANGELOG.md`: release notes for 3.1.1
|
|
9
10
|
- `versions/3.1.0/CHANGELOG.md`: release notes for 3.1.0
|
|
@@ -4,6 +4,7 @@
|
|
|
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.1/MIGRATION.md`: Migration: 3.2.0 to 3.2.1
|
|
7
8
|
- `versions/3.2.0/MIGRATION.md`: Migration: 3.1.1 to 3.2.0
|
|
8
9
|
- `versions/3.1.1/MIGRATION.md`: Migration: 3.1.0 to 3.1.1
|
|
9
10
|
- `versions/3.1.0/MIGRATION.md`: Migration: 3.0.0 to 3.1.0
|
|
@@ -315,6 +315,11 @@ them, and never replace them with descriptions or pictures written into the site
|
|
|
315
315
|
in the production hub at launch, or the live site shows the extras without them.
|
|
316
316
|
- `v10`: the PMS sends neither; additional services have a label and a price only.
|
|
317
317
|
|
|
318
|
+
A service priced at 0 (a free baby cot or high chair) is offered like any other. Its `charge` is
|
|
319
|
+
"kostenlos" ("free", translation key `quote.additionalService.free`) without a per-night or
|
|
320
|
+
per-day unit; selecting it leaves the total unchanged and books it with the stay. Show `charge` as
|
|
321
|
+
it is. A service whose price cannot be determined is not offered.
|
|
322
|
+
|
|
318
323
|
When the backend provides a line amount for an optional service, it is exposed as `proposedQuantity` (including `0`). By default this is informational only and is not added to the quote. Set `shouldAddProposedAdditionalServiceAmount: true` in `WebsiteSDKOptions` to automatically select proposed quantities greater than zero when the quote is created.
|
|
319
324
|
|
|
320
325
|
Use the service `id` to add or remove a service selection:
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog: 3.2.1
|
|
2
|
+
|
|
3
|
+
Optional services priced at 0, such as a free baby cot or high chair, are offered as additional
|
|
4
|
+
services and read "kostenlos" ("free") instead of a price.
|
|
5
|
+
|
|
6
|
+
## Fixed
|
|
7
|
+
|
|
8
|
+
- v10: an optional service priced at 0 is in `quote.additionalServices`. Until now the quote
|
|
9
|
+
dropped it, and `addAdditionalService` rejected its id as unknown. Selecting it leaves the
|
|
10
|
+
total unchanged, and the booking sends it to the PMS like a paid one.
|
|
11
|
+
- v9 and v10: the `charge` of a free service is the translated `quote.additionalService.free`
|
|
12
|
+
("kostenlos", "free") instead of "0,00 €", without a per-night or per-day unit. v9 already
|
|
13
|
+
offered these services, with "0,00 €".
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Migration: 3.2.0 to 3.2.1
|
|
2
|
+
|
|
3
|
+
No changes required. A site that renders `quote.additionalServices` shows the free services
|
|
4
|
+
without a change; one that hid "0,00 €" or wrote "free" itself can read `charge` as it is.
|
|
5
|
+
|
|
6
|
+
## 1. Upgrade
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
pnpm add @v-office/website-sdk@3.2.1
|
|
10
|
+
```
|
|
@@ -13,6 +13,7 @@ const toAdditionalServiceCalculation = (line) => {
|
|
|
13
13
|
//#endregion
|
|
14
14
|
//#region src/legacy-v9/parser/quote/to-charge.ts
|
|
15
15
|
const toCharge = ({ serviceLine, chargeAmount, currency, locale, translations }) => Effect.gen(function* () {
|
|
16
|
+
if (chargeAmount === 0) return yield* translations.translate(locale, "quote.additionalService.free");
|
|
16
17
|
switch (serviceLine.calculation) {
|
|
17
18
|
case "NIGHT": return `${formatCurrency(chargeAmount, locale, currency)}${yield* translations.translate(locale, "quote.additionalService.night")}`;
|
|
18
19
|
case "DAY": return `${formatCurrency(chargeAmount, locale, currency)}${yield* translations.translate(locale, "quote.additionalService.day")}`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-
|
|
1
|
+
import { Qt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-F2V6hCg6.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";
|
|
@@ -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-
|
|
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-F2V6hCg6.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";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"quote.sections.tax": "Steuern & Abgaben",
|
|
5
5
|
"quote.additionalService.day": " / Tag",
|
|
6
6
|
"quote.additionalService.night": " / Nacht",
|
|
7
|
+
"quote.additionalService.free": "kostenlos",
|
|
7
8
|
"quote.status.unavailable.notBookable": "Nicht verfügbar",
|
|
8
9
|
"quote.optionCombination.unavailable": "Diese Optionskombination ist nicht verfügbar.",
|
|
9
10
|
"quote.voucher.applied": "Der Rabattcode wurde angewendet.",
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
"quote.sections.tax": "Taxes & Fees",
|
|
5
5
|
"quote.additionalService.day": " / day",
|
|
6
6
|
"quote.additionalService.night": " / night",
|
|
7
|
+
"quote.additionalService.free": "free",
|
|
7
8
|
"quote.status.unavailable.notBookable": "Not available",
|
|
8
9
|
"quote.optionCombination.unavailable": "This option combination is unavailable.",
|
|
9
10
|
"quote.voucher.applied": "The voucher code was applied.",
|
|
@@ -4,6 +4,7 @@
|
|
|
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.1/CHANGELOG.md`: release notes for 3.2.1
|
|
7
8
|
- `versions/3.2.0/CHANGELOG.md`: release notes for 3.2.0
|
|
8
9
|
- `versions/3.1.1/CHANGELOG.md`: release notes for 3.1.1
|
|
9
10
|
- `versions/3.1.0/CHANGELOG.md`: release notes for 3.1.0
|
|
@@ -4,6 +4,7 @@
|
|
|
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.1/MIGRATION.md`: Migration: 3.2.0 to 3.2.1
|
|
7
8
|
- `versions/3.2.0/MIGRATION.md`: Migration: 3.1.1 to 3.2.0
|
|
8
9
|
- `versions/3.1.1/MIGRATION.md`: Migration: 3.1.0 to 3.1.1
|
|
9
10
|
- `versions/3.1.0/MIGRATION.md`: Migration: 3.0.0 to 3.1.0
|
package/instructions/quote.md
CHANGED
|
@@ -315,6 +315,11 @@ them, and never replace them with descriptions or pictures written into the site
|
|
|
315
315
|
in the production hub at launch, or the live site shows the extras without them.
|
|
316
316
|
- `v10`: the PMS sends neither; additional services have a label and a price only.
|
|
317
317
|
|
|
318
|
+
A service priced at 0 (a free baby cot or high chair) is offered like any other. Its `charge` is
|
|
319
|
+
"kostenlos" ("free", translation key `quote.additionalService.free`) without a per-night or
|
|
320
|
+
per-day unit; selecting it leaves the total unchanged and books it with the stay. Show `charge` as
|
|
321
|
+
it is. A service whose price cannot be determined is not offered.
|
|
322
|
+
|
|
318
323
|
When the backend provides a line amount for an optional service, it is exposed as `proposedQuantity` (including `0`). By default this is informational only and is not added to the quote. Set `shouldAddProposedAdditionalServiceAmount: true` in `WebsiteSDKOptions` to automatically select proposed quantities greater than zero when the quote is created.
|
|
319
324
|
|
|
320
325
|
Use the service `id` to add or remove a service selection:
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Changelog: 3.2.1
|
|
2
|
+
|
|
3
|
+
Optional services priced at 0, such as a free baby cot or high chair, are offered as additional
|
|
4
|
+
services and read "kostenlos" ("free") instead of a price.
|
|
5
|
+
|
|
6
|
+
## Fixed
|
|
7
|
+
|
|
8
|
+
- v10: an optional service priced at 0 is in `quote.additionalServices`. Until now the quote
|
|
9
|
+
dropped it, and `addAdditionalService` rejected its id as unknown. Selecting it leaves the
|
|
10
|
+
total unchanged, and the booking sends it to the PMS like a paid one.
|
|
11
|
+
- v9 and v10: the `charge` of a free service is the translated `quote.additionalService.free`
|
|
12
|
+
("kostenlos", "free") instead of "0,00 €", without a per-night or per-day unit. v9 already
|
|
13
|
+
offered these services, with "0,00 €".
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Migration: 3.2.0 to 3.2.1
|
|
2
|
+
|
|
3
|
+
No changes required. A site that renders `quote.additionalServices` shows the free services
|
|
4
|
+
without a change; one that hid "0,00 €" or wrote "free" itself can read `charge` as it is.
|
|
5
|
+
|
|
6
|
+
## 1. Upgrade
|
|
7
|
+
|
|
8
|
+
```sh
|
|
9
|
+
pnpm add @v-office/website-sdk@3.2.1
|
|
10
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-office/website-sdk",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
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.31.
|
|
51
|
+
"@v-office/sdk-core": "1.31.1",
|
|
52
52
|
"effect": "4.0.0-rc.115",
|
|
53
53
|
"graphql": "17.0.2",
|
|
54
54
|
"yaml": "^2.9.0"
|