@v-office/website-sdk 2.21.0 → 2.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { Bt as defineWebsiteSDKOptions, Ht as defineV9PropertyHighlightSourcesFromUnknown, t as createWebsiteSDK } from "./client-dWCukmLr.mjs";
2
+ import { Ut as defineV9PropertyHighlightSourcesFromUnknown, Vt as defineWebsiteSDKOptions, t as createWebsiteSDK } from "./client-CGO5Pmuv.mjs";
3
3
  import { SearchSearchSortSchema, defineCustomAttributesFromUnknown } from "@v-office/sdk-core";
4
4
  import { ByteSize, 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.21.0";
19
+ var version = "2.23.0";
20
20
  //#endregion
21
21
  //#region src/cli/output.ts
22
22
  const toJson = (value) => Effect.try({
@@ -1,5 +1,5 @@
1
1
  import { a as customDataAttribute } from "./v9-data-BnYxa2Ek.mjs";
2
- import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, 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
+ import { AvailabilityService, BookingBookOutput, BookingService, ContactService, CoreSDKError, DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION, DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION, DocumentsService, EMPTY_CUSTOM_ATTRIBUTE_REGISTRY, FilterService, QuoteService, RentalService, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchService, TranslationService, addGuestQuoteAdditionalServiceSelection, asArray, asRecord, assertNoNestedCustomAttributeFilterCompositions, assertNoReservedQueryKeys, assertUniqueCustomFilterQueryKeys, assertUniqueFilterQueryKeys, clearGuestQuoteAdditionalServiceSelections, collectQueryParameters, createCoreRuntime, 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";
3
3
  import { Context, Data, DateTime, Effect, Layer, Schema, SchemaGetter } from "effect";
4
4
  import { FetchHttpClient, HttpClient, HttpClientRequest } from "effect/unstable/http";
5
5
  import { Kind, print, visit } from "graphql";
@@ -258,7 +258,8 @@ const normalizeWebsiteSDKOptions = (options = {}) => {
258
258
  rentalHighlightPrioritization: options.rentalHighlightPrioritization ?? DEFAULT_RENTAL_HIGHLIGHT_PRIORITIZATION,
259
259
  rentalPropertyHighlightPrioritization: options.rentalPropertyHighlightPrioritization ?? DEFAULT_RENTAL_PROPERTY_HIGHLIGHT_PRIORITIZATION,
260
260
  rentalScope: options.rentalScope ?? {},
261
- shouldAddProposedAdditionalServiceAmount: options.shouldAddProposedAdditionalServiceAmount ?? false
261
+ shouldAddProposedAdditionalServiceAmount: options.shouldAddProposedAdditionalServiceAmount ?? false,
262
+ searchAllRentalsAtOnce: options.searchAllRentalsAtOnce ?? false
262
263
  };
263
264
  };
264
265
  const toV9Options = (options) => {
@@ -276,7 +277,8 @@ const toV9Options = (options) => {
276
277
  rentalHighlightPrioritization: options.rentalHighlightPrioritization,
277
278
  rentalPropertyHighlightPrioritization: options.rentalPropertyHighlightPrioritization,
278
279
  rentalScope: options.rentalScope,
279
- shouldAddProposedAdditionalServiceAmount: options.shouldAddProposedAdditionalServiceAmount
280
+ shouldAddProposedAdditionalServiceAmount: options.shouldAddProposedAdditionalServiceAmount,
281
+ searchAllRentalsAtOnce: options.searchAllRentalsAtOnce
280
282
  };
281
283
  };
282
284
  const defineWebsiteSDKOptions = (options) => options;
@@ -463,6 +465,15 @@ const getBankTransferDetailsEffect = () => Effect.gen(function* () {
463
465
  const searchEffect = (input) => Effect.gen(function* () {
464
466
  return yield* (yield* SearchService).search(input);
465
467
  });
468
+ const mapSearchEffect = (input) => Effect.gen(function* () {
469
+ const service = yield* SearchService;
470
+ if (service.mapSearch === void 0) return yield* Effect.fail(new CoreSDKError({
471
+ source: "v10",
472
+ operation: "search.mapSearch",
473
+ message: "SearchService.mapSearch is not provided by the core runtime."
474
+ }));
475
+ return yield* service.mapSearch(input);
476
+ });
466
477
  const getInitialAvailabilityEffect = (input) => Effect.gen(function* () {
467
478
  return yield* (yield* AvailabilityService).getInitialAvailability(input);
468
479
  });
@@ -5671,6 +5682,15 @@ const applyV9RentalScopeToSearchQueryInput = (input, scope) => {
5671
5682
  //#region src/legacy-v9/live/search.ts
5672
5683
  const DEFAULT_SEARCH_LIMIT = 20;
5673
5684
  const V9_SEARCH_CURSOR_PREFIX = "page:";
5685
+ /**
5686
+ * The hub prices the rentals of one request one after another, but separate
5687
+ * requests in parallel: 70 rentals take ~4.8 s as one request and ~2.2 s as
5688
+ * seven parallel requests of ten.
5689
+ */
5690
+ const ALL_RENTALS_PAGE_SIZE = 10;
5691
+ const ALL_RENTALS_CONCURRENCY = 8;
5692
+ /** A map search prices nothing; the hub answers 1000 matches in one request. */
5693
+ const MAP_SEARCH_PAGE_SIZE = 1e3;
5674
5694
  const toV9SearchCursor = (page) => `${V9_SEARCH_CURSOR_PREFIX}${page}`;
5675
5695
  const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
5676
5696
  if (!cursor.startsWith(V9_SEARCH_CURSOR_PREFIX)) return yield* Effect.fail(new CoreSDKError({
@@ -5687,7 +5707,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
5687
5707
  return page;
5688
5708
  });
5689
5709
  const loadV9SearchRuntime = Effect.tryPromise({
5690
- try: () => import("./search-D9xq3Z-m.mjs"),
5710
+ try: () => import("./search-GjMxosfU.mjs"),
5691
5711
  catch: (cause) => new CoreSDKError({
5692
5712
  source: "v10",
5693
5713
  operation: "v9.search.runtime",
@@ -5695,6 +5715,25 @@ const loadV9SearchRuntime = Effect.tryPromise({
5695
5715
  cause
5696
5716
  })
5697
5717
  });
5718
+ const failSearch = ({ operation, message }) => Effect.runPromise(Effect.fail(new CoreSDKError({
5719
+ source: "v10",
5720
+ operation,
5721
+ message
5722
+ })));
5723
+ const tooManyRentals = (totalCount) => new CoreSDKError({
5724
+ source: "v10",
5725
+ operation: "search.allRentalsAtOnce",
5726
+ message: `The search matches ${totalCount} rentals; searchAllRentalsAtOnce supports at most ${SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS}. Use paged search and mapSearch instead.`
5727
+ });
5728
+ const uniqueById = (entries, toId) => {
5729
+ const seen = /* @__PURE__ */ new Set();
5730
+ return entries.filter((entry) => {
5731
+ const id = toId(entry);
5732
+ if (seen.has(id)) return false;
5733
+ seen.add(id);
5734
+ return true;
5735
+ });
5736
+ };
5698
5737
  const makeV9SearchApi = ({ config, options }) => {
5699
5738
  const graphql = makeV9GraphQLClient(config);
5700
5739
  const translations = makeV9TranslationService(options.translationOverrides);
@@ -5708,33 +5747,33 @@ const makeV9SearchApi = ({ config, options }) => {
5708
5747
  message: `v9 search rate limit queue is full (${maxQueueSize} total request(s)).`
5709
5748
  })
5710
5749
  }));
5711
- return { search: (input) => Effect.runPromise(limitSearch(Effect.gen(function* () {
5712
- const { defaultSearchDataAttributes, resolveExactMatch, searchQuery, toAlternativePeriods, toQueryInput, toSearchOutputItem } = yield* loadV9SearchRuntime;
5713
- const dataAttributes = [
5714
- ...defaultSearchDataAttributes,
5715
- ...config.rentalDataAttributes ?? [],
5716
- ...customAttributeDataAttributes
5717
- ];
5718
- const { queryInput, appliedFilters, unusedFilterKeys } = yield* toQueryInput({
5750
+ const toScopedQuery = (input) => Effect.gen(function* () {
5751
+ const runtime = yield* loadV9SearchRuntime;
5752
+ const { queryInput, appliedFilters, unusedFilterKeys } = yield* runtime.toQueryInput({
5719
5753
  locale: input.locale,
5720
5754
  translations,
5721
5755
  customAttributeFilterDefinitions: options.customAttributeFilterDefinitions,
5722
5756
  query: input.query,
5723
5757
  sort: input.sort
5724
5758
  });
5725
- const scopedQueryInput = applyV9RentalScopeToSearchQueryInput(queryInput, options.rentalScope);
5726
- if (scopedQueryInput === void 0) return {
5727
- items: [],
5759
+ return {
5760
+ runtime,
5728
5761
  appliedFilters,
5729
5762
  unusedFilterKeys,
5730
- pageInfo: { hasNextPage: false }
5763
+ scopedQueryInput: applyV9RentalScopeToSearchQueryInput(queryInput, options.rentalScope)
5731
5764
  };
5732
- const page = input.cursor === void 0 ? 1 : yield* parseV9SearchCursor(input.cursor);
5765
+ });
5766
+ const searchPage = ({ input, runtime, scopedQueryInput, page, first }) => Effect.gen(function* () {
5767
+ const { resolveExactMatch, searchQuery, toSearchDataAttributes, toSearchOutputItem } = runtime;
5733
5768
  const data = yield* graphql.execute(searchQuery, {
5734
- first: input.limit ?? DEFAULT_SEARCH_LIMIT,
5769
+ first,
5735
5770
  page,
5736
5771
  language: localeToLanguage(input.locale),
5737
- dataAttributes,
5772
+ dataAttributes: [
5773
+ ...toSearchDataAttributes(options.rentalHighlightPrioritization),
5774
+ ...config.rentalDataAttributes ?? [],
5775
+ ...customAttributeDataAttributes
5776
+ ],
5738
5777
  ...scopedQueryInput
5739
5778
  });
5740
5779
  const entries = yield* Effect.all(data.search.data.map((rental) => Effect.gen(function* () {
@@ -5748,17 +5787,26 @@ const makeV9SearchApi = ({ config, options }) => {
5748
5787
  exactMatchCalc,
5749
5788
  translations
5750
5789
  });
5751
- if (isExactMatch) return {
5752
- type: "item",
5753
- item
5754
- };
5790
+ if (isExactMatch) {
5791
+ const matchingPeriods = yield* runtime.toSearchPeriods({
5792
+ locale: input.locale,
5793
+ periods
5794
+ });
5795
+ return {
5796
+ type: "item",
5797
+ item: matchingPeriods.length > 0 ? {
5798
+ ...item,
5799
+ matchingPeriods
5800
+ } : item
5801
+ };
5802
+ }
5755
5803
  if (periods.length === 0) return {
5756
5804
  type: "item",
5757
5805
  item
5758
5806
  };
5759
- const alternativePeriods = yield* toAlternativePeriods({
5807
+ const alternativePeriods = yield* runtime.toSearchPeriods({
5760
5808
  locale: input.locale,
5761
- alternatives: periods
5809
+ periods
5762
5810
  });
5763
5811
  if (alternativePeriods.length === 0) return {
5764
5812
  type: "item",
@@ -5772,19 +5820,146 @@ const makeV9SearchApi = ({ config, options }) => {
5772
5820
  }
5773
5821
  };
5774
5822
  })));
5775
- const items = entries.flatMap((entry) => entry.type === "item" ? [entry.item] : []);
5776
- const alternatives = entries.flatMap((entry) => entry.type === "alternative" ? [entry.alternative] : []);
5823
+ return {
5824
+ items: entries.flatMap((entry) => entry.type === "item" ? [entry.item] : []),
5825
+ alternatives: entries.flatMap((entry) => entry.type === "alternative" ? [entry.alternative] : []),
5826
+ paginatorInfo: data.search.paginatorInfo
5827
+ };
5828
+ });
5829
+ const searchOnePage = (input) => Effect.runPromise(limitSearch(Effect.gen(function* () {
5830
+ const { runtime, appliedFilters, unusedFilterKeys, scopedQueryInput } = yield* toScopedQuery(input);
5831
+ if (scopedQueryInput === void 0) return {
5832
+ items: [],
5833
+ appliedFilters,
5834
+ unusedFilterKeys,
5835
+ pageInfo: {
5836
+ hasNextPage: false,
5837
+ totalCount: 0
5838
+ }
5839
+ };
5840
+ const page = input.cursor === void 0 ? 1 : yield* parseV9SearchCursor(input.cursor);
5841
+ const { items, alternatives, paginatorInfo } = yield* searchPage({
5842
+ input,
5843
+ runtime,
5844
+ scopedQueryInput,
5845
+ page,
5846
+ first: input.limit ?? DEFAULT_SEARCH_LIMIT
5847
+ });
5777
5848
  return {
5778
5849
  items,
5779
5850
  ...alternatives.length > 0 ? { alternatives } : {},
5780
5851
  appliedFilters,
5781
5852
  unusedFilterKeys,
5782
5853
  pageInfo: {
5783
- hasNextPage: data.search.paginatorInfo.hasMorePages,
5784
- ...data.search.paginatorInfo.hasMorePages ? { nextCursor: toV9SearchCursor(data.search.paginatorInfo.currentPage + 1) } : {}
5854
+ hasNextPage: paginatorInfo.hasMorePages,
5855
+ ...paginatorInfo.hasMorePages ? { nextCursor: toV9SearchCursor(paginatorInfo.currentPage + 1) } : {},
5856
+ totalCount: paginatorInfo.total
5785
5857
  }
5786
5858
  };
5787
- }))) };
5859
+ })));
5860
+ const searchAllRentals = (input) => input.cursor !== void 0 || input.limit !== void 0 ? failSearch({
5861
+ operation: "search.allRentalsAtOnce",
5862
+ message: "searchAllRentalsAtOnce returns every result in one call; cursor and limit are not accepted."
5863
+ }) : Effect.runPromise(limitSearch(Effect.gen(function* () {
5864
+ const { runtime, appliedFilters, unusedFilterKeys, scopedQueryInput } = yield* toScopedQuery(input);
5865
+ if (scopedQueryInput === void 0) return {
5866
+ items: [],
5867
+ appliedFilters,
5868
+ unusedFilterKeys,
5869
+ pageInfo: {
5870
+ hasNextPage: false,
5871
+ totalCount: 0
5872
+ }
5873
+ };
5874
+ const totalCount = (yield* graphql.execute(runtime.mapSearchQuery, {
5875
+ first: 1,
5876
+ page: 1,
5877
+ language: localeToLanguage(input.locale),
5878
+ ...scopedQueryInput
5879
+ })).search.paginatorInfo.total;
5880
+ if (totalCount > SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS) return yield* Effect.fail(tooManyRentals(totalCount));
5881
+ const pages = yield* Effect.all(Array.from({ length: Math.ceil(totalCount / ALL_RENTALS_PAGE_SIZE) }, (_, index) => searchPage({
5882
+ input,
5883
+ runtime,
5884
+ scopedQueryInput,
5885
+ page: index + 1,
5886
+ first: ALL_RENTALS_PAGE_SIZE
5887
+ })), { concurrency: ALL_RENTALS_CONCURRENCY });
5888
+ const items = uniqueById(pages.flatMap((page) => page.items), (item) => item.id);
5889
+ const itemIds = new Set(items.map((item) => item.id));
5890
+ const alternatives = uniqueById(pages.flatMap((page) => page.alternatives), (alternative) => alternative.item.id).filter((alternative) => !itemIds.has(alternative.item.id));
5891
+ const toOutput = (result) => ({
5892
+ items: result.items,
5893
+ ...result.alternatives.length > 0 ? { alternatives: result.alternatives } : {},
5894
+ appliedFilters,
5895
+ unusedFilterKeys,
5896
+ pageInfo: {
5897
+ hasNextPage: false,
5898
+ totalCount: result.totalCount
5899
+ }
5900
+ });
5901
+ if (pages.every((page) => page.paginatorInfo.total === totalCount) && items.length + alternatives.length === totalCount) return toOutput({
5902
+ items,
5903
+ alternatives,
5904
+ totalCount
5905
+ });
5906
+ const snapshot = yield* searchPage({
5907
+ input,
5908
+ runtime,
5909
+ scopedQueryInput,
5910
+ page: 1,
5911
+ first: SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS
5912
+ });
5913
+ if (snapshot.paginatorInfo.total > SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS) return yield* Effect.fail(tooManyRentals(snapshot.paginatorInfo.total));
5914
+ return toOutput({
5915
+ items: snapshot.items,
5916
+ alternatives: snapshot.alternatives,
5917
+ totalCount: snapshot.paginatorInfo.total
5918
+ });
5919
+ })));
5920
+ const mapSearch = (input) => options.searchAllRentalsAtOnce ? failSearch({
5921
+ operation: "search.mapSearch",
5922
+ message: "mapSearch is not available with searchAllRentalsAtOnce; search already returns every result."
5923
+ }) : Effect.runPromise(limitSearch(Effect.gen(function* () {
5924
+ const { runtime, appliedFilters, unusedFilterKeys, scopedQueryInput } = yield* toScopedQuery(input);
5925
+ if (scopedQueryInput === void 0) return {
5926
+ items: [],
5927
+ totalCount: 0,
5928
+ appliedFilters,
5929
+ unusedFilterKeys
5930
+ };
5931
+ const rentals = [];
5932
+ let totalCount = 0;
5933
+ for (let page = 1;; page++) {
5934
+ const data = yield* graphql.execute(runtime.mapSearchQuery, {
5935
+ first: MAP_SEARCH_PAGE_SIZE,
5936
+ page,
5937
+ language: localeToLanguage(input.locale),
5938
+ dataAttributes: [...runtime.mapSearchDataAttributes],
5939
+ ...scopedQueryInput
5940
+ });
5941
+ rentals.push(...data.search.data);
5942
+ totalCount = data.search.paginatorInfo.total;
5943
+ if (!data.search.paginatorInfo.hasMorePages) break;
5944
+ }
5945
+ return {
5946
+ items: rentals.map((rental) => {
5947
+ const location = runtime.toLocation(runtime.parseVofficeUnitData(rental.data).known.loc);
5948
+ const id = rental.voffice_id.toString();
5949
+ return location === void 0 ? { id } : {
5950
+ id,
5951
+ location
5952
+ };
5953
+ }),
5954
+ totalCount,
5955
+ appliedFilters,
5956
+ unusedFilterKeys
5957
+ };
5958
+ })));
5959
+ return {
5960
+ search: (input) => options.searchAllRentalsAtOnce ? searchAllRentals(input) : searchOnePage(input),
5961
+ mapSearch
5962
+ };
5788
5963
  };
5789
5964
  //#endregion
5790
5965
  //#region src/legacy-v9/parser/filter/to-options.ts
@@ -6085,7 +6260,7 @@ const orderRentalsById = ({ rentalIds, rentals }) => {
6085
6260
  });
6086
6261
  };
6087
6262
  const loadV9RentalsRuntime = Effect.tryPromise({
6088
- try: () => import("./rentals-CIhOx3dS.mjs"),
6263
+ try: () => import("./rentals-C1W7EvIC.mjs"),
6089
6264
  catch: (cause) => new CoreSDKError({
6090
6265
  source: "v10",
6091
6266
  operation: "v9.rentals.runtime",
@@ -6230,7 +6405,10 @@ function createWebsiteSDK({ config, options }) {
6230
6405
  },
6231
6406
  live: {
6232
6407
  contact: { submit: contact.submit },
6233
- search: { search: search.search },
6408
+ search: {
6409
+ search: search.search,
6410
+ mapSearch: search.mapSearch
6411
+ },
6234
6412
  availability: {
6235
6413
  getInitialAvailability: availability.getInitialAvailability,
6236
6414
  getStartDateSelectedAvailability: availability.getStartDateSelectedAvailability
@@ -6268,7 +6446,10 @@ function createWebsiteSDK({ config, options }) {
6268
6446
  },
6269
6447
  live: {
6270
6448
  contact: { submit: (input) => runtime.runPromise(submitContactEffect(input)) },
6271
- search: { search: (input) => runtime.runPromise(searchEffect(input)) },
6449
+ search: {
6450
+ search: (input) => runtime.runPromise(searchEffect(input)),
6451
+ mapSearch: (input) => runtime.runPromise(mapSearchEffect(input))
6452
+ },
6272
6453
  availability: {
6273
6454
  getInitialAvailability: (input) => runtime.runPromise(getInitialAvailabilityEffect(input)),
6274
6455
  getStartDateSelectedAvailability: (input) => runtime.runPromise(getStartDateSelectedAvailabilityEffect(input))
@@ -6293,4 +6474,4 @@ function createWebsiteSDK({ config, options }) {
6293
6474
  };
6294
6475
  }
6295
6476
  //#endregion
6296
- export { ServiceBeonDataSchema as $, ErgoBookRequestSchema as A, getTermsAndPrivacyPolicyEffect as At, OnOfficeUnitSchema as B, defineWebsiteSDKOptions as Bt, DocumentResourceSchema as C, clearAdditionalServicesEffect as Ct, DocumentTypeSchema as D, getInitialAvailabilityEffect as Dt, DocumentSummarySchema as E, getFiltersEffect as Et, ErgoPolicyNumberRequestSchema as F, selectInsuranceEffect as Ft, QuotePricesResponseSchema$1 as G, PaymentScheduleSchema$1 as H, defineV9PropertyHighlightSourcesFromUnknown as Ht, ErgoReadPreContractRequestSchema as I, selectInsurancePaymentEffect as It, RawObjectResponseSchema as J, QuoteSchema as K, ErgoTripAndCustomerRequestSchema as L, submitContactEffect as Lt, ErgoCreatePreContractRequestSchema as M, removeAdditionalServiceEffect as Mt, ErgoPersonSchema as N, searchEffect as Nt, ErgoAddressSchema as O, getRentalsEffect as Ot, ErgoPlanSearchRequestSchema as P, selectCancellationPolicyEffect as Pt, SearchPropertiesResponseSchema as Q, FacilityListResponseSchema as R, submitPaymentOption as Rt, DocumentResourceResponseSchema as S, bookInsuranceEffect as St, DocumentStatusUpdateRequestSchema as T, getBankTransferDetailsEffect as Tt, QuoteLineSchema$1 as U, V9_FACILITY_ATTRIBUTE_KEYS as Ut, PaymentScheduleItemSchema as V, defineV9PropertyHighlightSources 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, quoteEffect as jt, ErgoBankSchema as k, getStartDateSelectedAvailabilityEffect 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, submitPaymentOptionEffect as zt };
6477
+ export { ServiceBeonDataSchema as $, ErgoBookRequestSchema as A, getTermsAndPrivacyPolicyEffect as At, OnOfficeUnitSchema as B, submitPaymentOptionEffect as Bt, DocumentResourceSchema as C, clearAdditionalServicesEffect as Ct, DocumentTypeSchema as D, getInitialAvailabilityEffect as Dt, DocumentSummarySchema as E, getFiltersEffect as Et, ErgoPolicyNumberRequestSchema as F, selectCancellationPolicyEffect as Ft, QuotePricesResponseSchema$1 as G, PaymentScheduleSchema$1 as H, defineV9PropertyHighlightSources as Ht, ErgoReadPreContractRequestSchema as I, selectInsuranceEffect as It, RawObjectResponseSchema as J, QuoteSchema as K, ErgoTripAndCustomerRequestSchema as L, selectInsurancePaymentEffect as Lt, ErgoCreatePreContractRequestSchema as M, quoteEffect as Mt, ErgoPersonSchema as N, removeAdditionalServiceEffect as Nt, ErgoAddressSchema as O, getRentalsEffect as Ot, ErgoPlanSearchRequestSchema as P, searchEffect as Pt, SearchPropertiesResponseSchema as Q, FacilityListResponseSchema as R, submitContactEffect as Rt, DocumentResourceResponseSchema as S, bookInsuranceEffect as St, DocumentStatusUpdateRequestSchema as T, getBankTransferDetailsEffect as Tt, QuoteLineSchema$1 as U, defineV9PropertyHighlightSourcesFromUnknown as Ut, PaymentScheduleItemSchema as V, defineWebsiteSDKOptions as Vt, QuotePricesPayloadSchema as W, V9_FACILITY_ATTRIBUTE_KEYS as Wt, 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, mapSearchEffect as jt, ErgoBankSchema as k, getStartDateSelectedAvailabilityEffect 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, submitPaymentOption as zt };
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
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, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, 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";
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, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, 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, 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, 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
4
  //#region src/legacy-v9/property-highlight-sources.d.ts
@@ -66,6 +66,12 @@ type WebsiteSDKOptions = {
66
66
  readonly rentalPropertyHighlightPrioritization?: readonly RentalPropertyHighlightPrioritizationKey$1[];
67
67
  readonly rentalScope?: RentalScope;
68
68
  readonly shouldAddProposedAdditionalServiceAmount?: boolean;
69
+ /**
70
+ * For portfolios of up to `SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS` rentals:
71
+ * `live.search.search` returns every result with its price in one call and takes
72
+ * no `cursor` or `limit`. `live.search.mapSearch` is not available. Default `false`.
73
+ */
74
+ readonly searchAllRentalsAtOnce?: boolean;
69
75
  };
70
76
  export declare const defineWebsiteSDKOptions: <Options extends WebsiteSDKOptions>(options: Options) => Options;
71
77
  //#endregion
@@ -76,6 +82,19 @@ type V9SearchSearchInput = Omit<SearchSearchInput$1, "rentalIdsIn" | "voucher" |
76
82
  readonly voucher?: never;
77
83
  readonly sort?: V9SearchSearchSort;
78
84
  };
85
+ /** `search` input with `searchAllRentalsAtOnce: true`: one call returns every result, so there are no pages. */
86
+ type V9SearchAllRentalsAtOnceInput = Omit<V9SearchSearchInput, "cursor" | "limit"> & {
87
+ readonly cursor?: never;
88
+ readonly limit?: never;
89
+ };
90
+ //#endregion
91
+ //#region src/legacy-v9/search-output.d.ts
92
+ type V9SearchSearchOutputItem = SearchSearchOutputItem & {
93
+ readonly matchingPeriods?: SearchSearchAlternative["alternativePeriods"];
94
+ };
95
+ type V9SearchSearchOutput = Omit<SearchSearchOutput$1, "items"> & {
96
+ readonly items: readonly V9SearchSearchOutputItem[];
97
+ };
79
98
  //#endregion
80
99
  //#region src/client.d.ts
81
100
  type WebsiteSDKSharedStatic = {
@@ -106,6 +125,12 @@ type WebsiteSDKSharedLive = {
106
125
  };
107
126
  readonly search: {
108
127
  readonly search: (input: SearchSearchInput$1) => Promise<SearchSearchOutput$1>;
128
+ /**
129
+ * Every rental the search matches, with its location and without prices, so it
130
+ * stays fast for any number of matches. Rejects when the SDK was created with
131
+ * `searchAllRentalsAtOnce: true`.
132
+ */
133
+ readonly mapSearch: (input: SearchMapSearchInput$1) => Promise<SearchMapSearchOutput$1>;
109
134
  };
110
135
  readonly availability: {
111
136
  readonly getInitialAvailability: (input: AvailabilityGetInitialAvailabilityInput$1) => Promise<AvailabilityGetInitialAvailabilityOutput$1>;
@@ -128,9 +153,24 @@ type WebsiteSDKSharedLive = {
128
153
  };
129
154
  };
130
155
  type WebsiteSDKV10Live = WebsiteSDKSharedLive;
156
+ /** `live` of a v10 SDK created with `searchAllRentalsAtOnce: true`. */
157
+ type WebsiteSDKV10AllRentalsAtOnceLive = Omit<WebsiteSDKSharedLive, "search"> & {
158
+ readonly search: {
159
+ /** Every result with its price in one call; at most `SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS`. */
160
+ readonly search: (input: SearchAllRentalsAtOnceInput$1) => Promise<SearchSearchOutput$1>;
161
+ };
162
+ };
131
163
  type WebsiteSDKV9Live = Omit<WebsiteSDKSharedLive, "search"> & {
132
164
  readonly search: {
133
- readonly search: (input: V9SearchSearchInput) => Promise<SearchSearchOutput$1>;
165
+ readonly search: (input: V9SearchSearchInput) => Promise<V9SearchSearchOutput>;
166
+ readonly mapSearch: WebsiteSDKSharedLive["search"]["mapSearch"];
167
+ };
168
+ };
169
+ /** `live` of a v9 SDK created with `searchAllRentalsAtOnce: true`. */
170
+ type WebsiteSDKV9AllRentalsAtOnceLive = Omit<WebsiteSDKSharedLive, "search"> & {
171
+ readonly search: {
172
+ /** Every result with its price in one call; at most `SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS`. */
173
+ readonly search: (input: V9SearchAllRentalsAtOnceInput) => Promise<V9SearchSearchOutput>;
134
174
  };
135
175
  };
136
176
  type WebsiteSDKBase<Static extends WebsiteSDKSharedStatic, Live> = {
@@ -141,18 +181,43 @@ type WebsiteSDKBase<Static extends WebsiteSDKSharedStatic, Live> = {
141
181
  type WebsiteSDKV9 = WebsiteSDKBase<WebsiteSDKSharedStatic, WebsiteSDKV9Live> & {
142
182
  readonly backend: "v9";
143
183
  };
184
+ type WebsiteSDKV9AllRentalsAtOnce = WebsiteSDKBase<WebsiteSDKSharedStatic, WebsiteSDKV9AllRentalsAtOnceLive> & {
185
+ readonly backend: "v9";
186
+ };
144
187
  type WebsiteSDKV10 = WebsiteSDKBase<WebsiteSDKV10Static, WebsiteSDKV10Live> & {
145
188
  readonly backend: "v10";
146
189
  };
190
+ type WebsiteSDKV10AllRentalsAtOnce = WebsiteSDKBase<WebsiteSDKV10Static, WebsiteSDKV10AllRentalsAtOnceLive> & {
191
+ readonly backend: "v10";
192
+ };
147
193
  type WebsiteSDK = WebsiteSDKV9 | WebsiteSDKV10;
194
+ type WebsiteSDKAllRentalsAtOnce = WebsiteSDKV9AllRentalsAtOnce | WebsiteSDKV10AllRentalsAtOnce;
195
+ export declare function createWebsiteSDK({ config, options }: {
196
+ readonly config: WebsiteV9Config;
197
+ readonly options: WebsiteSDKOptions & {
198
+ readonly searchAllRentalsAtOnce: true;
199
+ };
200
+ }): WebsiteSDKV9AllRentalsAtOnce;
148
201
  export declare function createWebsiteSDK({ config, options }: {
149
202
  readonly config: WebsiteV9Config;
150
203
  readonly options?: WebsiteSDKOptions;
151
204
  }): WebsiteSDKV9;
205
+ export declare function createWebsiteSDK({ config, options }: {
206
+ readonly config: WebsiteV10Config;
207
+ readonly options: WebsiteSDKOptions & {
208
+ readonly searchAllRentalsAtOnce: true;
209
+ };
210
+ }): WebsiteSDKV10AllRentalsAtOnce;
152
211
  export declare function createWebsiteSDK({ config, options }: {
153
212
  readonly config: WebsiteV10Config;
154
213
  readonly options?: WebsiteSDKOptions;
155
214
  }): WebsiteSDKV10;
215
+ export declare function createWebsiteSDK({ config, options }: {
216
+ readonly config: WebsiteSDKConfig;
217
+ readonly options: WebsiteSDKOptions & {
218
+ readonly searchAllRentalsAtOnce: true;
219
+ };
220
+ }): WebsiteSDKAllRentalsAtOnce;
156
221
  export declare function createWebsiteSDK({ config, options }: {
157
222
  readonly config: WebsiteSDKConfig;
158
223
  readonly options?: WebsiteSDKOptions;
@@ -505,8 +570,25 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
505
570
  readonly pageInfo: {
506
571
  readonly hasNextPage: boolean;
507
572
  readonly nextCursor?: string;
573
+ readonly totalCount: number;
508
574
  };
509
575
  }, CoreSDKError$1, SearchService>;
576
+ export declare const mapSearchEffect: (input: SearchMapSearchInput$1) => Effect.Effect<{
577
+ readonly items: readonly {
578
+ readonly id: string;
579
+ readonly location?: {
580
+ readonly latitude: number;
581
+ readonly longitude: number;
582
+ };
583
+ }[];
584
+ readonly totalCount: number;
585
+ readonly appliedFilters: readonly {
586
+ readonly key: string;
587
+ readonly label: string;
588
+ readonly value?: string;
589
+ }[];
590
+ readonly unusedFilterKeys: readonly string[];
591
+ }, CoreSDKError$1, SearchService>;
510
592
  export declare const getInitialAvailabilityEffect: (input: AvailabilityGetInitialAvailabilityInput$1) => Effect.Effect<{
511
593
  readonly calendarDays: {
512
594
  readonly [x: string]: {
@@ -3207,10 +3289,10 @@ interface components {
3207
3289
  onsiteOptional?: components["schemas"]["QuoteLine"][];
3208
3290
  usage?: components["schemas"]["QuoteLine"][];
3209
3291
  errors?: {
3210
- [key: string]: string;
3211
- } | {
3212
3292
  [key: string]: unknown;
3213
- }[];
3293
+ }[] | {
3294
+ [key: string]: string;
3295
+ };
3214
3296
  warnings?: {
3215
3297
  [key: string]: unknown;
3216
3298
  }[];
@@ -7518,4 +7600,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
7518
7600
  export type RentalSearchInput = SearchSearchInput$1;
7519
7601
  export type RentalSearchOutput = SearchSearchOutput$1;
7520
7602
  //#endregion
7521
- export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, 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 V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9SearchSearchInput, type V9SearchSearchSort, 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, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
7603
+ export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, type SearchAllRentalsAtOnceInput, type SearchMapSearchInput, SearchMapSearchInputSchema, type SearchMapSearchOutput, type SearchMapSearchOutputItem, SearchMapSearchOutputSchema, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9SearchAllRentalsAtOnceInput, type V9SearchSearchInput, type V9SearchSearchOutput, type V9SearchSearchOutputItem, type V9SearchSearchSort, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteSDK, type WebsiteSDKAllRentalsAtOnce, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10AllRentalsAtOnce, type WebsiteSDKV10AllRentalsAtOnceLive, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9AllRentalsAtOnce, type WebsiteSDKV9AllRentalsAtOnceLive, type WebsiteSDKV9Live, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as getTermsAndPrivacyPolicyEffect, B as OnOfficeUnitSchema, Bt as defineWebsiteSDKOptions, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getInitialAvailabilityEffect, E as DocumentSummarySchema, Et as getFiltersEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectInsuranceEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, Ht as defineV9PropertyHighlightSourcesFromUnknown, I as ErgoReadPreContractRequestSchema, It as selectInsurancePaymentEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as submitContactEffect, M as ErgoCreatePreContractRequestSchema, Mt as removeAdditionalServiceEffect, N as ErgoPersonSchema, Nt as searchEffect, O as ErgoAddressSchema, Ot as getRentalsEffect, P as ErgoPlanSearchRequestSchema, Pt as selectCancellationPolicyEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitPaymentOption, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getBankTransferDetailsEffect, U as QuoteLineSchema, V as PaymentScheduleItemSchema, Vt as defineV9PropertyHighlightSources, 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 quoteEffect, k as ErgoBankSchema, kt as getStartDateSelectedAvailabilityEffect, 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 submitPaymentOptionEffect } from "./client-dWCukmLr.mjs";
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";
1
+ import { $ as ServiceBeonDataSchema, A as ErgoBookRequestSchema, At as getTermsAndPrivacyPolicyEffect, B as OnOfficeUnitSchema, Bt as submitPaymentOptionEffect, C as DocumentResourceSchema, Ct as clearAdditionalServicesEffect, D as DocumentTypeSchema, Dt as getInitialAvailabilityEffect, E as DocumentSummarySchema, Et as getFiltersEffect, F as ErgoPolicyNumberRequestSchema, Ft as selectCancellationPolicyEffect, G as QuotePricesResponseSchema, H as PaymentScheduleSchema, Ht as defineV9PropertyHighlightSources, I as ErgoReadPreContractRequestSchema, It as selectInsuranceEffect, J as RawObjectResponseSchema, K as QuoteSchema, L as ErgoTripAndCustomerRequestSchema, Lt as selectInsurancePaymentEffect, M as ErgoCreatePreContractRequestSchema, Mt as quoteEffect, N as ErgoPersonSchema, Nt as removeAdditionalServiceEffect, O as ErgoAddressSchema, Ot as getRentalsEffect, P as ErgoPlanSearchRequestSchema, Pt as searchEffect, Q as SearchPropertiesResponseSchema, R as FacilityListResponseSchema, Rt as submitContactEffect, S as DocumentResourceResponseSchema, St as bookInsuranceEffect, T as DocumentStatusUpdateRequestSchema, Tt as getBankTransferDetailsEffect, U as QuoteLineSchema, Ut as defineV9PropertyHighlightSourcesFromUnknown, V as PaymentScheduleItemSchema, Vt as defineWebsiteSDKOptions, 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 mapSearchEffect, k as ErgoBankSchema, kt as getStartDateSelectedAvailabilityEffect, 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 submitPaymentOption } from "./client-CGO5Pmuv.mjs";
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;
5
5
  const defineDataAttributes = () => (attributes) => attributes;
@@ -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, defineV9PropertyHighlightSources, defineV9PropertyHighlightSourcesFromUnknown, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, fetchCustomAttributeCatalog, getBankTransferDetailsEffect, 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, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchMapSearchInputSchema, SearchMapSearchOutputSchema, 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, getBankTransferDetailsEffect, getFiltersEffect, getInitialAvailabilityEffect, getRentalsEffect, getStartDateSelectedAvailabilityEffect, getTermsAndPrivacyPolicyEffect, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, mapSearchEffect, parseCustomAttributeCatalog, quoteEffect, removeAdditionalServiceEffect, searchEffect, selectCancellationPolicyEffect, selectInsuranceEffect, selectInsurancePaymentEffect, submitContactEffect, submitPaymentOption, submitPaymentOptionEffect, validateContactSubmitInput };
@@ -4,6 +4,8 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/2.23.0/CHANGELOG.md`: release notes for 2.23.0
8
+ - `versions/2.22.0/CHANGELOG.md`: release notes for 2.22.0
7
9
  - `versions/2.21.0/CHANGELOG.md`: release notes for 2.21.0
8
10
  - `versions/2.20.4/CHANGELOG.md`: release notes for 2.20.4
9
11
  - `versions/2.20.3/CHANGELOG.md`: release notes for 2.20.3