sales-frontend-oz 0.0.56 → 0.0.58

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 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
- // 모든서식에 공통으로 필요한 docCd param 추가
489
+ // 모든 서식에 공통으로 필요한 docCd param 추가
490
490
  `docCd=${docCode}`,
491
- // 모든서식에 공통으로 필요한 roleCode 정보 추가
491
+ // 모든 서식에 공통으로 필요한 roleCode 정보 추가
492
492
  `roleCd=${roleCd}`,
493
- // 모든서식에 공통으로 필요한 지정대리인 정보 추가
493
+ // 모든 서식에 공통으로 필요한 지정대리인 정보 추가
494
494
  `jijungInfo=${jijungInfo}`,
495
- // 모든서식에 공통으로 필요한 TABLET 구분값 정보 추가
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}`));