@verified-network/verified-custody 0.2.9 → 0.3.1
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/index.d.mts +31 -8
- package/dist/index.d.ts +31 -8
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -38,6 +38,7 @@ interface VerifiedCustodyProps {
|
|
|
38
38
|
showLogoPage?: boolean;
|
|
39
39
|
logoPageElement?: React.JSX.Element;
|
|
40
40
|
logoTimeoutTime?: number;
|
|
41
|
+
enablePhone?: boolean;
|
|
41
42
|
dashbordElement?: React.ComponentType<{
|
|
42
43
|
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
43
44
|
[key: string]: any;
|
|
@@ -51,6 +52,8 @@ interface VerifiedCustodyHelpers {
|
|
|
51
52
|
sendCreatorCompleted: (channel: "sms" | "email", cretorId: string, txId: number) => Promise<boolean>;
|
|
52
53
|
sendCreatorAcceptance: (channel: "sms" | "email", creatorId: string, coSignerId: string) => Promise<boolean>;
|
|
53
54
|
sendCreatorRejection: (channel: "sms" | "email", creatorId: string, coSignerId: string) => Promise<boolean>;
|
|
55
|
+
sendOTPVerification: (creatorUniqueId: string, channel: "sms" | "email", creatorId: string) => Promise<boolean>;
|
|
56
|
+
checkOTPVerification: (creatorUniqueId: string, creatorId: string, otp: string) => Promise<boolean>;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
declare const VerifiedCustody: (props: VerifiedCustodyProps) => React$1.JSX.Element;
|
|
@@ -72,6 +75,7 @@ declare const FTUPage: (props: {
|
|
|
72
75
|
logoTimeoutTime?: number;
|
|
73
76
|
showStartupPage?: boolean;
|
|
74
77
|
startupPageElement?: React$1.JSX.Element;
|
|
78
|
+
enablePhone?: boolean;
|
|
75
79
|
setisOnboard?: (isOnboard: boolean) => void;
|
|
76
80
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
77
81
|
setIsLoading?: (isLoading: boolean) => void;
|
|
@@ -98,19 +102,28 @@ declare const EnterPinPage: (props: {
|
|
|
98
102
|
reqTxData?: any;
|
|
99
103
|
setIsLoading: (isLoading: boolean) => void;
|
|
100
104
|
setShowDashboard?: (showDashboard: boolean) => void;
|
|
105
|
+
setShowCompleteVault?: (showDashboard: boolean) => void;
|
|
106
|
+
setUserEmail?: (userEmail: string) => void;
|
|
107
|
+
setUserNumberFmt?: (userNumberFmt: string) => void;
|
|
108
|
+
setSelectedCountry?: (selectedCountry: {
|
|
109
|
+
area: string;
|
|
110
|
+
flag: string;
|
|
111
|
+
name: string;
|
|
112
|
+
}) => void;
|
|
101
113
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
114
|
+
enablePhone?: boolean;
|
|
102
115
|
}) => React$1.JSX.Element;
|
|
103
116
|
|
|
104
117
|
declare const CreatePinPage: (props: {
|
|
105
118
|
setStep: (step: string) => void;
|
|
106
119
|
setIsLoading: (isLoading: boolean) => void;
|
|
107
|
-
setShowSuccessBtn
|
|
108
|
-
setSuccessBtnText
|
|
109
|
-
setSuccessBtnNeutText
|
|
110
|
-
setSuccessBtnFunc
|
|
111
|
-
setSuccessBtnNeutFunc
|
|
112
|
-
setActionHeaderText
|
|
113
|
-
setActionFooterText
|
|
120
|
+
setShowSuccessBtn?: (showSuccessBtn: boolean) => void;
|
|
121
|
+
setSuccessBtnText?: (successBtnText: string) => void;
|
|
122
|
+
setSuccessBtnNeutText?: (successBtnNeutText: string) => void;
|
|
123
|
+
setSuccessBtnFunc?: (successBtnFunc: any) => void;
|
|
124
|
+
setSuccessBtnNeutFunc?: (successBtnNeutFunc: any) => void;
|
|
125
|
+
setActionHeaderText?: (actionHeaderText: string) => void;
|
|
126
|
+
setActionFooterText?: (actionFooterText: string) => void;
|
|
114
127
|
userNumberFmt: string;
|
|
115
128
|
userEmail: string;
|
|
116
129
|
selectedCountry: {
|
|
@@ -142,6 +155,9 @@ declare const ContactPage: (props: {
|
|
|
142
155
|
flag: string;
|
|
143
156
|
};
|
|
144
157
|
allCountries: any;
|
|
158
|
+
noContract?: boolean;
|
|
159
|
+
helperFunctions?: VerifiedCustodyHelpers;
|
|
160
|
+
enablePhone?: boolean;
|
|
145
161
|
}) => React$1.JSX.Element;
|
|
146
162
|
|
|
147
163
|
declare const OTPPage: (props: {
|
|
@@ -156,6 +172,8 @@ declare const OTPPage: (props: {
|
|
|
156
172
|
};
|
|
157
173
|
userNumberFmt: string;
|
|
158
174
|
userEmail: string;
|
|
175
|
+
noContract?: boolean;
|
|
176
|
+
helperFunctions?: VerifiedCustodyHelpers;
|
|
159
177
|
}) => React$1.JSX.Element;
|
|
160
178
|
|
|
161
179
|
declare const AddCosignersPage: (props: {
|
|
@@ -175,10 +193,15 @@ declare const AddCosignersPage: (props: {
|
|
|
175
193
|
name: string;
|
|
176
194
|
};
|
|
177
195
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
196
|
+
enablePhone?: boolean;
|
|
178
197
|
}) => React$1.JSX.Element;
|
|
179
198
|
|
|
180
199
|
declare const hashTheString: (text: string) => string;
|
|
181
200
|
declare const encryptString: (text: string, secretKey: string) => string;
|
|
182
201
|
declare const decryptString: (encryptedText: string, secretKey: string) => string;
|
|
183
202
|
|
|
184
|
-
|
|
203
|
+
declare const VaultContextProvider: (props: {
|
|
204
|
+
children: React$1.JSX.Element;
|
|
205
|
+
}) => React$1.JSX.Element;
|
|
206
|
+
|
|
207
|
+
export { AddCosignersPage as AddCoSignersPage, ContactPage, CreatePinPage, EnterPinPage, FTUPage, OTPPage, VaultContextProvider, VerifiedCustody, type VerifiedCustodyHelpers, type VerifiedCustodyProps, type VerifiedWalletAction, type VerifiedWalletTx, type VerifiedWalletVault, decryptString, encryptString, hashTheString };
|
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ interface VerifiedCustodyProps {
|
|
|
38
38
|
showLogoPage?: boolean;
|
|
39
39
|
logoPageElement?: React.JSX.Element;
|
|
40
40
|
logoTimeoutTime?: number;
|
|
41
|
+
enablePhone?: boolean;
|
|
41
42
|
dashbordElement?: React.ComponentType<{
|
|
42
43
|
setIsLoading: React.Dispatch<React.SetStateAction<boolean>>;
|
|
43
44
|
[key: string]: any;
|
|
@@ -51,6 +52,8 @@ interface VerifiedCustodyHelpers {
|
|
|
51
52
|
sendCreatorCompleted: (channel: "sms" | "email", cretorId: string, txId: number) => Promise<boolean>;
|
|
52
53
|
sendCreatorAcceptance: (channel: "sms" | "email", creatorId: string, coSignerId: string) => Promise<boolean>;
|
|
53
54
|
sendCreatorRejection: (channel: "sms" | "email", creatorId: string, coSignerId: string) => Promise<boolean>;
|
|
55
|
+
sendOTPVerification: (creatorUniqueId: string, channel: "sms" | "email", creatorId: string) => Promise<boolean>;
|
|
56
|
+
checkOTPVerification: (creatorUniqueId: string, creatorId: string, otp: string) => Promise<boolean>;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
declare const VerifiedCustody: (props: VerifiedCustodyProps) => React$1.JSX.Element;
|
|
@@ -72,6 +75,7 @@ declare const FTUPage: (props: {
|
|
|
72
75
|
logoTimeoutTime?: number;
|
|
73
76
|
showStartupPage?: boolean;
|
|
74
77
|
startupPageElement?: React$1.JSX.Element;
|
|
78
|
+
enablePhone?: boolean;
|
|
75
79
|
setisOnboard?: (isOnboard: boolean) => void;
|
|
76
80
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
77
81
|
setIsLoading?: (isLoading: boolean) => void;
|
|
@@ -98,19 +102,28 @@ declare const EnterPinPage: (props: {
|
|
|
98
102
|
reqTxData?: any;
|
|
99
103
|
setIsLoading: (isLoading: boolean) => void;
|
|
100
104
|
setShowDashboard?: (showDashboard: boolean) => void;
|
|
105
|
+
setShowCompleteVault?: (showDashboard: boolean) => void;
|
|
106
|
+
setUserEmail?: (userEmail: string) => void;
|
|
107
|
+
setUserNumberFmt?: (userNumberFmt: string) => void;
|
|
108
|
+
setSelectedCountry?: (selectedCountry: {
|
|
109
|
+
area: string;
|
|
110
|
+
flag: string;
|
|
111
|
+
name: string;
|
|
112
|
+
}) => void;
|
|
101
113
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
114
|
+
enablePhone?: boolean;
|
|
102
115
|
}) => React$1.JSX.Element;
|
|
103
116
|
|
|
104
117
|
declare const CreatePinPage: (props: {
|
|
105
118
|
setStep: (step: string) => void;
|
|
106
119
|
setIsLoading: (isLoading: boolean) => void;
|
|
107
|
-
setShowSuccessBtn
|
|
108
|
-
setSuccessBtnText
|
|
109
|
-
setSuccessBtnNeutText
|
|
110
|
-
setSuccessBtnFunc
|
|
111
|
-
setSuccessBtnNeutFunc
|
|
112
|
-
setActionHeaderText
|
|
113
|
-
setActionFooterText
|
|
120
|
+
setShowSuccessBtn?: (showSuccessBtn: boolean) => void;
|
|
121
|
+
setSuccessBtnText?: (successBtnText: string) => void;
|
|
122
|
+
setSuccessBtnNeutText?: (successBtnNeutText: string) => void;
|
|
123
|
+
setSuccessBtnFunc?: (successBtnFunc: any) => void;
|
|
124
|
+
setSuccessBtnNeutFunc?: (successBtnNeutFunc: any) => void;
|
|
125
|
+
setActionHeaderText?: (actionHeaderText: string) => void;
|
|
126
|
+
setActionFooterText?: (actionFooterText: string) => void;
|
|
114
127
|
userNumberFmt: string;
|
|
115
128
|
userEmail: string;
|
|
116
129
|
selectedCountry: {
|
|
@@ -142,6 +155,9 @@ declare const ContactPage: (props: {
|
|
|
142
155
|
flag: string;
|
|
143
156
|
};
|
|
144
157
|
allCountries: any;
|
|
158
|
+
noContract?: boolean;
|
|
159
|
+
helperFunctions?: VerifiedCustodyHelpers;
|
|
160
|
+
enablePhone?: boolean;
|
|
145
161
|
}) => React$1.JSX.Element;
|
|
146
162
|
|
|
147
163
|
declare const OTPPage: (props: {
|
|
@@ -156,6 +172,8 @@ declare const OTPPage: (props: {
|
|
|
156
172
|
};
|
|
157
173
|
userNumberFmt: string;
|
|
158
174
|
userEmail: string;
|
|
175
|
+
noContract?: boolean;
|
|
176
|
+
helperFunctions?: VerifiedCustodyHelpers;
|
|
159
177
|
}) => React$1.JSX.Element;
|
|
160
178
|
|
|
161
179
|
declare const AddCosignersPage: (props: {
|
|
@@ -175,10 +193,15 @@ declare const AddCosignersPage: (props: {
|
|
|
175
193
|
name: string;
|
|
176
194
|
};
|
|
177
195
|
helperFunctions?: VerifiedCustodyHelpers;
|
|
196
|
+
enablePhone?: boolean;
|
|
178
197
|
}) => React$1.JSX.Element;
|
|
179
198
|
|
|
180
199
|
declare const hashTheString: (text: string) => string;
|
|
181
200
|
declare const encryptString: (text: string, secretKey: string) => string;
|
|
182
201
|
declare const decryptString: (encryptedText: string, secretKey: string) => string;
|
|
183
202
|
|
|
184
|
-
|
|
203
|
+
declare const VaultContextProvider: (props: {
|
|
204
|
+
children: React$1.JSX.Element;
|
|
205
|
+
}) => React$1.JSX.Element;
|
|
206
|
+
|
|
207
|
+
export { AddCosignersPage as AddCoSignersPage, ContactPage, CreatePinPage, EnterPinPage, FTUPage, OTPPage, VaultContextProvider, VerifiedCustody, type VerifiedCustodyHelpers, type VerifiedCustodyProps, type VerifiedWalletAction, type VerifiedWalletTx, type VerifiedWalletVault, decryptString, encryptString, hashTheString };
|