@revolugo/booking-api-client 7.13.1-alpha.10 → 7.13.1-alpha.11
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/README.md +1 -2
- package/dist/types/booking-api-client.d.ts +11 -11
- package/dist/types/v1/apis/ResourceBookingPoliciesApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceBookingsApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelImagesApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelOfferRequestsApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelOffersApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelRoomOfferImagesApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelRoomOfferRequestsApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelRoomOffersApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelRoomingListGuestsApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelRoomingListsApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelsApi.d.ts +1 -1
- package/dist/types/v1/models/AllowedPaymentMethodApi.d.ts +4 -4
- package/dist/types/v1/models/AllowedPaymentMethodPayLaterApi.d.ts +1 -1
- package/dist/types/v1/models/BookingApi.d.ts +12 -12
- package/dist/types/v1/models/BookingCreateApi.d.ts +5 -5
- package/dist/types/v1/models/BookingCreateApiGuestsListInner.d.ts +1 -1
- package/dist/types/v1/models/BookingPoliciesApi.d.ts +4 -4
- package/dist/types/v1/models/BookingPoliciesCreateApi.d.ts +1 -1
- package/dist/types/v1/models/BookingsApiResponse.d.ts +2 -2
- package/dist/types/v1/models/ContactPersonApi.d.ts +3 -3
- package/dist/types/v1/models/ContactPersonOrganizationApi.d.ts +1 -1
- package/dist/types/v1/models/HotelApi.d.ts +6 -6
- package/dist/types/v1/models/HotelOfferApi.d.ts +8 -8
- package/dist/types/v1/models/HotelOfferRequestApiResponse.d.ts +2 -2
- package/dist/types/v1/models/HotelOfferRequestCreateApi.d.ts +1 -1
- package/dist/types/v1/models/HotelOffersApiResponse.d.ts +3 -3
- package/dist/types/v1/models/HotelOffersDataApiResponse.d.ts +2 -2
- package/dist/types/v1/models/HotelRoomOfferApi.d.ts +7 -7
- package/dist/types/v1/models/HotelRoomOfferApiHotelRoomsInner.d.ts +2 -2
- package/dist/types/v1/models/HotelRoomOfferApiResponse.d.ts +2 -2
- package/dist/types/v1/models/HotelRoomOfferRequestApiResponse.d.ts +2 -2
- package/dist/types/v1/models/HotelRoomOfferRequestCreateApi.d.ts +1 -1
- package/dist/types/v1/models/HotelRoomOffersApiResponse.d.ts +3 -3
- package/dist/types/v1/models/HotelRoomOffersCreateApi.d.ts +3 -3
- package/dist/types/v1/models/HotelRoomOffersDataApiResponse.d.ts +2 -2
- package/dist/types/v1/models/HotelRoomingListApi.d.ts +2 -2
- package/dist/types/v1/models/HotelRoomingListApiHotelRoom.d.ts +2 -2
- package/dist/types/v1/models/MetaPollingResponseApi.d.ts +1 -1
- package/dist/types/v1/models/PaymentMethodApi.d.ts +4 -4
- package/dist/types/v1/models/PaymentMethodCouponApi.d.ts +1 -1
- package/dist/types/v1/models/PaymentMethodCreditCardApi.d.ts +1 -1
- package/dist/types/v1/models/PaymentMethodDepositAccountApi.d.ts +1 -1
- package/dist/types/v1/models/PaymentMethodPayLaterApi.d.ts +1 -1
- package/dist/types/v1/models/PaymentMethodRequestApi.d.ts +1 -1
- package/dist/types/v1/models/PaymentMethodUpdatePayloadApi.d.ts +1 -1
- package/dist/types/v1/models/TravelTimesApi.d.ts +1 -1
- package/dist/types/vendor/common/constants/environment.d.ts +49 -0
- package/dist/types/vendor/common/constants/index.d.ts +2 -0
- package/dist/types/vendor/common/constants/poller.d.ts +14 -0
- package/dist/types/vendor/common/types/api.d.ts +11 -0
- package/dist/types/vendor/common/utils/case-transformer-core.d.ts +30 -0
- package/dist/types/vendor/common/utils/case-transformers.d.ts +8 -0
- package/dist/types/vendor/common/utils/index.d.ts +4 -0
- package/dist/types/vendor/common/utils/keys-case-transformer.d.ts +25 -0
- package/dist/types/vendor/common/utils/merge.d.ts +1 -0
- package/dist/types/vendor/common/utils/poller.d.ts +47 -0
- package/package.json +4 -7
- package/dist/tsconfig.build.tsbuildinfo +0 -1
package/README.md
CHANGED
|
@@ -12,8 +12,7 @@ See the [Revolugo Booking API documentation](https://booking-api.revolugo.com/v1
|
|
|
12
12
|
### Import & Configure
|
|
13
13
|
|
|
14
14
|
```js
|
|
15
|
-
import { ApiClient } from '@revolugo/booking-api-client'
|
|
16
|
-
import { CountryIso2Code } from '@revolugo/common/constants'
|
|
15
|
+
import { ApiClient, CountryIso2Code } from '@revolugo/booking-api-client'
|
|
17
16
|
|
|
18
17
|
const revolugoApiClient = new ApiClient({
|
|
19
18
|
apiEnvironment: Revolugo.Environment.Production,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { HotelImages } from './v1/apis/ResourceHotelImagesApi.ts';
|
|
2
2
|
import { Configuration, ResponseError } from './v1/runtime.ts';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
3
|
+
import { BookingPoliciesInterface } from './v1/apis/ResourceBookingPoliciesApi.ts';
|
|
4
|
+
import { BookingsInterface } from './v1/apis/ResourceBookingsApi.ts';
|
|
5
|
+
import { HotelOfferRequestsInterface } from './v1/apis/ResourceHotelOfferRequestsApi.ts';
|
|
6
|
+
import { HotelOffersInterface } from './v1/apis/ResourceHotelOffersApi.ts';
|
|
7
|
+
import { HotelRoomingListGuestsInterface } from './v1/apis/ResourceHotelRoomingListGuestsApi.ts';
|
|
8
|
+
import { HotelRoomingListsInterface } from './v1/apis/ResourceHotelRoomingListsApi.ts';
|
|
9
|
+
import { HotelRoomOfferImagesInterface } from './v1/apis/ResourceHotelRoomOfferImagesApi.ts';
|
|
10
|
+
import { HotelRoomOfferRequestsInterface } from './v1/apis/ResourceHotelRoomOfferRequestsApi.ts';
|
|
11
|
+
import { HotelRoomOffersInterface } from './v1/apis/ResourceHotelRoomOffersApi.ts';
|
|
12
|
+
import { HotelsInterface } from './v1/apis/ResourceHotelsApi.ts';
|
|
13
|
+
import { ApiClientConfig, ApiVersions } from './vendor/common/types/api';
|
|
14
14
|
export interface ApiErrorBody {
|
|
15
15
|
documentationUrl?: string;
|
|
16
16
|
message?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { AllowedPaymentMethodApi, BookingPoliciesApi, BookingPoliciesCreateApi } from '../models/index.ts';
|
|
1
2
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type AllowedPaymentMethodApi, type BookingPoliciesApi, type BookingPoliciesCreateApi } from '../models/index.ts';
|
|
3
3
|
export interface BookingPoliciesRetrievePayload {
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { BookingApi, BookingCreateApi, BookingsApiResponse, PaymentMethodUpdatePayloadApi, RequestPayload } from '../models/index.ts';
|
|
1
2
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type BookingApi, type BookingCreateApi, type BookingsApiResponse, type PaymentMethodUpdatePayloadApi, type RequestPayload } from '../models/index.ts';
|
|
3
3
|
export interface BookingsDeletePayload {
|
|
4
4
|
token: string;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { HotelOfferRequestApiResponse, HotelOfferRequestCreateApi } from '../models/index.ts';
|
|
1
2
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type HotelOfferRequestApiResponse, type HotelOfferRequestCreateApi } from '../models/index.ts';
|
|
3
3
|
export interface HotelOfferRequestsRetrievePayload {
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CurrencyClient, HotelOffersApiResponse, Locale } from '../models/index.ts';
|
|
2
|
+
import { TPollerCallback } from '../../vendor/common/utils/index';
|
|
1
3
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type CurrencyClient, type HotelOffersApiResponse, type Locale } from '../models/index.ts';
|
|
3
|
-
import { type TPollerCallback } from '@revolugo/common/utils';
|
|
4
4
|
export interface HotelOffersListPayload {
|
|
5
5
|
currency: CurrencyClient;
|
|
6
6
|
hotelOfferRequestId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { HotelRoomOfferRequestApiResponse, HotelRoomOfferRequestCreateApi } from '../models/index.ts';
|
|
1
2
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type HotelRoomOfferRequestApiResponse, type HotelRoomOfferRequestCreateApi } from '../models/index.ts';
|
|
3
3
|
export interface HotelRoomOfferRequestsRetrievePayload {
|
|
4
4
|
id: string;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { CurrencyClient, HotelRoomOfferApiResponse, HotelRoomOffersApiResponse, HotelRoomOffersCreateApi, Locale } from '../models/index.ts';
|
|
2
|
+
import { TPollerCallback } from '../../vendor/common/utils/index';
|
|
1
3
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type CurrencyClient, type HotelRoomOfferApiResponse, type HotelRoomOffersApiResponse, type HotelRoomOffersCreateApi, type Locale } from '../models/index.ts';
|
|
3
|
-
import { type TPollerCallback } from '@revolugo/common/utils';
|
|
4
4
|
export interface HotelRoomOffersListPayload {
|
|
5
5
|
currency: CurrencyClient;
|
|
6
6
|
hotelRoomOfferRequestId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { HotelRoomingListGuestApi, HotelRoomingListGuestsCreateApi, HotelRoomingListGuestsUpdateApi } from '../models/index.ts';
|
|
1
2
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type HotelRoomingListGuestApi, type HotelRoomingListGuestsCreateApi, type HotelRoomingListGuestsUpdateApi } from '../models/index.ts';
|
|
3
3
|
export interface HotelRoomingListGuestsDeletePayload {
|
|
4
4
|
id: string;
|
|
5
5
|
token: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { HotelRoomingListApi, Locale } from '../models/index.ts';
|
|
1
2
|
import * as runtime from '../runtime.ts';
|
|
2
|
-
import { type HotelRoomingListApi, type Locale } from '../models/index.ts';
|
|
3
3
|
export interface HotelRoomingListsListPayload {
|
|
4
4
|
token: string;
|
|
5
5
|
lang?: Locale;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { AllowedPaymentMethodCouponApi } from './AllowedPaymentMethodCouponApi';
|
|
2
|
+
import { AllowedPaymentMethodCreditCardApi } from './AllowedPaymentMethodCreditCardApi';
|
|
3
|
+
import { AllowedPaymentMethodDepositAccountApi } from './AllowedPaymentMethodDepositAccountApi';
|
|
4
|
+
import { AllowedPaymentMethodPayLaterApi } from './AllowedPaymentMethodPayLaterApi';
|
|
5
5
|
export type AllowedPaymentMethodApi = {
|
|
6
6
|
name: 'COUPON';
|
|
7
7
|
} & AllowedPaymentMethodCouponApi | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { AllowedPaymentMethodPayLaterApiPayload } from './AllowedPaymentMethodPayLaterApiPayload.ts';
|
|
2
2
|
export interface AllowedPaymentMethodPayLaterApi {
|
|
3
3
|
name: AllowedPaymentMethodPayLaterApiNameEnum;
|
|
4
4
|
payload: AllowedPaymentMethodPayLaterApiPayload;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
1
|
+
import { CancellationPolicyApi } from './CancellationPolicyApi.ts';
|
|
2
|
+
import { SourceMarket } from './SourceMarket.ts';
|
|
3
|
+
import { HotelRoomOfferApi } from './HotelRoomOfferApi.ts';
|
|
4
|
+
import { ContactPersonApi } from './ContactPersonApi.ts';
|
|
5
|
+
import { PaymentMethodApi } from './PaymentMethodApi.ts';
|
|
6
|
+
import { TaxApi } from './TaxApi.ts';
|
|
7
|
+
import { InsuranceApi } from './InsuranceApi.ts';
|
|
8
|
+
import { InvoiceApi } from './InvoiceApi.ts';
|
|
9
|
+
import { OrderAddon } from './OrderAddon.ts';
|
|
10
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
11
|
+
import { EventApi } from './EventApi.ts';
|
|
12
|
+
import { HotelRoomingListApi } from './HotelRoomingListApi.ts';
|
|
13
13
|
export interface BookingApi {
|
|
14
14
|
additionalCheckInInstruction?: string | null;
|
|
15
15
|
additionalPolicies?: string | null;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import { ContactPersonApi } from './ContactPersonApi.ts';
|
|
2
|
+
import { OrderAddonSelection } from './OrderAddonSelection.ts';
|
|
3
|
+
import { BookingCreateApiGuestsListInner } from './BookingCreateApiGuestsListInner.ts';
|
|
4
|
+
import { EventMetadataApi } from './EventMetadataApi.ts';
|
|
5
|
+
import { PaymentMethodRequestApi } from './PaymentMethodRequestApi.ts';
|
|
6
6
|
export interface BookingCreateApi {
|
|
7
7
|
addons?: Array<OrderAddonSelection>;
|
|
8
8
|
bookingPolicyId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BookingCreateApiGuestsListInnerGuestsInner } from './BookingCreateApiGuestsListInnerGuestsInner.ts';
|
|
2
2
|
export interface BookingCreateApiGuestsListInner {
|
|
3
3
|
guests: Array<BookingCreateApiGuestsListInnerGuestsInner>;
|
|
4
4
|
hotelRoomId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { CancellationPolicyApi } from './CancellationPolicyApi.ts';
|
|
2
|
+
import { HotelRoomOfferApi } from './HotelRoomOfferApi.ts';
|
|
3
|
+
import { OrderAddon } from './OrderAddon.ts';
|
|
4
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
5
5
|
export interface BookingPoliciesApi {
|
|
6
6
|
addons?: Array<OrderAddon>;
|
|
7
7
|
adultCount: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { BookingApi } from './BookingApi.ts';
|
|
2
|
+
import { MetaResponseApi } from './MetaResponseApi.ts';
|
|
3
3
|
export interface BookingsApiResponse {
|
|
4
4
|
data: Array<BookingApi>;
|
|
5
5
|
meta: MetaResponseApi;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { Locale } from './Locale.ts';
|
|
2
|
+
import { ContactPersonOrganizationApi } from './ContactPersonOrganizationApi.ts';
|
|
3
|
+
import { CountryIso2Code } from './CountryIso2Code.ts';
|
|
4
4
|
export interface ContactPersonApi {
|
|
5
5
|
address?: string | null;
|
|
6
6
|
city?: string | null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { HotelReviewRatingApi } from './HotelReviewRatingApi.ts';
|
|
2
|
+
import { HotelImageApi } from './HotelImageApi.ts';
|
|
3
|
+
import { HotelApiImages } from './HotelApiImages.ts';
|
|
4
|
+
import { TravelTimesApi } from './TravelTimesApi.ts';
|
|
5
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
6
|
+
import { AmenitiesApi } from './AmenitiesApi.ts';
|
|
7
7
|
export interface HotelApi {
|
|
8
8
|
address?: string | null;
|
|
9
9
|
address2?: string | null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { HotelReviewRatingApi } from './HotelReviewRatingApi.ts';
|
|
2
|
+
import { HotelRoomOfferApi } from './HotelRoomOfferApi.ts';
|
|
3
|
+
import { HotelImageApi } from './HotelImageApi.ts';
|
|
4
|
+
import { HotelApiImages } from './HotelApiImages.ts';
|
|
5
|
+
import { TravelTimesApi } from './TravelTimesApi.ts';
|
|
6
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
7
|
+
import { TagApi } from './TagApi.ts';
|
|
8
|
+
import { AmenitiesApi } from './AmenitiesApi.ts';
|
|
9
9
|
export interface HotelOfferApi {
|
|
10
10
|
address?: string | null;
|
|
11
11
|
address2?: string | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { SourceMarket } from './SourceMarket.ts';
|
|
2
|
+
import { EventMetadataApi } from './EventMetadataApi.ts';
|
|
3
3
|
export interface HotelOfferRequestApiResponse {
|
|
4
4
|
address?: string | null;
|
|
5
5
|
adultCount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { HotelOffersDataApiResponse } from './HotelOffersDataApiResponse.ts';
|
|
2
|
+
import { EventApi } from './EventApi.ts';
|
|
3
|
+
import { MetaPollingResponseApi } from './MetaPollingResponseApi.ts';
|
|
4
4
|
export interface HotelOffersApiResponse {
|
|
5
5
|
data: HotelOffersDataApiResponse;
|
|
6
6
|
event?: EventApi | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HotelOfferApi } from './HotelOfferApi.ts';
|
|
2
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
3
3
|
export interface HotelOffersDataApiResponse {
|
|
4
4
|
adultCount: number;
|
|
5
5
|
checkInDate: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { CancellationPolicyApi } from './CancellationPolicyApi.ts';
|
|
2
|
+
import { SourceMarket } from './SourceMarket.ts';
|
|
3
|
+
import { HotelRoomOfferApiHotelRoomsInner } from './HotelRoomOfferApiHotelRoomsInner.ts';
|
|
4
|
+
import { BreakfastOption } from './BreakfastOption.ts';
|
|
5
|
+
import { TaxApi } from './TaxApi.ts';
|
|
6
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
7
|
+
import { TagApi } from './TagApi.ts';
|
|
8
8
|
export interface HotelRoomOfferApi {
|
|
9
9
|
breakfastCount?: number | null;
|
|
10
10
|
breakfastOption: BreakfastOption;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { BedApi } from './BedApi.ts';
|
|
2
|
+
import { HotelImageApi } from './HotelImageApi.ts';
|
|
3
3
|
export interface HotelRoomOfferApiHotelRoomsInner {
|
|
4
4
|
amenities?: Array<string> | null;
|
|
5
5
|
beds: Array<Array<BedApi>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HotelRoomOfferApi } from './HotelRoomOfferApi.ts';
|
|
2
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
3
3
|
export interface HotelRoomOfferApiResponse {
|
|
4
4
|
adultCount: number;
|
|
5
5
|
checkInDate: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { SourceMarket } from './SourceMarket.ts';
|
|
2
|
+
import { EventMetadataApi } from './EventMetadataApi.ts';
|
|
3
3
|
export interface HotelRoomOfferRequestApiResponse {
|
|
4
4
|
adultCount: number;
|
|
5
5
|
checkInDate: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { HotelRoomOffersDataApiResponse } from './HotelRoomOffersDataApiResponse.ts';
|
|
2
|
+
import { EventApi } from './EventApi.ts';
|
|
3
|
+
import { MetaPollingResponseApi } from './MetaPollingResponseApi.ts';
|
|
4
4
|
export interface HotelRoomOffersApiResponse {
|
|
5
5
|
data: HotelRoomOffersDataApiResponse;
|
|
6
6
|
event?: EventApi | null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { HotelRoomOffersDataCreateApi } from './HotelRoomOffersDataCreateApi.ts';
|
|
2
|
+
import { Locale } from './Locale.ts';
|
|
3
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
4
4
|
export interface HotelRoomOffersCreateApi {
|
|
5
5
|
addBreakfast?: boolean | null;
|
|
6
6
|
breakfastCount?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HotelRoomOfferApi } from './HotelRoomOfferApi.ts';
|
|
2
|
+
import { CurrencyClient } from './CurrencyClient.ts';
|
|
3
3
|
export interface HotelRoomOffersDataApiResponse {
|
|
4
4
|
adultCount: number;
|
|
5
5
|
checkInDate: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HotelRoomingListApiHotelRoom } from './HotelRoomingListApiHotelRoom.ts';
|
|
2
|
+
import { HotelRoomingListGuestApi } from './HotelRoomingListGuestApi.ts';
|
|
3
3
|
export interface HotelRoomingListApi {
|
|
4
4
|
hotelRoom?: HotelRoomingListApiHotelRoom | null;
|
|
5
5
|
hotelRoomId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { BedApi } from './BedApi.ts';
|
|
2
|
+
import { HotelImageApi } from './HotelImageApi.ts';
|
|
3
3
|
export interface HotelRoomingListApiHotelRoom {
|
|
4
4
|
amenities?: Array<string> | null;
|
|
5
5
|
beds: Array<Array<BedApi>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { PaymentMethodCouponApi } from './PaymentMethodCouponApi';
|
|
2
|
+
import { PaymentMethodCreditCardApi } from './PaymentMethodCreditCardApi';
|
|
3
|
+
import { PaymentMethodDepositAccountApi } from './PaymentMethodDepositAccountApi';
|
|
4
|
+
import { PaymentMethodPayLaterApi } from './PaymentMethodPayLaterApi';
|
|
5
5
|
export type PaymentMethodApi = {
|
|
6
6
|
name: 'COUPON';
|
|
7
7
|
} & PaymentMethodCouponApi | {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PaymentMethodCouponApiPayload } from './PaymentMethodCouponApiPayload.ts';
|
|
2
2
|
export interface PaymentMethodCouponApi {
|
|
3
3
|
name: PaymentMethodCouponApiNameEnum;
|
|
4
4
|
payload: PaymentMethodCouponApiPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PaymentMethodCreditCardApiPayload } from './PaymentMethodCreditCardApiPayload.ts';
|
|
2
2
|
export interface PaymentMethodCreditCardApi {
|
|
3
3
|
name: PaymentMethodCreditCardApiNameEnum;
|
|
4
4
|
payload: PaymentMethodCreditCardApiPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PaymentMethodDepositAccountApiPayload } from './PaymentMethodDepositAccountApiPayload.ts';
|
|
2
2
|
export interface PaymentMethodDepositAccountApi {
|
|
3
3
|
name: PaymentMethodDepositAccountApiNameEnum;
|
|
4
4
|
payload: PaymentMethodDepositAccountApiPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PaymentMethodPayLaterApiPayload } from './PaymentMethodPayLaterApiPayload.ts';
|
|
2
2
|
export interface PaymentMethodPayLaterApi {
|
|
3
3
|
name: PaymentMethodPayLaterApiNameEnum;
|
|
4
4
|
payload: PaymentMethodPayLaterApiPayload;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PaymentMethodRequestPayloadApi } from './PaymentMethodRequestPayloadApi.ts';
|
|
2
2
|
export interface PaymentMethodRequestApi {
|
|
3
3
|
name: PaymentMethodRequestApiNameEnum;
|
|
4
4
|
payload?: PaymentMethodRequestPayloadApi;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare enum ApiVersion {
|
|
2
|
+
V1 = "v1"
|
|
3
|
+
}
|
|
4
|
+
export declare enum QontoEnv {
|
|
5
|
+
Production = "PRODUCTION",
|
|
6
|
+
Sandbox = "SANDBOX",
|
|
7
|
+
Staging = "STAGING"
|
|
8
|
+
}
|
|
9
|
+
export declare enum RevolutEnv {
|
|
10
|
+
Production = "PRODUCTION",
|
|
11
|
+
Sandbox = "SANDBOX"
|
|
12
|
+
}
|
|
13
|
+
export declare enum StripeEnv {
|
|
14
|
+
Local = "local",
|
|
15
|
+
Production = "live",
|
|
16
|
+
Sandbox = "sandbox",
|
|
17
|
+
Staging = "staging"
|
|
18
|
+
}
|
|
19
|
+
export declare enum Environment {
|
|
20
|
+
CiCd = "CI-CD",
|
|
21
|
+
Local = "LOCAL",
|
|
22
|
+
Production = "LIVE",
|
|
23
|
+
Sandbox = "SANDBOX",
|
|
24
|
+
Staging = "STAGING"
|
|
25
|
+
}
|
|
26
|
+
export declare enum NodeEnv {
|
|
27
|
+
Development = "development",
|
|
28
|
+
Production = "production",
|
|
29
|
+
Test = "test"
|
|
30
|
+
}
|
|
31
|
+
export declare enum LogLevel {
|
|
32
|
+
Trace = 10,
|
|
33
|
+
Debug = 20,
|
|
34
|
+
Info = 30,
|
|
35
|
+
Warn = 40,
|
|
36
|
+
Error = 50
|
|
37
|
+
}
|
|
38
|
+
export declare enum BookingEnvironment {
|
|
39
|
+
Development = "development",
|
|
40
|
+
Production = "production",
|
|
41
|
+
Sandbox = "sandbox"
|
|
42
|
+
}
|
|
43
|
+
export declare const BOOKING_API_URLS: {
|
|
44
|
+
"CI-CD": string;
|
|
45
|
+
LOCAL: string;
|
|
46
|
+
LIVE: string;
|
|
47
|
+
SANDBOX: string;
|
|
48
|
+
STAGING: string;
|
|
49
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum PollerStatus {
|
|
2
|
+
Complete = "COMPLETE",
|
|
3
|
+
InProgress = "IN_PROGRESS"
|
|
4
|
+
}
|
|
5
|
+
export type PollerStatusType = `${PollerStatus}`;
|
|
6
|
+
export declare enum PollerType {
|
|
7
|
+
HOTEL_ROOM_OFFERS = "HOTEL_ROOM_OFFERS",
|
|
8
|
+
HOTEL_SEARCH_POLLING = "HOTEL_SEARCH_POLLING"
|
|
9
|
+
}
|
|
10
|
+
export declare enum Status {
|
|
11
|
+
Complete = "COMPLETE",
|
|
12
|
+
Error = "ERROR",
|
|
13
|
+
InProgress = "IN_PROGRESS"
|
|
14
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiVersion, Environment } from '../constants/environment.ts';
|
|
2
|
+
export type ApiVersions = ApiVersion;
|
|
3
|
+
export interface ApiClientConfig<U> {
|
|
4
|
+
apiBaseUrl?: string;
|
|
5
|
+
apiEnvironment?: Environment;
|
|
6
|
+
apiKey: string;
|
|
7
|
+
apiVersion: U;
|
|
8
|
+
optionalHeaders?: {
|
|
9
|
+
[key: string]: string;
|
|
10
|
+
};
|
|
11
|
+
}
|