@revolugo/booking-api-client 7.0.1-alpha.21 → 7.0.1-alpha.23

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.
@@ -488,10 +488,10 @@ export interface BookingApi {
488
488
  createdAt: string;
489
489
  /**
490
490
  *
491
- * @type {CurrencyBookingApiClient}
491
+ * @type {CurrencyClient}
492
492
  * @memberof BookingApi
493
493
  */
494
- currency: CurrencyBookingApiClient;
494
+ currency: CurrencyClient;
495
495
  /**
496
496
  * Customer Reference of the requested Booking (sometimes to present by the customer at hotel check-in).
497
497
  * @type {string}
@@ -773,10 +773,10 @@ export interface BookingPoliciesApi {
773
773
  children?: string | null;
774
774
  /**
775
775
  *
776
- * @type {CurrencyBookingApiClient}
776
+ * @type {CurrencyClient}
777
777
  * @memberof BookingPoliciesApi
778
778
  */
779
- currency: CurrencyBookingApiClient;
779
+ currency: CurrencyClient;
780
780
  /**
781
781
  * Expiration date for this **Booking Policy**.
782
782
  *
@@ -861,25 +861,12 @@ export interface BookingPoliciesCreateApi {
861
861
  */
862
862
  hotelRoomOfferId: string;
863
863
  /**
864
- * Set the language for the returned content using a valid language code.
865
- * @type {string}
864
+ *
865
+ * @type {Locale}
866
866
  * @memberof BookingPoliciesCreateApi
867
867
  */
868
- lang?: BookingPoliciesCreateApiLangEnum;
868
+ lang?: Locale | null;
869
869
  }
870
- /**
871
- * @export
872
- */
873
- export declare const BookingPoliciesCreateApiLangEnum: {
874
- readonly DeDe: "de-DE";
875
- readonly EnUs: "en-US";
876
- readonly EsEs: "es-ES";
877
- readonly FrFr: "fr-FR";
878
- readonly ItIt: "it-IT";
879
- readonly NlNl: "nl-NL";
880
- readonly PtPt: "pt-PT";
881
- };
882
- export type BookingPoliciesCreateApiLangEnum = typeof BookingPoliciesCreateApiLangEnum[keyof typeof BookingPoliciesCreateApiLangEnum];
883
870
  /**
884
871
  *
885
872
  * @export
@@ -961,11 +948,11 @@ export interface ContactPersonApi {
961
948
  */
962
949
  firstName: string;
963
950
  /**
964
- * Set the prefered language to use when contacting the contact person for booking related communication(s).
965
- * @type {string}
951
+ *
952
+ * @type {Locale}
966
953
  * @memberof ContactPersonApi
967
954
  */
968
- lang?: ContactPersonApiLangEnum;
955
+ lang?: Locale;
969
956
  /**
970
957
  * Contact person's last name
971
958
  * @type {string}
@@ -1015,19 +1002,6 @@ export interface ContactPersonApi {
1015
1002
  */
1016
1003
  zipCode?: string | null;
1017
1004
  }
1018
- /**
1019
- * @export
1020
- */
1021
- export declare const ContactPersonApiLangEnum: {
1022
- readonly DeDe: "de-DE";
1023
- readonly EnUs: "en-US";
1024
- readonly EsEs: "es-ES";
1025
- readonly FrFr: "fr-FR";
1026
- readonly ItIt: "it-IT";
1027
- readonly NlNl: "nl-NL";
1028
- readonly PtPt: "pt-PT";
1029
- };
1030
- export type ContactPersonApiLangEnum = typeof ContactPersonApiLangEnum[keyof typeof ContactPersonApiLangEnum];
1031
1005
  /**
1032
1006
  * @export
1033
1007
  */
@@ -1343,7 +1317,7 @@ export type CountryIso2Code = typeof CountryIso2Code[keyof typeof CountryIso2Cod
1343
1317
  * ISO 4217 currency code.
1344
1318
  * @export
1345
1319
  */
1346
- export declare const CurrencyBookingApiClient: {
1320
+ export declare const CurrencyClient: {
1347
1321
  readonly Aed: "AED";
1348
1322
  readonly Afn: "AFN";
1349
1323
  readonly All: "ALL";
@@ -1483,7 +1457,7 @@ export declare const CurrencyBookingApiClient: {
1483
1457
  readonly Zar: "ZAR";
1484
1458
  readonly Zmw: "ZMW";
1485
1459
  };
1486
- export type CurrencyBookingApiClient = typeof CurrencyBookingApiClient[keyof typeof CurrencyBookingApiClient];
1460
+ export type CurrencyClient = typeof CurrencyClient[keyof typeof CurrencyClient];
1487
1461
  /**
1488
1462
  *
1489
1463
  * @export
@@ -1654,10 +1628,10 @@ export interface HotelApi {
1654
1628
  countryCode?: string | null;
1655
1629
  /**
1656
1630
  *
1657
- * @type {CurrencyBookingApiClient}
1631
+ * @type {CurrencyClient}
1658
1632
  * @memberof HotelApi
1659
1633
  */
1660
- currency?: CurrencyBookingApiClient;
1634
+ currency?: CurrencyClient;
1661
1635
  /**
1662
1636
  * Hotel description.
1663
1637
  * @type {string}
@@ -1833,49 +1807,49 @@ export interface HotelApiImages {
1833
1807
  thumb?: boolean | null;
1834
1808
  }
1835
1809
  /**
1836
- *
1810
+ * Hotel image in various sizes.
1837
1811
  * @export
1838
1812
  * @interface HotelImageApi
1839
1813
  */
1840
1814
  export interface HotelImageApi {
1841
1815
  /**
1842
- *
1816
+ * Caption of the hotel image.
1843
1817
  * @type {string}
1844
1818
  * @memberof HotelImageApi
1845
1819
  */
1846
1820
  caption?: string | null;
1847
1821
  /**
1848
- *
1822
+ * Whether this image is the primary (hero) image of the hotel.
1849
1823
  * @type {boolean}
1850
1824
  * @memberof HotelImageApi
1851
1825
  */
1852
1826
  isHeroImage: boolean;
1853
1827
  /**
1854
- *
1828
+ * URL of the large-size image.
1855
1829
  * @type {string}
1856
1830
  * @memberof HotelImageApi
1857
1831
  */
1858
1832
  l: string;
1859
1833
  /**
1860
- *
1834
+ * URL of the medium-size image.
1861
1835
  * @type {string}
1862
1836
  * @memberof HotelImageApi
1863
1837
  */
1864
1838
  m: string;
1865
1839
  /**
1866
- *
1840
+ * URL of the small-size image.
1867
1841
  * @type {string}
1868
1842
  * @memberof HotelImageApi
1869
1843
  */
1870
1844
  s: string;
1871
1845
  /**
1872
- *
1846
+ * URL of the extra-large-size image.
1873
1847
  * @type {string}
1874
1848
  * @memberof HotelImageApi
1875
1849
  */
1876
1850
  xl: string;
1877
1851
  /**
1878
- *
1852
+ * URL of the extra-small-size image.
1879
1853
  * @type {string}
1880
1854
  * @memberof HotelImageApi
1881
1855
  */
@@ -1937,10 +1911,10 @@ export interface HotelOfferApi {
1937
1911
  countryCode?: string | null;
1938
1912
  /**
1939
1913
  *
1940
- * @type {CurrencyBookingApiClient}
1914
+ * @type {CurrencyClient}
1941
1915
  * @memberof HotelOfferApi
1942
1916
  */
1943
- currency?: CurrencyBookingApiClient;
1917
+ currency?: CurrencyClient;
1944
1918
  /**
1945
1919
  * Hotel description.
1946
1920
  * @type {string}
@@ -2376,10 +2350,10 @@ export interface HotelOffersDataApiResponse {
2376
2350
  children?: string | null;
2377
2351
  /**
2378
2352
  *
2379
- * @type {CurrencyBookingApiClient}
2353
+ * @type {CurrencyClient}
2380
2354
  * @memberof HotelOffersDataApiResponse
2381
2355
  */
2382
- currency: CurrencyBookingApiClient;
2356
+ currency: CurrencyClient;
2383
2357
  /**
2384
2358
  * List of Hotel Offers
2385
2359
  * @type {Array<HotelOfferApi>}
@@ -2593,10 +2567,10 @@ export interface HotelRoomOfferApi {
2593
2567
  count?: number | null;
2594
2568
  /**
2595
2569
  *
2596
- * @type {CurrencyBookingApiClient}
2570
+ * @type {CurrencyClient}
2597
2571
  * @memberof HotelRoomOfferApi
2598
2572
  */
2599
- currency: CurrencyBookingApiClient;
2573
+ currency: CurrencyClient;
2600
2574
  /**
2601
2575
  * id of the associated Hotel.
2602
2576
  * @type {string}
@@ -2746,10 +2720,10 @@ export interface HotelRoomOfferApiResponse {
2746
2720
  children?: string | null;
2747
2721
  /**
2748
2722
  *
2749
- * @type {CurrencyBookingApiClient}
2723
+ * @type {CurrencyClient}
2750
2724
  * @memberof HotelRoomOfferApiResponse
2751
2725
  */
2752
- currency: CurrencyBookingApiClient;
2726
+ currency: CurrencyClient;
2753
2727
  /**
2754
2728
  * Hotel id
2755
2729
  * @type {string}
@@ -3018,10 +2992,10 @@ export interface HotelRoomOffersCreateApi {
3018
2992
  breakfastCount?: number;
3019
2993
  /**
3020
2994
  *
3021
- * @type {CurrencyBookingApiClient}
2995
+ * @type {CurrencyClient}
3022
2996
  * @memberof HotelRoomOffersCreateApi
3023
2997
  */
3024
- currency: CurrencyBookingApiClient;
2998
+ currency: CurrencyClient;
3025
2999
  /**
3026
3000
  *
3027
3001
  * @type {Array<HotelRoomOffersDataCreateApi>}
@@ -3029,25 +3003,12 @@ export interface HotelRoomOffersCreateApi {
3029
3003
  */
3030
3004
  hotelRoomOffers: Array<HotelRoomOffersDataCreateApi>;
3031
3005
  /**
3032
- * Set the language for the returned content using a valid language code.
3033
- * @type {string}
3006
+ *
3007
+ * @type {Locale}
3034
3008
  * @memberof HotelRoomOffersCreateApi
3035
3009
  */
3036
- lang?: HotelRoomOffersCreateApiLangEnum;
3010
+ lang?: Locale | null;
3037
3011
  }
3038
- /**
3039
- * @export
3040
- */
3041
- export declare const HotelRoomOffersCreateApiLangEnum: {
3042
- readonly DeDe: "de-DE";
3043
- readonly EnUs: "en-US";
3044
- readonly EsEs: "es-ES";
3045
- readonly FrFr: "fr-FR";
3046
- readonly ItIt: "it-IT";
3047
- readonly NlNl: "nl-NL";
3048
- readonly PtPt: "pt-PT";
3049
- };
3050
- export type HotelRoomOffersCreateApiLangEnum = typeof HotelRoomOffersCreateApiLangEnum[keyof typeof HotelRoomOffersCreateApiLangEnum];
3051
3012
  /**
3052
3013
  *
3053
3014
  * @export
@@ -3080,10 +3041,10 @@ export interface HotelRoomOffersDataApiResponse {
3080
3041
  children?: string | null;
3081
3042
  /**
3082
3043
  *
3083
- * @type {CurrencyBookingApiClient}
3044
+ * @type {CurrencyClient}
3084
3045
  * @memberof HotelRoomOffersDataApiResponse
3085
3046
  */
3086
- currency: CurrencyBookingApiClient;
3047
+ currency: CurrencyClient;
3087
3048
  /**
3088
3049
  * Hotel id
3089
3050
  * @type {string}
@@ -3354,6 +3315,20 @@ export declare const InvoiceApiTypeEnum: {
3354
3315
  readonly Invoice: "invoice";
3355
3316
  };
3356
3317
  export type InvoiceApiTypeEnum = typeof InvoiceApiTypeEnum[keyof typeof InvoiceApiTypeEnum];
3318
+ /**
3319
+ * Set the language for the returned content using a valid language code.
3320
+ * @export
3321
+ */
3322
+ export declare const Locale: {
3323
+ readonly DeDe: "de-DE";
3324
+ readonly EnUs: "en-US";
3325
+ readonly EsEs: "es-ES";
3326
+ readonly FrFr: "fr-FR";
3327
+ readonly ItIt: "it-IT";
3328
+ readonly NlNl: "nl-NL";
3329
+ readonly PtPt: "pt-PT";
3330
+ };
3331
+ export type Locale = typeof Locale[keyof typeof Locale];
3357
3332
  /**
3358
3333
  * Meta information about the response list, such as pagination cursors or status.
3359
3334
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revolugo/booking-api-client",
3
- "version": "7.0.1-alpha.21",
3
+ "version": "7.0.1-alpha.23",
4
4
  "private": false,
5
5
  "description": "Javascript Revolugo Booking API Client (browser + server)",
6
6
  "keywords": [
@@ -44,16 +44,16 @@
44
44
  "hono": "4.11.9",
45
45
  "@revolugo/booking-api": "7.0.1",
46
46
  "@revolugo/engines": "7.0.1",
47
- "@revolugo/env": "7.0.1",
48
- "@revolugo/models": "7.0.1",
49
47
  "@revolugo/node": "7.0.1",
50
- "@revolugo/root": "7.0.1"
48
+ "@revolugo/models": "7.0.1",
49
+ "@revolugo/root": "7.0.1",
50
+ "@revolugo/env": "7.0.1"
51
51
  },
52
52
  "publishConfig": {
53
53
  "access": "public"
54
54
  },
55
55
  "scripts": {
56
- "build": "openapi-generator-cli generate -i ../../../apps/back/booking-api/src/swagger.json -g typescript-fetch -o ./tmp --skip-validate-spec -c ./config.yaml --skip-overwrite && bun ./scripts/delete-client-extra-classes.ts && cp -r ./tmp/* ./tmp/.openapi* ./src/v1 && rm -rf dist tmp && vite build",
56
+ "build": "openapi-generator-cli generate -i ../../../apps/back/booking-api/src/swagger.json -g typescript-fetch -o ./tmp --skip-validate-spec -c ./config.yaml && bun ./scripts/delete-client-extra-classes.ts && cp -r ./tmp/* ./tmp/.openapi* ./src/v1 && rm -rf dist tmp && vite build",
57
57
  "test": "pnpm run test:e2e && pnpm run test:poller",
58
58
  "test:client-package:e2e": "bun --inspect ./client/examples/e2e-client.ts",
59
59
  "test:e2e": "NODE_OPTIONS='--experimental-vm-modules' vitest ./tests/e2e-*.test.ts",