@v-office/website-sdk 3.0.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +3 -3
- package/dist/{client-k4Gjwp60.mjs → client-BqY3Efw4.mjs} +32 -6
- package/dist/index.d.mts +82 -2
- package/dist/index.mjs +1 -1
- package/dist/instructions/CHANGELOG.md +2 -0
- package/dist/instructions/MIGRATION.md +2 -0
- package/dist/instructions/quote.md +17 -0
- package/dist/instructions/rentals.md +46 -6
- package/dist/instructions/search.md +25 -6
- package/dist/instructions/versions/3.1.0/CHANGELOG.md +47 -0
- package/dist/instructions/versions/3.1.0/MIGRATION.md +32 -0
- package/dist/instructions/versions/3.1.1/CHANGELOG.md +9 -0
- package/dist/instructions/versions/3.1.1/MIGRATION.md +10 -0
- package/dist/{operations-DMqLD3e2.mjs → operations-Bc3WxjV8.mjs} +79 -3
- package/dist/{rentals-BIL52z4o.mjs → rentals-BT-rPhQu.mjs} +88 -25
- package/dist/{search-Buua-PAS.mjs → search-YgaulZa7.mjs} +22 -11
- package/dist/{to-rental-highlights-BE6TdXYa.mjs → to-rental-highlights-9AbqVIso.mjs} +68 -32
- package/instructions/CHANGELOG.md +2 -0
- package/instructions/MIGRATION.md +2 -0
- package/instructions/quote.md +17 -0
- package/instructions/rentals.md +46 -6
- package/instructions/search.md +25 -6
- package/instructions/versions/3.1.0/CHANGELOG.md +47 -0
- package/instructions/versions/3.1.0/MIGRATION.md +32 -0
- package/instructions/versions/3.1.0/release.json +3 -0
- package/instructions/versions/3.1.1/CHANGELOG.md +9 -0
- package/instructions/versions/3.1.1/MIGRATION.md +10 -0
- package/instructions/versions/3.1.1/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 { C as parseVofficeRatingData, a as hubFiltersQuery, b as parseJsonData, o as hubRentalDataQuery, p as rentalsAllWithoutFeedbacksQuery, v as VofficeUnitDataPropertyMetadata } from "./operations-
|
|
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-BqY3Efw4.mjs";
|
|
3
|
+
import { C as parseVofficeRatingData, a as hubFiltersQuery, b as parseJsonData, o as hubRentalDataQuery, p as rentalsAllWithoutFeedbacksQuery, v as VofficeUnitDataPropertyMetadata } from "./operations-Bc3WxjV8.mjs";
|
|
4
4
|
import { STABLE_SEARCH_INPUTS, SearchSearchSortSchema, defineCustomAttributesFromUnknown, toStableSearchInputQueryKeys } from "@v-office/sdk-core";
|
|
5
5
|
import { ByteSize, Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
|
|
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 = "3.
|
|
20
|
+
var version = "3.1.1";
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/cli/output.ts
|
|
23
23
|
const toJson = (value) => Effect.try({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as parseJsonData, l as rentalRegionsQuery, m as RegionSchema$1, t as voucherValidityQuery, w as parseVofficeUnitData, y as customDataAttribute } from "./operations-
|
|
1
|
+
import { b as parseJsonData, l as rentalRegionsQuery, m as RegionSchema$1, t as voucherValidityQuery, w as parseVofficeUnitData, y as customDataAttribute } from "./operations-Bc3WxjV8.mjs";
|
|
2
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";
|
|
@@ -6149,7 +6149,7 @@ const bookV9Insurance = ({ quote, booking, translations, v1Client }) => Effect.g
|
|
|
6149
6149
|
pre_contractual_information_id: insurance.preContract.id,
|
|
6150
6150
|
bank: {
|
|
6151
6151
|
iban: insurance.paymentInformation.iban,
|
|
6152
|
-
|
|
6152
|
+
bic: insurance.paymentInformation.bic ?? null
|
|
6153
6153
|
}
|
|
6154
6154
|
};
|
|
6155
6155
|
const result = yield* v1Client.execute("bookErgoTravelCancellationInsurance", { body }).pipe(Effect.mapError(toInsuranceError("Failed to book ERGO insurance.")), Effect.flatMap(({ raw }) => requireErgoSuccess({
|
|
@@ -6575,7 +6575,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
|
|
|
6575
6575
|
return page;
|
|
6576
6576
|
});
|
|
6577
6577
|
const loadV9SearchRuntime = Effect.tryPromise({
|
|
6578
|
-
try: () => import("./search-
|
|
6578
|
+
try: () => import("./search-YgaulZa7.mjs"),
|
|
6579
6579
|
catch: (cause) => new CoreSDKError({
|
|
6580
6580
|
source: "v9",
|
|
6581
6581
|
operation: "v9.search.runtime",
|
|
@@ -7382,6 +7382,8 @@ const toGermanDescription = (known) => {
|
|
|
7382
7382
|
}
|
|
7383
7383
|
return description;
|
|
7384
7384
|
};
|
|
7385
|
+
/** An image's caption as the hub states it: its title, else its description. */
|
|
7386
|
+
const toHubImageAlt = (image) => [image.title, image.description].find((text) => !!text) ?? void 0;
|
|
7385
7387
|
/**
|
|
7386
7388
|
* The hub answers a missing translation with the German text, without saying so. A field whose
|
|
7387
7389
|
* text equals its German text is therefore German.
|
|
@@ -7395,13 +7397,31 @@ const toFallbacks = (description, german) => {
|
|
|
7395
7397
|
}
|
|
7396
7398
|
return Object.keys(fallbacks).length > 0 ? fallbacks : void 0;
|
|
7397
7399
|
};
|
|
7398
|
-
/**
|
|
7400
|
+
/**
|
|
7401
|
+
* Whether the PMS keeps this image's titles per language. Its caption then comes from that
|
|
7402
|
+
* record, and the image parser has already said whether it is a German fallback; a hub string
|
|
7403
|
+
* that happens to read the same ("Pool") says nothing about it.
|
|
7404
|
+
*/
|
|
7405
|
+
const hasTitleRecord = (image) => {
|
|
7406
|
+
const titles = (image.metadata?.dataImage)?.titles;
|
|
7407
|
+
return typeof titles === "object" && titles !== null && Object.values(titles).some((title) => typeof title === "string" && title.length > 0);
|
|
7408
|
+
};
|
|
7409
|
+
/**
|
|
7410
|
+
* Marks the description fields of a rental and its property, and the captions of the rental's
|
|
7411
|
+
* images, that the hub served in German. A caption from a per-language title record is marked
|
|
7412
|
+
* by the image parser and stays as it is.
|
|
7413
|
+
*/
|
|
7399
7414
|
const withDescriptionFallbacks = (rental, german) => {
|
|
7400
7415
|
const fallbacks = toFallbacks(rental.description, german.rentals.get(rental.id));
|
|
7401
7416
|
const property = rental.property;
|
|
7402
7417
|
const propertyFallbacks = property === void 0 ? void 0 : toFallbacks(property.description, german.facilities.get(property.id));
|
|
7418
|
+
const images = rental.images?.map((image) => !hasTitleRecord(image) && image.alt !== void 0 && image.alt.length > 0 && image.alt === german.imageAlts.get(image.idOrPath) ? {
|
|
7419
|
+
...image,
|
|
7420
|
+
altFallback: "de-DE"
|
|
7421
|
+
} : image);
|
|
7403
7422
|
return {
|
|
7404
7423
|
...rental,
|
|
7424
|
+
...images === void 0 ? {} : { images },
|
|
7405
7425
|
...fallbacks === void 0 ? {} : { descriptionFallbacks: fallbacks },
|
|
7406
7426
|
...property === void 0 || propertyFallbacks === void 0 ? {} : { property: {
|
|
7407
7427
|
...property,
|
|
@@ -7466,7 +7486,7 @@ const orderRentalsById = ({ rentalIds, rentals, missing }) => {
|
|
|
7466
7486
|
});
|
|
7467
7487
|
};
|
|
7468
7488
|
const loadV9RentalsRuntime = Effect.tryPromise({
|
|
7469
|
-
try: () => import("./rentals-
|
|
7489
|
+
try: () => import("./rentals-BT-rPhQu.mjs"),
|
|
7470
7490
|
catch: (cause) => new CoreSDKError({
|
|
7471
7491
|
source: "v9",
|
|
7472
7492
|
operation: "v9.rentals.runtime",
|
|
@@ -7595,6 +7615,7 @@ const makeV9RentalsApi = ({ config, options }) => {
|
|
|
7595
7615
|
const facilitiesByGroup = config.facilityObjectGroupRelationAttributeId !== void 0;
|
|
7596
7616
|
const rentals = /* @__PURE__ */ new Map();
|
|
7597
7617
|
const facilities = /* @__PURE__ */ new Map();
|
|
7618
|
+
const imageAlts = /* @__PURE__ */ new Map();
|
|
7598
7619
|
for (let offset = 0; offset < rentalIds.length; offset += RENTAL_BATCH_SIZE) {
|
|
7599
7620
|
const textsData = yield* graphql.execute(rentalTextsQuery, {
|
|
7600
7621
|
language: GERMAN,
|
|
@@ -7603,6 +7624,10 @@ const makeV9RentalsApi = ({ config, options }) => {
|
|
|
7603
7624
|
});
|
|
7604
7625
|
for (const rental of textsData.all) {
|
|
7605
7626
|
rentals.set(String(rental.voffice_id), toGermanDescription(parseVofficeUnitData(rental.data).known));
|
|
7627
|
+
for (const image of [...rental.voffice_images ?? [], ...rental.voffice_room_images ?? []]) {
|
|
7628
|
+
const alt = toHubImageAlt(image);
|
|
7629
|
+
if (image.path != null && alt !== void 0) imageAlts.set(image.path, alt);
|
|
7630
|
+
}
|
|
7606
7631
|
if (!facilitiesByGroup && rental.voffice_facility != null) facilities.set(rental.voffice_facility.id, toGermanDescription(parseVofficeFacilityData(rental.voffice_facility.data).known));
|
|
7607
7632
|
}
|
|
7608
7633
|
}
|
|
@@ -7615,7 +7640,8 @@ const makeV9RentalsApi = ({ config, options }) => {
|
|
|
7615
7640
|
}
|
|
7616
7641
|
return {
|
|
7617
7642
|
rentals,
|
|
7618
|
-
facilities
|
|
7643
|
+
facilities,
|
|
7644
|
+
imageAlts
|
|
7619
7645
|
};
|
|
7620
7646
|
});
|
|
7621
7647
|
const requiredHubFilterKeys = toV9SdkOwnedHubFilterKeys({
|
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, GuestQuote as GuestQuote$1, 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";
|
|
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, GuestQuote as GuestQuote$1, 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, RentalFact, 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, SearchMoney, 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";
|
|
@@ -420,6 +420,7 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
420
420
|
readonly metadata?: {
|
|
421
421
|
readonly [x: string]: unknown;
|
|
422
422
|
};
|
|
423
|
+
readonly altFallback?: "de-DE" | "en-US";
|
|
423
424
|
}[];
|
|
424
425
|
readonly address?: {
|
|
425
426
|
readonly street?: string;
|
|
@@ -475,6 +476,7 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
475
476
|
readonly metadata?: {
|
|
476
477
|
readonly [x: string]: unknown;
|
|
477
478
|
};
|
|
479
|
+
readonly altFallback?: "de-DE" | "en-US";
|
|
478
480
|
}[];
|
|
479
481
|
readonly address?: {
|
|
480
482
|
readonly street?: string;
|
|
@@ -509,18 +511,40 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
509
511
|
readonly subCategories: readonly {
|
|
510
512
|
readonly label: string;
|
|
511
513
|
readonly items: readonly string[];
|
|
514
|
+
readonly facts?: readonly {
|
|
515
|
+
readonly key: string;
|
|
516
|
+
readonly text: string;
|
|
517
|
+
readonly value?: string | number | boolean;
|
|
518
|
+
}[];
|
|
512
519
|
}[];
|
|
513
520
|
}[];
|
|
514
521
|
readonly vicinity?: readonly {
|
|
515
522
|
readonly label: string;
|
|
516
523
|
readonly items: readonly string[];
|
|
524
|
+
readonly facts?: readonly {
|
|
525
|
+
readonly key: string;
|
|
526
|
+
readonly text: string;
|
|
527
|
+
readonly value?: string | number | boolean;
|
|
528
|
+
}[];
|
|
517
529
|
}[];
|
|
518
530
|
readonly highlights?: readonly string[];
|
|
531
|
+
readonly highlightFacts?: readonly {
|
|
532
|
+
readonly key: string;
|
|
533
|
+
readonly text: string;
|
|
534
|
+
readonly value?: string | number | boolean;
|
|
535
|
+
}[];
|
|
519
536
|
};
|
|
520
537
|
readonly rooms?: readonly {
|
|
521
538
|
readonly type: string;
|
|
539
|
+
readonly typeKey?: string;
|
|
522
540
|
readonly description?: string;
|
|
541
|
+
readonly descriptionFallback?: "de-DE" | "en-US";
|
|
523
542
|
readonly attributes?: readonly string[];
|
|
543
|
+
readonly attributeFacts?: readonly {
|
|
544
|
+
readonly key: string;
|
|
545
|
+
readonly text: string;
|
|
546
|
+
readonly value?: string | number | boolean;
|
|
547
|
+
}[];
|
|
524
548
|
readonly beds?: readonly {
|
|
525
549
|
readonly type: string;
|
|
526
550
|
readonly kind?: string;
|
|
@@ -533,13 +557,28 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
|
|
|
533
557
|
readonly subCategories: readonly {
|
|
534
558
|
readonly label: string;
|
|
535
559
|
readonly items: readonly string[];
|
|
560
|
+
readonly facts?: readonly {
|
|
561
|
+
readonly key: string;
|
|
562
|
+
readonly text: string;
|
|
563
|
+
readonly value?: string | number | boolean;
|
|
564
|
+
}[];
|
|
536
565
|
}[];
|
|
537
566
|
}[];
|
|
538
567
|
readonly vicinity?: readonly {
|
|
539
568
|
readonly label: string;
|
|
540
569
|
readonly items: readonly string[];
|
|
570
|
+
readonly facts?: readonly {
|
|
571
|
+
readonly key: string;
|
|
572
|
+
readonly text: string;
|
|
573
|
+
readonly value?: string | number | boolean;
|
|
574
|
+
}[];
|
|
541
575
|
}[];
|
|
542
576
|
readonly highlights?: readonly string[];
|
|
577
|
+
readonly highlightFacts?: readonly {
|
|
578
|
+
readonly key: string;
|
|
579
|
+
readonly text: string;
|
|
580
|
+
readonly value?: string | number | boolean;
|
|
581
|
+
}[];
|
|
543
582
|
readonly reviews?: {
|
|
544
583
|
readonly items: readonly ({
|
|
545
584
|
readonly id?: string;
|
|
@@ -633,6 +672,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
633
672
|
readonly metadata?: {
|
|
634
673
|
readonly [x: string]: unknown;
|
|
635
674
|
};
|
|
675
|
+
readonly altFallback?: "de-DE" | "en-US";
|
|
636
676
|
}[];
|
|
637
677
|
readonly address?: {
|
|
638
678
|
readonly street?: string;
|
|
@@ -651,14 +691,28 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
651
691
|
readonly livingAreaSqm?: number;
|
|
652
692
|
};
|
|
653
693
|
readonly formattedTotal?: string;
|
|
694
|
+
readonly total?: {
|
|
695
|
+
readonly amount: number;
|
|
696
|
+
readonly currency: string;
|
|
697
|
+
};
|
|
654
698
|
readonly discount?: {
|
|
655
699
|
readonly formattedOriginalTotal: string;
|
|
700
|
+
readonly originalTotal?: {
|
|
701
|
+
readonly amount: number;
|
|
702
|
+
readonly currency: string;
|
|
703
|
+
};
|
|
656
704
|
readonly applied: readonly {
|
|
657
705
|
readonly label: string;
|
|
658
706
|
readonly formattedAmount: string;
|
|
707
|
+
readonly type?: string;
|
|
659
708
|
}[];
|
|
660
709
|
};
|
|
661
710
|
readonly highlights?: readonly string[];
|
|
711
|
+
readonly highlightFacts?: readonly {
|
|
712
|
+
readonly key: string;
|
|
713
|
+
readonly text: string;
|
|
714
|
+
readonly value?: string | number | boolean;
|
|
715
|
+
}[];
|
|
662
716
|
readonly property?: {
|
|
663
717
|
readonly id: string;
|
|
664
718
|
readonly nameOrLabel: string;
|
|
@@ -677,6 +731,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
677
731
|
readonly metadata?: {
|
|
678
732
|
readonly [x: string]: unknown;
|
|
679
733
|
};
|
|
734
|
+
readonly altFallback?: "de-DE" | "en-US";
|
|
680
735
|
}[];
|
|
681
736
|
readonly address?: {
|
|
682
737
|
readonly street?: string;
|
|
@@ -709,6 +764,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
709
764
|
readonly metadata?: {
|
|
710
765
|
readonly [x: string]: unknown;
|
|
711
766
|
};
|
|
767
|
+
readonly altFallback?: "de-DE" | "en-US";
|
|
712
768
|
}[];
|
|
713
769
|
readonly address?: {
|
|
714
770
|
readonly street?: string;
|
|
@@ -727,14 +783,28 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
727
783
|
readonly livingAreaSqm?: number;
|
|
728
784
|
};
|
|
729
785
|
readonly formattedTotal?: string;
|
|
786
|
+
readonly total?: {
|
|
787
|
+
readonly amount: number;
|
|
788
|
+
readonly currency: string;
|
|
789
|
+
};
|
|
730
790
|
readonly discount?: {
|
|
731
791
|
readonly formattedOriginalTotal: string;
|
|
792
|
+
readonly originalTotal?: {
|
|
793
|
+
readonly amount: number;
|
|
794
|
+
readonly currency: string;
|
|
795
|
+
};
|
|
732
796
|
readonly applied: readonly {
|
|
733
797
|
readonly label: string;
|
|
734
798
|
readonly formattedAmount: string;
|
|
799
|
+
readonly type?: string;
|
|
735
800
|
}[];
|
|
736
801
|
};
|
|
737
802
|
readonly highlights?: readonly string[];
|
|
803
|
+
readonly highlightFacts?: readonly {
|
|
804
|
+
readonly key: string;
|
|
805
|
+
readonly text: string;
|
|
806
|
+
readonly value?: string | number | boolean;
|
|
807
|
+
}[];
|
|
738
808
|
readonly property?: {
|
|
739
809
|
readonly id: string;
|
|
740
810
|
readonly nameOrLabel: string;
|
|
@@ -753,6 +823,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
753
823
|
readonly metadata?: {
|
|
754
824
|
readonly [x: string]: unknown;
|
|
755
825
|
};
|
|
826
|
+
readonly altFallback?: "de-DE" | "en-US";
|
|
756
827
|
}[];
|
|
757
828
|
readonly address?: {
|
|
758
829
|
readonly street?: string;
|
|
@@ -766,11 +837,20 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
|
|
|
766
837
|
};
|
|
767
838
|
readonly alternativePeriods: readonly {
|
|
768
839
|
readonly formattedTotal?: string;
|
|
840
|
+
readonly total?: {
|
|
841
|
+
readonly amount: number;
|
|
842
|
+
readonly currency: string;
|
|
843
|
+
};
|
|
769
844
|
readonly discount?: {
|
|
770
845
|
readonly formattedOriginalTotal: string;
|
|
846
|
+
readonly originalTotal?: {
|
|
847
|
+
readonly amount: number;
|
|
848
|
+
readonly currency: string;
|
|
849
|
+
};
|
|
771
850
|
readonly applied: readonly {
|
|
772
851
|
readonly label: string;
|
|
773
852
|
readonly formattedAmount: string;
|
|
853
|
+
readonly type?: string;
|
|
774
854
|
}[];
|
|
775
855
|
};
|
|
776
856
|
readonly start: string;
|
|
@@ -7904,4 +7984,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
|
|
|
7904
7984
|
export type RentalSearchInput = SearchSearchInput$1;
|
|
7905
7985
|
export type RentalSearchOutput = SearchSearchOutput$1;
|
|
7906
7986
|
//#endregion
|
|
7907
|
-
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 V9InsurancePolicy, type V9InsuranceReadPolicyInput, type V9InsuranceRevokePolicyInput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9QuoteCreateInsurancePreContractInput, 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 };
|
|
7987
|
+
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 RentalFact, 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 SearchMoney, 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 V9InsurancePolicy, type V9InsuranceReadPolicyInput, type V9InsuranceRevokePolicyInput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9QuoteCreateInsurancePreContractInput, 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-BqY3Efw4.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/3.1.1/CHANGELOG.md`: release notes for 3.1.1
|
|
8
|
+
- `versions/3.1.0/CHANGELOG.md`: release notes for 3.1.0
|
|
7
9
|
- `versions/3.0.0/CHANGELOG.md`: release notes for 3.0.0
|
|
8
10
|
- `versions/2.38.0/CHANGELOG.md`: release notes for 2.38.0
|
|
9
11
|
- `versions/2.37.1/CHANGELOG.md`: release notes for 2.37.1
|
|
@@ -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/3.1.1/MIGRATION.md`: Migration: 3.1.0 to 3.1.1
|
|
8
|
+
- `versions/3.1.0/MIGRATION.md`: Migration: 3.0.0 to 3.1.0
|
|
7
9
|
- `versions/3.0.0/MIGRATION.md`: Migration: 2.38.0 to 3.0.0
|
|
8
10
|
- `versions/2.38.0/MIGRATION.md`: Migration: 2.37.1 to 2.38.0
|
|
9
11
|
- `versions/2.37.1/MIGRATION.md`: Migration: 2.37.0 to 2.37.1
|
|
@@ -368,6 +368,23 @@ if (selected.ok) quote = selected.quote;
|
|
|
368
368
|
|
|
369
369
|
The selected policy is marked with `selected: true`, and the booking card total is recalculated if the policy changes the price. Handle selection errors for unknown or unavailable policy ids.
|
|
370
370
|
|
|
371
|
+
On v10 the label of a system policy (Balanced 14 days, Strict 30 days, Very strict 60 days) is
|
|
372
|
+
translated by the SDK. The label of a custom or alternative policy is the agency's own text and
|
|
373
|
+
stays as entered in the PMS, in whatever language that is.
|
|
374
|
+
|
|
375
|
+
## Texts in the PMS's language
|
|
376
|
+
|
|
377
|
+
The SDK translates its own texts. Texts an agency enters in the PMS come back as entered, and
|
|
378
|
+
the SDK cannot tell their language: the backend states one text, not one per language. On an
|
|
379
|
+
English page they are German unless the agency entered English:
|
|
380
|
+
|
|
381
|
+
- v10: custom and alternative cancellation policy names (`cancellationPolicies[].label`).
|
|
382
|
+
- v9: fee, service and insurance names in the booking card and the additional services, as the
|
|
383
|
+
be-on! Hub sends them for the requested language.
|
|
384
|
+
|
|
385
|
+
To show them in English, enter English names in the PMS. A site that must not show German can
|
|
386
|
+
replace them with its own text by `id`.
|
|
387
|
+
|
|
371
388
|
## Insurance
|
|
372
389
|
|
|
373
390
|
Insurance information is exposed on `quote.insurance` when available. The `options` array contains either a `none` option or selectable insurance products.
|
|
@@ -114,14 +114,54 @@ can mark it as German (`lang="de"`, a note):
|
|
|
114
114
|
Only fields served in another language are listed; `descriptionFallbacks` is omitted when every
|
|
115
115
|
text is in the requested locale, and always for `de-DE`.
|
|
116
116
|
|
|
117
|
+
Images and rooms say the same with one field each: `altFallback` on an image (its `alt` and
|
|
118
|
+
`title` are in that language) and `descriptionFallback` on a room (v10; v9 rooms have no
|
|
119
|
+
description). Both are omitted when the text is in the requested locale.
|
|
120
|
+
|
|
117
121
|
- v10 reads every language of a text and takes the German one when the requested one is empty.
|
|
118
|
-
- v9:
|
|
119
|
-
so
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
122
|
+
- v9: per-language image titles are marked as they are read. The be-on! Hub answers every other
|
|
123
|
+
missing translation with the German text, without saying so: for a locale other than `de-DE`,
|
|
124
|
+
`getRentals` and `getRentalsByIds` also ask the Hub for the German descriptions and image
|
|
125
|
+
captions, and mark every one that is the same. This is one extra Hub query, of the texts alone,
|
|
126
|
+
per 128 rentals (and one facility query with `facilityObjectGroupRelationAttributeId`), only
|
|
127
|
+
for non-German locales.
|
|
128
|
+
|
|
129
|
+
Rental names, region names and attribute texts are not covered. Neither are review category
|
|
130
|
+
names: on v10 they are the questions of the agency's feedback form (`summary.categories[].label`),
|
|
131
|
+
one text per question; on v9 they come from the site's `v9Reviews.criteria` labels. See
|
|
132
|
+
`quote.md` for the quote's texts.
|
|
133
|
+
|
|
134
|
+
### Facts: items with keys
|
|
135
|
+
|
|
136
|
+
Every list of rendered items also states what each item is, the same in every locale:
|
|
137
|
+
|
|
138
|
+
| Items (text) | Facts (key and value) |
|
|
139
|
+
| ------------------------------------ | ------------------------------------------------------------------ |
|
|
140
|
+
| `attributes[].subCategories[].items` | `attributes[].subCategories[].facts` |
|
|
141
|
+
| `vicinity[].items` | `vicinity[].facts` |
|
|
142
|
+
| `highlights` | `highlightFacts` (rentals, their `property`, search items) |
|
|
143
|
+
| `rooms[].attributes` | `rooms[].attributeFacts`; the room type's key is `rooms[].typeKey` |
|
|
144
|
+
|
|
145
|
+
`facts[i]` is `items[i]`: same order, same length.
|
|
146
|
+
|
|
147
|
+
```ts
|
|
148
|
+
type RentalFact = {
|
|
149
|
+
readonly key: string; // "beachdistance", "wifi", "seaviewType", a custom attribute's key
|
|
150
|
+
readonly text: string; // the item as rendered: "Distance to beach: 300m"
|
|
151
|
+
readonly value?: boolean | number | string; // true, 300, "GOOD"
|
|
152
|
+
};
|
|
153
|
+
```
|
|
154
|
+
|
|
155
|
+
- `key` is the backend's attribute key. v9 states v10's key where v10 has the attribute
|
|
156
|
+
(`loc_lake` becomes `locLake`), so one curated list works on both backends; a v9 attribute
|
|
157
|
+
several v10 attributes share keeps its v9 key (`beds`, `toiletries`).
|
|
158
|
+
- `value` is the raw value: `true` for a feature (v9 sends `1`, the SDK states `true`), a
|
|
159
|
+
number for a count, a distance in meters or an area in m², an option's key on v10 (`GOOD`),
|
|
160
|
+
its index on v9. A free text has no `value`, `text` carries it: a localized text, a v9 text attribute
|
|
161
|
+
and a custom attribute of type `string` change with the locale.
|
|
123
162
|
|
|
124
|
-
|
|
163
|
+
Curate, filter and pick icons by `key`; read distances and counts from `value`. Never match
|
|
164
|
+
`text` or `items`: they change with the locale and with `translationOverrides`.
|
|
125
165
|
|
|
126
166
|
### Capacity
|
|
127
167
|
|
|
@@ -621,15 +621,26 @@ Returns `Promise<RentalSearchOutput>`.
|
|
|
621
621
|
Priced items and alternative periods share this optional discount shape:
|
|
622
622
|
|
|
623
623
|
```ts
|
|
624
|
+
type SearchMoney = {
|
|
625
|
+
readonly amount: number; // minor unit of the currency: 103339 = €1,033.39
|
|
626
|
+
readonly currency: string;
|
|
627
|
+
};
|
|
628
|
+
|
|
624
629
|
type SearchDiscount = {
|
|
625
630
|
readonly formattedOriginalTotal: string;
|
|
631
|
+
readonly originalTotal?: SearchMoney;
|
|
626
632
|
readonly applied: readonly {
|
|
627
633
|
readonly label: string;
|
|
628
634
|
readonly formattedAmount: string;
|
|
635
|
+
readonly type?: string; // v10 only: EARLY_BIRD, LAST_MINUTE, …
|
|
629
636
|
}[];
|
|
630
637
|
};
|
|
631
638
|
```
|
|
632
639
|
|
|
640
|
+
Next to `formattedTotal`, a priced item or alternative period carries `total` as a
|
|
641
|
+
`SearchMoney`. Compare and calculate with the numbers, never by parsing the formatted
|
|
642
|
+
strings: their separators change with the locale ("1.033,39 €", "€1,033.39").
|
|
643
|
+
|
|
633
644
|
Sample:
|
|
634
645
|
|
|
635
646
|
```json
|
|
@@ -654,12 +665,15 @@ Sample:
|
|
|
654
665
|
],
|
|
655
666
|
"highlights": ["2 bedrooms", "WiFi", "Parking"],
|
|
656
667
|
"formattedTotal": "1.111,00 €",
|
|
668
|
+
"total": { "amount": 111100, "currency": "EUR" },
|
|
657
669
|
"discount": {
|
|
658
670
|
"formattedOriginalTotal": "1.234,00 €",
|
|
671
|
+
"originalTotal": { "amount": 123400, "currency": "EUR" },
|
|
659
672
|
"applied": [
|
|
660
673
|
{
|
|
661
674
|
"label": "Frühbucher-Rabatt",
|
|
662
|
-
"formattedAmount": "-123,00 €"
|
|
675
|
+
"formattedAmount": "-123,00 €",
|
|
676
|
+
"type": "EARLY_BIRD"
|
|
663
677
|
}
|
|
664
678
|
]
|
|
665
679
|
}
|
|
@@ -710,12 +724,17 @@ Sample:
|
|
|
710
724
|
```
|
|
711
725
|
|
|
712
726
|
Search items share the rental base fields and may include `scope`, `address`,
|
|
713
|
-
`capacity` (counts as numbers, see the rentals instructions), `property`, `highlights
|
|
727
|
+
`capacity` (counts as numbers, see the rentals instructions), `property`, `highlights`
|
|
728
|
+
with `highlightFacts` (their keys and values, see "Facts" in the rentals instructions),
|
|
714
729
|
and `formattedTotal`. A priced item or alternative period
|
|
715
730
|
may also include `discount`. When it does, `formattedTotal` is the final price and
|
|
716
731
|
`discount.formattedOriginalTotal` is the price before the applied discounts.
|
|
717
|
-
Discount totals, labels, and amounts are
|
|
718
|
-
|
|
732
|
+
Discount totals, labels, and amounts are localized and formatted for the requested
|
|
733
|
+
locale; `total` and `discount.originalTotal` state the same totals as numbers. On v10,
|
|
734
|
+
each applied discount also states its `type`, which stays the same in every locale while
|
|
735
|
+
its `label` is translated: filter or group campaigns by `type`, not by `label`. v9 states
|
|
736
|
+
no type; its discount `label` is the name entered in the PMS, as the be-on! Hub sends it, in
|
|
737
|
+
the PMS's language (German unless the agency entered English).
|
|
719
738
|
`applied` may be empty when the backend supplies an original total without
|
|
720
739
|
individual modifier lines. Exact-period results are returned in `items`;
|
|
721
740
|
alternative-period suggestions are returned in root-level `alternatives`.
|
|
@@ -895,9 +914,9 @@ shape:
|
|
|
895
914
|
- Empty basic-filter sets are sent as GraphQL `data: null`, allowing an empty
|
|
896
915
|
query to browse the scoped searchable inventory without a dummy occupancy
|
|
897
916
|
value.
|
|
898
|
-
- `calc.total` becomes `formattedTotal
|
|
917
|
+
- `calc.total` becomes `formattedTotal` and `total` (in EUR).
|
|
899
918
|
- `discount` is included only when `calc.oTotal` is greater than `calc.total`.
|
|
900
|
-
- `calc.oTotal` becomes `discount.formattedOriginalTotal`.
|
|
919
|
+
- `calc.oTotal` becomes `discount.formattedOriginalTotal` and `discount.originalTotal`.
|
|
901
920
|
- A non-empty `calc.discountName` becomes the label of the single `applied` entry.
|
|
902
921
|
- The applied amount is the formatted negative difference
|
|
903
922
|
`calc.total - calc.oTotal`.
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# Changelog: 3.1.0
|
|
2
|
+
|
|
3
|
+
What an English site needed from the SDK to stop reading German words: amenities, distances,
|
|
4
|
+
highlights and room features state their keys and values (facts), search prices come as numbers,
|
|
5
|
+
and v10 discounts state their type. Image alt texts and room descriptions missing in the
|
|
6
|
+
requested language come back in German and are marked, like descriptions since 2.38.0, and the
|
|
7
|
+
SDK translates the v10 system cancellation policies and the be-on! Hub's no-name placeholder.
|
|
8
|
+
|
|
9
|
+
## Added
|
|
10
|
+
|
|
11
|
+
- `total` on priced search items and alternative periods, and `originalTotal` on their
|
|
12
|
+
`discount`, on v9 and v10: `{ amount, currency }`, with `amount` in the currency's minor unit
|
|
13
|
+
(`103339` = €1,033.39). They state the same totals as `formattedTotal` and
|
|
14
|
+
`discount.formattedOriginalTotal`. v9 states them in EUR, as it formats them.
|
|
15
|
+
- v10: `type` on each `discount.applied` entry (`EARLY_BIRD`, `LAST_MINUTE`, …). It is the same
|
|
16
|
+
in every locale while `label` is translated ("Frühbucher-Rabatt", "Early booking discount").
|
|
17
|
+
v9 states no type: its `label` is the discount name entered in the PMS.
|
|
18
|
+
- The type `SearchMoney`.
|
|
19
|
+
- `altFallback` on images and `descriptionFallback` on rooms: the language their text is in when
|
|
20
|
+
it is not the requested one (`"de-DE"`), omitted otherwise. Mark the text as German
|
|
21
|
+
(`lang="de"`) when it is set.
|
|
22
|
+
- Facts: every rendered list states its items with their keys and values, the same in every
|
|
23
|
+
locale: `facts` next to `items` in attribute subcategories and vicinity groups,
|
|
24
|
+
`highlightFacts` next to `highlights` (rentals, their property, search items), and
|
|
25
|
+
`attributeFacts` and `typeKey` on rooms. A fact is `{ key, text, value? }`: the attribute key,
|
|
26
|
+
the rendered item, and the raw value (`true`, a count, meters, m², an option key). `facts[i]` is
|
|
27
|
+
`items[i]`. The type `RentalFact`.
|
|
28
|
+
v9 states v10's key where v10 has the attribute (`loc_lake` → `locLake`) and features as
|
|
29
|
+
`true`, so a site curates one list for both backends. See "Facts" in `rentals.md`.
|
|
30
|
+
|
|
31
|
+
## Changed
|
|
32
|
+
|
|
33
|
+
- v10: a system cancellation policy (`SYSTEM_FIRM_14`, `SYSTEM_STRICT_30`, `SYSTEM_STRICT_60`)
|
|
34
|
+
is labelled by the SDK's translation of its type ("Strict (30 days)" on English pages); the
|
|
35
|
+
PMS sent its German name ("Streng (30 Tage)") in every locale. Custom and alternative policies
|
|
36
|
+
keep the agency's label.
|
|
37
|
+
- v9: the be-on! Hub's placeholder for a reviewer without a name ("Gastname nicht genannt") is
|
|
38
|
+
read as no name and becomes `reviews.item.guest` ("Guest" / "Gast").
|
|
39
|
+
- The instructions list the texts that stay in the PMS's language because an agency enters them
|
|
40
|
+
there (`quote.md`, "Texts in the PMS's language").
|
|
41
|
+
- v10: an image (rental, property and search) or a room without a text in the requested locale
|
|
42
|
+
takes its German text and is marked. Before, the text was omitted: English pages had no alt
|
|
43
|
+
text on most images (dev-28: 937 of 951) and no room descriptions.
|
|
44
|
+
- v9: an image title kept per language in the PMS falls back to German and is marked. A caption
|
|
45
|
+
the be-on! Hub sends as plain text is compared with the German one in the same extra query
|
|
46
|
+
`getRentals` already makes for descriptions on non-German pages, which now also reads image
|
|
47
|
+
captions. German pages are unchanged and make no extra query.
|