@v-office/website-sdk 2.37.1 → 2.38.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 +3 -3
- package/dist/{client-D53W9Uas.mjs → client-CE4V_ybW.mjs} +175 -77
- package/dist/index.d.mts +46 -2
- package/dist/index.mjs +1 -1
- package/dist/instructions/CHANGELOG.md +1 -0
- package/dist/instructions/MIGRATION.md +1 -0
- package/dist/instructions/quote.md +7 -0
- package/dist/instructions/rentals.md +65 -4
- package/dist/instructions/search.md +2 -1
- package/dist/instructions/versions/2.38.0/CHANGELOG.md +123 -0
- package/dist/instructions/versions/2.38.0/MIGRATION.md +37 -0
- package/dist/{operations-C1VMQYN2.mjs → operations-DMqLD3e2.mjs} +333 -1
- package/dist/{rentals-BxkYXAVn.mjs → rentals-BsHvdwQt.mjs} +10 -14
- package/dist/{search-pFLiI6QI.mjs → search-DqdRIJwF.mjs} +8 -4
- package/dist/{to-rental-highlights-BdxQPpBU.mjs → to-rental-highlights-BE6TdXYa.mjs} +23 -5
- package/dist/translations/shared/de-DE/insurance.json +1 -0
- package/dist/translations/shared/de-DE/reviews.json +5 -4
- package/dist/translations/shared/en-US/insurance.json +1 -0
- package/dist/translations/shared/en-US/reviews.json +5 -4
- package/dist/translations/v10/de-DE/core.json +17 -4
- package/dist/translations/v10/en-US/core.json +53 -40
- package/dist/translations/v9/de-DE/core.json +0 -6
- package/dist/translations/v9/de-DE/filter.json +4 -0
- package/dist/translations/v9/de-DE/rental-attributes.json +2 -2
- package/dist/translations/v9/en-US/core.json +0 -6
- package/dist/translations/v9/en-US/filter.json +4 -0
- package/dist/translations/v9/en-US/rental-attributes.json +2 -2
- package/instructions/CHANGELOG.md +1 -0
- package/instructions/MIGRATION.md +1 -0
- package/instructions/quote.md +7 -0
- package/instructions/rentals.md +65 -4
- package/instructions/search.md +2 -1
- package/instructions/versions/2.38.0/CHANGELOG.md +123 -0
- package/instructions/versions/2.38.0/MIGRATION.md +37 -0
- package/instructions/versions/2.38.0/release.json +3 -0
- package/package.json +3 -3
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-
|
|
3
|
-
import {
|
|
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-CE4V_ybW.mjs";
|
|
3
|
+
import { C as parseVofficeRatingData, a as hubFiltersQuery, b as parseJsonData, o as hubRentalDataQuery, p as rentalsAllWithoutFeedbacksQuery, v as VofficeUnitDataPropertyMetadata } from "./operations-DMqLD3e2.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.
|
|
20
|
+
var version = "2.38.0";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/cli/output.ts
|
|
23
23
|
const toJson = (value) => Effect.try({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
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";
|
|
1
|
+
import { b as parseJsonData, l as rentalRegionsQuery, m as RegionSchema$1, t as voucherValidityQuery, w as parseVofficeUnitData, y as customDataAttribute } from "./operations-DMqLD3e2.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, toCountLabelKey, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toIsoDateFromPeriodQueryDate, toNoInsuranceOption, toNotOfferedInsurance, 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";
|
|
@@ -1822,12 +1822,6 @@ const applyV9EndDatePrices = ({ availability, calendarDays, selectedStartDate, l
|
|
|
1822
1822
|
var core_default$1 = {
|
|
1823
1823
|
"Rental.rentalType.option.HOUSE": "Haus",
|
|
1824
1824
|
"Rental.rentalType.option.FLAT": "Wohnung",
|
|
1825
|
-
"Property.propertyType.option.APARTMENT_COMPLEX": "Appartement Komplex",
|
|
1826
|
-
"Property.propertyType.option.CAMPGROUND": "Campingplatz",
|
|
1827
|
-
"Property.propertyType.option.FARM": "Bauernhof",
|
|
1828
|
-
"Property.propertyType.option.HOLIDAY_HOME_COMPLEX": "Ferienpark",
|
|
1829
|
-
"Property.propertyType.option.HOSTEL": "Hostel",
|
|
1830
|
-
"Property.propertyType.option.HOTEL": "Hotel",
|
|
1831
1825
|
"reviews.item.guest": "Gast",
|
|
1832
1826
|
"reviews.item.authorWithCity": "{author} aus {city}",
|
|
1833
1827
|
"voucher.validate.reason.valid": "Der Gutscheincode ist gültig.",
|
|
@@ -1842,7 +1836,11 @@ var core_default$1 = {
|
|
|
1842
1836
|
//#region translations/v9/de-DE/filter.json
|
|
1843
1837
|
var filter_default$1 = {
|
|
1844
1838
|
"filter.bedrooms.label": "Schlafzimmer",
|
|
1839
|
+
"filter.bedrooms.count.one": "Schlafzimmer",
|
|
1840
|
+
"filter.bedrooms.count.other": "Schlafzimmer",
|
|
1845
1841
|
"filter.bathrooms.label": "Badezimmer",
|
|
1842
|
+
"filter.bathrooms.count.one": "Badezimmer",
|
|
1843
|
+
"filter.bathrooms.count.other": "Badezimmer",
|
|
1846
1844
|
"filter.pool.label": "Pool",
|
|
1847
1845
|
"filter.wifi.label": "WLAN",
|
|
1848
1846
|
"filter.pets.label": "Haustiere",
|
|
@@ -2518,8 +2516,8 @@ var rental_attributes_default$1 = {
|
|
|
2518
2516
|
"RentalAttributes.showerCount.count.other": "Duschen",
|
|
2519
2517
|
"RentalAttributes.tvCount.count.one": "TV",
|
|
2520
2518
|
"RentalAttributes.tvCount.count.other": "TVs",
|
|
2521
|
-
"RentalAttributes.beds.count.one": "
|
|
2522
|
-
"RentalAttributes.beds.count.other": "
|
|
2519
|
+
"RentalAttributes.beds.count.one": "Gast",
|
|
2520
|
+
"RentalAttributes.beds.count.other": "Gäste",
|
|
2523
2521
|
"RentalAttributes.beds4kids.count.one": "Schlafplatz für Kinder",
|
|
2524
2522
|
"RentalAttributes.beds4kids.count.other": "Schlafplätze für Kinder",
|
|
2525
2523
|
"RentalAttributes.rooms.count.one": "Zimmer",
|
|
@@ -2570,12 +2568,6 @@ var rental_attributes_default$1 = {
|
|
|
2570
2568
|
var core_default = {
|
|
2571
2569
|
"Rental.rentalType.option.HOUSE": "House",
|
|
2572
2570
|
"Rental.rentalType.option.FLAT": "Apartment",
|
|
2573
|
-
"Property.propertyType.option.APARTMENT_COMPLEX": "Apartment complex",
|
|
2574
|
-
"Property.propertyType.option.CAMPGROUND": "Campground",
|
|
2575
|
-
"Property.propertyType.option.FARM": "Farm",
|
|
2576
|
-
"Property.propertyType.option.HOLIDAY_HOME_COMPLEX": "Holiday Home Complex",
|
|
2577
|
-
"Property.propertyType.option.HOSTEL": "Hostel",
|
|
2578
|
-
"Property.propertyType.option.HOTEL": "Hotel",
|
|
2579
2571
|
"reviews.item.guest": "Guest",
|
|
2580
2572
|
"reviews.item.authorWithCity": "{author} from {city}",
|
|
2581
2573
|
"voucher.validate.reason.valid": "The voucher code is valid.",
|
|
@@ -2590,7 +2582,11 @@ var core_default = {
|
|
|
2590
2582
|
//#region translations/v9/en-US/filter.json
|
|
2591
2583
|
var filter_default = {
|
|
2592
2584
|
"filter.bedrooms.label": "Bedrooms",
|
|
2585
|
+
"filter.bedrooms.count.one": "bedroom",
|
|
2586
|
+
"filter.bedrooms.count.other": "bedrooms",
|
|
2593
2587
|
"filter.bathrooms.label": "Bathrooms",
|
|
2588
|
+
"filter.bathrooms.count.one": "bathroom",
|
|
2589
|
+
"filter.bathrooms.count.other": "bathrooms",
|
|
2594
2590
|
"filter.pool.label": "Pool",
|
|
2595
2591
|
"filter.wifi.label": "Wi-Fi",
|
|
2596
2592
|
"filter.pets.label": "Pets",
|
|
@@ -3266,8 +3262,8 @@ var rental_attributes_default = {
|
|
|
3266
3262
|
"RentalAttributes.showerCount.count.other": "showers",
|
|
3267
3263
|
"RentalAttributes.tvCount.count.one": "TV",
|
|
3268
3264
|
"RentalAttributes.tvCount.count.other": "TVs",
|
|
3269
|
-
"RentalAttributes.beds.count.one": "
|
|
3270
|
-
"RentalAttributes.beds.count.other": "
|
|
3265
|
+
"RentalAttributes.beds.count.one": "guest",
|
|
3266
|
+
"RentalAttributes.beds.count.other": "guests",
|
|
3271
3267
|
"RentalAttributes.beds4kids.count.one": "children’s bed",
|
|
3272
3268
|
"RentalAttributes.beds4kids.count.other": "children’s beds",
|
|
3273
3269
|
"RentalAttributes.rooms.count.one": "room",
|
|
@@ -4605,14 +4601,6 @@ const getUrvInsuranceOptionAmount = (option) => urvInsuranceOptionAmounts.get(op
|
|
|
4605
4601
|
const toFormattedPrice = (money, locale) => formatCurrency(money.amount, locale, money.currency);
|
|
4606
4602
|
const toUrvInsuranceOptionAmountKey = (option) => `${option.id}:${option.formattedPrice}`;
|
|
4607
4603
|
const toMinorUnitAmount = (amount, decimals) => Math.round(amount * 10 ** (2 - decimals));
|
|
4608
|
-
const toNoInsuranceOption = (input) => typeof input === "string" ? {
|
|
4609
|
-
kind: "none",
|
|
4610
|
-
label: input === "de-DE" ? "Keine Versicherung" : "No insurance"
|
|
4611
|
-
} : {
|
|
4612
|
-
kind: "none",
|
|
4613
|
-
label: input.label,
|
|
4614
|
-
description: input.description
|
|
4615
|
-
};
|
|
4616
4604
|
const toResource = (label, url) => url === void 0 ? [] : [{
|
|
4617
4605
|
label,
|
|
4618
4606
|
url
|
|
@@ -5512,12 +5500,6 @@ const toErgoTripAndCustomerInput = ({ quote, customerInformation, travelers }) =
|
|
|
5512
5500
|
});
|
|
5513
5501
|
//#endregion
|
|
5514
5502
|
//#region src/legacy-v9/live/quote-insurance/state.ts
|
|
5515
|
-
const emptyInsurance = (quote) => ({
|
|
5516
|
-
options: [toNoInsuranceOption(getGuestQuoteInput(quote).locale)],
|
|
5517
|
-
selected: { kind: "none" },
|
|
5518
|
-
preContract: { kind: "none_selected" },
|
|
5519
|
-
paymentOptions: []
|
|
5520
|
-
});
|
|
5521
5503
|
const withInsurance = (quote, insurance) => withGuestQuoteInsurance({
|
|
5522
5504
|
quote,
|
|
5523
5505
|
insurance
|
|
@@ -5530,8 +5512,10 @@ const toInsurancePaymentOptions = (option) => option.requiredInformation.kind ==
|
|
|
5530
5512
|
const withRefreshedInsuranceOptions = ({ quote, options, destinationCountryCode }) => {
|
|
5531
5513
|
const nextDestinationCountryCode = destinationCountryCode ?? quote.insurance?.destinationCountryCode;
|
|
5532
5514
|
const nextInsurance = {
|
|
5533
|
-
...emptyInsurance(quote),
|
|
5534
5515
|
options,
|
|
5516
|
+
selected: { kind: "none" },
|
|
5517
|
+
preContract: { kind: "none_selected" },
|
|
5518
|
+
paymentOptions: [],
|
|
5535
5519
|
...nextDestinationCountryCode === void 0 ? {} : { destinationCountryCode: nextDestinationCountryCode }
|
|
5536
5520
|
};
|
|
5537
5521
|
const previousSelection = quote.insurance?.selected;
|
|
@@ -5569,13 +5553,11 @@ const failInsurance = (message) => Effect.fail(new CoreSDKError({
|
|
|
5569
5553
|
operation: "v9.insurance",
|
|
5570
5554
|
message
|
|
5571
5555
|
}));
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
});
|
|
5578
|
-
});
|
|
5556
|
+
/** The quote's insurance block; a quote that never loaded one offers none. */
|
|
5557
|
+
const currentInsuranceOf = ({ quote, translations }) => quote.insurance === void 0 ? toNotOfferedInsurance({
|
|
5558
|
+
translations,
|
|
5559
|
+
locale: getGuestQuoteInput(quote).locale
|
|
5560
|
+
}) : Effect.succeed(quote.insurance);
|
|
5579
5561
|
const toUrvInsuranceResourceLabelsFromTranslations = ({ locale, translations }) => Effect.gen(function* () {
|
|
5580
5562
|
const [quoteDetails, bookingDetails, termsAndConditions, productInformation, disclaimer] = yield* Effect.all([
|
|
5581
5563
|
translations.translate(locale, "insurance.urv.resources.quoteDetails.label", "Quote details"),
|
|
@@ -5655,9 +5637,10 @@ const refreshErgoInsuranceOptions = ({ quote, destinationCountryCode, translatio
|
|
|
5655
5637
|
list_type: "DE_TID"
|
|
5656
5638
|
};
|
|
5657
5639
|
const result = yield* v1Client.execute("searchErgoTravelCancellationInsurancePlans", { body }).pipe(Effect.mapError(toInsuranceError("Failed to load ERGO insurance plans.")));
|
|
5658
|
-
const noInsuranceOption = yield*
|
|
5640
|
+
const noInsuranceOption = yield* toNoInsuranceOption({
|
|
5641
|
+
translations,
|
|
5659
5642
|
locale: input.locale,
|
|
5660
|
-
|
|
5643
|
+
offered: true
|
|
5661
5644
|
});
|
|
5662
5645
|
const infResourceLabel = yield* translations.translate(input.locale, "insurance.ergo.resources.inf.label", "Product description");
|
|
5663
5646
|
const featureLabels = yield* toErgoInsuranceFeatureLabelsFromTranslations({
|
|
@@ -5691,9 +5674,10 @@ const refreshUrvInsuranceOptions = ({ quote, mode, translations, v0Client }) =>
|
|
|
5691
5674
|
data: JSON.stringify(data),
|
|
5692
5675
|
lang: localeToLanguage(input.locale)
|
|
5693
5676
|
} }).pipe(Effect.mapError(toInsuranceError("Failed to load URV insurance plans.")));
|
|
5694
|
-
const noInsuranceOption = yield*
|
|
5677
|
+
const noInsuranceOption = yield* toNoInsuranceOption({
|
|
5678
|
+
translations,
|
|
5695
5679
|
locale: input.locale,
|
|
5696
|
-
|
|
5680
|
+
offered: true
|
|
5697
5681
|
});
|
|
5698
5682
|
const resourceLabels = yield* toUrvInsuranceResourceLabelsFromTranslations({
|
|
5699
5683
|
locale: input.locale,
|
|
@@ -5724,20 +5708,26 @@ const refreshV9InsuranceOptions = ({ quote, destinationCountryCode, translations
|
|
|
5724
5708
|
translations,
|
|
5725
5709
|
v0Client
|
|
5726
5710
|
}));
|
|
5727
|
-
case "none": return withInsurance(quote,
|
|
5711
|
+
case "none": return withInsurance(quote, yield* toNotOfferedInsurance({
|
|
5712
|
+
translations,
|
|
5713
|
+
locale: getGuestQuoteInput(quote).locale
|
|
5714
|
+
}));
|
|
5728
5715
|
}
|
|
5729
5716
|
});
|
|
5730
|
-
const selectV9Insurance = ({ quote, selection }) => {
|
|
5731
|
-
const currentInsurance =
|
|
5732
|
-
|
|
5717
|
+
const selectV9Insurance = ({ quote, selection, translations }) => Effect.gen(function* () {
|
|
5718
|
+
const currentInsurance = yield* currentInsuranceOf({
|
|
5719
|
+
quote,
|
|
5720
|
+
translations
|
|
5721
|
+
});
|
|
5722
|
+
if (selection.kind === "none") return withInsurance(quote, {
|
|
5733
5723
|
...currentInsurance,
|
|
5734
5724
|
selected: selection,
|
|
5735
5725
|
preContract: { kind: "none_selected" },
|
|
5736
5726
|
paymentOptions: []
|
|
5737
|
-
})
|
|
5727
|
+
});
|
|
5738
5728
|
const option = findInsuranceOption(currentInsurance.options, selection.id);
|
|
5739
|
-
if (option === void 0) return failInsurance(`Unknown insurance option "${selection.id}".`);
|
|
5740
|
-
return
|
|
5729
|
+
if (option === void 0) return yield* failInsurance(`Unknown insurance option "${selection.id}".`);
|
|
5730
|
+
return withInsurance(quote, {
|
|
5741
5731
|
...currentInsurance,
|
|
5742
5732
|
selected: option.requiredInformation.kind === "none" ? {
|
|
5743
5733
|
kind: "insurance",
|
|
@@ -5745,11 +5735,14 @@ const selectV9Insurance = ({ quote, selection }) => {
|
|
|
5745
5735
|
} : selection,
|
|
5746
5736
|
preContract: option.requiredInformation.kind === "none" ? { kind: "not_required" } : { kind: "none_selected" },
|
|
5747
5737
|
paymentOptions: toInsurancePaymentOptions(option)
|
|
5748
|
-
})
|
|
5749
|
-
};
|
|
5750
|
-
const createV9InsurancePreContract = ({ quote, customerInformation, v1Client }) => Effect.gen(function* () {
|
|
5738
|
+
});
|
|
5739
|
+
});
|
|
5740
|
+
const createV9InsurancePreContract = ({ quote, customerInformation, translations, v1Client }) => Effect.gen(function* () {
|
|
5751
5741
|
const option = selectedInsuranceOption(quote);
|
|
5752
|
-
const currentInsurance =
|
|
5742
|
+
const currentInsurance = yield* currentInsuranceOf({
|
|
5743
|
+
quote,
|
|
5744
|
+
translations
|
|
5745
|
+
});
|
|
5753
5746
|
if (option === void 0) return withInsurance(quote, currentInsurance);
|
|
5754
5747
|
if (option.requiredInformation.kind === "none") return withInsurance(quote, {
|
|
5755
5748
|
...currentInsurance,
|
|
@@ -5781,13 +5774,13 @@ const createV9InsurancePreContract = ({ quote, customerInformation, v1Client })
|
|
|
5781
5774
|
paymentOptions: toInsurancePaymentOptions(option)
|
|
5782
5775
|
});
|
|
5783
5776
|
});
|
|
5784
|
-
const selectV9InsurancePayment = ({ quote, paymentInformation }) => {
|
|
5785
|
-
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
};
|
|
5777
|
+
const selectV9InsurancePayment = ({ quote, paymentInformation, translations }) => Effect.map(currentInsuranceOf({
|
|
5778
|
+
quote,
|
|
5779
|
+
translations
|
|
5780
|
+
}), (currentInsurance) => withInsurance(quote, {
|
|
5781
|
+
...currentInsurance,
|
|
5782
|
+
paymentInformation
|
|
5783
|
+
}));
|
|
5791
5784
|
const bookV9Insurance = ({ quote, bookingNumber, guestToken, v1Client }) => Effect.gen(function* () {
|
|
5792
5785
|
const option = selectedInsuranceOption(quote);
|
|
5793
5786
|
const insurance = quote.insurance;
|
|
@@ -5941,13 +5934,20 @@ const makeV9QuoteApi = ({ config, options }) => {
|
|
|
5941
5934
|
}),
|
|
5942
5935
|
refreshInsurance: toRefreshInsurance(clients)
|
|
5943
5936
|
})),
|
|
5944
|
-
selectInsurance: (input) => withClients(() => selectV9Insurance(
|
|
5937
|
+
selectInsurance: (input) => withClients(() => selectV9Insurance({
|
|
5938
|
+
...input,
|
|
5939
|
+
translations
|
|
5940
|
+
})),
|
|
5945
5941
|
createInsurancePreContract: ({ quote, customerInformation }) => withClients(({ v1Client }) => createV9InsurancePreContract({
|
|
5946
5942
|
quote,
|
|
5947
5943
|
customerInformation,
|
|
5944
|
+
translations,
|
|
5948
5945
|
v1Client
|
|
5949
5946
|
})),
|
|
5950
|
-
selectInsurancePayment: (input) => withClients(() => selectV9InsurancePayment(
|
|
5947
|
+
selectInsurancePayment: (input) => withClients(() => selectV9InsurancePayment({
|
|
5948
|
+
...input,
|
|
5949
|
+
translations
|
|
5950
|
+
})),
|
|
5951
5951
|
bookInsurance: ({ quote, booking }) => withClients(({ v1Client }) => Effect.gen(function* () {
|
|
5952
5952
|
const guestToken = getBookingBookGuestToken(booking);
|
|
5953
5953
|
if (guestToken === void 0) return yield* Effect.fail(new CoreSDKError({
|
|
@@ -6177,7 +6177,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
6177
6177
|
return page;
|
|
6178
6178
|
});
|
|
6179
6179
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
6180
|
-
try: () => import("./search-
|
|
6180
|
+
try: () => import("./search-DqdRIJwF.mjs"),
|
|
6181
6181
|
catch: (cause) => new CoreSDKError({
|
|
6182
6182
|
source: "v9",
|
|
6183
6183
|
operation: "v9.search.runtime",
|
|
@@ -6607,12 +6607,13 @@ const makeV9VoucherApi = ({ config, options }) => {
|
|
|
6607
6607
|
};
|
|
6608
6608
|
//#endregion
|
|
6609
6609
|
//#region src/legacy-v9/parser/filter/to-options.ts
|
|
6610
|
-
|
|
6610
|
+
/** Count filters ("1 bedroom", "2 bedrooms") take the label in both plural forms. */
|
|
6611
|
+
const toOptions = ({ stableFilter, countLabels }) => {
|
|
6611
6612
|
if (stableFilter.type === "InputFilter" && stableFilter.group === "rooms" && stableFilter.display_type === "number") return Array.from({ length: 10 }, (_, index) => {
|
|
6612
6613
|
const value = String(index + 1);
|
|
6613
6614
|
return {
|
|
6614
6615
|
value,
|
|
6615
|
-
label: `${value} ${
|
|
6616
|
+
label: `${value} ${index === 0 ? countLabels.one : countLabels.other}`
|
|
6616
6617
|
};
|
|
6617
6618
|
});
|
|
6618
6619
|
};
|
|
@@ -6633,20 +6634,23 @@ const toType = ({ stableFilter }) => {
|
|
|
6633
6634
|
//#endregion
|
|
6634
6635
|
//#region src/legacy-v9/parser/filter/to-get-filters-output-item.ts
|
|
6635
6636
|
const toGetFiltersOutputItem = ({ locale, stableFilter, translations }) => Effect.gen(function* () {
|
|
6636
|
-
const
|
|
6637
|
+
const labelKey = `filter.${stableFilter.key}.label`;
|
|
6638
|
+
const label = yield* translations.translate(locale, labelKey);
|
|
6639
|
+
const countLabels = {
|
|
6640
|
+
one: yield* translations.translate(locale, toCountLabelKey(labelKey, 1), label),
|
|
6641
|
+
other: yield* translations.translate(locale, toCountLabelKey(labelKey, 2), label)
|
|
6642
|
+
};
|
|
6643
|
+
const options = toOptions({
|
|
6644
|
+
stableFilter,
|
|
6645
|
+
countLabels
|
|
6646
|
+
});
|
|
6637
6647
|
const category = yield* translations.translate(locale, `filterGroup.${stableFilter.group}.label`);
|
|
6638
6648
|
return {
|
|
6639
6649
|
searchParameterQueryKey: toSearchParameterQueryKey({ stableFilter }),
|
|
6640
6650
|
label,
|
|
6641
6651
|
category,
|
|
6642
6652
|
type: toType({ stableFilter }),
|
|
6643
|
-
...
|
|
6644
|
-
stableFilter,
|
|
6645
|
-
label
|
|
6646
|
-
}) ? { options: toOptions({
|
|
6647
|
-
stableFilter,
|
|
6648
|
-
label
|
|
6649
|
-
}) } : {}
|
|
6653
|
+
...options ? { options } : {}
|
|
6650
6654
|
};
|
|
6651
6655
|
});
|
|
6652
6656
|
//#endregion
|
|
@@ -6953,6 +6957,61 @@ const checkV9HubFilters = ({ required, hubFilters }) => {
|
|
|
6953
6957
|
};
|
|
6954
6958
|
};
|
|
6955
6959
|
//#endregion
|
|
6960
|
+
//#region src/legacy-v9/static/description-fallbacks.ts
|
|
6961
|
+
/** The rental and facility data attributes the German comparison reads. */
|
|
6962
|
+
const DESCRIPTION_DATA_ATTRIBUTES = [
|
|
6963
|
+
"intro",
|
|
6964
|
+
"headline",
|
|
6965
|
+
"description",
|
|
6966
|
+
"altDescription",
|
|
6967
|
+
"arrivalInfo",
|
|
6968
|
+
"departureInfo",
|
|
6969
|
+
"locationDescription",
|
|
6970
|
+
"directions"
|
|
6971
|
+
];
|
|
6972
|
+
/**
|
|
6973
|
+
* The German text of each description field, from data the hub sent for `language: "de"`: a
|
|
6974
|
+
* string as sent, or the German entry of a localized record. Never another language — the
|
|
6975
|
+
* rental parser falls back to English and then to any text, which would make an English-only
|
|
6976
|
+
* text the German baseline and mark it as German.
|
|
6977
|
+
*/
|
|
6978
|
+
const toGermanDescription = (known) => {
|
|
6979
|
+
const description = {};
|
|
6980
|
+
for (const field of DESCRIPTION_DATA_ATTRIBUTES) {
|
|
6981
|
+
const value = known[field];
|
|
6982
|
+
const text = typeof value === "object" && value !== null ? [value["de-DE"], value["de"]].find((entry) => typeof entry === "string" && entry.length > 0) : value;
|
|
6983
|
+
if (typeof text === "string" && text.length > 0) description[field] = text;
|
|
6984
|
+
}
|
|
6985
|
+
return description;
|
|
6986
|
+
};
|
|
6987
|
+
/**
|
|
6988
|
+
* The hub answers a missing translation with the German text, without saying so. A field whose
|
|
6989
|
+
* text equals its German text is therefore German.
|
|
6990
|
+
*/
|
|
6991
|
+
const toFallbacks = (description, german) => {
|
|
6992
|
+
if (description === void 0 || german === void 0) return void 0;
|
|
6993
|
+
const fallbacks = {};
|
|
6994
|
+
for (const field of DESCRIPTION_DATA_ATTRIBUTES) {
|
|
6995
|
+
const text = description[field];
|
|
6996
|
+
if (text !== void 0 && text === german[field]) fallbacks[field] = "de-DE";
|
|
6997
|
+
}
|
|
6998
|
+
return Object.keys(fallbacks).length > 0 ? fallbacks : void 0;
|
|
6999
|
+
};
|
|
7000
|
+
/** Marks the description fields of a rental and its property that the hub served in German. */
|
|
7001
|
+
const withDescriptionFallbacks = (rental, german) => {
|
|
7002
|
+
const fallbacks = toFallbacks(rental.description, german.rentals.get(rental.id));
|
|
7003
|
+
const property = rental.property;
|
|
7004
|
+
const propertyFallbacks = property === void 0 ? void 0 : toFallbacks(property.description, german.facilities.get(property.id));
|
|
7005
|
+
return {
|
|
7006
|
+
...rental,
|
|
7007
|
+
...fallbacks === void 0 ? {} : { descriptionFallbacks: fallbacks },
|
|
7008
|
+
...property === void 0 || propertyFallbacks === void 0 ? {} : { property: {
|
|
7009
|
+
...property,
|
|
7010
|
+
descriptionFallbacks: propertyFallbacks
|
|
7011
|
+
} }
|
|
7012
|
+
};
|
|
7013
|
+
};
|
|
7014
|
+
//#endregion
|
|
6956
7015
|
//#region src/legacy-v9/static/rentals.ts
|
|
6957
7016
|
const DEFAULT_RENTAL_FACILITY_DATA_ATTRIBUTES = [
|
|
6958
7017
|
"address",
|
|
@@ -6976,6 +7035,8 @@ const DEFAULT_RENTAL_FACILITY_DATA_ATTRIBUTES = [
|
|
|
6976
7035
|
];
|
|
6977
7036
|
const DEFAULT_RENTAL_RATING_DATA_ATTRIBUTES = [];
|
|
6978
7037
|
const RENTAL_BATCH_SIZE = 128;
|
|
7038
|
+
/** The language the hub falls back to when a text is missing in the requested one. */
|
|
7039
|
+
const GERMAN = "de";
|
|
6979
7040
|
const HUB_FILTER_PURPOSES = {
|
|
6980
7041
|
[V9_HUB_FACILITY_SCOPE_FILTER_KEY]: "searches cannot be limited to rentalScope",
|
|
6981
7042
|
[V9_HUB_OBJECT_GROUP_SCOPE_FILTER_KEY]: "searches cannot be limited to rentalScope",
|
|
@@ -7007,7 +7068,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
|
|
|
7007
7068
|
});
|
|
7008
7069
|
};
|
|
7009
7070
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
7010
|
-
try: () => import("./rentals-
|
|
7071
|
+
try: () => import("./rentals-BsHvdwQt.mjs"),
|
|
7011
7072
|
catch: (cause) => new CoreSDKError({
|
|
7012
7073
|
source: "v9",
|
|
7013
7074
|
operation: "v9.rentals.runtime",
|
|
@@ -7110,7 +7171,7 @@ const makeV9RentalsApi = ({ config, options }) => {
|
|
|
7110
7171
|
...rental,
|
|
7111
7172
|
voffice_feedbacks: feedbacksByRentalId.get(rental.voffice_id) ?? null
|
|
7112
7173
|
}));
|
|
7113
|
-
|
|
7174
|
+
const items = yield* Effect.all(scopedRentals.map((rental) => toRentalRentalsOutput({
|
|
7114
7175
|
rental,
|
|
7115
7176
|
locale,
|
|
7116
7177
|
translations,
|
|
@@ -7121,6 +7182,43 @@ const makeV9RentalsApi = ({ config, options }) => {
|
|
|
7121
7182
|
v9PropertyHighlightSources: options.v9PropertyHighlightSources,
|
|
7122
7183
|
reviews: options.v9Reviews
|
|
7123
7184
|
})));
|
|
7185
|
+
if (language === GERMAN) return items;
|
|
7186
|
+
const germanDescriptions = yield* loadGermanDescriptions(scopedRentals.map((rental) => rental.voffice_id));
|
|
7187
|
+
return items.map((item) => withDescriptionFallbacks(item, germanDescriptions));
|
|
7188
|
+
});
|
|
7189
|
+
/**
|
|
7190
|
+
* The German texts of the rentals and their facilities. The hub serves German where the
|
|
7191
|
+
* requested language has no text and does not say so; `withDescriptionFallbacks` compares.
|
|
7192
|
+
* The queries select the texts alone, so the comparison costs no image or rating data.
|
|
7193
|
+
*/
|
|
7194
|
+
const loadGermanDescriptions = (rentalIds) => Effect.gen(function* () {
|
|
7195
|
+
const { facilityTextsQuery, parseVofficeFacilityData, parseVofficeUnitData, rentalTextsQuery } = yield* loadV9RentalsRuntime;
|
|
7196
|
+
const textAttributes = [...DESCRIPTION_DATA_ATTRIBUTES];
|
|
7197
|
+
const facilitiesByGroup = config.facilityObjectGroupRelationAttributeId !== void 0;
|
|
7198
|
+
const rentals = /* @__PURE__ */ new Map();
|
|
7199
|
+
const facilities = /* @__PURE__ */ new Map();
|
|
7200
|
+
for (let offset = 0; offset < rentalIds.length; offset += RENTAL_BATCH_SIZE) {
|
|
7201
|
+
const textsData = yield* graphql.execute(rentalTextsQuery, {
|
|
7202
|
+
language: GERMAN,
|
|
7203
|
+
voffice_ids: rentalIds.slice(offset, offset + RENTAL_BATCH_SIZE),
|
|
7204
|
+
textAttributes
|
|
7205
|
+
});
|
|
7206
|
+
for (const rental of textsData.all) {
|
|
7207
|
+
rentals.set(String(rental.voffice_id), toGermanDescription(parseVofficeUnitData(rental.data).known));
|
|
7208
|
+
if (!facilitiesByGroup && rental.voffice_facility != null) facilities.set(rental.voffice_facility.id, toGermanDescription(parseVofficeFacilityData(rental.voffice_facility.data).known));
|
|
7209
|
+
}
|
|
7210
|
+
}
|
|
7211
|
+
if (facilitiesByGroup) {
|
|
7212
|
+
const facilitiesData = yield* graphql.execute(facilityTextsQuery, {
|
|
7213
|
+
language: GERMAN,
|
|
7214
|
+
textAttributes
|
|
7215
|
+
});
|
|
7216
|
+
for (const facility of facilitiesData.facilities) facilities.set(facility.id, toGermanDescription(parseVofficeFacilityData(facility.data).known));
|
|
7217
|
+
}
|
|
7218
|
+
return {
|
|
7219
|
+
rentals,
|
|
7220
|
+
facilities
|
|
7221
|
+
};
|
|
7124
7222
|
});
|
|
7125
7223
|
const requiredHubFilterKeys = toV9SdkOwnedHubFilterKeys({
|
|
7126
7224
|
config,
|
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, 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";
|
|
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, RentalCapacity, 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";
|
|
@@ -380,6 +380,14 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
380
380
|
readonly province?: string;
|
|
381
381
|
readonly country?: string;
|
|
382
382
|
};
|
|
383
|
+
readonly capacity?: {
|
|
384
|
+
readonly maxGuests?: number;
|
|
385
|
+
readonly maxAdults?: number;
|
|
386
|
+
readonly bedrooms?: number;
|
|
387
|
+
readonly bathrooms?: number;
|
|
388
|
+
readonly rooms?: number;
|
|
389
|
+
readonly livingAreaSqm?: number;
|
|
390
|
+
};
|
|
383
391
|
readonly description?: {
|
|
384
392
|
readonly intro?: string;
|
|
385
393
|
readonly headline?: string;
|
|
@@ -390,6 +398,16 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
390
398
|
readonly locationDescription?: string;
|
|
391
399
|
readonly directions?: string;
|
|
392
400
|
};
|
|
401
|
+
readonly descriptionFallbacks?: {
|
|
402
|
+
readonly intro?: "de-DE" | "en-US";
|
|
403
|
+
readonly headline?: "de-DE" | "en-US";
|
|
404
|
+
readonly description?: "de-DE" | "en-US";
|
|
405
|
+
readonly altDescription?: "de-DE" | "en-US";
|
|
406
|
+
readonly arrivalInfo?: "de-DE" | "en-US";
|
|
407
|
+
readonly departureInfo?: "de-DE" | "en-US";
|
|
408
|
+
readonly locationDescription?: "de-DE" | "en-US";
|
|
409
|
+
readonly directions?: "de-DE" | "en-US";
|
|
410
|
+
};
|
|
393
411
|
readonly property?: {
|
|
394
412
|
readonly id: string;
|
|
395
413
|
readonly nameOrLabel: string;
|
|
@@ -427,6 +445,16 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
427
445
|
readonly locationDescription?: string;
|
|
428
446
|
readonly directions?: string;
|
|
429
447
|
};
|
|
448
|
+
readonly descriptionFallbacks?: {
|
|
449
|
+
readonly intro?: "de-DE" | "en-US";
|
|
450
|
+
readonly headline?: "de-DE" | "en-US";
|
|
451
|
+
readonly description?: "de-DE" | "en-US";
|
|
452
|
+
readonly altDescription?: "de-DE" | "en-US";
|
|
453
|
+
readonly arrivalInfo?: "de-DE" | "en-US";
|
|
454
|
+
readonly departureInfo?: "de-DE" | "en-US";
|
|
455
|
+
readonly locationDescription?: "de-DE" | "en-US";
|
|
456
|
+
readonly directions?: "de-DE" | "en-US";
|
|
457
|
+
};
|
|
430
458
|
readonly attributes?: readonly {
|
|
431
459
|
readonly label: string;
|
|
432
460
|
readonly subCategories: readonly {
|
|
@@ -565,6 +593,14 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
565
593
|
readonly province?: string;
|
|
566
594
|
readonly country?: string;
|
|
567
595
|
};
|
|
596
|
+
readonly capacity?: {
|
|
597
|
+
readonly maxGuests?: number;
|
|
598
|
+
readonly maxAdults?: number;
|
|
599
|
+
readonly bedrooms?: number;
|
|
600
|
+
readonly bathrooms?: number;
|
|
601
|
+
readonly rooms?: number;
|
|
602
|
+
readonly livingAreaSqm?: number;
|
|
603
|
+
};
|
|
568
604
|
readonly formattedTotal?: string;
|
|
569
605
|
readonly discount?: {
|
|
570
606
|
readonly formattedOriginalTotal: string;
|
|
@@ -633,6 +669,14 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
633
669
|
readonly province?: string;
|
|
634
670
|
readonly country?: string;
|
|
635
671
|
};
|
|
672
|
+
readonly capacity?: {
|
|
673
|
+
readonly maxGuests?: number;
|
|
674
|
+
readonly maxAdults?: number;
|
|
675
|
+
readonly bedrooms?: number;
|
|
676
|
+
readonly bathrooms?: number;
|
|
677
|
+
readonly rooms?: number;
|
|
678
|
+
readonly livingAreaSqm?: number;
|
|
679
|
+
};
|
|
636
680
|
readonly formattedTotal?: string;
|
|
637
681
|
readonly discount?: {
|
|
638
682
|
readonly formattedOriginalTotal: string;
|
|
@@ -7811,4 +7855,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
|
|
|
7811
7855
|
export type RentalSearchInput = SearchSearchInput$1;
|
|
7812
7856
|
export type RentalSearchOutput = SearchSearchOutput$1;
|
|
7813
7857
|
//#endregion
|
|
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 };
|
|
7858
|
+
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 RentalCapacity, 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-CE4V_ybW.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.38.0/CHANGELOG.md`: release notes for 2.38.0
|
|
7
8
|
- `versions/2.37.1/CHANGELOG.md`: release notes for 2.37.1
|
|
8
9
|
- `versions/2.37.0/CHANGELOG.md`: release notes for 2.37.0
|
|
9
10
|
- `versions/2.36.2/CHANGELOG.md`: release notes for 2.36.2
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
|
|
6
6
|
|
|
7
|
+
- `versions/2.38.0/MIGRATION.md`: Migration: 2.37.1 to 2.38.0
|
|
7
8
|
- `versions/2.37.1/MIGRATION.md`: Migration: 2.37.0 to 2.37.1
|
|
8
9
|
- `versions/2.37.0/MIGRATION.md`: Migration: 2.36.2 to 2.37.0
|
|
9
10
|
- `versions/2.36.2/MIGRATION.md`: Migration: 2.36.1 to 2.36.2
|