@revolugo/booking-api-client 6.15.8-alpha.0 → 6.15.8
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.es.js +831 -884
- package/dist/index.umd.js +2 -2
- package/dist/types/v1/apis/ResourceBookingPoliciesApi.d.ts +2 -38
- package/dist/types/v1/apis/ResourceBookingsApi.d.ts +16 -16
- package/dist/types/v1/apis/ResourceHotelImagesApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelOfferRequestsApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelOffersApi.d.ts +15 -15
- package/dist/types/v1/apis/ResourceHotelRoomOfferRequestsApi.d.ts +1 -1
- package/dist/types/v1/apis/ResourceHotelRoomOffersApi.d.ts +4 -4
- package/dist/types/v1/apis/ResourceHotelRoomingListGuestsApi.d.ts +3 -3
- package/dist/types/v1/apis/ResourceHotelRoomingListsApi.d.ts +2 -2
- package/dist/types/v1/apis/ResourceHotelsApi.d.ts +3 -3
- package/dist/types/v1/models/index.d.ts +129 -272
- package/package.json +6 -6
package/dist/index.es.js
CHANGED
|
@@ -2,41 +2,41 @@ const st = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), ut = new RegExp("(\\p{Lu
|
|
|
2
2
|
function Je(i) {
|
|
3
3
|
let e = i.trim();
|
|
4
4
|
e = e.replace(st, Ie).replace(ut, Ie), e = e.replace(lt, "\0");
|
|
5
|
-
let
|
|
6
|
-
for (; e.charAt(
|
|
7
|
-
|
|
8
|
-
if (
|
|
5
|
+
let r = 0, t = e.length;
|
|
6
|
+
for (; e.charAt(r) === "\0"; )
|
|
7
|
+
r++;
|
|
8
|
+
if (r === t)
|
|
9
9
|
return [];
|
|
10
10
|
for (; e.charAt(t - 1) === "\0"; )
|
|
11
11
|
t--;
|
|
12
|
-
return e.slice(
|
|
12
|
+
return e.slice(r, t).split(/\0/g);
|
|
13
13
|
}
|
|
14
14
|
function ft(i) {
|
|
15
15
|
const e = Je(i);
|
|
16
|
-
for (let
|
|
17
|
-
const t = e[
|
|
18
|
-
if (
|
|
19
|
-
const s =
|
|
20
|
-
e.splice(
|
|
16
|
+
for (let r = 0; r < e.length; r++) {
|
|
17
|
+
const t = e[r], n = ct.exec(t);
|
|
18
|
+
if (n) {
|
|
19
|
+
const s = n.index + (n[1] ?? n[2]).length;
|
|
20
|
+
e.splice(r, 1, t.slice(0, s), t.slice(s));
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
25
|
function Xe(i, e) {
|
|
26
|
-
const [
|
|
27
|
-
return
|
|
26
|
+
const [r, t, n] = Me(i, e);
|
|
27
|
+
return r + t.map(Te(e?.locale)).join(e?.delimiter ?? " ") + n;
|
|
28
28
|
}
|
|
29
29
|
function dt(i, e) {
|
|
30
|
-
const [
|
|
31
|
-
return
|
|
30
|
+
const [r, t, n] = Me(i, e), s = Te(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
|
|
31
|
+
return r + t.map((h, S) => S === 0 ? s(h) : c(h, S)).join(e?.delimiter ?? "") + n;
|
|
32
32
|
}
|
|
33
33
|
function ht(i, e) {
|
|
34
|
-
const [
|
|
35
|
-
return
|
|
34
|
+
const [r, t, n] = Me(i, e), s = Te(e?.locale), u = ke(e?.locale), c = e?.mergeAmbiguousCharacters ? _e(s, u) : et(s, u);
|
|
35
|
+
return r + t.map(c).join(e?.delimiter ?? "") + n;
|
|
36
36
|
}
|
|
37
37
|
function pt(i, e) {
|
|
38
|
-
const [
|
|
39
|
-
return
|
|
38
|
+
const [r, t, n] = Me(i, e), s = Te(e?.locale), u = ke(e?.locale);
|
|
39
|
+
return r + t.map(_e(s, u)).join(e?.delimiter ?? " ") + n;
|
|
40
40
|
}
|
|
41
41
|
function Qe(i, e) {
|
|
42
42
|
return Xe(i, { delimiter: "-", ...e });
|
|
@@ -44,23 +44,23 @@ function Qe(i, e) {
|
|
|
44
44
|
function mt(i, e) {
|
|
45
45
|
return Xe(i, { delimiter: "_", ...e });
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function Te(i) {
|
|
48
48
|
return i === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(i);
|
|
49
49
|
}
|
|
50
50
|
function ke(i) {
|
|
51
51
|
return i === !1 ? (e) => e.toUpperCase() : (e) => e.toLocaleUpperCase(i);
|
|
52
52
|
}
|
|
53
|
-
function
|
|
54
|
-
return (
|
|
53
|
+
function _e(i, e) {
|
|
54
|
+
return (r) => `${e(r[0])}${i(r.slice(1))}`;
|
|
55
55
|
}
|
|
56
56
|
function et(i, e) {
|
|
57
|
-
return (
|
|
58
|
-
const
|
|
59
|
-
return (t > 0 &&
|
|
57
|
+
return (r, t) => {
|
|
58
|
+
const n = r[0];
|
|
59
|
+
return (t > 0 && n >= "0" && n <= "9" ? "_" + n : e(n)) + i(r.slice(1));
|
|
60
60
|
};
|
|
61
61
|
}
|
|
62
62
|
function Me(i, e = {}) {
|
|
63
|
-
const
|
|
63
|
+
const r = e.split ?? (e.separateNumbers ? ft : Je), t = e.prefixCharacters ?? Be, n = e.suffixCharacters ?? Be;
|
|
64
64
|
let s = 0, u = i.length;
|
|
65
65
|
for (; s < i.length; ) {
|
|
66
66
|
const c = i.charAt(s);
|
|
@@ -70,13 +70,13 @@ function Me(i, e = {}) {
|
|
|
70
70
|
}
|
|
71
71
|
for (; u > s; ) {
|
|
72
72
|
const c = u - 1, h = i.charAt(c);
|
|
73
|
-
if (!
|
|
73
|
+
if (!n.includes(h))
|
|
74
74
|
break;
|
|
75
75
|
u = c;
|
|
76
76
|
}
|
|
77
77
|
return [
|
|
78
78
|
i.slice(0, s),
|
|
79
|
-
|
|
79
|
+
r(i.slice(s, u)),
|
|
80
80
|
i.slice(u)
|
|
81
81
|
];
|
|
82
82
|
}
|
|
@@ -84,26 +84,26 @@ var se = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
|
|
|
84
84
|
function j(i) {
|
|
85
85
|
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
86
86
|
}
|
|
87
|
-
var ce = { exports: {} }, yt = ce.exports,
|
|
87
|
+
var ce = { exports: {} }, yt = ce.exports, xe;
|
|
88
88
|
function gt() {
|
|
89
|
-
return
|
|
90
|
-
(function(
|
|
91
|
-
i.exports =
|
|
89
|
+
return xe || (xe = 1, (function(i, e) {
|
|
90
|
+
(function(r, t, n) {
|
|
91
|
+
i.exports = n(), i.exports.default = n();
|
|
92
92
|
})("slugify", yt, function() {
|
|
93
|
-
var
|
|
94
|
-
function
|
|
93
|
+
var r = JSON.parse(`{"$":"dollar","%":"percent","&":"and","<":"less",">":"greater","|":"or","¢":"cent","£":"pound","¤":"currency","¥":"yen","©":"(c)","ª":"a","®":"(r)","º":"o","À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"DJ","đ":"dj","Ē":"E","ē":"e","Ė":"E","ė":"e","Ę":"e","ę":"e","Ě":"E","ě":"e","Ğ":"G","ğ":"g","Ģ":"G","ģ":"g","Ĩ":"I","ĩ":"i","Ī":"i","ī":"i","Į":"I","į":"i","İ":"I","ı":"i","Ķ":"k","ķ":"k","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","Ō":"O","ō":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ũ":"U","ũ":"u","Ū":"u","ū":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","Ə":"E","ƒ":"f","Ơ":"O","ơ":"o","Ư":"U","ư":"u","Lj":"LJ","lj":"lj","Nj":"NJ","nj":"nj","Ș":"S","ș":"s","Ț":"T","ț":"t","ə":"e","˚":"o","Ά":"A","Έ":"E","Ή":"H","Ί":"I","Ό":"O","Ύ":"Y","Ώ":"W","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"H","Θ":"8","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"3","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"W","Ϊ":"I","Ϋ":"Y","ά":"a","έ":"e","ή":"h","ί":"i","ΰ":"y","α":"a","β":"b","γ":"g","δ":"d","ε":"e","ζ":"z","η":"h","θ":"8","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"3","ο":"o","π":"p","ρ":"r","ς":"s","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"w","ϊ":"i","ϋ":"y","ό":"o","ύ":"y","ώ":"w","Ё":"Yo","Ђ":"DJ","Є":"Ye","І":"I","Ї":"Yi","Ј":"J","Љ":"LJ","Њ":"NJ","Ћ":"C","Џ":"DZ","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ж":"Zh","З":"Z","И":"I","Й":"J","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"H","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"U","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ж":"zh","з":"z","и":"i","й":"j","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"h","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"u","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","ё":"yo","ђ":"dj","є":"ye","і":"i","ї":"yi","ј":"j","љ":"lj","њ":"nj","ћ":"c","ѝ":"u","џ":"dz","Ґ":"G","ґ":"g","Ғ":"GH","ғ":"gh","Қ":"KH","қ":"kh","Ң":"NG","ң":"ng","Ү":"UE","ү":"ue","Ұ":"U","ұ":"u","Һ":"H","һ":"h","Ә":"AE","ә":"ae","Ө":"OE","ө":"oe","Ա":"A","Բ":"B","Գ":"G","Դ":"D","Ե":"E","Զ":"Z","Է":"E'","Ը":"Y'","Թ":"T'","Ժ":"JH","Ի":"I","Լ":"L","Խ":"X","Ծ":"C'","Կ":"K","Հ":"H","Ձ":"D'","Ղ":"GH","Ճ":"TW","Մ":"M","Յ":"Y","Ն":"N","Շ":"SH","Չ":"CH","Պ":"P","Ջ":"J","Ռ":"R'","Ս":"S","Վ":"V","Տ":"T","Ր":"R","Ց":"C","Փ":"P'","Ք":"Q'","Օ":"O''","Ֆ":"F","և":"EV","ء":"a","آ":"aa","أ":"a","ؤ":"u","إ":"i","ئ":"e","ا":"a","ب":"b","ة":"h","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ى":"a","ي":"y","ً":"an","ٌ":"on","ٍ":"en","َ":"a","ُ":"u","ِ":"e","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","پ":"p","چ":"ch","ژ":"zh","ک":"k","گ":"g","ی":"y","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","฿":"baht","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"f","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","Ṣ":"S","ṣ":"s","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","–":"-","‘":"'","’":"'","“":"\\"","”":"\\"","„":"\\"","†":"+","•":"*","…":"...","₠":"ecu","₢":"cruzeiro","₣":"french franc","₤":"lira","₥":"mill","₦":"naira","₧":"peseta","₨":"rupee","₩":"won","₪":"new shequel","₫":"dong","€":"euro","₭":"kip","₮":"tugrik","₯":"drachma","₰":"penny","₱":"peso","₲":"guarani","₳":"austral","₴":"hryvnia","₵":"cedi","₸":"kazakhstani tenge","₹":"indian rupee","₺":"turkish lira","₽":"russian ruble","₿":"bitcoin","℠":"sm","™":"tm","∂":"d","∆":"delta","∑":"sum","∞":"infinity","♥":"love","元":"yuan","円":"yen","﷼":"rial","ﻵ":"laa","ﻷ":"laa","ﻹ":"lai","ﻻ":"la"}`), t = JSON.parse('{"bg":{"Й":"Y","Ц":"Ts","Щ":"Sht","Ъ":"A","Ь":"Y","й":"y","ц":"ts","щ":"sht","ъ":"a","ь":"y"},"de":{"Ä":"AE","ä":"ae","Ö":"OE","ö":"oe","Ü":"UE","ü":"ue","ß":"ss","%":"prozent","&":"und","|":"oder","∑":"summe","∞":"unendlich","♥":"liebe"},"es":{"%":"por ciento","&":"y","<":"menor que",">":"mayor que","|":"o","¢":"centavos","£":"libras","¤":"moneda","₣":"francos","∑":"suma","∞":"infinito","♥":"amor"},"fr":{"%":"pourcent","&":"et","<":"plus petit",">":"plus grand","|":"ou","¢":"centime","£":"livre","¤":"devise","₣":"franc","∑":"somme","∞":"infini","♥":"amour"},"pt":{"%":"porcento","&":"e","<":"menor",">":"maior","|":"ou","¢":"centavo","∑":"soma","£":"libra","∞":"infinito","♥":"amor"},"uk":{"И":"Y","и":"y","Й":"Y","й":"y","Ц":"Ts","ц":"ts","Х":"Kh","х":"kh","Щ":"Shch","щ":"shch","Г":"H","г":"h"},"vi":{"Đ":"D","đ":"d"},"da":{"Ø":"OE","ø":"oe","Å":"AA","å":"aa","%":"procent","&":"og","|":"eller","$":"dollar","<":"mindre end",">":"større end"},"nb":{"&":"og","Å":"AA","Æ":"AE","Ø":"OE","å":"aa","æ":"ae","ø":"oe"},"it":{"&":"e"},"nl":{"&":"en"},"sv":{"&":"och","Å":"AA","Ä":"AE","Ö":"OE","å":"aa","ä":"ae","ö":"oe"}}');
|
|
94
|
+
function n(s, u) {
|
|
95
95
|
if (typeof s != "string")
|
|
96
96
|
throw new Error("slugify: string argument expected");
|
|
97
97
|
u = typeof u == "string" ? { replacement: u } : u || {};
|
|
98
|
-
var c = t[u.locale] || {}, h = u.replacement === void 0 ? "-" : u.replacement, S = u.trim === void 0 ? !0 : u.trim,
|
|
99
|
-
var
|
|
100
|
-
return
|
|
98
|
+
var c = t[u.locale] || {}, h = u.replacement === void 0 ? "-" : u.replacement, S = u.trim === void 0 ? !0 : u.trim, C = s.normalize().split("").reduce(function(y, m) {
|
|
99
|
+
var A = c[m];
|
|
100
|
+
return A === void 0 && (A = r[m]), A === void 0 && (A = m), A === h && (A = " "), y + A.replace(u.remove || /[^\w\s$*_+~.()'"!\-:@]+/g, "");
|
|
101
101
|
}, "");
|
|
102
|
-
return u.strict && (
|
|
102
|
+
return u.strict && (C = C.replace(/[^A-Za-z0-9\s]/g, "")), S && (C = C.trim()), C = C.replace(/\s+/g, h), u.lower && (C = C.toLowerCase()), C;
|
|
103
103
|
}
|
|
104
|
-
return
|
|
105
|
-
Object.assign(
|
|
106
|
-
},
|
|
104
|
+
return n.extend = function(s) {
|
|
105
|
+
Object.assign(r, s);
|
|
106
|
+
}, n;
|
|
107
107
|
});
|
|
108
108
|
})(ce)), ce.exports;
|
|
109
109
|
}
|
|
@@ -124,43 +124,43 @@ const Rt = {
|
|
|
124
124
|
slugCase: St,
|
|
125
125
|
snakeCase: mt
|
|
126
126
|
};
|
|
127
|
-
function
|
|
127
|
+
function Ct(i, e) {
|
|
128
128
|
return i.some(
|
|
129
|
-
(
|
|
129
|
+
(r) => typeof r == "string" ? r === e : r.test(e)
|
|
130
130
|
);
|
|
131
131
|
}
|
|
132
|
-
function
|
|
132
|
+
function At(i) {
|
|
133
133
|
return i === Object(i) && !Array.isArray(i) && typeof i != "function";
|
|
134
134
|
}
|
|
135
|
-
function w(i, e,
|
|
136
|
-
return
|
|
137
|
-
const s =
|
|
138
|
-
return t[s] =
|
|
139
|
-
}, {}) : Array.isArray(i) ? i.map((t) => w(t, e,
|
|
135
|
+
function w(i, e, r = { deep: !0 }) {
|
|
136
|
+
return At(i) ? Object.keys(i).reduce((t, n) => {
|
|
137
|
+
const s = r?.exclude && Ct(r.exclude, n) ? n : Rt[e](n);
|
|
138
|
+
return t[s] = r.deep ? w(i[n], e, r) : i[n], t;
|
|
139
|
+
}, {}) : Array.isArray(i) ? i.map((t) => w(t, e, r)) : i;
|
|
140
140
|
}
|
|
141
141
|
var Oe = /* @__PURE__ */ ((i) => (i.V1 = "v1", i))(Oe || {}), ee = /* @__PURE__ */ ((i) => (i.Production = "LIVE", i.Sandbox = "SANDBOX", i.Staging = "STAGING", i.CiCd = "CI-CD", i.Local = "LOCAL", i))(ee || {});
|
|
142
|
-
const
|
|
142
|
+
const Tt = {
|
|
143
143
|
LIVE: "https://booking-api.revolugo.com",
|
|
144
144
|
SANDBOX: "https://booking-api.sandbox.revolugo.com",
|
|
145
145
|
STAGING: "https://booking-api.staging.revolugo.com",
|
|
146
146
|
"CI-CD": "https://booking-api.staging.revolugo.com",
|
|
147
147
|
LOCAL: "http://127.0.0.1:3001"
|
|
148
148
|
};
|
|
149
|
-
var
|
|
149
|
+
var De = /* @__PURE__ */ ((i) => (i.HOTEL_ROOM_OFFERS = "HOTEL_ROOM_OFFERS", i.HOTEL_SEARCH_POLLING = "HOTEL_SEARCH_POLLING", i))(De || {}), le = { exports: {} }, Mt = le.exports, Le;
|
|
150
150
|
function tt() {
|
|
151
|
-
return
|
|
152
|
-
(function(
|
|
151
|
+
return Le || (Le = 1, (function(i, e) {
|
|
152
|
+
(function(r, t) {
|
|
153
153
|
i.exports = t();
|
|
154
154
|
})(Mt, (function() {
|
|
155
|
-
var
|
|
155
|
+
var r = 1e3, t = 6e4, n = 36e5, s = "millisecond", u = "second", c = "minute", h = "hour", S = "day", C = "week", y = "month", m = "quarter", A = "year", T = "date", d = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, I = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, b = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(R) {
|
|
156
156
|
var o = ["th", "st", "nd", "rd"], a = R % 100;
|
|
157
157
|
return "[" + R + (o[(a - 20) % 10] || o[a] || o[0]) + "]";
|
|
158
|
-
} },
|
|
158
|
+
} }, _ = function(R, o, a) {
|
|
159
159
|
var f = String(R);
|
|
160
160
|
return !f || f.length >= o ? R : "" + Array(o + 1 - f.length).join(a) + R;
|
|
161
|
-
},
|
|
161
|
+
}, P = { s: _, z: function(R) {
|
|
162
162
|
var o = -R.utcOffset(), a = Math.abs(o), f = Math.floor(a / 60), l = a % 60;
|
|
163
|
-
return (o <= 0 ? "+" : "-") +
|
|
163
|
+
return (o <= 0 ? "+" : "-") + _(f, 2, "0") + ":" + _(l, 2, "0");
|
|
164
164
|
}, m: function R(o, a) {
|
|
165
165
|
if (o.date() < a.date()) return -R(a, o);
|
|
166
166
|
var f = 12 * (a.year() - o.year()) + (a.month() - o.month()), l = o.clone().add(f, y), g = a - l < 0, p = o.clone().add(f + (g ? -1 : 1), y);
|
|
@@ -168,37 +168,37 @@ function tt() {
|
|
|
168
168
|
}, a: function(R) {
|
|
169
169
|
return R < 0 ? Math.ceil(R) || 0 : Math.floor(R);
|
|
170
170
|
}, p: function(R) {
|
|
171
|
-
return { M: y, y:
|
|
171
|
+
return { M: y, y: A, w: C, d: S, D: T, h, m: c, s: u, ms: s, Q: m }[R] || String(R || "").toLowerCase().replace(/s$/, "");
|
|
172
172
|
}, u: function(R) {
|
|
173
173
|
return R === void 0;
|
|
174
|
-
} },
|
|
175
|
-
B[
|
|
176
|
-
var
|
|
177
|
-
return R instanceof V || !(!R || !R[
|
|
178
|
-
},
|
|
174
|
+
} }, E = "en", B = {};
|
|
175
|
+
B[E] = b;
|
|
176
|
+
var K = "$isDayjsObject", F = function(R) {
|
|
177
|
+
return R instanceof V || !(!R || !R[K]);
|
|
178
|
+
}, N = function R(o, a, f) {
|
|
179
179
|
var l;
|
|
180
|
-
if (!o) return
|
|
180
|
+
if (!o) return E;
|
|
181
181
|
if (typeof o == "string") {
|
|
182
182
|
var g = o.toLowerCase();
|
|
183
183
|
B[g] && (l = g), a && (B[g] = a, l = g);
|
|
184
184
|
var p = o.split("-");
|
|
185
185
|
if (!l && p.length > 1) return R(p[0]);
|
|
186
186
|
} else {
|
|
187
|
-
var
|
|
188
|
-
B[
|
|
187
|
+
var D = o.name;
|
|
188
|
+
B[D] = o, l = D;
|
|
189
189
|
}
|
|
190
|
-
return !f && l && (
|
|
191
|
-
},
|
|
192
|
-
if (
|
|
190
|
+
return !f && l && (E = l), l || !f && E;
|
|
191
|
+
}, x = function(R, o) {
|
|
192
|
+
if (F(R)) return R.clone();
|
|
193
193
|
var a = typeof o == "object" ? o : {};
|
|
194
194
|
return a.date = R, a.args = arguments, new V(a);
|
|
195
|
-
}, O =
|
|
196
|
-
O.l =
|
|
197
|
-
return
|
|
195
|
+
}, O = P;
|
|
196
|
+
O.l = N, O.i = F, O.w = function(R, o) {
|
|
197
|
+
return x(R, { locale: o.$L, utc: o.$u, x: o.$x, $offset: o.$offset });
|
|
198
198
|
};
|
|
199
199
|
var V = (function() {
|
|
200
200
|
function R(a) {
|
|
201
|
-
this.$L =
|
|
201
|
+
this.$L = N(a.locale, null, !0), this.parse(a), this.$x = this.$x || a.x || {}, this[K] = !0;
|
|
202
202
|
}
|
|
203
203
|
var o = R.prototype;
|
|
204
204
|
return o.parse = function(a) {
|
|
@@ -210,8 +210,8 @@ function tt() {
|
|
|
210
210
|
if (typeof l == "string" && !/Z$/i.test(l)) {
|
|
211
211
|
var p = l.match(M);
|
|
212
212
|
if (p) {
|
|
213
|
-
var
|
|
214
|
-
return g ? new Date(Date.UTC(p[1],
|
|
213
|
+
var D = p[2] - 1 || 0, L = (p[7] || "0").substring(0, 3);
|
|
214
|
+
return g ? new Date(Date.UTC(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, L)) : new Date(p[1], D, p[3] || 1, p[4] || 0, p[5] || 0, p[6] || 0, L);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
return new Date(l);
|
|
@@ -224,12 +224,12 @@ function tt() {
|
|
|
224
224
|
}, o.isValid = function() {
|
|
225
225
|
return this.$d.toString() !== d;
|
|
226
226
|
}, o.isSame = function(a, f) {
|
|
227
|
-
var l =
|
|
227
|
+
var l = x(a);
|
|
228
228
|
return this.startOf(f) <= l && l <= this.endOf(f);
|
|
229
229
|
}, o.isAfter = function(a, f) {
|
|
230
|
-
return
|
|
230
|
+
return x(a) < this.startOf(f);
|
|
231
231
|
}, o.isBefore = function(a, f) {
|
|
232
|
-
return this.endOf(f) <
|
|
232
|
+
return this.endOf(f) < x(a);
|
|
233
233
|
}, o.$g = function(a, f, l) {
|
|
234
234
|
return O.u(a) ? this[f] : this.set(l, a);
|
|
235
235
|
}, o.unix = function() {
|
|
@@ -237,40 +237,40 @@ function tt() {
|
|
|
237
237
|
}, o.valueOf = function() {
|
|
238
238
|
return this.$d.getTime();
|
|
239
239
|
}, o.startOf = function(a, f) {
|
|
240
|
-
var l = this, g = !!O.u(f) || f, p = O.p(a),
|
|
240
|
+
var l = this, g = !!O.u(f) || f, p = O.p(a), D = function(Q, q) {
|
|
241
241
|
var Z = O.w(l.$u ? Date.UTC(l.$y, q, Q) : new Date(l.$y, q, Q), l);
|
|
242
242
|
return g ? Z : Z.endOf(S);
|
|
243
|
-
},
|
|
243
|
+
}, L = function(Q, q) {
|
|
244
244
|
return O.w(l.toDate()[Q].apply(l.toDate("s"), (g ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(q)), l);
|
|
245
245
|
}, G = this.$W, k = this.$M, H = this.$D, te = "set" + (this.$u ? "UTC" : "");
|
|
246
246
|
switch (p) {
|
|
247
|
-
case C:
|
|
248
|
-
return g ? _(1, 0) : _(31, 11);
|
|
249
|
-
case y:
|
|
250
|
-
return g ? _(1, k) : _(0, k + 1);
|
|
251
247
|
case A:
|
|
252
|
-
|
|
253
|
-
|
|
248
|
+
return g ? D(1, 0) : D(31, 11);
|
|
249
|
+
case y:
|
|
250
|
+
return g ? D(1, k) : D(0, k + 1);
|
|
251
|
+
case C:
|
|
252
|
+
var X = this.$locale().weekStart || 0, ne = (G < X ? G + 7 : G) - X;
|
|
253
|
+
return D(g ? H - ne : H + (6 - ne), k);
|
|
254
254
|
case S:
|
|
255
|
-
case
|
|
256
|
-
return
|
|
255
|
+
case T:
|
|
256
|
+
return L(te + "Hours", 0);
|
|
257
257
|
case h:
|
|
258
|
-
return
|
|
258
|
+
return L(te + "Minutes", 1);
|
|
259
259
|
case c:
|
|
260
|
-
return
|
|
260
|
+
return L(te + "Seconds", 2);
|
|
261
261
|
case u:
|
|
262
|
-
return
|
|
262
|
+
return L(te + "Milliseconds", 3);
|
|
263
263
|
default:
|
|
264
264
|
return this.clone();
|
|
265
265
|
}
|
|
266
266
|
}, o.endOf = function(a) {
|
|
267
267
|
return this.startOf(a, !1);
|
|
268
268
|
}, o.$set = function(a, f) {
|
|
269
|
-
var l, g = O.p(a), p = "set" + (this.$u ? "UTC" : ""),
|
|
270
|
-
if (g === y || g ===
|
|
271
|
-
var G = this.clone().set(
|
|
272
|
-
G.$d[
|
|
273
|
-
} else
|
|
269
|
+
var l, g = O.p(a), p = "set" + (this.$u ? "UTC" : ""), D = (l = {}, l[S] = p + "Date", l[T] = p + "Date", l[y] = p + "Month", l[A] = p + "FullYear", l[h] = p + "Hours", l[c] = p + "Minutes", l[u] = p + "Seconds", l[s] = p + "Milliseconds", l)[g], L = g === S ? this.$D + (f - this.$W) : f;
|
|
270
|
+
if (g === y || g === A) {
|
|
271
|
+
var G = this.clone().set(T, 1);
|
|
272
|
+
G.$d[D](L), G.init(), this.$d = G.set(T, Math.min(this.$D, G.daysInMonth())).$d;
|
|
273
|
+
} else D && this.$d[D](L);
|
|
274
274
|
return this.init(), this;
|
|
275
275
|
}, o.set = function(a, f) {
|
|
276
276
|
return this.clone().$set(a, f);
|
|
@@ -279,25 +279,25 @@ function tt() {
|
|
|
279
279
|
}, o.add = function(a, f) {
|
|
280
280
|
var l, g = this;
|
|
281
281
|
a = Number(a);
|
|
282
|
-
var p = O.p(f),
|
|
283
|
-
var H =
|
|
282
|
+
var p = O.p(f), D = function(k) {
|
|
283
|
+
var H = x(g);
|
|
284
284
|
return O.w(H.date(H.date() + Math.round(k * a)), g);
|
|
285
285
|
};
|
|
286
286
|
if (p === y) return this.set(y, this.$M + a);
|
|
287
|
-
if (p ===
|
|
288
|
-
if (p === S) return
|
|
289
|
-
if (p ===
|
|
290
|
-
var
|
|
287
|
+
if (p === A) return this.set(A, this.$y + a);
|
|
288
|
+
if (p === S) return D(1);
|
|
289
|
+
if (p === C) return D(7);
|
|
290
|
+
var L = (l = {}, l[c] = t, l[h] = n, l[u] = r, l)[p] || 1, G = this.$d.getTime() + a * L;
|
|
291
291
|
return O.w(G, this);
|
|
292
292
|
}, o.subtract = function(a, f) {
|
|
293
293
|
return this.add(-1 * a, f);
|
|
294
294
|
}, o.format = function(a) {
|
|
295
295
|
var f = this, l = this.$locale();
|
|
296
296
|
if (!this.isValid()) return l.invalidDate || d;
|
|
297
|
-
var g = a || "YYYY-MM-DDTHH:mm:ssZ", p = O.z(this),
|
|
297
|
+
var g = a || "YYYY-MM-DDTHH:mm:ssZ", p = O.z(this), D = this.$H, L = this.$m, G = this.$M, k = l.weekdays, H = l.months, te = l.meridiem, X = function(q, Z, ie, ae) {
|
|
298
298
|
return q && (q[Z] || q(f, g)) || ie[Z].slice(0, ae);
|
|
299
|
-
},
|
|
300
|
-
return O.s(
|
|
299
|
+
}, ne = function(q) {
|
|
300
|
+
return O.s(D % 12 || 12, q, "0");
|
|
301
301
|
}, Q = te || function(q, Z, ie) {
|
|
302
302
|
var ae = q < 12 ? "AM" : "PM";
|
|
303
303
|
return ie ? ae.toLowerCase() : ae;
|
|
@@ -330,21 +330,21 @@ function tt() {
|
|
|
330
330
|
case "dddd":
|
|
331
331
|
return k[f.$W];
|
|
332
332
|
case "H":
|
|
333
|
-
return String(
|
|
333
|
+
return String(D);
|
|
334
334
|
case "HH":
|
|
335
|
-
return O.s(
|
|
335
|
+
return O.s(D, 2, "0");
|
|
336
336
|
case "h":
|
|
337
|
-
return
|
|
337
|
+
return ne(1);
|
|
338
338
|
case "hh":
|
|
339
|
-
return
|
|
339
|
+
return ne(2);
|
|
340
340
|
case "a":
|
|
341
|
-
return Q(
|
|
341
|
+
return Q(D, L, !0);
|
|
342
342
|
case "A":
|
|
343
|
-
return Q(
|
|
343
|
+
return Q(D, L, !1);
|
|
344
344
|
case "m":
|
|
345
|
-
return String(
|
|
345
|
+
return String(L);
|
|
346
346
|
case "mm":
|
|
347
|
-
return O.s(
|
|
347
|
+
return O.s(L, 2, "0");
|
|
348
348
|
case "s":
|
|
349
349
|
return String(f.$s);
|
|
350
350
|
case "ss":
|
|
@@ -360,11 +360,11 @@ function tt() {
|
|
|
360
360
|
}, o.utcOffset = function() {
|
|
361
361
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
362
362
|
}, o.diff = function(a, f, l) {
|
|
363
|
-
var g, p = this,
|
|
364
|
-
return O.m(p,
|
|
363
|
+
var g, p = this, D = O.p(f), L = x(a), G = (L.utcOffset() - this.utcOffset()) * t, k = this - L, H = function() {
|
|
364
|
+
return O.m(p, L);
|
|
365
365
|
};
|
|
366
|
-
switch (
|
|
367
|
-
case
|
|
366
|
+
switch (D) {
|
|
367
|
+
case A:
|
|
368
368
|
g = H() / 12;
|
|
369
369
|
break;
|
|
370
370
|
case y:
|
|
@@ -373,20 +373,20 @@ function tt() {
|
|
|
373
373
|
case m:
|
|
374
374
|
g = H() / 3;
|
|
375
375
|
break;
|
|
376
|
-
case
|
|
376
|
+
case C:
|
|
377
377
|
g = (k - G) / 6048e5;
|
|
378
378
|
break;
|
|
379
379
|
case S:
|
|
380
380
|
g = (k - G) / 864e5;
|
|
381
381
|
break;
|
|
382
382
|
case h:
|
|
383
|
-
g = k /
|
|
383
|
+
g = k / n;
|
|
384
384
|
break;
|
|
385
385
|
case c:
|
|
386
386
|
g = k / t;
|
|
387
387
|
break;
|
|
388
388
|
case u:
|
|
389
|
-
g = k /
|
|
389
|
+
g = k / r;
|
|
390
390
|
break;
|
|
391
391
|
default:
|
|
392
392
|
g = k;
|
|
@@ -398,7 +398,7 @@ function tt() {
|
|
|
398
398
|
return B[this.$L];
|
|
399
399
|
}, o.locale = function(a, f) {
|
|
400
400
|
if (!a) return this.$L;
|
|
401
|
-
var l = this.clone(), g =
|
|
401
|
+
var l = this.clone(), g = N(a, f, !0);
|
|
402
402
|
return g && (l.$L = g), l;
|
|
403
403
|
}, o.clone = function() {
|
|
404
404
|
return O.w(this.$d, this);
|
|
@@ -412,32 +412,32 @@ function tt() {
|
|
|
412
412
|
return this.$d.toUTCString();
|
|
413
413
|
}, R;
|
|
414
414
|
})(), oe = V.prototype;
|
|
415
|
-
return
|
|
415
|
+
return x.prototype = oe, [["$ms", s], ["$s", u], ["$m", c], ["$H", h], ["$W", S], ["$M", y], ["$y", A], ["$D", T]].forEach((function(R) {
|
|
416
416
|
oe[R[1]] = function(o) {
|
|
417
417
|
return this.$g(o, R[0], R[1]);
|
|
418
418
|
};
|
|
419
|
-
})),
|
|
420
|
-
return R.$i || (R(o, V,
|
|
421
|
-
},
|
|
422
|
-
return
|
|
423
|
-
},
|
|
419
|
+
})), x.extend = function(R, o) {
|
|
420
|
+
return R.$i || (R(o, V, x), R.$i = !0), x;
|
|
421
|
+
}, x.locale = N, x.isDayjs = F, x.unix = function(R) {
|
|
422
|
+
return x(1e3 * R);
|
|
423
|
+
}, x.en = B[E], x.Ls = B, x.p = {}, x;
|
|
424
424
|
}));
|
|
425
425
|
})(le)), le.exports;
|
|
426
426
|
}
|
|
427
|
-
var
|
|
428
|
-
const z = /* @__PURE__ */ j(
|
|
427
|
+
var Et = tt();
|
|
428
|
+
const z = /* @__PURE__ */ j(Et);
|
|
429
429
|
var fe = { exports: {} }, Ot = fe.exports, Pe;
|
|
430
430
|
function kt() {
|
|
431
431
|
return Pe || (Pe = 1, (function(i, e) {
|
|
432
|
-
(function(
|
|
432
|
+
(function(r, t) {
|
|
433
433
|
i.exports = t();
|
|
434
434
|
})(Ot, (function() {
|
|
435
|
-
return function(
|
|
436
|
-
var
|
|
437
|
-
|
|
435
|
+
return function(r, t) {
|
|
436
|
+
var n = t.prototype, s = n.format;
|
|
437
|
+
n.format = function(u) {
|
|
438
438
|
var c = this, h = this.$locale();
|
|
439
439
|
if (!this.isValid()) return s.bind(this)(u);
|
|
440
|
-
var S = this.$utils(),
|
|
440
|
+
var S = this.$utils(), C = (u || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, (function(y) {
|
|
441
441
|
switch (y) {
|
|
442
442
|
case "Q":
|
|
443
443
|
return Math.ceil((c.$M + 1) / 3);
|
|
@@ -470,90 +470,90 @@ function kt() {
|
|
|
470
470
|
return y;
|
|
471
471
|
}
|
|
472
472
|
}));
|
|
473
|
-
return s.bind(this)(
|
|
473
|
+
return s.bind(this)(C);
|
|
474
474
|
};
|
|
475
475
|
};
|
|
476
476
|
}));
|
|
477
477
|
})(fe)), fe.exports;
|
|
478
478
|
}
|
|
479
|
-
var
|
|
480
|
-
const
|
|
481
|
-
var de = { exports: {} }, bt = de.exports,
|
|
479
|
+
var _t = kt();
|
|
480
|
+
const Dt = /* @__PURE__ */ j(_t);
|
|
481
|
+
var de = { exports: {} }, bt = de.exports, $e;
|
|
482
482
|
function It() {
|
|
483
|
-
return
|
|
484
|
-
(function(
|
|
483
|
+
return $e || ($e = 1, (function(i, e) {
|
|
484
|
+
(function(r, t) {
|
|
485
485
|
i.exports = t();
|
|
486
486
|
})(bt, (function() {
|
|
487
|
-
return function(
|
|
487
|
+
return function(r, t, n) {
|
|
488
488
|
t.prototype.isBetween = function(s, u, c, h) {
|
|
489
|
-
var S =
|
|
490
|
-
return (y ? this.isAfter(S, c) : !this.isBefore(S, c)) && (m ? this.isBefore(
|
|
489
|
+
var S = n(s), C = n(u), y = (h = h || "()")[0] === "(", m = h[1] === ")";
|
|
490
|
+
return (y ? this.isAfter(S, c) : !this.isBefore(S, c)) && (m ? this.isBefore(C, c) : !this.isAfter(C, c)) || (y ? this.isBefore(S, c) : !this.isAfter(S, c)) && (m ? this.isAfter(C, c) : !this.isBefore(C, c));
|
|
491
491
|
};
|
|
492
492
|
};
|
|
493
493
|
}));
|
|
494
494
|
})(de)), de.exports;
|
|
495
495
|
}
|
|
496
496
|
var Bt = It();
|
|
497
|
-
const
|
|
498
|
-
var he = { exports: {} },
|
|
497
|
+
const xt = /* @__PURE__ */ j(Bt);
|
|
498
|
+
var he = { exports: {} }, Lt = he.exports, Ue;
|
|
499
499
|
function Pt() {
|
|
500
|
-
return
|
|
501
|
-
(function(
|
|
500
|
+
return Ue || (Ue = 1, (function(i, e) {
|
|
501
|
+
(function(r, t) {
|
|
502
502
|
i.exports = t();
|
|
503
|
-
})(
|
|
504
|
-
return function(
|
|
505
|
-
t.prototype.isSameOrAfter = function(
|
|
506
|
-
return this.isSame(
|
|
503
|
+
})(Lt, (function() {
|
|
504
|
+
return function(r, t) {
|
|
505
|
+
t.prototype.isSameOrAfter = function(n, s) {
|
|
506
|
+
return this.isSame(n, s) || this.isAfter(n, s);
|
|
507
507
|
};
|
|
508
508
|
};
|
|
509
509
|
}));
|
|
510
510
|
})(he)), he.exports;
|
|
511
511
|
}
|
|
512
|
-
var
|
|
513
|
-
const
|
|
514
|
-
var pe = { exports: {} },
|
|
512
|
+
var $t = Pt();
|
|
513
|
+
const Ut = /* @__PURE__ */ j($t);
|
|
514
|
+
var pe = { exports: {} }, Nt = pe.exports, Ne;
|
|
515
515
|
function Gt() {
|
|
516
|
-
return
|
|
517
|
-
(function(
|
|
516
|
+
return Ne || (Ne = 1, (function(i, e) {
|
|
517
|
+
(function(r, t) {
|
|
518
518
|
i.exports = t();
|
|
519
|
-
})(
|
|
520
|
-
return function(
|
|
521
|
-
t.prototype.isSameOrBefore = function(
|
|
522
|
-
return this.isSame(
|
|
519
|
+
})(Nt, (function() {
|
|
520
|
+
return function(r, t) {
|
|
521
|
+
t.prototype.isSameOrBefore = function(n, s) {
|
|
522
|
+
return this.isSame(n, s) || this.isBefore(n, s);
|
|
523
523
|
};
|
|
524
524
|
};
|
|
525
525
|
}));
|
|
526
526
|
})(pe)), pe.exports;
|
|
527
527
|
}
|
|
528
528
|
var Ht = Gt();
|
|
529
|
-
const
|
|
530
|
-
var me = { exports: {} },
|
|
529
|
+
const Kt = /* @__PURE__ */ j(Ht);
|
|
530
|
+
var me = { exports: {} }, Ft = me.exports, Ge;
|
|
531
531
|
function Yt() {
|
|
532
532
|
return Ge || (Ge = 1, (function(i, e) {
|
|
533
|
-
(function(
|
|
533
|
+
(function(r, t) {
|
|
534
534
|
i.exports = t();
|
|
535
|
-
})(
|
|
536
|
-
return function(
|
|
535
|
+
})(Ft, (function() {
|
|
536
|
+
return function(r, t, n) {
|
|
537
537
|
var s = t.prototype, u = function(y) {
|
|
538
538
|
return y && (y.indexOf ? y : y.s);
|
|
539
|
-
}, c = function(y, m,
|
|
540
|
-
var M = y.name ? y : y.$locale(), I = u(M[m]), b = u(M[
|
|
541
|
-
return
|
|
539
|
+
}, c = function(y, m, A, T, d) {
|
|
540
|
+
var M = y.name ? y : y.$locale(), I = u(M[m]), b = u(M[A]), _ = I || b.map((function(E) {
|
|
541
|
+
return E.slice(0, T);
|
|
542
542
|
}));
|
|
543
|
-
if (!d) return
|
|
544
|
-
var
|
|
545
|
-
return
|
|
546
|
-
return
|
|
543
|
+
if (!d) return _;
|
|
544
|
+
var P = M.weekStart;
|
|
545
|
+
return _.map((function(E, B) {
|
|
546
|
+
return _[(B + (P || 0)) % 7];
|
|
547
547
|
}));
|
|
548
548
|
}, h = function() {
|
|
549
|
-
return
|
|
549
|
+
return n.Ls[n.locale()];
|
|
550
550
|
}, S = function(y, m) {
|
|
551
|
-
return y.formats[m] || (function(
|
|
552
|
-
return
|
|
551
|
+
return y.formats[m] || (function(A) {
|
|
552
|
+
return A.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(T, d, M) {
|
|
553
553
|
return d || M.slice(1);
|
|
554
554
|
}));
|
|
555
555
|
})(y.formats[m.toUpperCase()]);
|
|
556
|
-
},
|
|
556
|
+
}, C = function() {
|
|
557
557
|
var y = this;
|
|
558
558
|
return { months: function(m) {
|
|
559
559
|
return m ? m.format("MMMM") : c(y, "months");
|
|
@@ -572,33 +572,33 @@ function Yt() {
|
|
|
572
572
|
}, meridiem: this.$locale().meridiem, ordinal: this.$locale().ordinal };
|
|
573
573
|
};
|
|
574
574
|
s.localeData = function() {
|
|
575
|
-
return
|
|
576
|
-
},
|
|
575
|
+
return C.bind(this)();
|
|
576
|
+
}, n.localeData = function() {
|
|
577
577
|
var y = h();
|
|
578
578
|
return { firstDayOfWeek: function() {
|
|
579
579
|
return y.weekStart || 0;
|
|
580
580
|
}, weekdays: function() {
|
|
581
|
-
return
|
|
581
|
+
return n.weekdays();
|
|
582
582
|
}, weekdaysShort: function() {
|
|
583
|
-
return
|
|
583
|
+
return n.weekdaysShort();
|
|
584
584
|
}, weekdaysMin: function() {
|
|
585
|
-
return
|
|
585
|
+
return n.weekdaysMin();
|
|
586
586
|
}, months: function() {
|
|
587
|
-
return
|
|
587
|
+
return n.months();
|
|
588
588
|
}, monthsShort: function() {
|
|
589
|
-
return
|
|
589
|
+
return n.monthsShort();
|
|
590
590
|
}, longDateFormat: function(m) {
|
|
591
591
|
return S(y, m);
|
|
592
592
|
}, meridiem: y.meridiem, ordinal: y.ordinal };
|
|
593
|
-
},
|
|
593
|
+
}, n.months = function() {
|
|
594
594
|
return c(h(), "months");
|
|
595
|
-
},
|
|
595
|
+
}, n.monthsShort = function() {
|
|
596
596
|
return c(h(), "monthsShort", "months", 3);
|
|
597
|
-
},
|
|
597
|
+
}, n.weekdays = function(y) {
|
|
598
598
|
return c(h(), "weekdays", null, null, y);
|
|
599
|
-
},
|
|
599
|
+
}, n.weekdaysShort = function(y) {
|
|
600
600
|
return c(h(), "weekdaysShort", "weekdays", 3, y);
|
|
601
|
-
},
|
|
601
|
+
}, n.weekdaysMin = function(y) {
|
|
602
602
|
return c(h(), "weekdaysMin", "weekdays", 2, y);
|
|
603
603
|
};
|
|
604
604
|
};
|
|
@@ -610,23 +610,23 @@ const qt = /* @__PURE__ */ j(Vt);
|
|
|
610
610
|
var ye = { exports: {} }, jt = ye.exports, He;
|
|
611
611
|
function zt() {
|
|
612
612
|
return He || (He = 1, (function(i, e) {
|
|
613
|
-
(function(
|
|
613
|
+
(function(r, t) {
|
|
614
614
|
i.exports = t();
|
|
615
615
|
})(jt, (function() {
|
|
616
|
-
var
|
|
617
|
-
return function(t,
|
|
618
|
-
var u =
|
|
619
|
-
s.en.formats =
|
|
616
|
+
var r = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
617
|
+
return function(t, n, s) {
|
|
618
|
+
var u = n.prototype, c = u.format;
|
|
619
|
+
s.en.formats = r, u.format = function(h) {
|
|
620
620
|
h === void 0 && (h = "YYYY-MM-DDTHH:mm:ssZ");
|
|
621
|
-
var S = this.$locale().formats,
|
|
622
|
-
return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(
|
|
621
|
+
var S = this.$locale().formats, C = (function(y, m) {
|
|
622
|
+
return y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function(A, T, d) {
|
|
623
623
|
var M = d && d.toUpperCase();
|
|
624
|
-
return
|
|
625
|
-
return b ||
|
|
624
|
+
return T || m[d] || r[d] || m[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(I, b, _) {
|
|
625
|
+
return b || _.slice(1);
|
|
626
626
|
}));
|
|
627
627
|
}));
|
|
628
628
|
})(h, S === void 0 ? {} : S);
|
|
629
|
-
return c.call(this,
|
|
629
|
+
return c.call(this, C);
|
|
630
630
|
};
|
|
631
631
|
};
|
|
632
632
|
}));
|
|
@@ -634,26 +634,26 @@ function zt() {
|
|
|
634
634
|
}
|
|
635
635
|
var Wt = zt();
|
|
636
636
|
const Zt = /* @__PURE__ */ j(Wt);
|
|
637
|
-
var ge = { exports: {} }, Jt = ge.exports,
|
|
637
|
+
var ge = { exports: {} }, Jt = ge.exports, Ke;
|
|
638
638
|
function Xt() {
|
|
639
|
-
return
|
|
640
|
-
(function(
|
|
639
|
+
return Ke || (Ke = 1, (function(i, e) {
|
|
640
|
+
(function(r, t) {
|
|
641
641
|
i.exports = t();
|
|
642
642
|
})(Jt, (function() {
|
|
643
|
-
return function(
|
|
643
|
+
return function(r, t, n) {
|
|
644
644
|
var s = function(u, c) {
|
|
645
645
|
if (!c || !c.length || c.length === 1 && !c[0] || c.length === 1 && Array.isArray(c[0]) && !c[0].length) return null;
|
|
646
646
|
var h;
|
|
647
|
-
c.length === 1 && c[0].length > 0 && (c = c[0]), h = (c = c.filter((function(
|
|
648
|
-
return
|
|
647
|
+
c.length === 1 && c[0].length > 0 && (c = c[0]), h = (c = c.filter((function(C) {
|
|
648
|
+
return C;
|
|
649
649
|
})))[0];
|
|
650
650
|
for (var S = 1; S < c.length; S += 1) c[S].isValid() && !c[S][u](h) || (h = c[S]);
|
|
651
651
|
return h;
|
|
652
652
|
};
|
|
653
|
-
|
|
653
|
+
n.max = function() {
|
|
654
654
|
var u = [].slice.call(arguments, 0);
|
|
655
655
|
return s("isAfter", u);
|
|
656
|
-
},
|
|
656
|
+
}, n.min = function() {
|
|
657
657
|
var u = [].slice.call(arguments, 0);
|
|
658
658
|
return s("isBefore", u);
|
|
659
659
|
};
|
|
@@ -662,41 +662,41 @@ function Xt() {
|
|
|
662
662
|
})(ge)), ge.exports;
|
|
663
663
|
}
|
|
664
664
|
var Qt = Xt();
|
|
665
|
-
const
|
|
666
|
-
var we = { exports: {} },
|
|
667
|
-
function
|
|
668
|
-
return
|
|
669
|
-
(function(
|
|
665
|
+
const er = /* @__PURE__ */ j(Qt);
|
|
666
|
+
var we = { exports: {} }, tr = we.exports, Fe;
|
|
667
|
+
function rr() {
|
|
668
|
+
return Fe || (Fe = 1, (function(i, e) {
|
|
669
|
+
(function(r, t) {
|
|
670
670
|
i.exports = t();
|
|
671
|
-
})(
|
|
672
|
-
return function(
|
|
673
|
-
|
|
671
|
+
})(tr, (function() {
|
|
672
|
+
return function(r, t, n) {
|
|
673
|
+
r = r || {};
|
|
674
674
|
var s = t.prototype, u = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
675
|
-
function c(S,
|
|
676
|
-
return s.fromToBase(S,
|
|
675
|
+
function c(S, C, y, m) {
|
|
676
|
+
return s.fromToBase(S, C, y, m);
|
|
677
677
|
}
|
|
678
|
-
|
|
679
|
-
for (var
|
|
680
|
-
var
|
|
681
|
-
|
|
682
|
-
var B = (
|
|
683
|
-
if (M =
|
|
684
|
-
B <= 1 &&
|
|
685
|
-
var
|
|
686
|
-
|
|
678
|
+
n.en.relativeTime = u, s.fromToBase = function(S, C, y, m, A) {
|
|
679
|
+
for (var T, d, M, I = y.$locale().relativeTime || u, b = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], _ = b.length, P = 0; P < _; P += 1) {
|
|
680
|
+
var E = b[P];
|
|
681
|
+
E.d && (T = m ? n(S).diff(y, E.d, !0) : y.diff(S, E.d, !0));
|
|
682
|
+
var B = (r.rounding || Math.round)(Math.abs(T));
|
|
683
|
+
if (M = T > 0, B <= E.r || !E.r) {
|
|
684
|
+
B <= 1 && P > 0 && (E = b[P - 1]);
|
|
685
|
+
var K = I[E.l];
|
|
686
|
+
A && (B = A("" + B)), d = typeof K == "string" ? K.replace("%d", B) : K(B, C, E.l, M);
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
if (
|
|
691
|
-
var
|
|
692
|
-
return typeof
|
|
693
|
-
}, s.to = function(S,
|
|
694
|
-
return c(S,
|
|
695
|
-
}, s.from = function(S,
|
|
696
|
-
return c(S,
|
|
690
|
+
if (C) return d;
|
|
691
|
+
var F = M ? I.future : I.past;
|
|
692
|
+
return typeof F == "function" ? F(d) : F.replace("%s", d);
|
|
693
|
+
}, s.to = function(S, C) {
|
|
694
|
+
return c(S, C, this, !0);
|
|
695
|
+
}, s.from = function(S, C) {
|
|
696
|
+
return c(S, C, this);
|
|
697
697
|
};
|
|
698
698
|
var h = function(S) {
|
|
699
|
-
return S.$u ?
|
|
699
|
+
return S.$u ? n.utc() : n();
|
|
700
700
|
};
|
|
701
701
|
s.toNow = function(S) {
|
|
702
702
|
return this.to(h(this), S);
|
|
@@ -707,62 +707,62 @@ function nn() {
|
|
|
707
707
|
}));
|
|
708
708
|
})(we)), we.exports;
|
|
709
709
|
}
|
|
710
|
-
var
|
|
711
|
-
const
|
|
712
|
-
var ve = { exports: {} },
|
|
713
|
-
function
|
|
710
|
+
var nr = rr();
|
|
711
|
+
const ir = /* @__PURE__ */ j(nr);
|
|
712
|
+
var ve = { exports: {} }, or = ve.exports, Ye;
|
|
713
|
+
function ar() {
|
|
714
714
|
return Ye || (Ye = 1, (function(i, e) {
|
|
715
|
-
(function(
|
|
715
|
+
(function(r, t) {
|
|
716
716
|
i.exports = t();
|
|
717
|
-
})(
|
|
718
|
-
var
|
|
719
|
-
return function(
|
|
720
|
-
var c, h = function(m,
|
|
721
|
-
|
|
717
|
+
})(or, (function() {
|
|
718
|
+
var r = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, t = {};
|
|
719
|
+
return function(n, s, u) {
|
|
720
|
+
var c, h = function(m, A, T) {
|
|
721
|
+
T === void 0 && (T = {});
|
|
722
722
|
var d = new Date(m), M = (function(I, b) {
|
|
723
723
|
b === void 0 && (b = {});
|
|
724
|
-
var
|
|
725
|
-
return
|
|
726
|
-
})(
|
|
724
|
+
var _ = b.timeZoneName || "short", P = I + "|" + _, E = t[P];
|
|
725
|
+
return E || (E = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: I, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: _ }), t[P] = E), E;
|
|
726
|
+
})(A, T);
|
|
727
727
|
return M.formatToParts(d);
|
|
728
|
-
}, S = function(m,
|
|
729
|
-
for (var
|
|
730
|
-
var I =
|
|
731
|
-
|
|
728
|
+
}, S = function(m, A) {
|
|
729
|
+
for (var T = h(m, A), d = [], M = 0; M < T.length; M += 1) {
|
|
730
|
+
var I = T[M], b = I.type, _ = I.value, P = r[b];
|
|
731
|
+
P >= 0 && (d[P] = parseInt(_, 10));
|
|
732
732
|
}
|
|
733
|
-
var
|
|
734
|
-
return (u.utc(
|
|
735
|
-
},
|
|
736
|
-
|
|
733
|
+
var E = d[3], B = E === 24 ? 0 : E, K = d[0] + "-" + d[1] + "-" + d[2] + " " + B + ":" + d[4] + ":" + d[5] + ":000", F = +m;
|
|
734
|
+
return (u.utc(K).valueOf() - (F -= F % 1e3)) / 6e4;
|
|
735
|
+
}, C = s.prototype;
|
|
736
|
+
C.tz = function(m, A) {
|
|
737
737
|
m === void 0 && (m = c);
|
|
738
|
-
var
|
|
739
|
-
if (!Number(
|
|
740
|
-
else if (
|
|
741
|
-
var
|
|
742
|
-
|
|
738
|
+
var T, d = this.utcOffset(), M = this.toDate(), I = M.toLocaleString("en-US", { timeZone: m }), b = Math.round((M - new Date(I)) / 1e3 / 60), _ = 15 * -Math.round(M.getTimezoneOffset() / 15) - b;
|
|
739
|
+
if (!Number(_)) T = this.utcOffset(0, A);
|
|
740
|
+
else if (T = u(I, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(_, !0), A) {
|
|
741
|
+
var P = T.utcOffset();
|
|
742
|
+
T = T.add(d - P, "minute");
|
|
743
743
|
}
|
|
744
|
-
return
|
|
745
|
-
},
|
|
746
|
-
var
|
|
744
|
+
return T.$x.$timezone = m, T;
|
|
745
|
+
}, C.offsetName = function(m) {
|
|
746
|
+
var A = this.$x.$timezone || u.tz.guess(), T = h(this.valueOf(), A, { timeZoneName: m }).find((function(d) {
|
|
747
747
|
return d.type.toLowerCase() === "timezonename";
|
|
748
748
|
}));
|
|
749
|
-
return
|
|
749
|
+
return T && T.value;
|
|
750
750
|
};
|
|
751
|
-
var y =
|
|
752
|
-
|
|
753
|
-
if (!this.$x || !this.$x.$timezone) return y.call(this, m,
|
|
754
|
-
var
|
|
755
|
-
return y.call(
|
|
756
|
-
}, u.tz = function(m,
|
|
757
|
-
var d =
|
|
751
|
+
var y = C.startOf;
|
|
752
|
+
C.startOf = function(m, A) {
|
|
753
|
+
if (!this.$x || !this.$x.$timezone) return y.call(this, m, A);
|
|
754
|
+
var T = u(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
755
|
+
return y.call(T, m, A).tz(this.$x.$timezone, !0);
|
|
756
|
+
}, u.tz = function(m, A, T) {
|
|
757
|
+
var d = T && A, M = T || A || c, I = S(+u(), M);
|
|
758
758
|
if (typeof m != "string") return u(m).tz(M);
|
|
759
|
-
var b = (function(B,
|
|
760
|
-
var
|
|
761
|
-
if (
|
|
762
|
-
var O = S(
|
|
763
|
-
return
|
|
764
|
-
})(u.utc(m, d).valueOf(), I, M),
|
|
765
|
-
return
|
|
759
|
+
var b = (function(B, K, F) {
|
|
760
|
+
var N = B - 60 * K * 1e3, x = S(N, F);
|
|
761
|
+
if (K === x) return [N, K];
|
|
762
|
+
var O = S(N -= 60 * (x - K) * 1e3, F);
|
|
763
|
+
return x === O ? [N, x] : [B - 60 * Math.min(x, O) * 1e3, Math.max(x, O)];
|
|
764
|
+
})(u.utc(m, d).valueOf(), I, M), _ = b[0], P = b[1], E = u(_).utcOffset(P);
|
|
765
|
+
return E.$x.$timezone = M, E;
|
|
766
766
|
}, u.tz.guess = function() {
|
|
767
767
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
768
768
|
}, u.tz.setDefault = function(m) {
|
|
@@ -772,15 +772,15 @@ function sn() {
|
|
|
772
772
|
}));
|
|
773
773
|
})(ve)), ve.exports;
|
|
774
774
|
}
|
|
775
|
-
var
|
|
776
|
-
const
|
|
777
|
-
var Se = { exports: {} },
|
|
778
|
-
function
|
|
775
|
+
var sr = ar();
|
|
776
|
+
const ur = /* @__PURE__ */ j(sr);
|
|
777
|
+
var Se = { exports: {} }, cr = Se.exports, Ve;
|
|
778
|
+
function lr() {
|
|
779
779
|
return Ve || (Ve = 1, (function(i, e) {
|
|
780
|
-
(function(
|
|
780
|
+
(function(r, t) {
|
|
781
781
|
i.exports = t();
|
|
782
|
-
})(
|
|
783
|
-
var
|
|
782
|
+
})(cr, (function() {
|
|
783
|
+
var r = "minute", t = /[+-]\d\d(?::?\d\d)?/g, n = /([+-]|\d\d)/g;
|
|
784
784
|
return function(s, u, c) {
|
|
785
785
|
var h = u.prototype;
|
|
786
786
|
c.utc = function(d) {
|
|
@@ -788,7 +788,7 @@ function fn() {
|
|
|
788
788
|
return new u(M);
|
|
789
789
|
}, h.utc = function(d) {
|
|
790
790
|
var M = c(this.toDate(), { locale: this.$L, utc: !0 });
|
|
791
|
-
return d ? M.add(this.utcOffset(),
|
|
791
|
+
return d ? M.add(this.utcOffset(), r) : M;
|
|
792
792
|
}, h.local = function() {
|
|
793
793
|
return c(this.toDate(), { locale: this.$L, utc: !1 });
|
|
794
794
|
};
|
|
@@ -796,30 +796,30 @@ function fn() {
|
|
|
796
796
|
h.parse = function(d) {
|
|
797
797
|
d.utc && (this.$u = !0), this.$utils().u(d.$offset) || (this.$offset = d.$offset), S.call(this, d);
|
|
798
798
|
};
|
|
799
|
-
var
|
|
799
|
+
var C = h.init;
|
|
800
800
|
h.init = function() {
|
|
801
801
|
if (this.$u) {
|
|
802
802
|
var d = this.$d;
|
|
803
803
|
this.$y = d.getUTCFullYear(), this.$M = d.getUTCMonth(), this.$D = d.getUTCDate(), this.$W = d.getUTCDay(), this.$H = d.getUTCHours(), this.$m = d.getUTCMinutes(), this.$s = d.getUTCSeconds(), this.$ms = d.getUTCMilliseconds();
|
|
804
|
-
} else
|
|
804
|
+
} else C.call(this);
|
|
805
805
|
};
|
|
806
806
|
var y = h.utcOffset;
|
|
807
807
|
h.utcOffset = function(d, M) {
|
|
808
808
|
var I = this.$utils().u;
|
|
809
809
|
if (I(d)) return this.$u ? 0 : I(this.$offset) ? y.call(this) : this.$offset;
|
|
810
|
-
if (typeof d == "string" && (d = (function(
|
|
811
|
-
|
|
812
|
-
var B =
|
|
810
|
+
if (typeof d == "string" && (d = (function(E) {
|
|
811
|
+
E === void 0 && (E = "");
|
|
812
|
+
var B = E.match(t);
|
|
813
813
|
if (!B) return null;
|
|
814
|
-
var
|
|
815
|
-
return
|
|
814
|
+
var K = ("" + B[0]).match(n) || ["-", 0, 0], F = K[0], N = 60 * +K[1] + +K[2];
|
|
815
|
+
return N === 0 ? 0 : F === "+" ? N : -N;
|
|
816
816
|
})(d), d === null)) return this;
|
|
817
817
|
var b = Math.abs(d) <= 16 ? 60 * d : d;
|
|
818
818
|
if (b === 0) return this.utc(M);
|
|
819
|
-
var
|
|
820
|
-
if (M) return
|
|
821
|
-
var
|
|
822
|
-
return (
|
|
819
|
+
var _ = this.clone();
|
|
820
|
+
if (M) return _.$offset = b, _.$u = !1, _;
|
|
821
|
+
var P = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
822
|
+
return (_ = this.local().add(b + P, r)).$offset = b, _.$x.$localOffset = P, _;
|
|
823
823
|
};
|
|
824
824
|
var m = h.format;
|
|
825
825
|
h.format = function(d) {
|
|
@@ -835,144 +835,144 @@ function fn() {
|
|
|
835
835
|
}, h.toString = function() {
|
|
836
836
|
return this.toDate().toUTCString();
|
|
837
837
|
};
|
|
838
|
-
var
|
|
838
|
+
var A = h.toDate;
|
|
839
839
|
h.toDate = function(d) {
|
|
840
|
-
return d === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() :
|
|
840
|
+
return d === "s" && this.$offset ? c(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : A.call(this);
|
|
841
841
|
};
|
|
842
|
-
var
|
|
842
|
+
var T = h.diff;
|
|
843
843
|
h.diff = function(d, M, I) {
|
|
844
|
-
if (d && this.$u === d.$u) return
|
|
845
|
-
var b = this.local(),
|
|
846
|
-
return
|
|
844
|
+
if (d && this.$u === d.$u) return T.call(this, d, M, I);
|
|
845
|
+
var b = this.local(), _ = c(d).local();
|
|
846
|
+
return T.call(b, _, M, I);
|
|
847
847
|
};
|
|
848
848
|
};
|
|
849
849
|
}));
|
|
850
850
|
})(Se)), Se.exports;
|
|
851
851
|
}
|
|
852
|
-
var
|
|
853
|
-
const
|
|
854
|
-
var Re = { exports: {} },
|
|
855
|
-
function
|
|
852
|
+
var fr = lr();
|
|
853
|
+
const dr = /* @__PURE__ */ j(fr);
|
|
854
|
+
var Re = { exports: {} }, hr = Re.exports, qe;
|
|
855
|
+
function pr() {
|
|
856
856
|
return qe || (qe = 1, (function(i, e) {
|
|
857
|
-
(function(
|
|
857
|
+
(function(r, t) {
|
|
858
858
|
i.exports = t(tt());
|
|
859
|
-
})(
|
|
859
|
+
})(hr, (function(r) {
|
|
860
860
|
function t(u) {
|
|
861
861
|
return u && typeof u == "object" && "default" in u ? u : { default: u };
|
|
862
862
|
}
|
|
863
|
-
var
|
|
863
|
+
var n = t(r), s = { name: "fr", weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"), weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"), weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"), months: "janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"), monthsShort: "janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"), weekStart: 1, yearStart: 4, formats: { LT: "HH:mm", LTS: "HH:mm:ss", L: "DD/MM/YYYY", LL: "D MMMM YYYY", LLL: "D MMMM YYYY HH:mm", LLLL: "dddd D MMMM YYYY HH:mm" }, relativeTime: { future: "dans %s", past: "il y a %s", s: "quelques secondes", m: "une minute", mm: "%d minutes", h: "une heure", hh: "%d heures", d: "un jour", dd: "%d jours", M: "un mois", MM: "%d mois", y: "un an", yy: "%d ans" }, ordinal: function(u) {
|
|
864
864
|
return "" + u + (u === 1 ? "er" : "");
|
|
865
865
|
} };
|
|
866
|
-
return
|
|
866
|
+
return n.default.locale(s, null, !0), s;
|
|
867
867
|
}));
|
|
868
868
|
})(Re)), Re.exports;
|
|
869
869
|
}
|
|
870
|
-
|
|
871
|
-
var
|
|
872
|
-
function
|
|
870
|
+
pr();
|
|
871
|
+
var Ce = { exports: {} }, mr = Ce.exports, je;
|
|
872
|
+
function yr() {
|
|
873
873
|
return je || (je = 1, (function(i, e) {
|
|
874
|
-
(function(
|
|
874
|
+
(function(r, t) {
|
|
875
875
|
i.exports = t();
|
|
876
|
-
})(
|
|
877
|
-
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(
|
|
878
|
-
var t = ["th", "st", "nd", "rd"],
|
|
879
|
-
return "[" +
|
|
876
|
+
})(mr, (function() {
|
|
877
|
+
return { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(r) {
|
|
878
|
+
var t = ["th", "st", "nd", "rd"], n = r % 100;
|
|
879
|
+
return "[" + r + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
|
|
880
880
|
} };
|
|
881
881
|
}));
|
|
882
|
-
})(
|
|
882
|
+
})(Ce)), Ce.exports;
|
|
883
883
|
}
|
|
884
|
-
|
|
885
|
-
z.extend(
|
|
886
|
-
z.extend(
|
|
887
|
-
z.extend(
|
|
888
|
-
z.extend(
|
|
884
|
+
yr();
|
|
885
|
+
z.extend(Dt);
|
|
886
|
+
z.extend(xt);
|
|
887
|
+
z.extend(Ut);
|
|
888
|
+
z.extend(Kt);
|
|
889
889
|
z.extend(Zt);
|
|
890
890
|
z.extend(qt);
|
|
891
|
-
z.extend(
|
|
892
|
-
z.extend(
|
|
893
|
-
z.extend(
|
|
894
|
-
z.extend(
|
|
891
|
+
z.extend(er);
|
|
892
|
+
z.extend(ir);
|
|
893
|
+
z.extend(ur);
|
|
894
|
+
z.extend(dr);
|
|
895
895
|
function J(i) {
|
|
896
896
|
if (i === null || typeof i != "object")
|
|
897
897
|
return !1;
|
|
898
898
|
const e = Object.getPrototypeOf(i);
|
|
899
899
|
return e === Object.prototype || e === null;
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function Ae(i, e = /* @__PURE__ */ new WeakSet()) {
|
|
902
902
|
if (i == null || typeof i != "object" || e.has(i))
|
|
903
903
|
return i;
|
|
904
904
|
if (e.add(i), Array.isArray(i))
|
|
905
|
-
return i.map((
|
|
905
|
+
return i.map((r) => Ae(r, e));
|
|
906
906
|
if (J(i)) {
|
|
907
|
-
const
|
|
907
|
+
const r = {};
|
|
908
908
|
for (const t in i)
|
|
909
|
-
Object.hasOwn(i, t) && (
|
|
910
|
-
return
|
|
909
|
+
Object.hasOwn(i, t) && (r[t] = Ae(i[t], e));
|
|
910
|
+
return r;
|
|
911
911
|
}
|
|
912
912
|
return i;
|
|
913
913
|
}
|
|
914
|
-
function be(i, e,
|
|
915
|
-
if (!(!J(e) || !J(i)) && !(e === i ||
|
|
916
|
-
|
|
914
|
+
function be(i, e, r = /* @__PURE__ */ new WeakSet()) {
|
|
915
|
+
if (!(!J(e) || !J(i)) && !(e === i || r.has(e))) {
|
|
916
|
+
r.add(e);
|
|
917
917
|
for (const t in e)
|
|
918
918
|
if (Object.hasOwn(e, t)) {
|
|
919
|
-
const
|
|
920
|
-
J(
|
|
919
|
+
const n = e[t], s = i[t];
|
|
920
|
+
J(n) && J(s) ? be(s, n, r) : Array.isArray(n) && Array.isArray(s) ? i[t] = rt(s, n, r) : i[t] = Ae(n, r);
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
923
|
}
|
|
924
|
-
function
|
|
924
|
+
function rt(i, e, r) {
|
|
925
925
|
const t = i.slice();
|
|
926
|
-
for (let
|
|
927
|
-
const s = e[
|
|
926
|
+
for (let n = 0; n < e.length; n++) {
|
|
927
|
+
const s = e[n], u = t[n];
|
|
928
928
|
if (J(s) && J(u)) {
|
|
929
929
|
const c = { ...u };
|
|
930
|
-
be(c, s,
|
|
931
|
-
} else Array.isArray(s) && Array.isArray(u) ? t[
|
|
930
|
+
be(c, s, r), t[n] = c;
|
|
931
|
+
} else Array.isArray(s) && Array.isArray(u) ? t[n] = rt(u, s, r) : t[n] = Ae(s, r);
|
|
932
932
|
}
|
|
933
933
|
return t;
|
|
934
934
|
}
|
|
935
935
|
function ze(i, ...e) {
|
|
936
936
|
if (!J(i))
|
|
937
937
|
throw new TypeError("Target must be a plain object");
|
|
938
|
-
const
|
|
938
|
+
const r = /* @__PURE__ */ new WeakSet();
|
|
939
939
|
for (const t of e)
|
|
940
|
-
t != null && be(i, t,
|
|
940
|
+
t != null && be(i, t, r);
|
|
941
941
|
return i;
|
|
942
942
|
}
|
|
943
943
|
const Y = [];
|
|
944
944
|
for (let i = 0; i < 256; ++i)
|
|
945
945
|
Y.push((i + 256).toString(16).slice(1));
|
|
946
|
-
function
|
|
946
|
+
function gr(i, e = 0) {
|
|
947
947
|
return (Y[i[e + 0]] + Y[i[e + 1]] + Y[i[e + 2]] + Y[i[e + 3]] + "-" + Y[i[e + 4]] + Y[i[e + 5]] + "-" + Y[i[e + 6]] + Y[i[e + 7]] + "-" + Y[i[e + 8]] + Y[i[e + 9]] + "-" + Y[i[e + 10]] + Y[i[e + 11]] + Y[i[e + 12]] + Y[i[e + 13]] + Y[i[e + 14]] + Y[i[e + 15]]).toLowerCase();
|
|
948
948
|
}
|
|
949
|
-
let
|
|
950
|
-
const
|
|
951
|
-
function
|
|
952
|
-
if (!
|
|
949
|
+
let Ee;
|
|
950
|
+
const wr = new Uint8Array(16);
|
|
951
|
+
function vr() {
|
|
952
|
+
if (!Ee) {
|
|
953
953
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
954
954
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
955
|
-
|
|
955
|
+
Ee = crypto.getRandomValues.bind(crypto);
|
|
956
956
|
}
|
|
957
|
-
return
|
|
957
|
+
return Ee(wr);
|
|
958
958
|
}
|
|
959
|
-
const
|
|
960
|
-
function
|
|
959
|
+
const Sr = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), We = { randomUUID: Sr };
|
|
960
|
+
function Rr(i, e, r) {
|
|
961
961
|
i = i || {};
|
|
962
|
-
const t = i.random ?? i.rng?.() ??
|
|
962
|
+
const t = i.random ?? i.rng?.() ?? vr();
|
|
963
963
|
if (t.length < 16)
|
|
964
964
|
throw new Error("Random bytes length must be >= 16");
|
|
965
|
-
return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128,
|
|
965
|
+
return t[6] = t[6] & 15 | 64, t[8] = t[8] & 63 | 128, gr(t);
|
|
966
966
|
}
|
|
967
|
-
function
|
|
968
|
-
return We.randomUUID && !i ? We.randomUUID() :
|
|
967
|
+
function Cr(i, e, r) {
|
|
968
|
+
return We.randomUUID && !i ? We.randomUUID() : Rr(i);
|
|
969
969
|
}
|
|
970
|
-
const
|
|
971
|
-
class
|
|
970
|
+
const Ar = 1500;
|
|
971
|
+
class re {
|
|
972
972
|
static instance = null;
|
|
973
973
|
defaultOptions = {
|
|
974
974
|
callCount: 1,
|
|
975
|
-
interval:
|
|
975
|
+
interval: Ar,
|
|
976
976
|
maxCallCount: 20,
|
|
977
977
|
minCallCount: 1
|
|
978
978
|
};
|
|
@@ -986,151 +986,151 @@ class ne {
|
|
|
986
986
|
}
|
|
987
987
|
};
|
|
988
988
|
static getInstance() {
|
|
989
|
-
return
|
|
989
|
+
return re.instance || (re.instance = new re()), re.instance;
|
|
990
990
|
}
|
|
991
|
-
poll(e,
|
|
992
|
-
const t = this.buildPollerOptions(
|
|
993
|
-
return this.storeCurrentPolling(t), this.isActivePoller(t) && e().then((
|
|
994
|
-
this.dispatch("error",
|
|
991
|
+
poll(e, r) {
|
|
992
|
+
const t = this.buildPollerOptions(r);
|
|
993
|
+
return this.storeCurrentPolling(t), this.isActivePoller(t) && e().then((n) => this.onRequest(n, e, t)).catch((n) => {
|
|
994
|
+
this.dispatch("error", n);
|
|
995
995
|
}), this;
|
|
996
996
|
}
|
|
997
|
-
on(e,
|
|
998
|
-
this.events[e] =
|
|
997
|
+
on(e, r) {
|
|
998
|
+
this.events[e] = r;
|
|
999
999
|
}
|
|
1000
1000
|
stop(e) {
|
|
1001
1001
|
e && this.pollings[e] && delete this.pollings[e];
|
|
1002
1002
|
}
|
|
1003
|
-
dispatch(e,
|
|
1004
|
-
this.events[e](
|
|
1003
|
+
dispatch(e, r) {
|
|
1004
|
+
this.events[e](r);
|
|
1005
1005
|
}
|
|
1006
|
-
async onRequest(e,
|
|
1007
|
-
const
|
|
1008
|
-
this.isActivePoller(t) && (this.isInProgress(
|
|
1006
|
+
async onRequest(e, r, t) {
|
|
1007
|
+
const n = w(e ?? {}, v.Camel);
|
|
1008
|
+
this.isActivePoller(t) && (this.isInProgress(n) && t.callCount && t.maxCallCount && t.callCount < t.maxCallCount || !this.isInProgress(n) && t.callCount && t.minCallCount && t.callCount < t.minCallCount ? (this.isInProgress(n) || (n.meta = n.meta || {}, n.meta.status = "IN_PROGRESS"), t.callCount += 1, this.dispatch("data", n), t.interval && await this.pause(t), this.poll(r, t)) : this.isInProgress(n) ? (n.meta = n.meta || {}, n.meta.status = "COMPLETE", this.onComplete(n, t)) : this.onComplete(n, t));
|
|
1009
1009
|
}
|
|
1010
|
-
onComplete(e,
|
|
1011
|
-
this.dispatch("data", e), this.dispatch("complete", e), this.removeCurrentPolling(
|
|
1010
|
+
onComplete(e, r) {
|
|
1011
|
+
this.dispatch("data", e), this.dispatch("complete", e), this.removeCurrentPolling(r);
|
|
1012
1012
|
}
|
|
1013
1013
|
isInProgress(e) {
|
|
1014
1014
|
return (e?.meta?.status ?? "") !== "COMPLETE";
|
|
1015
1015
|
}
|
|
1016
1016
|
buildPollerOptions(e) {
|
|
1017
|
-
const
|
|
1017
|
+
const r = Object.entries(e).reduce((t, [n, s]) => {
|
|
1018
1018
|
if (s !== void 0) {
|
|
1019
|
-
const u =
|
|
1019
|
+
const u = n;
|
|
1020
1020
|
t[u] = s;
|
|
1021
1021
|
}
|
|
1022
1022
|
return t;
|
|
1023
1023
|
}, {});
|
|
1024
1024
|
return {
|
|
1025
1025
|
...this.defaultOptions,
|
|
1026
|
-
...
|
|
1026
|
+
...r
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
storeCurrentPolling(e) {
|
|
1030
|
-
e.type && !e.uuid && (e.uuid =
|
|
1030
|
+
e.type && !e.uuid && (e.uuid = Cr(), this.pollings[e.type] = e.uuid);
|
|
1031
1031
|
}
|
|
1032
1032
|
isActivePoller(e) {
|
|
1033
1033
|
return e.type ? !!this.pollings[e.type] && this.pollings[e.type] === e.uuid : !0;
|
|
1034
1034
|
}
|
|
1035
1035
|
pause(e) {
|
|
1036
|
-
return new Promise((
|
|
1037
|
-
setTimeout(
|
|
1036
|
+
return new Promise((r) => {
|
|
1037
|
+
setTimeout(r, e.interval);
|
|
1038
1038
|
});
|
|
1039
1039
|
}
|
|
1040
1040
|
removeCurrentPolling(e) {
|
|
1041
1041
|
e.type && this.pollings[e.type] && delete this.pollings[e.type];
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
1044
|
-
function
|
|
1045
|
-
const t =
|
|
1046
|
-
return t.poll(i, e),
|
|
1047
|
-
|
|
1048
|
-
}), t.on("error", (
|
|
1049
|
-
|
|
1050
|
-
}), t) : new Promise((
|
|
1044
|
+
function nt(i, e, r) {
|
|
1045
|
+
const t = re.getInstance();
|
|
1046
|
+
return t.poll(i, e), r && typeof r == "function" ? (t.on("data", (n) => {
|
|
1047
|
+
n instanceof Error ? r(n, void 0, t) : r(null, n, t);
|
|
1048
|
+
}), t.on("error", (n) => {
|
|
1049
|
+
n instanceof Error ? r(n) : r(null, n);
|
|
1050
|
+
}), t) : new Promise((n, s) => {
|
|
1051
1051
|
t.on("error", s), t.on("complete", (u) => {
|
|
1052
|
-
u instanceof Error ? s(u) :
|
|
1052
|
+
u instanceof Error ? s(u) : n(u);
|
|
1053
1053
|
});
|
|
1054
1054
|
});
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1056
|
+
const Tr = "http://localhost".replace(/\/+$/, ""), Mr = (i) => typeof Blob < "u" && i instanceof Blob;
|
|
1057
1057
|
class W {
|
|
1058
1058
|
constructor(e = new it()) {
|
|
1059
1059
|
this.configuration = e, this.middleware = e.middleware;
|
|
1060
1060
|
}
|
|
1061
1061
|
middleware;
|
|
1062
1062
|
withMiddleware(...e) {
|
|
1063
|
-
const
|
|
1064
|
-
return
|
|
1063
|
+
const r = this.clone();
|
|
1064
|
+
return r.middleware = r.middleware.concat(...e), r;
|
|
1065
1065
|
}
|
|
1066
1066
|
withPreMiddleware(...e) {
|
|
1067
|
-
const
|
|
1068
|
-
return this.withMiddleware(...
|
|
1067
|
+
const r = e.map((t) => ({ pre: t }));
|
|
1068
|
+
return this.withMiddleware(...r);
|
|
1069
1069
|
}
|
|
1070
1070
|
withPostMiddleware(...e) {
|
|
1071
|
-
const
|
|
1072
|
-
return this.withMiddleware(...
|
|
1071
|
+
const r = e.map((t) => ({ post: t }));
|
|
1072
|
+
return this.withMiddleware(...r);
|
|
1073
1073
|
}
|
|
1074
|
-
async request(e,
|
|
1075
|
-
const { url: t, init:
|
|
1074
|
+
async request(e, r) {
|
|
1075
|
+
const { url: t, init: n } = this.createFetchParams(e, r), s = await this.fetchApi(t, n);
|
|
1076
1076
|
if (s.status >= 200 && s.status < 300)
|
|
1077
1077
|
return s;
|
|
1078
|
-
throw new
|
|
1078
|
+
throw new Er(s, "Response returned an error code");
|
|
1079
1079
|
}
|
|
1080
|
-
createFetchParams(e,
|
|
1080
|
+
createFetchParams(e, r) {
|
|
1081
1081
|
let t = this.configuration.basePath + e.path;
|
|
1082
1082
|
e.query !== void 0 && Object.keys(e.query).length !== 0 && (t += "?" + this.configuration.queryParamsStringify(e.query));
|
|
1083
|
-
const
|
|
1083
|
+
const n = typeof FormData < "u" && e.body instanceof FormData || e.body instanceof URLSearchParams || Mr(e.body) ? e.body : JSON.stringify(e.body), s = Object.assign({}, this.configuration.headers, e.headers);
|
|
1084
1084
|
Object.keys(s).forEach((c) => s[c] === void 0 ? delete s[c] : {});
|
|
1085
1085
|
const u = {
|
|
1086
1086
|
method: e.method,
|
|
1087
|
-
body:
|
|
1087
|
+
body: n,
|
|
1088
1088
|
credentials: this.configuration.credentials,
|
|
1089
|
-
...ze({},
|
|
1090
|
-
headers: ze({}, s,
|
|
1089
|
+
...ze({}, r, {
|
|
1090
|
+
headers: ze({}, s, r?.headers)
|
|
1091
1091
|
})
|
|
1092
1092
|
};
|
|
1093
1093
|
return { url: t, init: u };
|
|
1094
1094
|
}
|
|
1095
|
-
fetchApi = async (e,
|
|
1096
|
-
let t = { url: e, init:
|
|
1095
|
+
fetchApi = async (e, r) => {
|
|
1096
|
+
let t = { url: e, init: r };
|
|
1097
1097
|
for (const s of this.middleware)
|
|
1098
1098
|
s.pre && (t = await s.pre({
|
|
1099
1099
|
fetch: this.fetchApi,
|
|
1100
1100
|
...t
|
|
1101
1101
|
}) || t);
|
|
1102
|
-
let
|
|
1102
|
+
let n = await (this.configuration.fetchApi || fetch)(t.url, t.init);
|
|
1103
1103
|
for (const s of this.middleware)
|
|
1104
|
-
s.post && (
|
|
1104
|
+
s.post && (n = await s.post({
|
|
1105
1105
|
fetch: this.fetchApi,
|
|
1106
1106
|
url: t.url,
|
|
1107
1107
|
init: t.init,
|
|
1108
|
-
response:
|
|
1109
|
-
}) ||
|
|
1110
|
-
return
|
|
1108
|
+
response: n.clone()
|
|
1109
|
+
}) || n);
|
|
1110
|
+
return n;
|
|
1111
1111
|
};
|
|
1112
1112
|
/**
|
|
1113
1113
|
* Create a shallow clone of `this` by constructing a new instance
|
|
1114
1114
|
* and then shallow cloning data members.
|
|
1115
1115
|
*/
|
|
1116
1116
|
clone() {
|
|
1117
|
-
const e = this.constructor,
|
|
1118
|
-
return
|
|
1117
|
+
const e = this.constructor, r = new e(this.configuration);
|
|
1118
|
+
return r.middleware = this.middleware.slice(), r;
|
|
1119
1119
|
}
|
|
1120
1120
|
}
|
|
1121
|
-
class
|
|
1122
|
-
constructor(e,
|
|
1123
|
-
super(
|
|
1121
|
+
class Er extends Error {
|
|
1122
|
+
constructor(e, r) {
|
|
1123
|
+
super(r), this.response = e;
|
|
1124
1124
|
}
|
|
1125
1125
|
name = "ResponseError";
|
|
1126
1126
|
}
|
|
1127
|
-
class
|
|
1128
|
-
constructor(e,
|
|
1129
|
-
super(
|
|
1127
|
+
class U extends Error {
|
|
1128
|
+
constructor(e, r) {
|
|
1129
|
+
super(r), this.field = e;
|
|
1130
1130
|
}
|
|
1131
1131
|
name = "RequiredError";
|
|
1132
1132
|
}
|
|
1133
|
-
const
|
|
1133
|
+
const Vr = {
|
|
1134
1134
|
csv: ",",
|
|
1135
1135
|
ssv: " ",
|
|
1136
1136
|
tsv: " ",
|
|
@@ -1141,7 +1141,7 @@ class it {
|
|
|
1141
1141
|
this.configuration = e;
|
|
1142
1142
|
}
|
|
1143
1143
|
get basePath() {
|
|
1144
|
-
return this.configuration.basePath != null ? this.configuration.basePath :
|
|
1144
|
+
return this.configuration.basePath != null ? this.configuration.basePath : Tr;
|
|
1145
1145
|
}
|
|
1146
1146
|
get fetchApi() {
|
|
1147
1147
|
return this.configuration.fetchApi;
|
|
@@ -1175,48 +1175,48 @@ class it {
|
|
|
1175
1175
|
return this.configuration.credentials;
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
function
|
|
1179
|
-
const
|
|
1180
|
-
return
|
|
1178
|
+
function qr(i, e) {
|
|
1179
|
+
const r = i[e];
|
|
1180
|
+
return r != null;
|
|
1181
1181
|
}
|
|
1182
1182
|
function ot(i, e = "") {
|
|
1183
|
-
return Object.keys(i).map((
|
|
1184
|
-
const t = e + (e.length ? `[${
|
|
1185
|
-
if (
|
|
1186
|
-
const s =
|
|
1183
|
+
return Object.keys(i).map((r) => {
|
|
1184
|
+
const t = e + (e.length ? `[${r}]` : r), n = i[r];
|
|
1185
|
+
if (n instanceof Array) {
|
|
1186
|
+
const s = n.map((u) => encodeURIComponent(String(u))).join(`&${encodeURIComponent(t)}=`);
|
|
1187
1187
|
return `${encodeURIComponent(t)}=${s}`;
|
|
1188
1188
|
}
|
|
1189
|
-
return
|
|
1190
|
-
}).filter((
|
|
1189
|
+
return n instanceof Date ? `${encodeURIComponent(t)}=${encodeURIComponent(n.toISOString())}` : n instanceof Object ? ot(n, t) : `${encodeURIComponent(t)}=${encodeURIComponent(String(n))}`;
|
|
1190
|
+
}).filter((r) => r.length > 0).join("&");
|
|
1191
1191
|
}
|
|
1192
|
-
function
|
|
1192
|
+
function jr(i, e) {
|
|
1193
1193
|
return Object.keys(i).reduce(
|
|
1194
|
-
(
|
|
1194
|
+
(r, t) => ({ ...r, [t]: e(i[t]) }),
|
|
1195
1195
|
{}
|
|
1196
1196
|
);
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function zr(i) {
|
|
1199
1199
|
for (const e of i)
|
|
1200
1200
|
if (e.contentType === "multipart/form-data")
|
|
1201
1201
|
return !0;
|
|
1202
1202
|
return !1;
|
|
1203
1203
|
}
|
|
1204
|
-
class
|
|
1205
|
-
constructor(e,
|
|
1206
|
-
this.raw = e, this.transformer =
|
|
1204
|
+
class $ {
|
|
1205
|
+
constructor(e, r = (t) => t) {
|
|
1206
|
+
this.raw = e, this.transformer = r;
|
|
1207
1207
|
}
|
|
1208
1208
|
async value() {
|
|
1209
1209
|
return this.transformer(await this.raw.json());
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
|
-
class
|
|
1212
|
+
class Wr {
|
|
1213
1213
|
constructor(e) {
|
|
1214
1214
|
this.raw = e;
|
|
1215
1215
|
}
|
|
1216
1216
|
async value() {
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
class
|
|
1219
|
+
class Zr {
|
|
1220
1220
|
constructor(e) {
|
|
1221
1221
|
this.raw = e;
|
|
1222
1222
|
}
|
|
@@ -1224,7 +1224,7 @@ class Jn {
|
|
|
1224
1224
|
return await this.raw.blob();
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
class
|
|
1227
|
+
class Or {
|
|
1228
1228
|
constructor(e) {
|
|
1229
1229
|
this.raw = e;
|
|
1230
1230
|
}
|
|
@@ -1232,23 +1232,11 @@ class kn {
|
|
|
1232
1232
|
return await this.raw.text();
|
|
1233
1233
|
}
|
|
1234
1234
|
}
|
|
1235
|
-
const
|
|
1236
|
-
CreditCard: "CREDIT_CARD"
|
|
1237
|
-
}, Qn = {
|
|
1238
|
-
Coupon: "COUPON"
|
|
1239
|
-
}, er = {
|
|
1240
|
-
DepositAccount: "DEPOSIT_ACCOUNT"
|
|
1241
|
-
}, tr = {
|
|
1242
|
-
PayLater: "PAY_LATER"
|
|
1243
|
-
}, nr = {
|
|
1244
|
-
Disabled: "DISABLED",
|
|
1245
|
-
Enabled: "ENABLED",
|
|
1246
|
-
Forced: "FORCED"
|
|
1247
|
-
}, rr = {
|
|
1235
|
+
const Jr = {
|
|
1248
1236
|
Disabled: "DISABLED",
|
|
1249
1237
|
Enabled: "ENABLED",
|
|
1250
1238
|
Forced: "FORCED"
|
|
1251
|
-
},
|
|
1239
|
+
}, Xr = {
|
|
1252
1240
|
Cx: "bkg-cx",
|
|
1253
1241
|
Cf: "bkg-cf",
|
|
1254
1242
|
Created: "bkg-created",
|
|
@@ -1257,11 +1245,7 @@ const Xn = {
|
|
|
1257
1245
|
Pc: "bkg-pc",
|
|
1258
1246
|
Pp: "bkg-pp",
|
|
1259
1247
|
Qr: "bkg-qr"
|
|
1260
|
-
},
|
|
1261
|
-
Disabled: "DISABLED",
|
|
1262
|
-
Enabled: "ENABLED",
|
|
1263
|
-
Forced: "FORCED"
|
|
1264
|
-
}, ar = {
|
|
1248
|
+
}, Qr = {
|
|
1265
1249
|
DeDe: "de-DE",
|
|
1266
1250
|
EnUs: "en-US",
|
|
1267
1251
|
EsEs: "es-ES",
|
|
@@ -1269,7 +1253,7 @@ const Xn = {
|
|
|
1269
1253
|
ItIt: "it-IT",
|
|
1270
1254
|
NlNl: "nl-NL",
|
|
1271
1255
|
PtPt: "pt-PT"
|
|
1272
|
-
},
|
|
1256
|
+
}, en = {
|
|
1273
1257
|
DeDe: "de-DE",
|
|
1274
1258
|
EnUs: "en-US",
|
|
1275
1259
|
EsEs: "es-ES",
|
|
@@ -1277,14 +1261,14 @@ const Xn = {
|
|
|
1277
1261
|
ItIt: "it-IT",
|
|
1278
1262
|
NlNl: "nl-NL",
|
|
1279
1263
|
PtPt: "pt-PT"
|
|
1280
|
-
},
|
|
1264
|
+
}, tn = {
|
|
1281
1265
|
Dr: "dr",
|
|
1282
1266
|
Mr: "mr",
|
|
1283
1267
|
Mrs: "mrs",
|
|
1284
1268
|
Ms: "ms",
|
|
1285
1269
|
NotSpecified: "notSpecified",
|
|
1286
1270
|
Prof: "prof"
|
|
1287
|
-
},
|
|
1271
|
+
}, rn = {
|
|
1288
1272
|
Ad: "AD",
|
|
1289
1273
|
Ae: "AE",
|
|
1290
1274
|
Af: "AF",
|
|
@@ -1528,7 +1512,7 @@ const Xn = {
|
|
|
1528
1512
|
Za: "ZA",
|
|
1529
1513
|
Zm: "ZM",
|
|
1530
1514
|
Zw: "ZW"
|
|
1531
|
-
},
|
|
1515
|
+
}, nn = {
|
|
1532
1516
|
Aed: "AED",
|
|
1533
1517
|
Afn: "AFN",
|
|
1534
1518
|
All: "ALL",
|
|
@@ -1667,7 +1651,7 @@ const Xn = {
|
|
|
1667
1651
|
Yer: "YER",
|
|
1668
1652
|
Zar: "ZAR",
|
|
1669
1653
|
Zmw: "ZMW"
|
|
1670
|
-
},
|
|
1654
|
+
}, on = {
|
|
1671
1655
|
ApiError: "api_error",
|
|
1672
1656
|
BadGateway: "bad_gateway",
|
|
1673
1657
|
InternalServerError: "internal_server_error",
|
|
@@ -1677,23 +1661,23 @@ const Xn = {
|
|
|
1677
1661
|
ResourceNotFound: "resource_not_found",
|
|
1678
1662
|
Unauthorized: "unauthorized",
|
|
1679
1663
|
ValidationError: "validation_error"
|
|
1680
|
-
},
|
|
1664
|
+
}, an = {
|
|
1681
1665
|
Included: "INCLUDED",
|
|
1682
1666
|
NotIncluded: "NOT_INCLUDED",
|
|
1683
1667
|
Optional: "OPTIONAL"
|
|
1684
|
-
},
|
|
1668
|
+
}, sn = {
|
|
1685
1669
|
BestMatch: "BEST_MATCH",
|
|
1686
1670
|
Cheapest: "CHEAPEST",
|
|
1687
1671
|
MatchingRoomCount: "MATCHING_ROOM_COUNT",
|
|
1688
1672
|
Regular: "REGULAR"
|
|
1689
|
-
},
|
|
1673
|
+
}, un = {
|
|
1690
1674
|
Included: "included",
|
|
1691
1675
|
NotIncluded: "not_included",
|
|
1692
1676
|
Unknown: "unknown"
|
|
1693
|
-
},
|
|
1677
|
+
}, cn = {
|
|
1694
1678
|
HotelRoom: "HOTEL_ROOM",
|
|
1695
1679
|
Package: "PACKAGE"
|
|
1696
|
-
},
|
|
1680
|
+
}, ln = {
|
|
1697
1681
|
DeDe: "de-DE",
|
|
1698
1682
|
EnUs: "en-US",
|
|
1699
1683
|
EsEs: "es-ES",
|
|
@@ -1701,29 +1685,23 @@ const Xn = {
|
|
|
1701
1685
|
ItIt: "it-IT",
|
|
1702
1686
|
NlNl: "nl-NL",
|
|
1703
1687
|
PtPt: "pt-PT"
|
|
1704
|
-
},
|
|
1688
|
+
}, fn = {
|
|
1705
1689
|
CreditNote: "credit_note",
|
|
1706
1690
|
Invoice: "invoice"
|
|
1707
|
-
},
|
|
1691
|
+
}, dn = {
|
|
1708
1692
|
CreditCard: "CREDIT_CARD"
|
|
1709
|
-
},
|
|
1693
|
+
}, hn = {
|
|
1710
1694
|
Coupon: "COUPON"
|
|
1711
|
-
},
|
|
1695
|
+
}, pn = {
|
|
1712
1696
|
DepositAccount: "DEPOSIT_ACCOUNT"
|
|
1713
|
-
},
|
|
1714
|
-
PayLater: "PAY_LATER"
|
|
1715
|
-
}, Ar = {
|
|
1716
|
-
Disabled: "DISABLED",
|
|
1717
|
-
Enabled: "ENABLED",
|
|
1718
|
-
Forced: "FORCED"
|
|
1719
|
-
}, Cr = {
|
|
1697
|
+
}, mn = {
|
|
1720
1698
|
Coupon: "COUPON",
|
|
1721
1699
|
CreditCard: "CREDIT_CARD",
|
|
1722
1700
|
DepositAccount: "DEPOSIT_ACCOUNT"
|
|
1723
|
-
},
|
|
1701
|
+
}, yn = {
|
|
1724
1702
|
Complete: "COMPLETE",
|
|
1725
1703
|
InProgress: "IN_PROGRESS"
|
|
1726
|
-
},
|
|
1704
|
+
}, gn = {
|
|
1727
1705
|
Ad: "AD",
|
|
1728
1706
|
Ae: "AE",
|
|
1729
1707
|
Af: "AF",
|
|
@@ -1967,361 +1945,337 @@ const Xn = {
|
|
|
1967
1945
|
Za: "ZA",
|
|
1968
1946
|
Zm: "ZM",
|
|
1969
1947
|
Zw: "ZW"
|
|
1970
|
-
},
|
|
1948
|
+
}, wn = {
|
|
1971
1949
|
Night: "PER_NIGHT",
|
|
1972
1950
|
Stay: "PER_STAY"
|
|
1973
|
-
},
|
|
1951
|
+
}, vn = {
|
|
1974
1952
|
Adult: "PER_ADULT",
|
|
1975
1953
|
Booking: "PER_BOOKING"
|
|
1976
1954
|
};
|
|
1977
|
-
class
|
|
1955
|
+
class kr extends W {
|
|
1978
1956
|
/**
|
|
1979
1957
|
* Get Booking Policy
|
|
1980
1958
|
*/
|
|
1981
|
-
async retrieveRaw(e,
|
|
1959
|
+
async retrieveRaw(e, r) {
|
|
1982
1960
|
if (e.id === null || e.id === void 0)
|
|
1983
|
-
throw new
|
|
1984
|
-
const t = {},
|
|
1985
|
-
this.configuration && this.configuration.apiKey && (
|
|
1961
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicy.");
|
|
1962
|
+
const t = {}, n = {};
|
|
1963
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
1986
1964
|
const s = await this.request({
|
|
1987
1965
|
path: "/v1/booking_policies/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
1988
1966
|
method: "GET",
|
|
1989
|
-
headers:
|
|
1967
|
+
headers: n,
|
|
1990
1968
|
query: w(t, v.Snake)
|
|
1991
|
-
},
|
|
1992
|
-
return await new
|
|
1969
|
+
}, r);
|
|
1970
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
1993
1971
|
}
|
|
1994
1972
|
/**
|
|
1995
1973
|
* Get Booking Policy
|
|
1996
1974
|
*/
|
|
1997
|
-
async retrieve(e,
|
|
1998
|
-
return this.retrieveRaw(e,
|
|
1999
|
-
}
|
|
2000
|
-
/**
|
|
2001
|
-
* Retrieve payment methods for a booking policy
|
|
2002
|
-
* Payment Methods for a Booking policy
|
|
2003
|
-
*/
|
|
2004
|
-
async paymentMethodsRaw(e, n) {
|
|
2005
|
-
if (e.id === null || e.id === void 0)
|
|
2006
|
-
throw new N("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingPolicyIdPaymentMethods.");
|
|
2007
|
-
const t = {}, r = {};
|
|
2008
|
-
this.configuration && this.configuration.apiKey && (r["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2009
|
-
const s = await this.request({
|
|
2010
|
-
path: "/v1/booking-policies/{id}/payment-methods".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2011
|
-
method: "GET",
|
|
2012
|
-
headers: r,
|
|
2013
|
-
query: w(t, v.Snake)
|
|
2014
|
-
}, n);
|
|
2015
|
-
return new P(s, (u) => w(u, v.Camel)).value();
|
|
2016
|
-
}
|
|
2017
|
-
/**
|
|
2018
|
-
* Retrieve payment methods for a booking policy
|
|
2019
|
-
* Payment Methods for a Booking policy
|
|
2020
|
-
*/
|
|
2021
|
-
async paymentMethods(e, n) {
|
|
2022
|
-
return this.paymentMethodsRaw(e, n);
|
|
1975
|
+
async retrieve(e, r) {
|
|
1976
|
+
return this.retrieveRaw(e, r);
|
|
2023
1977
|
}
|
|
2024
1978
|
/**
|
|
2025
1979
|
* In order to be able to create and confirm a booking against a specific **Hotel Room Offer** package, you need to make a booking policy call. Retrieving a booking policy returns additional information about the booking being made and includes details like cancellation policies. This API call is equivalent to an availability check and it is important not to let long periods between retrieval of this policy and the booking confirmation call itself as this will often reduce the likelihood of the **Hotel Room Offer** being successfully booked. The **booking_policy_id** returned is meant to be used to carry out a pre-book call via **[Pre Book endpoint](/v1/documentation#operation/postV1Bookings)** on the next **Booking Flow** step. ⚠️ This call may take from 1 second up to 15 seconds to return as we may request various suppliers to fulfill this request.
|
|
2026
1980
|
* Create Booking Policies
|
|
2027
1981
|
*/
|
|
2028
|
-
async createRaw(e,
|
|
2029
|
-
const t = {},
|
|
2030
|
-
|
|
1982
|
+
async createRaw(e, r) {
|
|
1983
|
+
const t = {}, n = {};
|
|
1984
|
+
n["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2031
1985
|
const s = await this.request({
|
|
2032
1986
|
path: "/v1/booking_policies",
|
|
2033
1987
|
method: "POST",
|
|
2034
|
-
headers:
|
|
1988
|
+
headers: n,
|
|
2035
1989
|
query: w(t, v.Snake),
|
|
2036
1990
|
body: w(e.bookingPoliciesCreateApi, v.Snake)
|
|
2037
|
-
},
|
|
2038
|
-
return await new
|
|
1991
|
+
}, r);
|
|
1992
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2039
1993
|
}
|
|
2040
1994
|
/**
|
|
2041
1995
|
* In order to be able to create and confirm a booking against a specific **Hotel Room Offer** package, you need to make a booking policy call. Retrieving a booking policy returns additional information about the booking being made and includes details like cancellation policies. This API call is equivalent to an availability check and it is important not to let long periods between retrieval of this policy and the booking confirmation call itself as this will often reduce the likelihood of the **Hotel Room Offer** being successfully booked. The **booking_policy_id** returned is meant to be used to carry out a pre-book call via **[Pre Book endpoint](/v1/documentation#operation/postV1Bookings)** on the next **Booking Flow** step. ⚠️ This call may take from 1 second up to 15 seconds to return as we may request various suppliers to fulfill this request.
|
|
2042
1996
|
* Create Booking Policies
|
|
2043
1997
|
*/
|
|
2044
|
-
async create(e = {},
|
|
2045
|
-
return this.createRaw(e,
|
|
1998
|
+
async create(e = {}, r) {
|
|
1999
|
+
return this.createRaw(e, r);
|
|
2046
2000
|
}
|
|
2047
2001
|
}
|
|
2048
|
-
class
|
|
2002
|
+
class _r extends W {
|
|
2049
2003
|
/**
|
|
2050
2004
|
* Cancel a confirmed Booking. A booking can only be cancelled if it\'s in one of the following status: **bkg-cf**, **bkg-pc**.
|
|
2051
2005
|
* Cancel a Booking
|
|
2052
2006
|
*/
|
|
2053
|
-
async deleteRaw(e,
|
|
2007
|
+
async deleteRaw(e, r) {
|
|
2054
2008
|
if (e.token === null || e.token === void 0)
|
|
2055
|
-
throw new
|
|
2056
|
-
const t = {},
|
|
2009
|
+
throw new U("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1BookingsToken.");
|
|
2010
|
+
const t = {}, n = {}, s = await this.request({
|
|
2057
2011
|
path: "/v1/bookings/{token}".replace("{token}", encodeURIComponent(String(e.token))),
|
|
2058
2012
|
method: "DELETE",
|
|
2059
|
-
headers:
|
|
2013
|
+
headers: n,
|
|
2060
2014
|
query: w(t, v.Snake)
|
|
2061
|
-
},
|
|
2062
|
-
return await new
|
|
2015
|
+
}, r);
|
|
2016
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2063
2017
|
}
|
|
2064
2018
|
/**
|
|
2065
2019
|
* Cancel a confirmed Booking. A booking can only be cancelled if it\'s in one of the following status: **bkg-cf**, **bkg-pc**.
|
|
2066
2020
|
* Cancel a Booking
|
|
2067
2021
|
*/
|
|
2068
|
-
async delete(e,
|
|
2069
|
-
return this.deleteRaw(e,
|
|
2022
|
+
async delete(e, r) {
|
|
2023
|
+
return this.deleteRaw(e, r);
|
|
2070
2024
|
}
|
|
2071
2025
|
/**
|
|
2072
2026
|
* Returns a list of detailed bookings made on behalf of a specific API Key credential.
|
|
2073
2027
|
* List Bookings
|
|
2074
2028
|
*/
|
|
2075
|
-
async listRaw(e,
|
|
2029
|
+
async listRaw(e, r) {
|
|
2076
2030
|
const t = {};
|
|
2077
2031
|
e.endingBefore !== void 0 && (t.ending_before = e.endingBefore), e.filterByCheckInDate !== void 0 && (t.filter_by_check_in_date = e.filterByCheckInDate), e.filterByLastStatusUpdatedAt !== void 0 && (t.filter_by_last_status_updated_at = e.filterByLastStatusUpdatedAt), e.filterByMetadata !== void 0 && (t.filter_by_metadata = e.filterByMetadata), e.filterByStatus !== void 0 && (t.filter_by_status = e.filterByStatus), e.limit !== void 0 && (t.limit = e.limit), e.sortBy !== void 0 && (t.sort_by = e.sortBy), e.sortByOrder !== void 0 && (t.sort_by_order = e.sortByOrder), e.startingAfter !== void 0 && (t.starting_after = e.startingAfter);
|
|
2078
|
-
const
|
|
2079
|
-
this.configuration && this.configuration.apiKey && (
|
|
2032
|
+
const n = {};
|
|
2033
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2080
2034
|
const s = await this.request({
|
|
2081
2035
|
path: "/v1/bookings",
|
|
2082
2036
|
method: "GET",
|
|
2083
|
-
headers:
|
|
2037
|
+
headers: n,
|
|
2084
2038
|
query: w(t, v.Snake)
|
|
2085
|
-
},
|
|
2086
|
-
return await new
|
|
2039
|
+
}, r);
|
|
2040
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2087
2041
|
}
|
|
2088
2042
|
/**
|
|
2089
2043
|
* Returns a list of detailed bookings made on behalf of a specific API Key credential.
|
|
2090
2044
|
* List Bookings
|
|
2091
2045
|
*/
|
|
2092
|
-
async list(e = {},
|
|
2093
|
-
return this.listRaw(e,
|
|
2046
|
+
async list(e = {}, r) {
|
|
2047
|
+
return this.listRaw(e, r);
|
|
2094
2048
|
}
|
|
2095
2049
|
/**
|
|
2096
2050
|
* Retrieve the status and information of a booking.
|
|
2097
2051
|
* Retrieve a Booking
|
|
2098
2052
|
*/
|
|
2099
|
-
async retrieveRaw(e,
|
|
2053
|
+
async retrieveRaw(e, r) {
|
|
2100
2054
|
if (e.id === null || e.id === void 0)
|
|
2101
|
-
throw new
|
|
2102
|
-
const t = {},
|
|
2103
|
-
this.configuration && this.configuration.apiKey && (
|
|
2055
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling getV1BookingsId.");
|
|
2056
|
+
const t = {}, n = {};
|
|
2057
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2104
2058
|
const s = await this.request({
|
|
2105
2059
|
path: "/v1/bookings/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2106
2060
|
method: "GET",
|
|
2107
|
-
headers:
|
|
2061
|
+
headers: n,
|
|
2108
2062
|
query: w(t, v.Snake)
|
|
2109
|
-
},
|
|
2110
|
-
return await new
|
|
2063
|
+
}, r);
|
|
2064
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2111
2065
|
}
|
|
2112
2066
|
/**
|
|
2113
2067
|
* Retrieve the status and information of a booking.
|
|
2114
2068
|
* Retrieve a Booking
|
|
2115
2069
|
*/
|
|
2116
|
-
async retrieve(e,
|
|
2117
|
-
return this.retrieveRaw(e,
|
|
2070
|
+
async retrieve(e, r) {
|
|
2071
|
+
return this.retrieveRaw(e, r);
|
|
2118
2072
|
}
|
|
2119
2073
|
/**
|
|
2120
2074
|
* Retrieve the status and information of a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2121
2075
|
* Retrieve a Booking (PUBLIC)
|
|
2122
2076
|
*/
|
|
2123
|
-
async retrievePublicRaw(e,
|
|
2077
|
+
async retrievePublicRaw(e, r) {
|
|
2124
2078
|
if (e.token === null || e.token === void 0)
|
|
2125
|
-
throw new
|
|
2126
|
-
const t = {},
|
|
2079
|
+
throw new U("token", "Required parameter requestParameters.token was null or undefined when calling getV1BookingsTokenPublic.");
|
|
2080
|
+
const t = {}, n = {}, s = await this.request({
|
|
2127
2081
|
path: "/v1/bookings/{token}/public".replace("{token}", encodeURIComponent(String(e.token))),
|
|
2128
2082
|
method: "GET",
|
|
2129
|
-
headers:
|
|
2083
|
+
headers: n,
|
|
2130
2084
|
query: w(t, v.Snake)
|
|
2131
|
-
},
|
|
2132
|
-
return await new
|
|
2085
|
+
}, r);
|
|
2086
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2133
2087
|
}
|
|
2134
2088
|
/**
|
|
2135
2089
|
* Retrieve the status and information of a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2136
2090
|
* Retrieve a Booking (PUBLIC)
|
|
2137
2091
|
*/
|
|
2138
|
-
async retrievePublic(e,
|
|
2139
|
-
return this.retrievePublicRaw(e,
|
|
2092
|
+
async retrievePublic(e, r) {
|
|
2093
|
+
return this.retrievePublicRaw(e, r);
|
|
2140
2094
|
}
|
|
2141
2095
|
/**
|
|
2142
2096
|
* Creates an unconfirmed booking
|
|
2143
2097
|
* Create an unconfirmed Booking
|
|
2144
2098
|
*/
|
|
2145
|
-
async createRaw(e,
|
|
2146
|
-
const t = {},
|
|
2147
|
-
|
|
2099
|
+
async createRaw(e, r) {
|
|
2100
|
+
const t = {}, n = {};
|
|
2101
|
+
n["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2148
2102
|
const s = await this.request({
|
|
2149
2103
|
path: "/v1/bookings",
|
|
2150
2104
|
method: "POST",
|
|
2151
|
-
headers:
|
|
2105
|
+
headers: n,
|
|
2152
2106
|
query: w(t, v.Snake),
|
|
2153
2107
|
body: w(e.bookingCreateApi, v.Snake)
|
|
2154
|
-
},
|
|
2155
|
-
return await new
|
|
2108
|
+
}, r);
|
|
2109
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2156
2110
|
}
|
|
2157
2111
|
/**
|
|
2158
2112
|
* Creates an unconfirmed booking
|
|
2159
2113
|
* Create an unconfirmed Booking
|
|
2160
2114
|
*/
|
|
2161
|
-
async create(e = {},
|
|
2162
|
-
return this.createRaw(e,
|
|
2115
|
+
async create(e = {}, r) {
|
|
2116
|
+
return this.createRaw(e, r);
|
|
2163
2117
|
}
|
|
2164
2118
|
/**
|
|
2165
2119
|
* Confirm booking from Coupon payment method
|
|
2166
2120
|
* Confirm booking from Coupon payment method
|
|
2167
2121
|
*/
|
|
2168
|
-
async couponChargeRaw(e,
|
|
2122
|
+
async couponChargeRaw(e, r) {
|
|
2169
2123
|
if (e.couponId === null || e.couponId === void 0)
|
|
2170
|
-
throw new
|
|
2124
|
+
throw new U("couponId", "Required parameter requestParameters.couponId was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
|
|
2171
2125
|
if (e.id === null || e.id === void 0)
|
|
2172
|
-
throw new
|
|
2173
|
-
const t = {},
|
|
2174
|
-
this.configuration && this.configuration.apiKey && (
|
|
2126
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdCouponsCouponIdCharge.");
|
|
2127
|
+
const t = {}, n = {};
|
|
2128
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2175
2129
|
const s = await this.request({
|
|
2176
2130
|
path: "/v1/bookings/{id}/coupons/{coupon_id}/charge".replace("{coupon_id}", encodeURIComponent(String(e.couponId))).replace("{id}", encodeURIComponent(String(e.id))),
|
|
2177
2131
|
method: "POST",
|
|
2178
|
-
headers:
|
|
2132
|
+
headers: n,
|
|
2179
2133
|
query: w(t, v.Snake)
|
|
2180
|
-
},
|
|
2181
|
-
return await new
|
|
2134
|
+
}, r);
|
|
2135
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2182
2136
|
}
|
|
2183
2137
|
/**
|
|
2184
2138
|
* Confirm booking from Coupon payment method
|
|
2185
2139
|
* Confirm booking from Coupon payment method
|
|
2186
2140
|
*/
|
|
2187
|
-
async couponCharge(e,
|
|
2188
|
-
return this.couponChargeRaw(e,
|
|
2141
|
+
async couponCharge(e, r) {
|
|
2142
|
+
return this.couponChargeRaw(e, r);
|
|
2189
2143
|
}
|
|
2190
2144
|
/**
|
|
2191
2145
|
* Pay later and retrieve the status and information of a booking.
|
|
2192
2146
|
* Pay later a Booking
|
|
2193
2147
|
*/
|
|
2194
|
-
async paylaterRaw(e,
|
|
2148
|
+
async paylaterRaw(e, r) {
|
|
2195
2149
|
if (e.id === null || e.id === void 0)
|
|
2196
|
-
throw new
|
|
2197
|
-
const t = {},
|
|
2198
|
-
this.configuration && this.configuration.apiKey && (
|
|
2150
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLater.");
|
|
2151
|
+
const t = {}, n = {};
|
|
2152
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2199
2153
|
const s = await this.request({
|
|
2200
2154
|
path: "/v1/bookings/{id}/pay-later".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2201
2155
|
method: "POST",
|
|
2202
|
-
headers:
|
|
2156
|
+
headers: n,
|
|
2203
2157
|
query: w(t, v.Snake)
|
|
2204
|
-
},
|
|
2205
|
-
return await new
|
|
2158
|
+
}, r);
|
|
2159
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2206
2160
|
}
|
|
2207
2161
|
/**
|
|
2208
2162
|
* Pay later and retrieve the status and information of a booking.
|
|
2209
2163
|
* Pay later a Booking
|
|
2210
2164
|
*/
|
|
2211
|
-
async paylater(e,
|
|
2212
|
-
return this.paylaterRaw(e,
|
|
2165
|
+
async paylater(e, r) {
|
|
2166
|
+
return this.paylaterRaw(e, r);
|
|
2213
2167
|
}
|
|
2214
2168
|
/**
|
|
2215
2169
|
* Confirm later paid and retrieve the status and information of a booking.
|
|
2216
2170
|
* Confirm a later paid Booking
|
|
2217
2171
|
*/
|
|
2218
|
-
async confirmpaylaterRaw(e,
|
|
2172
|
+
async confirmpaylaterRaw(e, r) {
|
|
2219
2173
|
if (e.id === null || e.id === void 0)
|
|
2220
|
-
throw new
|
|
2221
|
-
const t = {},
|
|
2222
|
-
this.configuration && this.configuration.apiKey && (
|
|
2174
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdPayLaterConfirm.");
|
|
2175
|
+
const t = {}, n = {};
|
|
2176
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2223
2177
|
const s = await this.request({
|
|
2224
2178
|
path: "/v1/bookings/{id}/pay-later/confirm".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2225
2179
|
method: "POST",
|
|
2226
|
-
headers:
|
|
2180
|
+
headers: n,
|
|
2227
2181
|
query: w(t, v.Snake)
|
|
2228
|
-
},
|
|
2229
|
-
return await new
|
|
2182
|
+
}, r);
|
|
2183
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2230
2184
|
}
|
|
2231
2185
|
/**
|
|
2232
2186
|
* Confirm later paid and retrieve the status and information of a booking.
|
|
2233
2187
|
* Confirm a later paid Booking
|
|
2234
2188
|
*/
|
|
2235
|
-
async confirmpaylater(e,
|
|
2236
|
-
return this.confirmpaylaterRaw(e,
|
|
2189
|
+
async confirmpaylater(e, r) {
|
|
2190
|
+
return this.confirmpaylaterRaw(e, r);
|
|
2237
2191
|
}
|
|
2238
2192
|
/**
|
|
2239
2193
|
* Trigger the actual booking confirmation process. 💡 This endpoint is only available for Bookings in the **bkg-created** status. ⚠️ The booking confirmation is an asynchronous process. The booking won\'t transition immediatly to **bkg-cf** status. Rather, the endpoint will return a booking in **bkg-ip** and you\'ll be required to check booking status calling **[Get Booking endpoint](/v1/documentation#operation/getV1BookingsId)**, ideally with a polling mechanism, and perform further action(s), whether you need to let your customer know about their booking or you just need to update some data on your system, when booking status transitions to **bkg-cf** (confirmed) or **bkg-af** (fail). ⚠️ Once you have called this endpoint, we immediatly send your confirmation request to our supplier(s) and they may confirm it immediatly, so you\'ll be liable for up to the total booking tax included price amount if you need to cancel it at a later time (refer to the booking\'s cancellation policies to get the actual current penalty percentage applied in case of cancellation).
|
|
2240
2194
|
* Confirm an ongoing Booking
|
|
2241
2195
|
*/
|
|
2242
|
-
async confirmRaw(e,
|
|
2196
|
+
async confirmRaw(e, r) {
|
|
2243
2197
|
if (e.id === null || e.id === void 0)
|
|
2244
|
-
throw new
|
|
2245
|
-
const t = {},
|
|
2246
|
-
this.configuration && this.configuration.apiKey && (
|
|
2198
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling postV1BookingsIdconfirm.");
|
|
2199
|
+
const t = {}, n = {};
|
|
2200
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2247
2201
|
const s = await this.request({
|
|
2248
2202
|
path: "/v1/bookings/{id}/confirm".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2249
2203
|
method: "POST",
|
|
2250
|
-
headers:
|
|
2204
|
+
headers: n,
|
|
2251
2205
|
query: w(t, v.Snake)
|
|
2252
|
-
},
|
|
2253
|
-
return await new
|
|
2206
|
+
}, r);
|
|
2207
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2254
2208
|
}
|
|
2255
2209
|
/**
|
|
2256
2210
|
* Trigger the actual booking confirmation process. 💡 This endpoint is only available for Bookings in the **bkg-created** status. ⚠️ The booking confirmation is an asynchronous process. The booking won\'t transition immediatly to **bkg-cf** status. Rather, the endpoint will return a booking in **bkg-ip** and you\'ll be required to check booking status calling **[Get Booking endpoint](/v1/documentation#operation/getV1BookingsId)**, ideally with a polling mechanism, and perform further action(s), whether you need to let your customer know about their booking or you just need to update some data on your system, when booking status transitions to **bkg-cf** (confirmed) or **bkg-af** (fail). ⚠️ Once you have called this endpoint, we immediatly send your confirmation request to our supplier(s) and they may confirm it immediatly, so you\'ll be liable for up to the total booking tax included price amount if you need to cancel it at a later time (refer to the booking\'s cancellation policies to get the actual current penalty percentage applied in case of cancellation).
|
|
2257
2211
|
* Confirm an ongoing Booking
|
|
2258
2212
|
*/
|
|
2259
|
-
async confirm(e,
|
|
2260
|
-
return this.confirmRaw(e,
|
|
2213
|
+
async confirm(e, r) {
|
|
2214
|
+
return this.confirmRaw(e, r);
|
|
2261
2215
|
}
|
|
2262
2216
|
/**
|
|
2263
2217
|
* Updates an ongoing Booking payment methods
|
|
2264
2218
|
* Updates an ongoing Booking payment methods
|
|
2265
2219
|
*/
|
|
2266
|
-
async updatePaymentMethodsRaw(e,
|
|
2220
|
+
async updatePaymentMethodsRaw(e, r) {
|
|
2267
2221
|
if (e.id === null || e.id === void 0)
|
|
2268
|
-
throw new
|
|
2269
|
-
const t = {},
|
|
2270
|
-
|
|
2222
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling putV1BookingsIdPaymentMethods.");
|
|
2223
|
+
const t = {}, n = {};
|
|
2224
|
+
n["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2271
2225
|
const s = await this.request({
|
|
2272
2226
|
path: "/v1/bookings/{id}/payment_methods".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2273
2227
|
method: "PUT",
|
|
2274
|
-
headers:
|
|
2228
|
+
headers: n,
|
|
2275
2229
|
query: w(t, v.Snake),
|
|
2276
2230
|
body: w(e.paymentMethodUpdatePayloadApi, v.Snake)
|
|
2277
|
-
},
|
|
2278
|
-
return await new
|
|
2231
|
+
}, r);
|
|
2232
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2279
2233
|
}
|
|
2280
2234
|
/**
|
|
2281
2235
|
* Updates an ongoing Booking payment methods
|
|
2282
2236
|
* Updates an ongoing Booking payment methods
|
|
2283
2237
|
*/
|
|
2284
|
-
async updatePaymentMethods(e,
|
|
2285
|
-
return this.updatePaymentMethodsRaw(e,
|
|
2238
|
+
async updatePaymentMethods(e, r) {
|
|
2239
|
+
return this.updatePaymentMethodsRaw(e, r);
|
|
2286
2240
|
}
|
|
2287
2241
|
}
|
|
2288
|
-
const
|
|
2242
|
+
const Sn = {
|
|
2289
2243
|
CheckInDate: "check_in_date",
|
|
2290
2244
|
CreatedAt: "created_at",
|
|
2291
2245
|
LastStatusUpdatedAt: "last_status_updated_at"
|
|
2292
|
-
},
|
|
2246
|
+
}, Rn = {
|
|
2293
2247
|
Asc: "asc",
|
|
2294
2248
|
Desc: "desc"
|
|
2295
2249
|
};
|
|
2296
|
-
class
|
|
2250
|
+
class Dr extends W {
|
|
2297
2251
|
/**
|
|
2298
2252
|
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
2299
2253
|
* Retrieve Images of an Hotel
|
|
2300
2254
|
*/
|
|
2301
|
-
async retrieveRaw(e,
|
|
2255
|
+
async retrieveRaw(e, r) {
|
|
2302
2256
|
if (e.id === null || e.id === void 0)
|
|
2303
|
-
throw new
|
|
2257
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsIdImages.");
|
|
2304
2258
|
const t = {};
|
|
2305
2259
|
e.lang !== void 0 && (t.lang = e.lang);
|
|
2306
|
-
const
|
|
2307
|
-
this.configuration && this.configuration.apiKey && (
|
|
2260
|
+
const n = {};
|
|
2261
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2308
2262
|
const s = await this.request({
|
|
2309
2263
|
path: "/v1/hotels/{id}/images".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2310
2264
|
method: "GET",
|
|
2311
|
-
headers:
|
|
2265
|
+
headers: n,
|
|
2312
2266
|
query: w(t, v.Snake)
|
|
2313
|
-
},
|
|
2314
|
-
return new
|
|
2267
|
+
}, r);
|
|
2268
|
+
return new $(s, (u) => w(u, v.Camel)).value();
|
|
2315
2269
|
}
|
|
2316
2270
|
/**
|
|
2317
2271
|
* Returns a list of images for an Hotel Id with their content localize into the requested **lang**.
|
|
2318
2272
|
* Retrieve Images of an Hotel
|
|
2319
2273
|
*/
|
|
2320
|
-
async retrieve(e,
|
|
2321
|
-
return this.retrieveRaw(e,
|
|
2274
|
+
async retrieve(e, r) {
|
|
2275
|
+
return this.retrieveRaw(e, r);
|
|
2322
2276
|
}
|
|
2323
2277
|
}
|
|
2324
|
-
const
|
|
2278
|
+
const Cn = {
|
|
2325
2279
|
DeDe: "de-DE",
|
|
2326
2280
|
EnUs: "en-US",
|
|
2327
2281
|
EsEs: "es-ES",
|
|
@@ -2330,90 +2284,90 @@ const _r = {
|
|
|
2330
2284
|
NlNl: "nl-NL",
|
|
2331
2285
|
PtPt: "pt-PT"
|
|
2332
2286
|
};
|
|
2333
|
-
class
|
|
2287
|
+
class br extends W {
|
|
2334
2288
|
/**
|
|
2335
2289
|
* Returns a single Hotel Offer Request by id
|
|
2336
2290
|
* Retrieve a Single Hotel Offer Request
|
|
2337
2291
|
*/
|
|
2338
|
-
async retrieveRaw(e,
|
|
2292
|
+
async retrieveRaw(e, r) {
|
|
2339
2293
|
if (e.id === null || e.id === void 0)
|
|
2340
|
-
throw new
|
|
2341
|
-
const t = {},
|
|
2342
|
-
this.configuration && this.configuration.apiKey && (
|
|
2294
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelOfferRequestsId.");
|
|
2295
|
+
const t = {}, n = {};
|
|
2296
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2343
2297
|
const s = await this.request({
|
|
2344
2298
|
path: "/v1/hotel_offer_requests/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2345
2299
|
method: "GET",
|
|
2346
|
-
headers:
|
|
2300
|
+
headers: n,
|
|
2347
2301
|
query: w(t, v.Snake)
|
|
2348
|
-
},
|
|
2349
|
-
return await new
|
|
2302
|
+
}, r);
|
|
2303
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2350
2304
|
}
|
|
2351
2305
|
/**
|
|
2352
2306
|
* Returns a single Hotel Offer Request by id
|
|
2353
2307
|
* Retrieve a Single Hotel Offer Request
|
|
2354
2308
|
*/
|
|
2355
|
-
async retrieve(e,
|
|
2356
|
-
return this.retrieveRaw(e,
|
|
2309
|
+
async retrieve(e, r) {
|
|
2310
|
+
return this.retrieveRaw(e, r);
|
|
2357
2311
|
}
|
|
2358
2312
|
/**
|
|
2359
2313
|
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
|
|
2360
2314
|
* Create an Hotel Offer Request
|
|
2361
2315
|
*/
|
|
2362
|
-
async createRaw(e,
|
|
2363
|
-
const t = {},
|
|
2364
|
-
|
|
2316
|
+
async createRaw(e, r) {
|
|
2317
|
+
const t = {}, n = {};
|
|
2318
|
+
n["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2365
2319
|
const s = await this.request({
|
|
2366
2320
|
path: "/v1/hotel_offer_requests",
|
|
2367
2321
|
method: "POST",
|
|
2368
|
-
headers:
|
|
2322
|
+
headers: n,
|
|
2369
2323
|
query: w(t, v.Snake),
|
|
2370
2324
|
body: w(e.hotelOfferRequestCreateApi, v.Snake)
|
|
2371
|
-
},
|
|
2372
|
-
return await new
|
|
2325
|
+
}, r);
|
|
2326
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2373
2327
|
}
|
|
2374
2328
|
/**
|
|
2375
2329
|
* Create an **Hotel Offer Request**. An **Hotel Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and obviously the location around which they need their accommodation to be (latitude/longitude pair).
|
|
2376
2330
|
* Create an Hotel Offer Request
|
|
2377
2331
|
*/
|
|
2378
|
-
async create(e = {},
|
|
2379
|
-
return this.createRaw(e,
|
|
2332
|
+
async create(e = {}, r) {
|
|
2333
|
+
return this.createRaw(e, r);
|
|
2380
2334
|
}
|
|
2381
2335
|
}
|
|
2382
|
-
class
|
|
2336
|
+
class Ir extends W {
|
|
2383
2337
|
/**
|
|
2384
2338
|
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
2385
2339
|
* ⚛️ Retrieve Hotel Offers
|
|
2386
2340
|
*/
|
|
2387
|
-
async listRaw(e,
|
|
2341
|
+
async listRaw(e, r) {
|
|
2388
2342
|
if (e.currency === null || e.currency === void 0)
|
|
2389
|
-
throw new
|
|
2343
|
+
throw new U("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelOffers.");
|
|
2390
2344
|
if (e.hotelOfferRequestId === null || e.hotelOfferRequestId === void 0)
|
|
2391
|
-
throw new
|
|
2345
|
+
throw new U("hotelOfferRequestId", "Required parameter requestParameters.hotelOfferRequestId was null or undefined when calling getV1HotelOffers.");
|
|
2392
2346
|
const t = {};
|
|
2393
2347
|
e.currency !== void 0 && (t.currency = e.currency), e.endingBefore !== void 0 && (t.ending_before = e.endingBefore), e.filterByPrice !== void 0 && (t.filter_by_price = e.filterByPrice), e.filterByReviewRating !== void 0 && (t.filter_by_review_rating = e.filterByReviewRating), e.filterByStar !== void 0 && (t.filter_by_star = e.filterByStar), e.hotelOfferRequestId !== void 0 && (t.hotel_offer_request_id = e.hotelOfferRequestId), e.hotelRoomOffersLimit !== void 0 && (t.hotel_room_offers_limit = e.hotelRoomOffersLimit), e.includeHotelContentDetails !== void 0 && (t.include_hotel_content_details = e.includeHotelContentDetails), e.lang !== void 0 && (t.lang = e.lang), e.limit !== void 0 && (t.limit = e.limit), e.onlyRecommendedHotelOffers !== void 0 && (t.only_recommended_hotel_offers = e.onlyRecommendedHotelOffers), e.priceHistogramStepCount !== void 0 && (t.price_histogram_step_count = e.priceHistogramStepCount), e.sortBy !== void 0 && (t.sort_by = e.sortBy), e.sortByOrder !== void 0 && (t.sort_by_order = e.sortByOrder), e.startingAfter !== void 0 && (t.starting_after = e.startingAfter);
|
|
2394
|
-
const
|
|
2395
|
-
this.configuration && this.configuration.apiKey && (
|
|
2348
|
+
const n = {};
|
|
2349
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2396
2350
|
const s = await this.request({
|
|
2397
2351
|
path: "/v1/hotel_offers",
|
|
2398
2352
|
method: "GET",
|
|
2399
|
-
headers:
|
|
2353
|
+
headers: n,
|
|
2400
2354
|
query: w(t, v.Snake)
|
|
2401
|
-
},
|
|
2402
|
-
return await new
|
|
2355
|
+
}, r);
|
|
2356
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2403
2357
|
}
|
|
2404
2358
|
/**
|
|
2405
2359
|
* You\'ll then make a call to the **Hotel Offers** endpoint to retrieve a list of **Hotel Offers** associated with your **Hotel Offer Request**. We\'ll send your search to a pool of hotels matching the search parameters you provided previously. The **Hotel Offers** endpoint will return hotels with available rates as **Hotel Room Offers** objects for each hotel in the list. For a detailed overview of the **Hotel Room Offer** object, see **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. ⚠️ **IMPORTANT**: The **Hotel Room Offers** included in each **Hotel Offer** returned by the **[Retrieve Hotel Offers](/v1/documentation#operation/getV1Hotel_offers)** endpoint might be **<span style=\"color:red\">cached data</span>**. In that case, the returned prices/availability may be slightly different from actual live inventory. In order to retrieve accurate and live **Hotel Room Offers** for a specific hotel you need to make a call to the **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** endpoint. We do not recommend to systematically call **[Retrieve Hotel Room Offers](/v1/documentation#operation/getV1Hotel_room_offers)** for each hotel offer retrieved as it may trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Offers** around a location, then, once your customer shows interest in a specific **Hotel Offer**, you check **Hotel Room Offers** on that specific hotel. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
2406
2360
|
* ⚛️ Retrieve Hotel Offers
|
|
2407
2361
|
*/
|
|
2408
|
-
async list(e,
|
|
2409
|
-
return await
|
|
2362
|
+
async list(e, r, t) {
|
|
2363
|
+
return await nt(
|
|
2410
2364
|
() => this.listRaw(e, t),
|
|
2411
|
-
{ type:
|
|
2412
|
-
|
|
2365
|
+
{ type: De.HOTEL_SEARCH_POLLING, minCallCount: t?.minCallCount, maxCallCount: t?.maxCallCount },
|
|
2366
|
+
r
|
|
2413
2367
|
);
|
|
2414
2368
|
}
|
|
2415
2369
|
}
|
|
2416
|
-
const
|
|
2370
|
+
const An = {
|
|
2417
2371
|
DeDe: "de-DE",
|
|
2418
2372
|
EnUs: "en-US",
|
|
2419
2373
|
EsEs: "es-ES",
|
|
@@ -2421,123 +2375,123 @@ const br = {
|
|
|
2421
2375
|
ItIt: "it-IT",
|
|
2422
2376
|
NlNl: "nl-NL",
|
|
2423
2377
|
PtPt: "pt-PT"
|
|
2424
|
-
},
|
|
2378
|
+
}, Tn = {
|
|
2425
2379
|
Distance: "distance",
|
|
2426
2380
|
Price: "price",
|
|
2427
2381
|
Rating: "rating",
|
|
2428
2382
|
ReviewRating: "review_rating",
|
|
2429
2383
|
TopPicks: "top_picks"
|
|
2430
|
-
},
|
|
2384
|
+
}, Mn = {
|
|
2431
2385
|
Asc: "asc",
|
|
2432
2386
|
Desc: "desc"
|
|
2433
2387
|
};
|
|
2434
|
-
class
|
|
2388
|
+
class Br extends W {
|
|
2435
2389
|
/**
|
|
2436
2390
|
* Returns a single Hotel Room Offer Request by id
|
|
2437
2391
|
* Retrieve a Single Hotel Room Offer Request
|
|
2438
2392
|
*/
|
|
2439
|
-
async retrieveRaw(e,
|
|
2393
|
+
async retrieveRaw(e, r) {
|
|
2440
2394
|
if (e.id === null || e.id === void 0)
|
|
2441
|
-
throw new
|
|
2442
|
-
const t = {},
|
|
2443
|
-
this.configuration && this.configuration.apiKey && (
|
|
2395
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelRoomOfferRequestsId.");
|
|
2396
|
+
const t = {}, n = {};
|
|
2397
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2444
2398
|
const s = await this.request({
|
|
2445
2399
|
path: "/v1/hotel_room_offer_requests/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2446
2400
|
method: "GET",
|
|
2447
|
-
headers:
|
|
2401
|
+
headers: n,
|
|
2448
2402
|
query: w(t, v.Snake)
|
|
2449
|
-
},
|
|
2450
|
-
return await new
|
|
2403
|
+
}, r);
|
|
2404
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2451
2405
|
}
|
|
2452
2406
|
/**
|
|
2453
2407
|
* Returns a single Hotel Room Offer Request by id
|
|
2454
2408
|
* Retrieve a Single Hotel Room Offer Request
|
|
2455
2409
|
*/
|
|
2456
|
-
async retrieve(e,
|
|
2457
|
-
return this.retrieveRaw(e,
|
|
2410
|
+
async retrieve(e, r) {
|
|
2411
|
+
return this.retrieveRaw(e, r);
|
|
2458
2412
|
}
|
|
2459
2413
|
/**
|
|
2460
2414
|
* To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
|
|
2461
2415
|
* Create an Hotel Room Offer Request
|
|
2462
2416
|
*/
|
|
2463
|
-
async createRaw(e,
|
|
2464
|
-
const t = {},
|
|
2465
|
-
|
|
2417
|
+
async createRaw(e, r) {
|
|
2418
|
+
const t = {}, n = {};
|
|
2419
|
+
n["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2466
2420
|
const s = await this.request({
|
|
2467
2421
|
path: "/v1/hotel_room_offer_requests",
|
|
2468
2422
|
method: "POST",
|
|
2469
|
-
headers:
|
|
2423
|
+
headers: n,
|
|
2470
2424
|
query: w(t, v.Snake),
|
|
2471
2425
|
body: w(e.hotelRoomOfferRequestCreateApi, v.Snake)
|
|
2472
|
-
},
|
|
2473
|
-
return await new
|
|
2426
|
+
}, r);
|
|
2427
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2474
2428
|
}
|
|
2475
2429
|
/**
|
|
2476
2430
|
* To check available rates, or **Hotel Room Offers**, at a specific hotel, you first need to create an **Hotel Room Offer Request**. An **Hotel Room Offer Request** describes the guests (adult and child count), the ideal room count, when they want to check in and check out and the id of the hotel you want to check available rates at.
|
|
2477
2431
|
* Create an Hotel Room Offer Request
|
|
2478
2432
|
*/
|
|
2479
|
-
async create(e = {},
|
|
2480
|
-
return this.createRaw(e,
|
|
2433
|
+
async create(e = {}, r) {
|
|
2434
|
+
return this.createRaw(e, r);
|
|
2481
2435
|
}
|
|
2482
2436
|
}
|
|
2483
|
-
class
|
|
2437
|
+
class xr extends W {
|
|
2484
2438
|
/**
|
|
2485
2439
|
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
2486
2440
|
* ⚛️ Retrieve Hotel Room Offers
|
|
2487
2441
|
*/
|
|
2488
|
-
async listRaw(e,
|
|
2442
|
+
async listRaw(e, r) {
|
|
2489
2443
|
if (e.currency === null || e.currency === void 0)
|
|
2490
|
-
throw new
|
|
2444
|
+
throw new U("currency", "Required parameter requestParameters.currency was null or undefined when calling getV1HotelRoomOffers.");
|
|
2491
2445
|
if (e.hotelRoomOfferRequestId === null || e.hotelRoomOfferRequestId === void 0)
|
|
2492
|
-
throw new
|
|
2446
|
+
throw new U("hotelRoomOfferRequestId", "Required parameter requestParameters.hotelRoomOfferRequestId was null or undefined when calling getV1HotelRoomOffers.");
|
|
2493
2447
|
const t = {};
|
|
2494
2448
|
e.currency !== void 0 && (t.currency = e.currency), e.hotelRoomOfferRequestId !== void 0 && (t.hotel_room_offer_request_id = e.hotelRoomOfferRequestId), e.lang !== void 0 && (t.lang = e.lang), e.limit !== void 0 && (t.limit = e.limit);
|
|
2495
|
-
const
|
|
2496
|
-
this.configuration && this.configuration.apiKey && (
|
|
2449
|
+
const n = {};
|
|
2450
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2497
2451
|
const s = await this.request({
|
|
2498
2452
|
path: "/v1/hotel_room_offers",
|
|
2499
2453
|
method: "GET",
|
|
2500
|
-
headers:
|
|
2454
|
+
headers: n,
|
|
2501
2455
|
query: w(t, v.Snake)
|
|
2502
|
-
},
|
|
2503
|
-
return await new
|
|
2456
|
+
}, r);
|
|
2457
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2504
2458
|
}
|
|
2505
2459
|
/**
|
|
2506
2460
|
* You\'ll make a call to the **Hotel Room Offers** endpoint in order to get a list of **Hotel Room Offers** resulting from your **Hotel Room Offer Request** parameters. We\'ll send your rate check request to the specific hotel matching the hotel ID you provided previously and the **Hotel Room Offers** endpoint will return the available rates at this specific hotel. An **Hotel Room Offer** describes hotel rooms: prices, remaining count available (when applicable), details about the room itself (e.g., beds, etc) and other information you\'ll find below. ⚠️ **Cancellation Policies** attached to each **Hotel Room Offer** returned by this endpoint will most likely be **<span style=\"color:red\">cached data</span>** and should not be considered as accurate, although in most case they will reflect the actual/live ones. In order to retrieve accurate and live **Cancellation Policies** for a specific **Hotel Room Offer** you need to make a call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)**. However, we do not recommend to systematically call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** for each **Hotel Room Offer** retrieved as it will most likely trigger rate limiting on your API calls. Rather we recommend to do this as an explicit two-step process: first you check **Hotel Room Offers**, then, once your customer shows interest in a specific **Hotel Room Offer**, you make the call to the **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** on behalf of your customer. This endpoint requires ⚛️ **[Polling](/v1/documentation#tag/Polling)**.
|
|
2507
2461
|
* ⚛️ Retrieve Hotel Room Offers
|
|
2508
2462
|
*/
|
|
2509
|
-
async list(e,
|
|
2510
|
-
return await
|
|
2463
|
+
async list(e, r, t) {
|
|
2464
|
+
return await nt(
|
|
2511
2465
|
() => this.listRaw(e, t),
|
|
2512
|
-
{ type:
|
|
2513
|
-
|
|
2466
|
+
{ type: De.HOTEL_ROOM_OFFERS, minCallCount: t?.minCallCount, maxCallCount: t?.maxCallCount },
|
|
2467
|
+
r
|
|
2514
2468
|
);
|
|
2515
2469
|
}
|
|
2516
2470
|
/**
|
|
2517
2471
|
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
|
|
2518
2472
|
* Create Hotel Room Offer
|
|
2519
2473
|
*/
|
|
2520
|
-
async createRaw(e,
|
|
2521
|
-
const t = {},
|
|
2522
|
-
|
|
2474
|
+
async createRaw(e, r) {
|
|
2475
|
+
const t = {}, n = {};
|
|
2476
|
+
n["Content-Type"] = "application/json", this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2523
2477
|
const s = await this.request({
|
|
2524
2478
|
path: "/v1/hotel_room_offers",
|
|
2525
2479
|
method: "POST",
|
|
2526
|
-
headers:
|
|
2480
|
+
headers: n,
|
|
2527
2481
|
query: w(t, v.Snake),
|
|
2528
2482
|
body: w(e.hotelRoomOffersCreateApi, v.Snake)
|
|
2529
|
-
},
|
|
2530
|
-
return await new
|
|
2483
|
+
}, r);
|
|
2484
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2531
2485
|
}
|
|
2532
2486
|
/**
|
|
2533
2487
|
* This enpoint creates a new **Hotel Room Offer** based on previously fetched **Hotel Room Offer(s)** and may be used for the following purposes: - Check a specific **Hotel Room Offer** live availability - Create a new **Hotel Room Offer** with **type = \"PACKAGE\"** based on multiple **Hotel Room Offers** where **type = \"HOTEL_ROOM\"** and be able to call **[Create Booking Policies endpoint](/v1/documentation#operation/postV1Booking_policies)** with it - Update an existing **Hotel Room Offer** with **type = \"PACKAGE\"** in order to include extra option(s) like breakfast in the returned price. We strongly recommend to make use of this endpoint if you want to offer some kind of Shopping Cart experience to your customer when **[Retrieve HotelRoom Offers endpoint](/v1/documentation#operation/getV1Hotel_room_offers)** returns multiple **Hotel Room Offers** with **type = \"HOTEL_ROOM\"**.
|
|
2534
2488
|
* Create Hotel Room Offer
|
|
2535
2489
|
*/
|
|
2536
|
-
async create(e = {},
|
|
2537
|
-
return this.createRaw(e,
|
|
2490
|
+
async create(e = {}, r) {
|
|
2491
|
+
return this.createRaw(e, r);
|
|
2538
2492
|
}
|
|
2539
2493
|
}
|
|
2540
|
-
const
|
|
2494
|
+
const En = {
|
|
2541
2495
|
DeDe: "de-DE",
|
|
2542
2496
|
EnUs: "en-US",
|
|
2543
2497
|
EsEs: "es-ES",
|
|
@@ -2546,111 +2500,111 @@ const Lr = {
|
|
|
2546
2500
|
NlNl: "nl-NL",
|
|
2547
2501
|
PtPt: "pt-PT"
|
|
2548
2502
|
};
|
|
2549
|
-
class
|
|
2503
|
+
class Lr extends W {
|
|
2550
2504
|
/**
|
|
2551
2505
|
* Delete a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2552
2506
|
* Delete Hotel Room List Guest
|
|
2553
2507
|
*/
|
|
2554
|
-
async deleteRaw(e,
|
|
2508
|
+
async deleteRaw(e, r) {
|
|
2555
2509
|
if (e.id === null || e.id === void 0)
|
|
2556
|
-
throw new
|
|
2510
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
|
|
2557
2511
|
if (e.token === null || e.token === void 0)
|
|
2558
|
-
throw new
|
|
2559
|
-
const t = {},
|
|
2512
|
+
throw new U("token", "Required parameter requestParameters.token was null or undefined when calling deleteV1HotelRoomingListGuestsTokenId.");
|
|
2513
|
+
const t = {}, n = {}, s = await this.request({
|
|
2560
2514
|
path: "/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}", encodeURIComponent(String(e.id))).replace("{token}", encodeURIComponent(String(e.token))),
|
|
2561
2515
|
method: "DELETE",
|
|
2562
|
-
headers:
|
|
2516
|
+
headers: n,
|
|
2563
2517
|
query: w(t, v.Snake)
|
|
2564
|
-
},
|
|
2565
|
-
return new
|
|
2518
|
+
}, r);
|
|
2519
|
+
return new Or(s);
|
|
2566
2520
|
}
|
|
2567
2521
|
/**
|
|
2568
2522
|
* Delete a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2569
2523
|
* Delete Hotel Room List Guest
|
|
2570
2524
|
*/
|
|
2571
|
-
async delete(e,
|
|
2572
|
-
return this.deleteRaw(e,
|
|
2525
|
+
async delete(e, r) {
|
|
2526
|
+
return this.deleteRaw(e, r);
|
|
2573
2527
|
}
|
|
2574
2528
|
/**
|
|
2575
2529
|
* Update a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2576
2530
|
* Update Hotel Room List Guest
|
|
2577
2531
|
*/
|
|
2578
|
-
async updateRaw(e,
|
|
2532
|
+
async updateRaw(e, r) {
|
|
2579
2533
|
if (e.id === null || e.id === void 0)
|
|
2580
|
-
throw new
|
|
2534
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
|
|
2581
2535
|
if (e.token === null || e.token === void 0)
|
|
2582
|
-
throw new
|
|
2583
|
-
const t = {},
|
|
2584
|
-
|
|
2536
|
+
throw new U("token", "Required parameter requestParameters.token was null or undefined when calling patchV1HotelRoomingListGuestsTokenId.");
|
|
2537
|
+
const t = {}, n = {};
|
|
2538
|
+
n["Content-Type"] = "application/json";
|
|
2585
2539
|
const s = await this.request({
|
|
2586
2540
|
path: "/v1/hotel_rooming_list_guests/{token}/{id}".replace("{id}", encodeURIComponent(String(e.id))).replace("{token}", encodeURIComponent(String(e.token))),
|
|
2587
2541
|
method: "PATCH",
|
|
2588
|
-
headers:
|
|
2542
|
+
headers: n,
|
|
2589
2543
|
query: w(t, v.Snake),
|
|
2590
2544
|
body: w(e.hotelRoomingListGuestsUpdateApi, v.Snake)
|
|
2591
|
-
},
|
|
2592
|
-
return await new
|
|
2545
|
+
}, r);
|
|
2546
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2593
2547
|
}
|
|
2594
2548
|
/**
|
|
2595
2549
|
* Update a hotel rooming list guest from a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2596
2550
|
* Update Hotel Room List Guest
|
|
2597
2551
|
*/
|
|
2598
|
-
async update(e,
|
|
2599
|
-
return this.updateRaw(e,
|
|
2552
|
+
async update(e, r) {
|
|
2553
|
+
return this.updateRaw(e, r);
|
|
2600
2554
|
}
|
|
2601
2555
|
/**
|
|
2602
2556
|
* Create a new hotel rooming list guest to a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2603
2557
|
* Create Hotel Rooming List Guest
|
|
2604
2558
|
*/
|
|
2605
|
-
async createRaw(e,
|
|
2559
|
+
async createRaw(e, r) {
|
|
2606
2560
|
if (e.token === null || e.token === void 0)
|
|
2607
|
-
throw new
|
|
2608
|
-
const t = {},
|
|
2609
|
-
|
|
2561
|
+
throw new U("token", "Required parameter requestParameters.token was null or undefined when calling postV1HotelRoomingListGuestsToken.");
|
|
2562
|
+
const t = {}, n = {};
|
|
2563
|
+
n["Content-Type"] = "application/json";
|
|
2610
2564
|
const s = await this.request({
|
|
2611
2565
|
path: "/v1/hotel_rooming_list_guests/{token}".replace("{token}", encodeURIComponent(String(e.token))),
|
|
2612
2566
|
method: "POST",
|
|
2613
|
-
headers:
|
|
2567
|
+
headers: n,
|
|
2614
2568
|
query: w(t, v.Snake),
|
|
2615
2569
|
body: w(e.hotelRoomingListGuestsCreateApi, v.Snake)
|
|
2616
|
-
},
|
|
2617
|
-
return await new
|
|
2570
|
+
}, r);
|
|
2571
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2618
2572
|
}
|
|
2619
2573
|
/**
|
|
2620
2574
|
* Create a new hotel rooming list guest to a booking based on a valid token. This endpoint is public and does not require a secret API key.
|
|
2621
2575
|
* Create Hotel Rooming List Guest
|
|
2622
2576
|
*/
|
|
2623
|
-
async create(e,
|
|
2624
|
-
return this.createRaw(e,
|
|
2577
|
+
async create(e, r) {
|
|
2578
|
+
return this.createRaw(e, r);
|
|
2625
2579
|
}
|
|
2626
2580
|
}
|
|
2627
|
-
class
|
|
2581
|
+
class Pr extends W {
|
|
2628
2582
|
/**
|
|
2629
2583
|
* Get Hotel Rooming Lists of a booking. This endpoint is public and does not require a secret API key.
|
|
2630
2584
|
* Get Hotel Rooming Lists for a booking
|
|
2631
2585
|
*/
|
|
2632
|
-
async listRaw(e,
|
|
2586
|
+
async listRaw(e, r) {
|
|
2633
2587
|
if (e.token === null || e.token === void 0)
|
|
2634
|
-
throw new
|
|
2588
|
+
throw new U("token", "Required parameter requestParameters.token was null or undefined when calling getV1HotelRoomingListsToken.");
|
|
2635
2589
|
const t = {};
|
|
2636
2590
|
e.lang !== void 0 && (t.lang = e.lang);
|
|
2637
|
-
const
|
|
2591
|
+
const n = {}, s = await this.request({
|
|
2638
2592
|
path: "/v1/hotel_rooming_lists/{token}".replace("{token}", encodeURIComponent(String(e.token))),
|
|
2639
2593
|
method: "GET",
|
|
2640
|
-
headers:
|
|
2594
|
+
headers: n,
|
|
2641
2595
|
query: w(t, v.Snake)
|
|
2642
|
-
},
|
|
2643
|
-
return new
|
|
2596
|
+
}, r);
|
|
2597
|
+
return new $(s, (u) => w(u, v.Camel)).value();
|
|
2644
2598
|
}
|
|
2645
2599
|
/**
|
|
2646
2600
|
* Get Hotel Rooming Lists of a booking. This endpoint is public and does not require a secret API key.
|
|
2647
2601
|
* Get Hotel Rooming Lists for a booking
|
|
2648
2602
|
*/
|
|
2649
|
-
async list(e,
|
|
2650
|
-
return this.listRaw(e,
|
|
2603
|
+
async list(e, r) {
|
|
2604
|
+
return this.listRaw(e, r);
|
|
2651
2605
|
}
|
|
2652
2606
|
}
|
|
2653
|
-
const
|
|
2607
|
+
const On = {
|
|
2654
2608
|
DeDe: "de-DE",
|
|
2655
2609
|
EnUs: "en-US",
|
|
2656
2610
|
EsEs: "es-ES",
|
|
@@ -2659,35 +2613,35 @@ const xr = {
|
|
|
2659
2613
|
NlNl: "nl-NL",
|
|
2660
2614
|
PtPt: "pt-PT"
|
|
2661
2615
|
};
|
|
2662
|
-
class $
|
|
2616
|
+
class $r extends W {
|
|
2663
2617
|
/**
|
|
2664
2618
|
* Returns a single Hotel by id with their content localize into the requested **lang**.
|
|
2665
2619
|
* Retrieve a Hotel
|
|
2666
2620
|
*/
|
|
2667
|
-
async retrieveRaw(e,
|
|
2621
|
+
async retrieveRaw(e, r) {
|
|
2668
2622
|
if (e.id === null || e.id === void 0)
|
|
2669
|
-
throw new
|
|
2623
|
+
throw new U("id", "Required parameter requestParameters.id was null or undefined when calling getV1HotelsId.");
|
|
2670
2624
|
const t = {};
|
|
2671
2625
|
e.event !== void 0 && (t.event = e.event), e.lang !== void 0 && (t.lang = e.lang);
|
|
2672
|
-
const
|
|
2673
|
-
this.configuration && this.configuration.apiKey && (
|
|
2626
|
+
const n = {};
|
|
2627
|
+
this.configuration && this.configuration.apiKey && (n["x-api-key"] = this.configuration.apiKey("x-api-key"));
|
|
2674
2628
|
const s = await this.request({
|
|
2675
2629
|
path: "/v1/hotels/{id}".replace("{id}", encodeURIComponent(String(e.id))),
|
|
2676
2630
|
method: "GET",
|
|
2677
|
-
headers:
|
|
2631
|
+
headers: n,
|
|
2678
2632
|
query: w(t, v.Snake)
|
|
2679
|
-
},
|
|
2680
|
-
return await new
|
|
2633
|
+
}, r);
|
|
2634
|
+
return await new $(s, (u) => w(u, v.Camel)).value();
|
|
2681
2635
|
}
|
|
2682
2636
|
/**
|
|
2683
2637
|
* Returns a single Hotel by id with their content localize into the requested **lang**.
|
|
2684
2638
|
* Retrieve a Hotel
|
|
2685
2639
|
*/
|
|
2686
|
-
async retrieve(e,
|
|
2687
|
-
return this.retrieveRaw(e,
|
|
2640
|
+
async retrieve(e, r) {
|
|
2641
|
+
return this.retrieveRaw(e, r);
|
|
2688
2642
|
}
|
|
2689
2643
|
}
|
|
2690
|
-
const
|
|
2644
|
+
const kn = {
|
|
2691
2645
|
DeDe: "de-DE",
|
|
2692
2646
|
EnUs: "en-US",
|
|
2693
2647
|
EsEs: "es-ES",
|
|
@@ -2697,13 +2651,13 @@ const Pr = {
|
|
|
2697
2651
|
PtPt: "pt-PT"
|
|
2698
2652
|
};
|
|
2699
2653
|
var ue = { exports: {} }, Ze;
|
|
2700
|
-
function
|
|
2654
|
+
function Ur() {
|
|
2701
2655
|
return Ze || (Ze = 1, (function(i, e) {
|
|
2702
|
-
var
|
|
2656
|
+
var r = typeof globalThis < "u" && globalThis || typeof self < "u" && self || typeof se < "u" && se, t = (function() {
|
|
2703
2657
|
function s() {
|
|
2704
|
-
this.fetch = !1, this.DOMException =
|
|
2658
|
+
this.fetch = !1, this.DOMException = r.DOMException;
|
|
2705
2659
|
}
|
|
2706
|
-
return s.prototype =
|
|
2660
|
+
return s.prototype = r, new s();
|
|
2707
2661
|
})();
|
|
2708
2662
|
(function(s) {
|
|
2709
2663
|
(function(u) {
|
|
@@ -2725,7 +2679,7 @@ function Un() {
|
|
|
2725
2679
|
return o && DataView.prototype.isPrototypeOf(o);
|
|
2726
2680
|
}
|
|
2727
2681
|
if (h.arrayBuffer)
|
|
2728
|
-
var
|
|
2682
|
+
var C = [
|
|
2729
2683
|
"[object Int8Array]",
|
|
2730
2684
|
"[object Uint8Array]",
|
|
2731
2685
|
"[object Uint8ClampedArray]",
|
|
@@ -2736,17 +2690,17 @@ function Un() {
|
|
|
2736
2690
|
"[object Float32Array]",
|
|
2737
2691
|
"[object Float64Array]"
|
|
2738
2692
|
], y = ArrayBuffer.isView || function(o) {
|
|
2739
|
-
return o &&
|
|
2693
|
+
return o && C.indexOf(Object.prototype.toString.call(o)) > -1;
|
|
2740
2694
|
};
|
|
2741
2695
|
function m(o) {
|
|
2742
2696
|
if (typeof o != "string" && (o = String(o)), /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(o) || o === "")
|
|
2743
2697
|
throw new TypeError('Invalid character in header field name: "' + o + '"');
|
|
2744
2698
|
return o.toLowerCase();
|
|
2745
2699
|
}
|
|
2746
|
-
function
|
|
2700
|
+
function A(o) {
|
|
2747
2701
|
return typeof o != "string" && (o = String(o)), o;
|
|
2748
2702
|
}
|
|
2749
|
-
function
|
|
2703
|
+
function T(o) {
|
|
2750
2704
|
var a = {
|
|
2751
2705
|
next: function() {
|
|
2752
2706
|
var f = o.shift();
|
|
@@ -2769,7 +2723,7 @@ function Un() {
|
|
|
2769
2723
|
}, this);
|
|
2770
2724
|
}
|
|
2771
2725
|
d.prototype.append = function(o, a) {
|
|
2772
|
-
o = m(o), a =
|
|
2726
|
+
o = m(o), a = A(a);
|
|
2773
2727
|
var f = this.map[o];
|
|
2774
2728
|
this.map[o] = f ? f + ", " + a : a;
|
|
2775
2729
|
}, d.prototype.delete = function(o) {
|
|
@@ -2779,7 +2733,7 @@ function Un() {
|
|
|
2779
2733
|
}, d.prototype.has = function(o) {
|
|
2780
2734
|
return this.map.hasOwnProperty(m(o));
|
|
2781
2735
|
}, d.prototype.set = function(o, a) {
|
|
2782
|
-
this.map[m(o)] =
|
|
2736
|
+
this.map[m(o)] = A(a);
|
|
2783
2737
|
}, d.prototype.forEach = function(o, a) {
|
|
2784
2738
|
for (var f in this.map)
|
|
2785
2739
|
this.map.hasOwnProperty(f) && o.call(a, this.map[f], f, this);
|
|
@@ -2787,17 +2741,17 @@ function Un() {
|
|
|
2787
2741
|
var o = [];
|
|
2788
2742
|
return this.forEach(function(a, f) {
|
|
2789
2743
|
o.push(f);
|
|
2790
|
-
}),
|
|
2744
|
+
}), T(o);
|
|
2791
2745
|
}, d.prototype.values = function() {
|
|
2792
2746
|
var o = [];
|
|
2793
2747
|
return this.forEach(function(a) {
|
|
2794
2748
|
o.push(a);
|
|
2795
|
-
}),
|
|
2749
|
+
}), T(o);
|
|
2796
2750
|
}, d.prototype.entries = function() {
|
|
2797
2751
|
var o = [];
|
|
2798
2752
|
return this.forEach(function(a, f) {
|
|
2799
2753
|
o.push([f, a]);
|
|
2800
|
-
}),
|
|
2754
|
+
}), T(o);
|
|
2801
2755
|
}, h.iterable && (d.prototype[Symbol.iterator] = d.prototype.entries);
|
|
2802
2756
|
function M(o) {
|
|
2803
2757
|
if (!o._noBody) {
|
|
@@ -2819,16 +2773,16 @@ function Un() {
|
|
|
2819
2773
|
var a = new FileReader(), f = I(a);
|
|
2820
2774
|
return a.readAsArrayBuffer(o), f;
|
|
2821
2775
|
}
|
|
2822
|
-
function
|
|
2776
|
+
function _(o) {
|
|
2823
2777
|
var a = new FileReader(), f = I(a), l = /charset=([A-Za-z0-9_-]+)/.exec(o.type), g = l ? l[1] : "utf-8";
|
|
2824
2778
|
return a.readAsText(o, g), f;
|
|
2825
2779
|
}
|
|
2826
|
-
function
|
|
2780
|
+
function P(o) {
|
|
2827
2781
|
for (var a = new Uint8Array(o), f = new Array(a.length), l = 0; l < a.length; l++)
|
|
2828
2782
|
f[l] = String.fromCharCode(a[l]);
|
|
2829
2783
|
return f.join("");
|
|
2830
2784
|
}
|
|
2831
|
-
function
|
|
2785
|
+
function E(o) {
|
|
2832
2786
|
if (o.slice)
|
|
2833
2787
|
return o.slice(0);
|
|
2834
2788
|
var a = new Uint8Array(o.byteLength);
|
|
@@ -2836,7 +2790,7 @@ function Un() {
|
|
|
2836
2790
|
}
|
|
2837
2791
|
function B() {
|
|
2838
2792
|
return this.bodyUsed = !1, this._initBody = function(o) {
|
|
2839
|
-
this.bodyUsed = this.bodyUsed, this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : h.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : h.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : h.arrayBuffer && h.blob && S(o) ? (this._bodyArrayBuffer =
|
|
2793
|
+
this.bodyUsed = this.bodyUsed, this._bodyInit = o, o ? typeof o == "string" ? this._bodyText = o : h.blob && Blob.prototype.isPrototypeOf(o) ? this._bodyBlob = o : h.formData && FormData.prototype.isPrototypeOf(o) ? this._bodyFormData = o : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) ? this._bodyText = o.toString() : h.arrayBuffer && h.blob && S(o) ? (this._bodyArrayBuffer = E(o.buffer), this._bodyInit = new Blob([this._bodyArrayBuffer])) : h.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(o) || y(o)) ? this._bodyArrayBuffer = E(o) : this._bodyText = o = Object.prototype.toString.call(o) : (this._noBody = !0, this._bodyText = ""), this.headers.get("content-type") || (typeof o == "string" ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : h.searchParams && URLSearchParams.prototype.isPrototypeOf(o) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8"));
|
|
2840
2794
|
}, h.blob && (this.blob = function() {
|
|
2841
2795
|
var o = M(this);
|
|
2842
2796
|
if (o)
|
|
@@ -2867,35 +2821,35 @@ function Un() {
|
|
|
2867
2821
|
if (o)
|
|
2868
2822
|
return o;
|
|
2869
2823
|
if (this._bodyBlob)
|
|
2870
|
-
return
|
|
2824
|
+
return _(this._bodyBlob);
|
|
2871
2825
|
if (this._bodyArrayBuffer)
|
|
2872
|
-
return Promise.resolve(
|
|
2826
|
+
return Promise.resolve(P(this._bodyArrayBuffer));
|
|
2873
2827
|
if (this._bodyFormData)
|
|
2874
2828
|
throw new Error("could not read FormData body as text");
|
|
2875
2829
|
return Promise.resolve(this._bodyText);
|
|
2876
2830
|
}, h.formData && (this.formData = function() {
|
|
2877
|
-
return this.text().then(
|
|
2831
|
+
return this.text().then(x);
|
|
2878
2832
|
}), this.json = function() {
|
|
2879
2833
|
return this.text().then(JSON.parse);
|
|
2880
2834
|
}, this;
|
|
2881
2835
|
}
|
|
2882
|
-
var
|
|
2883
|
-
function
|
|
2836
|
+
var K = ["CONNECT", "DELETE", "GET", "HEAD", "OPTIONS", "PATCH", "POST", "PUT", "TRACE"];
|
|
2837
|
+
function F(o) {
|
|
2884
2838
|
var a = o.toUpperCase();
|
|
2885
|
-
return
|
|
2839
|
+
return K.indexOf(a) > -1 ? a : o;
|
|
2886
2840
|
}
|
|
2887
|
-
function
|
|
2888
|
-
if (!(this instanceof
|
|
2841
|
+
function N(o, a) {
|
|
2842
|
+
if (!(this instanceof N))
|
|
2889
2843
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
2890
2844
|
a = a || {};
|
|
2891
2845
|
var f = a.body;
|
|
2892
|
-
if (o instanceof
|
|
2846
|
+
if (o instanceof N) {
|
|
2893
2847
|
if (o.bodyUsed)
|
|
2894
2848
|
throw new TypeError("Already read");
|
|
2895
2849
|
this.url = o.url, this.credentials = o.credentials, a.headers || (this.headers = new d(o.headers)), this.method = o.method, this.mode = o.mode, this.signal = o.signal, !f && o._bodyInit != null && (f = o._bodyInit, o.bodyUsed = !0);
|
|
2896
2850
|
} else
|
|
2897
2851
|
this.url = String(o);
|
|
2898
|
-
if (this.credentials = a.credentials || this.credentials || "same-origin", (a.headers || !this.headers) && (this.headers = new d(a.headers)), this.method =
|
|
2852
|
+
if (this.credentials = a.credentials || this.credentials || "same-origin", (a.headers || !this.headers) && (this.headers = new d(a.headers)), this.method = F(a.method || this.method || "GET"), this.mode = a.mode || this.mode || null, this.signal = a.signal || this.signal || (function() {
|
|
2899
2853
|
if ("AbortController" in c) {
|
|
2900
2854
|
var p = new AbortController();
|
|
2901
2855
|
return p.signal;
|
|
@@ -2912,10 +2866,10 @@ function Un() {
|
|
|
2912
2866
|
}
|
|
2913
2867
|
}
|
|
2914
2868
|
}
|
|
2915
|
-
|
|
2916
|
-
return new
|
|
2869
|
+
N.prototype.clone = function() {
|
|
2870
|
+
return new N(this, { body: this._bodyInit });
|
|
2917
2871
|
};
|
|
2918
|
-
function
|
|
2872
|
+
function x(o) {
|
|
2919
2873
|
var a = new FormData();
|
|
2920
2874
|
return o.trim().split("&").forEach(function(f) {
|
|
2921
2875
|
if (f) {
|
|
@@ -2932,16 +2886,16 @@ function Un() {
|
|
|
2932
2886
|
}).forEach(function(l) {
|
|
2933
2887
|
var g = l.split(":"), p = g.shift().trim();
|
|
2934
2888
|
if (p) {
|
|
2935
|
-
var
|
|
2889
|
+
var D = g.join(":").trim();
|
|
2936
2890
|
try {
|
|
2937
|
-
a.append(p,
|
|
2938
|
-
} catch (
|
|
2939
|
-
console.warn("Response " +
|
|
2891
|
+
a.append(p, D);
|
|
2892
|
+
} catch (L) {
|
|
2893
|
+
console.warn("Response " + L.message);
|
|
2940
2894
|
}
|
|
2941
2895
|
}
|
|
2942
2896
|
}), a;
|
|
2943
2897
|
}
|
|
2944
|
-
B.call(
|
|
2898
|
+
B.call(N.prototype);
|
|
2945
2899
|
function V(o, a) {
|
|
2946
2900
|
if (!(this instanceof V))
|
|
2947
2901
|
throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');
|
|
@@ -2977,11 +2931,11 @@ function Un() {
|
|
|
2977
2931
|
}
|
|
2978
2932
|
function R(o, a) {
|
|
2979
2933
|
return new Promise(function(f, l) {
|
|
2980
|
-
var g = new
|
|
2934
|
+
var g = new N(o, a);
|
|
2981
2935
|
if (g.signal && g.signal.aborted)
|
|
2982
2936
|
return l(new u.DOMException("Aborted", "AbortError"));
|
|
2983
2937
|
var p = new XMLHttpRequest();
|
|
2984
|
-
function
|
|
2938
|
+
function D() {
|
|
2985
2939
|
p.abort();
|
|
2986
2940
|
}
|
|
2987
2941
|
p.onload = function() {
|
|
@@ -3007,17 +2961,17 @@ function Un() {
|
|
|
3007
2961
|
l(new u.DOMException("Aborted", "AbortError"));
|
|
3008
2962
|
}, 0);
|
|
3009
2963
|
};
|
|
3010
|
-
function
|
|
2964
|
+
function L(k) {
|
|
3011
2965
|
try {
|
|
3012
2966
|
return k === "" && c.location.href ? c.location.href : k;
|
|
3013
2967
|
} catch {
|
|
3014
2968
|
return k;
|
|
3015
2969
|
}
|
|
3016
2970
|
}
|
|
3017
|
-
if (p.open(g.method,
|
|
2971
|
+
if (p.open(g.method, L(g.url), !0), g.credentials === "include" ? p.withCredentials = !0 : g.credentials === "omit" && (p.withCredentials = !1), "responseType" in p && (h.blob ? p.responseType = "blob" : h.arrayBuffer && (p.responseType = "arraybuffer")), a && typeof a.headers == "object" && !(a.headers instanceof d || c.Headers && a.headers instanceof c.Headers)) {
|
|
3018
2972
|
var G = [];
|
|
3019
2973
|
Object.getOwnPropertyNames(a.headers).forEach(function(k) {
|
|
3020
|
-
G.push(m(k)), p.setRequestHeader(k,
|
|
2974
|
+
G.push(m(k)), p.setRequestHeader(k, A(a.headers[k]));
|
|
3021
2975
|
}), g.headers.forEach(function(k, H) {
|
|
3022
2976
|
G.indexOf(H) === -1 && p.setRequestHeader(H, k);
|
|
3023
2977
|
});
|
|
@@ -3025,32 +2979,32 @@ function Un() {
|
|
|
3025
2979
|
g.headers.forEach(function(k, H) {
|
|
3026
2980
|
p.setRequestHeader(H, k);
|
|
3027
2981
|
});
|
|
3028
|
-
g.signal && (g.signal.addEventListener("abort",
|
|
3029
|
-
p.readyState === 4 && g.signal.removeEventListener("abort",
|
|
2982
|
+
g.signal && (g.signal.addEventListener("abort", D), p.onreadystatechange = function() {
|
|
2983
|
+
p.readyState === 4 && g.signal.removeEventListener("abort", D);
|
|
3030
2984
|
}), p.send(typeof g._bodyInit > "u" ? null : g._bodyInit);
|
|
3031
2985
|
});
|
|
3032
2986
|
}
|
|
3033
|
-
return R.polyfill = !0, c.fetch || (c.fetch = R, c.Headers = d, c.Request =
|
|
2987
|
+
return R.polyfill = !0, c.fetch || (c.fetch = R, c.Headers = d, c.Request = N, c.Response = V), u.Headers = d, u.Request = N, u.Response = V, u.fetch = R, u;
|
|
3034
2988
|
})({});
|
|
3035
2989
|
})(t), t.fetch.ponyfill = !0, delete t.fetch.polyfill;
|
|
3036
|
-
var
|
|
3037
|
-
e =
|
|
2990
|
+
var n = r.fetch ? r : t;
|
|
2991
|
+
e = n.fetch, e.default = n.fetch, e.fetch = n.fetch, e.Headers = n.Headers, e.Request = n.Request, e.Response = n.Response, i.exports = e;
|
|
3038
2992
|
})(ue, ue.exports)), ue.exports;
|
|
3039
2993
|
}
|
|
3040
|
-
var
|
|
3041
|
-
const
|
|
3042
|
-
bookingPolicies: new
|
|
3043
|
-
bookings: new
|
|
3044
|
-
hotelImages: new
|
|
3045
|
-
hotelOfferRequests: new
|
|
3046
|
-
hotelOffers: new
|
|
3047
|
-
hotelRoomOfferRequests: new
|
|
3048
|
-
hotelRoomOffers: new
|
|
3049
|
-
hotelRoomingListGuests: new
|
|
3050
|
-
hotelRoomingLists: new
|
|
3051
|
-
hotels: new $
|
|
2994
|
+
var Nr = Ur();
|
|
2995
|
+
const Gr = /* @__PURE__ */ j(Nr), Hr = (i) => ({
|
|
2996
|
+
bookingPolicies: new kr(i),
|
|
2997
|
+
bookings: new _r(i),
|
|
2998
|
+
hotelImages: new Dr(i),
|
|
2999
|
+
hotelOfferRequests: new br(i),
|
|
3000
|
+
hotelOffers: new Ir(i),
|
|
3001
|
+
hotelRoomOfferRequests: new Br(i),
|
|
3002
|
+
hotelRoomOffers: new xr(i),
|
|
3003
|
+
hotelRoomingListGuests: new Lr(i),
|
|
3004
|
+
hotelRoomingLists: new Pr(i),
|
|
3005
|
+
hotels: new $r(i)
|
|
3052
3006
|
});
|
|
3053
|
-
function
|
|
3007
|
+
function Kr(i) {
|
|
3054
3008
|
switch (i) {
|
|
3055
3009
|
case ee.Production:
|
|
3056
3010
|
return "AUTH_TOKEN";
|
|
@@ -3062,16 +3016,17 @@ function Kn(i) {
|
|
|
3062
3016
|
return "AUTH_TOKEN_CICD";
|
|
3063
3017
|
case ee.Local:
|
|
3064
3018
|
return "AUTH_TOKEN_LOCAL";
|
|
3019
|
+
case void 0:
|
|
3065
3020
|
default:
|
|
3066
3021
|
return "AUTH_TOKEN";
|
|
3067
3022
|
}
|
|
3068
3023
|
}
|
|
3069
3024
|
function at(i) {
|
|
3070
3025
|
return !!(typeof document < "u" && document?.cookie && document.cookie.split(";").find(
|
|
3071
|
-
(t) => t.includes(
|
|
3026
|
+
(t) => t.includes(Kr(i))
|
|
3072
3027
|
));
|
|
3073
3028
|
}
|
|
3074
|
-
class
|
|
3029
|
+
class Fr {
|
|
3075
3030
|
constructor(e) {
|
|
3076
3031
|
this.config = e;
|
|
3077
3032
|
}
|
|
@@ -3080,7 +3035,7 @@ class Yn {
|
|
|
3080
3035
|
return e.init.mode = "cors", at(this.config.apiEnvironment) && (e.init.credentials = "include"), e;
|
|
3081
3036
|
}
|
|
3082
3037
|
}
|
|
3083
|
-
class
|
|
3038
|
+
class Yr {
|
|
3084
3039
|
constructor(e) {
|
|
3085
3040
|
this.config = e;
|
|
3086
3041
|
}
|
|
@@ -3092,7 +3047,7 @@ class Vn {
|
|
|
3092
3047
|
}), e;
|
|
3093
3048
|
}
|
|
3094
3049
|
}
|
|
3095
|
-
class
|
|
3050
|
+
class _n {
|
|
3096
3051
|
constructor(e) {
|
|
3097
3052
|
if (this.config = e, !e.apiVersion || !Object.values(Oe).includes(e.apiVersion))
|
|
3098
3053
|
throw new Error(
|
|
@@ -3100,27 +3055,27 @@ class Nr {
|
|
|
3100
3055
|
Object.values(Oe)
|
|
3101
3056
|
)}`
|
|
3102
3057
|
);
|
|
3103
|
-
let
|
|
3058
|
+
let r = {
|
|
3104
3059
|
"x-api-key": this.config.apiKey
|
|
3105
3060
|
};
|
|
3106
|
-
this.config.optionalHeaders && (
|
|
3107
|
-
...
|
|
3061
|
+
this.config.optionalHeaders && (r = {
|
|
3062
|
+
...r,
|
|
3108
3063
|
...this.config.optionalHeaders
|
|
3109
3064
|
});
|
|
3110
3065
|
const t = this.config.apiEnvironment;
|
|
3111
|
-
let
|
|
3112
|
-
t === ee.Local && process.env.BOOKING_API_BASE_URL && (
|
|
3066
|
+
let n = this.config.apiBaseUrl ?? Tt[t];
|
|
3067
|
+
t === ee.Local && process.env.BOOKING_API_BASE_URL && (n = process.env.BOOKING_API_BASE_URL);
|
|
3113
3068
|
const s = new it({
|
|
3114
|
-
basePath:
|
|
3115
|
-
fetchApi:
|
|
3116
|
-
headers:
|
|
3069
|
+
basePath: n,
|
|
3070
|
+
fetchApi: Gr,
|
|
3071
|
+
headers: r,
|
|
3117
3072
|
middleware: [
|
|
3118
|
-
new
|
|
3119
|
-
new
|
|
3073
|
+
new Fr(this.config),
|
|
3074
|
+
new Yr(this.config)
|
|
3120
3075
|
]
|
|
3121
3076
|
});
|
|
3122
3077
|
this.apiVersionsToClient = {
|
|
3123
|
-
v1:
|
|
3078
|
+
v1: Hr(s)
|
|
3124
3079
|
};
|
|
3125
3080
|
}
|
|
3126
3081
|
apiVersionsToClient;
|
|
@@ -3156,69 +3111,61 @@ class Nr {
|
|
|
3156
3111
|
}
|
|
3157
3112
|
}
|
|
3158
3113
|
export {
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
tr as AllowedPaymentMethodApiOneOf3NameEnum,
|
|
3162
|
-
nr as AllowedPaymentMethodApiOneOf3PayloadStatusEnum,
|
|
3163
|
-
Xn as AllowedPaymentMethodApiOneOfNameEnum,
|
|
3164
|
-
Nr as ApiClient,
|
|
3165
|
-
Mn as BASE_PATH,
|
|
3114
|
+
_n as ApiClient,
|
|
3115
|
+
Tr as BASE_PATH,
|
|
3166
3116
|
W as BaseAPI,
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
qn as COLLECTION_FORMATS,
|
|
3117
|
+
Zr as BlobApiResponse,
|
|
3118
|
+
Jr as BookingApiPayLaterEnum,
|
|
3119
|
+
Xr as BookingApiStatusEnum,
|
|
3120
|
+
kr as BookingPolicies,
|
|
3121
|
+
Qr as BookingPoliciesCreateApiLangEnum,
|
|
3122
|
+
_r as Bookings,
|
|
3123
|
+
Sn as BookingsSortByEnum,
|
|
3124
|
+
Rn as BookingsSortByOrderEnum,
|
|
3125
|
+
Vr as COLLECTION_FORMATS,
|
|
3177
3126
|
it as Configuration,
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
$
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
Er as
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
jn as exists,
|
|
3221
|
-
zn as mapValues,
|
|
3127
|
+
en as ContactPersonApiLangEnum,
|
|
3128
|
+
tn as ContactPersonApiSalutationEnum,
|
|
3129
|
+
rn as CountryIso2Code,
|
|
3130
|
+
nn as CurrencyBookingApiClient,
|
|
3131
|
+
on as ErrorApiResponseTypeEnum,
|
|
3132
|
+
Dr as HotelImages,
|
|
3133
|
+
Cn as HotelImagesLangEnum,
|
|
3134
|
+
br as HotelOfferRequests,
|
|
3135
|
+
Ir as HotelOffers,
|
|
3136
|
+
An as HotelOffersLangEnum,
|
|
3137
|
+
Tn as HotelOffersSortByEnum,
|
|
3138
|
+
Mn as HotelOffersSortByOrderEnum,
|
|
3139
|
+
an as HotelRoomOfferApiBreakfastOptionEnum,
|
|
3140
|
+
sn as HotelRoomOfferApiPackageTypeEnum,
|
|
3141
|
+
un as HotelRoomOfferApiStayTaxesInfoEnum,
|
|
3142
|
+
cn as HotelRoomOfferApiTypeEnum,
|
|
3143
|
+
Br as HotelRoomOfferRequests,
|
|
3144
|
+
xr as HotelRoomOffers,
|
|
3145
|
+
ln as HotelRoomOffersCreateApiLangEnum,
|
|
3146
|
+
En as HotelRoomOffersLangEnum,
|
|
3147
|
+
Lr as HotelRoomingListGuests,
|
|
3148
|
+
Pr as HotelRoomingLists,
|
|
3149
|
+
On as HotelRoomingListsLangEnum,
|
|
3150
|
+
$r as Hotels,
|
|
3151
|
+
kn as HotelsLangEnum,
|
|
3152
|
+
fn as InvoiceApiTypeEnum,
|
|
3153
|
+
$ as JSONApiResponse,
|
|
3154
|
+
hn as PaymentMethodApiOneOf1NameEnum,
|
|
3155
|
+
pn as PaymentMethodApiOneOf2NameEnum,
|
|
3156
|
+
dn as PaymentMethodApiOneOfNameEnum,
|
|
3157
|
+
mn as PaymentMethodRequestApiNameEnum,
|
|
3158
|
+
yn as PollerStatus,
|
|
3159
|
+
U as RequiredError,
|
|
3160
|
+
Er as ResponseError,
|
|
3161
|
+
gn as SourceMarket,
|
|
3162
|
+
wn as TaxApiTaxFrequencyEnum,
|
|
3163
|
+
vn as TaxApiTaxModeEnum,
|
|
3164
|
+
Or as TextApiResponse,
|
|
3165
|
+
Wr as VoidApiResponse,
|
|
3166
|
+
zr as canConsumeForm,
|
|
3167
|
+
qr as exists,
|
|
3168
|
+
jr as mapValues,
|
|
3222
3169
|
ot as querystring,
|
|
3223
|
-
|
|
3170
|
+
Hr as v1ApiClient
|
|
3224
3171
|
};
|