@v-office/website-sdk 2.34.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.
Files changed (36) hide show
  1. package/README.md +3 -3
  2. package/dist/cli.mjs +12 -4
  3. package/dist/{client-C1McSXf1.mjs → client-D44b3iET.mjs} +247 -42
  4. package/dist/index.d.mts +27 -2
  5. package/dist/index.mjs +1 -1
  6. package/dist/instructions/CHANGELOG.md +2 -0
  7. package/dist/instructions/MIGRATION.md +2 -0
  8. package/dist/instructions/README.md +2 -1
  9. package/dist/instructions/availability.md +52 -0
  10. package/dist/instructions/creation.md +3 -3
  11. package/dist/instructions/custom-attributes.md +11 -8
  12. package/dist/instructions/regions.md +123 -0
  13. package/dist/instructions/search.md +3 -0
  14. package/dist/instructions/versions/2.35.0/CHANGELOG.md +28 -0
  15. package/dist/instructions/versions/2.35.0/MIGRATION.md +39 -0
  16. package/dist/instructions/versions/2.36.0/CHANGELOG.md +17 -0
  17. package/dist/instructions/versions/2.36.0/MIGRATION.md +9 -0
  18. package/dist/{operations-CUWcmNGK.mjs → operations-C1VMQYN2.mjs} +62 -1
  19. package/dist/{rentals-yMGMrIHJ.mjs → rentals-TAEGMfgF.mjs} +3 -3
  20. package/dist/{search-DiEV8NhE.mjs → search-ByfrSxM6.mjs} +3 -3
  21. package/dist/{to-rental-highlights-Dbnm6Y4_.mjs → to-rental-highlights-BdxQPpBU.mjs} +1 -1
  22. package/instructions/CHANGELOG.md +2 -0
  23. package/instructions/MIGRATION.md +2 -0
  24. package/instructions/README.md +2 -1
  25. package/instructions/availability.md +52 -0
  26. package/instructions/creation.md +3 -3
  27. package/instructions/custom-attributes.md +11 -8
  28. package/instructions/regions.md +123 -0
  29. package/instructions/search.md +3 -0
  30. package/instructions/versions/2.35.0/CHANGELOG.md +28 -0
  31. package/instructions/versions/2.35.0/MIGRATION.md +39 -0
  32. package/instructions/versions/2.35.0/release.json +3 -0
  33. package/instructions/versions/2.36.0/CHANGELOG.md +17 -0
  34. package/instructions/versions/2.36.0/MIGRATION.md +9 -0
  35. package/instructions/versions/2.36.0/release.json +3 -0
  36. package/package.json +3 -3
package/README.md CHANGED
@@ -182,11 +182,11 @@ import { defineCustomAttributes } from "@v-office/website-sdk";
182
182
  const customAttributes = defineCustomAttributes({
183
183
  catalog,
184
184
  select: {
185
- region: {
186
- label: { "de-DE": "Region", "en-US": "Region" },
185
+ beach: {
186
+ label: { "de-DE": "Strand", "en-US": "Beach" },
187
187
  filter: true,
188
188
  optionLabels: {
189
- north: { "de-DE": "Norden", "en-US": "North" },
189
+ sand: { "de-DE": "Sandstrand", "en-US": "Sandy beach" },
190
190
  },
191
191
  },
192
192
  },
package/dist/cli.mjs CHANGED
@@ -1,6 +1,6 @@
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-C1McSXf1.mjs";
3
- import { a as hubRentalDataQuery, g as parseJsonData, i as hubFiltersQuery, m as VofficeUnitDataPropertyMetadata, u as rentalsAllWithoutFeedbacksQuery, y as parseVofficeRatingData } from "./operations-CUWcmNGK.mjs";
2
+ import { $t as V9_HUB_FACILITY_SCOPE_FILTER_KEY, Yt as defineWebsiteSDKOptions, Zt as defineV9PropertyHighlightSourcesFromUnknown, _ as rental_attributes_default$1, an as V9_HUB_REGION_FILTER_KEY, cn as V9_SDK_OWNED_HUB_FILTER_KEYS, en as V9_HUB_FACILITY_SEARCH_FILTER_KEY, f as makeV9GraphQLClient, h as makeV0OpenApiClientFetchLive, i as toV9SdkOwnedHubFilterKeys, in as V9_HUB_OFFER_FILTER_KEY, ln as stable_filters_default, n as checkV9HubFilters, nn as V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY, on as V9_HUB_RENTAL_IDS_FILTER_KEY, p as V0OpenApiClient, r as toV9RequiredHubFilterKeys, rn as V9_HUB_OFFERS_FILTER_KEY, sn as V9_HUB_UNIT_TYPE_FILTER_KEY, t as createWebsiteSDK, tn as V9_HUB_OBJECT_GROUP_FILTER_KEY, v as rental_attributes_default } from "./client-D44b3iET.mjs";
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";
6
6
  import { Command, Flag } from "effect/unstable/cli";
@@ -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.34.0";
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 availabilityCommand = Command.make("availability").pipe(Command.withDescription("Run live availability operations."), Command.withSubcommands([initial, startDateSelected]));
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* () {
@@ -1,5 +1,5 @@
1
- import { b as parseVofficeUnitData, h as customDataAttribute, t as voucherValidityQuery } from "./operations-CUWcmNGK.mjs";
2
- import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getBookingBookGuestToken, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, normalizeV10RateBudget, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toIsoDateFromPeriodQueryDate, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
1
+ import { S as parseVofficeUnitData, _ as customDataAttribute, c as rentalRegionsQuery, f as RegionSchema$1, t as voucherValidityQuery, v as parseJsonData } from "./operations-C1VMQYN2.mjs";
2
+ import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RegionsService, RentalService, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, buildWebsiteRegions, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, daysBetweenLocalDates, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getBookingBookGuestToken, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, normalizeV10RateBudget, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toIsoDateFromPeriodQueryDate, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
3
3
  import { Clock, Context, Data, DateTime, Duration, Effect, Layer, Schema, SchemaGetter } from "effect";
4
4
  import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http";
5
5
  import { Kind, print, visit } from "graphql";
@@ -262,7 +262,7 @@ const selectV9PropertyHighlightSources = ({ highlightPrioritization, registry })
262
262
  };
263
263
  //#endregion
264
264
  //#region src/legacy-v9/review-options.ts
265
- const LOCALES = ["de-DE", "en-US"];
265
+ const LOCALES$1 = ["de-DE", "en-US"];
266
266
  const BOOLEAN_OPTION_KEYS = [
267
267
  "showAuthorCity",
268
268
  "includeItemsWithoutText",
@@ -286,9 +286,9 @@ const criterionIssues = (criterion, index, seen) => {
286
286
  else seen.add(v9);
287
287
  if (criterion.type !== "stars" && criterion.type !== "text") issues.push(`${path}.type: expected "stars" or "text"`);
288
288
  const label = criterion.label;
289
- if (!isRecord(label)) issues.push(`${path}.label: expected a label for ${LOCALES.join(", ")}`);
289
+ if (!isRecord(label)) issues.push(`${path}.label: expected a label for ${LOCALES$1.join(", ")}`);
290
290
  else {
291
- const missing = LOCALES.filter((locale) => typeof label[locale] !== "string" || label[locale].trim() === "");
291
+ const missing = LOCALES$1.filter((locale) => typeof label[locale] !== "string" || label[locale].trim() === "");
292
292
  if (missing.length > 0) issues.push(`${path}.label: missing a label for ${missing.join(", ")}`);
293
293
  }
294
294
  return issues;
@@ -627,6 +627,9 @@ const getFiltersEffect = (input) => Effect.gen(function* () {
627
627
  const getTermsAndPrivacyPolicyEffect = (input) => Effect.gen(function* () {
628
628
  return yield* (yield* DocumentsService).getTermsAndPrivacyPolicy(input);
629
629
  });
630
+ const getRegionsEffect = (input) => Effect.gen(function* () {
631
+ return yield* (yield* RegionsService).getRegions(input);
632
+ });
630
633
  const getBankTransferDetailsEffect = () => Effect.gen(function* () {
631
634
  const service = yield* BookingService;
632
635
  if (service.getBankTransferDetails === void 0) return yield* Effect.fail(new CoreSDKError({
@@ -4480,6 +4483,121 @@ const makeV0OpenApiClientLive = (options) => Layer.effect(V0OpenApiClient, Effec
4480
4483
  }));
4481
4484
  const makeV0OpenApiClientFetchLive = (options) => makeV0OpenApiClientLive(options).pipe(Layer.provide(FetchHttpClient.layer));
4482
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
4483
4601
  //#region src/legacy-v9/parser/insurance/index.ts
4484
4602
  const urvInsuranceOptionAmounts = /* @__PURE__ */ new WeakMap();
4485
4603
  const urvInsuranceOptionAmountsByKey = /* @__PURE__ */ new Map();
@@ -5988,39 +6106,6 @@ const makeV9GraphQLClient = (config) => ({ execute: (document, variables) => Eff
5988
6106
  */
5989
6107
  const toCustomAttributeRentalDataAttributes = (customAttributes) => toCustomAttributeList(customAttributes).flatMap((attribute) => attribute.v9 !== void 0 && isDisplayableCustomAttribute(attribute) ? [attribute.v9] : []);
5990
6108
  //#endregion
5991
- //#region src/legacy-v9/parser/search/input/shared/to-positive-id.ts
5992
- const MAX_GRAPHQL_INT = 2147483647;
5993
- const toNonNegativeInt = (value) => {
5994
- if (!/^\d+$/.test(value)) return;
5995
- const number = Number(value);
5996
- return number <= MAX_GRAPHQL_INT ? number : void 0;
5997
- };
5998
- const toPositiveId = (value) => {
5999
- const id = toNonNegativeInt(value);
6000
- return id !== void 0 && id > 0 ? id : void 0;
6001
- };
6002
- //#endregion
6003
- //#region src/legacy-v9/rental-ids.ts
6004
- const toV9RentalIds = (rentalIds) => Array.isArray(rentalIds) ? [...new Set(rentalIds.flatMap((rentalId) => typeof rentalId === "string" ? toPositiveId(rentalId.trim()) ?? [] : []))] : [];
6005
- const applyV9RentalIdsToSearchQueryInput = ({ input, rentalIdsIn, rentalIdsSearch }) => Effect.gen(function* () {
6006
- if (rentalIdsIn === void 0) return input;
6007
- if (!rentalIdsSearch) return yield* Effect.fail(new CoreSDKError({
6008
- source: "v9",
6009
- operation: "v9.search",
6010
- 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.`
6011
- }));
6012
- if (Array.isArray(rentalIdsIn) && rentalIdsIn.length === 0) return input;
6013
- const rentalIds = toV9RentalIds(rentalIdsIn);
6014
- if (rentalIds.length === 0) return void 0;
6015
- return {
6016
- ...input,
6017
- basicQueryInputs: [...[input.basicQueryInputs ?? []].flat(), {
6018
- key: V9_HUB_RENTAL_IDS_FILTER_KEY,
6019
- value: rentalIds
6020
- }]
6021
- };
6022
- });
6023
- //#endregion
6024
6109
  //#region src/legacy-v9/rental-scope.ts
6025
6110
  const toV9PropertyScope = (scope) => {
6026
6111
  if (scope.propertyId == null) return { kind: "absent" };
@@ -6092,7 +6177,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
6092
6177
  return page;
6093
6178
  });
6094
6179
  const loadV9SearchRuntime = Effect.tryPromise({
6095
- try: () => import("./search-DiEV8NhE.mjs"),
6180
+ try: () => import("./search-ByfrSxM6.mjs"),
6096
6181
  catch: (cause) => new CoreSDKError({
6097
6182
  source: "v9",
6098
6183
  operation: "v9.search.runtime",
@@ -6766,6 +6851,121 @@ const makeV9FilterApi = ({ options }) => {
6766
6851
  })) };
6767
6852
  };
6768
6853
  //#endregion
6854
+ //#region src/legacy-v9/static/regions.ts
6855
+ const LOCALES = ["de-DE", "en-US"];
6856
+ /** The name in the locale, else the other language. */
6857
+ const toName = (region) => {
6858
+ const names = region.name ?? {};
6859
+ const de = names.de?.trim() || names.en?.trim();
6860
+ const en = names.en?.trim() || de;
6861
+ return de && en ? {
6862
+ "de-DE": de,
6863
+ "en-US": en
6864
+ } : void 0;
6865
+ };
6866
+ const toDescription = (region) => {
6867
+ const texts = region.description ?? region.descriptions ?? {};
6868
+ const description = {};
6869
+ for (const locale of LOCALES) {
6870
+ const text = texts[localeToLanguage(locale)]?.trim();
6871
+ if (text) description[locale] = text;
6872
+ }
6873
+ return description;
6874
+ };
6875
+ const toSlug = (name) => name.toLowerCase().replace(/ä/g, "ae").replace(/ö/g, "oe").replace(/ü/g, "ue").replace(/ß/g, "ss").normalize("NFKD").replace(/[̀-ͯ]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "") || "region";
6876
+ /** Slugs unique among `names`' siblings: a repeat gets "-2", "-3" … in order. */
6877
+ const uniqueSlugs = (names) => {
6878
+ const taken = /* @__PURE__ */ new Set();
6879
+ return names.map((name) => {
6880
+ const base = toSlug(name);
6881
+ let slug = base;
6882
+ for (let n = 2; taken.has(slug); n++) slug = `${base}-${n}`;
6883
+ taken.add(slug);
6884
+ return slug;
6885
+ });
6886
+ };
6887
+ /** Maps the vOffice regions and the rentals' regions; throws on a region without a name. */
6888
+ const toV9WebsiteRegions = ({ regions, rentalRegions }) => {
6889
+ const ids = new Set(regions.map((region) => region._id));
6890
+ const parentOf = (region) => region.parent !== void 0 && ids.has(region.parent) ? region.parent : null;
6891
+ const named = regions.map((region) => {
6892
+ const name = toName(region);
6893
+ if (name === void 0) throw new Error(`vOffice region ${region._id} has no name.`);
6894
+ return {
6895
+ region,
6896
+ name
6897
+ };
6898
+ });
6899
+ const ownRentalIds = /* @__PURE__ */ new Map();
6900
+ for (const { rentalId, regionId } of rentalRegions) if (ids.has(regionId)) ownRentalIds.set(regionId, [...ownRentalIds.get(regionId) ?? [], rentalId]);
6901
+ const childrenOf = (parent) => named.filter(({ region }) => parentOf(region) === parent).sort((left, right) => left.name["de-DE"].localeCompare(right.name["de-DE"], "de") || left.region._id - right.region._id);
6902
+ const hasRentals = (id) => (ownRentalIds.get(id)?.length ?? 0) > 0 || childrenOf(id).some(({ region }) => hasRentals(region._id));
6903
+ const visit = (parent) => {
6904
+ const siblings = childrenOf(parent);
6905
+ const de = uniqueSlugs(siblings.map(({ name }) => name["de-DE"]));
6906
+ const en = uniqueSlugs(siblings.map(({ name }) => name["en-US"]));
6907
+ return siblings.flatMap(({ region, name }, index) => {
6908
+ if (!hasRentals(region._id)) return [];
6909
+ return [{
6910
+ id: String(region._id),
6911
+ parentId: parent === null ? null : String(parent),
6912
+ name,
6913
+ slug: {
6914
+ "de-DE": de[index] ?? "",
6915
+ "en-US": en[index] ?? ""
6916
+ },
6917
+ description: toDescription(region),
6918
+ ownRentalIds: ownRentalIds.get(region._id) ?? []
6919
+ }, ...visit(region._id)];
6920
+ });
6921
+ };
6922
+ const inputs = visit(null);
6923
+ const reached = new Set(inputs.map(({ id }) => id));
6924
+ const unreachedRentalRegion = [...ownRentalIds.keys()].find((id) => !reached.has(String(id)));
6925
+ if (unreachedRentalRegion !== void 0) throw new Error(`vOffice region ${unreachedRentalRegion} with rentals is not reachable from a root.`);
6926
+ return buildWebsiteRegions({
6927
+ isWebsiteOverride: false,
6928
+ regions: inputs
6929
+ });
6930
+ };
6931
+ const makeV9RegionsApi = ({ config }) => {
6932
+ const graphql = makeV9GraphQLClient(config);
6933
+ const openApiClientLive = makeV0OpenApiClientFetchLive({
6934
+ apiKey: config.apiKey,
6935
+ ...config.v0ApiBaseUrl === void 0 ? {} : { baseUrl: config.v0ApiBaseUrl }
6936
+ });
6937
+ const loadRegions = Effect.gen(function* () {
6938
+ const result = yield* (yield* V0OpenApiClient).execute("proxyVofficeAction", { query: {
6939
+ actionName: "getRegions",
6940
+ description: true
6941
+ } });
6942
+ const response = yield* Schema.decodeUnknownEffect(RegionsResponseSchema)(result.raw);
6943
+ if (response.ok === false || response.regions === void 0) return yield* Effect.fail(new CoreSDKError({
6944
+ source: "v9",
6945
+ operation: "v9.regions.getRegions",
6946
+ message: "vOffice rejected getRegions.",
6947
+ cause: result.raw
6948
+ }));
6949
+ return response.regions.filter((region) => typeof region._id === "number");
6950
+ }).pipe(Effect.provide(openApiClientLive));
6951
+ const loadRentalRegions = graphql.execute(rentalRegionsQuery, {}).pipe(Effect.map((data) => data.all.flatMap((rental) => {
6952
+ const region = parseJsonData({ region: RegionSchema$1 }, rental.data).known.region;
6953
+ return region === void 0 ? [] : [{
6954
+ rentalId: String(rental.voffice_id),
6955
+ regionId: region.id
6956
+ }];
6957
+ })));
6958
+ return { getRegions: () => Effect.runPromise(Effect.all([loadRegions, loadRentalRegions], { concurrency: 2 }).pipe(Effect.flatMap(([regions, rentalRegions]) => Effect.try(() => toV9WebsiteRegions({
6959
+ regions,
6960
+ rentalRegions
6961
+ }))), Effect.mapError((cause) => new CoreSDKError({
6962
+ source: "v9",
6963
+ operation: "v9.regions.getRegions",
6964
+ message: "Failed to load the v9 region tree.",
6965
+ cause
6966
+ })))) };
6967
+ };
6968
+ //#endregion
6769
6969
  //#region src/legacy-v9/hub-filter-requirements.ts
6770
6970
  const toV9SdkOwnedHubFilterKeys = ({ config, rentalScope }) => {
6771
6971
  const scopeKey = toV9RentalScopeHubFilterKey({
@@ -6840,7 +7040,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
6840
7040
  });
6841
7041
  };
6842
7042
  const loadV9RentalsRuntime = Effect.tryPromise({
6843
- try: () => import("./rentals-yMGMrIHJ.mjs"),
7043
+ try: () => import("./rentals-TAEGMfgF.mjs"),
6844
7044
  catch: (cause) => new CoreSDKError({
6845
7045
  source: "v9",
6846
7046
  operation: "v9.rentals.runtime",
@@ -7071,7 +7271,9 @@ function createWebsiteSDK({ config, options }) {
7071
7271
  config,
7072
7272
  options: v9Options
7073
7273
  });
7274
+ const regions = makeV9RegionsApi({ config });
7074
7275
  const videos = makeV9VideosApi({ config });
7276
+ const blockedRanges = makeV9BlockedRangesApi({ config });
7075
7277
  recordConstructedBackend("v9");
7076
7278
  recordConstructedSdk(config, options);
7077
7279
  return {
@@ -7079,6 +7281,7 @@ function createWebsiteSDK({ config, options }) {
7079
7281
  static: {
7080
7282
  rentals: { getRentals: rentals.getRentals },
7081
7283
  filter: { getFilters: filter.getFilters },
7284
+ regions: { getRegions: () => regions.getRegions() },
7082
7285
  videos: { getVideos: videos.getVideos }
7083
7286
  },
7084
7287
  live: {
@@ -7092,7 +7295,8 @@ function createWebsiteSDK({ config, options }) {
7092
7295
  rentals: { getRentalsByIds: rentals.getRentalsByIds },
7093
7296
  availability: {
7094
7297
  getInitialAvailability: availability.getInitialAvailability,
7095
- getStartDateSelectedAvailability: availability.getStartDateSelectedAvailability
7298
+ getStartDateSelectedAvailability: availability.getStartDateSelectedAvailability,
7299
+ getBlockedRanges: blockedRanges.getBlockedRanges
7096
7300
  },
7097
7301
  quote: {
7098
7302
  quote: quote.quote,
@@ -7126,7 +7330,8 @@ function createWebsiteSDK({ config, options }) {
7126
7330
  rentals: { getRentals: (input) => runtime.runPromise(getRentalsEffect(input)) },
7127
7331
  filter: { getFilters: (input) => runtime.runPromise(getFiltersEffect(input)) },
7128
7332
  documents: { getTermsAndPrivacyPolicy: (input) => runtime.runPromise(getTermsAndPrivacyPolicyEffect(input)) },
7129
- payment: { getBankTransferDetails: () => runtime.runPromise(getBankTransferDetailsEffect()) }
7333
+ payment: { getBankTransferDetails: () => runtime.runPromise(getBankTransferDetailsEffect()) },
7334
+ regions: { getRegions: (input) => runtime.runPromise(getRegionsEffect(input)) }
7130
7335
  },
7131
7336
  live: {
7132
7337
  contact: { submit: (input) => runtime.runPromise(submitContactEffect(input)) },
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V10RateBudget, V9OnlyCustomAttributeInput, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
1
+ import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RegionsGetRegionsInput, RegionsGetRegionsInput as RegionsGetRegionsInput$1, RegionsService, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V10RateBudget, V9OnlyCustomAttributeInput, WebsiteRegion, WebsiteRegions, WebsiteRegions as WebsiteRegions$1, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
2
2
  import { Context, Effect, Layer, Schema } from "effect";
3
3
  import { HttpClient } from "effect/unstable/http";
4
4
  import "@graphql-typed-document-node/core";
@@ -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 = {
@@ -180,6 +196,14 @@ type WebsiteSDKSharedStatic = {
180
196
  readonly filter: {
181
197
  readonly getFilters: (input: FilterGetFiltersInput$1) => Promise<FilterGetFiltersOutput$1>;
182
198
  };
199
+ readonly regions: {
200
+ /**
201
+ * The website's region tree. v10: the websites service's tree, the website's own or else
202
+ * the workspace's default. v9: vOffice's region hierarchy, which ignores
203
+ * `aiStudioWebsiteId`. Read it once per build: neither backend caches it.
204
+ */
205
+ readonly getRegions: (input: RegionsGetRegionsInput$1) => Promise<WebsiteRegions$1>;
206
+ };
183
207
  };
184
208
  type WebsiteSDKV10Static = WebsiteSDKSharedStatic & {
185
209
  readonly documents: {
@@ -244,6 +268,7 @@ type WebsiteSDKV10AllRentalsAtOnceLive = Omit<WebsiteSDKSharedLive, "search"> &
244
268
  type WebsiteSDKV9LiveAvailability = {
245
269
  readonly getInitialAvailability: (input: AvailabilityGetInitialAvailabilityInput$1) => Promise<V9InitialAvailabilityOutput>;
246
270
  readonly getStartDateSelectedAvailability: (input: AvailabilityGetStartDateSelectedAvailabilityInput$1) => Promise<V9StartDateSelectedAvailabilityOutput>;
271
+ readonly getBlockedRanges: (input: V9AvailabilityGetBlockedRangesInput) => Promise<V9AvailabilityGetBlockedRangesOutput>;
247
272
  };
248
273
  type WebsiteSDKV9LiveVoucher = {
249
274
  readonly validate: (input: V9VoucherValidateInput) => Promise<V9VoucherValidateOutput>;
@@ -7786,4 +7811,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
7786
7811
  export type RentalSearchInput = SearchSearchInput$1;
7787
7812
  export type RentalSearchOutput = SearchSearchOutput$1;
7788
7813
  //#endregion
7789
- 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 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 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-C1McSXf1.mjs";
1
+ import { $ as QuoteSchema, A as DocumentResourceSchema, At as bookInsuranceEffect, B as ErgoPersonSchema, Bt as quoteEffect, C as ApiEnvelopeBaseSchema, Ct as V1_BASE_URL, D as CustomerUnitSummarySchema, Dt as decodeV1OperationResponse, E as CurrentMemberResponseSchema, Et as VideoResponseSchema, F as ErgoAddressSchema, Ft as getInitialAvailabilityEffect, G as FacilityListResponseSchema, Gt as selectInsurancePaymentEffect, H as ErgoPolicyNumberRequestSchema, Ht as searchEffect, I as ErgoBankSchema, It as getRentalsEffect, J as PaymentScheduleItemSchema, Jt as submitPaymentOptionEffect, K as OnOfficeUnitCollectionResponseSchema, Kt as submitContactEffect, L as ErgoBookRequestSchema, Lt as getStartDateSelectedAvailabilityEffect, M as DocumentStatusUpdateRequestSchema, Mt as createInsurancePreContractEffect, N as DocumentSummarySchema, Nt as getBankTransferDetailsEffect, O as DocumentCollectionResponseSchema, Ot as addAdditionalServiceEffect, P as DocumentTypeSchema, Pt as getFiltersEffect, Q as QuotePricesResponseSchema, R as ErgoCommonFieldsSchema, Rt as getTermsAndPrivacyPolicyEffect, S as makeV1OpenApiClientLive, St as UnitServicePriceSchema, T as CalendarResponseSchema, Tt as VideoListResponseSchema, U as ErgoReadPreContractRequestSchema, Ut as selectCancellationPolicyEffect, V as ErgoPlanSearchRequestSchema, Vt as removeAdditionalServiceEffect, W as ErgoTripAndCustomerRequestSchema, Wt as selectInsuranceEffect, X as QuoteLineSchema, Xt as defineV9PropertyHighlightSources, Y as PaymentScheduleSchema, Yt as defineWebsiteSDKOptions, Z as QuotePricesPayloadSchema, Zt as defineV9PropertyHighlightSourcesFromUnknown, _t as UnitIdsResponseSchema, at as SearchPropertiesResponseSchema, b as V1OpenApiClientError, bt as UnitOfferSchema, ct as ServiceLimitSchema, dt as SetupResponseSchema, et as QuoteServiceSchema, ft as TileCollectionResponseSchema, g as makeV0OpenApiClientLive, gt as TravelInsuranceBookingStoreRequestSchema, h as makeV0OpenApiClientFetchLive, ht as TravelInsuranceBookingSchema, it as RoomImageSchema, j as DocumentStatusSchema, jt as clearAdditionalServicesEffect, k as DocumentResourceResponseSchema, kt as bookEffect, lt as ServiceListResponseSchema, m as V0OpenApiClientError, mt as TileTagSchema, nt as RawVofficeObjectSchema, ot as ServiceBeonDataSchema, p as V0OpenApiClient, pt as TileSchema, q as OnOfficeUnitSchema, qt as submitPaymentOption, rt as RegionListResponseSchema, st as ServiceImageSchema, t as createWebsiteSDK, tt as RawObjectResponseSchema, ut as SetupDataSchema, vt as UnitListItemSchema, w as CalendarDaySchema, wt as V1_OPERATIONS, x as makeV1OpenApiClientFetchLive, xt as UnitResponseSchema, y as V1OpenApiClient, yt as UnitListResponseSchema, z as ErgoCreatePreContractRequestSchema, zt as mapSearchEffect } from "./client-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,8 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/2.36.0/CHANGELOG.md`: release notes for 2.36.0
8
+ - `versions/2.35.0/CHANGELOG.md`: release notes for 2.35.0
7
9
  - `versions/2.34.0/CHANGELOG.md`: release notes for 2.34.0
8
10
  - `versions/2.33.0/CHANGELOG.md`: release notes for 2.33.0
9
11
  - `versions/2.32.0/CHANGELOG.md`: release notes for 2.32.0
@@ -4,6 +4,8 @@
4
4
 
5
5
  Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
6
6
 
7
+ - `versions/2.36.0/MIGRATION.md`: Migration: 2.35.0 to 2.36.0
8
+ - `versions/2.35.0/MIGRATION.md`: Migration: 2.34.0 to 2.35.0
7
9
  - `versions/2.34.0/MIGRATION.md`: Migration: 2.33.0 to 2.34.0
8
10
  - `versions/2.33.0/MIGRATION.md`: Migration: 2.32.0 to 2.33.0
9
11
  - `versions/2.32.0/MIGRATION.md`: Migration: 2.31.1 to 2.32.0
@@ -11,8 +11,9 @@ Use this directory as the consumer-facing reference for the package:
11
11
  - `filter.md`: `sdk.static.filter.getFilters`.
12
12
  - `videos.md`: v9 only. `sdk.static.videos.getVideos`, placements, and HLS playback.
13
13
  - `custom-attributes.md`: custom attribute catalog, configuration, per-backend behaviour, and the v9-to-v10 move.
14
+ - `regions.md`: `sdk.static.regions.getRegions`, the website's region tree, region pages, and the search's region field.
14
15
  - `search.md`: `sdk.live.search.search`, vouchers, and, on v9, `sdk.live.search.searchPages`, Hub filters, and `sdk.live.voucher.validate`.
15
- - `availability.md`: date-picker availability flows.
16
+ - `availability.md`: date-picker availability flows and, on v9, `sdk.live.availability.getBlockedRanges` for availability timelines.
16
17
  - `quote.md`: quote booking-card modifiers, additional services, cancellation policy, and insurance flows.
17
18
  - `booking.md`: booking, payment option submission, and
18
19
  `sdk.static.payment.getBankTransferDetails` (read-only bank details).