@v-office/website-sdk 2.35.0 → 2.36.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 +11 -3
- package/dist/{client-BC5ukCcN.mjs → client-D44b3iET.mjs} +120 -36
- package/dist/index.d.mts +18 -1
- package/dist/index.mjs +1 -1
- package/dist/instructions/CHANGELOG.md +1 -0
- package/dist/instructions/MIGRATION.md +1 -0
- package/dist/instructions/README.md +1 -1
- package/dist/instructions/availability.md +52 -0
- package/dist/instructions/versions/2.36.0/CHANGELOG.md +17 -0
- package/dist/instructions/versions/2.36.0/MIGRATION.md +9 -0
- package/dist/{rentals-tKaYW-Zz.mjs → rentals-TAEGMfgF.mjs} +1 -1
- package/dist/{search-DibGd1I6.mjs → search-ByfrSxM6.mjs} +1 -1
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/README.md +1 -1
- package/instructions/availability.md +52 -0
- package/instructions/versions/2.36.0/CHANGELOG.md +17 -0
- package/instructions/versions/2.36.0/MIGRATION.md +9 -0
- package/instructions/versions/2.36.0/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-D44b3iET.mjs";
|
|
3
3
|
import { a as hubRentalDataQuery, d as rentalsAllWithoutFeedbacksQuery, g as VofficeUnitDataPropertyMetadata, i as hubFiltersQuery, v as parseJsonData, x as parseVofficeRatingData } from "./operations-C1VMQYN2.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 = "2.
|
|
20
|
+
var version = "2.36.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/cli/output.ts
|
|
23
23
|
const toJson = (value) => Effect.try({
|
|
@@ -212,7 +212,15 @@ const startDateSelected = Command.make("start-date-selected", {
|
|
|
212
212
|
command: "website-sdk --backend v9 availability start-date-selected --rental-id 123 --selected-start-date 2026-07-08 --calculate-from-date 2026-07-01 --calculate-through-date 2026-08-01",
|
|
213
213
|
description: "Fetch available end dates for a selected start date."
|
|
214
214
|
}]));
|
|
215
|
-
const
|
|
215
|
+
const blockedRanges = Command.make("blocked-ranges", { rentalIds: Flag.String("rental-ids").pipe(Flag.withDescription("Comma-separated vOffice rental IDs.")) }, ({ rentalIds }) => websiteSdkCommand.pipe(Effect.flatMap((root) => withSDK(root, (sdk) => sdk.backend === "v9" ? sdk.live.availability.getBlockedRanges({ rentalIds: rentalIds.split(",").map((rentalId) => rentalId.trim()).filter((rentalId) => rentalId.length > 0) }) : Promise.reject(/* @__PURE__ */ new Error("availability blocked-ranges requires --backend v9."))).pipe(Effect.flatMap((result) => printOutput(root, result)))))).pipe(Command.withDescription("Fetch the booked, blocked and on-request ranges of v9 rentals."), Command.withExamples([{
|
|
216
|
+
command: "website-sdk --backend v9 availability blocked-ranges --rental-ids 212402,212350",
|
|
217
|
+
description: "Fetch the blocked ranges of two v9 rentals."
|
|
218
|
+
}]));
|
|
219
|
+
const availabilityCommand = Command.make("availability").pipe(Command.withDescription("Run live availability operations."), Command.withSubcommands([
|
|
220
|
+
initial,
|
|
221
|
+
startDateSelected,
|
|
222
|
+
blockedRanges
|
|
223
|
+
]));
|
|
216
224
|
//#endregion
|
|
217
225
|
//#region src/cli/commands/config.ts
|
|
218
226
|
const show = Command.make("show", {}, Effect.fn(function* () {
|
|
@@ -4483,6 +4483,121 @@ const makeV0OpenApiClientLive = (options) => Layer.effect(V0OpenApiClient, Effec
|
|
|
4483
4483
|
}));
|
|
4484
4484
|
const makeV0OpenApiClientFetchLive = (options) => makeV0OpenApiClientLive(options).pipe(Layer.provide(FetchHttpClient.layer));
|
|
4485
4485
|
//#endregion
|
|
4486
|
+
//#region src/legacy-v9/parser/search/input/shared/to-positive-id.ts
|
|
4487
|
+
const MAX_GRAPHQL_INT = 2147483647;
|
|
4488
|
+
const toNonNegativeInt = (value) => {
|
|
4489
|
+
if (!/^\d+$/.test(value)) return;
|
|
4490
|
+
const number = Number(value);
|
|
4491
|
+
return number <= MAX_GRAPHQL_INT ? number : void 0;
|
|
4492
|
+
};
|
|
4493
|
+
const toPositiveId = (value) => {
|
|
4494
|
+
const id = toNonNegativeInt(value);
|
|
4495
|
+
return id !== void 0 && id > 0 ? id : void 0;
|
|
4496
|
+
};
|
|
4497
|
+
//#endregion
|
|
4498
|
+
//#region src/legacy-v9/rental-ids.ts
|
|
4499
|
+
const toV9RentalIds = (rentalIds) => Array.isArray(rentalIds) ? [...new Set(rentalIds.flatMap((rentalId) => typeof rentalId === "string" ? toPositiveId(rentalId.trim()) ?? [] : []))] : [];
|
|
4500
|
+
const applyV9RentalIdsToSearchQueryInput = ({ input, rentalIdsIn, rentalIdsSearch }) => Effect.gen(function* () {
|
|
4501
|
+
if (rentalIdsIn === void 0) return input;
|
|
4502
|
+
if (!rentalIdsSearch) return yield* Effect.fail(new CoreSDKError({
|
|
4503
|
+
source: "v9",
|
|
4504
|
+
operation: "v9.search",
|
|
4505
|
+
message: `rentalIdsIn needs rentalIdsSearch: true in the v9 config and a "${V9_HUB_RENTAL_IDS_FILTER_KEY}" filter in the be-on! Hub. Run \`website-sdk --backend v9 hub-filters request --unit\` and add its entry in the be-on! Hub.`
|
|
4506
|
+
}));
|
|
4507
|
+
if (Array.isArray(rentalIdsIn) && rentalIdsIn.length === 0) return input;
|
|
4508
|
+
const rentalIds = toV9RentalIds(rentalIdsIn);
|
|
4509
|
+
if (rentalIds.length === 0) return void 0;
|
|
4510
|
+
return {
|
|
4511
|
+
...input,
|
|
4512
|
+
basicQueryInputs: [...[input.basicQueryInputs ?? []].flat(), {
|
|
4513
|
+
key: V9_HUB_RENTAL_IDS_FILTER_KEY,
|
|
4514
|
+
value: rentalIds
|
|
4515
|
+
}]
|
|
4516
|
+
};
|
|
4517
|
+
});
|
|
4518
|
+
//#endregion
|
|
4519
|
+
//#region src/legacy-v9/parser/blocked-ranges/to-rental-blocked-ranges.ts
|
|
4520
|
+
const RANGE_STATUS = {
|
|
4521
|
+
N: "unavailable",
|
|
4522
|
+
Q: "on_request"
|
|
4523
|
+
};
|
|
4524
|
+
const toLocalDate = (date) => DateTime.formatIsoDate(date);
|
|
4525
|
+
const toRentalBlockedRanges = ({ rentalId, availability, availabilityUpdate }) => {
|
|
4526
|
+
const firstDay = DateTime.removeTime(DateTime.makeZonedUnsafe(availabilityUpdate, { timeZone: "Europe/Berlin" }));
|
|
4527
|
+
const dayAt = (index) => toLocalDate(DateTime.add(firstDay, { days: index }));
|
|
4528
|
+
const ranges = [];
|
|
4529
|
+
let runStart = 0;
|
|
4530
|
+
for (let index = 1; index <= availability.length; index++) {
|
|
4531
|
+
const value = availability[runStart];
|
|
4532
|
+
if (index < availability.length && availability[index] === value) continue;
|
|
4533
|
+
if (value !== void 0 && value !== "Y") ranges.push({
|
|
4534
|
+
start: dayAt(runStart),
|
|
4535
|
+
end: index === availability.length ? null : dayAt(index),
|
|
4536
|
+
status: RANGE_STATUS[value]
|
|
4537
|
+
});
|
|
4538
|
+
runStart = index;
|
|
4539
|
+
}
|
|
4540
|
+
return {
|
|
4541
|
+
rentalId,
|
|
4542
|
+
availableFrom: toLocalDate(firstDay),
|
|
4543
|
+
ranges
|
|
4544
|
+
};
|
|
4545
|
+
};
|
|
4546
|
+
//#endregion
|
|
4547
|
+
//#region src/legacy-v9/parser/blocked-ranges/collect-v9-blocked-ranges.ts
|
|
4548
|
+
const collectV9BlockedRanges = ({ input, loadPage }) => Effect.gen(function* () {
|
|
4549
|
+
const rentalIds = toV9RentalIds(input.rentalIds);
|
|
4550
|
+
const wanted = new Set(rentalIds);
|
|
4551
|
+
const found = /* @__PURE__ */ new Map();
|
|
4552
|
+
let lastid;
|
|
4553
|
+
while (found.size < wanted.size) {
|
|
4554
|
+
const page = yield* loadPage(lastid);
|
|
4555
|
+
for (const { _id, availability, availabilityUpdate } of page.units ?? []) {
|
|
4556
|
+
if (_id === void 0 || !wanted.has(_id)) continue;
|
|
4557
|
+
if (availability === void 0 || availabilityUpdate === void 0) continue;
|
|
4558
|
+
found.set(_id, toRentalBlockedRanges({
|
|
4559
|
+
rentalId: String(_id),
|
|
4560
|
+
availability,
|
|
4561
|
+
availabilityUpdate
|
|
4562
|
+
}));
|
|
4563
|
+
}
|
|
4564
|
+
if (page.lastid === void 0 || page.lastid === lastid) break;
|
|
4565
|
+
lastid = page.lastid;
|
|
4566
|
+
}
|
|
4567
|
+
return { rentals: rentalIds.flatMap((rentalId) => found.get(rentalId) ?? []) };
|
|
4568
|
+
});
|
|
4569
|
+
//#endregion
|
|
4570
|
+
//#region src/legacy-v9/live/blocked-ranges.ts
|
|
4571
|
+
const OPERATION$1 = "v9.availability.getBlockedRanges";
|
|
4572
|
+
const makeV9BlockedRangesApi = ({ config }) => {
|
|
4573
|
+
const openApiClientLive = makeV0OpenApiClientFetchLive({
|
|
4574
|
+
apiKey: config.apiKey,
|
|
4575
|
+
...config.v0ApiBaseUrl === void 0 ? {} : { baseUrl: config.v0ApiBaseUrl }
|
|
4576
|
+
});
|
|
4577
|
+
const loadPage = (lastid) => Effect.gen(function* () {
|
|
4578
|
+
const page = yield* (yield* V0OpenApiClient).execute("proxyVofficeAction", { query: {
|
|
4579
|
+
actionName: "getAvailabilities",
|
|
4580
|
+
...lastid === void 0 ? {} : { lastid }
|
|
4581
|
+
} }).pipe(Effect.flatMap((result) => Schema.decodeUnknownEffect(AvailabilityExportResponseSchema)(result.raw)), Effect.mapError((cause) => new CoreSDKError({
|
|
4582
|
+
source: "v9",
|
|
4583
|
+
operation: OPERATION$1,
|
|
4584
|
+
message: "Failed to load v9 availabilities from the v0 OpenAPI client.",
|
|
4585
|
+
cause
|
|
4586
|
+
})));
|
|
4587
|
+
if (page.ok === false) return yield* Effect.fail(new CoreSDKError({
|
|
4588
|
+
source: "v9",
|
|
4589
|
+
operation: OPERATION$1,
|
|
4590
|
+
message: "vOffice rejected getAvailabilities.",
|
|
4591
|
+
cause: page
|
|
4592
|
+
}));
|
|
4593
|
+
return page;
|
|
4594
|
+
}).pipe(Effect.provide(openApiClientLive));
|
|
4595
|
+
return { getBlockedRanges: (input) => Effect.runPromise(collectV9BlockedRanges({
|
|
4596
|
+
input,
|
|
4597
|
+
loadPage
|
|
4598
|
+
})) };
|
|
4599
|
+
};
|
|
4600
|
+
//#endregion
|
|
4486
4601
|
//#region src/legacy-v9/parser/insurance/index.ts
|
|
4487
4602
|
const urvInsuranceOptionAmounts = /* @__PURE__ */ new WeakMap();
|
|
4488
4603
|
const urvInsuranceOptionAmountsByKey = /* @__PURE__ */ new Map();
|
|
@@ -5991,39 +6106,6 @@ const makeV9GraphQLClient = (config) => ({ execute: (document, variables) => Eff
|
|
|
5991
6106
|
*/
|
|
5992
6107
|
const toCustomAttributeRentalDataAttributes = (customAttributes) => toCustomAttributeList(customAttributes).flatMap((attribute) => attribute.v9 !== void 0 && isDisplayableCustomAttribute(attribute) ? [attribute.v9] : []);
|
|
5993
6108
|
//#endregion
|
|
5994
|
-
//#region src/legacy-v9/parser/search/input/shared/to-positive-id.ts
|
|
5995
|
-
const MAX_GRAPHQL_INT = 2147483647;
|
|
5996
|
-
const toNonNegativeInt = (value) => {
|
|
5997
|
-
if (!/^\d+$/.test(value)) return;
|
|
5998
|
-
const number = Number(value);
|
|
5999
|
-
return number <= MAX_GRAPHQL_INT ? number : void 0;
|
|
6000
|
-
};
|
|
6001
|
-
const toPositiveId = (value) => {
|
|
6002
|
-
const id = toNonNegativeInt(value);
|
|
6003
|
-
return id !== void 0 && id > 0 ? id : void 0;
|
|
6004
|
-
};
|
|
6005
|
-
//#endregion
|
|
6006
|
-
//#region src/legacy-v9/rental-ids.ts
|
|
6007
|
-
const toV9RentalIds = (rentalIds) => Array.isArray(rentalIds) ? [...new Set(rentalIds.flatMap((rentalId) => typeof rentalId === "string" ? toPositiveId(rentalId.trim()) ?? [] : []))] : [];
|
|
6008
|
-
const applyV9RentalIdsToSearchQueryInput = ({ input, rentalIdsIn, rentalIdsSearch }) => Effect.gen(function* () {
|
|
6009
|
-
if (rentalIdsIn === void 0) return input;
|
|
6010
|
-
if (!rentalIdsSearch) return yield* Effect.fail(new CoreSDKError({
|
|
6011
|
-
source: "v9",
|
|
6012
|
-
operation: "v9.search",
|
|
6013
|
-
message: `rentalIdsIn needs rentalIdsSearch: true in the v9 config and a "${V9_HUB_RENTAL_IDS_FILTER_KEY}" filter in the be-on! Hub. Run \`website-sdk --backend v9 hub-filters request --unit\` and add its entry in the be-on! Hub.`
|
|
6014
|
-
}));
|
|
6015
|
-
if (Array.isArray(rentalIdsIn) && rentalIdsIn.length === 0) return input;
|
|
6016
|
-
const rentalIds = toV9RentalIds(rentalIdsIn);
|
|
6017
|
-
if (rentalIds.length === 0) return void 0;
|
|
6018
|
-
return {
|
|
6019
|
-
...input,
|
|
6020
|
-
basicQueryInputs: [...[input.basicQueryInputs ?? []].flat(), {
|
|
6021
|
-
key: V9_HUB_RENTAL_IDS_FILTER_KEY,
|
|
6022
|
-
value: rentalIds
|
|
6023
|
-
}]
|
|
6024
|
-
};
|
|
6025
|
-
});
|
|
6026
|
-
//#endregion
|
|
6027
6109
|
//#region src/legacy-v9/rental-scope.ts
|
|
6028
6110
|
const toV9PropertyScope = (scope) => {
|
|
6029
6111
|
if (scope.propertyId == null) return { kind: "absent" };
|
|
@@ -6095,7 +6177,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
6095
6177
|
return page;
|
|
6096
6178
|
});
|
|
6097
6179
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
6098
|
-
try: () => import("./search-
|
|
6180
|
+
try: () => import("./search-ByfrSxM6.mjs"),
|
|
6099
6181
|
catch: (cause) => new CoreSDKError({
|
|
6100
6182
|
source: "v9",
|
|
6101
6183
|
operation: "v9.search.runtime",
|
|
@@ -6958,7 +7040,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
|
|
|
6958
7040
|
});
|
|
6959
7041
|
};
|
|
6960
7042
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
6961
|
-
try: () => import("./rentals-
|
|
7043
|
+
try: () => import("./rentals-TAEGMfgF.mjs"),
|
|
6962
7044
|
catch: (cause) => new CoreSDKError({
|
|
6963
7045
|
source: "v9",
|
|
6964
7046
|
operation: "v9.rentals.runtime",
|
|
@@ -7191,6 +7273,7 @@ function createWebsiteSDK({ config, options }) {
|
|
|
7191
7273
|
});
|
|
7192
7274
|
const regions = makeV9RegionsApi({ config });
|
|
7193
7275
|
const videos = makeV9VideosApi({ config });
|
|
7276
|
+
const blockedRanges = makeV9BlockedRangesApi({ config });
|
|
7194
7277
|
recordConstructedBackend("v9");
|
|
7195
7278
|
recordConstructedSdk(config, options);
|
|
7196
7279
|
return {
|
|
@@ -7212,7 +7295,8 @@ function createWebsiteSDK({ config, options }) {
|
|
|
7212
7295
|
rentals: { getRentalsByIds: rentals.getRentalsByIds },
|
|
7213
7296
|
availability: {
|
|
7214
7297
|
getInitialAvailability: availability.getInitialAvailability,
|
|
7215
|
-
getStartDateSelectedAvailability: availability.getStartDateSelectedAvailability
|
|
7298
|
+
getStartDateSelectedAvailability: availability.getStartDateSelectedAvailability,
|
|
7299
|
+
getBlockedRanges: blockedRanges.getBlockedRanges
|
|
7216
7300
|
},
|
|
7217
7301
|
quote: {
|
|
7218
7302
|
quote: quote.quote,
|
package/dist/index.d.mts
CHANGED
|
@@ -113,6 +113,22 @@ type V9EndDateOption = AvailabilityEndDateOption & {
|
|
|
113
113
|
type V9StartDateSelectedAvailabilityOutput = {
|
|
114
114
|
readonly calendarDays: Record<LocalDateString, V9EndDateOption>;
|
|
115
115
|
};
|
|
116
|
+
type V9AvailabilityGetBlockedRangesInput = {
|
|
117
|
+
readonly rentalIds: ReadonlyArray<string>;
|
|
118
|
+
};
|
|
119
|
+
type V9BlockedRange = {
|
|
120
|
+
readonly start: LocalDateString;
|
|
121
|
+
readonly end: LocalDateString | null;
|
|
122
|
+
readonly status: "unavailable" | "on_request";
|
|
123
|
+
};
|
|
124
|
+
type V9RentalBlockedRanges = {
|
|
125
|
+
readonly rentalId: string;
|
|
126
|
+
readonly availableFrom: LocalDateString;
|
|
127
|
+
readonly ranges: ReadonlyArray<V9BlockedRange>;
|
|
128
|
+
};
|
|
129
|
+
type V9AvailabilityGetBlockedRangesOutput = {
|
|
130
|
+
readonly rentals: ReadonlyArray<V9RentalBlockedRanges>;
|
|
131
|
+
};
|
|
116
132
|
//#endregion
|
|
117
133
|
//#region src/legacy-v9/rental-ids.d.ts
|
|
118
134
|
type V9RentalsGetRentalsByIdsInput = {
|
|
@@ -252,6 +268,7 @@ type WebsiteSDKV10AllRentalsAtOnceLive = Omit<WebsiteSDKSharedLive, "search"> &
|
|
|
252
268
|
type WebsiteSDKV9LiveAvailability = {
|
|
253
269
|
readonly getInitialAvailability: (input: AvailabilityGetInitialAvailabilityInput$1) => Promise<V9InitialAvailabilityOutput>;
|
|
254
270
|
readonly getStartDateSelectedAvailability: (input: AvailabilityGetStartDateSelectedAvailabilityInput$1) => Promise<V9StartDateSelectedAvailabilityOutput>;
|
|
271
|
+
readonly getBlockedRanges: (input: V9AvailabilityGetBlockedRangesInput) => Promise<V9AvailabilityGetBlockedRangesOutput>;
|
|
255
272
|
};
|
|
256
273
|
type WebsiteSDKV9LiveVoucher = {
|
|
257
274
|
readonly validate: (input: V9VoucherValidateInput) => Promise<V9VoucherValidateOutput>;
|
|
@@ -7794,4 +7811,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
|
|
|
7794
7811
|
export type RentalSearchInput = SearchSearchInput$1;
|
|
7795
7812
|
export type RentalSearchOutput = SearchSearchOutput$1;
|
|
7796
7813
|
//#endregion
|
|
7797
|
-
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 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 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 V9EndDateOption, type V9InitialAvailabilityOutput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, 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 };
|
|
7814
|
+
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 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 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 V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, 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-
|
|
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-D44b3iET.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/2.36.0/CHANGELOG.md`: release notes for 2.36.0
|
|
7
8
|
- `versions/2.35.0/CHANGELOG.md`: release notes for 2.35.0
|
|
8
9
|
- `versions/2.34.0/CHANGELOG.md`: release notes for 2.34.0
|
|
9
10
|
- `versions/2.33.0/CHANGELOG.md`: release notes for 2.33.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/2.36.0/MIGRATION.md`: Migration: 2.35.0 to 2.36.0
|
|
7
8
|
- `versions/2.35.0/MIGRATION.md`: Migration: 2.34.0 to 2.35.0
|
|
8
9
|
- `versions/2.34.0/MIGRATION.md`: Migration: 2.33.0 to 2.34.0
|
|
9
10
|
- `versions/2.33.0/MIGRATION.md`: Migration: 2.32.0 to 2.33.0
|
|
@@ -13,7 +13,7 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
13
13
|
- `custom-attributes.md`: custom attribute catalog, configuration, per-backend behaviour, and the v9-to-v10 move.
|
|
14
14
|
- `regions.md`: `sdk.static.regions.getRegions`, the website's region tree, region pages, and the search's region field.
|
|
15
15
|
- `search.md`: `sdk.live.search.search`, vouchers, and, on v9, `sdk.live.search.searchPages`, Hub filters, and `sdk.live.voucher.validate`.
|
|
16
|
-
- `availability.md`: date-picker availability flows.
|
|
16
|
+
- `availability.md`: date-picker availability flows and, on v9, `sdk.live.availability.getBlockedRanges` for availability timelines.
|
|
17
17
|
- `quote.md`: quote booking-card modifiers, additional services, cancellation policy, and insurance flows.
|
|
18
18
|
- `booking.md`: booking, payment option submission, and
|
|
19
19
|
`sdk.static.payment.getBankTransferDetails` (read-only bank details).
|
|
@@ -167,6 +167,52 @@ Treat `null` as no limit.
|
|
|
167
167
|
See `versions/2.28.0/CHANGELOG.md` and
|
|
168
168
|
`versions/2.28.0/MIGRATION.md`.
|
|
169
169
|
|
|
170
|
+
### Legacy v9 Blocked Ranges
|
|
171
|
+
|
|
172
|
+
From 2.36.0, v9 returns the ranges in which several rentals cannot be booked freely:
|
|
173
|
+
bookings, owner blocks, closures and on-request days. Use it for a timeline that shows
|
|
174
|
+
every rental of a holiday complex. v10 has no `getBlockedRanges`; check
|
|
175
|
+
`sdk.backend === "v9"` first.
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
if (sdk.backend === "v9") {
|
|
179
|
+
const { rentals } = await sdk.live.availability.getBlockedRanges({
|
|
180
|
+
rentalIds: ["212402", "212350"],
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
```json
|
|
186
|
+
{
|
|
187
|
+
"rentals": [
|
|
188
|
+
{
|
|
189
|
+
"rentalId": "212402",
|
|
190
|
+
"availableFrom": "2026-10-15",
|
|
191
|
+
"ranges": [{ "start": "2026-11-08", "end": "2026-11-21", "status": "unavailable" }]
|
|
192
|
+
},
|
|
193
|
+
{ "rentalId": "212350", "availableFrom": "2026-10-15", "ranges": [] }
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- `start` is the arrival day, `end` the departure day. The night before `end` is the last
|
|
199
|
+
blocked night, so the next stay can start on `end`.
|
|
200
|
+
- `end` is `null` when the range runs to the end of the known data. Draw it to the edge of
|
|
201
|
+
the view.
|
|
202
|
+
- `status` is `unavailable` for bookings, owner blocks and closures, which vOffice does not
|
|
203
|
+
tell apart, and `on_request` for days that can only be requested. Back-to-back bookings
|
|
204
|
+
appear as one range.
|
|
205
|
+
- Every day from `availableFrom` that no range covers is free. Days before
|
|
206
|
+
`availableFrom` are unknown. For most rentals `availableFrom` is today; an older date
|
|
207
|
+
means vOffice has not refreshed that rental's data since.
|
|
208
|
+
- Rentals come back in the order of `rentalIds`. Unknown or invalid IDs are left out, so
|
|
209
|
+
show "no data" for a rental that is missing instead of drawing it free.
|
|
210
|
+
|
|
211
|
+
Call it in the browser when the timeline opens. Every call reads vOffice's availability
|
|
212
|
+
export page by page, and vOffice bills each page. The browser caches each page for 60
|
|
213
|
+
seconds, so opening the timeline again within a minute costs nothing. Do not call it at
|
|
214
|
+
build time: the data is out of date by the next booking.
|
|
215
|
+
|
|
170
216
|
## Configuration
|
|
171
217
|
|
|
172
218
|
Use flat `WebsiteSDKConfig` files.
|
|
@@ -211,6 +257,12 @@ Fetch availability after selecting a start date:
|
|
|
211
257
|
website-sdk --backend v9 availability start-date-selected --rental-id 123 --selected-start-date 2026-07-08 --calculate-from-date 2026-07-01 --calculate-through-date 2026-08-01
|
|
212
258
|
```
|
|
213
259
|
|
|
260
|
+
Fetch the booked stays of v9 rentals:
|
|
261
|
+
|
|
262
|
+
```sh
|
|
263
|
+
website-sdk --backend v9 availability blocked-ranges --rental-ids 212402,212350
|
|
264
|
+
```
|
|
265
|
+
|
|
214
266
|
Use files instead of environment variables:
|
|
215
267
|
|
|
216
268
|
```sh
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog: 2.36.0
|
|
2
|
+
|
|
3
|
+
v9 websites can show when the rentals of a holiday complex are booked, for every rental in
|
|
4
|
+
one call instead of one availability calendar per rental.
|
|
5
|
+
|
|
6
|
+
## Added
|
|
7
|
+
|
|
8
|
+
- `sdk.live.availability.getBlockedRanges({ rentalIds })` on v9: the ranges in which
|
|
9
|
+
several rentals cannot be booked freely. Each range has a `start` (arrival day), an
|
|
10
|
+
`end` (departure day, or `null` when it runs to the end of the known data) and a
|
|
11
|
+
`status` (`unavailable` for bookings, owner blocks and closures, `on_request` for days
|
|
12
|
+
that can only be requested). Days between ranges are free.
|
|
13
|
+
- Each rental carries `availableFrom`, the first day the data covers.
|
|
14
|
+
- The types `V9AvailabilityGetBlockedRangesInput`, `V9AvailabilityGetBlockedRangesOutput`,
|
|
15
|
+
`V9RentalBlockedRanges` and `V9BlockedRange`.
|
|
16
|
+
- `website-sdk --backend v9 availability blocked-ranges --rental-ids 212402,212350`.
|
|
17
|
+
- `availability.md` covers it in "Legacy v9 Blocked Ranges".
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Qt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-
|
|
1
|
+
import { Qt as V9_FACILITY_ATTRIBUTE_KEYS } from "./client-D44b3iET.mjs";
|
|
2
2
|
import { S as parseVofficeUnitData, b as parseVofficeFeedbackData, d as rentalsAllWithoutFeedbacksQuery, g as VofficeUnitDataPropertyMetadata, h as VofficeUnitDataPropertyCategoryValues, i as hubFiltersQuery, l as rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery, m as VofficeUnitDataPropertyCategoryLabelKeys, o as rentalFacilitiesForObjectGroupRelationQuery, p as VofficeUnitDataFieldSchemas, s as rentalIdsQuery, u as rentalsAllFeedbacksQuery, y as parseVofficeFacilityData } from "./operations-C1VMQYN2.mjs";
|
|
3
3
|
import { a as toFacilityImages, c as toLocalizedString, i as toLocation, o as toImages, r as renderVofficePropertyAttribute, s as toAddress, t as toRentalHighlights } from "./to-rental-highlights-BdxQPpBU.mjs";
|
|
4
4
|
import { CoreSDKError, makeTranslate, renderResolvedCustomAttribute, toCustomAttributeList, toResolvedCustomAttributeCategoryTranslationKey } 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-D44b3iET.mjs";
|
|
2
2
|
import { S as parseVofficeUnitData, n as mapSearchQuery, r as searchQuery } from "./operations-C1VMQYN2.mjs";
|
|
3
3
|
import { i as toLocation, n as toV9RentalHighlightKey, o as toImages, s as toAddress, t as toRentalHighlights } from "./to-rental-highlights-BdxQPpBU.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/2.36.0/CHANGELOG.md`: release notes for 2.36.0
|
|
7
8
|
- `versions/2.35.0/CHANGELOG.md`: release notes for 2.35.0
|
|
8
9
|
- `versions/2.34.0/CHANGELOG.md`: release notes for 2.34.0
|
|
9
10
|
- `versions/2.33.0/CHANGELOG.md`: release notes for 2.33.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/2.36.0/MIGRATION.md`: Migration: 2.35.0 to 2.36.0
|
|
7
8
|
- `versions/2.35.0/MIGRATION.md`: Migration: 2.34.0 to 2.35.0
|
|
8
9
|
- `versions/2.34.0/MIGRATION.md`: Migration: 2.33.0 to 2.34.0
|
|
9
10
|
- `versions/2.33.0/MIGRATION.md`: Migration: 2.32.0 to 2.33.0
|
package/instructions/README.md
CHANGED
|
@@ -13,7 +13,7 @@ Use this directory as the consumer-facing reference for the package:
|
|
|
13
13
|
- `custom-attributes.md`: custom attribute catalog, configuration, per-backend behaviour, and the v9-to-v10 move.
|
|
14
14
|
- `regions.md`: `sdk.static.regions.getRegions`, the website's region tree, region pages, and the search's region field.
|
|
15
15
|
- `search.md`: `sdk.live.search.search`, vouchers, and, on v9, `sdk.live.search.searchPages`, Hub filters, and `sdk.live.voucher.validate`.
|
|
16
|
-
- `availability.md`: date-picker availability flows.
|
|
16
|
+
- `availability.md`: date-picker availability flows and, on v9, `sdk.live.availability.getBlockedRanges` for availability timelines.
|
|
17
17
|
- `quote.md`: quote booking-card modifiers, additional services, cancellation policy, and insurance flows.
|
|
18
18
|
- `booking.md`: booking, payment option submission, and
|
|
19
19
|
`sdk.static.payment.getBankTransferDetails` (read-only bank details).
|
|
@@ -167,6 +167,52 @@ Treat `null` as no limit.
|
|
|
167
167
|
See `versions/2.28.0/CHANGELOG.md` and
|
|
168
168
|
`versions/2.28.0/MIGRATION.md`.
|
|
169
169
|
|
|
170
|
+
### Legacy v9 Blocked Ranges
|
|
171
|
+
|
|
172
|
+
From 2.36.0, v9 returns the ranges in which several rentals cannot be booked freely:
|
|
173
|
+
bookings, owner blocks, closures and on-request days. Use it for a timeline that shows
|
|
174
|
+
every rental of a holiday complex. v10 has no `getBlockedRanges`; check
|
|
175
|
+
`sdk.backend === "v9"` first.
|
|
176
|
+
|
|
177
|
+
```ts
|
|
178
|
+
if (sdk.backend === "v9") {
|
|
179
|
+
const { rentals } = await sdk.live.availability.getBlockedRanges({
|
|
180
|
+
rentalIds: ["212402", "212350"],
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
```json
|
|
186
|
+
{
|
|
187
|
+
"rentals": [
|
|
188
|
+
{
|
|
189
|
+
"rentalId": "212402",
|
|
190
|
+
"availableFrom": "2026-10-15",
|
|
191
|
+
"ranges": [{ "start": "2026-11-08", "end": "2026-11-21", "status": "unavailable" }]
|
|
192
|
+
},
|
|
193
|
+
{ "rentalId": "212350", "availableFrom": "2026-10-15", "ranges": [] }
|
|
194
|
+
]
|
|
195
|
+
}
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
- `start` is the arrival day, `end` the departure day. The night before `end` is the last
|
|
199
|
+
blocked night, so the next stay can start on `end`.
|
|
200
|
+
- `end` is `null` when the range runs to the end of the known data. Draw it to the edge of
|
|
201
|
+
the view.
|
|
202
|
+
- `status` is `unavailable` for bookings, owner blocks and closures, which vOffice does not
|
|
203
|
+
tell apart, and `on_request` for days that can only be requested. Back-to-back bookings
|
|
204
|
+
appear as one range.
|
|
205
|
+
- Every day from `availableFrom` that no range covers is free. Days before
|
|
206
|
+
`availableFrom` are unknown. For most rentals `availableFrom` is today; an older date
|
|
207
|
+
means vOffice has not refreshed that rental's data since.
|
|
208
|
+
- Rentals come back in the order of `rentalIds`. Unknown or invalid IDs are left out, so
|
|
209
|
+
show "no data" for a rental that is missing instead of drawing it free.
|
|
210
|
+
|
|
211
|
+
Call it in the browser when the timeline opens. Every call reads vOffice's availability
|
|
212
|
+
export page by page, and vOffice bills each page. The browser caches each page for 60
|
|
213
|
+
seconds, so opening the timeline again within a minute costs nothing. Do not call it at
|
|
214
|
+
build time: the data is out of date by the next booking.
|
|
215
|
+
|
|
170
216
|
## Configuration
|
|
171
217
|
|
|
172
218
|
Use flat `WebsiteSDKConfig` files.
|
|
@@ -211,6 +257,12 @@ Fetch availability after selecting a start date:
|
|
|
211
257
|
website-sdk --backend v9 availability start-date-selected --rental-id 123 --selected-start-date 2026-07-08 --calculate-from-date 2026-07-01 --calculate-through-date 2026-08-01
|
|
212
258
|
```
|
|
213
259
|
|
|
260
|
+
Fetch the booked stays of v9 rentals:
|
|
261
|
+
|
|
262
|
+
```sh
|
|
263
|
+
website-sdk --backend v9 availability blocked-ranges --rental-ids 212402,212350
|
|
264
|
+
```
|
|
265
|
+
|
|
214
266
|
Use files instead of environment variables:
|
|
215
267
|
|
|
216
268
|
```sh
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# Changelog: 2.36.0
|
|
2
|
+
|
|
3
|
+
v9 websites can show when the rentals of a holiday complex are booked, for every rental in
|
|
4
|
+
one call instead of one availability calendar per rental.
|
|
5
|
+
|
|
6
|
+
## Added
|
|
7
|
+
|
|
8
|
+
- `sdk.live.availability.getBlockedRanges({ rentalIds })` on v9: the ranges in which
|
|
9
|
+
several rentals cannot be booked freely. Each range has a `start` (arrival day), an
|
|
10
|
+
`end` (departure day, or `null` when it runs to the end of the known data) and a
|
|
11
|
+
`status` (`unavailable` for bookings, owner blocks and closures, `on_request` for days
|
|
12
|
+
that can only be requested). Days between ranges are free.
|
|
13
|
+
- Each rental carries `availableFrom`, the first day the data covers.
|
|
14
|
+
- The types `V9AvailabilityGetBlockedRangesInput`, `V9AvailabilityGetBlockedRangesOutput`,
|
|
15
|
+
`V9RentalBlockedRanges` and `V9BlockedRange`.
|
|
16
|
+
- `website-sdk --backend v9 availability blocked-ranges --rental-ids 212402,212350`.
|
|
17
|
+
- `availability.md` covers it in "Legacy v9 Blocked Ranges".
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-office/website-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.36.0",
|
|
4
4
|
"description": "Website-facing SDK facade backed by @v-office/sdk-core",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"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",
|
|
94
94
|
"test:v9:rentals": "node --test src/legacy-v9/static/associate-rentals-with-facilities-by-object-groups.test.ts src/legacy-v9/parser/rentals/to-reviews.test.ts src/legacy-v9/parser/rentals/to-image.test.ts",
|
|
95
95
|
"test:v9:graphql": "node --test src/legacy-v9/graphql/client.test.ts",
|
|
96
|
-
"test:v9:availability": "node --test src/legacy-v9/parser/availability/to-availability-restrictions-by-date.test.ts src/legacy-v9/parser/availability/to-initial-availability-calendar-days.test.ts src/legacy-v9/parser/availability/to-occupancy-limits.test.ts src/legacy-v9/parser/availability/to-rent-night-prices.test.ts src/legacy-v9/parser/availability/to-start-date-selected-calendar-days.test.ts",
|
|
96
|
+
"test:v9:availability": "node --test src/legacy-v9/parser/availability/to-availability-restrictions-by-date.test.ts src/legacy-v9/parser/availability/to-initial-availability-calendar-days.test.ts src/legacy-v9/parser/availability/to-occupancy-limits.test.ts src/legacy-v9/parser/availability/to-rent-night-prices.test.ts src/legacy-v9/parser/availability/to-start-date-selected-calendar-days.test.ts src/legacy-v9/parser/blocked-ranges/collect-v9-blocked-ranges.test.ts src/legacy-v9/parser/blocked-ranges/to-rental-blocked-ranges.test.ts",
|
|
97
97
|
"test:v9:search": "node --test src/legacy-v9/parser/search/resolve-exact-match.test.ts src/legacy-v9/rental-scope.test.ts",
|
|
98
98
|
"test:v9:booking": "node --test src/legacy-v9/parser/booking/output/to-payment-schedules.test.ts",
|
|
99
99
|
"test:v9:videos": "node --test src/legacy-v9/parser/videos/to-videos.test.ts",
|