sales-frontend-oz 0.0.56 → 0.0.57
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 +11 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +11 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -468,7 +468,7 @@ var getReportCountMemo = (() => {
|
|
|
468
468
|
})();
|
|
469
469
|
|
|
470
470
|
// src/oz/utils/bridge-util/create-report-util.ts
|
|
471
|
-
async function CreateOzParam({ documentList, extraData = {}, roleCd, jijungInfo = "" }) {
|
|
471
|
+
async function CreateOzParam({ documentList, extraData = {}, commonArgs = [], commonExtraParams = [], roleCd, jijungInfo = "" }) {
|
|
472
472
|
if (documentList.length === 0) {
|
|
473
473
|
throw new Error("\uBB38\uC11C\uBAA9\uB85D\uC774 \uBE44\uC5B4\uC788\uC2B5\uB2C8\uB2E4");
|
|
474
474
|
}
|
|
@@ -486,20 +486,26 @@ async function CreateOzParam({ documentList, extraData = {}, roleCd, jijungInfo
|
|
|
486
486
|
result.push(`${prefix}connection.inputjson=${JSON.stringify(data.inputJson)}`);
|
|
487
487
|
}
|
|
488
488
|
const args = [
|
|
489
|
-
//
|
|
489
|
+
// 모든 서식에 공통으로 필요한 docCd param 추가
|
|
490
490
|
`docCd=${docCode}`,
|
|
491
|
-
//
|
|
491
|
+
// 모든 서식에 공통으로 필요한 roleCode 정보 추가
|
|
492
492
|
`roleCd=${roleCd}`,
|
|
493
|
-
//
|
|
493
|
+
// 모든 서식에 공통으로 필요한 지정대리인 정보 추가
|
|
494
494
|
`jijungInfo=${jijungInfo}`,
|
|
495
|
-
//
|
|
495
|
+
// 모든 서식에 공통으로 필요한 TABLET 구분값 정보 추가
|
|
496
496
|
`TABLET=11`,
|
|
497
|
+
// 모든 서식에 공통으로 필요한 추가 args
|
|
498
|
+
...commonArgs,
|
|
499
|
+
// 특정 서식에 필요한 추가 args
|
|
497
500
|
...ensureArray(data.args)
|
|
498
501
|
];
|
|
499
502
|
args.forEach((arg, idx2) => result.push(`${prefix}connection.args${idx2 + 1}=${arg}`));
|
|
500
503
|
const extraParam = [
|
|
501
504
|
// connection.args의 갯수만큼 pcount 보정
|
|
502
505
|
`connection.pcount=${args.length}`,
|
|
506
|
+
// 모든 서식에 공통으로 필요한 추가 파라미터
|
|
507
|
+
...commonExtraParams,
|
|
508
|
+
// 특정 서식에 필요한 추가 파라미터
|
|
503
509
|
...ensureArray(data.extraParam)
|
|
504
510
|
];
|
|
505
511
|
extraParam.forEach((param) => result.push(`${prefix}${param}`));
|