@v-office/website-sdk 3.6.0 → 3.6.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-BKsLLOAa.mjs → client-eoCU7UyM.mjs} +40 -3
- package/dist/index.mjs +1 -1
- package/dist/instructions/CHANGELOG.md +1 -0
- package/dist/instructions/MIGRATION.md +1 -0
- package/dist/instructions/versions/3.6.1/CHANGELOG.md +16 -0
- package/dist/instructions/versions/3.6.1/MIGRATION.md +9 -0
- package/dist/{rentals-CWP8md5n.mjs → rentals-DOFNlM0i.mjs} +1 -1
- package/dist/{search-BnS4mWvv.mjs → search-hDGSiAWL.mjs} +1 -1
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/versions/3.6.1/CHANGELOG.md +16 -0
- package/instructions/versions/3.6.1/MIGRATION.md +9 -0
- package/instructions/versions/3.6.1/release.json +3 -0
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { Qt as defineV9PropertyHighlightSourcesFromUnknown, Xt as defineWebsiteSDKOptions, _ as rental_attributes_default$1, an as V9_HUB_OFFER_FILTER_KEY, cn as V9_HUB_UNIT_TYPE_FILTER_KEY, en as V9_HUB_FACILITY_SCOPE_FILTER_KEY, f as makeV9GraphQLClient, h as makeV0OpenApiClientFetchLive, i as toV9SdkOwnedHubFilterKeys, in as V9_HUB_OFFERS_FILTER_KEY, ln as V9_SDK_OWNED_HUB_FILTER_KEYS, n as checkV9HubFilters, nn as V9_HUB_OBJECT_GROUP_FILTER_KEY, on as V9_HUB_REGION_FILTER_KEY, p as V0OpenApiClient, r as toV9RequiredHubFilterKeys, rn as V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY, sn as V9_HUB_RENTAL_IDS_FILTER_KEY, t as createWebsiteSDK, tn as V9_HUB_FACILITY_SEARCH_FILTER_KEY, un as stable_filters_default, v as rental_attributes_default } from "./client-
|
|
2
|
+
import { Qt as defineV9PropertyHighlightSourcesFromUnknown, Xt as defineWebsiteSDKOptions, _ as rental_attributes_default$1, an as V9_HUB_OFFER_FILTER_KEY, cn as V9_HUB_UNIT_TYPE_FILTER_KEY, en as V9_HUB_FACILITY_SCOPE_FILTER_KEY, f as makeV9GraphQLClient, h as makeV0OpenApiClientFetchLive, i as toV9SdkOwnedHubFilterKeys, in as V9_HUB_OFFERS_FILTER_KEY, ln as V9_SDK_OWNED_HUB_FILTER_KEYS, n as checkV9HubFilters, nn as V9_HUB_OBJECT_GROUP_FILTER_KEY, on as V9_HUB_REGION_FILTER_KEY, p as V0OpenApiClient, r as toV9RequiredHubFilterKeys, rn as V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY, sn as V9_HUB_RENTAL_IDS_FILTER_KEY, t as createWebsiteSDK, tn as V9_HUB_FACILITY_SEARCH_FILTER_KEY, un as stable_filters_default, v as rental_attributes_default } from "./client-eoCU7UyM.mjs";
|
|
3
3
|
import { a as hubFiltersQuery, b as parseJsonData, o as hubRentalDataQuery, p as rentalsAllWithoutFeedbacksQuery, v as VofficeUnitDataPropertyMetadata, w as parseVofficeRatingData } from "./operations-DY2e_2Hd.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.6.
|
|
20
|
+
var version = "3.6.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/cli/output.ts
|
|
23
23
|
const toJson = (value) => Effect.try({
|
|
@@ -1821,6 +1821,42 @@ const toOccupancyLimits = ({ unit }) => {
|
|
|
1821
1821
|
//#endregion
|
|
1822
1822
|
//#region src/legacy-v9/parser/availability/to-start-date-selected-calendar-days.ts
|
|
1823
1823
|
const toNightBefore = (date) => DateTime.formatIsoDateUtc(DateTime.subtract(DateTime.makeUnsafe(date), { days: 1 }));
|
|
1824
|
+
const toNightAfter = (date) => DateTime.formatIsoDateUtc(DateTime.add(DateTime.makeUnsafe(date), { days: 1 }));
|
|
1825
|
+
const isOccupiedNight = (availability, night) => {
|
|
1826
|
+
const dayClass = availability.caldata_beon[night]?.class;
|
|
1827
|
+
return dayClass === "unavailable" || dayClass === "check-out";
|
|
1828
|
+
};
|
|
1829
|
+
const applyV9MinimumStay = ({ availability, calendarDays, selectedStartDate, locale, translations }) => Effect.gen(function* () {
|
|
1830
|
+
const endDates = Object.keys(calendarDays).filter((date) => calendarDays[date]?.canBeEndDate === true).toSorted();
|
|
1831
|
+
const startsAfterOccupiedNight = isOccupiedNight(availability, toNightBefore(selectedStartDate));
|
|
1832
|
+
const tooltip = yield* translations.translate(locale, "availability.calendar.minimum_stay_not_met", "minimum_stay_not_met");
|
|
1833
|
+
const result = { ...calendarDays };
|
|
1834
|
+
let night = selectedStartDate;
|
|
1835
|
+
let highestMinStay = 0;
|
|
1836
|
+
for (const endDate of endDates) {
|
|
1837
|
+
for (; night < endDate; night = toNightAfter(night)) highestMinStay = Math.max(highestMinStay, availability.caldata_beon[night]?.minStay ?? 0);
|
|
1838
|
+
const closesGap = startsAfterOccupiedNight && isOccupiedNight(availability, endDate);
|
|
1839
|
+
const nights = daysBetweenLocalDates({
|
|
1840
|
+
start: selectedStartDate,
|
|
1841
|
+
end: endDate
|
|
1842
|
+
});
|
|
1843
|
+
if (closesGap || nights >= highestMinStay) continue;
|
|
1844
|
+
result[endDate] = {
|
|
1845
|
+
canBeEndDate: false,
|
|
1846
|
+
canBeNewStartDate: calendarDays[endDate]?.canBeNewStartDate ?? false,
|
|
1847
|
+
status: "minimum_stay_not_met",
|
|
1848
|
+
tooltip
|
|
1849
|
+
};
|
|
1850
|
+
}
|
|
1851
|
+
return result;
|
|
1852
|
+
});
|
|
1853
|
+
const toStartDateSelectedCalendarDays$1 = ({ availability, ...input }) => toStartDateSelectedCalendarDays(input).pipe(Effect.flatMap((calendarDays) => applyV9MinimumStay({
|
|
1854
|
+
availability,
|
|
1855
|
+
calendarDays,
|
|
1856
|
+
selectedStartDate: input.input.selectedStartDate,
|
|
1857
|
+
locale: input.input.locale,
|
|
1858
|
+
translations: input.translations
|
|
1859
|
+
})));
|
|
1824
1860
|
const applyV9EndDatePrices = ({ availability, calendarDays, selectedStartDate, locale, currency, rentNightPrices = [] }) => {
|
|
1825
1861
|
const result = {};
|
|
1826
1862
|
for (const [date, day] of Object.entries(calendarDays)) {
|
|
@@ -3481,7 +3517,8 @@ const makeV9AvailabilityApi = ({ config, options, loadUnitDetails }) => {
|
|
|
3481
3517
|
now
|
|
3482
3518
|
});
|
|
3483
3519
|
const availabilityRestrictionsByDate = toAvailabilityRestrictionsByDate({ availability });
|
|
3484
|
-
const calendarDays = yield* toStartDateSelectedCalendarDays({
|
|
3520
|
+
const calendarDays = yield* toStartDateSelectedCalendarDays$1({
|
|
3521
|
+
availability,
|
|
3485
3522
|
input,
|
|
3486
3523
|
firstCalculationDate,
|
|
3487
3524
|
availabilityRestrictionsByDate,
|
|
@@ -6588,7 +6625,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
6588
6625
|
return page;
|
|
6589
6626
|
});
|
|
6590
6627
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
6591
|
-
try: () => import("./search-
|
|
6628
|
+
try: () => import("./search-hDGSiAWL.mjs"),
|
|
6592
6629
|
catch: (cause) => new CoreSDKError({
|
|
6593
6630
|
source: "v9",
|
|
6594
6631
|
operation: "v9.search.runtime",
|
|
@@ -7534,7 +7571,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
|
|
|
7534
7571
|
});
|
|
7535
7572
|
};
|
|
7536
7573
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
7537
|
-
try: () => import("./rentals-
|
|
7574
|
+
try: () => import("./rentals-DOFNlM0i.mjs"),
|
|
7538
7575
|
catch: (cause) => new CoreSDKError({
|
|
7539
7576
|
source: "v9",
|
|
7540
7577
|
operation: "v9.rentals.runtime",
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as QuotePricesPayloadSchema, A as DocumentResourceSchema, At as bookEffect, B as ErgoCommonFieldsSchema, Bt as mapSearchEffect, C as ApiEnvelopeBaseSchema, Ct as UnitServicePriceSchema, D as CustomerUnitSummarySchema, Dt as VideoResponseSchema, E as CurrentMemberResponseSchema, Et as VideoListResponseSchema, F as ErgoAddressSchema, Ft as getFiltersEffect, G as ErgoTripAndCustomerRequestSchema, Gt as selectInsuranceEffect, H as ErgoPersonSchema, Ht as removeAdditionalServiceEffect, I as ErgoBankSchema, It as getInitialAvailabilityEffect, J as OnOfficeUnitCollectionResponseSchema, Jt as submitPaymentOption, K as FacilityListResponseSchema, Kt as selectInsurancePaymentEffect, L as ErgoBookRequestSchema, Lt as getRentalsEffect, M as DocumentStatusUpdateRequestSchema, Mt as clearAdditionalServicesEffect, N as DocumentSummarySchema, Nt as createInsurancePreContractEffect, O as DocumentCollectionResponseSchema, Ot as decodeV1OperationResponse, P as DocumentTypeSchema, Pt as getBankTransferDetailsEffect, Q as QuoteLineSchema, Qt as defineV9PropertyHighlightSourcesFromUnknown, R as ErgoBookingIdentityRequestSchema, Rt as getStartDateSelectedAvailabilityEffect, S as makeV1OpenApiClientLive, St as UnitResponseSchema, T as CalendarResponseSchema, Tt as V1_OPERATIONS, U as ErgoPlanSearchRequestSchema, Ut as searchEffect, V as ErgoCreatePreContractRequestSchema, Vt as quoteEffect, W as ErgoReadPreContractRequestSchema, Wt as selectCancellationPolicyEffect, X as PaymentScheduleItemSchema, Xt as defineWebsiteSDKOptions, Y as OnOfficeUnitSchema, Yt as submitPaymentOptionEffect, Z as PaymentScheduleSchema, Zt as defineV9PropertyHighlightSources, _t as TravelInsuranceBookingSchema, at as RegionListResponseSchema, b as V1OpenApiClientError, bt as UnitListResponseSchema, ct as ServiceBeonDataSchema, dt as ServiceListResponseSchema, et as QuotePricesResponseSchema, ft as SetupDataSchema, g as makeV0OpenApiClientLive, gt as TileTagSchema, h as makeV0OpenApiClientFetchLive, ht as TileSchema, it as RawVofficeObjectSchema, j as DocumentStatusSchema, jt as bookInsuranceEffect, k as DocumentResourceResponseSchema, kt as addAdditionalServiceEffect, lt as ServiceImageSchema, m as V0OpenApiClientError, mt as TileCollectionResponseSchema, nt as QuoteServiceSchema, ot as RoomImageSchema, p as V0OpenApiClient, pt as SetupResponseSchema, q as HubErrorSchema, qt as submitContactEffect, rt as RawObjectResponseSchema, st as SearchPropertiesResponseSchema, t as createWebsiteSDK, tt as QuoteSchema, ut as ServiceLimitSchema, vt as UnitIdsResponseSchema, w as CalendarDaySchema, wt as V1_BASE_URL, x as makeV1OpenApiClientFetchLive, xt as UnitOfferSchema, y as V1OpenApiClient, yt as UnitListItemSchema, z as ErgoBookingIdentitySchema, zt as getTermsAndPrivacyPolicyEffect } from "./client-
|
|
1
|
+
import { $ as QuotePricesPayloadSchema, A as DocumentResourceSchema, At as bookEffect, B as ErgoCommonFieldsSchema, Bt as mapSearchEffect, C as ApiEnvelopeBaseSchema, Ct as UnitServicePriceSchema, D as CustomerUnitSummarySchema, Dt as VideoResponseSchema, E as CurrentMemberResponseSchema, Et as VideoListResponseSchema, F as ErgoAddressSchema, Ft as getFiltersEffect, G as ErgoTripAndCustomerRequestSchema, Gt as selectInsuranceEffect, H as ErgoPersonSchema, Ht as removeAdditionalServiceEffect, I as ErgoBankSchema, It as getInitialAvailabilityEffect, J as OnOfficeUnitCollectionResponseSchema, Jt as submitPaymentOption, K as FacilityListResponseSchema, Kt as selectInsurancePaymentEffect, L as ErgoBookRequestSchema, Lt as getRentalsEffect, M as DocumentStatusUpdateRequestSchema, Mt as clearAdditionalServicesEffect, N as DocumentSummarySchema, Nt as createInsurancePreContractEffect, O as DocumentCollectionResponseSchema, Ot as decodeV1OperationResponse, P as DocumentTypeSchema, Pt as getBankTransferDetailsEffect, Q as QuoteLineSchema, Qt as defineV9PropertyHighlightSourcesFromUnknown, R as ErgoBookingIdentityRequestSchema, Rt as getStartDateSelectedAvailabilityEffect, S as makeV1OpenApiClientLive, St as UnitResponseSchema, T as CalendarResponseSchema, Tt as V1_OPERATIONS, U as ErgoPlanSearchRequestSchema, Ut as searchEffect, V as ErgoCreatePreContractRequestSchema, Vt as quoteEffect, W as ErgoReadPreContractRequestSchema, Wt as selectCancellationPolicyEffect, X as PaymentScheduleItemSchema, Xt as defineWebsiteSDKOptions, Y as OnOfficeUnitSchema, Yt as submitPaymentOptionEffect, Z as PaymentScheduleSchema, Zt as defineV9PropertyHighlightSources, _t as TravelInsuranceBookingSchema, at as RegionListResponseSchema, b as V1OpenApiClientError, bt as UnitListResponseSchema, ct as ServiceBeonDataSchema, dt as ServiceListResponseSchema, et as QuotePricesResponseSchema, ft as SetupDataSchema, g as makeV0OpenApiClientLive, gt as TileTagSchema, h as makeV0OpenApiClientFetchLive, ht as TileSchema, it as RawVofficeObjectSchema, j as DocumentStatusSchema, jt as bookInsuranceEffect, k as DocumentResourceResponseSchema, kt as addAdditionalServiceEffect, lt as ServiceImageSchema, m as V0OpenApiClientError, mt as TileCollectionResponseSchema, nt as QuoteServiceSchema, ot as RoomImageSchema, p as V0OpenApiClient, pt as SetupResponseSchema, q as HubErrorSchema, qt as submitContactEffect, rt as RawObjectResponseSchema, st as SearchPropertiesResponseSchema, t as createWebsiteSDK, tt as QuoteSchema, ut as ServiceLimitSchema, vt as UnitIdsResponseSchema, w as CalendarDaySchema, wt as V1_BASE_URL, x as makeV1OpenApiClientFetchLive, xt as UnitOfferSchema, y as V1OpenApiClient, yt as UnitListItemSchema, z as ErgoBookingIdentitySchema, zt as getTermsAndPrivacyPolicyEffect } from "./client-eoCU7UyM.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.6.1/CHANGELOG.md`: release notes for 3.6.1
|
|
7
8
|
- `versions/3.6.0/CHANGELOG.md`: release notes for 3.6.0
|
|
8
9
|
- `versions/3.5.0/CHANGELOG.md`: release notes for 3.5.0
|
|
9
10
|
- `versions/3.4.2/CHANGELOG.md`: release notes for 3.4.2
|
|
@@ -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.6.1/MIGRATION.md`: Migration: 3.6.0 to 3.6.1
|
|
7
8
|
- `versions/3.6.0/MIGRATION.md`: Migration: 3.5.0 to 3.6.0
|
|
8
9
|
- `versions/3.5.0/MIGRATION.md`: Migration: 3.4.2 to 3.5.0
|
|
9
10
|
- `versions/3.4.2/MIGRATION.md`: Migration: 3.4.1 to 3.4.2
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog: 3.6.1
|
|
2
|
+
|
|
3
|
+
The v9 date picker no longer offers check-outs that the booking then refuses for the minimum stay.
|
|
4
|
+
|
|
5
|
+
## Fixed
|
|
6
|
+
|
|
7
|
+
- v9 `availability.getStartDateSelectedAvailability` marks a check-out as `canBeEndDate` only when
|
|
8
|
+
the stay meets the highest minimum stay of all its nights, the rule vOffice v9 applies to the
|
|
9
|
+
quote. A stay that starts in a season with a shorter minimum stay and runs into one with a
|
|
10
|
+
longer minimum stay was offered before and then refused with "Im gewählten Zeitraum gilt ein
|
|
11
|
+
Mindestaufenthalt von … Nächten". Such check-outs now come back with status
|
|
12
|
+
`minimum_stay_not_met`.
|
|
13
|
+
- A stay that closes a gap between two bookings completely keeps the arrival day's minimum stay,
|
|
14
|
+
because vOffice may accept it when the agency fills gaps.
|
|
15
|
+
|
|
16
|
+
The output shape stays the same. v10 does not change: v10 applies the arrival day's minimum stay.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $t as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-
|
|
1
|
+
import { $t as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-eoCU7UyM.mjs";
|
|
2
2
|
import { C as parseVofficeOfferData, S as parseVofficeFeedbackData, T as parseVofficeUnitData, _ 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, x as parseVofficeFacilityData } from "./operations-DY2e_2Hd.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-DptWc7-q.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-eoCU7UyM.mjs";
|
|
2
2
|
import { T as parseVofficeUnitData, n as mapSearchQuery, r as searchQuery } from "./operations-DY2e_2Hd.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-DptWc7-q.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
|
|
|
5
5
|
Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
|
|
6
6
|
|
|
7
|
+
- `versions/3.6.1/CHANGELOG.md`: release notes for 3.6.1
|
|
7
8
|
- `versions/3.6.0/CHANGELOG.md`: release notes for 3.6.0
|
|
8
9
|
- `versions/3.5.0/CHANGELOG.md`: release notes for 3.5.0
|
|
9
10
|
- `versions/3.4.2/CHANGELOG.md`: release notes for 3.4.2
|
|
@@ -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.6.1/MIGRATION.md`: Migration: 3.6.0 to 3.6.1
|
|
7
8
|
- `versions/3.6.0/MIGRATION.md`: Migration: 3.5.0 to 3.6.0
|
|
8
9
|
- `versions/3.5.0/MIGRATION.md`: Migration: 3.4.2 to 3.5.0
|
|
9
10
|
- `versions/3.4.2/MIGRATION.md`: Migration: 3.4.1 to 3.4.2
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Changelog: 3.6.1
|
|
2
|
+
|
|
3
|
+
The v9 date picker no longer offers check-outs that the booking then refuses for the minimum stay.
|
|
4
|
+
|
|
5
|
+
## Fixed
|
|
6
|
+
|
|
7
|
+
- v9 `availability.getStartDateSelectedAvailability` marks a check-out as `canBeEndDate` only when
|
|
8
|
+
the stay meets the highest minimum stay of all its nights, the rule vOffice v9 applies to the
|
|
9
|
+
quote. A stay that starts in a season with a shorter minimum stay and runs into one with a
|
|
10
|
+
longer minimum stay was offered before and then refused with "Im gewählten Zeitraum gilt ein
|
|
11
|
+
Mindestaufenthalt von … Nächten". Such check-outs now come back with status
|
|
12
|
+
`minimum_stay_not_met`.
|
|
13
|
+
- A stay that closes a gap between two bookings completely keeps the arrival day's minimum stay,
|
|
14
|
+
because vOffice may accept it when the agency fills gaps.
|
|
15
|
+
|
|
16
|
+
The output shape stays the same. v10 does not change: v10 applies the arrival day's minimum stay.
|