@voxket-ai/events-sdk 1.0.27 → 1.0.29
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/ApiClient.d.ts +1 -0
- package/dist/components/CustomQrPayment.d.ts +21 -0
- package/dist/components/DynamicForm.d.ts +1 -1
- package/dist/components/FieldControl.d.ts +13 -0
- package/dist/events-sdk.js +1100 -794
- package/dist/events-sdk.umd.cjs +4 -4
- package/dist/utils/formUtils.d.ts +3 -0
- package/package.json +1 -1
package/dist/api/ApiClient.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare class ApiClient {
|
|
|
9
9
|
getFormSchema(): Promise<any>;
|
|
10
10
|
submitRegistration(payload: any): Promise<any>;
|
|
11
11
|
verifyPayment(registrationNumber: string): Promise<any>;
|
|
12
|
+
submitCustomQrPayment(registrationNumber: string, answers: Record<string, any>): Promise<any>;
|
|
12
13
|
trackProgress(payload: any): Promise<any>;
|
|
13
14
|
getDraft(xrefId: string): Promise<any>;
|
|
14
15
|
getDraftByEmail(email: string): Promise<any>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ApiClient } from '../api/ApiClient';
|
|
3
|
+
export interface CustomQrField {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
type: 'text' | 'number' | 'file';
|
|
7
|
+
is_required: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface Props {
|
|
10
|
+
qrUrl: string | null;
|
|
11
|
+
schema: CustomQrField[];
|
|
12
|
+
amount?: string | null;
|
|
13
|
+
currency?: string | null;
|
|
14
|
+
registrationNumber: string | null;
|
|
15
|
+
apiClient: ApiClient;
|
|
16
|
+
primaryColor: string;
|
|
17
|
+
isDark: boolean;
|
|
18
|
+
onSubmitted: (answers: Record<string, any>) => void;
|
|
19
|
+
}
|
|
20
|
+
export declare const CustomQrPayment: React.FC<Props>;
|
|
21
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const DynamicForm: ({ schema, onSubmit, onBack, theme, displayMode, isExpanded, onToggleExpand, onClose, onChange, initialValues, fileAnswers, isDark, apiClient,
|
|
2
|
+
export declare const DynamicForm: ({ schema, onSubmit, onBack, theme, displayMode, isExpanded, onToggleExpand, onClose, onChange, initialValues, fileAnswers, isDark, apiClient, onError, onEvent, backgroundStyle, ticketType, showReviewFields, }: any) => React.JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface FieldControlProps {
|
|
2
|
+
field: any;
|
|
3
|
+
value: any;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
className: string;
|
|
6
|
+
isDark?: boolean;
|
|
7
|
+
id?: string;
|
|
8
|
+
part?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const FieldControl: ({ field, value, onChange, className, isDark, id, part, disabled, placeholder }: FieldControlProps) => import("react").JSX.Element;
|
|
13
|
+
export {};
|