sales-frontend-oz 0.0.64 → 0.0.66
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 +12 -73
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -11
- package/dist/index.d.ts +5 -11
- package/dist/index.js +14 -73
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -243,23 +243,18 @@ async function AlertDocumentLoadError() {
|
|
|
243
243
|
|
|
244
244
|
// src/internal/const/test-data.ts
|
|
245
245
|
[
|
|
246
|
-
{ name: "
|
|
247
|
-
{ name: "
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
// { name: '[C1200]대면설명확인서', doc: [{ docCode: 'C1200', fileID: 't7yFAoCPgay4RKkAA' }] },
|
|
259
|
-
// { name: '[C1300]계약체결고지의무확인서', doc: [{ docCode: 'C1300', fileID: 'WdUzi6CPgaccbKkAA' }] },
|
|
260
|
-
// { name: '[C1400]보험상품비교설명확인서', doc: [{ docCode: 'C1400', fileID: 'kgoT28CPgaf4YKkAA' }] },
|
|
261
|
-
// // C0200은 스크립트 작업이 안되어있어서 서명테스트 안됨
|
|
262
|
-
// { name: '[C0200]고객거래확인서', doc: [{ docCode: 'C0200', fileID: '5QJ3eSCPlEDWDKkAA' }] },
|
|
246
|
+
{ "name": "\uAC1C\uC778(\uC2E0\uC6A9)\uC815\uBCF4\uC81C\uACF5 \uB3D9\uC758\uC11C", "doc": [{ "docCode": "C0400", "fileID": "07Ccx0CTiLNQXKkAA" }] },
|
|
247
|
+
{ "name": "\uC0C1\uD488\uC18C\uAC1C\uB3D9\uC758\uC11C(\uC0C1\uC138)", "doc": [{ "docCode": "C0401", "fileID": "WH8CfHCTiLNQWKkAA" }] },
|
|
248
|
+
{ "name": "\uACE0\uAC1D\uAD8C\uB9AC \uC548\uB0B4\uBB38", "doc": [{ "docCode": "C0100", "fileID": "XvfJ76CTiLKCsKkAA" }] },
|
|
249
|
+
{ "name": "\uC804\uC790\uC11C\uBA85\uC5D0 \uC758\uD55C \uBCF4\uD5D8\uACC4\uC57D\uCCB4\uACB0 \uB3D9\uC758\uC11C", "doc": [{ "docCode": "B0101", "fileID": "vvOxRSCTiLNT_KkAI" }] },
|
|
250
|
+
{ "name": "\uBCF4\uD5D8\uACC4\uC57D\uB300\uCD9C \uC815\uBCF4\uB3D9\uC758\uC11C", "doc": [{ "docCode": "A2215", "fileID": "P0gdb3CTiLNQUKkAA" }] },
|
|
251
|
+
{ "name": "\uC0C1\uD488\uC124\uBA85\uC11C \uD68C\uC0AC\uBCF4\uAD00\uC6A9", "doc": [{ "docCode": "A0900", "fileID": "jAfVbYCTiLMmFKkAA" }] },
|
|
252
|
+
{ "name": "\uCCAD\uC57D\uC11C", "doc": [{ "docCode": "A0010", "fileID": "ubBaPyCTiLLUYKkAA" }] },
|
|
253
|
+
{ "name": "\uACC4\uC57D\uC804\uC54C\uB9B4\uC758\uBB34\uC0AC\uD56D (\uC77C\uBC18+ \uD0DC\uC544\uACE0\uC9C0\uC6A9)", "doc": [{ "docCode": "A2832", "fileID": "8LUd3MCTiLL-AKkAA" }] },
|
|
254
|
+
{ "name": "\uAE08\uC735\uC18C\uBE44\uC790\uBCF4\uD638\uB97C \uC704\uD55C \uACC4\uC57D\uCCB4\uACB0 \uACE0\uC9C0\uC758\uBB34 \uD655\uC778\uC11C", "doc": [{ "docCode": "C1300", "fileID": "jR3ATWCTiLKnxKkAA" }] },
|
|
255
|
+
{ "name": "\uCCAD\uC57D\uBD80\uC18D\uC815\uBCF4\uD655\uC778\uC11C", "doc": [{ "docCode": "A1500", "fileID": "W4KUwOCTiLKqJKkAI" }] },
|
|
256
|
+
{ "name": "\uB300\uBA74\uC124\uBA85 \uD655\uC778\uC11C", "doc": [{ "docCode": "C1200", "fileID": "PMiXBQCTiLKrSKkAI" }] },
|
|
257
|
+
{ "name": "\uC644\uC804\uD310\uB9E4\uC548\uB0B4 \uD655\uC778\uC11C", "doc": [{ "docCode": "C1100", "fileID": "Ecc4ikCTiLKqkKkAA" }] }
|
|
263
258
|
].map((i) => ({
|
|
264
259
|
...i,
|
|
265
260
|
// 모든 서명 입력이 완료되었는지 여부 (클라이언트에서 상태로 관리)
|
|
@@ -307,60 +302,6 @@ async function fetchFont() {
|
|
|
307
302
|
const fontParms = Object.keys(fontMap).map((i) => `font.${i}=${fontMap[i]}`);
|
|
308
303
|
return fontParms;
|
|
309
304
|
}
|
|
310
|
-
async function postFiletoDud(imageStr) {
|
|
311
|
-
const formData = new FormData();
|
|
312
|
-
formData.append("data", salesFrontendUtils.base64ToFile(imageStr, "test.png"));
|
|
313
|
-
formData.append("fileIdentifierValue", "string");
|
|
314
|
-
formData.append("fileExtendContent1", "string");
|
|
315
|
-
formData.append("fileExtendContent2", "string");
|
|
316
|
-
formData.append("preservationTerm", "1");
|
|
317
|
-
formData.append("fileType", "png");
|
|
318
|
-
const response = await fetch("/api/v1/post/file", {
|
|
319
|
-
headers: {
|
|
320
|
-
"x-channel-appversion": "3.1",
|
|
321
|
-
"x-channel-carriername": "SK",
|
|
322
|
-
"x-channel-deviceid": "deviceid",
|
|
323
|
-
"x-channel-devicemodel": "iPHONE13",
|
|
324
|
-
"x-channel-formfactor": "Phone",
|
|
325
|
-
"x-channel-loginchannel": "DSP",
|
|
326
|
-
"x-channel-logintype": "ONPA_PIN",
|
|
327
|
-
"x-channel-networktype": "LTE",
|
|
328
|
-
"x-channel-platformversion": "15.4.1",
|
|
329
|
-
"x-channel-screenid": "ScreenId",
|
|
330
|
-
"x-dud-authorization": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJXNWRtc1g1MkVWZGV0YThJRy90YmlZY281bnVCdzRZOXhGZjlWakZzdWxnbU00YnkiLCJpYXQiOjE3NjEwNDMyNjgsImV4cCI6MTc2NjI5OTI2OH0.KDnF7ZhkmnEApGCvOcItwcHnLWe5iJu64g93GACT2yo",
|
|
331
|
-
"x-x-channel-platformname": "IOS"
|
|
332
|
-
},
|
|
333
|
-
method: "POST",
|
|
334
|
-
body: formData
|
|
335
|
-
});
|
|
336
|
-
const json = await response.json();
|
|
337
|
-
return json;
|
|
338
|
-
}
|
|
339
|
-
async function getFileFromDud(fileMgmtId) {
|
|
340
|
-
const outputType = "binary";
|
|
341
|
-
const response = await fetch("/api/v1/get/file", {
|
|
342
|
-
headers: {
|
|
343
|
-
"content-type": "application/json",
|
|
344
|
-
"x-channel-appversion": "3.1",
|
|
345
|
-
"x-channel-carriername": "SK",
|
|
346
|
-
"x-channel-deviceid": "deviceid",
|
|
347
|
-
"x-channel-devicemodel": "iPHONE13",
|
|
348
|
-
"x-channel-formfactor": "Phone",
|
|
349
|
-
"x-channel-loginchannel": "DSP",
|
|
350
|
-
"x-channel-logintype": "ONPA_PIN",
|
|
351
|
-
"x-channel-networktype": "LTE",
|
|
352
|
-
"x-channel-platformversion": "15.4.1",
|
|
353
|
-
"x-channel-screenid": "ScreenId",
|
|
354
|
-
"x-dud-authorization": "Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJXNWRtc1g1MkVWZGV0YThJRy90YmlZY281bnVCdzRZOXhGZjlWakZzdWxnbU00YnkiLCJpYXQiOjE3NjEwNDMyNjgsImV4cCI6MTc2NjI5OTI2OH0.KDnF7ZhkmnEApGCvOcItwcHnLWe5iJu64g93GACT2yo",
|
|
355
|
-
"x-x-channel-platformname": "IOS"
|
|
356
|
-
},
|
|
357
|
-
method: "POST",
|
|
358
|
-
body: JSON.stringify({ fileMgmtId, outputType })
|
|
359
|
-
});
|
|
360
|
-
const blob = await response.blob();
|
|
361
|
-
const base64String = await salesFrontendUtils.fileToBase64(blob);
|
|
362
|
-
return base64String;
|
|
363
|
-
}
|
|
364
305
|
async function CreateOzViewer(ozParam) {
|
|
365
306
|
const { promise, resolve, reject } = PromiseWithResolvers();
|
|
366
307
|
const handleTimeout = () => {
|
|
@@ -716,11 +657,9 @@ exports.fetchFont = fetchFont;
|
|
|
716
657
|
exports.getCurrentPage = getCurrentPage;
|
|
717
658
|
exports.getDebouncedValueChangeHandler = getDebouncedValueChangeHandler;
|
|
718
659
|
exports.getDraftDataHandler = getDraftDataHandler;
|
|
719
|
-
exports.getFileFromDud = getFileFromDud;
|
|
720
660
|
exports.getReportCountMemo = getReportCountMemo;
|
|
721
661
|
exports.getTotalPageMemo = getTotalPageMemo;
|
|
722
662
|
exports.getTotalPageOnAllDocuments = getTotalPageOnAllDocuments;
|
|
723
|
-
exports.postFiletoDud = postFiletoDud;
|
|
724
663
|
exports.setCheckEform = setCheckEform;
|
|
725
664
|
exports.triggerClickOnAllDocuments = triggerClickOnAllDocuments;
|
|
726
665
|
exports.triggerCropImageOnAllDocuments = triggerCropImageOnAllDocuments;
|