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.d.cts CHANGED
@@ -385,16 +385,27 @@ declare function AlertDocumentLoadError(): Promise<sales_frontend_bridge.CommonO
385
385
  type CreateOzParamProps = {
386
386
  documentList: OzdFile[];
387
387
  extraData?: ExtraDataType;
388
+ /**
389
+ * 모든 문서에 공통으로 적용할 args
390
+ * - connection.arg로 전달할 `["key1=value1", "key2=value2"]` 형식의 데이터
391
+ */
392
+ commonArgs?: ExtraDataType[string]["args"];
393
+ /**
394
+ * 모든 문서에 공통으로 적용할 추가 파라미터 목록
395
+ * - `["connection.pcount=1"]`
396
+ */
397
+ commonExtraParams?: ExtraDataType[string]["extraParam"];
388
398
  /**
389
399
  * 청약을 작성하는 사람들의 roleCode 목록
390
400
  *
391
- * ex)`홍길동|11,홍길순|22`
401
+ * ex)`[{"roleCode":"FP","name":"동구시","psatAbscDvsnCode":null},{"roleCode":"11","name":"김여명","psatAbscDvsnCode":null}]`
392
402
  */
393
403
  roleCd: string;
394
404
  /**
395
405
  * 지정대리인 정보
396
406
  * - 지정대리인이 없을때 ''
397
407
  * - 지정대리인이 1명일때 ex) `성명|주민등록번호|관계명|관계코드`
408
+ * - `connection.args3=jijungInfo=김이박|9201111mLLNeL|배우자|02`
398
409
  * - 지정대리인이 2명일때 ex) `성명|주민등록번호|관계명|관계코드`,`성명|주민등록번호|관계명|관계코드`
399
410
  */
400
411
  jijungInfo?: string;
@@ -402,7 +413,7 @@ type CreateOzParamProps = {
402
413
  /**
403
414
  * OZ 리포트 최초 생성시 OZ에 넘길 파라미터를 생성하는 함수
404
415
  */
405
- declare function CreateOzParam({ documentList, extraData, roleCd, jijungInfo }: CreateOzParamProps): Promise<string[]>;
416
+ declare function CreateOzParam({ documentList, extraData, commonArgs, commonExtraParams, roleCd, jijungInfo }: CreateOzParamProps): Promise<string[]>;
406
417
  /**
407
418
  * 모든 문서에 대해 checkeForm을 Y로 설정하는 명령을 순차적으로 한 번씩 호출합니다.
408
419
  *
package/dist/index.d.ts CHANGED
@@ -385,16 +385,27 @@ declare function AlertDocumentLoadError(): Promise<sales_frontend_bridge.CommonO
385
385
  type CreateOzParamProps = {
386
386
  documentList: OzdFile[];
387
387
  extraData?: ExtraDataType;
388
+ /**
389
+ * 모든 문서에 공통으로 적용할 args
390
+ * - connection.arg로 전달할 `["key1=value1", "key2=value2"]` 형식의 데이터
391
+ */
392
+ commonArgs?: ExtraDataType[string]["args"];
393
+ /**
394
+ * 모든 문서에 공통으로 적용할 추가 파라미터 목록
395
+ * - `["connection.pcount=1"]`
396
+ */
397
+ commonExtraParams?: ExtraDataType[string]["extraParam"];
388
398
  /**
389
399
  * 청약을 작성하는 사람들의 roleCode 목록
390
400
  *
391
- * ex)`홍길동|11,홍길순|22`
401
+ * ex)`[{"roleCode":"FP","name":"동구시","psatAbscDvsnCode":null},{"roleCode":"11","name":"김여명","psatAbscDvsnCode":null}]`
392
402
  */
393
403
  roleCd: string;
394
404
  /**
395
405
  * 지정대리인 정보
396
406
  * - 지정대리인이 없을때 ''
397
407
  * - 지정대리인이 1명일때 ex) `성명|주민등록번호|관계명|관계코드`
408
+ * - `connection.args3=jijungInfo=김이박|9201111mLLNeL|배우자|02`
398
409
  * - 지정대리인이 2명일때 ex) `성명|주민등록번호|관계명|관계코드`,`성명|주민등록번호|관계명|관계코드`
399
410
  */
400
411
  jijungInfo?: string;
@@ -402,7 +413,7 @@ type CreateOzParamProps = {
402
413
  /**
403
414
  * OZ 리포트 최초 생성시 OZ에 넘길 파라미터를 생성하는 함수
404
415
  */
405
- declare function CreateOzParam({ documentList, extraData, roleCd, jijungInfo }: CreateOzParamProps): Promise<string[]>;
416
+ declare function CreateOzParam({ documentList, extraData, commonArgs, commonExtraParams, roleCd, jijungInfo }: CreateOzParamProps): Promise<string[]>;
406
417
  /**
407
418
  * 모든 문서에 대해 checkeForm을 Y로 설정하는 명령을 순차적으로 한 번씩 호출합니다.
408
419
  *
package/dist/index.js CHANGED
@@ -466,7 +466,7 @@ var getReportCountMemo = (() => {
466
466
  })();
467
467
 
468
468
  // src/oz/utils/bridge-util/create-report-util.ts
469
- async function CreateOzParam({ documentList, extraData = {}, roleCd, jijungInfo = "" }) {
469
+ async function CreateOzParam({ documentList, extraData = {}, commonArgs = [], commonExtraParams = [], roleCd, jijungInfo = "" }) {
470
470
  if (documentList.length === 0) {
471
471
  throw new Error("\uBB38\uC11C\uBAA9\uB85D\uC774 \uBE44\uC5B4\uC788\uC2B5\uB2C8\uB2E4");
472
472
  }
@@ -484,20 +484,26 @@ async function CreateOzParam({ documentList, extraData = {}, roleCd, jijungInfo
484
484
  result.push(`${prefix}connection.inputjson=${JSON.stringify(data.inputJson)}`);
485
485
  }
486
486
  const args = [
487
- // 모든서식에 공통으로 필요한 docCd param 추가
487
+ // 모든 서식에 공통으로 필요한 docCd param 추가
488
488
  `docCd=${docCode}`,
489
- // 모든서식에 공통으로 필요한 roleCode 정보 추가
489
+ // 모든 서식에 공통으로 필요한 roleCode 정보 추가
490
490
  `roleCd=${roleCd}`,
491
- // 모든서식에 공통으로 필요한 지정대리인 정보 추가
491
+ // 모든 서식에 공통으로 필요한 지정대리인 정보 추가
492
492
  `jijungInfo=${jijungInfo}`,
493
- // 모든서식에 공통으로 필요한 TABLET 구분값 정보 추가
493
+ // 모든 서식에 공통으로 필요한 TABLET 구분값 정보 추가
494
494
  `TABLET=11`,
495
+ // 모든 서식에 공통으로 필요한 추가 args
496
+ ...commonArgs,
497
+ // 특정 서식에 필요한 추가 args
495
498
  ...ensureArray(data.args)
496
499
  ];
497
500
  args.forEach((arg, idx2) => result.push(`${prefix}connection.args${idx2 + 1}=${arg}`));
498
501
  const extraParam = [
499
502
  // connection.args의 갯수만큼 pcount 보정
500
503
  `connection.pcount=${args.length}`,
504
+ // 모든 서식에 공통으로 필요한 추가 파라미터
505
+ ...commonExtraParams,
506
+ // 특정 서식에 필요한 추가 파라미터
501
507
  ...ensureArray(data.extraParam)
502
508
  ];
503
509
  extraParam.forEach((param) => result.push(`${prefix}${param}`));