@v-office/website-sdk 2.17.1 → 2.18.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.
Files changed (44) hide show
  1. package/README.md +18 -0
  2. package/dist/cli.mjs +10 -11
  3. package/dist/{client-yYl7H82t.mjs → client-BnA0oXd_.mjs} +220 -23
  4. package/dist/index.d.mts +48 -2
  5. package/dist/index.mjs +2 -2
  6. package/dist/instructions/CHANGELOG.md +26 -27
  7. package/dist/instructions/MIGRATION.md +26 -27
  8. package/dist/instructions/README.md +7 -2
  9. package/dist/instructions/availability.md +9 -7
  10. package/dist/instructions/creation.md +46 -1
  11. package/dist/instructions/custom-attributes.md +7 -0
  12. package/dist/instructions/quote.md +8 -0
  13. package/dist/instructions/rentals.md +130 -2
  14. package/dist/instructions/versions/2.18.0/CHANGELOG.md +133 -0
  15. package/dist/instructions/versions/2.18.0/MIGRATION.md +364 -0
  16. package/dist/instructions/versions/2.18.1/CHANGELOG.md +16 -0
  17. package/dist/instructions/versions/2.18.1/MIGRATION.md +12 -0
  18. package/dist/{quote-C-Bs3XTE.mjs → quote-cjFdLn0m.mjs} +1 -0
  19. package/dist/{rentals-BokBV-ze.mjs → rentals-GfJVIv7i.mjs} +205 -12
  20. package/dist/{search-DkXUHJt8.mjs → search-CR1UjnmR.mjs} +3 -2
  21. package/dist/to-rental-highlights-CJvDxSLw.mjs +3035 -0
  22. package/dist/translations/v10/de-DE/core.json +1 -1
  23. package/dist/translations/v9/de-DE/core.json +7 -1
  24. package/dist/translations/v9/en-US/core.json +7 -1
  25. package/dist/{to-rental-highlights-BAsEuxoy.mjs → v9-data-BnYxa2Ek.mjs} +21 -2435
  26. package/instructions/CHANGELOG.md +26 -27
  27. package/instructions/MIGRATION.md +26 -27
  28. package/instructions/README.md +7 -2
  29. package/instructions/availability.md +9 -7
  30. package/instructions/creation.md +46 -1
  31. package/instructions/custom-attributes.md +7 -0
  32. package/instructions/quote.md +8 -0
  33. package/instructions/rentals.md +130 -2
  34. package/instructions/versions/2.18.0/CHANGELOG.md +133 -0
  35. package/instructions/versions/2.18.0/MIGRATION.md +364 -0
  36. package/instructions/versions/2.18.0/release.json +3 -0
  37. package/instructions/versions/2.18.1/CHANGELOG.md +16 -0
  38. package/instructions/versions/2.18.1/MIGRATION.md +12 -0
  39. package/instructions/versions/2.18.1/release.json +3 -0
  40. package/package.json +8 -7
  41. package/dist/instructions/versions/2.6.0/CHANGELOG.md +0 -6
  42. package/dist/instructions/versions/2.6.0/MIGRATION.md +0 -6
  43. package/instructions/versions/2.6.0/CHANGELOG.md +0 -6
  44. package/instructions/versions/2.6.0/MIGRATION.md +0 -6
package/README.md CHANGED
@@ -58,10 +58,28 @@ const sdk = createWebsiteSDK({
58
58
  imageProxyBaseUrl: "https://images.example.com",
59
59
  v1ApiBaseUrl: "https://example.com/api/v1",
60
60
  v0ApiBaseUrl: "https://example.com/api/v0",
61
+ // Optional: associate facilities through a facility p_* object-group field.
62
+ facilityObjectGroupRelationAttributeId: 18962,
61
63
  },
62
64
  });
63
65
  ```
64
66
 
67
+ To expose newline-separated facility text such as `p_18963` through the
68
+ existing v9 `property.highlights`, define a stable source and select its key:
69
+
70
+ ```ts
71
+ import { defineV9PropertyHighlightSources } from "@v-office/website-sdk";
72
+
73
+ const v9PropertyHighlightSources = defineV9PropertyHighlightSources({
74
+ facilityHighlights: { v9: "p_18963", type: "line-list" },
75
+ });
76
+
77
+ const options = defineWebsiteSDKOptions({
78
+ v9PropertyHighlightSources,
79
+ rentalPropertyHighlightPrioritization: [v9PropertyHighlightSources.keys.facilityHighlights],
80
+ });
81
+ ```
82
+
65
83
  ## SDK Surface
66
84
 
67
85
  The facade exposes Promise-based static and live APIs:
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { t as createWebsiteSDK, zt as defineWebsiteSDKOptions } from "./client-yYl7H82t.mjs";
2
+ import { Vt as defineV9PropertyHighlightSourcesFromUnknown, t as createWebsiteSDK, zt as defineWebsiteSDKOptions } from "./client-BnA0oXd_.mjs";
3
3
  import { SearchSearchSortSchema, defineCustomAttributesFromUnknown } from "@v-office/sdk-core";
4
4
  import { Console, Effect, FileSystem, Layer, Option, Path, Schema, Stdio, Terminal } from "effect";
5
5
  import { Command, Flag } from "effect/unstable/cli";
@@ -16,7 +16,7 @@ var CLICheckFailed = class extends Error {
16
16
  const toCLIError = (message, cause) => cause instanceof Error ? new CLICheckFailed(`${message}: ${cause.message}`, { cause }) : new CLICheckFailed(message, { cause });
17
17
  //#endregion
18
18
  //#region package.json
19
- var version = "2.17.1";
19
+ var version = "2.18.1";
20
20
  //#endregion
21
21
  //#region src/cli/output.ts
22
22
  const toJson = (value) => Effect.try({
@@ -68,7 +68,8 @@ const WebsiteV9CLIConfigSchema = Schema.Struct({
68
68
  imageProxyBaseUrl: NonBlankStringSchema,
69
69
  v0ApiBaseUrl: Schema.optionalKey(NonBlankStringSchema),
70
70
  v1ApiBaseUrl: Schema.optionalKey(NonBlankStringSchema),
71
- rentalDataAttributes: Schema.optionalKey(Schema.Array(NonBlankStringSchema))
71
+ rentalDataAttributes: Schema.optionalKey(Schema.Array(NonBlankStringSchema)),
72
+ facilityObjectGroupRelationAttributeId: Schema.optionalKey(Schema.Int.check(Schema.isGreaterThan(0)))
72
73
  });
73
74
  const WebsiteV10CLIConfigSchema = Schema.Struct({
74
75
  backend: Schema.optionalKey(Schema.Literal("v10")),
@@ -81,18 +82,16 @@ const WebsiteSDKCLIConfigSchema = Schema.Union([WebsiteV9CLIConfigSchema, Websit
81
82
  const decodeCLIConfig = (input, path) => Schema.decodeUnknownEffect(WebsiteSDKCLIConfigSchema)(input).pipe(Effect.mapError((cause) => toCLIError(`Invalid Website SDK config file at ${path}. Expected a complete v9 or v10 config`, cause)));
82
83
  const getRequiredEnv = (name) => Effect.sync(() => process.env[name]).pipe(Effect.flatMap((value) => value === void 0 || value.trim().length === 0 ? Effect.fail(new CLICheckFailed(`Missing required environment variable ${name}.`)) : Effect.succeed(value)));
83
84
  /**
84
- * `customAttributes` in the options file holds the *inputs* to
85
- * `defineCustomAttributes` — a catalog plus product policy — not a finished
86
- * registry. A registry is the output of validation, so taking one verbatim from
87
- * JSON would mean trusting a shape nothing checked. Running the join here applies
88
- * every invariant to the CLI path exactly as to the TypeScript path.
85
+ * Registry-shaped options files hold authored inputs rather than trusted registry
86
+ * snapshots. Build and validate both registries at this boundary.
89
87
  */
90
88
  const toWebsiteSDKOptions = (input, path) => Effect.try({
91
89
  try: () => {
92
- const { customAttributes, ...rest } = input ?? {};
93
- return defineWebsiteSDKOptions(customAttributes === void 0 ? rest : {
90
+ const { customAttributes, v9PropertyHighlightSources, ...rest } = input ?? {};
91
+ return defineWebsiteSDKOptions({
94
92
  ...rest,
95
- customAttributes: defineCustomAttributesFromUnknown(customAttributes)
93
+ ...customAttributes === void 0 ? {} : { customAttributes: defineCustomAttributesFromUnknown(customAttributes) },
94
+ ...v9PropertyHighlightSources === void 0 ? {} : { v9PropertyHighlightSources: defineV9PropertyHighlightSourcesFromUnknown(v9PropertyHighlightSources) }
96
95
  });
97
96
  },
98
97
  catch: (cause) => toCLIError(`Invalid Website SDK options file at ${path}`, cause)
@@ -1,3 +1,4 @@
1
+ import { a as customDataAttribute } from "./v9-data-BnYxa2Ek.mjs";
1
2
  import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, expandCustomAttributeFilterCompositions, firstNumber, firstString, formatCurrency, formatLocalDate, getBookingBookGuestToken, getGuestQuoteBackendContext, getGuestQuoteInput, isDisplayableCustomAttribute, localeToLanguage, makeMinIntervalLimiter, makeTranslationLive, parseQueryParameters, refreshGuestQuoteInsurancePassthrough, removeGuestQuoteAdditionalServiceSelection, selectGuestQuoteCancellationPolicySelection, toCustomAttributeFilterLabel, toCustomAttributeFilterOutputItem, toCustomAttributeList, toInitialAvailabilityCalendarDays, toQueryString, toResolvedCustomAttributeCategoryTranslationKey, toStartDateSelectedCalendarDays, validateContactSubmitInput, withGuestQuoteInsurance, withGuestQuoteInsuranceRefresh } from "@v-office/sdk-core";
2
3
  import { Context, Data, DateTime, Effect, Layer, Schema } from "effect";
3
4
  import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http";
@@ -161,6 +162,89 @@ var stable_filters_default = {
161
162
  }
162
163
  };
163
164
  //#endregion
165
+ //#region src/legacy-v9/facility-attribute-keys.ts
166
+ const V9_FACILITY_ATTRIBUTE_KEYS = [
167
+ "allergic",
168
+ "childrenWelcome",
169
+ "pets",
170
+ "youthgroups"
171
+ ];
172
+ //#endregion
173
+ //#region src/legacy-v9/property-highlight-sources.ts
174
+ const EMPTY_V9_PROPERTY_HIGHLIGHT_SOURCE_REGISTRY = {
175
+ byKey: {},
176
+ keys: {}
177
+ };
178
+ const stableKeyPattern = /^[A-Za-z0-9_-]+$/;
179
+ const dataAttributePattern = /^p_[1-9]\d*$/;
180
+ const reservedKeys = new Set(V9_FACILITY_ATTRIBUTE_KEYS);
181
+ const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
182
+ const invalidSources = (issues) => new CoreSDKError({
183
+ source: "v9",
184
+ operation: "v9.property-highlight-sources",
185
+ message: `Invalid v9 property highlight sources:\n${issues.map((issue) => `- ${issue}`).join("\n")}`
186
+ });
187
+ const parseV9PropertyHighlightSources = (input) => {
188
+ if (!isRecord(input)) throw invalidSources(["expected an object keyed by stable highlight key"]);
189
+ const issues = [];
190
+ const sources = [];
191
+ const sourceByBinding = /* @__PURE__ */ new Map();
192
+ for (const [key, source] of Object.entries(input)) {
193
+ if (!stableKeyPattern.test(key)) {
194
+ issues.push(`${key || "<empty>"}: stable keys may contain letters, digits, _ and - only`);
195
+ continue;
196
+ }
197
+ if (reservedKeys.has(key)) {
198
+ issues.push(`${key}: key is reserved for a built-in v9 facility highlight`);
199
+ continue;
200
+ }
201
+ if (!isRecord(source)) {
202
+ issues.push(`${key}: expected an object`);
203
+ continue;
204
+ }
205
+ const excessKeys = Object.keys(source).filter((sourceKey) => sourceKey !== "v9" && sourceKey !== "type");
206
+ if (excessKeys.length > 0) issues.push(`${key}: unsupported field(s) ${excessKeys.join(", ")}`);
207
+ const v9 = source.v9;
208
+ if (typeof v9 !== "string" || !dataAttributePattern.test(v9)) {
209
+ issues.push(`${key}.v9: expected a positive-integer p_* data attribute`);
210
+ continue;
211
+ }
212
+ if (source.type !== "line-list") {
213
+ issues.push(`${key}.type: expected "line-list"`);
214
+ continue;
215
+ }
216
+ const existingKey = sourceByBinding.get(v9);
217
+ if (existingKey !== void 0) {
218
+ issues.push(`${key}.v9: ${v9} is already used by ${existingKey}`);
219
+ continue;
220
+ }
221
+ sourceByBinding.set(v9, key);
222
+ sources.push({
223
+ key,
224
+ v9,
225
+ type: "line-list"
226
+ });
227
+ }
228
+ if (issues.length > 0) throw invalidSources(issues);
229
+ return {
230
+ byKey: Object.fromEntries(sources.map((source) => [source.key, source])),
231
+ keys: Object.fromEntries(sources.map((source) => [source.key, source.key]))
232
+ };
233
+ };
234
+ const defineV9PropertyHighlightSources = (sources) => parseV9PropertyHighlightSources(sources);
235
+ const defineV9PropertyHighlightSourcesFromUnknown = (input) => parseV9PropertyHighlightSources(input);
236
+ const selectV9PropertyHighlightSources = ({ highlightPrioritization, registry }) => {
237
+ const selected = [];
238
+ const seenKeys = /* @__PURE__ */ new Set();
239
+ for (const key of highlightPrioritization) {
240
+ if (seenKeys.has(key)) continue;
241
+ seenKeys.add(key);
242
+ const source = Object.hasOwn(registry.byKey, key) ? registry.byKey[key] : void 0;
243
+ if (source != null) selected.push(source);
244
+ }
245
+ return selected;
246
+ };
247
+ //#endregion
164
248
  //#region src/config.ts
165
249
  const normalizeWebsiteSDKOptions = (options = {}) => {
166
250
  assertNoReservedQueryKeys(options);
@@ -169,6 +253,7 @@ const normalizeWebsiteSDKOptions = (options = {}) => {
169
253
  return {
170
254
  ...options.translationOverrides === void 0 ? {} : { translationOverrides: options.translationOverrides },
171
255
  customAttributes: options.customAttributes ?? EMPTY_CUSTOM_ATTRIBUTE_REGISTRY,
256
+ v9PropertyHighlightSources: options.v9PropertyHighlightSources ?? EMPTY_V9_PROPERTY_HIGHLIGHT_SOURCE_REGISTRY,
172
257
  customAttributeFilterDefinitions: options.customAttributeFilterDefinitions ?? [],
173
258
  rentalHighlightPrioritization: options.rentalHighlightPrioritization ?? DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION,
174
259
  rentalPropertyHighlightPrioritization: options.rentalPropertyHighlightPrioritization ?? DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION,
@@ -186,8 +271,10 @@ const toV9Options = (options) => {
186
271
  return {
187
272
  ...options.translationOverrides === void 0 ? {} : { translationOverrides: options.translationOverrides },
188
273
  customAttributes: options.customAttributes,
274
+ v9PropertyHighlightSources: options.v9PropertyHighlightSources,
189
275
  customAttributeFilterDefinitions: options.customAttributeFilterDefinitions,
190
276
  rentalHighlightPrioritization: options.rentalHighlightPrioritization,
277
+ rentalPropertyHighlightPrioritization: options.rentalPropertyHighlightPrioritization,
191
278
  rentalScope: options.rentalScope,
192
279
  shouldAddProposedAdditionalServiceAmount: options.shouldAddProposedAdditionalServiceAmount
193
280
  };
@@ -407,6 +494,18 @@ const submitContactEffect = (input) => Effect.gen(function* () {
407
494
  return yield* (yield* ContactService).submit(input);
408
495
  });
409
496
  //#endregion
497
+ //#region src/legacy-v9/config.ts
498
+ const validateWebsiteV9Config = (config) => {
499
+ const attributeId = config.facilityObjectGroupRelationAttributeId;
500
+ if (attributeId === void 0) return;
501
+ if (Number.isSafeInteger(attributeId) && attributeId > 0) return;
502
+ throw new CoreSDKError({
503
+ source: "v9",
504
+ operation: "v9.config",
505
+ message: `Expected facilityObjectGroupRelationAttributeId to be a positive integer, received "${attributeId}".`
506
+ });
507
+ };
508
+ //#endregion
410
509
  //#region codegen/v9/v1/generated/v1-data.ts
411
510
  /**
412
511
  * Effect schemas generated from scripts/v9/v1/openapi.yaml.
@@ -1375,7 +1474,7 @@ const applyV9CalendarPrices = ({ availability, calendarDays, locale, currency })
1375
1474
  const result = { ...calendarDays };
1376
1475
  for (const [date, day] of Object.entries(calendarDays)) {
1377
1476
  const price = availability.caldata_beon[date]?.price;
1378
- if (day.canBeStartDate && typeof price === "number") result[date] = {
1477
+ if (day.isAvailableDate && typeof price === "number") result[date] = {
1379
1478
  ...day,
1380
1479
  formattedPrice: formatCurrency(price, locale, currency ?? "EUR")
1381
1480
  };
@@ -1392,7 +1491,13 @@ const toInitialAvailabilityCalendarDays$1 = ({ availability, currency, ...input
1392
1491
  //#region translations/v9/de-DE/core.json
1393
1492
  var core_default$1 = {
1394
1493
  "Rental.rentalType.option.HOUSE": "Haus",
1395
- "Rental.rentalType.option.FLAT": "Wohnung"
1494
+ "Rental.rentalType.option.FLAT": "Wohnung",
1495
+ "Property.propertyType.option.APARTMENT_COMPLEX": "Appartement Komplex",
1496
+ "Property.propertyType.option.CAMPGROUND": "Campingplatz",
1497
+ "Property.propertyType.option.FARM": "Bauernhof",
1498
+ "Property.propertyType.option.HOLIDAY_HOME_COMPLEX": "Ferienpark",
1499
+ "Property.propertyType.option.HOSTEL": "Hostel",
1500
+ "Property.propertyType.option.HOTEL": "Hotel"
1396
1501
  };
1397
1502
  //#endregion
1398
1503
  //#region translations/v9/de-DE/filter.json
@@ -2125,7 +2230,13 @@ var rental_attributes_default$1 = {
2125
2230
  //#region translations/v9/en-US/core.json
2126
2231
  var core_default = {
2127
2232
  "Rental.rentalType.option.HOUSE": "House",
2128
- "Rental.rentalType.option.FLAT": "Apartment"
2233
+ "Rental.rentalType.option.FLAT": "Apartment",
2234
+ "Property.propertyType.option.APARTMENT_COMPLEX": "Apartment complex",
2235
+ "Property.propertyType.option.CAMPGROUND": "Campground",
2236
+ "Property.propertyType.option.FARM": "Farm",
2237
+ "Property.propertyType.option.HOLIDAY_HOME_COMPLEX": "Holiday Home Complex",
2238
+ "Property.propertyType.option.HOSTEL": "Hostel",
2239
+ "Property.propertyType.option.HOTEL": "Hotel"
2129
2240
  };
2130
2241
  //#endregion
2131
2242
  //#region translations/v9/en-US/filter.json
@@ -5237,7 +5348,7 @@ const bookV9Insurance = ({ quote, bookingNumber, guestToken, v1Client }) => Effe
5237
5348
  //#region src/legacy-v9/live/quote.ts
5238
5349
  const loadQuoteRuntime = Effect.tryPromise({
5239
5350
  try: async () => {
5240
- return { toGuestQuote: (await import("./quote-C-Bs3XTE.mjs")).toGuestQuote };
5351
+ return { toGuestQuote: (await import("./quote-cjFdLn0m.mjs")).toGuestQuote };
5241
5352
  },
5242
5353
  catch: (cause) => new CoreSDKError({
5243
5354
  source: "v10",
@@ -5512,7 +5623,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
5512
5623
  return page;
5513
5624
  });
5514
5625
  const loadV9SearchRuntime = Effect.tryPromise({
5515
- try: () => import("./search-DkXUHJt8.mjs"),
5626
+ try: () => import("./search-CR1UjnmR.mjs"),
5516
5627
  catch: (cause) => new CoreSDKError({
5517
5628
  source: "v10",
5518
5629
  operation: "v9.search.runtime",
@@ -5856,11 +5967,27 @@ const makeV9FilterApi = ({ options }) => {
5856
5967
  //#endregion
5857
5968
  //#region src/legacy-v9/static/rentals.ts
5858
5969
  const DEFAULT_RENTAL_FACILITY_DATA_ATTRIBUTES = [
5859
- "name",
5970
+ "address",
5971
+ "allergic",
5972
+ "altDescription",
5973
+ "arrivalInfo",
5974
+ "childrenWelcome",
5860
5975
  "description",
5861
- "images"
5976
+ "departureInfo",
5977
+ "directions",
5978
+ "headline",
5979
+ "images",
5980
+ "intro",
5981
+ "loc",
5982
+ "locationDescription",
5983
+ "name",
5984
+ "pets",
5985
+ "regionName",
5986
+ "type",
5987
+ "youthgroups"
5862
5988
  ];
5863
5989
  const DEFAULT_RENTAL_RATING_DATA_ATTRIBUTES = [];
5990
+ const RENTAL_BATCH_SIZE = 128;
5864
5991
  const DEFAULT_RENTAL_FEEDBACK_DATA_ATTRIBUTES = [
5865
5992
  "id",
5866
5993
  "arrival",
@@ -5878,8 +6005,20 @@ const DEFAULT_RENTAL_FEEDBACK_DATA_ATTRIBUTES = [
5878
6005
  "fb_4906",
5879
6006
  "avgRating"
5880
6007
  ];
6008
+ const orderRentalsById = ({ rentalIds, rentals }) => {
6009
+ const rentalsById = new Map(rentals.map((rental) => [rental.voffice_id, rental]));
6010
+ return rentalIds.map((rentalId) => {
6011
+ const rental = rentalsById.get(rentalId);
6012
+ if (rental != null) return rental;
6013
+ throw new CoreSDKError({
6014
+ source: "v9",
6015
+ operation: "v9.rentals.batch",
6016
+ message: `The batched v9 rentals query did not return rental "${rentalId}".`
6017
+ });
6018
+ });
6019
+ };
5881
6020
  const loadV9RentalsRuntime = Effect.tryPromise({
5882
- try: () => import("./rentals-BokBV-ze.mjs"),
6021
+ try: () => import("./rentals-GfJVIv7i.mjs"),
5883
6022
  catch: (cause) => new CoreSDKError({
5884
6023
  source: "v10",
5885
6024
  operation: "v9.rentals.runtime",
@@ -5891,27 +6030,82 @@ const makeV9RentalsApi = ({ config, options }) => {
5891
6030
  const graphql = makeV9GraphQLClient(config);
5892
6031
  const translations = makeV9TranslationService(options.translationOverrides);
5893
6032
  return { getRentals: (input) => Effect.runPromise(Effect.gen(function* () {
5894
- const { defaultRentalDataAttributes, rentalsAllFeedbacksQuery, rentalsAllWithoutFeedbacksQuery, toRentalRentalsOutput } = yield* loadV9RentalsRuntime;
6033
+ const { associateRentalsWithFacilitiesByObjectGroups, defaultRentalDataAttributes, rentalFacilitiesForObjectGroupRelationQuery, rentalIdsQuery, rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery, rentalsAllFeedbacksQuery, rentalsAllWithoutFeedbacksQuery, toRentalRentalsOutput } = yield* loadV9RentalsRuntime;
5895
6034
  const language = localeToLanguage(input.locale);
5896
6035
  const rentalDataAttributes = [
5897
6036
  ...defaultRentalDataAttributes,
5898
6037
  ...config.rentalDataAttributes ?? [],
5899
6038
  ...toCustomAttributeRentalDataAttributes(options.customAttributes)
5900
6039
  ];
5901
- const rentalsData = yield* graphql.execute(rentalsAllWithoutFeedbacksQuery, {
5902
- language,
5903
- rentalDataAttributes,
5904
- rentalFacilityDataAttributes: [...DEFAULT_RENTAL_FACILITY_DATA_ATTRIBUTES],
5905
- rentalRatingDataAttributes: [...DEFAULT_RENTAL_RATING_DATA_ATTRIBUTES]
6040
+ const rentalFacilityDataAttributes = [...DEFAULT_RENTAL_FACILITY_DATA_ATTRIBUTES, ...selectV9PropertyHighlightSources({
6041
+ highlightPrioritization: options.rentalPropertyHighlightPrioritization,
6042
+ registry: options.v9PropertyHighlightSources
6043
+ }).map((source) => customDataAttribute(source.v9))];
6044
+ const relationAttributeId = config.facilityObjectGroupRelationAttributeId;
6045
+ const rentalIds = (yield* graphql.execute(rentalIdsQuery, {})).all.map((rental) => rental.voffice_id);
6046
+ if (rentalIds.length === 0) return [];
6047
+ const directRentals = [];
6048
+ const objectGroupRentals = [];
6049
+ for (let offset = 0; offset < rentalIds.length; offset += RENTAL_BATCH_SIZE) {
6050
+ const voffice_ids = rentalIds.slice(offset, offset + RENTAL_BATCH_SIZE);
6051
+ if (relationAttributeId === void 0) {
6052
+ const rentalsData = yield* graphql.execute(rentalsAllWithoutFeedbacksQuery, {
6053
+ language,
6054
+ voffice_ids,
6055
+ rentalDataAttributes,
6056
+ rentalFacilityDataAttributes,
6057
+ rentalRatingDataAttributes: [...DEFAULT_RENTAL_RATING_DATA_ATTRIBUTES]
6058
+ });
6059
+ directRentals.push(...rentalsData.all);
6060
+ } else {
6061
+ const rentalsData = yield* graphql.execute(rentalsAllByFacilityObjectGroupsWithoutFeedbacksQuery, {
6062
+ language,
6063
+ voffice_ids,
6064
+ rentalDataAttributes,
6065
+ rentalRatingDataAttributes: [...DEFAULT_RENTAL_RATING_DATA_ATTRIBUTES]
6066
+ });
6067
+ objectGroupRentals.push(...rentalsData.all);
6068
+ }
6069
+ }
6070
+ const rentalsWithoutFeedbacks = relationAttributeId === void 0 ? orderRentalsById({
6071
+ rentalIds,
6072
+ rentals: directRentals
6073
+ }) : yield* Effect.gen(function* () {
6074
+ const facilitiesData = yield* graphql.execute(rentalFacilitiesForObjectGroupRelationQuery, {
6075
+ language,
6076
+ rentalFacilityDataAttributes: [.../* @__PURE__ */ new Set([...rentalFacilityDataAttributes, customDataAttribute(`p_${relationAttributeId}`)])]
6077
+ });
6078
+ const orderedRentals = orderRentalsById({
6079
+ rentalIds,
6080
+ rentals: objectGroupRentals
6081
+ });
6082
+ return yield* Effect.try({
6083
+ try: () => associateRentalsWithFacilitiesByObjectGroups({
6084
+ attributeId: relationAttributeId,
6085
+ facilities: facilitiesData.facilities,
6086
+ rentals: orderedRentals
6087
+ }),
6088
+ catch: (cause) => cause instanceof CoreSDKError ? cause : new CoreSDKError({
6089
+ source: "v9",
6090
+ operation: "v9.rentals.facility-object-group-relation",
6091
+ message: "Failed to associate rentals with facilities by object groups.",
6092
+ cause
6093
+ })
6094
+ });
5906
6095
  });
5907
- const scopedRentalsWithoutFeedbacks = filterV9RentalsByScope(rentalsData.all, options.rentalScope);
6096
+ const scopedRentalsWithoutFeedbacks = filterV9RentalsByScope(rentalsWithoutFeedbacks, options.rentalScope);
5908
6097
  if (scopedRentalsWithoutFeedbacks.length === 0) return [];
5909
- const feedbacksData = yield* graphql.execute(rentalsAllFeedbacksQuery, {
5910
- language,
5911
- voffice_ids: scopedRentalsWithoutFeedbacks.map((rental) => rental.voffice_id),
5912
- rentalFeedbackDataAttributes: [...DEFAULT_RENTAL_FEEDBACK_DATA_ATTRIBUTES]
5913
- });
5914
- const feedbacksByRentalId = new Map(feedbacksData.all.map((rental) => [rental.voffice_id, rental.voffice_feedbacks]));
6098
+ const feedbackRentals = [];
6099
+ for (let offset = 0; offset < scopedRentalsWithoutFeedbacks.length; offset += RENTAL_BATCH_SIZE) {
6100
+ const batch = scopedRentalsWithoutFeedbacks.slice(offset, offset + RENTAL_BATCH_SIZE);
6101
+ const feedbacksData = yield* graphql.execute(rentalsAllFeedbacksQuery, {
6102
+ language,
6103
+ voffice_ids: batch.map((rental) => rental.voffice_id),
6104
+ rentalFeedbackDataAttributes: [...DEFAULT_RENTAL_FEEDBACK_DATA_ATTRIBUTES]
6105
+ });
6106
+ feedbackRentals.push(...feedbacksData.all);
6107
+ }
6108
+ const feedbacksByRentalId = new Map(feedbackRentals.map((rental) => [rental.voffice_id, rental.voffice_feedbacks]));
5915
6109
  const scopedRentals = scopedRentalsWithoutFeedbacks.map((rental) => ({
5916
6110
  ...rental,
5917
6111
  voffice_feedbacks: feedbacksByRentalId.get(rental.voffice_id) ?? null
@@ -5922,7 +6116,9 @@ const makeV9RentalsApi = ({ config, options }) => {
5922
6116
  translations,
5923
6117
  imageProxyBaseUrl: config.imageProxyBaseUrl,
5924
6118
  rentalHighlightPrioritization: [...options.rentalHighlightPrioritization],
5925
- customAttributes: options.customAttributes
6119
+ rentalPropertyHighlightPrioritization: [...options.rentalPropertyHighlightPrioritization],
6120
+ customAttributes: options.customAttributes,
6121
+ v9PropertyHighlightSources: options.v9PropertyHighlightSources
5926
6122
  })));
5927
6123
  })) };
5928
6124
  };
@@ -5931,6 +6127,7 @@ const makeV9RentalsApi = ({ config, options }) => {
5931
6127
  function createWebsiteSDK({ config, options }) {
5932
6128
  const normalizedOptions = normalizeWebsiteSDKOptions(options);
5933
6129
  if (config.backend === "v9") {
6130
+ validateWebsiteV9Config(config);
5934
6131
  const v9Options = toV9Options(normalizedOptions);
5935
6132
  validateV9RentalScope(v9Options.rentalScope);
5936
6133
  const rentals = makeV9RentalsApi({
@@ -6028,4 +6225,4 @@ function createWebsiteSDK({ config, options }) {
6028
6225
  };
6029
6226
  }
6030
6227
  //#endregion
6031
- export { ServiceBeonDataSchema as $, ErgoBookRequestSchema as A, quoteEffect as At, OnOfficeUnitSchema as B, DocumentResourceSchema as C, clearAdditionalServicesEffect as Ct, DocumentTypeSchema as D, getRentalsEffect as Dt, DocumentSummarySchema as E, getInitialAvailabilityEffect as Et, ErgoPolicyNumberRequestSchema as F, selectInsurancePaymentEffect as Ft, QuotePricesResponseSchema$1 as G, PaymentScheduleSchema$1 as H, ErgoReadPreContractRequestSchema as I, submitContactEffect as It, RawObjectResponseSchema as J, QuoteSchema as K, ErgoTripAndCustomerRequestSchema as L, submitPaymentOption as Lt, ErgoCreatePreContractRequestSchema as M, searchEffect as Mt, ErgoPersonSchema as N, selectCancellationPolicyEffect as Nt, ErgoAddressSchema as O, getStartDateSelectedAvailabilityEffect as Ot, ErgoPlanSearchRequestSchema as P, selectInsuranceEffect as Pt, SearchPropertiesResponseSchema as Q, FacilityListResponseSchema as R, submitPaymentOptionEffect as Rt, DocumentResourceResponseSchema as S, bookInsuranceEffect as St, DocumentStatusUpdateRequestSchema as T, getFiltersEffect as Tt, QuoteLineSchema$1 as U, PaymentScheduleItemSchema as V, QuotePricesPayloadSchema as W, RegionListResponseSchema as X, RawVofficeObjectSchema as Y, RoomImageSchema as Z, CalendarDaySchema as _, V1_OPERATIONS as _t, parseQueryParameters as a, TileCollectionResponseSchema as at, CustomerUnitSummarySchema as b, addAdditionalServiceEffect as bt, V0OpenApiClient as c, TravelInsuranceBookingSchema as ct, makeV0OpenApiClientLive as d, UnitListItemSchema as dt, ServiceImageSchema as et, V1OpenApiClient as f, UnitListResponseSchema as ft, ApiEnvelopeBaseSchema as g, V1_BASE_URL as gt, makeV1OpenApiClientLive as h, UnitServicePriceSchema as ht, collectQueryParameters as i, SetupResponseSchema as it, ErgoCommonFieldsSchema as j, removeAdditionalServiceEffect as jt, ErgoBankSchema as k, getTermsAndPrivacyPolicyEffect as kt, V0OpenApiClientError as l, TravelInsuranceBookingStoreRequestSchema as lt, makeV1OpenApiClientFetchLive as m, UnitResponseSchema as mt, makeV9CustomAttributeFilterCapabilities as n, ServiceListResponseSchema as nt, toQueryString as o, TileSchema as ot, V1OpenApiClientError as p, UnitOfferSchema as pt, QuoteServiceSchema as q, toBasicQueryInputs as r, SetupDataSchema as rt, applyVofficeFilterDerivedBasicQueryInputs as s, TileTagSchema as st, createWebsiteSDK as t, ServiceLimitSchema as tt, makeV0OpenApiClientFetchLive as u, UnitIdsResponseSchema as ut, CalendarResponseSchema$1 as v, VideoResponseSchema as vt, DocumentStatusSchema as w, createInsurancePreContractEffect as wt, DocumentCollectionResponseSchema as x, bookEffect as xt, CurrentMemberResponseSchema as y, decodeV1OperationResponse as yt, OnOfficeUnitCollectionResponseSchema as z, defineWebsiteSDKOptions as zt };
6228
+ export { ServiceBeonDataSchema as $, ErgoBookRequestSchema as A, quoteEffect as At, OnOfficeUnitSchema as B, defineV9PropertyHighlightSources as Bt, DocumentResourceSchema as C, clearAdditionalServicesEffect as Ct, DocumentTypeSchema as D, getRentalsEffect as Dt, DocumentSummarySchema as E, getInitialAvailabilityEffect as Et, ErgoPolicyNumberRequestSchema as F, selectInsurancePaymentEffect as Ft, QuotePricesResponseSchema$1 as G, PaymentScheduleSchema$1 as H, V9_FACILITY_ATTRIBUTE_KEYS as Ht, ErgoReadPreContractRequestSchema as I, submitContactEffect as It, RawObjectResponseSchema as J, QuoteSchema as K, ErgoTripAndCustomerRequestSchema as L, submitPaymentOption as Lt, ErgoCreatePreContractRequestSchema as M, searchEffect as Mt, ErgoPersonSchema as N, selectCancellationPolicyEffect as Nt, ErgoAddressSchema as O, getStartDateSelectedAvailabilityEffect as Ot, ErgoPlanSearchRequestSchema as P, selectInsuranceEffect as Pt, SearchPropertiesResponseSchema as Q, FacilityListResponseSchema as R, submitPaymentOptionEffect as Rt, DocumentResourceResponseSchema as S, bookInsuranceEffect as St, DocumentStatusUpdateRequestSchema as T, getFiltersEffect as Tt, QuoteLineSchema$1 as U, PaymentScheduleItemSchema as V, defineV9PropertyHighlightSourcesFromUnknown as Vt, QuotePricesPayloadSchema as W, RegionListResponseSchema as X, RawVofficeObjectSchema as Y, RoomImageSchema as Z, CalendarDaySchema as _, V1_OPERATIONS as _t, parseQueryParameters as a, TileCollectionResponseSchema as at, CustomerUnitSummarySchema as b, addAdditionalServiceEffect as bt, V0OpenApiClient as c, TravelInsuranceBookingSchema as ct, makeV0OpenApiClientLive as d, UnitListItemSchema as dt, ServiceImageSchema as et, V1OpenApiClient as f, UnitListResponseSchema as ft, ApiEnvelopeBaseSchema as g, V1_BASE_URL as gt, makeV1OpenApiClientLive as h, UnitServicePriceSchema as ht, collectQueryParameters as i, SetupResponseSchema as it, ErgoCommonFieldsSchema as j, removeAdditionalServiceEffect as jt, ErgoBankSchema as k, getTermsAndPrivacyPolicyEffect as kt, V0OpenApiClientError as l, TravelInsuranceBookingStoreRequestSchema as lt, makeV1OpenApiClientFetchLive as m, UnitResponseSchema as mt, makeV9CustomAttributeFilterCapabilities as n, ServiceListResponseSchema as nt, toQueryString as o, TileSchema as ot, V1OpenApiClientError as p, UnitOfferSchema as pt, QuoteServiceSchema as q, toBasicQueryInputs as r, SetupDataSchema as rt, applyVofficeFilterDerivedBasicQueryInputs as s, TileTagSchema as st, createWebsiteSDK as t, ServiceLimitSchema as tt, makeV0OpenApiClientFetchLive as u, UnitIdsResponseSchema as ut, CalendarResponseSchema$1 as v, VideoResponseSchema as vt, DocumentStatusSchema as w, createInsurancePreContractEffect as wt, DocumentCollectionResponseSchema as x, bookEffect as xt, CurrentMemberResponseSchema as y, decodeV1OperationResponse as yt, OnOfficeUnitCollectionResponseSchema as z, defineWebsiteSDKOptions as zt };
package/dist/index.d.mts CHANGED
@@ -1,6 +1,23 @@
1
1
  import { AdditionalServiceLimitExceeded, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, 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, Locale, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, 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, V9OnlyCustomAttributeInput, 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
+ //#region src/legacy-v9/property-highlight-sources.d.ts
5
+ type V9PropertyHighlightDataAttribute = `p_${number}`;
6
+ type V9PropertyHighlightSourceInput = {
7
+ readonly v9: V9PropertyHighlightDataAttribute;
8
+ readonly type: "line-list";
9
+ };
10
+ type V9PropertyHighlightSourcesInput = Readonly<Record<string, V9PropertyHighlightSourceInput>>;
11
+ type ResolvedV9PropertyHighlightSource<Key extends string = string> = V9PropertyHighlightSourceInput & {
12
+ readonly key: Key;
13
+ };
14
+ type V9PropertyHighlightSourceRegistry<Key extends string = string> = {
15
+ readonly byKey: Readonly<Record<Key, ResolvedV9PropertyHighlightSource<Key>>>;
16
+ readonly keys: Readonly<Record<Key, Key>>;
17
+ };
18
+ declare const defineV9PropertyHighlightSources: <const Sources extends V9PropertyHighlightSourcesInput>(sources: Sources) => V9PropertyHighlightSourceRegistry<keyof Sources & string>;
19
+ declare const defineV9PropertyHighlightSourcesFromUnknown: (input: unknown) => V9PropertyHighlightSourceRegistry;
20
+ //#endregion
4
21
  //#region src/legacy-v9/config.d.ts
5
22
  type WebsiteV9Config = {
6
23
  readonly backend: "v9";
@@ -10,6 +27,8 @@ type WebsiteV9Config = {
10
27
  readonly v0ApiBaseUrl?: string;
11
28
  readonly v1ApiBaseUrl?: string;
12
29
  readonly rentalDataAttributes?: readonly string[];
30
+ /** Facility p_* attribute whose value contains related vOffice object-group IDs. */
31
+ readonly facilityObjectGroupRelationAttributeId?: number;
13
32
  };
14
33
  //#endregion
15
34
  //#region src/config.d.ts
@@ -21,6 +40,8 @@ type WebsiteSDKOptions = {
21
40
  readonly translationOverrides?: TranslationOverrides$1;
22
41
  /** The validated registry returned by `defineCustomAttributes`. */
23
42
  readonly customAttributes?: CustomAttributeRegistrySnapshot$1;
43
+ /** Validated v9 p_* line-list sources returned by `defineV9PropertyHighlightSources`. */
44
+ readonly v9PropertyHighlightSources?: V9PropertyHighlightSourceRegistry;
24
45
  readonly customAttributeFilterDefinitions?: readonly CustomAttributeFilterDefinition$1[];
25
46
  /**
26
47
  * Selects and orders rental highlights. This is an ordered allowlist, not a sort
@@ -34,7 +55,7 @@ type WebsiteSDKOptions = {
34
55
  */
35
56
  readonly rentalHighlightPrioritization?: readonly RentalHighlightPrioritizationKey$1[];
36
57
  /**
37
- * Selects and orders v10 property highlights. This is an ordered allowlist, not
58
+ * Selects and orders property highlights. This is an ordered allowlist, not
38
59
  * a sort over every available fact.
39
60
  *
40
61
  * Only listed keys are emitted, even when an omitted key has a source value.
@@ -7333,7 +7354,14 @@ type KnownVofficeImageDataAttribute = KnownDataAttribute<KnownVofficeImageData>;
7333
7354
  /** Known structure of VofficeFacility.data attributes. */
7334
7355
  declare const VofficeFacilityDataFieldSchemas: {
7335
7356
  readonly name: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7357
+ readonly headline: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7358
+ readonly intro: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7336
7359
  readonly description: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7360
+ readonly altDescription: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7361
+ readonly arrivalInfo: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7362
+ readonly departureInfo: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7363
+ readonly locationDescription: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7364
+ readonly directions: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7337
7365
  readonly images: Schema.mutable<Schema.$Array<Schema.Struct<{
7338
7366
  readonly id: Schema.optionalKey<Schema.Number>;
7339
7367
  readonly width: Schema.optionalKey<Schema.Number>;
@@ -7345,6 +7373,24 @@ declare const VofficeFacilityDataFieldSchemas: {
7345
7373
  readonly titles: Schema.optionalKey<Schema.Unknown>;
7346
7374
  readonly season: Schema.optionalKey<Schema.String>;
7347
7375
  }>>>;
7376
+ readonly type: Schema.String;
7377
+ readonly loc: Schema.Struct<{
7378
+ readonly type: Schema.Literal<"Point">;
7379
+ readonly coordinates: Schema.Tuple<readonly [Schema.Number, Schema.Number]>;
7380
+ }>;
7381
+ readonly address: Schema.Struct<{
7382
+ readonly street: Schema.optionalKey<Schema.String>;
7383
+ readonly housenumber: Schema.optionalKey<Schema.String>;
7384
+ readonly postalcode: Schema.optionalKey<Schema.String>;
7385
+ readonly city: Schema.optionalKey<Schema.String>;
7386
+ readonly country: Schema.optionalKey<Schema.String>;
7387
+ readonly appendix: Schema.optionalKey<Schema.String>;
7388
+ }>;
7389
+ readonly regionName: Schema.Union<readonly [Schema.String, Schema.$Record<Schema.String, Schema.String>]>;
7390
+ readonly allergic: Schema.Number;
7391
+ readonly childrenWelcome: Schema.Number;
7392
+ readonly pets: Schema.Number;
7393
+ readonly youthgroups: Schema.Number;
7348
7394
  };
7349
7395
  type KnownVofficeFacilityData = KnownJsonData<typeof VofficeFacilityDataFieldSchemas>;
7350
7396
  type ParsedVofficeFacilityData = ParsedJsonData<KnownVofficeFacilityData>;
@@ -7457,4 +7503,4 @@ type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
7457
7503
  type RentalSearchInput = SearchSearchInput$1;
7458
7504
  type RentalSearchOutput = SearchSearchOutput$1;
7459
7505
  //#endregion
7460
- export { AdditionalServiceLimitExceeded, ApiEnvelopeBase, ApiEnvelopeBaseSchema, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBookInput, type BookingBookOutput, BookingInput, BookingOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, CalendarDay, CalendarDaySchema, CalendarResponse, CalendarResponseSchema, ContactInput, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, CurrentMemberResponse, CurrentMemberResponseSchema, 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, CustomerUnitSummary, CustomerUnitSummarySchema, type DataAttribute, DefineDataAttributes, DocumentCollectionResponse, DocumentCollectionResponseSchema, DocumentResource, DocumentResourceResponse, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatus, DocumentStatusSchema, DocumentStatusUpdateRequest, DocumentStatusUpdateRequestSchema, DocumentSummary, DocumentSummarySchema, DocumentType, DocumentTypeSchema, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, ErgoAddress, ErgoAddressSchema, ErgoBank, ErgoBankSchema, ErgoBookRequest, ErgoBookRequestSchema, ErgoCommonFields, ErgoCommonFieldsSchema, ErgoCreatePreContractRequest, ErgoCreatePreContractRequestSchema, ErgoPerson, ErgoPersonSchema, ErgoPlanSearchRequest, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequest, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequest, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequest, ErgoTripAndCustomerRequestSchema, FacilityListResponse, FacilityListResponseSchema, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, InitialAvailabilityInput, InitialAvailabilityOutput, 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, OnOfficeUnit, OnOfficeUnitCollectionResponse, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, PaymentSchedule, PaymentScheduleItem, PaymentScheduleItemSchema, PaymentScheduleSchema, Quote, QuoteLine, QuoteLineSchema, QuotePricesPayload, QuotePricesPayloadSchema, QuotePricesResponse, QuotePricesResponseSchema, type QuoteQuoteInput, type QuoteQuoteOutput, QuoteSchema, QuoteService, QuoteServiceSchema, RawObjectResponse, RawObjectResponseSchema, RawVofficeObject, RawVofficeObjectSchema, RegionListResponse, RegionListResponseSchema, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, RentalRentalsInput, RentalRentalsOutput, RentalSearchInput, RentalSearchOutput, type ResolvedCustomAttribute, RoomImage, RoomImageSchema, SearchPropertiesResponse, SearchPropertiesResponseSchema, 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, ServiceBeonData, ServiceBeonDataSchema, ServiceImage, ServiceImageSchema, ServiceLimit, ServiceLimitSchema, ServiceListResponse, ServiceListResponseSchema, SetupData, SetupDataSchema, SetupResponse, SetupResponseSchema, StartDateSelectedAvailabilityInput, StartDateSelectedAvailabilityOutput, type SubmittableBookingPaymentOption, Tile, TileCollectionResponse, TileCollectionResponseSchema, TileSchema, TileTag, TileTagSchema, type TranslationOverrides, TravelInsuranceBooking, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequest, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponse, UnitIdsResponseSchema, UnitListItem, UnitListItemSchema, UnitListResponse, UnitListResponseSchema, UnitOffer, UnitOfferSchema, UnitResponse, UnitResponseSchema, UnitServicePrice, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, V1DecodedResponse, V1HttpMethod, V1OpenApiClient, V1OpenApiClientError, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, V1OperationId, V1OperationRuntime, V1OperationSchema, V1SchemaDecodeError, V1_BASE_URL, V1_OPERATIONS, type V9OnlyCustomAttributeInput, type V9SearchSearchInput, type V9SearchSearchSort, VideoResponse, VideoResponseSchema, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9Live, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
7506
+ export { AdditionalServiceLimitExceeded, ApiEnvelopeBase, ApiEnvelopeBaseSchema, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBookInput, type BookingBookOutput, BookingInput, BookingOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, CalendarDay, CalendarDaySchema, CalendarResponse, CalendarResponseSchema, ContactInput, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, CurrentMemberResponse, CurrentMemberResponseSchema, 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, CustomerUnitSummary, CustomerUnitSummarySchema, type DataAttribute, DefineDataAttributes, DocumentCollectionResponse, DocumentCollectionResponseSchema, DocumentResource, DocumentResourceResponse, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatus, DocumentStatusSchema, DocumentStatusUpdateRequest, DocumentStatusUpdateRequestSchema, DocumentSummary, DocumentSummarySchema, DocumentType, DocumentTypeSchema, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, ErgoAddress, ErgoAddressSchema, ErgoBank, ErgoBankSchema, ErgoBookRequest, ErgoBookRequestSchema, ErgoCommonFields, ErgoCommonFieldsSchema, ErgoCreatePreContractRequest, ErgoCreatePreContractRequestSchema, ErgoPerson, ErgoPersonSchema, ErgoPlanSearchRequest, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequest, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequest, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequest, ErgoTripAndCustomerRequestSchema, FacilityListResponse, FacilityListResponseSchema, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, InitialAvailabilityInput, InitialAvailabilityOutput, 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, OnOfficeUnit, OnOfficeUnitCollectionResponse, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, PaymentSchedule, PaymentScheduleItem, PaymentScheduleItemSchema, PaymentScheduleSchema, Quote, QuoteLine, QuoteLineSchema, QuotePricesPayload, QuotePricesPayloadSchema, QuotePricesResponse, QuotePricesResponseSchema, type QuoteQuoteInput, type QuoteQuoteOutput, QuoteSchema, QuoteService, QuoteServiceSchema, RawObjectResponse, RawObjectResponseSchema, RawVofficeObject, RawVofficeObjectSchema, RegionListResponse, RegionListResponseSchema, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, RentalRentalsInput, RentalRentalsOutput, RentalSearchInput, RentalSearchOutput, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, RoomImage, RoomImageSchema, SearchPropertiesResponse, SearchPropertiesResponseSchema, 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, ServiceBeonData, ServiceBeonDataSchema, ServiceImage, ServiceImageSchema, ServiceLimit, ServiceLimitSchema, ServiceListResponse, ServiceListResponseSchema, SetupData, SetupDataSchema, SetupResponse, SetupResponseSchema, StartDateSelectedAvailabilityInput, StartDateSelectedAvailabilityOutput, type SubmittableBookingPaymentOption, Tile, TileCollectionResponse, TileCollectionResponseSchema, TileSchema, TileTag, TileTagSchema, type TranslationOverrides, TravelInsuranceBooking, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequest, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponse, UnitIdsResponseSchema, UnitListItem, UnitListItemSchema, UnitListResponse, UnitListResponseSchema, UnitOffer, UnitOfferSchema, UnitResponse, UnitResponseSchema, UnitServicePrice, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, V1DecodedResponse, V1HttpMethod, V1OpenApiClient, V1OpenApiClientError, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, V1OperationId, V1OperationRuntime, V1OperationSchema, V1SchemaDecodeError, V1_BASE_URL, V1_OPERATIONS, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9SearchSearchInput, type V9SearchSearchSort, VideoResponse, VideoResponseSchema, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9Live, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineV9PropertyHighlightSources, defineV9PropertyHighlightSourcesFromUnknown, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as quoteEffect, B as OnOfficeUnitSchema, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getRentalsEffect, E as DocumentSummarySchema, Et as getInitialAvailabilityEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectInsurancePaymentEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, I as ErgoReadPreContractRequestSchema, It as submitContactEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as submitPaymentOption, M as ErgoCreatePreContractRequestSchema, Mt as searchEffect, N as ErgoPersonSchema, Nt as selectCancellationPolicyEffect, O as ErgoAddressSchema, Ot as getStartDateSelectedAvailabilityEffect, P as ErgoPlanSearchRequestSchema, Pt as selectInsuranceEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitPaymentOptionEffect, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getFiltersEffect, U as QuoteLineSchema, V as PaymentScheduleItemSchema, W as QuotePricesPayloadSchema, X as RegionListResponseSchema, Y as RawVofficeObjectSchema, Z as RoomImageSchema, _ as CalendarDaySchema, _t as V1_OPERATIONS, at as TileCollectionResponseSchema, b as CustomerUnitSummarySchema, bt as addAdditionalServiceEffect, c as V0OpenApiClient, ct as TravelInsuranceBookingSchema, d as makeV0OpenApiClientLive, dt as UnitListItemSchema, et as ServiceImageSchema, f as V1OpenApiClient, ft as UnitListResponseSchema, g as ApiEnvelopeBaseSchema, gt as V1_BASE_URL, h as makeV1OpenApiClientLive, ht as UnitServicePriceSchema, it as SetupResponseSchema, j as ErgoCommonFieldsSchema, jt as removeAdditionalServiceEffect, k as ErgoBankSchema, kt as getTermsAndPrivacyPolicyEffect, l as V0OpenApiClientError, lt as TravelInsuranceBookingStoreRequestSchema, m as makeV1OpenApiClientFetchLive, mt as UnitResponseSchema, nt as ServiceListResponseSchema, ot as TileSchema, p as V1OpenApiClientError, pt as UnitOfferSchema, q as QuoteServiceSchema, rt as SetupDataSchema, st as TileTagSchema, t as createWebsiteSDK, tt as ServiceLimitSchema, u as makeV0OpenApiClientFetchLive, ut as UnitIdsResponseSchema, v as CalendarResponseSchema, vt as VideoResponseSchema, w as DocumentStatusSchema, wt as createInsurancePreContractEffect, x as DocumentCollectionResponseSchema, xt as bookEffect, y as CurrentMemberResponseSchema, yt as decodeV1OperationResponse, z as OnOfficeUnitCollectionResponseSchema, zt as defineWebsiteSDKOptions } from "./client-yYl7H82t.mjs";
1
+ import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as quoteEffect, B as OnOfficeUnitSchema, Bt as defineV9PropertyHighlightSources, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getRentalsEffect, E as DocumentSummarySchema, Et as getInitialAvailabilityEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectInsurancePaymentEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, I as ErgoReadPreContractRequestSchema, It as submitContactEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as submitPaymentOption, M as ErgoCreatePreContractRequestSchema, Mt as searchEffect, N as ErgoPersonSchema, Nt as selectCancellationPolicyEffect, O as ErgoAddressSchema, Ot as getStartDateSelectedAvailabilityEffect, P as ErgoPlanSearchRequestSchema, Pt as selectInsuranceEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitPaymentOptionEffect, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getFiltersEffect, U as QuoteLineSchema, V as PaymentScheduleItemSchema, Vt as defineV9PropertyHighlightSourcesFromUnknown, W as QuotePricesPayloadSchema, X as RegionListResponseSchema, Y as RawVofficeObjectSchema, Z as RoomImageSchema, _ as CalendarDaySchema, _t as V1_OPERATIONS, at as TileCollectionResponseSchema, b as CustomerUnitSummarySchema, bt as addAdditionalServiceEffect, c as V0OpenApiClient, ct as TravelInsuranceBookingSchema, d as makeV0OpenApiClientLive, dt as UnitListItemSchema, et as ServiceImageSchema, f as V1OpenApiClient, ft as UnitListResponseSchema, g as ApiEnvelopeBaseSchema, gt as V1_BASE_URL, h as makeV1OpenApiClientLive, ht as UnitServicePriceSchema, it as SetupResponseSchema, j as ErgoCommonFieldsSchema, jt as removeAdditionalServiceEffect, k as ErgoBankSchema, kt as getTermsAndPrivacyPolicyEffect, l as V0OpenApiClientError, lt as TravelInsuranceBookingStoreRequestSchema, m as makeV1OpenApiClientFetchLive, mt as UnitResponseSchema, nt as ServiceListResponseSchema, ot as TileSchema, p as V1OpenApiClientError, pt as UnitOfferSchema, q as QuoteServiceSchema, rt as SetupDataSchema, st as TileTagSchema, t as createWebsiteSDK, tt as ServiceLimitSchema, u as makeV0OpenApiClientFetchLive, ut as UnitIdsResponseSchema, v as CalendarResponseSchema, vt as VideoResponseSchema, w as DocumentStatusSchema, wt as createInsurancePreContractEffect, x as DocumentCollectionResponseSchema, xt as bookEffect, y as CurrentMemberResponseSchema, yt as decodeV1OperationResponse, z as OnOfficeUnitCollectionResponseSchema, zt as defineWebsiteSDKOptions } from "./client-BnA0oXd_.mjs";
2
2
  import { AdditionalServiceLimitExceeded, CoreSDKError, CoreSDKError as CMSError, CustomAttributeCatalogSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, 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;
@@ -13,4 +13,4 @@ const defineVofficeOfferDataAttributes = defineDataAttributes();
13
13
  const defineVofficeRatingDataAttributes = defineDataAttributes();
14
14
  const defineVofficeTotalRatingDataAttributes = defineDataAttributes();
15
15
  //#endregion
16
- export { AdditionalServiceLimitExceeded, ApiEnvelopeBaseSchema, CMSError, CalendarDaySchema, CalendarResponseSchema, CoreSDKError, CurrentMemberResponseSchema, CustomAttributeCatalogSchema, CustomerUnitSummarySchema, DocumentCollectionResponseSchema, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatusSchema, DocumentStatusUpdateRequestSchema, DocumentSummarySchema, DocumentTypeSchema, ErgoAddressSchema, ErgoBankSchema, ErgoBookRequestSchema, ErgoCommonFieldsSchema, ErgoCreatePreContractRequestSchema, ErgoPersonSchema, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequestSchema, FacilityListResponseSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, PaymentScheduleItemSchema, PaymentScheduleSchema, QuoteLineSchema, QuotePricesPayloadSchema, QuotePricesResponseSchema, QuoteSchema, QuoteServiceSchema, RawObjectResponseSchema, RawVofficeObjectSchema, RegionListResponseSchema, RoomImageSchema, SearchPropertiesResponseSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, ServiceBeonDataSchema, ServiceImageSchema, ServiceLimitSchema, ServiceListResponseSchema, SetupDataSchema, SetupResponseSchema, TileCollectionResponseSchema, TileSchema, TileTagSchema, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponseSchema, UnitListItemSchema, UnitListResponseSchema, UnitOfferSchema, UnitResponseSchema, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, V1OpenApiClient, V1OpenApiClientError, V1_BASE_URL, V1_OPERATIONS, VideoResponseSchema, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
16
+ export { AdditionalServiceLimitExceeded, ApiEnvelopeBaseSchema, CMSError, CalendarDaySchema, CalendarResponseSchema, CoreSDKError, CurrentMemberResponseSchema, CustomAttributeCatalogSchema, CustomerUnitSummarySchema, DocumentCollectionResponseSchema, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatusSchema, DocumentStatusUpdateRequestSchema, DocumentSummarySchema, DocumentTypeSchema, ErgoAddressSchema, ErgoBankSchema, ErgoBookRequestSchema, ErgoCommonFieldsSchema, ErgoCreatePreContractRequestSchema, ErgoPersonSchema, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequestSchema, FacilityListResponseSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, PaymentScheduleItemSchema, PaymentScheduleSchema, QuoteLineSchema, QuotePricesPayloadSchema, QuotePricesResponseSchema, QuoteSchema, QuoteServiceSchema, RawObjectResponseSchema, RawVofficeObjectSchema, RegionListResponseSchema, RoomImageSchema, SearchPropertiesResponseSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, ServiceBeonDataSchema, ServiceImageSchema, ServiceLimitSchema, ServiceListResponseSchema, SetupDataSchema, SetupResponseSchema, TileCollectionResponseSchema, TileSchema, TileTagSchema, TravelInsuranceBookingSchema, TravelInsuranceBookingStoreRequestSchema, UnitIdsResponseSchema, UnitListItemSchema, UnitListResponseSchema, UnitOfferSchema, UnitResponseSchema, UnitServicePriceSchema, UnknownAdditionalService, V0OpenApiClient, V0OpenApiClientError, V1OpenApiClient, V1OpenApiClientError, V1_BASE_URL, V1_OPERATIONS, VideoResponseSchema, addAdditionalServiceEffect, bookEffect, bookInsuranceEffect, clearAdditionalServicesEffect, createInsurancePreContractEffect, createWebsiteSDK, customDataAttribute, decodeV1OperationResponse, defineWebsiteSDKOptions as defineCMSSDKOptions, defineWebsiteSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, defineDataAttributes, defineV9PropertyHighlightSources, defineV9PropertyHighlightSourcesFromUnknown, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };