tf-checkout-react 1.0.92 → 1.0.96-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +7 -2
- package/dist/components/billing-info-container/utils.d.ts +2 -1
- package/dist/components/ticketsContainer/ReferralLogic.d.ts +5 -0
- package/dist/tf-checkout-react.cjs.development.js +219 -122
- package/dist/tf-checkout-react.cjs.development.js.map +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js +1 -1
- package/dist/tf-checkout-react.cjs.production.min.js.map +1 -1
- package/dist/tf-checkout-react.esm.js +219 -122
- package/dist/tf-checkout-react.esm.js.map +1 -1
- package/dist/utils/cookies.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/package.json +2 -2
- package/src/api/index.ts +31 -12
- package/src/components/billing-info-container/index.tsx +13 -10
- package/src/components/billing-info-container/utils.ts +11 -1
- package/src/components/confirmationContainer/social-buttons.tsx +3 -0
- package/src/components/loginModal/index.tsx +6 -41
- package/src/components/paymentContainer/index.tsx +18 -5
- package/src/components/ticketsContainer/ReferralLogic.tsx +33 -0
- package/src/components/ticketsContainer/TicketsSection.tsx +1 -1
- package/src/components/ticketsContainer/index.tsx +4 -1
- package/src/utils/cookies.ts +28 -0
- package/src/utils/index.ts +1 -0
package/dist/api/index.d.ts
CHANGED
|
@@ -13,13 +13,17 @@ export declare function getTickets(id: string | number, promoCode: string): Prom
|
|
|
13
13
|
export declare const addToCart: (id: string | number, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
14
14
|
export declare const getCart: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
15
15
|
export declare const postOnCheckout: (data: any, accessToken: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
16
|
-
export declare const authorize: (data:
|
|
16
|
+
export declare const authorize: (data: {
|
|
17
|
+
email: string;
|
|
18
|
+
password: string;
|
|
19
|
+
}) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
17
20
|
export declare const register: (data: FormData) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
18
21
|
export declare const getAccessToken: (data: FormData) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
19
22
|
export declare const getPaymentData: (hash: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
20
23
|
export declare const handlePaymentData: (orderHash: string, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
21
24
|
export declare const handlePaymentSuccess: (orderHash: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
22
|
-
export declare const
|
|
25
|
+
export declare const handleFreeSuccess: (orderHash: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
26
|
+
export declare const getProfileData: (accessToken?: string | undefined) => Promise<any>;
|
|
23
27
|
export declare const getCountries: () => Promise<import("axios").AxiosResponse<any, any>>;
|
|
24
28
|
export declare const getConfirmationData: (orderHash: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
25
29
|
export declare const getStates: (countryId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
@@ -27,4 +31,5 @@ export declare const getOrders: (page: number, limit: number, eventSlug: string)
|
|
|
27
31
|
export declare const getOrderDetails: (orderId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
28
32
|
export declare const addToWaitingList: (id: number, data: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
29
33
|
export declare const getConditions: (eventId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
34
|
+
export declare const postReferralVisits: (eventId: string, referralId: string) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
30
35
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IGroupItem } from '../../types';
|
|
2
|
+
import { FormikValues } from 'formik';
|
|
2
3
|
export interface ILoggedInValues {
|
|
3
4
|
emailLogged?: string;
|
|
4
5
|
firstNameLogged?: string;
|
|
@@ -48,6 +49,6 @@ export declare const setLoggedUserData: (data: IUserData) => {
|
|
|
48
49
|
export declare const createCheckoutDataBody: (ticketsQuantity: number, values?: IValues, logedInValues?: ILoggedInValues, includeDob?: boolean) => ICheckoutBody;
|
|
49
50
|
export declare const getValidateFunctions: (element: IGroupItem, states: {
|
|
50
51
|
[key: string]: any;
|
|
51
|
-
}[]) => (...value: any) => any;
|
|
52
|
+
}[], values: FormikValues) => (...value: any) => any;
|
|
52
53
|
export declare const assingUniqueIds: (data: any) => any;
|
|
53
54
|
export {};
|