sales-frontend-components 0.0.132 → 0.0.134
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 +64 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +13 -2
- package/dist/index.esm.js +65 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +14 -14
package/dist/index.cjs.js
CHANGED
|
@@ -4124,12 +4124,75 @@ 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
|
+
|
|
4141
|
+
function DudUpload() {
|
|
4142
|
+
const [test, setTest] = React.useState();
|
|
4143
|
+
const { mutateAsync, data } = method.useDudExternalFileUploadMutation();
|
|
4144
|
+
const up = async () => {
|
|
4145
|
+
const b = await salesFrontendUtils.fileToBase64(test.target.files[0]);
|
|
4146
|
+
const f = salesFrontendUtils.base64ToFile(b, "test.png");
|
|
4147
|
+
mutateAsync({
|
|
4148
|
+
data: f,
|
|
4149
|
+
//테스트시, 가능한 증번 입력
|
|
4150
|
+
fileIdentifierValue: "123123123",
|
|
4151
|
+
preservationTerm: 1
|
|
4152
|
+
});
|
|
4153
|
+
};
|
|
4154
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4155
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "file", onChange: setTest }),
|
|
4156
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "button", value: "up", onClick: up }),
|
|
4157
|
+
/* @__PURE__ */ jsxRuntime.jsx("br", {}),
|
|
4158
|
+
JSON.stringify(data)
|
|
4159
|
+
] });
|
|
4160
|
+
}
|
|
4161
|
+
|
|
4162
|
+
function DudDownload() {
|
|
4163
|
+
const [fileId, setFileId] = React.useState("");
|
|
4164
|
+
const [enabled, setEnable] = React.useState(false);
|
|
4165
|
+
const { data } = method.useDudExternalFileDownloadQuery(
|
|
4166
|
+
{
|
|
4167
|
+
fileMgmtId: fileId,
|
|
4168
|
+
outputType: "BINARY"
|
|
4169
|
+
},
|
|
4170
|
+
{
|
|
4171
|
+
enabled
|
|
4172
|
+
}
|
|
4173
|
+
);
|
|
4174
|
+
React.useEffect(() => {
|
|
4175
|
+
console.log("data", data, data instanceof Blob, data instanceof File);
|
|
4176
|
+
if (data instanceof Blob) {
|
|
4177
|
+
salesFrontendUtils.downloadBlob(data, "test");
|
|
4178
|
+
return;
|
|
4179
|
+
}
|
|
4180
|
+
}, [data]);
|
|
4181
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
4182
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "text", value: fileId, onChange: (e) => setFileId(e.target.value) }),
|
|
4183
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", { type: "button", value: "down", onClick: () => setEnable(true) }),
|
|
4184
|
+
JSON.stringify(data)
|
|
4185
|
+
] });
|
|
4186
|
+
}
|
|
4187
|
+
|
|
4127
4188
|
exports.Attachment = Attachment;
|
|
4128
4189
|
exports.BankStockSearchModal = BankStockSearchModal;
|
|
4129
4190
|
exports.CODES = CODES;
|
|
4130
4191
|
exports.CustomerSearch = CustomerSearch;
|
|
4131
4192
|
exports.CustomerSearchModal = CustomerSearchModal;
|
|
4132
4193
|
exports.DeaCustomerSearchModal = DeaCustomerSearchModal;
|
|
4194
|
+
exports.DudDownload = DudDownload;
|
|
4195
|
+
exports.DudUpload = DudUpload;
|
|
4133
4196
|
exports.EmployeeSearchModal = EmployeeSearchModal;
|
|
4134
4197
|
exports.FormCheckbox = FormCheckbox;
|
|
4135
4198
|
exports.FormCheckboxButton = FormCheckboxButton;
|
|
@@ -4148,6 +4211,7 @@ exports.useAddressComponent = useAddressComponent;
|
|
|
4148
4211
|
exports.useBankStockSearch = useBankStockSearch;
|
|
4149
4212
|
exports.useCamera = useCamera;
|
|
4150
4213
|
exports.useCanvasPaint = useCanvasPaint;
|
|
4214
|
+
exports.useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation = useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation;
|
|
4151
4215
|
exports.useJobSearchModal = useJobSearchModal;
|
|
4152
4216
|
exports.useJobVehicleSearchModal = useJobVehicleSearchModal;
|
|
4153
4217
|
exports.useNationalityComponent = useNationalityComponent;
|