@eventlook/sdk 1.5.0-beta.2 → 1.5.0-beta.4
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-DLC5Hr8L.js +35809 -0
- package/dist/cjs/index-DLC5Hr8L.js.map +1 -0
- package/dist/cjs/index.js +11 -49195
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/index.umd-BSCKGDNQ.js +13407 -0
- package/dist/cjs/index.umd-BSCKGDNQ.js.map +1 -0
- package/dist/esm/index-BwmbJihM.js +35805 -0
- package/dist/esm/index-BwmbJihM.js.map +1 -0
- package/dist/esm/index.js +10 -49198
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/index.umd-6fgyuQlr.js +13405 -0
- package/dist/esm/index.umd-6fgyuQlr.js.map +1 -0
- 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 -5
- 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/PaymentPending.tsx +6 -3
- 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,62 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { ICompany } from '@utils/types/company.type';
|
|
3
|
+
import { IFile } from '@utils/types/file.type';
|
|
4
|
+
import { IPlace } from '@utils/types/place.type';
|
|
5
|
+
import { IBaseLocale } from '@utils/types/locale.type';
|
|
6
|
+
import { IProject } from '@utils/types/project.type';
|
|
7
|
+
import { OrderFeeType } from '@utils/data/order';
|
|
8
|
+
import { Currencies } from '@utils/data/currency';
|
|
9
|
+
import { IFacebookPixel, ITiktokPixel } from '@utils/types/pixel.type';
|
|
10
|
+
import { IEventProduct } from '@utils/types/event-product.type';
|
|
11
|
+
import { ITranslation } from '@utils/types/translation.type';
|
|
12
|
+
import { IEventExtraField } from '@utils/types/extra-field.type';
|
|
13
|
+
import { EventType } from '@utils/data/event';
|
|
14
|
+
export interface IEvent extends IBase {
|
|
15
|
+
name: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
company: ICompany;
|
|
18
|
+
startDate: string;
|
|
19
|
+
endDate: string;
|
|
20
|
+
releaseDate: string;
|
|
21
|
+
releaseEndDate: string;
|
|
22
|
+
place: IPlace;
|
|
23
|
+
description: string;
|
|
24
|
+
image: IFile;
|
|
25
|
+
verified: boolean;
|
|
26
|
+
ageLimit: number | null;
|
|
27
|
+
maxReleasePrice: number;
|
|
28
|
+
minReleasePrice: number;
|
|
29
|
+
tags: IEventTag[];
|
|
30
|
+
eventCategory: IEventCategory;
|
|
31
|
+
isSoldout: boolean;
|
|
32
|
+
isLocked: boolean;
|
|
33
|
+
lockedUntil: Date | null;
|
|
34
|
+
project: IProject | null;
|
|
35
|
+
orderFeeType: OrderFeeType;
|
|
36
|
+
orderFeeValue: number;
|
|
37
|
+
orderFeeValueEur: number;
|
|
38
|
+
currency: Currencies;
|
|
39
|
+
dateUnknown: boolean;
|
|
40
|
+
facebookPixel: IFacebookPixel | null;
|
|
41
|
+
tiktokPixel: ITiktokPixel | null;
|
|
42
|
+
hasMerchandise: boolean;
|
|
43
|
+
eventProducts: IEventProduct[];
|
|
44
|
+
soldoutTextActive: boolean;
|
|
45
|
+
soldoutText: ITranslation;
|
|
46
|
+
extraFields: IEventExtraField[];
|
|
47
|
+
isCanceled: boolean;
|
|
48
|
+
seoTitle: string | null;
|
|
49
|
+
seoDescription: string | null;
|
|
50
|
+
type: EventType;
|
|
51
|
+
parents: IEvent[];
|
|
52
|
+
children: IEvent[];
|
|
53
|
+
mapId: string | null;
|
|
54
|
+
}
|
|
55
|
+
export interface IEventCategory extends IBase {
|
|
56
|
+
translation: {
|
|
57
|
+
name: string;
|
|
58
|
+
} & IBaseLocale;
|
|
59
|
+
}
|
|
60
|
+
export interface IEventTag extends IBase {
|
|
61
|
+
name: string;
|
|
62
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { ExtraFieldTypes, ExtraFieldValueTypes } from '@utils/data/extra-field';
|
|
3
|
+
import { ITranslationEntity } from '@utils/types/translation.type';
|
|
4
|
+
export interface IEventExtraField extends IBase {
|
|
5
|
+
name: ITranslationEntity;
|
|
6
|
+
type: ExtraFieldTypes;
|
|
7
|
+
valueType: ExtraFieldValueTypes;
|
|
8
|
+
required: boolean;
|
|
9
|
+
options: IExtraFieldOption[];
|
|
10
|
+
}
|
|
11
|
+
export interface IExtraFieldForm {
|
|
12
|
+
eventExtraFieldId: number;
|
|
13
|
+
value: string | number;
|
|
14
|
+
}
|
|
15
|
+
export interface IExtraFieldOption extends IBase {
|
|
16
|
+
name: ITranslationEntity;
|
|
17
|
+
extraField: IEventExtraField;
|
|
18
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Languages } from '@utils/data/language';
|
|
3
|
+
import { IUser } from '@utils/types/user.type';
|
|
4
|
+
export type PropsWithChildren<P = unknown> = P & {
|
|
5
|
+
children?: ReactNode | undefined;
|
|
6
|
+
};
|
|
7
|
+
export interface IGlobalContext {
|
|
8
|
+
lang: Languages;
|
|
9
|
+
setGlobal: (value: Partial<IGlobalContext>) => void;
|
|
10
|
+
t: (key: string, params?: Record<string, string | number>) => string;
|
|
11
|
+
showSnackbar: (text: string, options?: {
|
|
12
|
+
variant: 'success' | 'error';
|
|
13
|
+
}) => void;
|
|
14
|
+
callbacks: IGlobalContextCallbacks;
|
|
15
|
+
links: IGlobalContextLinks;
|
|
16
|
+
options?: IGlobalContextOptions;
|
|
17
|
+
user?: IUser;
|
|
18
|
+
content?: IContent;
|
|
19
|
+
seatingIframeUrl?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface IGlobalContextCallbacks {
|
|
22
|
+
homepage: () => void;
|
|
23
|
+
tickets: () => void;
|
|
24
|
+
detail: () => void;
|
|
25
|
+
}
|
|
26
|
+
export interface IGlobalContextLinks {
|
|
27
|
+
termsAndConditions: string;
|
|
28
|
+
gdpr: string;
|
|
29
|
+
}
|
|
30
|
+
export interface IGlobalContextOptions {
|
|
31
|
+
packetaApiKey?: string;
|
|
32
|
+
isIframe?: boolean;
|
|
33
|
+
stickyHeaderTop?: number;
|
|
34
|
+
termsAndConditionsCompanies?: string[];
|
|
35
|
+
autoscrollAfterViewChange?: boolean;
|
|
36
|
+
hasGopayId?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface IBase {
|
|
39
|
+
id: number;
|
|
40
|
+
createdAt: Date;
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
deletedAt: Date | null;
|
|
43
|
+
}
|
|
44
|
+
export interface IResponse<D> {
|
|
45
|
+
data: D;
|
|
46
|
+
message: string;
|
|
47
|
+
}
|
|
48
|
+
export interface IPaginate<D> {
|
|
49
|
+
data: D;
|
|
50
|
+
meta: IMeta;
|
|
51
|
+
}
|
|
52
|
+
export interface IMeta {
|
|
53
|
+
perPage: number;
|
|
54
|
+
page: number;
|
|
55
|
+
total: number;
|
|
56
|
+
}
|
|
57
|
+
export interface IContent {
|
|
58
|
+
form?: {
|
|
59
|
+
disableBirthDate?: boolean;
|
|
60
|
+
disableGender?: boolean;
|
|
61
|
+
};
|
|
62
|
+
orderConfirmation?: {
|
|
63
|
+
title?: string;
|
|
64
|
+
image?: IContentImage;
|
|
65
|
+
};
|
|
66
|
+
paymentConfirmation?: {
|
|
67
|
+
title?: string;
|
|
68
|
+
status?: string;
|
|
69
|
+
subtitle?: string;
|
|
70
|
+
image?: IContentImage;
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
export interface IContentImage {
|
|
74
|
+
src: string;
|
|
75
|
+
maxWidth?: string;
|
|
76
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
interface IBase {
|
|
2
|
+
ip: string;
|
|
3
|
+
user_data?: IUserData | null;
|
|
4
|
+
}
|
|
5
|
+
export interface IPageView extends IBase {
|
|
6
|
+
event: string;
|
|
7
|
+
page: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IPageType extends IBase {
|
|
10
|
+
visitorType: string;
|
|
11
|
+
clientID: string | undefined;
|
|
12
|
+
pageType: string;
|
|
13
|
+
}
|
|
14
|
+
export interface ISearchShow extends IBase {
|
|
15
|
+
event: 'search';
|
|
16
|
+
eventAction: 'showSearchWindow' | 'userSearchInSearchWindow';
|
|
17
|
+
}
|
|
18
|
+
export interface IItem {
|
|
19
|
+
item_name: string;
|
|
20
|
+
item_id: string;
|
|
21
|
+
quantity: number;
|
|
22
|
+
}
|
|
23
|
+
export interface ICartItem extends IItem {
|
|
24
|
+
price: number;
|
|
25
|
+
}
|
|
26
|
+
export interface IEcommerce {
|
|
27
|
+
currency: string;
|
|
28
|
+
items: IItem[];
|
|
29
|
+
}
|
|
30
|
+
export interface IEcommerceCartItems {
|
|
31
|
+
currency: string;
|
|
32
|
+
value: number;
|
|
33
|
+
payment_type: string;
|
|
34
|
+
items: ICartItem[];
|
|
35
|
+
}
|
|
36
|
+
export interface IEcommercePurchase {
|
|
37
|
+
tax: number;
|
|
38
|
+
transaction_id: string;
|
|
39
|
+
currency: string;
|
|
40
|
+
value: number;
|
|
41
|
+
payment_type: string;
|
|
42
|
+
coupon: string[];
|
|
43
|
+
items: ICartItem[];
|
|
44
|
+
}
|
|
45
|
+
export interface IUserData {
|
|
46
|
+
em: string;
|
|
47
|
+
ph: string;
|
|
48
|
+
ln: string;
|
|
49
|
+
fn: string;
|
|
50
|
+
}
|
|
51
|
+
export interface IViewItem extends IBase {
|
|
52
|
+
event: 'view_item';
|
|
53
|
+
ecommerce: IEcommerce;
|
|
54
|
+
}
|
|
55
|
+
export interface IViewItemList extends IBase {
|
|
56
|
+
event: 'view_item_list';
|
|
57
|
+
}
|
|
58
|
+
export interface ISelectItem extends IBase {
|
|
59
|
+
event: 'select_item';
|
|
60
|
+
}
|
|
61
|
+
export interface ICheckout extends IBase {
|
|
62
|
+
event: 'begin_checkout' | 'view_cart';
|
|
63
|
+
ecommerce: IEcommerce;
|
|
64
|
+
}
|
|
65
|
+
export interface IAddToCart extends IBase {
|
|
66
|
+
event: 'add_to_cart';
|
|
67
|
+
}
|
|
68
|
+
export interface IRemoveFromCart extends IBase {
|
|
69
|
+
event: 'remove_from_cart';
|
|
70
|
+
ecommerce: IEcommerceCartItems;
|
|
71
|
+
}
|
|
72
|
+
export interface IAddPaymentInfo extends IBase {
|
|
73
|
+
event: 'add_payment_info';
|
|
74
|
+
ecommerce: IEcommerceCartItems;
|
|
75
|
+
}
|
|
76
|
+
export interface IPurchase extends IBase {
|
|
77
|
+
event: 'purchase';
|
|
78
|
+
ecommerce: IEcommercePurchase | null;
|
|
79
|
+
user_data: IUserData | null;
|
|
80
|
+
}
|
|
81
|
+
export interface IPurchasePaid extends IBase {
|
|
82
|
+
event: 'purchase_paid';
|
|
83
|
+
ecommerce: IEcommercePurchase | null;
|
|
84
|
+
user_data: IUserData | null;
|
|
85
|
+
}
|
|
86
|
+
export interface IPixels {
|
|
87
|
+
fb_pixel_id?: number | string;
|
|
88
|
+
tiktok_pixel_id?: number | string;
|
|
89
|
+
}
|
|
90
|
+
export {};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { GopayState } from '@utils/data/gopay';
|
|
2
|
+
import { ICreateTicket, IPaidTicket, ITicket } from '@utils/types/ticket.type';
|
|
3
|
+
import { Currencies } from '@utils/data/currency';
|
|
4
|
+
import { IBase } from '@utils/types/global.type';
|
|
5
|
+
import { ICustomer } from '@utils/types/customer.type';
|
|
6
|
+
import { IEvent } from '@utils/types/event.type';
|
|
7
|
+
import { IPromoCode } from '@utils/types/promo-code.type';
|
|
8
|
+
import { IPaidProduct } from '@utils/types/product.type';
|
|
9
|
+
export interface IOrder extends IBase {
|
|
10
|
+
gwUrl: string;
|
|
11
|
+
tickets: ITicket[];
|
|
12
|
+
extraFee: number;
|
|
13
|
+
currency: Currencies;
|
|
14
|
+
paymentType: string;
|
|
15
|
+
paymentMethodId: number;
|
|
16
|
+
paymentMethodOptionId: number;
|
|
17
|
+
totalPrice: number;
|
|
18
|
+
number: number;
|
|
19
|
+
event: IEvent;
|
|
20
|
+
promoCodes: IPromoCode[] | null;
|
|
21
|
+
}
|
|
22
|
+
export interface IOrderCreate {
|
|
23
|
+
gwUrl: string;
|
|
24
|
+
tickets: ICreateTicket[];
|
|
25
|
+
orderEntity: IOrder;
|
|
26
|
+
customer: ICustomer;
|
|
27
|
+
}
|
|
28
|
+
export interface IOrderPaidData {
|
|
29
|
+
gopayId: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IOrderPaid {
|
|
32
|
+
gwUrl: string;
|
|
33
|
+
state: GopayState;
|
|
34
|
+
totalPrice: number;
|
|
35
|
+
paymentType: string;
|
|
36
|
+
orderNumber: number;
|
|
37
|
+
tickets: IPaidTicket[];
|
|
38
|
+
products: IPaidProduct[];
|
|
39
|
+
extraFee: number;
|
|
40
|
+
currency: Currencies;
|
|
41
|
+
promoCodes: IPromoCode[] | null;
|
|
42
|
+
}
|
|
43
|
+
export interface IAllowedPaymentMethod {
|
|
44
|
+
enabledPaymentInstruments: IPaymentInstrument[];
|
|
45
|
+
}
|
|
46
|
+
export interface IPaymentInstrument {
|
|
47
|
+
enabledSwifts: IPaymentSwift[] | null;
|
|
48
|
+
enabledBnplTypes: IPaymentBnplType[] | null;
|
|
49
|
+
group: string;
|
|
50
|
+
image: IPaymentImage;
|
|
51
|
+
label: IPaymentLabel;
|
|
52
|
+
paymentInstrument: string;
|
|
53
|
+
}
|
|
54
|
+
export interface IPaymentSwift {
|
|
55
|
+
image: IPaymentImage;
|
|
56
|
+
isOnline: boolean;
|
|
57
|
+
label: IPaymentLabel;
|
|
58
|
+
swift: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IPaymentBnplType {
|
|
61
|
+
image: IPaymentImage;
|
|
62
|
+
bnplType: boolean;
|
|
63
|
+
label: IPaymentLabel;
|
|
64
|
+
}
|
|
65
|
+
export interface IPaymentImage {
|
|
66
|
+
large: string;
|
|
67
|
+
normal: string;
|
|
68
|
+
}
|
|
69
|
+
export type IPaymentLabel = Record<string, string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ColorSchema = 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'error';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IFile } from '@utils/types/file.type';
|
|
2
|
+
import { IBase } from '@utils/types/global.type';
|
|
3
|
+
import { Currencies } from '@utils/data/currency';
|
|
4
|
+
export type LocalizedLabel = Record<string, string>;
|
|
5
|
+
export interface IPaymentMethod extends IBase {
|
|
6
|
+
type: string;
|
|
7
|
+
currency: Currencies;
|
|
8
|
+
label: LocalizedLabel;
|
|
9
|
+
enabled: boolean;
|
|
10
|
+
options: IPaymentOption[];
|
|
11
|
+
provider: string;
|
|
12
|
+
image: IFile;
|
|
13
|
+
feeType: string;
|
|
14
|
+
feeValue: number;
|
|
15
|
+
}
|
|
16
|
+
export interface IPaymentOption extends IBase {
|
|
17
|
+
category: string;
|
|
18
|
+
type: string;
|
|
19
|
+
label: LocalizedLabel;
|
|
20
|
+
image: IFile;
|
|
21
|
+
isOnline: boolean;
|
|
22
|
+
enabled: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
export interface IPlace extends IBase {
|
|
5
|
+
name: string;
|
|
6
|
+
slug: string;
|
|
7
|
+
image: IFile | null;
|
|
8
|
+
address: string;
|
|
9
|
+
zip: string;
|
|
10
|
+
city: string;
|
|
11
|
+
country: string;
|
|
12
|
+
countryCode: string;
|
|
13
|
+
lat: string;
|
|
14
|
+
long: string;
|
|
15
|
+
website: string | null;
|
|
16
|
+
capacity: number | null;
|
|
17
|
+
category: ITranslation | null;
|
|
18
|
+
likedByCurrentUser?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { ProductParameterTypes } from '@utils/data/product';
|
|
3
|
+
import { ITranslation } from '@utils/types/translation.type';
|
|
4
|
+
export interface IProductParameter extends IBase {
|
|
5
|
+
name: ITranslation;
|
|
6
|
+
type: ProductParameterTypes;
|
|
7
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { ICompany } from '@utils/types/company.type';
|
|
3
|
+
import { ITranslation } from '@utils/types/translation.type';
|
|
4
|
+
import { IProductImage } from '@utils/types/product-image.type';
|
|
5
|
+
import { IProductVariant } from '@utils/types/product-variant.type';
|
|
6
|
+
import { IProductParameter } from '@utils/types/product-parameter.type';
|
|
7
|
+
import { Currencies } from '@utils/data/currency';
|
|
8
|
+
import { IFile } from '@utils/types/file.type';
|
|
9
|
+
export interface IProduct extends IBase {
|
|
10
|
+
company: ICompany;
|
|
11
|
+
currency: Currencies;
|
|
12
|
+
sku: string;
|
|
13
|
+
ean: string | null;
|
|
14
|
+
name: string;
|
|
15
|
+
priceWithoutVat: number;
|
|
16
|
+
priceWithVat: number;
|
|
17
|
+
vatPercentage: number;
|
|
18
|
+
description: string;
|
|
19
|
+
width: number;
|
|
20
|
+
height: number;
|
|
21
|
+
depth: number;
|
|
22
|
+
weight: number;
|
|
23
|
+
category: ITranslation;
|
|
24
|
+
verified: boolean;
|
|
25
|
+
previewImage: IFile;
|
|
26
|
+
images: IProductImage[];
|
|
27
|
+
variants: IProductVariant[];
|
|
28
|
+
productParameter: IProductParameter;
|
|
29
|
+
available: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface IEventProductForm {
|
|
32
|
+
eventProductVariantId: number;
|
|
33
|
+
productVariantId: number;
|
|
34
|
+
quantity: number;
|
|
35
|
+
price: number;
|
|
36
|
+
excludedShippingMethodIds: number[];
|
|
37
|
+
}
|
|
38
|
+
export interface IEventProductVariantForm {
|
|
39
|
+
variantId: number;
|
|
40
|
+
priceWithoutVat: number;
|
|
41
|
+
priceWithVat: number;
|
|
42
|
+
vatPercentage: number;
|
|
43
|
+
}
|
|
44
|
+
export interface IPaidProduct {
|
|
45
|
+
name: string;
|
|
46
|
+
variantName: string;
|
|
47
|
+
price: number;
|
|
48
|
+
currency: Currencies;
|
|
49
|
+
imageUrl: string;
|
|
50
|
+
}
|
|
51
|
+
export interface ISelectedProductVariant {
|
|
52
|
+
variantId: number;
|
|
53
|
+
eventId: string;
|
|
54
|
+
name: string;
|
|
55
|
+
price: number;
|
|
56
|
+
quantity: number;
|
|
57
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { IEvent } from '@utils/types/event.type';
|
|
3
|
+
import { IArtist } from '@utils/types/artist.type';
|
|
4
|
+
import { IFile } from '@utils/types/file.type';
|
|
5
|
+
import { Currencies } from '@utils/data/currency';
|
|
6
|
+
export interface IProject extends IBase {
|
|
7
|
+
name: string;
|
|
8
|
+
slug: string;
|
|
9
|
+
description: string;
|
|
10
|
+
organizer: string;
|
|
11
|
+
image: IFile | null;
|
|
12
|
+
hideImageOnMobile: boolean;
|
|
13
|
+
background: IFile | null;
|
|
14
|
+
events: IEvent[];
|
|
15
|
+
artists: IArtist[];
|
|
16
|
+
minStartDate: Date | null;
|
|
17
|
+
maxStartDate: Date | null;
|
|
18
|
+
minPrice: number;
|
|
19
|
+
maxPrice: number;
|
|
20
|
+
price: Record<Currencies, {
|
|
21
|
+
min?: number;
|
|
22
|
+
max?: number;
|
|
23
|
+
}>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { PromoCodeTypes } from '@utils/data/promo-code';
|
|
3
|
+
export interface IPromoCode extends IBase {
|
|
4
|
+
name: string;
|
|
5
|
+
code: string;
|
|
6
|
+
value: number;
|
|
7
|
+
type: PromoCodeTypes;
|
|
8
|
+
startDate: Date | null;
|
|
9
|
+
endDate: Date | null;
|
|
10
|
+
active: boolean;
|
|
11
|
+
combine: string;
|
|
12
|
+
maxUses: number | null;
|
|
13
|
+
minPurchaseAmount: number;
|
|
14
|
+
applyDiscountToProducts: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IEvent } from '@utils/types/event.type';
|
|
2
|
+
import { IBase } from '@utils/types/global.type';
|
|
3
|
+
import { IReleaseShort } from '@utils/types/release.type';
|
|
4
|
+
import { IBaseLocale } from '@utils/types/locale.type';
|
|
5
|
+
export interface IReleaseCategory extends IBase {
|
|
6
|
+
name: string;
|
|
7
|
+
event: IEvent;
|
|
8
|
+
groupQuantity: number;
|
|
9
|
+
releases: IReleaseShort[];
|
|
10
|
+
translation: IReleaseCategoryTranslation[];
|
|
11
|
+
totalTickets: number;
|
|
12
|
+
}
|
|
13
|
+
interface IReleaseCategoryTranslation extends IBaseLocale {
|
|
14
|
+
name: string;
|
|
15
|
+
description: string;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { IReleaseCategory } from '@utils/types/release-category.type';
|
|
3
|
+
import { IEventProduct } from '@utils/types/event-product.type';
|
|
4
|
+
import { IEventExtraField } from '@utils/types/extra-field.type';
|
|
5
|
+
export interface IReleaseShort {
|
|
6
|
+
id: number;
|
|
7
|
+
name: string;
|
|
8
|
+
price: number;
|
|
9
|
+
availableTickets: number;
|
|
10
|
+
releaseCategoryName: string;
|
|
11
|
+
locked: boolean;
|
|
12
|
+
order: number;
|
|
13
|
+
description: string;
|
|
14
|
+
product: IEventProduct | null;
|
|
15
|
+
extraFields: IEventExtraField[] | null;
|
|
16
|
+
}
|
|
17
|
+
export interface IRelease extends IBase {
|
|
18
|
+
name: string;
|
|
19
|
+
price: number;
|
|
20
|
+
quantity: number;
|
|
21
|
+
order: number;
|
|
22
|
+
releaseCategory: IReleaseCategory;
|
|
23
|
+
soldOut: boolean;
|
|
24
|
+
hidden: boolean;
|
|
25
|
+
totalTickets: number;
|
|
26
|
+
startDate: string | null;
|
|
27
|
+
endDate: string | null;
|
|
28
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IBase } from '@utils/types/global.type';
|
|
2
|
+
import { Currencies } from '@utils/data/currency';
|
|
3
|
+
import { ShippingTypes } from '@utils/data/shipping-method';
|
|
4
|
+
export interface IShippingMethod extends IBase {
|
|
5
|
+
type: ShippingTypes;
|
|
6
|
+
price: number;
|
|
7
|
+
currency: Currencies;
|
|
8
|
+
}
|
|
9
|
+
export interface IShippingMethodFilter {
|
|
10
|
+
currency?: Currencies;
|
|
11
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { IPromoCode } from '@utils/types/promo-code.type';
|
|
2
|
+
import { ITicketFormTicket } from '@utils/types/ticket.type';
|
|
3
|
+
import { IEventProductForm } from '@utils/types/product.type';
|
|
4
|
+
import { Dayjs } from 'dayjs';
|
|
5
|
+
import { ShoppingCartStatus } from '@utils/data/shopping-cart';
|
|
6
|
+
export interface ICalculateShoppingCartDto {
|
|
7
|
+
uuid?: string | null;
|
|
8
|
+
eventId: number;
|
|
9
|
+
tickets?: {
|
|
10
|
+
[eventId: string]: ITicketFormTicket[];
|
|
11
|
+
};
|
|
12
|
+
promoCodeIds?: number[] | null;
|
|
13
|
+
products?: {
|
|
14
|
+
[eventId: string]: IEventProductForm[];
|
|
15
|
+
};
|
|
16
|
+
eventTimeslotId?: number;
|
|
17
|
+
language?: string;
|
|
18
|
+
shipping?: {
|
|
19
|
+
shippingMethodId: number | null;
|
|
20
|
+
branchId: string | null;
|
|
21
|
+
price: number;
|
|
22
|
+
};
|
|
23
|
+
firstName?: string | null;
|
|
24
|
+
lastName?: string | null;
|
|
25
|
+
email?: string | null;
|
|
26
|
+
phone?: string | null;
|
|
27
|
+
birthdate?: Dayjs | null;
|
|
28
|
+
gender?: string | null;
|
|
29
|
+
paymentMethodId?: number | null;
|
|
30
|
+
paymentMethodOptionId?: number | null;
|
|
31
|
+
ticketInsurance?: boolean;
|
|
32
|
+
smsNotification?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface ITicketInsurance {
|
|
35
|
+
enabled: boolean;
|
|
36
|
+
price: number;
|
|
37
|
+
pricePerUnit: number;
|
|
38
|
+
}
|
|
39
|
+
export interface ISmsNotification {
|
|
40
|
+
enabled: boolean;
|
|
41
|
+
price: number;
|
|
42
|
+
}
|
|
43
|
+
export interface IShoppingCartDto {
|
|
44
|
+
id: number;
|
|
45
|
+
uuid: string;
|
|
46
|
+
eventId: number;
|
|
47
|
+
status: ShoppingCartStatus;
|
|
48
|
+
tickets: {
|
|
49
|
+
[eventId: string]: ITicketFormTicket[];
|
|
50
|
+
};
|
|
51
|
+
products: {
|
|
52
|
+
[eventId: string]: IEventProductForm[];
|
|
53
|
+
};
|
|
54
|
+
originalPrice: number;
|
|
55
|
+
totalPrice: number;
|
|
56
|
+
ticketsTotalPrice: number;
|
|
57
|
+
ticketProductsTotal: number;
|
|
58
|
+
productsTotalPrice: number;
|
|
59
|
+
shippingFee: number;
|
|
60
|
+
serviceFee: number;
|
|
61
|
+
paymentMethodFee: number;
|
|
62
|
+
promoCodes: IPromoCode[];
|
|
63
|
+
email: string | null;
|
|
64
|
+
phone: string | null;
|
|
65
|
+
firstName: string | null;
|
|
66
|
+
lastName: string | null;
|
|
67
|
+
birthdate: string | null;
|
|
68
|
+
gender: string | null;
|
|
69
|
+
shipping: {
|
|
70
|
+
shippingMethodId: number | null;
|
|
71
|
+
branchId: string | null;
|
|
72
|
+
price: number;
|
|
73
|
+
};
|
|
74
|
+
paymentMethodId: number | null;
|
|
75
|
+
paymentMethodOptionId: number | null;
|
|
76
|
+
ticketInsurance: ITicketInsurance;
|
|
77
|
+
smsNotification: ISmsNotification;
|
|
78
|
+
}
|