@v-office/website-sdk 3.3.0 → 3.4.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/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { AdditionalServiceLimitExceeded, AvailabilityEndDateOption, AvailabilityGetInitialAvailabilityInput, AvailabilityGetInitialAvailabilityInput as AvailabilityGetInitialAvailabilityInput$1, AvailabilityGetInitialAvailabilityOutput, AvailabilityGetInitialAvailabilityOutput as AvailabilityGetInitialAvailabilityOutput$1, AvailabilityGetStartDateSelectedAvailabilityInput, AvailabilityGetStartDateSelectedAvailabilityInput as AvailabilityGetStartDateSelectedAvailabilityInput$1, AvailabilityGetStartDateSelectedAvailabilityOutput, AvailabilityGetStartDateSelectedAvailabilityOutput as AvailabilityGetStartDateSelectedAvailabilityOutput$1, AvailabilityService, BackendKind, BookingBankTransferDetails, BookingBankTransferDetails as BookingBankTransferDetails$1, BookingBookInput, BookingBookInput as BookingBookInput$1, BookingBookOutput, BookingBookOutput as BookingBookOutput$1, BookingPayment, BookingPaymentAlternative, BookingPaymentOption, BookingPaymentScheduleItem, BookingPaymentScheduleKind, BookingPaymentScheduleLine, BookingService, ContactService, ContactSubmitInput, ContactSubmitInput as ContactSubmitInput$1, ContactSubmitOutput, ContactSubmitOutput as ContactSubmitOutput$1, ContactSubmitValidationIssue, ContactSubmitValidationIssueCode, CoreSDKError, CoreSDKError as CMSError, CoreSDKError as CoreSDKError$1, CustomAttributeCatalog, CustomAttributeCatalogDefinitionInput, CustomAttributeCatalogInput, CustomAttributeCatalogSchema, CustomAttributeCategoryKey, CustomAttributeFilterCategoryKey, CustomAttributeFilterDefinition, CustomAttributeFilterDefinition as CustomAttributeFilterDefinition$1, CustomAttributeFilterExpression, CustomAttributeFilterLabel, CustomAttributeFilterNumericBounds, CustomAttributeFilterOption, CustomAttributeOverridesInput, CustomAttributeRegistry, CustomAttributeRegistrySnapshot, CustomAttributeRegistrySnapshot as CustomAttributeRegistrySnapshot$1, CustomAttributeSelection, DocumentsGetTermsAndPrivacyPolicyInput, DocumentsGetTermsAndPrivacyPolicyInput as DocumentsGetTermsAndPrivacyPolicyInput$1, DocumentsGetTermsAndPrivacyPolicyOutput, DocumentsGetTermsAndPrivacyPolicyOutput as DocumentsGetTermsAndPrivacyPolicyOutput$1, DocumentsService, FilterGetFiltersInput, FilterGetFiltersInput as FilterGetFiltersInput$1, FilterGetFiltersOutput, FilterGetFiltersOutput as FilterGetFiltersOutput$1, FilterService, GuestQuote, GuestQuote as GuestQuote$1, GuestQuoteInput, GuestQuoteInsurance, GuestQuoteResult, GuestQuoteSchema, GuestQuoteSelectionResult, GuestQuoteVoucher, InsuranceBookingOutput, InsuranceCustomerInformationInput, InsurancePaymentInformationInput, InsurancePaymentOptionOutput, InsurancePreContractOutput, InvalidAdditionalServiceQuantity, LocalDateString, Locale, Locale as Locale$1, LocaleSchema, Money, Money as Money$1, 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";
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, Money, Money as Money$1, 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, RentalGetRentalsOutputItem, 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";
@@ -139,6 +139,7 @@ type V9QuoteCreateInsurancePreContractInput = {
139
139
  };
140
140
  type V9InsuranceReadPolicyInput = {
141
141
  readonly policyNumber: string;
142
+ readonly booking: BookingBookOutput$1;
142
143
  };
143
144
  type V9InsuranceRevokePolicyInput = {
144
145
  readonly policyNumber: string;
@@ -167,6 +168,36 @@ type V9RentalsGetRentalsByIdsInput = {
167
168
  readonly rentalIds: ReadonlyArray<string>;
168
169
  };
169
170
  //#endregion
171
+ //#region src/legacy-v9/rental-offers.d.ts
172
+ type V9RentalOfferDiscount = {
173
+ readonly type: "percent";
174
+ readonly percent: number;
175
+ } | {
176
+ readonly type: "amount";
177
+ readonly amount: Money$1;
178
+ } | {
179
+ readonly type: "stayPay";
180
+ readonly stayNights: number;
181
+ readonly payNights: number;
182
+ };
183
+ type V9RentalOffer = {
184
+ /** The vOffice offer ID, the value the `offer` search filter takes. */
185
+ readonly id: string;
186
+ readonly name: string;
187
+ readonly discount: V9RentalOfferDiscount;
188
+ readonly minNights?: number;
189
+ /** Last minute: the arrival is at most this many days away. */
190
+ readonly arrivalWithinDays?: number;
191
+ /** `YYYY-MM-DD`. vOffice: the arrival is not before this day. */
192
+ readonly validFrom?: string;
193
+ /** `YYYY-MM-DD`. vOffice: the departure is not after this day. */
194
+ readonly validUntil?: string;
195
+ };
196
+ type V9RentalGetRentalsOutputItem = RentalGetRentalsOutputItem & {
197
+ readonly offers: ReadonlyArray<V9RentalOffer>;
198
+ };
199
+ type V9RentalGetRentalsOutput = ReadonlyArray<V9RentalGetRentalsOutputItem>;
200
+ //#endregion
170
201
  //#region src/legacy-v9/search-input.d.ts
171
202
  type V9SearchSearchSort = Exclude<SearchSearchSort$1, SearchSearchFieldSort$1>;
172
203
  type V9SearchSearchInput = Omit<SearchSearchInput$1, "sort"> & {
@@ -250,7 +281,11 @@ type WebsiteSDKV10Static = WebsiteSDKSharedStatic & {
250
281
  readonly getBankTransferDetails: () => Promise<ReadonlyArray<BookingBankTransferDetails$1>>;
251
282
  };
252
283
  };
253
- type WebsiteSDKV9Static = WebsiteSDKSharedStatic & {
284
+ type WebsiteSDKV9Static = Omit<WebsiteSDKSharedStatic, "rentals"> & {
285
+ readonly rentals: {
286
+ /** Each rental also carries its special offers, without a period. */
287
+ readonly getRentals: (input: RentalGetRentalsInput$1) => Promise<V9RentalGetRentalsOutput>;
288
+ };
254
289
  readonly videos: {
255
290
  readonly getVideos: (input?: V9VideosGetVideosInput) => Promise<ReadonlyArray<V9Video>>;
256
291
  };
@@ -305,7 +340,7 @@ type WebsiteSDKV9LiveVoucher = {
305
340
  readonly validate: (input: V9VoucherValidateInput) => Promise<V9VoucherValidateOutput>;
306
341
  };
307
342
  type WebsiteSDKV9LiveRentals = {
308
- readonly getRentalsByIds: (input: V9RentalsGetRentalsByIdsInput) => Promise<RentalGetRentalsOutput$1>;
343
+ readonly getRentalsByIds: (input: V9RentalsGetRentalsByIdsInput) => Promise<V9RentalGetRentalsOutput>;
309
344
  };
310
345
  type WebsiteSDKV9LiveQuote = Omit<WebsiteSDKSharedLive["quote"], "createInsurancePreContract"> & {
311
346
  /**
@@ -315,11 +350,15 @@ type WebsiteSDKV9LiveQuote = Omit<WebsiteSDKSharedLive["quote"], "createInsuranc
315
350
  readonly createInsurancePreContract: (input: V9QuoteCreateInsurancePreContractInput) => Promise<QuoteCreateInsurancePreContractOutput>;
316
351
  };
317
352
  type WebsiteSDKV9LiveInsurance = {
318
- /** Reads an ERGO policy. Rejects when the account does not use ERGO insurance. */
353
+ /**
354
+ * Reads the booking's active ERGO policy. Rejects when the booking has no active policy with
355
+ * this number, or when the account does not use ERGO insurance.
356
+ */
319
357
  readonly readPolicy: (input: V9InsuranceReadPolicyInput) => Promise<V9InsurancePolicy>;
320
358
  /**
321
- * Revokes an ERGO policy and, once ERGO has accepted, removes it from the booking. Rejects with
322
- * ERGO's reason when it refuses, or when the account does not use ERGO insurance.
359
+ * Revokes the booking's active ERGO policy. Rejects when the booking has no active policy with
360
+ * this number, with ERGO's reason when it refuses, or when the account does not use ERGO
361
+ * insurance.
323
362
  */
324
363
  readonly revokePolicy: (input: V9InsuranceRevokePolicyInput) => Promise<V9InsurancePolicy>;
325
364
  };
@@ -3372,7 +3411,7 @@ interface paths {
3372
3411
  };
3373
3412
  get?: never;
3374
3413
  put?: never;
3375
- /** Read ERGO/ERV insurance by policy number */
3414
+ /** Read the active ERGO/ERV insurance of a booking */
3376
3415
  post: operations["readErgoTravelCancellationInsurance"];
3377
3416
  delete?: never;
3378
3417
  options?: never;
@@ -3389,7 +3428,7 @@ interface paths {
3389
3428
  };
3390
3429
  get?: never;
3391
3430
  put?: never;
3392
- /** Cancel ERGO/ERV insurance by policy number */
3431
+ /** Cancel the active ERGO/ERV insurance of a booking */
3393
3432
  post: operations["cancelErgoTravelCancellationInsurance"];
3394
3433
  delete?: never;
3395
3434
  options?: never;
@@ -3404,11 +3443,10 @@ interface paths {
3404
3443
  path?: never;
3405
3444
  cookie?: never;
3406
3445
  };
3407
- /** Find a travel insurance booking */
3446
+ /** Find the active travel insurance booking of a booking */
3408
3447
  get: operations["findTravelInsuranceBooking"];
3409
3448
  put?: never;
3410
- /** Create or update a travel insurance booking */
3411
- post: operations["storeTravelInsuranceBooking"];
3449
+ post?: never;
3412
3450
  delete?: never;
3413
3451
  options?: never;
3414
3452
  head?: never;
@@ -3422,12 +3460,11 @@ interface paths {
3422
3460
  path?: never;
3423
3461
  cookie?: never;
3424
3462
  };
3425
- /** Get a travel insurance booking */
3463
+ /** Get the active travel insurance booking of a booking */
3426
3464
  get: operations["getTravelInsuranceBooking"];
3427
3465
  put?: never;
3428
3466
  post?: never;
3429
- /** Delete a travel insurance booking */
3430
- delete: operations["deleteTravelInsuranceBooking"];
3467
+ delete?: never;
3431
3468
  options?: never;
3432
3469
  head?: never;
3433
3470
  patch?: never;
@@ -3907,6 +3944,16 @@ interface components {
3907
3944
  open_in_new_tab?: boolean;
3908
3945
  is_offer?: boolean;
3909
3946
  };
3947
+ HubError: {
3948
+ message: string;
3949
+ code?: string;
3950
+ };
3951
+ ErgoBookingIdentity: {
3952
+ guest_token: string;
3953
+ reservation_number: string;
3954
+ /** @description vOffice booking id; may be omitted while the reservation has exactly one booking. */
3955
+ booking_id?: number;
3956
+ };
3910
3957
  ErgoCommonFields: {
3911
3958
  msg_id?: string | null;
3912
3959
  echo_token?: string | null;
@@ -3931,7 +3978,7 @@ interface components {
3931
3978
  /** @enum {string} */
3932
3979
  list_type?: "crs" | "web" | "ava" | "DE_TID";
3933
3980
  };
3934
- ErgoCreatePreContractRequest: components["schemas"]["ErgoCommonFields"] & components["schemas"]["ErgoTripAndCustomerRequest"] & {
3981
+ ErgoCreatePreContractRequest: components["schemas"]["ErgoCommonFields"] & components["schemas"]["ErgoBookingIdentity"] & components["schemas"]["ErgoTripAndCustomerRequest"] & {
3935
3982
  /** @description Required when `plan_code` is not supplied. */
3936
3983
  tariff_code?: string | null;
3937
3984
  /** @description Required when `tariff_code` is not supplied. */
@@ -3943,7 +3990,7 @@ interface components {
3943
3990
  /** Format: email */
3944
3991
  email: string;
3945
3992
  };
3946
- ErgoBookRequest: components["schemas"]["ErgoCommonFields"] & components["schemas"]["ErgoTripAndCustomerRequest"] & {
3993
+ ErgoBookRequest: components["schemas"]["ErgoCommonFields"] & components["schemas"]["ErgoBookingIdentity"] & components["schemas"]["ErgoTripAndCustomerRequest"] & {
3947
3994
  /** @description Required when `plan_code` is not supplied. */
3948
3995
  tariff_code?: string | null;
3949
3996
  /** @description Required when `tariff_code` is not supplied. */
@@ -3972,9 +4019,7 @@ interface components {
3972
4019
  mobile: string;
3973
4020
  fax?: string | null;
3974
4021
  };
3975
- ErgoPolicyNumberRequest: components["schemas"]["ErgoCommonFields"] & {
3976
- policy_number: string;
3977
- };
4022
+ ErgoBookingIdentityRequest: components["schemas"]["ErgoCommonFields"] & components["schemas"]["ErgoBookingIdentity"];
3978
4023
  ErgoPerson: {
3979
4024
  name_title?: string | null;
3980
4025
  name_prefix: string;
@@ -4004,18 +4049,16 @@ interface components {
4004
4049
  /** Format: email */
4005
4050
  email?: string;
4006
4051
  };
4007
- TravelInsuranceBookingStoreRequest: {
4008
- guest_token: string;
4009
- booking_number: string;
4010
- travel_insurance_number?: string | null;
4011
- pre_contractual_information_id?: string | null;
4012
- selected_plan_code?: string | null;
4013
- };
4014
4052
  TravelInsuranceBooking: {
4015
4053
  id?: number;
4016
4054
  voffice_member_id?: number;
4017
4055
  guest_token?: string;
4018
- booking_number?: string;
4056
+ reservation_number?: string;
4057
+ booking_id?: number | null;
4058
+ /** @description `PRE_CONTRACT`, `BOOKED` or `CANCELLED`. */
4059
+ status?: string;
4060
+ /** Format: date-time */
4061
+ cancelled_at?: string | null;
4019
4062
  travel_insurance_number?: string | null;
4020
4063
  additional_booking_data?: {
4021
4064
  [key: string]: unknown;
@@ -4058,6 +4101,42 @@ interface components {
4058
4101
  } | string;
4059
4102
  };
4060
4103
  };
4104
+ /** @description `booking_not_confirmed`: vOffice does not confirm the token, reservation or booking. */
4105
+ BookingNotConfirmed: {
4106
+ headers: {
4107
+ [name: string]: unknown;
4108
+ };
4109
+ content: {
4110
+ "application/json": components["schemas"]["HubError"];
4111
+ };
4112
+ };
4113
+ /** @description `policy_not_found`: the booking has no active policy. */
4114
+ PolicyNotFound: {
4115
+ headers: {
4116
+ [name: string]: unknown;
4117
+ };
4118
+ content: {
4119
+ "application/json": components["schemas"]["HubError"];
4120
+ };
4121
+ };
4122
+ /** @description `policy_active` (the booking already has an active policy) or `request_in_progress` (another request for the same booking is running). */
4123
+ ErgoConflict: {
4124
+ headers: {
4125
+ [name: string]: unknown;
4126
+ };
4127
+ content: {
4128
+ "application/json": components["schemas"]["HubError"];
4129
+ };
4130
+ };
4131
+ /** @description `voffice_unavailable`: the booking could not be verified. */
4132
+ VofficeUnavailable: {
4133
+ headers: {
4134
+ [name: string]: unknown;
4135
+ };
4136
+ content: {
4137
+ "application/json": components["schemas"]["HubError"];
4138
+ };
4139
+ };
4061
4140
  /** @description Response returned by the ERGO/ERV SOAP client. */
4062
4141
  ErgoResponse: {
4063
4142
  headers: {
@@ -4075,8 +4154,11 @@ interface components {
4075
4154
  UnitId: number;
4076
4155
  /** @description Language code passed through to vOffice where supported. */
4077
4156
  Lang: string;
4078
- /** @description Travel insurance booking number. */
4079
- BookingNumber: string;
4157
+ /** @description vOffice reservation number. */
4158
+ ReservationNumber: string;
4159
+ GuestToken: string;
4160
+ /** @description vOffice booking id; may be omitted while the reservation has exactly one booking. */
4161
+ BookingId: number;
4080
4162
  ErgoMsgId: string;
4081
4163
  ErgoEchoToken: string;
4082
4164
  ErgoTransactionContext: string;
@@ -4628,7 +4710,10 @@ interface operations {
4628
4710
  responses: {
4629
4711
  200: components["responses"]["ErgoResponse"];
4630
4712
  401: components["responses"]["Unauthorized"];
4713
+ 403: components["responses"]["BookingNotConfirmed"];
4714
+ 409: components["responses"]["ErgoConflict"];
4631
4715
  422: components["responses"]["ValidationError"];
4716
+ 503: components["responses"]["VofficeUnavailable"];
4632
4717
  };
4633
4718
  };
4634
4719
  readErgoPreContract: {
@@ -4664,7 +4749,10 @@ interface operations {
4664
4749
  responses: {
4665
4750
  200: components["responses"]["ErgoResponse"];
4666
4751
  401: components["responses"]["Unauthorized"];
4752
+ 403: components["responses"]["BookingNotConfirmed"];
4753
+ 409: components["responses"]["ErgoConflict"];
4667
4754
  422: components["responses"]["ValidationError"];
4755
+ 503: components["responses"]["VofficeUnavailable"];
4668
4756
  };
4669
4757
  };
4670
4758
  readErgoTravelCancellationInsurance: {
@@ -4676,13 +4764,17 @@ interface operations {
4676
4764
  };
4677
4765
  requestBody: {
4678
4766
  content: {
4679
- "application/json": components["schemas"]["ErgoPolicyNumberRequest"];
4767
+ "application/json": components["schemas"]["ErgoBookingIdentityRequest"];
4680
4768
  };
4681
4769
  };
4682
4770
  responses: {
4683
4771
  200: components["responses"]["ErgoResponse"];
4684
4772
  401: components["responses"]["Unauthorized"];
4773
+ 403: components["responses"]["BookingNotConfirmed"];
4774
+ 404: components["responses"]["PolicyNotFound"];
4775
+ 409: components["responses"]["ErgoConflict"];
4685
4776
  422: components["responses"]["ValidationError"];
4777
+ 503: components["responses"]["VofficeUnavailable"];
4686
4778
  };
4687
4779
  };
4688
4780
  cancelErgoTravelCancellationInsurance: {
@@ -4694,20 +4786,26 @@ interface operations {
4694
4786
  };
4695
4787
  requestBody: {
4696
4788
  content: {
4697
- "application/json": components["schemas"]["ErgoPolicyNumberRequest"];
4789
+ "application/json": components["schemas"]["ErgoBookingIdentityRequest"];
4698
4790
  };
4699
4791
  };
4700
4792
  responses: {
4701
4793
  200: components["responses"]["ErgoResponse"];
4702
4794
  401: components["responses"]["Unauthorized"];
4795
+ 403: components["responses"]["BookingNotConfirmed"];
4796
+ 404: components["responses"]["PolicyNotFound"];
4797
+ 409: components["responses"]["ErgoConflict"];
4703
4798
  422: components["responses"]["ValidationError"];
4799
+ 503: components["responses"]["VofficeUnavailable"];
4704
4800
  };
4705
4801
  };
4706
4802
  findTravelInsuranceBooking: {
4707
4803
  parameters: {
4708
4804
  query: {
4709
- guest_token: string;
4710
- booking_number: string;
4805
+ guest_token: components["parameters"]["GuestToken"];
4806
+ reservation_number: string;
4807
+ /** @description vOffice booking id; may be omitted while the reservation has exactly one booking. */
4808
+ booking_id?: components["parameters"]["BookingId"];
4711
4809
  };
4712
4810
  header?: never;
4713
4811
  path?: never;
@@ -4715,32 +4813,7 @@ interface operations {
4715
4813
  };
4716
4814
  requestBody?: never;
4717
4815
  responses: {
4718
- /** @description Matching booking or null */
4719
- 200: {
4720
- headers: {
4721
- [name: string]: unknown;
4722
- };
4723
- content: {
4724
- "application/json": components["schemas"]["TravelInsuranceBooking"] | null;
4725
- };
4726
- };
4727
- 401: components["responses"]["Unauthorized"];
4728
- };
4729
- };
4730
- storeTravelInsuranceBooking: {
4731
- parameters: {
4732
- query?: never;
4733
- header?: never;
4734
- path?: never;
4735
- cookie?: never;
4736
- };
4737
- requestBody: {
4738
- content: {
4739
- "application/json": components["schemas"]["TravelInsuranceBookingStoreRequest"];
4740
- };
4741
- };
4742
- responses: {
4743
- /** @description Created or updated booking */
4816
+ /** @description The active row, or an empty object when the booking has none. */
4744
4817
  200: {
4745
4818
  headers: {
4746
4819
  [name: string]: unknown;
@@ -4749,24 +4822,23 @@ interface operations {
4749
4822
  "application/json": components["schemas"]["TravelInsuranceBooking"];
4750
4823
  };
4751
4824
  };
4752
- /** @description Missing `guest_token` or `booking_number`, or invalid API key. */
4753
- 401: {
4754
- headers: {
4755
- [name: string]: unknown;
4756
- };
4757
- content?: never;
4758
- };
4825
+ 401: components["responses"]["Unauthorized"];
4826
+ 403: components["responses"]["BookingNotConfirmed"];
4827
+ 422: components["responses"]["ValidationError"];
4828
+ 503: components["responses"]["VofficeUnavailable"];
4759
4829
  };
4760
4830
  };
4761
4831
  getTravelInsuranceBooking: {
4762
4832
  parameters: {
4763
4833
  query: {
4764
- guest_token: string;
4834
+ guest_token: components["parameters"]["GuestToken"];
4835
+ /** @description vOffice booking id; may be omitted while the reservation has exactly one booking. */
4836
+ booking_id?: components["parameters"]["BookingId"];
4765
4837
  };
4766
4838
  header?: never;
4767
4839
  path: {
4768
- /** @description Travel insurance booking number. */
4769
- travel_insurance_booking: components["parameters"]["BookingNumber"];
4840
+ /** @description vOffice reservation number. */
4841
+ travel_insurance_booking: components["parameters"]["ReservationNumber"];
4770
4842
  };
4771
4843
  cookie?: never;
4772
4844
  };
@@ -4781,36 +4853,10 @@ interface operations {
4781
4853
  "application/json": components["schemas"]["TravelInsuranceBooking"];
4782
4854
  };
4783
4855
  };
4856
+ 403: components["responses"]["BookingNotConfirmed"];
4784
4857
  404: components["responses"]["NotFound"];
4785
- };
4786
- };
4787
- deleteTravelInsuranceBooking: {
4788
- parameters: {
4789
- query: {
4790
- guest_token: string;
4791
- };
4792
- header?: never;
4793
- path: {
4794
- /** @description Travel insurance booking number. */
4795
- travel_insurance_booking: components["parameters"]["BookingNumber"];
4796
- };
4797
- cookie?: never;
4798
- };
4799
- requestBody?: never;
4800
- responses: {
4801
- /** @description Delete result */
4802
- 200: {
4803
- headers: {
4804
- [name: string]: unknown;
4805
- };
4806
- content: {
4807
- "application/json": {
4808
- success: boolean;
4809
- policy?: string | null;
4810
- };
4811
- };
4812
- };
4813
- 404: components["responses"]["NotFound"];
4858
+ 422: components["responses"]["ValidationError"];
4859
+ 503: components["responses"]["VofficeUnavailable"];
4814
4860
  };
4815
4861
  };
4816
4862
  listUnitServicePrices: {
@@ -5133,6 +5179,21 @@ export declare const ErgoBankSchema: Schema.Struct<{
5133
5179
  readonly surname: Schema.optionalKey<Schema.String>;
5134
5180
  }>;
5135
5181
  export type ErgoBank = typeof ErgoBankSchema.Type;
5182
+ export declare const ErgoBookingIdentitySchema: Schema.Struct<{
5183
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
5184
+ readonly guest_token: Schema.String;
5185
+ readonly reservation_number: Schema.String;
5186
+ }>;
5187
+ export type ErgoBookingIdentity = typeof ErgoBookingIdentitySchema.Type;
5188
+ export declare const ErgoBookingIdentityRequestSchema: Schema.Struct<{
5189
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
5190
+ readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5191
+ readonly guest_token: Schema.String;
5192
+ readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5193
+ readonly reservation_number: Schema.String;
5194
+ readonly transaction_context: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5195
+ }>;
5196
+ export type ErgoBookingIdentityRequest = typeof ErgoBookingIdentityRequestSchema.Type;
5136
5197
  export declare const ErgoBookRequestSchema: Schema.Struct<{
5137
5198
  readonly address: Schema.suspend<Schema.Struct<{
5138
5199
  readonly city_name: Schema.String;
@@ -5155,11 +5216,13 @@ export declare const ErgoBookRequestSchema: Schema.Struct<{
5155
5216
  readonly street_and_nr: Schema.optionalKey<Schema.String>;
5156
5217
  readonly surname: Schema.optionalKey<Schema.String>;
5157
5218
  }>>;
5219
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
5158
5220
  readonly destination_country: Schema.String;
5159
5221
  readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5160
5222
  readonly email: Schema.String;
5161
5223
  readonly end_date: Schema.String;
5162
5224
  readonly fax: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5225
+ readonly guest_token: Schema.String;
5163
5226
  readonly guests: Schema.Number;
5164
5227
  readonly mobile: Schema.String;
5165
5228
  readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
@@ -5173,6 +5236,7 @@ export declare const ErgoBookRequestSchema: Schema.Struct<{
5173
5236
  }>>;
5174
5237
  readonly pre_contractual_information_id: Schema.String;
5175
5238
  readonly rebook_policy_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5239
+ readonly reservation_number: Schema.String;
5176
5240
  readonly start_date: Schema.String;
5177
5241
  readonly tariff_code: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5178
5242
  readonly total_amount: Schema.Number;
@@ -5202,11 +5266,13 @@ export declare const ErgoCreatePreContractRequestSchema: Schema.Struct<{
5202
5266
  readonly postal_code: Schema.String;
5203
5267
  readonly street_and_nr: Schema.String;
5204
5268
  }>>;
5269
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
5205
5270
  readonly destination_country: Schema.String;
5206
5271
  readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5207
5272
  readonly email: Schema.String;
5208
5273
  readonly end_date: Schema.String;
5209
5274
  readonly fax: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5275
+ readonly guest_token: Schema.String;
5210
5276
  readonly guests: Schema.Number;
5211
5277
  readonly mobile: Schema.String;
5212
5278
  readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
@@ -5219,6 +5285,7 @@ export declare const ErgoCreatePreContractRequestSchema: Schema.Struct<{
5219
5285
  readonly surname: Schema.String;
5220
5286
  }>>;
5221
5287
  readonly rebook_policy_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5288
+ readonly reservation_number: Schema.String;
5222
5289
  readonly start_date: Schema.String;
5223
5290
  readonly tariff_code: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5224
5291
  readonly total_amount: Schema.Number;
@@ -5257,13 +5324,6 @@ export declare const ErgoPlanSearchRequestSchema: Schema.Struct<{
5257
5324
  readonly traveler_count: Schema.Number;
5258
5325
  }>;
5259
5326
  export type ErgoPlanSearchRequest = typeof ErgoPlanSearchRequestSchema.Type;
5260
- export declare const ErgoPolicyNumberRequestSchema: Schema.Struct<{
5261
- readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5262
- readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5263
- readonly policy_number: Schema.String;
5264
- readonly transaction_context: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5265
- }>;
5266
- export type ErgoPolicyNumberRequest = typeof ErgoPolicyNumberRequestSchema.Type;
5267
5327
  export declare const ErgoReadPreContractRequestSchema: Schema.Struct<{
5268
5328
  readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5269
5329
  readonly email: Schema.String;
@@ -5313,6 +5373,11 @@ export declare const FacilityListResponseSchema: Schema.Struct<{
5313
5373
  readonly ok: Schema.Boolean;
5314
5374
  }>;
5315
5375
  export type FacilityListResponse = typeof FacilityListResponseSchema.Type;
5376
+ export declare const HubErrorSchema: Schema.Struct<{
5377
+ readonly code: Schema.optionalKey<Schema.String>;
5378
+ readonly message: Schema.String;
5379
+ }>;
5380
+ export type HubError = typeof HubErrorSchema.Type;
5316
5381
  export declare const OnOfficeUnitSchema: Schema.Struct<{
5317
5382
  readonly currency: Schema.optionalKey<Schema.NullOr<Schema.String>>;
5318
5383
  readonly description: Schema.optionalKey<Schema.NullOr<Schema.String>>;
@@ -6191,10 +6256,13 @@ export declare const TileTagSchema: Schema.Union<readonly [Schema.Literal<"guest
6191
6256
  export type TileTag = typeof TileTagSchema.Type;
6192
6257
  export declare const TravelInsuranceBookingSchema: Schema.Struct<{
6193
6258
  readonly additional_booking_data: Schema.optionalKey<Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>>;
6194
- readonly booking_number: Schema.optionalKey<Schema.String>;
6259
+ readonly booking_id: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
6260
+ readonly cancelled_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6195
6261
  readonly created_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6196
6262
  readonly guest_token: Schema.optionalKey<Schema.String>;
6197
6263
  readonly id: Schema.optionalKey<Schema.Number>;
6264
+ readonly reservation_number: Schema.optionalKey<Schema.String>;
6265
+ readonly status: Schema.optionalKey<Schema.String>;
6198
6266
  readonly travel_insurance_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6199
6267
  readonly updated_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6200
6268
  readonly voffice_member_id: Schema.optionalKey<Schema.Number>;
@@ -6203,14 +6271,6 @@ export declare const TravelInsuranceBookingSchema: Schema.Struct<{
6203
6271
  readonly webhook_last_response: Schema.optionalKey<Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>>;
6204
6272
  }>;
6205
6273
  export type TravelInsuranceBooking = typeof TravelInsuranceBookingSchema.Type;
6206
- export declare const TravelInsuranceBookingStoreRequestSchema: Schema.Struct<{
6207
- readonly booking_number: Schema.String;
6208
- readonly guest_token: Schema.String;
6209
- readonly pre_contractual_information_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6210
- readonly selected_plan_code: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6211
- readonly travel_insurance_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6212
- }>;
6213
- export type TravelInsuranceBookingStoreRequest = typeof TravelInsuranceBookingStoreRequestSchema.Type;
6214
6274
  export declare const UnitIdsResponseSchema: Schema.Struct<{
6215
6275
  readonly data: Schema.mutable<Schema.$Array<Schema.Number>>;
6216
6276
  readonly ok: Schema.Boolean;
@@ -6326,11 +6386,13 @@ export declare const V1_OPERATIONS: {
6326
6386
  readonly street_and_nr: Schema.optionalKey<Schema.String>;
6327
6387
  readonly surname: Schema.optionalKey<Schema.String>;
6328
6388
  }>>;
6389
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
6329
6390
  readonly destination_country: Schema.String;
6330
6391
  readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6331
6392
  readonly email: Schema.String;
6332
6393
  readonly end_date: Schema.String;
6333
6394
  readonly fax: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6395
+ readonly guest_token: Schema.String;
6334
6396
  readonly guests: Schema.Number;
6335
6397
  readonly mobile: Schema.String;
6336
6398
  readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
@@ -6344,6 +6406,7 @@ export declare const V1_OPERATIONS: {
6344
6406
  }>>;
6345
6407
  readonly pre_contractual_information_id: Schema.String;
6346
6408
  readonly rebook_policy_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6409
+ readonly reservation_number: Schema.String;
6347
6410
  readonly start_date: Schema.String;
6348
6411
  readonly tariff_code: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6349
6412
  readonly total_amount: Schema.Number;
@@ -6369,9 +6432,11 @@ export declare const V1_OPERATIONS: {
6369
6432
  readonly queryParameters: readonly [];
6370
6433
  readonly requestBodyContentType: "application/json";
6371
6434
  readonly requestBodySchema: Schema.suspend<Schema.Struct<{
6435
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
6372
6436
  readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6437
+ readonly guest_token: Schema.String;
6373
6438
  readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6374
- readonly policy_number: Schema.String;
6439
+ readonly reservation_number: Schema.String;
6375
6440
  readonly transaction_context: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6376
6441
  }>>;
6377
6442
  readonly responseStatus: "200";
@@ -6392,11 +6457,13 @@ export declare const V1_OPERATIONS: {
6392
6457
  readonly postal_code: Schema.String;
6393
6458
  readonly street_and_nr: Schema.String;
6394
6459
  }>>;
6460
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
6395
6461
  readonly destination_country: Schema.String;
6396
6462
  readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6397
6463
  readonly email: Schema.String;
6398
6464
  readonly end_date: Schema.String;
6399
6465
  readonly fax: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6466
+ readonly guest_token: Schema.String;
6400
6467
  readonly guests: Schema.Number;
6401
6468
  readonly mobile: Schema.String;
6402
6469
  readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
@@ -6409,6 +6476,7 @@ export declare const V1_OPERATIONS: {
6409
6476
  readonly surname: Schema.String;
6410
6477
  }>>;
6411
6478
  readonly rebook_policy_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6479
+ readonly reservation_number: Schema.String;
6412
6480
  readonly start_date: Schema.String;
6413
6481
  readonly tariff_code: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6414
6482
  readonly total_amount: Schema.Number;
@@ -6427,18 +6495,6 @@ export declare const V1_OPERATIONS: {
6427
6495
  readonly responseContentType: "application/json";
6428
6496
  readonly responseSchema: Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>;
6429
6497
  };
6430
- readonly deleteTravelInsuranceBooking: {
6431
- readonly method: "DELETE";
6432
- readonly path: "/TravelInsuranceBooking/{travel_insurance_booking}";
6433
- readonly pathParameters: readonly ["travel_insurance_booking"];
6434
- readonly queryParameters: readonly ["guest_token"];
6435
- readonly responseStatus: "200";
6436
- readonly responseContentType: "application/json";
6437
- readonly responseSchema: Schema.Struct<{
6438
- readonly policy: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6439
- readonly success: Schema.Boolean;
6440
- }>;
6441
- };
6442
6498
  readonly downloadTravelInsurancePdf: {
6443
6499
  readonly method: "GET";
6444
6500
  readonly path: "/getTravellInsuranceDownload";
@@ -6452,22 +6508,25 @@ export declare const V1_OPERATIONS: {
6452
6508
  readonly method: "GET";
6453
6509
  readonly path: "/TravelInsuranceBooking";
6454
6510
  readonly pathParameters: readonly [];
6455
- readonly queryParameters: readonly ["guest_token", "booking_number"];
6511
+ readonly queryParameters: readonly ["guest_token", "reservation_number", "booking_id"];
6456
6512
  readonly responseStatus: "200";
6457
6513
  readonly responseContentType: "application/json";
6458
- readonly responseSchema: Schema.Union<readonly [Schema.suspend<Schema.Struct<{
6514
+ readonly responseSchema: Schema.suspend<Schema.Struct<{
6459
6515
  readonly additional_booking_data: Schema.optionalKey<Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>>;
6460
- readonly booking_number: Schema.optionalKey<Schema.String>;
6516
+ readonly booking_id: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
6517
+ readonly cancelled_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6461
6518
  readonly created_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6462
6519
  readonly guest_token: Schema.optionalKey<Schema.String>;
6463
6520
  readonly id: Schema.optionalKey<Schema.Number>;
6521
+ readonly reservation_number: Schema.optionalKey<Schema.String>;
6522
+ readonly status: Schema.optionalKey<Schema.String>;
6464
6523
  readonly travel_insurance_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6465
6524
  readonly updated_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6466
6525
  readonly voffice_member_id: Schema.optionalKey<Schema.Number>;
6467
6526
  readonly webhook_attempts: Schema.optionalKey<Schema.Number>;
6468
6527
  readonly webhook_executed_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6469
6528
  readonly webhook_last_response: Schema.optionalKey<Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>>;
6470
- }>>, Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>]>;
6529
+ }>>;
6471
6530
  };
6472
6531
  readonly getCurrentMember: {
6473
6532
  readonly method: "GET";
@@ -6560,15 +6619,18 @@ export declare const V1_OPERATIONS: {
6560
6619
  readonly method: "GET";
6561
6620
  readonly path: "/TravelInsuranceBooking/{travel_insurance_booking}";
6562
6621
  readonly pathParameters: readonly ["travel_insurance_booking"];
6563
- readonly queryParameters: readonly ["guest_token"];
6622
+ readonly queryParameters: readonly ["guest_token", "booking_id"];
6564
6623
  readonly responseStatus: "200";
6565
6624
  readonly responseContentType: "application/json";
6566
6625
  readonly responseSchema: Schema.suspend<Schema.Struct<{
6567
6626
  readonly additional_booking_data: Schema.optionalKey<Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>>;
6568
- readonly booking_number: Schema.optionalKey<Schema.String>;
6627
+ readonly booking_id: Schema.optionalKey<Schema.NullOr<Schema.Number>>;
6628
+ readonly cancelled_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6569
6629
  readonly created_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6570
6630
  readonly guest_token: Schema.optionalKey<Schema.String>;
6571
6631
  readonly id: Schema.optionalKey<Schema.Number>;
6632
+ readonly reservation_number: Schema.optionalKey<Schema.String>;
6633
+ readonly status: Schema.optionalKey<Schema.String>;
6572
6634
  readonly travel_insurance_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6573
6635
  readonly updated_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
6574
6636
  readonly voffice_member_id: Schema.optionalKey<Schema.Number>;
@@ -7107,9 +7169,11 @@ export declare const V1_OPERATIONS: {
7107
7169
  readonly queryParameters: readonly [];
7108
7170
  readonly requestBodyContentType: "application/json";
7109
7171
  readonly requestBodySchema: Schema.suspend<Schema.Struct<{
7172
+ readonly booking_id: Schema.optionalKey<Schema.Number>;
7110
7173
  readonly echo_token: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7174
+ readonly guest_token: Schema.String;
7111
7175
  readonly msg_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7112
- readonly policy_number: Schema.String;
7176
+ readonly reservation_number: Schema.String;
7113
7177
  readonly transaction_context: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7114
7178
  }>>;
7115
7179
  readonly responseStatus: "200";
@@ -7140,35 +7204,6 @@ export declare const V1_OPERATIONS: {
7140
7204
  readonly responseContentType: "application/json";
7141
7205
  readonly responseSchema: Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>;
7142
7206
  };
7143
- readonly storeTravelInsuranceBooking: {
7144
- readonly method: "POST";
7145
- readonly path: "/TravelInsuranceBooking";
7146
- readonly pathParameters: readonly [];
7147
- readonly queryParameters: readonly [];
7148
- readonly requestBodyContentType: "application/json";
7149
- readonly requestBodySchema: Schema.suspend<Schema.Struct<{
7150
- readonly booking_number: Schema.String;
7151
- readonly guest_token: Schema.String;
7152
- readonly pre_contractual_information_id: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7153
- readonly selected_plan_code: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7154
- readonly travel_insurance_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7155
- }>>;
7156
- readonly responseStatus: "200";
7157
- readonly responseContentType: "application/json";
7158
- readonly responseSchema: Schema.suspend<Schema.Struct<{
7159
- readonly additional_booking_data: Schema.optionalKey<Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>>;
7160
- readonly booking_number: Schema.optionalKey<Schema.String>;
7161
- readonly created_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7162
- readonly guest_token: Schema.optionalKey<Schema.String>;
7163
- readonly id: Schema.optionalKey<Schema.Number>;
7164
- readonly travel_insurance_number: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7165
- readonly updated_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7166
- readonly voffice_member_id: Schema.optionalKey<Schema.Number>;
7167
- readonly webhook_attempts: Schema.optionalKey<Schema.Number>;
7168
- readonly webhook_executed_at: Schema.optionalKey<Schema.NullOr<Schema.String>>;
7169
- readonly webhook_last_response: Schema.optionalKey<Schema.NullOr<Schema.decodeTo<Schema.$Record<Schema.String, Schema.Unknown>, Schema.Unknown, never, never>>>;
7170
- }>>;
7171
- };
7172
7207
  readonly updateDocumentStatus: {
7173
7208
  readonly method: "PATCH";
7174
7209
  readonly path: "/Documents/{document}";
@@ -7952,8 +7987,16 @@ type KnownVofficeFeedbackDataAttribute = KnownDataAttribute<KnownVofficeFeedback
7952
7987
  /** Known structure of VofficeOffer.data attributes. */
7953
7988
  declare const VofficeOfferDataFieldSchemas: {
7954
7989
  readonly name: Schema.String;
7955
- readonly description: Schema.String;
7956
- readonly discount: Schema.Number;
7990
+ readonly description: Schema.NullOr<Schema.String>;
7991
+ readonly type: Schema.NullOr<Schema.String>;
7992
+ readonly discountType: Schema.String;
7993
+ readonly value: Schema.Number;
7994
+ readonly minStay: Schema.NullOr<Schema.Number>;
7995
+ readonly timeSpan: Schema.NullOr<Schema.Number>;
7996
+ readonly voucherCode: Schema.NullOr<Schema.String>;
7997
+ readonly fromdate: Schema.NullOr<Schema.String>;
7998
+ readonly tilldate: Schema.NullOr<Schema.String>;
7999
+ readonly visible4interfaces: Schema.Boolean;
7957
8000
  };
7958
8001
  type KnownVofficeOfferData = KnownJsonData<typeof VofficeOfferDataFieldSchemas>;
7959
8002
  type ParsedVofficeOfferData = ParsedJsonData<KnownVofficeOfferData>;
@@ -8010,4 +8053,4 @@ export type RentalRentalsOutput = RentalGetRentalsOutput$1[number];
8010
8053
  export type RentalSearchInput = SearchSearchInput$1;
8011
8054
  export type RentalSearchOutput = SearchSearchOutput$1;
8012
8055
  //#endregion
8013
- 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 Money, 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 };
8056
+ 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 Money, 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 V9RentalGetRentalsOutput, type V9RentalGetRentalsOutputItem, type V9RentalOffer, type V9RentalOfferDiscount, 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 };