sales-frontend-components 0.0.133 → 0.0.135
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.cjs.js +16 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +9 -2
- package/dist/index.esm.js +18 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +14 -14
package/dist/index.cjs.js
CHANGED
|
@@ -4124,6 +4124,20 @@ const useRemoteIdentityVerificationPopup = (config) => {
|
|
|
4124
4124
|
};
|
|
4125
4125
|
};
|
|
4126
4126
|
|
|
4127
|
+
const useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation = (options) => {
|
|
4128
|
+
return reactQuery.useMutation({
|
|
4129
|
+
mutationKey: ["confirmRemoteIdentityVerificationSystemIdentificationCard"],
|
|
4130
|
+
mutationFn: async (params) => {
|
|
4131
|
+
const response = await method.confirmRemoteIdentityVerificationSystemIdentificationCard(params);
|
|
4132
|
+
if (response.isSuccess === false) {
|
|
4133
|
+
throw new Error(`${response.code}: ${response.message}`);
|
|
4134
|
+
}
|
|
4135
|
+
return response.data;
|
|
4136
|
+
},
|
|
4137
|
+
...options
|
|
4138
|
+
});
|
|
4139
|
+
};
|
|
4140
|
+
|
|
4127
4141
|
function DudUpload() {
|
|
4128
4142
|
const [test, setTest] = React.useState();
|
|
4129
4143
|
const { mutateAsync, data } = method.useDudExternalFileUploadMutation();
|
|
@@ -4160,7 +4174,7 @@ function DudDownload() {
|
|
|
4160
4174
|
React.useEffect(() => {
|
|
4161
4175
|
console.log("data", data, data instanceof Blob, data instanceof File);
|
|
4162
4176
|
if (data instanceof Blob) {
|
|
4163
|
-
salesFrontendUtils.downloadBlob(data, "test
|
|
4177
|
+
salesFrontendUtils.downloadBlob(data, "test");
|
|
4164
4178
|
return;
|
|
4165
4179
|
}
|
|
4166
4180
|
}, [data]);
|
|
@@ -4197,6 +4211,7 @@ exports.useAddressComponent = useAddressComponent;
|
|
|
4197
4211
|
exports.useBankStockSearch = useBankStockSearch;
|
|
4198
4212
|
exports.useCamera = useCamera;
|
|
4199
4213
|
exports.useCanvasPaint = useCanvasPaint;
|
|
4214
|
+
exports.useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation = useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation;
|
|
4200
4215
|
exports.useJobSearchModal = useJobSearchModal;
|
|
4201
4216
|
exports.useJobVehicleSearchModal = useJobVehicleSearchModal;
|
|
4202
4217
|
exports.useNationalityComponent = useNationalityComponent;
|