@v-office/website-sdk 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as defineCMSSDKOptions, t as createCMSSDKFromParsedConfig } from "./client-BbAfk-qa.mjs";
2
+ import { n as defineCMSSDKOptions, t as createCMSSDKFromParsedConfig } from "./client-BFtPZZZh.mjs";
3
3
  import { Console, Effect, FileSystem, Layer, Option, Path, Stdio, Terminal } from "effect";
4
4
  import { Command, Flag } from "effect/unstable/cli";
5
5
  import { inspect } from "node:util";
@@ -19914,7 +19914,7 @@ const bookV9Insurance = ({ quote, bookingNumber, guestToken, v1Client }) => Effe
19914
19914
  //#region src/adapters/v9/live/quote.ts
19915
19915
  const loadQuoteRuntime$1 = Effect.tryPromise({
19916
19916
  try: async () => {
19917
- return { toGuestQuote: (await import("./quote-C3HZsFua.mjs")).toGuestQuote };
19917
+ return { toGuestQuote: (await import("./quote-BHAU7meW.mjs")).toGuestQuote };
19918
19918
  },
19919
19919
  catch: (cause) => new CMSError({
19920
19920
  backend: "v9",
@@ -23633,7 +23633,7 @@ const parseV9SearchCursor = (cursor) => Effect.gen(function* () {
23633
23633
  });
23634
23634
  const loadLiveSearchRuntime$1 = Effect.tryPromise({
23635
23635
  try: async () => {
23636
- const [operations, parser] = await Promise.all([import("./operations-CHxEQ3jG.mjs"), import("./search-JqA3v_Fx.mjs")]);
23636
+ const [operations, parser] = await Promise.all([import("./operations-CHxEQ3jG.mjs"), import("./search-CWlFDque.mjs")]);
23637
23637
  return {
23638
23638
  searchQuery: operations.searchQuery,
23639
23639
  toQueryInput: parser.toQueryInput,
@@ -24000,7 +24000,7 @@ const DEFAULT_RENTAL_FEEDBACK_DATA_ATTRIBUTES = [
24000
24000
  ];
24001
24001
  const loadStaticRentalsRuntime$1 = Effect.tryPromise({
24002
24002
  try: async () => {
24003
- const [operations, parser] = await Promise.all([import("./operations-CHxEQ3jG.mjs"), import("./rentals-cQAg5TTW.mjs")]);
24003
+ const [operations, parser] = await Promise.all([import("./operations-CHxEQ3jG.mjs"), import("./rentals-BoPt4aXU.mjs")]);
24004
24004
  return {
24005
24005
  rentalsAllQuery: operations.rentalsAllQuery,
24006
24006
  toRentalRentalsOutput: parser.toRentalRentalsOutput
@@ -24522,7 +24522,7 @@ const V10LiveContactLive = Layer.effect(LiveContactService, Effect.gen(function*
24522
24522
  //#region src/adapters/v10/live/quote.ts
24523
24523
  const loadQuoteRuntime = Effect.tryPromise({
24524
24524
  try: async () => {
24525
- const [operations, parser] = await Promise.all([import("./operations-BanW36PK.mjs"), import("./quote-Vl6Nutaa.mjs")]);
24525
+ const [operations, parser] = await Promise.all([import("./operations-BanW36PK.mjs"), import("./quote-jlnlQBDS.mjs")]);
24526
24526
  return {
24527
24527
  bookingsGuestQuoteQuery: operations.bookingsGuestQuoteQuery,
24528
24528
  bookingsMultiRateContextQuery: operations.bookingsMultiRateContextQuery,
@@ -33207,12 +33207,8 @@ const toAlternativePeriods = ({ locale, queryInput, alternatives }) => {
33207
33207
  //#endregion
33208
33208
  //#region src/adapters/v10/parser/search/output/to-formatted-price.ts
33209
33209
  const toFormattedPrice = ({ locale, queryInput, alternatives }) => {
33210
- const period = queryInput.periodQuery?.period;
33211
33210
  const alternative = alternatives.at(0);
33212
- if (period === void 0 || alternative?.total == null) return Effect.succeed(null);
33213
- const [requestedStart, requestedEnd] = period;
33214
- const [alternativeStart, alternativeEnd] = alternative.period;
33215
- if (requestedStart !== alternativeStart || requestedEnd !== alternativeEnd) return Effect.succeed(null);
33211
+ if (alternative?.total == null) return Effect.succeed(null);
33216
33212
  return Effect.succeed(formatCurrency(alternative.total, locale, queryInput.currency ?? "EUR"));
33217
33213
  };
33218
33214
  //#endregion
@@ -33486,7 +33482,7 @@ const makeV10StaticFilterLive = ({ options }) => Layer.effect(StaticFilterServic
33486
33482
  //#region src/adapters/v10/static/rentals.ts
33487
33483
  const loadStaticRentalsRuntime = Effect.tryPromise({
33488
33484
  try: async () => {
33489
- const [operations, parser] = await Promise.all([import("./operations-BanW36PK.mjs"), import("./rentals-BFmmp26v.mjs")]);
33485
+ const [operations, parser] = await Promise.all([import("./operations-BanW36PK.mjs"), import("./rentals-BWs_fBtf.mjs")]);
33490
33486
  return {
33491
33487
  customAttributesListCustomAttributesQuery: operations.customAttributesListCustomAttributesQuery,
33492
33488
  rentalsListRentalSummaryQuery: operations.rentalsListRentalSummaryQuery,
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as DocumentResourceSchema, $t as AdditionalServiceLimitExceeded, At as ServiceImageSchema, B as makeV0OpenApiClientFetchLive, Bt as UnitIdsResponseSchema, Ct as QuoteServiceSchema, Dt as RoomImageSchema, Et as RegionListResponseSchema, Ft as TileCollectionResponseSchema, G as makeV1OpenApiClientLive, Gt as UnitServicePriceSchema, H as V1OpenApiClient, Ht as UnitListResponseSchema, It as TileSchema, J as CalendarResponseSchema, Jt as VideoResponseSchema, K as ApiEnvelopeBaseSchema, Kt as V1_BASE_URL, Lt as TileTagSchema, Mt as ServiceListResponseSchema, Nt as SetupDataSchema, Ot as SearchPropertiesResponseSchema, Pt as SetupResponseSchema, Q as DocumentResourceResponseSchema, R as V0OpenApiClient, Rt as TravelInsuranceBookingSchema, St as QuoteSchema, Tt as RawVofficeObjectSchema, U as V1OpenApiClientError, Ut as UnitOfferSchema, V as makeV0OpenApiClientLive, Vt as UnitListItemSchema, W as makeV1OpenApiClientFetchLive, Wt as UnitResponseSchema, X as CustomerUnitSummarySchema, Y as CurrentMemberResponseSchema, Yt as decodeV1OperationResponse, Z as DocumentCollectionResponseSchema, _t as PaymentScheduleItemSchema, a as defineVofficeFacilityDataAttributes, an as toStableSearchInputParameterValues, at as ErgoBankSchema, bt as QuotePricesPayloadSchema, c as defineVofficeOfferDataAttributes, ct as ErgoCreatePreContractRequestSchema, d as defineVofficeServiceDataAttributes, dt as ErgoPolicyNumberRequestSchema, en as InvalidAdditionalServiceQuantity, et as DocumentStatusSchema, f as defineVofficeTotalRatingDataAttributes, ft as ErgoReadPreContractRequestSchema, gt as OnOfficeUnitSchema, ht as OnOfficeUnitCollectionResponseSchema, i as defineDataAttributes, it as ErgoAddressSchema, jt as ServiceLimitSchema, kt as ServiceBeonDataSchema, l as defineVofficePriceDataAttributes, lt as ErgoPersonSchema, mt as FacilityListResponseSchema, n as defineCMSSDKOptions, nt as DocumentSummarySchema, o as defineVofficeFeedbackDataAttributes, on as toStableSearchInputQueryKeys, ot as ErgoBookRequestSchema, p as defineVofficeUnitDataAttributes, pt as ErgoTripAndCustomerRequestSchema, q as CalendarDaySchema, qt as V1_OPERATIONS, r as customDataAttribute, rn as defineStableSearchInputGroup, rt as DocumentTypeSchema, s as defineVofficeImageDataAttributes, st as ErgoCommonFieldsSchema, t as createCMSSDKFromParsedConfig, tn as UnknownAdditionalService, tt as DocumentStatusUpdateRequestSchema, u as defineVofficeRatingDataAttributes, ut as ErgoPlanSearchRequestSchema, vt as PaymentScheduleSchema, wt as RawObjectResponseSchema, xt as QuotePricesResponseSchema, yt as QuoteLineSchema, z as V0OpenApiClientError, zt as TravelInsuranceBookingStoreRequestSchema } from "./client-BbAfk-qa.mjs";
1
+ import { $ as DocumentResourceSchema, $t as AdditionalServiceLimitExceeded, At as ServiceImageSchema, B as makeV0OpenApiClientFetchLive, Bt as UnitIdsResponseSchema, Ct as QuoteServiceSchema, Dt as RoomImageSchema, Et as RegionListResponseSchema, Ft as TileCollectionResponseSchema, G as makeV1OpenApiClientLive, Gt as UnitServicePriceSchema, H as V1OpenApiClient, Ht as UnitListResponseSchema, It as TileSchema, J as CalendarResponseSchema, Jt as VideoResponseSchema, K as ApiEnvelopeBaseSchema, Kt as V1_BASE_URL, Lt as TileTagSchema, Mt as ServiceListResponseSchema, Nt as SetupDataSchema, Ot as SearchPropertiesResponseSchema, Pt as SetupResponseSchema, Q as DocumentResourceResponseSchema, R as V0OpenApiClient, Rt as TravelInsuranceBookingSchema, St as QuoteSchema, Tt as RawVofficeObjectSchema, U as V1OpenApiClientError, Ut as UnitOfferSchema, V as makeV0OpenApiClientLive, Vt as UnitListItemSchema, W as makeV1OpenApiClientFetchLive, Wt as UnitResponseSchema, X as CustomerUnitSummarySchema, Y as CurrentMemberResponseSchema, Yt as decodeV1OperationResponse, Z as DocumentCollectionResponseSchema, _t as PaymentScheduleItemSchema, a as defineVofficeFacilityDataAttributes, an as toStableSearchInputParameterValues, at as ErgoBankSchema, bt as QuotePricesPayloadSchema, c as defineVofficeOfferDataAttributes, ct as ErgoCreatePreContractRequestSchema, d as defineVofficeServiceDataAttributes, dt as ErgoPolicyNumberRequestSchema, en as InvalidAdditionalServiceQuantity, et as DocumentStatusSchema, f as defineVofficeTotalRatingDataAttributes, ft as ErgoReadPreContractRequestSchema, gt as OnOfficeUnitSchema, ht as OnOfficeUnitCollectionResponseSchema, i as defineDataAttributes, it as ErgoAddressSchema, jt as ServiceLimitSchema, kt as ServiceBeonDataSchema, l as defineVofficePriceDataAttributes, lt as ErgoPersonSchema, mt as FacilityListResponseSchema, n as defineCMSSDKOptions, nt as DocumentSummarySchema, o as defineVofficeFeedbackDataAttributes, on as toStableSearchInputQueryKeys, ot as ErgoBookRequestSchema, p as defineVofficeUnitDataAttributes, pt as ErgoTripAndCustomerRequestSchema, q as CalendarDaySchema, qt as V1_OPERATIONS, r as customDataAttribute, rn as defineStableSearchInputGroup, rt as DocumentTypeSchema, s as defineVofficeImageDataAttributes, st as ErgoCommonFieldsSchema, t as createCMSSDKFromParsedConfig, tn as UnknownAdditionalService, tt as DocumentStatusUpdateRequestSchema, u as defineVofficeRatingDataAttributes, ut as ErgoPlanSearchRequestSchema, vt as PaymentScheduleSchema, wt as RawObjectResponseSchema, xt as QuotePricesResponseSchema, yt as QuoteLineSchema, z as V0OpenApiClientError, zt as TravelInsuranceBookingStoreRequestSchema } from "./client-BFtPZZZh.mjs";
2
2
  import { t as CMSError } from "./errors-2cuUGSvi.mjs";
3
3
  export { AdditionalServiceLimitExceeded, ApiEnvelopeBaseSchema, CMSError, CalendarDaySchema, CalendarResponseSchema, CurrentMemberResponseSchema, CustomerUnitSummarySchema, DocumentCollectionResponseSchema, DocumentResourceResponseSchema, DocumentResourceSchema, DocumentStatusSchema, DocumentStatusUpdateRequestSchema, DocumentSummarySchema, DocumentTypeSchema, ErgoAddressSchema, ErgoBankSchema, ErgoBookRequestSchema, ErgoCommonFieldsSchema, ErgoCreatePreContractRequestSchema, ErgoPersonSchema, ErgoPlanSearchRequestSchema, ErgoPolicyNumberRequestSchema, ErgoReadPreContractRequestSchema, ErgoTripAndCustomerRequestSchema, FacilityListResponseSchema, InvalidAdditionalServiceQuantity, OnOfficeUnitCollectionResponseSchema, OnOfficeUnitSchema, PaymentScheduleItemSchema, PaymentScheduleSchema, QuoteLineSchema, QuotePricesPayloadSchema, QuotePricesResponseSchema, QuoteSchema, QuoteServiceSchema, RawObjectResponseSchema, RawVofficeObjectSchema, RegionListResponseSchema, RoomImageSchema, SearchPropertiesResponseSchema, 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, createCMSSDKFromParsedConfig, customDataAttribute, decodeV1OperationResponse, defineCMSSDKOptions, defineDataAttributes, defineStableSearchInputGroup, defineVofficeFacilityDataAttributes, defineVofficeFeedbackDataAttributes, defineVofficeImageDataAttributes, defineVofficeOfferDataAttributes, defineVofficePriceDataAttributes, defineVofficeRatingDataAttributes, defineVofficeServiceDataAttributes, defineVofficeTotalRatingDataAttributes, defineVofficeUnitDataAttributes, makeV0OpenApiClientFetchLive, makeV0OpenApiClientLive, makeV1OpenApiClientFetchLive, makeV1OpenApiClientLive, toStableSearchInputParameterValues, toStableSearchInputQueryKeys };
@@ -1,4 +1,4 @@
1
- import { Qt as formatCurrency, Xt as GuestQuote, Zt as addGuestQuoteAdditionalServiceSelection } from "./client-BbAfk-qa.mjs";
1
+ import { Qt as formatCurrency, Xt as GuestQuote, Zt as addGuestQuoteAdditionalServiceSelection } from "./client-BFtPZZZh.mjs";
2
2
  import { a as toNightCount } from "./parser-D6UAf8Ld.mjs";
3
3
  import { DateTime, Effect } from "effect";
4
4
  //#region src/adapters/v9/parser/quote/to-additional-service-calculation.ts
@@ -1,4 +1,4 @@
1
- import { Qt as formatCurrency, Xt as GuestQuote, Zt as addGuestQuoteAdditionalServiceSelection } from "./client-BbAfk-qa.mjs";
1
+ import { Qt as formatCurrency, Xt as GuestQuote, Zt as addGuestQuoteAdditionalServiceSelection } from "./client-BFtPZZZh.mjs";
2
2
  import "./errors-2cuUGSvi.mjs";
3
3
  import { a as toNightCount, c as localeToLanguage } from "./parser-D6UAf8Ld.mjs";
4
4
  import { DateTime, Effect } from "effect";
@@ -1,4 +1,4 @@
1
- import { S as toAddress, _ as GENERATED_RENTAL_METADATA_CATALOG, b as toLocation, g as toRentalHighlights, h as toRentalType, m as toScope, v as toProperty, x as toImages, y as toDescription } from "./client-BbAfk-qa.mjs";
1
+ import { S as toAddress, _ as GENERATED_RENTAL_METADATA_CATALOG, b as toLocation, g as toRentalHighlights, h as toRentalType, m as toScope, v as toProperty, x as toImages, y as toDescription } from "./client-BFtPZZZh.mjs";
2
2
  import "./errors-2cuUGSvi.mjs";
3
3
  import { c as localeToLanguage, s as makeTranslate } from "./parser-D6UAf8Ld.mjs";
4
4
  import { t as renderCustomAttributeHighlight } from "./custom-attribute-ChCbJKf_.mjs";
@@ -1,8 +1,8 @@
1
- import { F as parseVofficeFacilityData, I as parseVofficeFeedbackData, L as parseVofficeUnitData, M as VofficeUnitDataPropertyCategoryLabelKeys, N as VofficeUnitDataPropertyCategoryValues, P as VofficeUnitDataPropertyMetadata } from "./client-BbAfk-qa.mjs";
1
+ import { F as parseVofficeFacilityData, I as parseVofficeFeedbackData, L as parseVofficeUnitData, M as VofficeUnitDataPropertyCategoryLabelKeys, N as VofficeUnitDataPropertyCategoryValues, P as VofficeUnitDataPropertyMetadata } from "./client-BFtPZZZh.mjs";
2
2
  import "./errors-2cuUGSvi.mjs";
3
3
  import { c as localeToLanguage, s as makeTranslate } from "./parser-D6UAf8Ld.mjs";
4
4
  import { i as renderLabeledAttributeValue, t as renderCustomAttributeHighlight } from "./custom-attribute-ChCbJKf_.mjs";
5
- import { n as toAddress, r as toLocalizedString, t as toRentalHighlights } from "./to-rental-highlights-BcRa9Odv.mjs";
5
+ import { n as toAddress, r as toLocalizedString, t as toRentalHighlights } from "./to-rental-highlights-CkHgZINu.mjs";
6
6
  import { Effect } from "effect";
7
7
  //#region src/adapters/v9/parser/rentals/to-description.ts
8
8
  const toDescription = (data, locale) => {
@@ -1,7 +1,7 @@
1
- import { A as toUnusedFilterKeys, C as parseChildrenAges, D as parseQueryParameters, E as collectQueryParameters, L as parseVofficeUnitData, O as expandCustomAttributeFilterCompositions, T as toQueryString, an as toStableSearchInputParameterValues, in as toStableSearchInputBackendQueryKeys, j as stable_filters_default, k as toCustomAttributeFilterLabel, nn as STABLE_SEARCH_INPUTS, on as toStableSearchInputQueryKeys, w as parseOccupancyCount } from "./client-BbAfk-qa.mjs";
1
+ import { A as toUnusedFilterKeys, C as parseChildrenAges, D as parseQueryParameters, E as collectQueryParameters, L as parseVofficeUnitData, O as expandCustomAttributeFilterCompositions, T as toQueryString, an as toStableSearchInputParameterValues, in as toStableSearchInputBackendQueryKeys, j as stable_filters_default, k as toCustomAttributeFilterLabel, nn as STABLE_SEARCH_INPUTS, on as toStableSearchInputQueryKeys, w as parseOccupancyCount } from "./client-BFtPZZZh.mjs";
2
2
  import { t as CMSError } from "./errors-2cuUGSvi.mjs";
3
3
  import { d as daysBetweenLocalDates, l as toIsoDateFromPeriodQueryDate } from "./parser-D6UAf8Ld.mjs";
4
- import { n as toAddress, t as toRentalHighlights } from "./to-rental-highlights-BcRa9Odv.mjs";
4
+ import { n as toAddress, t as toRentalHighlights } from "./to-rental-highlights-CkHgZINu.mjs";
5
5
  import { Effect } from "effect";
6
6
  //#region src/adapters/v9/parser/search/input/filter/apply-voffice-filter-derived-basic-query-inputs.ts
7
7
  const hasBasicQueryInput = ({ basicQueryInputs, key }) => basicQueryInputs.some((input) => input.key === key);
@@ -1,4 +1,4 @@
1
- import { P as VofficeUnitDataPropertyMetadata } from "./client-BbAfk-qa.mjs";
1
+ import { P as VofficeUnitDataPropertyMetadata } from "./client-BFtPZZZh.mjs";
2
2
  import "./errors-2cuUGSvi.mjs";
3
3
  import { c as localeToLanguage, o as toCountry, s as makeTranslate } from "./parser-D6UAf8Ld.mjs";
4
4
  import { i as renderLabeledAttributeValue, t as renderCustomAttributeHighlight } from "./custom-attribute-ChCbJKf_.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@v-office/website-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "SDK for the connection to PMS from the website",
5
5
  "bin": {
6
6
  "website-sdk": "./dist/cli.mjs"