@eventlook/sdk 1.5.0-beta.2 → 1.5.0-beta.3
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/.prettierrc +1 -14
- package/dist/cjs/index.js +31 -32
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +31 -32
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/ClientOnly.d.ts +5 -0
- package/dist/types/components/CustomSkeleton.d.ts +4 -0
- package/dist/types/components/Image.d.ts +14 -0
- package/dist/types/components/Label.d.ts +11 -0
- package/dist/types/components/TextIconLabel.d.ts +10 -0
- package/dist/types/components/TicketFormSkeleton.d.ts +3 -0
- package/dist/types/components/Trans.d.ts +12 -0
- package/dist/types/components/animate/DialogAnimate.d.ts +9 -0
- package/dist/types/components/animate/IconButtonAnimate.d.ts +7 -0
- package/dist/types/components/animate/MotionContainer.d.ts +10 -0
- package/dist/types/components/animate/MotionLazyContainer.d.ts +6 -0
- package/dist/types/components/animate/MotionViewport.d.ts +10 -0
- package/dist/types/components/animate/TextAnimate.d.ts +9 -0
- package/dist/types/components/animate/index.d.ts +7 -0
- package/dist/types/components/animate/variants/actions.d.ts +5 -0
- package/dist/types/components/animate/variants/background.d.ts +104 -0
- package/dist/types/components/animate/variants/bounce.d.ts +131 -0
- package/dist/types/components/animate/variants/container.d.ts +19 -0
- package/dist/types/components/animate/variants/fade.d.ts +217 -0
- package/dist/types/components/animate/variants/flip.d.ts +75 -0
- package/dist/types/components/animate/variants/index.d.ts +12 -0
- package/dist/types/components/animate/variants/path.d.ts +14 -0
- package/dist/types/components/animate/variants/rotate.d.ts +39 -0
- package/dist/types/components/animate/variants/scale.d.ts +75 -0
- package/dist/types/components/animate/variants/slide.d.ts +155 -0
- package/dist/types/components/animate/variants/transition.d.ts +13 -0
- package/dist/types/components/animate/variants/zoom.d.ts +199 -0
- package/dist/types/components/confirm-dialog/ConfirmDialog.d.ts +3 -0
- package/dist/types/components/confirm-dialog/index.d.ts +1 -0
- package/dist/types/components/confirm-dialog/types.d.ts +8 -0
- package/dist/types/components/hook-form/FormProvider.d.ts +9 -0
- package/dist/types/components/hook-form/RHFAutocomplete.d.ts +9 -0
- package/dist/types/components/hook-form/RHFCheckbox.d.ts +20 -0
- package/dist/types/components/hook-form/RHFCodes.d.ts +8 -0
- package/dist/types/components/hook-form/RHFDatePicker.d.ts +8 -0
- package/dist/types/components/hook-form/RHFPhone.d.ts +8 -0
- package/dist/types/components/hook-form/RHFRadioGroup.d.ts +14 -0
- package/dist/types/components/hook-form/RHFSelect.d.ts +23 -0
- package/dist/types/components/hook-form/RHFSlider.d.ts +8 -0
- package/dist/types/components/hook-form/RHFSwitch.d.ts +8 -0
- package/dist/types/components/hook-form/RHFTextField.d.ts +7 -0
- package/dist/types/components/hook-form/index.d.ts +9 -0
- package/dist/types/components/iconify/Iconify.d.ts +10 -0
- package/dist/types/components/iconify/index.d.ts +2 -0
- package/dist/types/components/iconify/types.d.ts +2 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/context/GlobalContext.d.ts +16 -0
- package/dist/types/form/ChildEventCard.d.ts +7 -0
- package/dist/types/form/ChildEventDialog.d.ts +9 -0
- package/dist/types/form/ChildEvents.d.ts +8 -0
- package/dist/types/form/ContactPerson.d.ts +7 -0
- package/dist/types/form/EmailConfirmation.d.ts +8 -0
- package/dist/types/form/MerchandiseSelection.d.ts +9 -0
- package/dist/types/form/OrderSuccess.d.ts +9 -0
- package/dist/types/form/Payment.d.ts +7 -0
- package/dist/types/form/PaymentOverviewBox.d.ts +7 -0
- package/dist/types/form/PaymentPending.d.ts +3 -0
- package/dist/types/form/PaymentSuccess.d.ts +9 -0
- package/dist/types/form/ReleaseCountdown.d.ts +8 -0
- package/dist/types/form/ReleaseWithMerchandise.d.ts +12 -0
- package/dist/types/form/ScriptLoader.d.ts +3 -0
- package/dist/types/form/Shipping.d.ts +7 -0
- package/dist/types/form/TicketForm.d.ts +11 -0
- package/dist/types/form/TicketSelection.d.ts +7 -0
- package/dist/types/form/TicketSelectionMap.d.ts +7 -0
- package/dist/types/form/TicketWithMerchandiseSelection.d.ts +7 -0
- package/dist/types/form/TimeslotSelection.d.ts +7 -0
- package/dist/types/form/extra-field/ExtraField.d.ts +9 -0
- package/dist/types/form/extra-field/ReleaseExtraFields.d.ts +10 -0
- package/dist/types/form/index.d.ts +26 -0
- package/dist/types/form/payment/FeeBox.d.ts +8 -0
- package/dist/types/form/payment/PaymentOverviewCheckbox.d.ts +12 -0
- package/dist/types/form/payment/PaymentSkeleton.d.ts +7 -0
- package/dist/types/form/product/ProductCard.d.ts +9 -0
- package/dist/types/form/product/ProductVariantsDialog.d.ts +14 -0
- package/dist/types/form/shipping/ShippingSkeleton.d.ts +7 -0
- package/dist/types/form/style.d.ts +11 -0
- package/dist/types/form/timeslot/TimeslotCalendar.d.ts +12 -0
- package/dist/types/hooks/data/useActiveEventProducts.d.ts +8 -0
- package/dist/types/hooks/data/useAllowedPaymentMethods.d.ts +9 -0
- package/dist/types/hooks/data/useEvent.d.ts +8 -0
- package/dist/types/hooks/data/useEventActiveReleases.d.ts +8 -0
- package/dist/types/hooks/data/useEventShippingMethods.d.ts +8 -0
- package/dist/types/hooks/data/useEventTimeslots.d.ts +10 -0
- package/dist/types/hooks/useCountdown.d.ts +6 -0
- package/dist/types/hooks/useDebounce.d.ts +1 -0
- package/dist/types/hooks/useErrors.d.ts +4 -0
- package/dist/types/hooks/useEventListener.d.ts +5 -0
- package/dist/types/hooks/useFirstRender.d.ts +1 -0
- package/dist/types/hooks/useGlobal.d.ts +2 -0
- package/dist/types/hooks/useResponsive.d.ts +8 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/locales/cs.d.ts +157 -0
- package/dist/types/locales/en.d.ts +158 -0
- package/dist/types/locales/es.d.ts +158 -0
- package/dist/types/locales/index.d.ts +6 -0
- package/dist/types/locales/pl.d.ts +158 -0
- package/dist/types/locales/sk.d.ts +158 -0
- package/dist/types/locales/uk.d.ts +158 -0
- package/dist/types/modules/event-timeslot.d.ts +2 -0
- package/dist/types/modules/event.d.ts +5 -0
- package/dist/types/modules/order.d.ts +7 -0
- package/dist/types/modules/promo-code.d.ts +1 -0
- package/dist/types/modules/shopping-cart.d.ts +4 -0
- package/dist/types/utils/axios.d.ts +2 -0
- package/dist/types/utils/data/cookie.d.ts +1 -0
- package/dist/types/utils/data/currency.d.ts +5 -0
- package/dist/types/utils/data/event.d.ts +4 -0
- package/dist/types/utils/data/extra-field.d.ts +11 -0
- package/dist/types/utils/data/gender.d.ts +5 -0
- package/dist/types/utils/data/global.d.ts +1 -0
- package/dist/types/utils/data/gopay.d.ts +10 -0
- package/dist/types/utils/data/language.d.ts +10 -0
- package/dist/types/utils/data/order.d.ts +4 -0
- package/dist/types/utils/data/product.d.ts +3 -0
- package/dist/types/utils/data/promo-code.d.ts +4 -0
- package/dist/types/utils/data/shipping-method.d.ts +4 -0
- package/dist/types/utils/data/shopping-cart.d.ts +5 -0
- package/dist/types/utils/formatNumber.d.ts +8 -0
- package/dist/types/utils/global.d.ts +4 -0
- package/dist/types/utils/gtm.d.ts +28 -0
- package/dist/types/utils/isBrowser.d.ts +1 -0
- package/dist/types/utils/place.d.ts +2 -0
- package/dist/types/utils/price.d.ts +5 -0
- package/dist/types/utils/product.d.ts +3 -0
- package/dist/types/utils/translation.d.ts +2 -0
- package/dist/types/utils/types/animate.d.ts +26 -0
- package/dist/types/utils/types/artist.type.d.ts +17 -0
- package/dist/types/utils/types/company.type.d.ts +12 -0
- package/dist/types/utils/types/country.type.d.ts +39 -0
- package/dist/types/utils/types/customer.type.d.ts +10 -0
- package/dist/types/utils/types/event-product.type.d.ts +15 -0
- package/dist/types/utils/types/event-timeslot.type.d.ts +15 -0
- package/dist/types/utils/types/event.type.d.ts +62 -0
- package/dist/types/utils/types/extra-field.type.d.ts +18 -0
- package/dist/types/utils/types/file.type.d.ts +6 -0
- package/dist/types/utils/types/global.type.d.ts +76 -0
- package/dist/types/utils/types/gtm.type.d.ts +90 -0
- package/dist/types/utils/types/locale.type.d.ts +4 -0
- package/dist/types/utils/types/order.type.d.ts +69 -0
- package/dist/types/utils/types/palette.type.d.ts +1 -0
- package/dist/types/utils/types/payment-method.type.d.ts +23 -0
- package/dist/types/utils/types/pixel.type.d.ts +7 -0
- package/dist/types/utils/types/place.type.d.ts +19 -0
- package/dist/types/utils/types/product-image.type.d.ts +5 -0
- package/dist/types/utils/types/product-parameter.type.d.ts +7 -0
- package/dist/types/utils/types/product-variant.type.d.ts +9 -0
- package/dist/types/utils/types/product.type.d.ts +57 -0
- package/dist/types/utils/types/project.type.d.ts +24 -0
- package/dist/types/utils/types/promo-code.type.d.ts +15 -0
- package/dist/types/utils/types/release-category.type.d.ts +17 -0
- package/dist/types/utils/types/release.type.d.ts +28 -0
- package/dist/types/utils/types/shipping-method.type.d.ts +11 -0
- package/dist/types/utils/types/shopping-cart.type.d.ts +78 -0
- package/dist/types/utils/types/ticket.type.d.ts +110 -0
- package/dist/types/utils/types/translation.type.d.ts +18 -0
- package/dist/types/utils/types/user.type.d.ts +9 -0
- package/dist/types/utils/url.d.ts +1 -0
- package/eslint.config.mjs +103 -27
- package/package.json +10 -2
- package/src/@types/index.d.ts +3 -3
- package/src/components/TextIconLabel.tsx +1 -2
- package/src/components/animate/IconButtonAnimate.tsx +1 -2
- package/src/components/animate/MotionLazyContainer.tsx +1 -1
- package/src/components/hook-form/RHFCodes.tsx +1 -2
- package/src/components/hook-form/RHFSelect.tsx +1 -1
- package/src/form/PaymentSuccess.tsx +2 -2
- package/src/form/ScriptLoader.tsx +1 -2
- package/src/form/Shipping.tsx +75 -77
- package/src/form/TicketForm.tsx +3 -3
- package/src/locales/en.tsx +1 -1
- package/src/utils/types/event.type.ts +0 -6
- package/tsconfig.build.json +1 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
declare const sk: {
|
|
2
|
+
and: string;
|
|
3
|
+
choose: string;
|
|
4
|
+
apply: string;
|
|
5
|
+
buy: string;
|
|
6
|
+
verify: string;
|
|
7
|
+
add: string;
|
|
8
|
+
confirm: string;
|
|
9
|
+
cancel: string;
|
|
10
|
+
pay: string;
|
|
11
|
+
change: string;
|
|
12
|
+
free: string;
|
|
13
|
+
back_to_tickets: string;
|
|
14
|
+
unselected: string;
|
|
15
|
+
go_home: string;
|
|
16
|
+
apple_wallet: string;
|
|
17
|
+
google_wallet: string;
|
|
18
|
+
more_info: string;
|
|
19
|
+
shipping_method: {
|
|
20
|
+
types: {
|
|
21
|
+
PACKETA: string;
|
|
22
|
+
PICK_UP: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
form: {
|
|
26
|
+
labels: {
|
|
27
|
+
release_category_price: string;
|
|
28
|
+
add_another_release: string;
|
|
29
|
+
quantity: string;
|
|
30
|
+
first_name: string;
|
|
31
|
+
last_name: string;
|
|
32
|
+
email: string;
|
|
33
|
+
phone: string;
|
|
34
|
+
birthdate: string;
|
|
35
|
+
gender: string;
|
|
36
|
+
male: string;
|
|
37
|
+
female: string;
|
|
38
|
+
other: string;
|
|
39
|
+
promo_code: string;
|
|
40
|
+
start_date: string;
|
|
41
|
+
organizer: string;
|
|
42
|
+
total: string;
|
|
43
|
+
with_fee: string;
|
|
44
|
+
service_fee: string;
|
|
45
|
+
shipping_fee: string;
|
|
46
|
+
ticket_insurance: string;
|
|
47
|
+
price_including_service_fee: string;
|
|
48
|
+
price_including_service_fee_percentage: string;
|
|
49
|
+
terms_and_conditions: string;
|
|
50
|
+
original_price: string;
|
|
51
|
+
ticket: string;
|
|
52
|
+
category: string;
|
|
53
|
+
sms_notification: string;
|
|
54
|
+
open_map: string;
|
|
55
|
+
};
|
|
56
|
+
validation: {
|
|
57
|
+
required: string;
|
|
58
|
+
email: string;
|
|
59
|
+
phone: string;
|
|
60
|
+
invalid_date: string;
|
|
61
|
+
terms_and_conditions: string;
|
|
62
|
+
promo_code_invalid: string;
|
|
63
|
+
promo_code_applied: string;
|
|
64
|
+
promo_code_cant_combine: string;
|
|
65
|
+
min_purchase_not_met: string;
|
|
66
|
+
count_tickets_or_products: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
event: {
|
|
70
|
+
tickets: {
|
|
71
|
+
title: string;
|
|
72
|
+
error: {
|
|
73
|
+
order: string;
|
|
74
|
+
};
|
|
75
|
+
stepper: {
|
|
76
|
+
1: {
|
|
77
|
+
title: string;
|
|
78
|
+
reserve: string;
|
|
79
|
+
quantity_select: string;
|
|
80
|
+
max_ticket_quantity: string;
|
|
81
|
+
no_tickets: string;
|
|
82
|
+
select_timeslot: string;
|
|
83
|
+
};
|
|
84
|
+
2: {
|
|
85
|
+
title: string;
|
|
86
|
+
};
|
|
87
|
+
3: {
|
|
88
|
+
title: string;
|
|
89
|
+
title_verify: string;
|
|
90
|
+
subtitle: string;
|
|
91
|
+
};
|
|
92
|
+
4: {
|
|
93
|
+
title: string;
|
|
94
|
+
};
|
|
95
|
+
5: {
|
|
96
|
+
title: string;
|
|
97
|
+
error: string;
|
|
98
|
+
};
|
|
99
|
+
6: {
|
|
100
|
+
title: string;
|
|
101
|
+
};
|
|
102
|
+
7: {
|
|
103
|
+
title: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
terms_and_conditions: string;
|
|
107
|
+
insurance: {
|
|
108
|
+
label: string;
|
|
109
|
+
per_ticket: string;
|
|
110
|
+
modal: {
|
|
111
|
+
title: string;
|
|
112
|
+
description: string;
|
|
113
|
+
coverage: string;
|
|
114
|
+
price: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
sms_notification: {
|
|
118
|
+
label: string;
|
|
119
|
+
modal: {
|
|
120
|
+
description: string;
|
|
121
|
+
price: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
order_success: {
|
|
125
|
+
title: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
payment_success: {
|
|
129
|
+
loading: string;
|
|
130
|
+
paid: {
|
|
131
|
+
status: string;
|
|
132
|
+
title: string;
|
|
133
|
+
subtitle: string;
|
|
134
|
+
tickets: string;
|
|
135
|
+
button: string;
|
|
136
|
+
products: string;
|
|
137
|
+
};
|
|
138
|
+
unpaid: string;
|
|
139
|
+
unpaid_description: string;
|
|
140
|
+
};
|
|
141
|
+
payment_pending: string;
|
|
142
|
+
email_confirmation: {
|
|
143
|
+
title: string;
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
release_countdown: {
|
|
147
|
+
title: string;
|
|
148
|
+
countdown: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
components: {
|
|
153
|
+
product_variant_dialog: {
|
|
154
|
+
select_variant: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
export default sk;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
declare const uk: {
|
|
2
|
+
and: string;
|
|
3
|
+
choose: string;
|
|
4
|
+
apply: string;
|
|
5
|
+
buy: string;
|
|
6
|
+
verify: string;
|
|
7
|
+
add: string;
|
|
8
|
+
confirm: string;
|
|
9
|
+
cancel: string;
|
|
10
|
+
pay: string;
|
|
11
|
+
change: string;
|
|
12
|
+
free: string;
|
|
13
|
+
back_to_tickets: string;
|
|
14
|
+
unselected: string;
|
|
15
|
+
go_home: string;
|
|
16
|
+
apple_wallet: string;
|
|
17
|
+
google_wallet: string;
|
|
18
|
+
more_info: string;
|
|
19
|
+
shipping_method: {
|
|
20
|
+
types: {
|
|
21
|
+
PACKETA: string;
|
|
22
|
+
PICK_UP: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
form: {
|
|
26
|
+
labels: {
|
|
27
|
+
release_category_price: string;
|
|
28
|
+
add_another_release: string;
|
|
29
|
+
quantity: string;
|
|
30
|
+
first_name: string;
|
|
31
|
+
last_name: string;
|
|
32
|
+
email: string;
|
|
33
|
+
phone: string;
|
|
34
|
+
birthdate: string;
|
|
35
|
+
gender: string;
|
|
36
|
+
male: string;
|
|
37
|
+
female: string;
|
|
38
|
+
other: string;
|
|
39
|
+
promo_code: string;
|
|
40
|
+
start_date: string;
|
|
41
|
+
organizer: string;
|
|
42
|
+
total: string;
|
|
43
|
+
with_fee: string;
|
|
44
|
+
service_fee: string;
|
|
45
|
+
shipping_fee: string;
|
|
46
|
+
ticket_insurance: string;
|
|
47
|
+
price_including_service_fee: string;
|
|
48
|
+
price_including_service_fee_percentage: string;
|
|
49
|
+
terms_and_conditions: string;
|
|
50
|
+
original_price: string;
|
|
51
|
+
ticket: string;
|
|
52
|
+
category: string;
|
|
53
|
+
sms_notification: string;
|
|
54
|
+
open_map: string;
|
|
55
|
+
};
|
|
56
|
+
validation: {
|
|
57
|
+
required: string;
|
|
58
|
+
email: string;
|
|
59
|
+
phone: string;
|
|
60
|
+
invalid_date: string;
|
|
61
|
+
terms_and_conditions: string;
|
|
62
|
+
promo_code_invalid: string;
|
|
63
|
+
promo_code_applied: string;
|
|
64
|
+
promo_code_cant_combine: string;
|
|
65
|
+
min_purchase_not_met: string;
|
|
66
|
+
count_tickets_or_products: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
event: {
|
|
70
|
+
tickets: {
|
|
71
|
+
title: string;
|
|
72
|
+
error: {
|
|
73
|
+
order: string;
|
|
74
|
+
};
|
|
75
|
+
stepper: {
|
|
76
|
+
1: {
|
|
77
|
+
title: string;
|
|
78
|
+
reserve: string;
|
|
79
|
+
quantity_select: string;
|
|
80
|
+
max_ticket_quantity: string;
|
|
81
|
+
no_tickets: string;
|
|
82
|
+
select_timeslot: string;
|
|
83
|
+
};
|
|
84
|
+
2: {
|
|
85
|
+
title: string;
|
|
86
|
+
};
|
|
87
|
+
3: {
|
|
88
|
+
title: string;
|
|
89
|
+
title_verify: string;
|
|
90
|
+
subtitle: string;
|
|
91
|
+
};
|
|
92
|
+
4: {
|
|
93
|
+
title: string;
|
|
94
|
+
};
|
|
95
|
+
5: {
|
|
96
|
+
title: string;
|
|
97
|
+
error: string;
|
|
98
|
+
};
|
|
99
|
+
6: {
|
|
100
|
+
title: string;
|
|
101
|
+
};
|
|
102
|
+
7: {
|
|
103
|
+
title: string;
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
terms_and_conditions: string;
|
|
107
|
+
insurance: {
|
|
108
|
+
label: string;
|
|
109
|
+
per_ticket: string;
|
|
110
|
+
modal: {
|
|
111
|
+
title: string;
|
|
112
|
+
description: string;
|
|
113
|
+
coverage: string;
|
|
114
|
+
price: string;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
sms_notification: {
|
|
118
|
+
label: string;
|
|
119
|
+
modal: {
|
|
120
|
+
description: string;
|
|
121
|
+
price: string;
|
|
122
|
+
};
|
|
123
|
+
};
|
|
124
|
+
order_success: {
|
|
125
|
+
title: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
payment_success: {
|
|
129
|
+
loading: string;
|
|
130
|
+
paid: {
|
|
131
|
+
status: string;
|
|
132
|
+
title: string;
|
|
133
|
+
subtitle: string;
|
|
134
|
+
tickets: string;
|
|
135
|
+
button: string;
|
|
136
|
+
products: string;
|
|
137
|
+
};
|
|
138
|
+
unpaid: string;
|
|
139
|
+
unpaid_description: string;
|
|
140
|
+
};
|
|
141
|
+
payment_pending: string;
|
|
142
|
+
email_confirmation: {
|
|
143
|
+
title: string;
|
|
144
|
+
description: string;
|
|
145
|
+
};
|
|
146
|
+
release_countdown: {
|
|
147
|
+
title: string;
|
|
148
|
+
countdown: string;
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
components: {
|
|
153
|
+
product_variant_dialog: {
|
|
154
|
+
select_variant: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
export default uk;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IShippingMethodFilter } from '@utils/types/shipping-method.type';
|
|
2
|
+
export declare const getEventBySlug: (slug: string) => Promise<any>;
|
|
3
|
+
export declare const getEventActiveReleases: (id: number, includeChildren?: boolean, timeslotId?: number) => Promise<any>;
|
|
4
|
+
export declare const getActiveEventProducts: (id: number, includeChildren?: boolean) => Promise<any>;
|
|
5
|
+
export declare const getEventShippingMethods: (id: number, filters?: IShippingMethodFilter) => Promise<any>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ITicketBody } from '@utils/types/ticket.type';
|
|
2
|
+
import { IResponse } from '@utils/types/global.type';
|
|
3
|
+
import { IOrderCreate, IOrderPaid, IOrderPaidData } from '@utils/types/order.type';
|
|
4
|
+
import { Currencies } from '@utils/data/currency';
|
|
5
|
+
export declare const postOrder: (data: ITicketBody) => Promise<IResponse<IOrderCreate>>;
|
|
6
|
+
export declare const getAllowedPaymentMethods: (currency: Currencies, eventId?: number) => Promise<any>;
|
|
7
|
+
export declare const postOrderPaid: (data: IOrderPaidData) => Promise<IResponse<IOrderPaid>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const postPromoCodeApply: (code: string, eventId: number) => Promise<any>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IResponse } from '@utils/types/global.type';
|
|
2
|
+
import { ICalculateShoppingCartDto, IShoppingCartDto } from '@utils/types/shopping-cart.type';
|
|
3
|
+
export declare const getCart: (eventId: number, uuid?: string | null) => Promise<IResponse<IShoppingCartDto>>;
|
|
4
|
+
export declare const calculateCart: (data: ICalculateShoppingCartDto) => Promise<IResponse<IShoppingCartDto>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const UserIpCookie = "user_ip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const EVENTLOOK_ORDER_FORM_ID = "eventlook-order-form";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare enum GopayState {
|
|
2
|
+
CREATED = "CREATED",
|
|
3
|
+
PAID = "PAID",
|
|
4
|
+
CANCELED = "CANCELED",
|
|
5
|
+
PAYMENT_METHOD_CHOSEN = "PAYMENT_METHOD_CHOSEN",
|
|
6
|
+
TIMEOUTED = "TIMEOUTED",
|
|
7
|
+
AUTHORIZED = "AUTHORIZED",
|
|
8
|
+
PARTIALLY_REFUNDED = "PARTIALLY_REFUNDED",
|
|
9
|
+
REFUNDED = "REFUNDED"
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Currencies } from '@utils/data/currency';
|
|
2
|
+
export declare function fCurrency(number: number, locales?: string, currency?: Currencies, decimals?: number): string;
|
|
3
|
+
export declare function fCurrencyPlain(currency: number): string;
|
|
4
|
+
export declare function fPercent(number: number): string;
|
|
5
|
+
export declare function fNumber(number: string | number): string;
|
|
6
|
+
export declare function fShortenNumber(number: string | number): string;
|
|
7
|
+
export declare function fData(number: string | number): string;
|
|
8
|
+
export declare const roundUp: (number: number, decimals?: number) => number;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IPageView, IPageType, ISearchShow, IViewItem, IEcommerce, ICheckout, IEcommerceCartItems, IAddPaymentInfo, IPurchase, IEcommercePurchase, IUserData, IPixels, IViewItemList, ISelectItem, IAddToCart, IRemoveFromCart, IPurchasePaid } from '@utils/types/gtm.type';
|
|
2
|
+
import { IUser } from '@utils/types/user.type';
|
|
3
|
+
export declare const getGtmPageView: (url: string, userData?: IUserData) => IPageView;
|
|
4
|
+
export declare const gtmPageView: (url: string, userData?: IUserData) => IPageView;
|
|
5
|
+
export declare const gtmPageType: (type: string) => IPageType;
|
|
6
|
+
export declare const gtmSearchShow: () => ISearchShow;
|
|
7
|
+
export declare const gtmSearchInSearchWindow: () => ISearchShow;
|
|
8
|
+
export declare const gtmViewItem: (item: IEcommerce, pixels?: IPixels, userData?: IUserData) => IViewItem & IPixels;
|
|
9
|
+
export declare const gtmViewItemList: () => IViewItemList;
|
|
10
|
+
export declare const gtmSelectItem: () => ISelectItem;
|
|
11
|
+
export declare const getGtmBeginCheckout: (item: IEcommerce, pixels?: IPixels, userData?: IUserData) => ICheckout & IPixels;
|
|
12
|
+
export declare const gtmBeginCheckout: (item: IEcommerce, pixels?: IPixels, userData?: IUserData) => ICheckout & IPixels;
|
|
13
|
+
export declare const getGtmViewCart: (item: IEcommerce, pixels?: IPixels) => ICheckout & IPixels;
|
|
14
|
+
export declare const gtmViewCart: (item: IEcommerce, pixels?: IPixels) => ICheckout & IPixels;
|
|
15
|
+
export declare const gtmAddToCart: (pixels?: IPixels, userData?: IUserData) => IAddToCart & IPixels;
|
|
16
|
+
export declare const gtmRemoveFromCart: (item: IEcommerceCartItems, pixels?: IPixels) => IRemoveFromCart & IPixels;
|
|
17
|
+
export declare const getGtmAddPaymentInfo: (item: IEcommerceCartItems, pixels?: IPixels, userData?: IUserData) => IAddPaymentInfo & IPixels;
|
|
18
|
+
export declare const gtmAddPaymentInfo: (item: IEcommerceCartItems, pixels?: IPixels) => IAddPaymentInfo & IPixels;
|
|
19
|
+
export declare const getGtmPurchase: (item: IEcommercePurchase | null, pixels?: IPixels, userData?: IUserData) => IPurchase & IPixels;
|
|
20
|
+
export declare const gtmPurchase: (item: IEcommercePurchase | null, pixels?: IPixels, userData?: IUserData) => IPurchase & IPixels;
|
|
21
|
+
export declare const getGtmPurchasePaid: (item: IEcommercePurchase | null, pixels?: IPixels, userData?: IUserData) => IPurchasePaid & IPixels;
|
|
22
|
+
export declare const gtmPurchasePaid: (item: IEcommercePurchase | null, pixels?: IPixels, userData?: IUserData) => IPurchasePaid & IPixels;
|
|
23
|
+
export declare const mapUserToUserData: (user: IUser) => {
|
|
24
|
+
em: string;
|
|
25
|
+
ph: string;
|
|
26
|
+
ln: string;
|
|
27
|
+
fn: string;
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isBrowser: () => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Currencies } from '@utils/data/currency';
|
|
2
|
+
export declare const getBetweenPrice: (firstPrice: number, secondPrice: number, currentLangValue: string, currency: Currencies) => string;
|
|
3
|
+
export declare const calculatePriceWithPercentage: (price: number, vatPercentage: number) => number;
|
|
4
|
+
export declare const calculatePriceWithoutPercentage: (price: number, vatPercentage: number) => number;
|
|
5
|
+
export declare const calculatePriceWithDiscount: (price: number, discountPercent?: number, fixedDiscount?: number) => number;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
type EaseType = 'linear' | 'easeIn' | 'easeOut' | 'easeInOut' | 'circIn' | 'circOut' | 'circInOut' | 'backIn' | 'backOut' | 'backInOut' | 'anticipate' | [number, number, number, number];
|
|
2
|
+
export type VariantsType = {
|
|
3
|
+
distance?: number;
|
|
4
|
+
durationIn?: number;
|
|
5
|
+
durationOut?: number;
|
|
6
|
+
easeIn?: EaseType;
|
|
7
|
+
easeOut?: EaseType;
|
|
8
|
+
};
|
|
9
|
+
export type TranHoverType = {
|
|
10
|
+
duration?: number;
|
|
11
|
+
ease?: EaseType;
|
|
12
|
+
};
|
|
13
|
+
export type TranEnterType = {
|
|
14
|
+
durationIn?: number;
|
|
15
|
+
easeIn?: EaseType;
|
|
16
|
+
};
|
|
17
|
+
export type TranExitType = {
|
|
18
|
+
durationOut?: number;
|
|
19
|
+
easeOut?: EaseType;
|
|
20
|
+
};
|
|
21
|
+
export type BackgroundType = {
|
|
22
|
+
colors?: string[];
|
|
23
|
+
duration?: number;
|
|
24
|
+
ease?: EaseType;
|
|
25
|
+
};
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { IFile } from '@utils/types/file.type';
|
|
3
|
+
import { ITranslation } from '@utils/types/translation.type';
|
|
4
|
+
import { ICountry } from '@utils/types/country.type';
|
|
5
|
+
export interface IArtist extends IBase {
|
|
6
|
+
name: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
description: string;
|
|
9
|
+
image: IFile;
|
|
10
|
+
category: ITranslation;
|
|
11
|
+
countEvents: number;
|
|
12
|
+
countFollowers: number;
|
|
13
|
+
likedByCurrentUser?: boolean;
|
|
14
|
+
spotify: string | null;
|
|
15
|
+
instagram: string | null;
|
|
16
|
+
nationality: ICountry;
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
export interface ICompany extends IBase {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
cin: string;
|
|
6
|
+
tin: string;
|
|
7
|
+
headquarters: string;
|
|
8
|
+
instagramUrl: string;
|
|
9
|
+
facebookUrl: string;
|
|
10
|
+
active: boolean;
|
|
11
|
+
verified: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
export interface ICountry extends IBase {
|
|
3
|
+
alpha2: string;
|
|
4
|
+
alpha3: string;
|
|
5
|
+
ar: string;
|
|
6
|
+
bg: string;
|
|
7
|
+
cs: string;
|
|
8
|
+
da: string;
|
|
9
|
+
de: string;
|
|
10
|
+
el: string;
|
|
11
|
+
en: string;
|
|
12
|
+
eo: string;
|
|
13
|
+
es: string;
|
|
14
|
+
et: string;
|
|
15
|
+
eu: string;
|
|
16
|
+
fi: string;
|
|
17
|
+
fr: string;
|
|
18
|
+
hr: string;
|
|
19
|
+
hu: string;
|
|
20
|
+
hy: string;
|
|
21
|
+
it: string;
|
|
22
|
+
ja: string;
|
|
23
|
+
ko: string;
|
|
24
|
+
lt: string;
|
|
25
|
+
nl: string;
|
|
26
|
+
no: string;
|
|
27
|
+
pl: string;
|
|
28
|
+
pt: string;
|
|
29
|
+
ro: string;
|
|
30
|
+
ru: string;
|
|
31
|
+
sk: string;
|
|
32
|
+
sl: string;
|
|
33
|
+
sr: string;
|
|
34
|
+
sv: string;
|
|
35
|
+
th: string;
|
|
36
|
+
uk: string;
|
|
37
|
+
zh: string;
|
|
38
|
+
zhTw: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { IProduct } from '@utils/types/product.type';
|
|
3
|
+
import { IProductVariant } from '@utils/types/product-variant.type';
|
|
4
|
+
import { IShippingMethod } from '@utils/types/shipping-method.type';
|
|
5
|
+
export interface IEventProduct extends IBase {
|
|
6
|
+
product: IProduct;
|
|
7
|
+
eventProductVariants: IEventProductVariant[];
|
|
8
|
+
excludedShippingMethods: IShippingMethod[];
|
|
9
|
+
}
|
|
10
|
+
export interface IEventProductVariant extends IBase {
|
|
11
|
+
productVariant: IProductVariant;
|
|
12
|
+
priceWithVat: number;
|
|
13
|
+
priceWithoutVat: number;
|
|
14
|
+
vatPercentage: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
export interface IEventTimeslot extends IBase {
|
|
3
|
+
uuid: string;
|
|
4
|
+
startDate: string;
|
|
5
|
+
endDate: string;
|
|
6
|
+
isSoldOut: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface IEventTimeslotFilters {
|
|
9
|
+
startDate?: string;
|
|
10
|
+
endDate?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IEventTimeslotDate {
|
|
13
|
+
date: string;
|
|
14
|
+
timeslots: IEventTimeslot[];
|
|
15
|
+
}
|