@konnectio/core 4.0.5 → 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (197) hide show
  1. package/dist/{ActionField-0c047379.mjs → ActionField-5ecfc9dc.js} +26 -28
  2. package/dist/ActionField-5ecfc9dc.js.br +0 -0
  3. package/dist/ActionField-ae9b1adf.cjs +1 -0
  4. package/dist/HotelAvailabilityForm-0cd1abda.cjs +1 -0
  5. package/dist/{HotelAvailabilityForm-29f12395.mjs → HotelAvailabilityForm-a7b6f17e.js} +23 -25
  6. package/dist/HotelAvailabilityForm-a7b6f17e.js.br +0 -0
  7. package/dist/NumberField.vue_vue_type_style_index_0_lang-0b6d48f1.cjs +793 -0
  8. package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js +16403 -0
  9. package/dist/NumberField.vue_vue_type_style_index_0_lang-ab747739.js.br +0 -0
  10. package/dist/{ReCaptchaVuePlugin-616ef9b9.mjs → ReCaptchaVuePlugin-05b8ec39.js} +2 -3
  11. package/dist/ReCaptchaVuePlugin-05b8ec39.js.br +0 -0
  12. package/dist/ReCaptchaVuePlugin-08ee5d62.cjs +1 -0
  13. package/dist/{SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs → SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js} +1020 -1022
  14. package/dist/SelectField.vue_vue_type_style_index_0_lang-5bdd7db9.js.br +0 -0
  15. package/dist/{SelectField.vue_vue_type_style_index_0_lang-18843626.js → SelectField.vue_vue_type_style_index_0_lang-5f1087dc.cjs} +16 -17
  16. package/dist/{ThankYou-f6205791.mjs → ThankYou-1866d8db.js} +2853 -2825
  17. package/dist/ThankYou-1866d8db.js.br +0 -0
  18. package/dist/ThankYou-5741bcb6.cjs +15 -0
  19. package/dist/{_commonjsHelpers-6763f629.js → _commonjsHelpers-6763f629.cjs} +0 -1
  20. package/dist/{_commonjsHelpers-c5d32002.mjs → _commonjsHelpers-aeeeeb92.js} +2 -3
  21. package/dist/{applyGiftCard-02342491.mjs → applyGiftCard-c5e4aaad.js} +12 -14
  22. package/dist/applyGiftCard-c5e4aaad.js.br +0 -0
  23. package/dist/applyGiftCard-d9ab3dcf.cjs +1 -0
  24. package/dist/assets/typescript/mixins.d.ts +36 -0
  25. package/dist/availability.cjs.js +1 -2
  26. package/dist/availability.cjs.js.br +0 -0
  27. package/dist/availability.d.ts +3 -0
  28. package/dist/availability.es.js +31 -30
  29. package/dist/availability.es.js.br +0 -0
  30. package/dist/components/Alert.vue.d.ts +5 -0
  31. package/dist/components/Alert.vue.d.ts.map +1 -0
  32. package/dist/components/Clickable.vue.d.ts +5 -0
  33. package/dist/components/Clickable.vue.d.ts.map +1 -0
  34. package/dist/components/GoogleNotice.vue.d.ts +4 -0
  35. package/dist/components/GoogleNotice.vue.d.ts.map +1 -0
  36. package/dist/components/Icon.vue.d.ts +5 -0
  37. package/dist/components/Icon.vue.d.ts.map +1 -0
  38. package/dist/components/Loading.vue.d.ts +5 -0
  39. package/dist/components/Loading.vue.d.ts.map +1 -0
  40. package/dist/components/LoadingBlock.vue.d.ts +4 -0
  41. package/dist/components/LoadingBlock.vue.d.ts.map +1 -0
  42. package/dist/components/forms/EventAvailabilityForm.vue.d.ts +5 -0
  43. package/dist/components/forms/EventAvailabilityForm.vue.d.ts.map +1 -0
  44. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts +5 -0
  45. package/dist/components/forms/HotelAvailabilityForm.vue.d.ts.map +1 -0
  46. package/dist/components/forms/MultiStepForm.vue.d.ts +5 -0
  47. package/dist/components/forms/MultiStepForm.vue.d.ts.map +1 -0
  48. package/dist/components/forms/ReservationForm.vue.d.ts +5 -0
  49. package/dist/components/forms/ReservationForm.vue.d.ts.map +1 -0
  50. package/dist/components/inputs/Checkbox.vue.d.ts +5 -0
  51. package/dist/components/inputs/Checkbox.vue.d.ts.map +1 -0
  52. package/dist/components/inputs/DateField.vue.d.ts +5 -0
  53. package/dist/components/inputs/DateField.vue.d.ts.map +1 -0
  54. package/dist/components/inputs/InputField.vue.d.ts +5 -0
  55. package/dist/components/inputs/InputField.vue.d.ts.map +1 -0
  56. package/dist/components/inputs/MediaSelector.vue.d.ts +5 -0
  57. package/dist/components/inputs/MediaSelector.vue.d.ts.map +1 -0
  58. package/dist/components/inputs/NumberField.vue.d.ts +5 -0
  59. package/dist/components/inputs/NumberField.vue.d.ts.map +1 -0
  60. package/dist/components/inputs/SelectField.vue.d.ts +5 -0
  61. package/dist/components/inputs/SelectField.vue.d.ts.map +1 -0
  62. package/dist/components/inputs/TextField.vue.d.ts +5 -0
  63. package/dist/components/inputs/TextField.vue.d.ts.map +1 -0
  64. package/dist/components/inputs/TimeField.vue.d.ts +5 -0
  65. package/dist/components/inputs/TimeField.vue.d.ts.map +1 -0
  66. package/dist/components/inputs/grouped/ActionField.vue.d.ts +5 -0
  67. package/dist/components/inputs/grouped/ActionField.vue.d.ts.map +1 -0
  68. package/dist/components/inputs/grouped/CountryField.vue.d.ts +5 -0
  69. package/dist/components/inputs/grouped/CountryField.vue.d.ts.map +1 -0
  70. package/dist/components/inputs/grouped/NameField.vue.d.ts +5 -0
  71. package/dist/components/inputs/grouped/NameField.vue.d.ts.map +1 -0
  72. package/dist/components/inputs/grouped/PhoneField.vue.d.ts +5 -0
  73. package/dist/components/inputs/grouped/PhoneField.vue.d.ts.map +1 -0
  74. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts +4 -0
  75. package/dist/components/inputs/grouped/RoomConfigField.vue.d.ts.map +1 -0
  76. package/dist/components/listings/Base.vue.d.ts +6 -0
  77. package/dist/components/listings/Base.vue.d.ts.map +1 -0
  78. package/dist/components/listings/Event.vue.d.ts +5 -0
  79. package/dist/components/listings/Event.vue.d.ts.map +1 -0
  80. package/dist/components/listings/Test.vue.d.ts +5 -0
  81. package/dist/components/listings/Test.vue.d.ts.map +1 -0
  82. package/dist/components/modals/Base.vue.d.ts +5 -0
  83. package/dist/components/modals/Base.vue.d.ts.map +1 -0
  84. package/dist/components/modals/Info.vue.d.ts +5 -0
  85. package/dist/components/modals/Info.vue.d.ts.map +1 -0
  86. package/dist/components/modals/Terms.vue.d.ts +4 -0
  87. package/dist/components/modals/Terms.vue.d.ts.map +1 -0
  88. package/dist/components/side-panels/Base.vue.d.ts +5 -0
  89. package/dist/components/side-panels/Base.vue.d.ts.map +1 -0
  90. package/dist/components/side-panels/Hotel.vue.d.ts +4 -0
  91. package/dist/components/side-panels/Hotel.vue.d.ts.map +1 -0
  92. package/dist/components/views/CheckoutWindow.vue.d.ts +5 -0
  93. package/dist/components/views/CheckoutWindow.vue.d.ts.map +1 -0
  94. package/dist/components/views/TermsOfService.vue.d.ts +5 -0
  95. package/dist/components/views/TermsOfService.vue.d.ts.map +1 -0
  96. package/dist/components/views/ThankYou.vue.d.ts +5 -0
  97. package/dist/components/views/ThankYou.vue.d.ts.map +1 -0
  98. package/dist/entries/availability.d.ts +2 -0
  99. package/dist/entries/event.d.ts +2 -0
  100. package/dist/entries/gift-card-validation.d.ts +2 -0
  101. package/dist/entries/gift-card.d.ts +2 -0
  102. package/dist/entries/hotel.d.ts +2 -0
  103. package/dist/entries/navigation.d.ts +1 -0
  104. package/dist/entries/polyfill.d.ts +0 -0
  105. package/dist/event-39706438.cjs +1 -0
  106. package/dist/{event-cc266121.mjs → event-a70cffeb.js} +48 -47
  107. package/dist/event-a70cffeb.js.br +0 -0
  108. package/dist/event.cjs.js +1 -2
  109. package/dist/event.cjs.js.br +0 -0
  110. package/dist/event.d.ts +3 -0
  111. package/dist/event.es.js +175 -174
  112. package/dist/event.es.js.br +0 -0
  113. package/dist/gift-card-validation.cjs.js +1 -2
  114. package/dist/gift-card-validation.cjs.js.br +0 -0
  115. package/dist/gift-card-validation.d.ts +3 -0
  116. package/dist/gift-card-validation.es.js +54 -53
  117. package/dist/gift-card-validation.es.js.br +0 -0
  118. package/dist/gift-card.cjs.js +1 -2
  119. package/dist/gift-card.cjs.js.br +0 -0
  120. package/dist/gift-card.d.ts +3 -0
  121. package/dist/gift-card.es.js +90 -89
  122. package/dist/gift-card.es.js.br +0 -0
  123. package/dist/hotel.cjs.js +5 -6
  124. package/dist/hotel.cjs.js.br +0 -0
  125. package/dist/hotel.d.ts +3 -0
  126. package/dist/hotel.es.js +298 -298
  127. package/dist/hotel.es.js.br +0 -0
  128. package/dist/{index-30f70976.mjs → index-00262c16.js} +64 -69
  129. package/dist/index-00262c16.js.br +0 -0
  130. package/dist/index-58f3b0cc.cjs +1 -0
  131. package/dist/layouts/Availability.vue.d.ts +244 -0
  132. package/dist/layouts/Event.vue.d.ts +244 -0
  133. package/dist/layouts/GiftCard.vue.d.ts +252 -0
  134. package/dist/layouts/GiftCardValidation.vue.d.ts +228 -0
  135. package/dist/layouts/Hotel.vue.d.ts +277 -0
  136. package/dist/layouts/_.vue.d.ts +30 -0
  137. package/dist/navigation.cjs.js +1 -2
  138. package/dist/navigation.d.ts +1 -0
  139. package/dist/navigation.es.js +1 -59
  140. package/dist/{payment-b3022c46.mjs → payment-9e219e9b.js} +221 -223
  141. package/dist/payment-9e219e9b.js.br +0 -0
  142. package/dist/{payment-bfd660a7.js → payment-fbffaa6d.cjs} +2 -3
  143. package/dist/plugins/i18n.d.ts +5 -0
  144. package/dist/polyfill.cjs.js +2 -3
  145. package/dist/polyfill.cjs.js.br +0 -0
  146. package/dist/polyfill.d.ts +1 -0
  147. package/dist/polyfill.es.js +2 -4
  148. package/dist/polyfill.es.js.br +0 -0
  149. package/dist/store/alert.d.ts +28 -0
  150. package/dist/store/applyGiftCard.d.ts +28 -0
  151. package/dist/store/availability.d.ts +37 -0
  152. package/dist/store/event.d.ts +683 -0
  153. package/dist/store/giftCard.d.ts +80 -0
  154. package/dist/store/hotel.d.ts +662 -0
  155. package/dist/store/payment.d.ts +133 -0
  156. package/dist/store/recaptcha.d.ts +1 -0
  157. package/dist/store/tracking.d.ts +24 -0
  158. package/dist/store/utilities.d.ts +317 -0
  159. package/dist/style.css +1 -1
  160. package/dist/style.css.br +0 -0
  161. package/dist/types/index.d.ts +868 -0
  162. package/package.json +27 -11
  163. package/dist/ActionField-0c047379.mjs.br +0 -0
  164. package/dist/ActionField-3640689b.js +0 -2
  165. package/dist/ActionField-3640689b.js.br +0 -0
  166. package/dist/Clickable-386eceb6.mjs +0 -12390
  167. package/dist/Clickable-386eceb6.mjs.br +0 -0
  168. package/dist/Clickable-77afc133.js +0 -768
  169. package/dist/Clickable-77afc133.js.br +0 -0
  170. package/dist/HotelAvailabilityForm-29f12395.mjs.br +0 -0
  171. package/dist/HotelAvailabilityForm-89ba629d.js +0 -2
  172. package/dist/HotelAvailabilityForm-89ba629d.js.br +0 -0
  173. package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs +0 -4027
  174. package/dist/NumberField.vue_vue_type_style_index_0_lang-99de44b7.mjs.br +0 -0
  175. package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js +0 -28
  176. package/dist/NumberField.vue_vue_type_style_index_0_lang-e8efabad.js.br +0 -0
  177. package/dist/ReCaptchaVuePlugin-0988d77f.js +0 -2
  178. package/dist/ReCaptchaVuePlugin-0988d77f.js.br +0 -0
  179. package/dist/ReCaptchaVuePlugin-616ef9b9.mjs.br +0 -0
  180. package/dist/SelectField.vue_vue_type_style_index_0_lang-18843626.js.br +0 -0
  181. package/dist/SelectField.vue_vue_type_style_index_0_lang-a45312d1.mjs.br +0 -0
  182. package/dist/ThankYou-1096ca5a.js +0 -16
  183. package/dist/ThankYou-1096ca5a.js.br +0 -0
  184. package/dist/ThankYou-f6205791.mjs.br +0 -0
  185. package/dist/applyGiftCard-02342491.mjs.br +0 -0
  186. package/dist/applyGiftCard-e24bae0c.js +0 -2
  187. package/dist/applyGiftCard-e24bae0c.js.br +0 -0
  188. package/dist/event-cc266121.mjs.br +0 -0
  189. package/dist/event-d580e6e8.js +0 -2
  190. package/dist/event-d580e6e8.js.br +0 -0
  191. package/dist/index-30f70976.mjs.br +0 -0
  192. package/dist/index-4e9533a9.js +0 -2
  193. package/dist/index-4e9533a9.js.br +0 -0
  194. package/dist/navigation.cjs.js.br +0 -0
  195. package/dist/navigation.es.js.br +0 -0
  196. package/dist/payment-b3022c46.mjs.br +0 -0
  197. package/dist/payment-bfd660a7.js.br +0 -0
@@ -0,0 +1,868 @@
1
+ export type Translatable = string;
2
+ export type Timer = undefined | number;
3
+ export type Name = [number, string];
4
+ export type metaDataType = 'none' | 'event' | 'gift-card' | 'hotel';
5
+ export interface Time {
6
+ hours: number | string;
7
+ minutes: number | string;
8
+ seconds?: number | string;
9
+ }
10
+ export interface Base64Image {
11
+ base64: string;
12
+ type: string;
13
+ name: string;
14
+ }
15
+ export interface ReepayObject {
16
+ html_element: string;
17
+ }
18
+ export declare const enum ReepayEvent {
19
+ Accept = 0,
20
+ Error = 1,
21
+ Cancel = 2,
22
+ Close = 3,
23
+ Open = 4,
24
+ CheckResult = 5
25
+ }
26
+ export declare namespace Reepay {
27
+ class EmbeddedCheckout {
28
+ constructor(SessionId: string, ReepayObject: ReepayObject);
29
+ addEventHandler(eventName: ReepayEvent, callback: () => void): void;
30
+ }
31
+ }
32
+ export declare const enum Layout {
33
+ Selective = "selective",
34
+ Wholesale = "wholesale"
35
+ }
36
+ export declare const enum SupportedLanguages {
37
+ Danish = "da",
38
+ English = "en",
39
+ German = "de",
40
+ Swedish = "se",
41
+ Norwegian = "no",
42
+ French = "fr",
43
+ Turkish = "tr",
44
+ Spanish = "es",
45
+ Italian = "it"
46
+ }
47
+ export declare enum QuantityStrategy {
48
+ Invalid = 0,
49
+ PerUnit = 1,
50
+ PerPerson = 2,
51
+ PerAdult = 3,
52
+ PerChild = 4,
53
+ PerNight = 5,
54
+ PerPersonPerNight = 6,
55
+ PerAdultPerNight = 7,
56
+ PerChildPerNight = 8,
57
+ Consumption = 9,
58
+ EarlyCheckIn = 10,
59
+ EarlyCheckOut = 11,
60
+ OneTimePayment = 12
61
+ }
62
+ export declare const enum OctopusCardinality {
63
+ Invalid = 0,
64
+ Mandatory = 1,
65
+ OptionalSingle = 2,
66
+ OptionalMultiple = 3,
67
+ DefaultSingle = 4
68
+ }
69
+ export declare enum PaymentGateway {
70
+ None = 0,
71
+ AskForCreditCard = 2,
72
+ Stripe = 18,
73
+ DIBS = 47,
74
+ EasyPay = 56,
75
+ ReePay = 57
76
+ }
77
+ export interface DibsCheckout {
78
+ on(key: string, callback: () => void): void;
79
+ send(key: string, success: boolean): void;
80
+ }
81
+ export interface GTagItem {
82
+ brand?: string;
83
+ category?: string;
84
+ creative_name?: string;
85
+ creative_slot?: string;
86
+ id?: string;
87
+ location_id?: string;
88
+ name?: string;
89
+ price?: string | number;
90
+ quantity?: number;
91
+ }
92
+ export interface RecaptchaResponse {
93
+ success: boolean;
94
+ }
95
+ export interface WPAuth {
96
+ nonce: string;
97
+ url: string;
98
+ }
99
+ export interface TranslationDB {
100
+ iso: string;
101
+ message: string;
102
+ }
103
+ export interface KeyString {
104
+ [key: string]: string;
105
+ }
106
+ export interface KeyQuantity {
107
+ [key: string]: number;
108
+ }
109
+ export interface KeyBoolean {
110
+ [key: string]: boolean;
111
+ }
112
+ export interface giftCard {
113
+ voucher: string;
114
+ amount: number;
115
+ }
116
+ export interface Translation {
117
+ [key: string]: string;
118
+ }
119
+ export interface Translations {
120
+ [key: string]: Translation;
121
+ }
122
+ export interface KeyValue {
123
+ [key: string]: string | number;
124
+ }
125
+ export interface HashMap {
126
+ [key: number]: string;
127
+ }
128
+ export interface SchemaField {
129
+ label: string;
130
+ key: string;
131
+ description?: string;
132
+ locale?: string;
133
+ type?: string;
134
+ }
135
+ export interface SchemaGroup {
136
+ title: string;
137
+ group: Array<SchemaField>;
138
+ }
139
+ export interface Alert {
140
+ message: Translatable;
141
+ type: string;
142
+ status: string;
143
+ timer: number | undefined;
144
+ domain: string;
145
+ }
146
+ export interface Option {
147
+ [key: string]: string | number | null;
148
+ }
149
+ export interface Offer {
150
+ adultsMin: number;
151
+ adultsMax: number;
152
+ adultsRange: number | string;
153
+ childrenMin?: number;
154
+ childrenMax?: number;
155
+ childrenRange?: number | string;
156
+ hasChildren: boolean;
157
+ maximumOccupants?: number;
158
+ }
159
+ export interface HTTPParams {
160
+ hotelName: string;
161
+ language: string;
162
+ }
163
+ export interface HTTPHeaders {
164
+ Authorization: string;
165
+ }
166
+ export interface HTTPConfig {
167
+ params: HTTPParams;
168
+ headers?: HTTPHeaders;
169
+ }
170
+ export interface ModalStyling {
171
+ headerColor: string;
172
+ fontColor: string;
173
+ fontSize: string;
174
+ fontFamily: string;
175
+ panelPadding: string;
176
+ }
177
+ export interface WPSettings {
178
+ maximumNightsAvailable: string;
179
+ enableTracking: string;
180
+ googleApiKey: string;
181
+ recaptchaSiteKey: string;
182
+ recaptchaSecretKey: string;
183
+ maxAdultAmount: string;
184
+ maxChildAmount: string;
185
+ firstSelectableDateOffset: string;
186
+ lastSelectableDateOffset: string;
187
+ disableAdultSelection: string;
188
+ disableArrivalUserSelection: string;
189
+ disableChildSelection: string;
190
+ disableDepartureUserSelection: string;
191
+ bookingUri: string;
192
+ hideTitle: string;
193
+ headerHeight: string;
194
+ arrivalDefault: string;
195
+ arrivalEarliest: string;
196
+ arrivalLatest: string;
197
+ departureDefault: string;
198
+ departureEarliest: string;
199
+ departureLatest: string;
200
+ hideArrivalDepartureInputs: string;
201
+ disableNamePrefix: string;
202
+ disableGiftCardVoucher: string;
203
+ enablePackages: string;
204
+ disablePricesFrom: string;
205
+ hideAvailableRoomAmount: string;
206
+ hideEvents: string;
207
+ hideEventTemplates: string;
208
+ disableNewsletterSignup: string;
209
+ disableTravelingFor: string;
210
+ disableCompanyField: string;
211
+ }
212
+ export interface WPPages {
213
+ [id: number]: string;
214
+ }
215
+ export interface AvailabilityData {
216
+ adults: number;
217
+ children: number;
218
+ arrivalDate: string;
219
+ departureDate: string;
220
+ }
221
+ export interface AvailabilityStyling {
222
+ panelBackground: string;
223
+ panelPadding: string;
224
+ panelBorder: string | null;
225
+ panelBorderRadius: string;
226
+ inputBorder: string;
227
+ inputBackground: string;
228
+ inputBorderRadius: string;
229
+ headerColor: string;
230
+ headerFontSize: string;
231
+ labelFontWeight: string;
232
+ labelPadding: string;
233
+ buttonTextTransform: string;
234
+ buttonFontFamily: string;
235
+ buttonBackground: string;
236
+ buttonColor: string;
237
+ buttonBorderRadius: string;
238
+ buttonFontWeight: string;
239
+ buttonFontSize: string;
240
+ buttonBorder: string;
241
+ accentColor: string;
242
+ accentSecondaryColor: string;
243
+ fontFamily: string;
244
+ fontSize: string;
245
+ fontColor: string;
246
+ linkColor: string;
247
+ calendarWeekendColor: string;
248
+ calendarHighlightedColor: string;
249
+ }
250
+ export interface BookingStyling {
251
+ panelBackground: string;
252
+ panelPadding: string;
253
+ panelBorder: string | null;
254
+ panelBorderRadius: string;
255
+ inputBorder: string;
256
+ inputBackground: string;
257
+ inputBorderRadius: string;
258
+ labelFontWeight: string;
259
+ labelPadding: string;
260
+ headerColor: string;
261
+ buttonTextTransform: string;
262
+ buttonFontFamily: string;
263
+ buttonBackground: string;
264
+ buttonColor: string;
265
+ buttonBorderRadius: string;
266
+ buttonFontWeight: string;
267
+ buttonFontSize: string;
268
+ accentColor: string;
269
+ accentSecondaryColor: string;
270
+ fontFamily: string;
271
+ fontSize: string;
272
+ fontColor: string;
273
+ grayColor: string;
274
+ loadingColor: string;
275
+ successColor: string;
276
+ dangerColor: string;
277
+ calendarWeekendColor: string;
278
+ calendarHighlightedColor: string;
279
+ }
280
+ export declare enum BookingLayout {
281
+ Selective = "selective",
282
+ Wholesale = "wholesale",
283
+ Simplified = "simplified",
284
+ Template = "template",
285
+ Event = "event"
286
+ }
287
+ export declare enum BookingHeaderLayout {
288
+ Default = "default",
289
+ Minimal = "minimal"
290
+ }
291
+ export interface ButtonStyling {
292
+ textTransform: string;
293
+ fontFamily: string;
294
+ background: string;
295
+ color: string;
296
+ borderRadius: string;
297
+ fontWeight: string;
298
+ fontSize: string;
299
+ }
300
+ export interface GuestData {
301
+ name: string;
302
+ email: string;
303
+ firmName: string | null;
304
+ phone: string;
305
+ country: string;
306
+ address1: string;
307
+ postal: string | number;
308
+ city: string;
309
+ }
310
+ export interface Step {
311
+ id: string;
312
+ label?: Translatable;
313
+ buttonLabel?: Translatable;
314
+ icon?: string;
315
+ validation?: boolean;
316
+ hidden?: boolean;
317
+ }
318
+ export interface OctopusFacility {
319
+ readonly facilityID: number;
320
+ readonly id: number;
321
+ readonly isTopFacility: boolean;
322
+ readonly name: string;
323
+ }
324
+ export interface FacilityGroup {
325
+ [key: string]: Array<RoomFacility>;
326
+ }
327
+ export interface OctopusHotelImage {
328
+ readonly imageUrl: string;
329
+ }
330
+ export interface OctopusOfferGuest {
331
+ name: string;
332
+ email: string;
333
+ phone: string;
334
+ }
335
+ export interface OctopusOfferRoom {
336
+ id: number;
337
+ checkOutTime: string;
338
+ roomName: string;
339
+ totalPrice: number;
340
+ leaveDate: string;
341
+ arriveDate: string;
342
+ }
343
+ export interface OctopusOfferOrderLineSummary {
344
+ productName: string;
345
+ quantity: number;
346
+ totalPrice: number;
347
+ unitPrice: number;
348
+ }
349
+ export interface OctopusOffer {
350
+ id: number;
351
+ guest: OctopusOfferGuest;
352
+ totalVAT: number;
353
+ totalPrice: number;
354
+ offerDate: string;
355
+ adults: number;
356
+ children: number;
357
+ uniqueID: string;
358
+ orderLinesSummary: Array<OctopusOfferOrderLineSummary>;
359
+ rooms: Array<OctopusOfferRoom>;
360
+ }
361
+ export interface EasyPayment {
362
+ checkoutSecretKey: string;
363
+ paymentID: string;
364
+ }
365
+ interface Error {
366
+ [key: string]: Array<string>;
367
+ }
368
+ export interface OctopusCreateReservationResponse {
369
+ offer: OctopusOffer;
370
+ easyPayment?: EasyPayment;
371
+ error?: Error;
372
+ }
373
+ export interface OctopusGuest {
374
+ travellingFor?: string;
375
+ title?: Translatable;
376
+ guestID: number;
377
+ name: string;
378
+ email: string;
379
+ firmName?: string;
380
+ phone: string;
381
+ country?: string;
382
+ address1?: string;
383
+ postal?: string;
384
+ city?: string;
385
+ newsmails: boolean;
386
+ }
387
+ export interface OctopusSelectedRoom {
388
+ templateID?: number;
389
+ roomGroupID: number;
390
+ ratePlanID: number | null;
391
+ adultsCount: number;
392
+ childrenCount: number;
393
+ guest: OctopusGuest;
394
+ roomAddons?: Array<RoomAddon>;
395
+ }
396
+ export interface SelectedRoom {
397
+ roomName: string;
398
+ roomGroupID: number;
399
+ ratePlanID: number;
400
+ children: number;
401
+ adults: number;
402
+ guestName: string;
403
+ guestNameTitle: number;
404
+ guestEmail: string;
405
+ guestPhone: string;
406
+ }
407
+ export interface SelectedRoomPreview {
408
+ name: string;
409
+ roomGroupID: number;
410
+ ratePlanID: number;
411
+ adults: number;
412
+ children: number;
413
+ amount: number;
414
+ index?: number;
415
+ price: number;
416
+ }
417
+ export interface OctopusOccupant {
418
+ occupantRates: Array<OctopusOccupantRate>;
419
+ readonly ratePlan: OctopusRatePlan;
420
+ }
421
+ export interface OctopusRatePlan {
422
+ readonly extraAdultRate: number;
423
+ readonly extraChildRate: number;
424
+ readonly id: number;
425
+ readonly roomGroupID: number;
426
+ readonly roomGroupRatePlanID: number;
427
+ readonly maximumOccupants: number;
428
+ readonly ratePlanID: number;
429
+ }
430
+ export interface OctopusOccupantRate {
431
+ readonly uid: string;
432
+ readonly adultsCount: number;
433
+ readonly childrenCount: number;
434
+ readonly price: number;
435
+ readonly ratePlanID: number;
436
+ readonly roomGroupID: number;
437
+ readonly rooms: number;
438
+ readonly totalPrice: number;
439
+ }
440
+ export interface OctopusHotelRackRate {
441
+ breakfastIncluded: boolean;
442
+ cancellationHourLimit: number;
443
+ extraAdultRate: number;
444
+ extraChildRate: number;
445
+ extraInfantRate: number;
446
+ id: number;
447
+ includedOccupants: number;
448
+ isDefault: boolean;
449
+ maximumAdults: number;
450
+ maximumChildren: number;
451
+ maximumInfants: number;
452
+ maximumOccupants: number;
453
+ name: string;
454
+ rackRate: number;
455
+ roomGroupID: number;
456
+ roomGroupName: string;
457
+ roomGroupRatePlanID: number;
458
+ showOnBookingForm: boolean;
459
+ showOnOnlineBooking: boolean;
460
+ occupantRates?: Array<OctopusOccupantRate>;
461
+ }
462
+ export interface OctopusRoomGroup {
463
+ readonly name: string;
464
+ readonly roomGroupId: number;
465
+ readonly available: number;
466
+ readonly description: string;
467
+ occupantRates?: Array<OctopusOccupantRate>;
468
+ }
469
+ export interface OctopusAvailableRoomGroup {
470
+ readonly extraPrice: number;
471
+ readonly isDefault: boolean;
472
+ readonly roomGroupID: number;
473
+ readonly roomGroupName: string;
474
+ readonly totalPrice: number;
475
+ }
476
+ export interface OctopusTemplate {
477
+ readonly description: string;
478
+ readonly id: number;
479
+ readonly templateRoomGroups: Array<OctopusAvailableRoomGroup>;
480
+ readonly name: string;
481
+ readonly imageUrl?: string;
482
+ readonly weekendFee: number;
483
+ }
484
+ interface OctopusNextAvailableDate {
485
+ fromDate: string;
486
+ toDate: string;
487
+ roomCount: number;
488
+ priceStartFrom: number;
489
+ }
490
+ export interface OctopusListing {
491
+ readonly roomGroups: Array<FreshBookingRoom>;
492
+ readonly templates: Array<OctopusTemplate>;
493
+ readonly nextAvailableDates: Array<OctopusNextAvailableDate>;
494
+ }
495
+ export interface AvailableRoomAddon {
496
+ [key: number]: Array<RoomAddon>;
497
+ }
498
+ export interface RoomAddon {
499
+ addonID: number;
500
+ cardinality?: number;
501
+ id: number;
502
+ maximumNumber?: number;
503
+ name?: string;
504
+ price?: number;
505
+ quantity: number;
506
+ quantityStrategy?: number;
507
+ }
508
+ export interface RoomGroupImage {
509
+ readonly imageUrl: string;
510
+ readonly roomGroupID: number;
511
+ }
512
+ export interface RoomGroupFacility {
513
+ readonly facilityID: number;
514
+ readonly isTopFacility: boolean;
515
+ readonly roomGroupID: number;
516
+ }
517
+ export interface OctopusHotelImage {
518
+ readonly imageUrl: string;
519
+ }
520
+ export interface OctopusFacility {
521
+ readonly facilityTypeID: number;
522
+ readonly parentFacilityTypeID?: number;
523
+ readonly id: number;
524
+ readonly facilityTypeName: string;
525
+ readonly name: string;
526
+ }
527
+ export interface OctopusSettings {
528
+ readonly roomGroupImages: Array<RoomGroupImage>;
529
+ readonly roomGroupFacilities: Array<RoomGroupFacility>;
530
+ readonly hotelImages: Array<OctopusHotelImage>;
531
+ readonly hotelName: string;
532
+ }
533
+ export interface OctopusDetails {
534
+ readonly automaticRoomPlacement: boolean;
535
+ readonly currencyID: number;
536
+ readonly requireDeposit: boolean;
537
+ }
538
+ export interface OctopusCountry {
539
+ readonly id: number;
540
+ readonly name: string;
541
+ readonly isO2Code: string;
542
+ }
543
+ interface Currency {
544
+ id: number;
545
+ currencyCode: string;
546
+ name: string;
547
+ }
548
+ export interface RoomImage {
549
+ '1x': string;
550
+ '2x': string;
551
+ thumb: string;
552
+ roomGroupID: number;
553
+ }
554
+ export interface RoomFacility {
555
+ name: string;
556
+ category: string;
557
+ categoryID: number;
558
+ roomGroupID: number;
559
+ }
560
+ export interface FreshBookingImage {
561
+ large: string | null;
562
+ medium: string | null;
563
+ thumb: string | null;
564
+ url: string;
565
+ }
566
+ export interface Country {
567
+ id: number;
568
+ iso: string;
569
+ name: string;
570
+ }
571
+ interface HotelAddon {
572
+ id: number;
573
+ maximumNumber: number;
574
+ name: string;
575
+ price: number;
576
+ }
577
+ export interface HotelSubFacility {
578
+ name: string;
579
+ }
580
+ export interface HotelFacility {
581
+ name: string;
582
+ icon: string | null;
583
+ subFacilities: HotelSubFacility[];
584
+ }
585
+ interface HotelOccupantRate {
586
+ adultsCount: number;
587
+ childrenCount: number;
588
+ hasBreakfast: boolean;
589
+ includedOccupants: number;
590
+ index: number;
591
+ occupants: number;
592
+ price: number;
593
+ priceWithOutAddons: number;
594
+ ratePlanID: number;
595
+ roomGroupID: number;
596
+ rooms: number;
597
+ totalPrice: number;
598
+ }
599
+ export interface HotelRate {
600
+ cancellationHourLimit: number;
601
+ extraAdultRate: number;
602
+ extraChildrenRate: number;
603
+ id: number;
604
+ includedOccupants: number;
605
+ isBreakfastIncluded: boolean;
606
+ isDefault: boolean;
607
+ maximumAdults: number;
608
+ maximumChildren: number;
609
+ maximumOccupants: number;
610
+ name: string;
611
+ occupantRates: HotelOccupantRate[];
612
+ occupantRateIndex: number | null;
613
+ rackRate: number;
614
+ }
615
+ export interface FreshBookingRoom {
616
+ addons: HotelAddon[];
617
+ description: string | null;
618
+ facilities: HotelFacility[];
619
+ id: number;
620
+ images: FreshBookingImage[];
621
+ rates: HotelRate[];
622
+ title: string;
623
+ }
624
+ export interface OctopusMetaData {
625
+ country: Country;
626
+ countries: Array<Country>;
627
+ name: string;
628
+ currency: Currency;
629
+ hotelImages: Array<FreshBookingImage>;
630
+ shortDescription: string;
631
+ longDescription: string;
632
+ paymentGatewayId: PaymentGateway;
633
+ termsOfService: string;
634
+ website: string;
635
+ }
636
+ export interface CheckoutThemeOptions {
637
+ textColor: string;
638
+ primaryColor: string;
639
+ buttonRadius: string;
640
+ buttonTextColor: string;
641
+ linkColor: string;
642
+ footerBackgroundColor: string;
643
+ footerOutlineColor: string;
644
+ footerTextColor: string;
645
+ backgroundColor: string;
646
+ panelColor: string;
647
+ outlineColor: string;
648
+ primaryOutlineColor: string;
649
+ panelTextColor: string;
650
+ panelLinkColor: string;
651
+ fontFamily: string;
652
+ buttonFontWeight: string;
653
+ buttonFontStyle: string;
654
+ buttonTextTransform: string;
655
+ panelOutlineColor: string;
656
+ placeholderColor: string;
657
+ useLightIcons: boolean;
658
+ useLightFooterIcons: boolean;
659
+ }
660
+ export interface CheckoutOptions {
661
+ checkoutKey: string;
662
+ paymentId: string;
663
+ containerId: string;
664
+ language: string;
665
+ theme: CheckoutThemeOptions;
666
+ }
667
+ interface FreshBookingProduct {
668
+ title: string;
669
+ icon: string;
670
+ access?: boolean;
671
+ }
672
+ export interface FreshBookingProducts {
673
+ [key: string]: FreshBookingProduct;
674
+ }
675
+ export interface OctopusGiftCardValidationData {
676
+ amount: number;
677
+ expirationDate: string;
678
+ productName: string;
679
+ valid: boolean;
680
+ }
681
+ export interface OctopusPlace extends Option {
682
+ id: number;
683
+ name: string;
684
+ placeType: number;
685
+ }
686
+ export interface OctopusGiftCardRestaurant {
687
+ currencyCode: string;
688
+ currencyID: number;
689
+ }
690
+ interface Language {
691
+ name: string;
692
+ shortName: string;
693
+ nativeName: string;
694
+ image: FreshBookingImage;
695
+ }
696
+ export interface OctopusGiftCardMetaData {
697
+ currency: Currency;
698
+ giftCardExpirationMonths: number;
699
+ images: FreshBookingImage[];
700
+ languages: Language[];
701
+ name: string;
702
+ paymentGatewayId: number;
703
+ places: Array<OctopusPlace>;
704
+ template: unknown[];
705
+ termsOfService: string;
706
+ }
707
+ export interface PlaceData {
708
+ label: Translatable;
709
+ data: Array<OctopusPlace>;
710
+ }
711
+ export interface Place {
712
+ [key: number]: PlaceData;
713
+ }
714
+ export declare enum GiftCardModuleState {
715
+ InitialState = 0,
716
+ WaitingForResponse = 1,
717
+ ReadyToPay = 2,
718
+ PaymentSuccess = 3
719
+ }
720
+ export interface EventAddon {
721
+ [key: string]: number;
722
+ }
723
+ export declare enum OctopusEventRateType {
724
+ None = 0,
725
+ Hourly = 1,
726
+ FullDayEvent = 2,
727
+ Weekly = 3
728
+ }
729
+ export interface ListingImage {
730
+ '1x': string;
731
+ '2x': string;
732
+ thumb: string;
733
+ eventID?: number;
734
+ roomGroupID?: number;
735
+ }
736
+ export type actionType = 'default' | 'success' | 'info' | 'danger';
737
+ export interface OctopusEventMetaDataTableGroup {
738
+ id: number;
739
+ name: string;
740
+ }
741
+ export interface EventProduct {
742
+ [key: number]: number;
743
+ }
744
+ export interface OctopusEventMetaData {
745
+ currency: string;
746
+ description: string;
747
+ maxNumberPerBooking: number;
748
+ subtitle: string;
749
+ title: string;
750
+ slideshow: Array<string>;
751
+ eventImages: Array<ListingImage>;
752
+ }
753
+ export interface OctopusRestaurantTemplate {
754
+ description: string;
755
+ fromDate: string;
756
+ fromDateTime: string;
757
+ fromPrice: number;
758
+ id: number;
759
+ imageUrl?: string;
760
+ minimumPersonCount: number;
761
+ name: string;
762
+ toDate: string;
763
+ }
764
+ export interface OctopusEventProductTemplate {
765
+ description: string;
766
+ orderBy: number;
767
+ price: number;
768
+ productID: number;
769
+ productName: string;
770
+ productTabID: number;
771
+ }
772
+ interface OctopusEventOptionTemplate {
773
+ id: number;
774
+ name: string;
775
+ orderBy: number;
776
+ type: number;
777
+ }
778
+ export interface OctopusEventTemplate {
779
+ capacity: number;
780
+ days: string;
781
+ eventRateType?: OctopusEventRateType;
782
+ description?: string;
783
+ fromDate: string;
784
+ hideLocationOnline: boolean;
785
+ id: number;
786
+ isAvailability: boolean;
787
+ length: string;
788
+ maxOnlineReservationLimit: number;
789
+ name: string;
790
+ options: Array<OctopusEventOptionTemplate>;
791
+ showAllwaysOnline: boolean;
792
+ soldOut?: boolean;
793
+ products?: Array<OctopusEventProductTemplate>;
794
+ tableGroupID: number;
795
+ timeFrom: string;
796
+ timeTo: string;
797
+ toDate: string;
798
+ }
799
+ export interface OctopusRestaurantEventData {
800
+ templates: Array<OctopusRestaurantTemplate>;
801
+ events: Array<OctopusEventTemplate>;
802
+ }
803
+ export interface OctopusEventAvailabilityTemplateAddon {
804
+ addonID: number;
805
+ cardinality: number;
806
+ created: string;
807
+ id: number;
808
+ name: string;
809
+ offerID: number;
810
+ offerRoomID: number;
811
+ price: number;
812
+ quantity: number;
813
+ quantityStrategy: number;
814
+ state: number;
815
+ }
816
+ export interface OctopusEventAvailabilityTemplate {
817
+ addons: Array<OctopusEventAvailabilityTemplateAddon>;
818
+ adultPerRoom: number;
819
+ count: number;
820
+ roomGroupID: number;
821
+ roomUpgrade: number;
822
+ totalPrice: number;
823
+ unitPrice: number;
824
+ weekendFee: number;
825
+ }
826
+ export interface OctopusEventAvailabilityEventTables {
827
+ id: number;
828
+ isHidden: boolean;
829
+ name: string;
830
+ orderBy: number;
831
+ tableGroupID: number;
832
+ }
833
+ export interface OctopusEventAvailabilityEvent {
834
+ availableTables: Array<OctopusEventAvailabilityEventTables>;
835
+ numberOfPeople: number;
836
+ numberOfTables: number;
837
+ time: string;
838
+ unitPrice: number;
839
+ price?: number;
840
+ untilDate: string;
841
+ }
842
+ export interface OctopusEventAvailability {
843
+ fromDate: string;
844
+ localTime: string;
845
+ numberOfDays: number;
846
+ packageCount: number;
847
+ templateCounts: Array<OctopusEventAvailabilityTemplate>;
848
+ templateID: number;
849
+ totalPerson: number;
850
+ totalPrice: number;
851
+ }
852
+ export interface TemplateGroupAddonPayload {
853
+ addonID: number;
854
+ quantity: number;
855
+ }
856
+ export interface TemplateGroupPayload {
857
+ roomGroupID: number;
858
+ addons: Array<TemplateGroupAddonPayload>;
859
+ count: number;
860
+ adultPerRoom: number;
861
+ }
862
+ export declare enum EventModuleState {
863
+ InitialState = 0,
864
+ AvailabilityState = 1,
865
+ ReservationState = 2,
866
+ PaymentState = 3
867
+ }
868
+ export {};