@v-office/website-sdk 2.38.0 → 3.1.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.
Files changed (33) hide show
  1. package/dist/cli.mjs +3 -3
  2. package/dist/{client-CE4V_ybW.mjs → client-C6r06QHZ.mjs} +599 -171
  3. package/dist/index.d.mts +133 -4
  4. package/dist/index.mjs +1 -1
  5. package/dist/instructions/CHANGELOG.md +2 -0
  6. package/dist/instructions/MIGRATION.md +2 -0
  7. package/dist/instructions/booking.md +1 -1
  8. package/dist/instructions/quote.md +33 -19
  9. package/dist/instructions/rentals.md +46 -6
  10. package/dist/instructions/search.md +25 -6
  11. package/dist/instructions/versions/3.0.0/CHANGELOG.md +62 -0
  12. package/dist/instructions/versions/3.0.0/MIGRATION.md +69 -0
  13. package/dist/instructions/versions/3.1.0/CHANGELOG.md +47 -0
  14. package/dist/instructions/versions/3.1.0/MIGRATION.md +32 -0
  15. package/dist/{operations-DMqLD3e2.mjs → operations-Bc3WxjV8.mjs} +79 -3
  16. package/dist/{rentals-BsHvdwQt.mjs → rentals-BP7dfcfg.mjs} +88 -25
  17. package/dist/{search-DqdRIJwF.mjs → search-BvgpkUPo.mjs} +22 -11
  18. package/dist/{to-rental-highlights-BE6TdXYa.mjs → to-rental-highlights-9AbqVIso.mjs} +68 -32
  19. package/dist/translations/v9/de-DE/core.json +7 -1
  20. package/dist/translations/v9/en-US/core.json +7 -1
  21. package/instructions/CHANGELOG.md +2 -0
  22. package/instructions/MIGRATION.md +2 -0
  23. package/instructions/booking.md +1 -1
  24. package/instructions/quote.md +33 -19
  25. package/instructions/rentals.md +46 -6
  26. package/instructions/search.md +25 -6
  27. package/instructions/versions/3.0.0/CHANGELOG.md +62 -0
  28. package/instructions/versions/3.0.0/MIGRATION.md +69 -0
  29. package/instructions/versions/3.0.0/release.json +3 -0
  30. package/instructions/versions/3.1.0/CHANGELOG.md +47 -0
  31. package/instructions/versions/3.1.0/MIGRATION.md +32 -0
  32. package/instructions/versions/3.1.0/release.json +3 -0
  33. package/package.json +5 -4
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RegionsGetRegionsInput, RegionsGetRegionsInput as RegionsGetRegionsInput$1, RegionsService, RentalCapacity, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V10RateBudget, V9OnlyCustomAttributeInput, WebsiteRegion, WebsiteRegions, WebsiteRegions as WebsiteRegions$1, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
1
+ import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuote as GuestQuote$1, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, QuoteAddAdditionalServiceInput, QuoteAddAdditionalServiceOutput, QuoteBookInsuranceInput, QuoteBookInsuranceOutput, QuoteClearAdditionalServicesInput, QuoteClearAdditionalServicesOutput, QuoteCreateInsurancePreContractInput, QuoteCreateInsurancePreContractOutput, QuoteQuoteInput, QuoteQuoteInput as QuoteQuoteInput$1, QuoteQuoteOutput, QuoteQuoteOutput as QuoteQuoteOutput$1, QuoteRemoveAdditionalServiceInput, QuoteRemoveAdditionalServiceOutput, QuoteSelectCancellationPolicyInput, QuoteSelectCancellationPolicyOutput, QuoteSelectInsuranceInput, QuoteSelectInsuranceOutput, QuoteSelectInsurancePaymentInput, QuoteSelectInsurancePaymentOutput, QuoteService as QuoteService$1, RegionsGetRegionsInput, RegionsGetRegionsInput as RegionsGetRegionsInput$1, RegionsService, RentalCapacity, RentalFact, RentalGetRentalsInput, RentalGetRentalsInput as RentalGetRentalsInput$1, RentalGetRentalsOutput, RentalGetRentalsOutput as RentalGetRentalsOutput$1, RentalHighlightPrioritizationKey, RentalHighlightPrioritizationKey as RentalHighlightPrioritizationKey$1, RentalPropertyHighlightPrioritizationKey, RentalPropertyHighlightPrioritizationKey as RentalPropertyHighlightPrioritizationKey$1, RentalScope, RentalService, ResolvedCustomAttribute, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchAllRentalsAtOnceInput, SearchAllRentalsAtOnceInput as SearchAllRentalsAtOnceInput$1, SearchMapSearchInput, SearchMapSearchInput as SearchMapSearchInput$1, SearchMapSearchInputSchema, SearchMapSearchOutput, SearchMapSearchOutput as SearchMapSearchOutput$1, SearchMapSearchOutputItem, SearchMapSearchOutputSchema, SearchMoney, SearchSearchAlternative, SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, SearchSearchFieldSort, SearchSearchFieldSort as SearchSearchFieldSort$1, SearchSearchFieldSortSchema, SearchSearchInput, SearchSearchInput as SearchSearchInput$1, SearchSearchInputSchema, SearchSearchOutput, SearchSearchOutput as SearchSearchOutput$1, SearchSearchOutputItem, SearchSearchOutputSchema, SearchSearchPriceSort, SearchSearchPriceSortSchema, SearchSearchRandomSort, SearchSearchRandomSortSchema, SearchSearchRatingSort, SearchSearchRatingSortSchema, SearchSearchSort, SearchSearchSort as SearchSearchSort$1, SearchSearchSortSchema, SearchService, SearchSortDirection, SearchSortDirectionSchema, SelectableInsuranceOptionOutput, SelectedInsuranceInformationInput, SubmittableBookingPaymentOption, SubmittableBookingPaymentOption as SubmittableBookingPaymentOption$1, TranslationOverrides, TranslationOverrides as TranslationOverrides$1, UnknownAdditionalService, V10CoreConfig, V10RateBudget, V9OnlyCustomAttributeInput, WebsiteRegion, WebsiteRegions, WebsiteRegions as WebsiteRegions$1, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
2
2
  import { Context, Effect, Layer, Schema } from "effect";
3
3
  import { HttpClient } from "effect/unstable/http";
4
4
  import "@graphql-typed-document-node/core";
@@ -130,6 +130,35 @@ type V9AvailabilityGetBlockedRangesOutput = {
130
130
  readonly rentals: ReadonlyArray<V9RentalBlockedRanges>;
131
131
  };
132
132
  //#endregion
133
+ //#region src/legacy-v9/insurance-input.d.ts
134
+ type V9QuoteCreateInsurancePreContractInput = {
135
+ readonly quote: GuestQuote$1;
136
+ readonly booking: BookingBookOutput$1;
137
+ };
138
+ type V9InsuranceReadPolicyInput = {
139
+ readonly policyNumber: string;
140
+ };
141
+ type V9InsuranceRevokePolicyInput = {
142
+ readonly policyNumber: string;
143
+ readonly booking: BookingBookOutput$1;
144
+ };
145
+ type V9InsurancePolicy = {
146
+ readonly policyNumber: string;
147
+ readonly status: "active" | "revoked";
148
+ readonly revokedAt?: string;
149
+ readonly documentUrl?: string;
150
+ readonly label: string;
151
+ readonly travelPeriod?: {
152
+ readonly start: string;
153
+ readonly end: string;
154
+ };
155
+ readonly insuredPersons: ReadonlyArray<{
156
+ readonly forename: string;
157
+ readonly surname: string;
158
+ readonly birthday?: string;
159
+ }>;
160
+ };
161
+ //#endregion
133
162
  //#region src/legacy-v9/rental-ids.d.ts
134
163
  type V9RentalsGetRentalsByIdsInput = {
135
164
  readonly locale: Locale$1;
@@ -276,10 +305,28 @@ type WebsiteSDKV9LiveVoucher = {
276
305
  type WebsiteSDKV9LiveRentals = {
277
306
  readonly getRentalsByIds: (input: V9RentalsGetRentalsByIdsInput) => Promise<RentalGetRentalsOutput$1>;
278
307
  };
279
- type WebsiteSDKV9Live = Omit<WebsiteSDKSharedLive, "search" | "availability"> & {
308
+ type WebsiteSDKV9LiveQuote = Omit<WebsiteSDKSharedLive["quote"], "createInsurancePreContract"> & {
309
+ /**
310
+ * Creates ERGO's pre-contract after the stay booking. Pass the quote and the result of
311
+ * `live.booking.book`; the policy holder is that booking's customer.
312
+ */
313
+ readonly createInsurancePreContract: (input: V9QuoteCreateInsurancePreContractInput) => Promise<QuoteCreateInsurancePreContractOutput>;
314
+ };
315
+ type WebsiteSDKV9LiveInsurance = {
316
+ /** Reads an ERGO policy. Rejects when the account does not use ERGO insurance. */
317
+ readonly readPolicy: (input: V9InsuranceReadPolicyInput) => Promise<V9InsurancePolicy>;
318
+ /**
319
+ * Revokes an ERGO policy and, once ERGO has accepted, removes it from the booking. Rejects with
320
+ * ERGO's reason when it refuses, or when the account does not use ERGO insurance.
321
+ */
322
+ readonly revokePolicy: (input: V9InsuranceRevokePolicyInput) => Promise<V9InsurancePolicy>;
323
+ };
324
+ type WebsiteSDKV9Live = Omit<WebsiteSDKSharedLive, "search" | "availability" | "quote"> & {
280
325
  readonly availability: WebsiteSDKV9LiveAvailability;
281
326
  readonly voucher: WebsiteSDKV9LiveVoucher;
282
327
  readonly rentals: WebsiteSDKV9LiveRentals;
328
+ readonly quote: WebsiteSDKV9LiveQuote;
329
+ readonly insurance: WebsiteSDKV9LiveInsurance;
283
330
  readonly search: {
284
331
  readonly search: (input: V9SearchSearchInput) => Promise<V9SearchSearchOutput>;
285
332
  readonly mapSearch: WebsiteSDKSharedLive["search"]["mapSearch"];
@@ -287,10 +334,12 @@ type WebsiteSDKV9Live = Omit<WebsiteSDKSharedLive, "search" | "availability"> &
287
334
  };
288
335
  };
289
336
  /** `live` of a v9 SDK created with `searchAllRentalsAtOnce: true`. */
290
- type WebsiteSDKV9AllRentalsAtOnceLive = Omit<WebsiteSDKSharedLive, "search" | "availability"> & {
337
+ type WebsiteSDKV9AllRentalsAtOnceLive = Omit<WebsiteSDKSharedLive, "search" | "availability" | "quote"> & {
291
338
  readonly availability: WebsiteSDKV9LiveAvailability;
292
339
  readonly voucher: WebsiteSDKV9LiveVoucher;
293
340
  readonly rentals: WebsiteSDKV9LiveRentals;
341
+ readonly quote: WebsiteSDKV9LiveQuote;
342
+ readonly insurance: WebsiteSDKV9LiveInsurance;
294
343
  readonly search: {
295
344
  /** Every result with its price in one call; at most `SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS`. */
296
345
  readonly search: (input: V9SearchAllRentalsAtOnceInput) => Promise<V9SearchSearchOutput>;
@@ -371,6 +420,7 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
371
420
  readonly metadata?: {
372
421
  readonly [x: string]: unknown;
373
422
  };
423
+ readonly altFallback?: "de-DE" | "en-US";
374
424
  }[];
375
425
  readonly address?: {
376
426
  readonly street?: string;
@@ -426,6 +476,7 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
426
476
  readonly metadata?: {
427
477
  readonly [x: string]: unknown;
428
478
  };
479
+ readonly altFallback?: "de-DE" | "en-US";
429
480
  }[];
430
481
  readonly address?: {
431
482
  readonly street?: string;
@@ -460,18 +511,40 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
460
511
  readonly subCategories: readonly {
461
512
  readonly label: string;
462
513
  readonly items: readonly string[];
514
+ readonly facts?: readonly {
515
+ readonly key: string;
516
+ readonly text: string;
517
+ readonly value?: string | number | boolean;
518
+ }[];
463
519
  }[];
464
520
  }[];
465
521
  readonly vicinity?: readonly {
466
522
  readonly label: string;
467
523
  readonly items: readonly string[];
524
+ readonly facts?: readonly {
525
+ readonly key: string;
526
+ readonly text: string;
527
+ readonly value?: string | number | boolean;
528
+ }[];
468
529
  }[];
469
530
  readonly highlights?: readonly string[];
531
+ readonly highlightFacts?: readonly {
532
+ readonly key: string;
533
+ readonly text: string;
534
+ readonly value?: string | number | boolean;
535
+ }[];
470
536
  };
471
537
  readonly rooms?: readonly {
472
538
  readonly type: string;
539
+ readonly typeKey?: string;
473
540
  readonly description?: string;
541
+ readonly descriptionFallback?: "de-DE" | "en-US";
474
542
  readonly attributes?: readonly string[];
543
+ readonly attributeFacts?: readonly {
544
+ readonly key: string;
545
+ readonly text: string;
546
+ readonly value?: string | number | boolean;
547
+ }[];
475
548
  readonly beds?: readonly {
476
549
  readonly type: string;
477
550
  readonly kind?: string;
@@ -484,13 +557,28 @@ export declare const getRentalsEffect: (input: RentalGetRentalsInput$1) => Effec
484
557
  readonly subCategories: readonly {
485
558
  readonly label: string;
486
559
  readonly items: readonly string[];
560
+ readonly facts?: readonly {
561
+ readonly key: string;
562
+ readonly text: string;
563
+ readonly value?: string | number | boolean;
564
+ }[];
487
565
  }[];
488
566
  }[];
489
567
  readonly vicinity?: readonly {
490
568
  readonly label: string;
491
569
  readonly items: readonly string[];
570
+ readonly facts?: readonly {
571
+ readonly key: string;
572
+ readonly text: string;
573
+ readonly value?: string | number | boolean;
574
+ }[];
492
575
  }[];
493
576
  readonly highlights?: readonly string[];
577
+ readonly highlightFacts?: readonly {
578
+ readonly key: string;
579
+ readonly text: string;
580
+ readonly value?: string | number | boolean;
581
+ }[];
494
582
  readonly reviews?: {
495
583
  readonly items: readonly ({
496
584
  readonly id?: string;
@@ -584,6 +672,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
584
672
  readonly metadata?: {
585
673
  readonly [x: string]: unknown;
586
674
  };
675
+ readonly altFallback?: "de-DE" | "en-US";
587
676
  }[];
588
677
  readonly address?: {
589
678
  readonly street?: string;
@@ -602,14 +691,28 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
602
691
  readonly livingAreaSqm?: number;
603
692
  };
604
693
  readonly formattedTotal?: string;
694
+ readonly total?: {
695
+ readonly amount: number;
696
+ readonly currency: string;
697
+ };
605
698
  readonly discount?: {
606
699
  readonly formattedOriginalTotal: string;
700
+ readonly originalTotal?: {
701
+ readonly amount: number;
702
+ readonly currency: string;
703
+ };
607
704
  readonly applied: readonly {
608
705
  readonly label: string;
609
706
  readonly formattedAmount: string;
707
+ readonly type?: string;
610
708
  }[];
611
709
  };
612
710
  readonly highlights?: readonly string[];
711
+ readonly highlightFacts?: readonly {
712
+ readonly key: string;
713
+ readonly text: string;
714
+ readonly value?: string | number | boolean;
715
+ }[];
613
716
  readonly property?: {
614
717
  readonly id: string;
615
718
  readonly nameOrLabel: string;
@@ -628,6 +731,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
628
731
  readonly metadata?: {
629
732
  readonly [x: string]: unknown;
630
733
  };
734
+ readonly altFallback?: "de-DE" | "en-US";
631
735
  }[];
632
736
  readonly address?: {
633
737
  readonly street?: string;
@@ -660,6 +764,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
660
764
  readonly metadata?: {
661
765
  readonly [x: string]: unknown;
662
766
  };
767
+ readonly altFallback?: "de-DE" | "en-US";
663
768
  }[];
664
769
  readonly address?: {
665
770
  readonly street?: string;
@@ -678,14 +783,28 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
678
783
  readonly livingAreaSqm?: number;
679
784
  };
680
785
  readonly formattedTotal?: string;
786
+ readonly total?: {
787
+ readonly amount: number;
788
+ readonly currency: string;
789
+ };
681
790
  readonly discount?: {
682
791
  readonly formattedOriginalTotal: string;
792
+ readonly originalTotal?: {
793
+ readonly amount: number;
794
+ readonly currency: string;
795
+ };
683
796
  readonly applied: readonly {
684
797
  readonly label: string;
685
798
  readonly formattedAmount: string;
799
+ readonly type?: string;
686
800
  }[];
687
801
  };
688
802
  readonly highlights?: readonly string[];
803
+ readonly highlightFacts?: readonly {
804
+ readonly key: string;
805
+ readonly text: string;
806
+ readonly value?: string | number | boolean;
807
+ }[];
689
808
  readonly property?: {
690
809
  readonly id: string;
691
810
  readonly nameOrLabel: string;
@@ -704,6 +823,7 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
704
823
  readonly metadata?: {
705
824
  readonly [x: string]: unknown;
706
825
  };
826
+ readonly altFallback?: "de-DE" | "en-US";
707
827
  }[];
708
828
  readonly address?: {
709
829
  readonly street?: string;
@@ -717,11 +837,20 @@ export declare const searchEffect: (input: SearchSearchInput$1) => Effect.Effect
717
837
  };
718
838
  readonly alternativePeriods: readonly {
719
839
  readonly formattedTotal?: string;
840
+ readonly total?: {
841
+ readonly amount: number;
842
+ readonly currency: string;
843
+ };
720
844
  readonly discount?: {
721
845
  readonly formattedOriginalTotal: string;
846
+ readonly originalTotal?: {
847
+ readonly amount: number;
848
+ readonly currency: string;
849
+ };
722
850
  readonly applied: readonly {
723
851
  readonly label: string;
724
852
  readonly formattedAmount: string;
853
+ readonly type?: string;
725
854
  }[];
726
855
  };
727
856
  readonly start: string;
@@ -7855,4 +7984,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
7855
7984
  export type RentalSearchInput = SearchSearchInput$1;
7856
7985
  export type RentalSearchOutput = SearchSearchOutput$1;
7857
7986
  //#endregion
7858
- export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RegionsGetRegionsInput, type RentalCapacity, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, type SearchAllRentalsAtOnceInput, type SearchMapSearchInput, SearchMapSearchInputSchema, type SearchMapSearchOutput, type SearchMapSearchOutputItem, SearchMapSearchOutputSchema, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9AvailabilityGetBlockedRangesInput, type V9AvailabilityGetBlockedRangesOutput, type V9BlockedRange, type V9EndDateOption, type V9InitialAvailabilityOutput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9RentalBlockedRanges, type V9RentalsGetRentalsByIdsInput, type V9ReviewCriterion, type V9ReviewCriterionDataAttribute, type V9ReviewsOptions, type V9SearchAllRentalsAtOnceInput, type V9SearchPagesInput, type V9SearchSearchInput, type V9SearchSearchOutput, type V9SearchSearchOutputItem, type V9SearchSearchSort, type V9StartDateSelectedAvailabilityOutput, type V9Video, type V9VideosGetVideosInput, type V9VoucherValidateInput, type V9VoucherValidateOutput, type V9VoucherValidityReason, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteRegion, type WebsiteRegions, type WebsiteSDK, type WebsiteSDKAllRentalsAtOnce, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10AllRentalsAtOnce, type WebsiteSDKV10AllRentalsAtOnceLive, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9AllRentalsAtOnce, type WebsiteSDKV9AllRentalsAtOnceLive, type WebsiteSDKV9Live, type WebsiteSDKV9Static, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
7987
+ export { AdditionalServiceLimitExceeded, type AvailabilityGetInitialAvailabilityInput, type AvailabilityGetInitialAvailabilityOutput, type AvailabilityGetStartDateSelectedAvailabilityInput, type AvailabilityGetStartDateSelectedAvailabilityOutput, type BackendKind, type BookingBankTransferDetails, type BookingBookInput, type BookingBookOutput, type BookingPayment, type BookingPaymentAlternative, type BookingPaymentOption, type BookingPaymentScheduleItem, type BookingPaymentScheduleKind, type BookingPaymentScheduleLine, CMSError, type ContactSubmitInput, type ContactSubmitOutput, type ContactSubmitValidationIssue, type ContactSubmitValidationIssueCode, CoreSDKError, type CustomAttributeCatalog, type CustomAttributeCatalogDefinitionInput, type CustomAttributeCatalogInput, CustomAttributeCatalogSchema, type CustomAttributeCategoryKey, type CustomAttributeFilterCategoryKey, type CustomAttributeFilterDefinition, type CustomAttributeFilterExpression, type CustomAttributeFilterLabel, type CustomAttributeFilterNumericBounds, type CustomAttributeFilterOption, type CustomAttributeOverridesInput, type CustomAttributeRegistry, type CustomAttributeRegistrySnapshot, type CustomAttributeSelection, type CustomDataAttribute, type DataAttribute, type DocumentsGetTermsAndPrivacyPolicyInput, type DocumentsGetTermsAndPrivacyPolicyOutput, type FilterGetFiltersInput, type FilterGetFiltersOutput, type GeoLocation, type GuestQuote, type GuestQuoteInput, type GuestQuoteInsurance, type GuestQuoteResult, GuestQuoteSchema, type GuestQuoteSelectionResult, type GuestQuoteVoucher, type ImageData, type InsuranceBookingOutput, type InsuranceCustomerInformationInput, type InsurancePaymentInformationInput, type InsurancePaymentOptionOutput, type InsurancePreContractOutput, InvalidAdditionalServiceQuantity, type KnownVofficeFacilityData, type KnownVofficeFacilityDataAttribute, type KnownVofficeFeedbackData, type KnownVofficeFeedbackDataAttribute, type KnownVofficeImageData, type KnownVofficeImageDataAttribute, type KnownVofficeOfferData, type KnownVofficeOfferDataAttribute, type KnownVofficePriceData, type KnownVofficePriceDataAttribute, type KnownVofficeRatingData, type KnownVofficeRatingDataAttribute, type KnownVofficeServiceData, type KnownVofficeServiceDataAttribute, type KnownVofficeTotalRatingData, type KnownVofficeTotalRatingDataAttribute, type KnownVofficeUnitData, type KnownVofficeUnitDataAttribute, type Locale, LocaleSchema, type ParsedJsonData, type ParsedVofficeFacilityData, type ParsedVofficeFeedbackData, type ParsedVofficeImageData, type ParsedVofficeOfferData, type ParsedVofficePriceData, type ParsedVofficeRatingData, type ParsedVofficeServiceData, type ParsedVofficeTotalRatingData, type ParsedVofficeUnitData, type QuoteQuoteInput, type QuoteQuoteOutput, type RegionsGetRegionsInput, type RentalCapacity, type RentalFact, type RentalGetRentalsInput, type RentalGetRentalsOutput, type RentalHighlightPrioritizationKey, type RentalPropertyHighlightPrioritizationKey, type ResolvedCustomAttribute, type ResolvedV9PropertyHighlightSource, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, type SearchAllRentalsAtOnceInput, type SearchMapSearchInput, SearchMapSearchInputSchema, type SearchMapSearchOutput, type SearchMapSearchOutputItem, SearchMapSearchOutputSchema, type SearchMoney, type SearchSearchFieldOrderBy, SearchSearchFieldOrderBySchema, type SearchSearchFieldSort, SearchSearchFieldSortSchema, type SearchSearchInput, SearchSearchInputSchema, type SearchSearchOutput, SearchSearchOutputSchema, type SearchSearchPriceSort, SearchSearchPriceSortSchema, type SearchSearchRandomSort, SearchSearchRandomSortSchema, type SearchSearchRatingSort, SearchSearchRatingSortSchema, type SearchSearchSort, SearchSearchSortSchema, type SearchSortDirection, SearchSortDirectionSchema, type SelectableInsuranceOptionOutput, type SelectedInsuranceInformationInput, type SubmittableBookingPaymentOption, type TranslationOverrides, UnknownAdditionalService, type V0OpenApiClientOptions, type V0OpenApiOperationId, type V0OpenApiOperationRequest, type V0OpenApiOperationResponse, type V1OpenApiClientOptions, type components as V1OpenApiComponents, type V1OpenApiOperationId, type V1OpenApiOperationRequest, type V1OpenApiOperationResponse, type operations as V1OpenApiOperations, type paths as V1OpenApiPaths, type V9AvailabilityGetBlockedRangesInput, type V9AvailabilityGetBlockedRangesOutput, type V9BlockedRange, type V9EndDateOption, type V9InitialAvailabilityOutput, type V9InsurancePolicy, type V9InsuranceReadPolicyInput, type V9InsuranceRevokePolicyInput, type V9OnlyCustomAttributeInput, type V9PropertyHighlightDataAttribute, type V9PropertyHighlightSourceInput, type V9PropertyHighlightSourceRegistry, type V9PropertyHighlightSourcesInput, type V9QuoteCreateInsurancePreContractInput, type V9RentalBlockedRanges, type V9RentalsGetRentalsByIdsInput, type V9ReviewCriterion, type V9ReviewCriterionDataAttribute, type V9ReviewsOptions, type V9SearchAllRentalsAtOnceInput, type V9SearchPagesInput, type V9SearchSearchInput, type V9SearchSearchOutput, type V9SearchSearchOutputItem, type V9SearchSearchSort, type V9StartDateSelectedAvailabilityOutput, type V9Video, type V9VideosGetVideosInput, type V9VoucherValidateInput, type V9VoucherValidateOutput, type V9VoucherValidityReason, type VofficeFacilityDataAttribute, type VofficeFacilityDataAttributes, type VofficeFeedbackDataAttribute, type VofficeFeedbackDataAttributes, type VofficeImageDataAttribute, type VofficeImageDataAttributes, type VofficeOfferDataAttribute, type VofficeOfferDataAttributes, type VofficePriceDataAttribute, type VofficePriceDataAttributes, type VofficeRatingDataAttribute, type VofficeRatingDataAttributes, type VofficeServiceDataAttribute, type VofficeServiceDataAttributes, type VofficeTotalRatingDataAttribute, type VofficeTotalRatingDataAttributes, type VofficeUnitDataAttribute, type VofficeUnitDataAttributes, type WebsiteRegion, type WebsiteRegions, type WebsiteSDK, type WebsiteSDKAllRentalsAtOnce, type WebsiteSDKConfig, type WebsiteSDKOptions, type WebsiteSDKSharedLive, type WebsiteSDKSharedStatic, type WebsiteSDKV10, type WebsiteSDKV10AllRentalsAtOnce, type WebsiteSDKV10AllRentalsAtOnceLive, type WebsiteSDKV10Live, type WebsiteSDKV10Static, type WebsiteSDKV9, type WebsiteSDKV9AllRentalsAtOnce, type WebsiteSDKV9AllRentalsAtOnceLive, type WebsiteSDKV9Live, type WebsiteSDKV9Static, defineWebsiteSDKOptions as defineCMSSDKOptions, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as QuoteSchema, A as DocumentResourceSchema, At as bookInsuranceEffect, B as ErgoPersonSchema, Bt as quoteEffect, C as ApiEnvelopeBaseSchema, Ct as V1_BASE_URL, D as CustomerUnitSummarySchema, Dt as decodeV1OperationResponse, E as CurrentMemberResponseSchema, Et as VideoResponseSchema, F as ErgoAddressSchema, Ft as getInitialAvailabilityEffect, G as FacilityListResponseSchema, Gt as selectInsurancePaymentEffect, H as ErgoPolicyNumberRequestSchema, Ht as searchEffect, I as ErgoBankSchema, It as getRentalsEffect, J as PaymentScheduleItemSchema, Jt as submitPaymentOptionEffect, K as OnOfficeUnitCollectionResponseSchema, Kt as submitContactEffect, L as ErgoBookRequestSchema, Lt as getStartDateSelectedAvailabilityEffect, M as DocumentStatusUpdateRequestSchema, Mt as createInsurancePreContractEffect, N as DocumentSummarySchema, Nt as getBankTransferDetailsEffect, O as DocumentCollectionResponseSchema, Ot as addAdditionalServiceEffect, P as DocumentTypeSchema, Pt as getFiltersEffect, Q as QuotePricesResponseSchema, R as ErgoCommonFieldsSchema, Rt as getTermsAndPrivacyPolicyEffect, S as makeV1OpenApiClientLive, St as UnitServicePriceSchema, T as CalendarResponseSchema, Tt as VideoListResponseSchema, U as ErgoReadPreContractRequestSchema, Ut as selectCancellationPolicyEffect, V as ErgoPlanSearchRequestSchema, Vt as removeAdditionalServiceEffect, W as ErgoTripAndCustomerRequestSchema, Wt as selectInsuranceEffect, X as QuoteLineSchema, Xt as defineV9PropertyHighlightSources, Y as PaymentScheduleSchema, Yt as defineWebsiteSDKOptions, Z as QuotePricesPayloadSchema, Zt as defineV9PropertyHighlightSourcesFromUnknown, _t as UnitIdsResponseSchema, at as SearchPropertiesResponseSchema, b as V1OpenApiClientError, bt as UnitOfferSchema, ct as ServiceLimitSchema, dt as SetupResponseSchema, et as QuoteServiceSchema, ft as TileCollectionResponseSchema, g as makeV0OpenApiClientLive, gt as TravelInsuranceBookingStoreRequestSchema, h as makeV0OpenApiClientFetchLive, ht as TravelInsuranceBookingSchema, it as RoomImageSchema, j as DocumentStatusSchema, jt as clearAdditionalServicesEffect, k as DocumentResourceResponseSchema, kt as bookEffect, lt as ServiceListResponseSchema, m as V0OpenApiClientError, mt as TileTagSchema, nt as RawVofficeObjectSchema, ot as ServiceBeonDataSchema, p as V0OpenApiClient, pt as TileSchema, q as OnOfficeUnitSchema, qt as submitPaymentOption, rt as RegionListResponseSchema, st as ServiceImageSchema, t as createWebsiteSDK, tt as RawObjectResponseSchema, ut as SetupDataSchema, vt as UnitListItemSchema, w as CalendarDaySchema, wt as V1_OPERATIONS, x as makeV1OpenApiClientFetchLive, xt as UnitResponseSchema, y as V1OpenApiClient, yt as UnitListResponseSchema, z as ErgoCreatePreContractRequestSchema, zt as mapSearchEffect } from "./client-CE4V_ybW.mjs";
1
+ import { $ as QuoteSchema, A as DocumentResourceSchema, At as bookInsuranceEffect, B as ErgoPersonSchema, Bt as quoteEffect, C as ApiEnvelopeBaseSchema, Ct as V1_BASE_URL, D as CustomerUnitSummarySchema, Dt as decodeV1OperationResponse, E as CurrentMemberResponseSchema, Et as VideoResponseSchema, F as ErgoAddressSchema, Ft as getInitialAvailabilityEffect, G as FacilityListResponseSchema, Gt as selectInsurancePaymentEffect, H as ErgoPolicyNumberRequestSchema, Ht as searchEffect, I as ErgoBankSchema, It as getRentalsEffect, J as PaymentScheduleItemSchema, Jt as submitPaymentOptionEffect, K as OnOfficeUnitCollectionResponseSchema, Kt as submitContactEffect, L as ErgoBookRequestSchema, Lt as getStartDateSelectedAvailabilityEffect, M as DocumentStatusUpdateRequestSchema, Mt as createInsurancePreContractEffect, N as DocumentSummarySchema, Nt as getBankTransferDetailsEffect, O as DocumentCollectionResponseSchema, Ot as addAdditionalServiceEffect, P as DocumentTypeSchema, Pt as getFiltersEffect, Q as QuotePricesResponseSchema, R as ErgoCommonFieldsSchema, Rt as getTermsAndPrivacyPolicyEffect, S as makeV1OpenApiClientLive, St as UnitServicePriceSchema, T as CalendarResponseSchema, Tt as VideoListResponseSchema, U as ErgoReadPreContractRequestSchema, Ut as selectCancellationPolicyEffect, V as ErgoPlanSearchRequestSchema, Vt as removeAdditionalServiceEffect, W as ErgoTripAndCustomerRequestSchema, Wt as selectInsuranceEffect, X as QuoteLineSchema, Xt as defineV9PropertyHighlightSources, Y as PaymentScheduleSchema, Yt as defineWebsiteSDKOptions, Z as QuotePricesPayloadSchema, Zt as defineV9PropertyHighlightSourcesFromUnknown, _t as UnitIdsResponseSchema, at as SearchPropertiesResponseSchema, b as V1OpenApiClientError, bt as UnitOfferSchema, ct as ServiceLimitSchema, dt as SetupResponseSchema, et as QuoteServiceSchema, ft as TileCollectionResponseSchema, g as makeV0OpenApiClientLive, gt as TravelInsuranceBookingStoreRequestSchema, h as makeV0OpenApiClientFetchLive, ht as TravelInsuranceBookingSchema, it as RoomImageSchema, j as DocumentStatusSchema, jt as clearAdditionalServicesEffect, k as DocumentResourceResponseSchema, kt as bookEffect, lt as ServiceListResponseSchema, m as V0OpenApiClientError, mt as TileTagSchema, nt as RawVofficeObjectSchema, ot as ServiceBeonDataSchema, p as V0OpenApiClient, pt as TileSchema, q as OnOfficeUnitSchema, qt as submitPaymentOption, rt as RegionListResponseSchema, st as ServiceImageSchema, t as createWebsiteSDK, tt as RawObjectResponseSchema, ut as SetupDataSchema, vt as UnitListItemSchema, w as CalendarDaySchema, wt as V1_OPERATIONS, x as makeV1OpenApiClientFetchLive, xt as UnitResponseSchema, y as V1OpenApiClient, yt as UnitListResponseSchema, z as ErgoCreatePreContractRequestSchema, zt as mapSearchEffect } from "./client-C6r06QHZ.mjs";
2
2
  import { AdditionalServiceLimitExceeded, CoreSDKError, CoreSDKError as CMSError, CustomAttributeCatalogSchema, GuestQuoteSchema, InvalidAdditionalServiceQuantity, LocaleSchema, SEARCH_ALL_RENTALS_AT_ONCE_MAX_RESULTS, SearchMapSearchInputSchema, SearchMapSearchOutputSchema, SearchSearchFieldOrderBySchema, SearchSearchFieldSortSchema, SearchSearchInputSchema, SearchSearchOutputSchema, SearchSearchPriceSortSchema, SearchSearchRandomSortSchema, SearchSearchRatingSortSchema, SearchSearchSortSchema, SearchSortDirectionSchema, UnknownAdditionalService, defineCustomAttributes, defineCustomAttributesFromUnknown, fetchCustomAttributeCatalog, parseCustomAttributeCatalog, validateContactSubmitInput } from "@v-office/sdk-core";
3
3
  //#region codegen/v9/heuristic-generation/public-api.ts
4
4
  const customDataAttribute = (name) => name;
@@ -4,6 +4,8 @@
4
4
 
5
5
  Release notes of `@v-office/website-sdk`, newest first. Each version has its own directory.
6
6
 
7
+ - `versions/3.1.0/CHANGELOG.md`: release notes for 3.1.0
8
+ - `versions/3.0.0/CHANGELOG.md`: release notes for 3.0.0
7
9
  - `versions/2.38.0/CHANGELOG.md`: release notes for 2.38.0
8
10
  - `versions/2.37.1/CHANGELOG.md`: release notes for 2.37.1
9
11
  - `versions/2.37.0/CHANGELOG.md`: release notes for 2.37.0
@@ -4,6 +4,8 @@
4
4
 
5
5
  Migration guides of `@v-office/website-sdk`, newest first. Apply them in order when skipping versions.
6
6
 
7
+ - `versions/3.1.0/MIGRATION.md`: Migration: 3.0.0 to 3.1.0
8
+ - `versions/3.0.0/MIGRATION.md`: Migration: 2.38.0 to 3.0.0
7
9
  - `versions/2.38.0/MIGRATION.md`: Migration: 2.37.1 to 2.38.0
8
10
  - `versions/2.37.1/MIGRATION.md`: Migration: 2.37.0 to 2.37.1
9
11
  - `versions/2.37.0/MIGRATION.md`: Migration: 2.36.2 to 2.37.0
@@ -139,7 +139,7 @@ included in its amount. It contains the formatted deposit and, when nonzero, the
139
139
  amount excluding the deposit. Without a stated deposit there are no `lines`;
140
140
  never derive a deposit from `amount` and a percentage.
141
141
 
142
- An optional `insurancePaymentOptions` array is returned only when post-booking insurance payment is available.
142
+ An optional `insurancePaymentOptions` array is returned only when post-booking insurance payment is available. On v9 with an ERGO plan selected it holds the SEPA debit option, even though the pre-contract does not exist yet: create it with `createInsurancePreContract({ quote, booking })` after `book`, then `selectInsurancePayment` and `bookInsurance`.
143
143
 
144
144
  Sites upgrading from 2.12.0 must replace the former `paymentSchedules` output. See
145
145
  `versions/2.13.0/MIGRATION.md`.
@@ -368,6 +368,23 @@ if (selected.ok) quote = selected.quote;
368
368
 
369
369
  The selected policy is marked with `selected: true`, and the booking card total is recalculated if the policy changes the price. Handle selection errors for unknown or unavailable policy ids.
370
370
 
371
+ On v10 the label of a system policy (Balanced 14 days, Strict 30 days, Very strict 60 days) is
372
+ translated by the SDK. The label of a custom or alternative policy is the agency's own text and
373
+ stays as entered in the PMS, in whatever language that is.
374
+
375
+ ## Texts in the PMS's language
376
+
377
+ The SDK translates its own texts. Texts an agency enters in the PMS come back as entered, and
378
+ the SDK cannot tell their language: the backend states one text, not one per language. On an
379
+ English page they are German unless the agency entered English:
380
+
381
+ - v10: custom and alternative cancellation policy names (`cancellationPolicies[].label`).
382
+ - v9: fee, service and insurance names in the booking card and the additional services, as the
383
+ be-on! Hub sends them for the requested language.
384
+
385
+ To show them in English, enter English names in the PMS. A site that must not show German can
386
+ replace them with its own text by `id`.
387
+
371
388
  ## Insurance
372
389
 
373
390
  Insurance information is exposed on `quote.insurance` when available. The `options` array contains either a `none` option or selectable insurance products.
@@ -422,27 +439,17 @@ quote = await sdk.live.quote.selectInsurance({
422
439
  });
423
440
  ```
424
441
 
425
- For insurance products that require a pre-contract, provide customer information:
442
+ On v9 with ERGO insurance the pre-contract needs the stay booking, so create it after `live.booking.book`. The policy holder is the booking's customer, whose birthdate, mobile number (`contactDetails.phone`) and a covered country (DE, AT, BE, DK, FR, IT, LU, NL, PL, CZ) the booking form has to collect. Every traveler needs a `birthday`, and ERGO is not offered for more than nine travelers:
426
443
 
427
444
  ```ts
428
- quote = await sdk.live.quote.createInsurancePreContract({
429
- quote,
430
- customerInformation: {
431
- destinationCountryCode: "DE",
432
- address: {
433
- street: "Main Street",
434
- housenumber: "1",
435
- postalcode: "12345",
436
- city: "Berlin",
437
- countryCode: "DE",
438
- },
439
- email: "jane@example.com",
440
- mobile: "+49123456789",
441
- },
442
- });
445
+ const booking = await sdk.live.booking.book({ quote, contact, relativeRedirectUrl });
446
+
447
+ quote = await sdk.live.quote.createInsurancePreContract({ quote, booking });
443
448
  ```
444
449
 
445
- Select an insurance payment method before booking insurance:
450
+ Calling it again for the same booking and plan returns the existing pre-contract. Show `quote.insurance.preContract.documents` to the guest before booking the insurance.
451
+
452
+ The booking result lists the SEPA debit option in `insurancePaymentOptions` as soon as an ERGO plan is selected. Select that payment method after the pre-contract and before booking insurance:
446
453
 
447
454
  ```ts
448
455
  quote = await sdk.live.quote.selectInsurancePayment({
@@ -454,7 +461,7 @@ quote = await sdk.live.quote.selectInsurancePayment({
454
461
  });
455
462
  ```
456
463
 
457
- After the rental booking is created, complete insurance booking with the opaque booking result. Keep the live result object; its private backend credentials are intentionally not serialized:
464
+ Complete insurance booking with the opaque booking result. Keep the live result object; its private backend credentials are intentionally not serialized:
458
465
 
459
466
  ```ts
460
467
  const insuranceBooking = await sdk.live.quote.bookInsurance({
@@ -466,7 +473,14 @@ const insuranceBooking = await sdk.live.quote.bookInsurance({
466
473
  This is a breaking change in 2.13.0. The former public `guestToken` input is no
467
474
  longer used; see `versions/2.13.0/MIGRATION.md`.
468
475
 
469
- `v9` supports real insurance option refresh, pre-contract, payment selection, and booking. `v10` currently returns a no-insurance placeholder and insurance actions resolve as not required.
476
+ `v9` supports real insurance option refresh, pre-contract, payment selection, and booking. With ERGO, issued policies can be read and revoked (rejects on other accounts); revoking rejects with ERGO's reason when ERGO refuses:
477
+
478
+ ```ts
479
+ const policy = await sdk.live.insurance.readPolicy({ policyNumber });
480
+ const revoked = await sdk.live.insurance.revokePolicy({ policyNumber, booking });
481
+ ```
482
+
483
+ When the Hub settings or the plan search of ERGO or URV fail, the quote shows insurance as not offered instead of failing. `v10` currently returns a no-insurance placeholder and insurance actions resolve as not required.
470
484
 
471
485
  ## Configuration
472
486
 
@@ -114,14 +114,54 @@ can mark it as German (`lang="de"`, a note):
114
114
  Only fields served in another language are listed; `descriptionFallbacks` is omitted when every
115
115
  text is in the requested locale, and always for `de-DE`.
116
116
 
117
+ Images and rooms say the same with one field each: `altFallback` on an image (its `alt` and
118
+ `title` are in that language) and `descriptionFallback` on a room (v10; v9 rooms have no
119
+ description). Both are omitted when the text is in the requested locale.
120
+
117
121
  - v10 reads every language of a text and takes the German one when the requested one is empty.
118
- - v9: the be-on! Hub already answers a missing translation with the German text, without saying
119
- so. For a locale other than `de-DE`, `getRentals` and `getRentalsByIds` also ask the Hub for
120
- the German texts and mark every field whose text is the same. This is one extra Hub query, of the texts alone, per
121
- 128 rentals (and one facility query with `facilityObjectGroupRelationAttributeId`), only for
122
- non-German locales.
122
+ - v9: per-language image titles are marked as they are read. The be-on! Hub answers every other
123
+ missing translation with the German text, without saying so: for a locale other than `de-DE`,
124
+ `getRentals` and `getRentalsByIds` also ask the Hub for the German descriptions and image
125
+ captions, and mark every one that is the same. This is one extra Hub query, of the texts alone,
126
+ per 128 rentals (and one facility query with `facilityObjectGroupRelationAttributeId`), only
127
+ for non-German locales.
128
+
129
+ Rental names, region names and attribute texts are not covered. Neither are review category
130
+ names: on v10 they are the questions of the agency's feedback form (`summary.categories[].label`),
131
+ one text per question; on v9 they come from the site's `v9Reviews.criteria` labels. See
132
+ `quote.md` for the quote's texts.
133
+
134
+ ### Facts: items with keys
135
+
136
+ Every list of rendered items also states what each item is, the same in every locale:
137
+
138
+ | Items (text) | Facts (key and value) |
139
+ | ------------------------------------ | ------------------------------------------------------------------ |
140
+ | `attributes[].subCategories[].items` | `attributes[].subCategories[].facts` |
141
+ | `vicinity[].items` | `vicinity[].facts` |
142
+ | `highlights` | `highlightFacts` (rentals, their `property`, search items) |
143
+ | `rooms[].attributes` | `rooms[].attributeFacts`; the room type's key is `rooms[].typeKey` |
144
+
145
+ `facts[i]` is `items[i]`: same order, same length.
146
+
147
+ ```ts
148
+ type RentalFact = {
149
+ readonly key: string; // "beachdistance", "wifi", "seaviewType", a custom attribute's key
150
+ readonly text: string; // the item as rendered: "Distance to beach: 300m"
151
+ readonly value?: boolean | number | string; // true, 300, "GOOD"
152
+ };
153
+ ```
154
+
155
+ - `key` is the backend's attribute key. v9 states v10's key where v10 has the attribute
156
+ (`loc_lake` becomes `locLake`), so one curated list works on both backends; a v9 attribute
157
+ several v10 attributes share keeps its v9 key (`beds`, `toiletries`).
158
+ - `value` is the raw value: `true` for a feature (v9 sends `1`, the SDK states `true`), a
159
+ number for a count, a distance in meters or an area in m², an option's key on v10 (`GOOD`),
160
+ its index on v9. A free text has no `value`, `text` carries it: a localized text, a v9 text attribute
161
+ and a custom attribute of type `string` change with the locale.
123
162
 
124
- Rental names, region names and attribute texts are not covered.
163
+ Curate, filter and pick icons by `key`; read distances and counts from `value`. Never match
164
+ `text` or `items`: they change with the locale and with `translationOverrides`.
125
165
 
126
166
  ### Capacity
127
167
 
@@ -621,15 +621,26 @@ Returns `Promise<RentalSearchOutput>`.
621
621
  Priced items and alternative periods share this optional discount shape:
622
622
 
623
623
  ```ts
624
+ type SearchMoney = {
625
+ readonly amount: number; // minor unit of the currency: 103339 = €1,033.39
626
+ readonly currency: string;
627
+ };
628
+
624
629
  type SearchDiscount = {
625
630
  readonly formattedOriginalTotal: string;
631
+ readonly originalTotal?: SearchMoney;
626
632
  readonly applied: readonly {
627
633
  readonly label: string;
628
634
  readonly formattedAmount: string;
635
+ readonly type?: string; // v10 only: EARLY_BIRD, LAST_MINUTE, …
629
636
  }[];
630
637
  };
631
638
  ```
632
639
 
640
+ Next to `formattedTotal`, a priced item or alternative period carries `total` as a
641
+ `SearchMoney`. Compare and calculate with the numbers, never by parsing the formatted
642
+ strings: their separators change with the locale ("1.033,39 €", "€1,033.39").
643
+
633
644
  Sample:
634
645
 
635
646
  ```json
@@ -654,12 +665,15 @@ Sample:
654
665
  ],
655
666
  "highlights": ["2 bedrooms", "WiFi", "Parking"],
656
667
  "formattedTotal": "1.111,00 €",
668
+ "total": { "amount": 111100, "currency": "EUR" },
657
669
  "discount": {
658
670
  "formattedOriginalTotal": "1.234,00 €",
671
+ "originalTotal": { "amount": 123400, "currency": "EUR" },
659
672
  "applied": [
660
673
  {
661
674
  "label": "Frühbucher-Rabatt",
662
- "formattedAmount": "-123,00 €"
675
+ "formattedAmount": "-123,00 €",
676
+ "type": "EARLY_BIRD"
663
677
  }
664
678
  ]
665
679
  }
@@ -710,12 +724,17 @@ Sample:
710
724
  ```
711
725
 
712
726
  Search items share the rental base fields and may include `scope`, `address`,
713
- `capacity` (counts as numbers, see the rentals instructions), `property`, `highlights`,
727
+ `capacity` (counts as numbers, see the rentals instructions), `property`, `highlights`
728
+ with `highlightFacts` (their keys and values, see "Facts" in the rentals instructions),
714
729
  and `formattedTotal`. A priced item or alternative period
715
730
  may also include `discount`. When it does, `formattedTotal` is the final price and
716
731
  `discount.formattedOriginalTotal` is the price before the applied discounts.
717
- Discount totals, labels, and amounts are already localized and formatted for the
718
- requested locale; backend numeric amounts and modifier type keys are not exposed.
732
+ Discount totals, labels, and amounts are localized and formatted for the requested
733
+ locale; `total` and `discount.originalTotal` state the same totals as numbers. On v10,
734
+ each applied discount also states its `type`, which stays the same in every locale while
735
+ its `label` is translated: filter or group campaigns by `type`, not by `label`. v9 states
736
+ no type; its discount `label` is the name entered in the PMS, as the be-on! Hub sends it, in
737
+ the PMS's language (German unless the agency entered English).
719
738
  `applied` may be empty when the backend supplies an original total without
720
739
  individual modifier lines. Exact-period results are returned in `items`;
721
740
  alternative-period suggestions are returned in root-level `alternatives`.
@@ -895,9 +914,9 @@ shape:
895
914
  - Empty basic-filter sets are sent as GraphQL `data: null`, allowing an empty
896
915
  query to browse the scoped searchable inventory without a dummy occupancy
897
916
  value.
898
- - `calc.total` becomes `formattedTotal`.
917
+ - `calc.total` becomes `formattedTotal` and `total` (in EUR).
899
918
  - `discount` is included only when `calc.oTotal` is greater than `calc.total`.
900
- - `calc.oTotal` becomes `discount.formattedOriginalTotal`.
919
+ - `calc.oTotal` becomes `discount.formattedOriginalTotal` and `discount.originalTotal`.
901
920
  - A non-empty `calc.discountName` becomes the label of the single `applied` entry.
902
921
  - The applied amount is the formatted negative difference
903
922
  `calc.total - calc.oTotal`.