sales-frontend-bridge 0.0.39 → 0.0.40

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
@@ -174,21 +174,53 @@ interface CreateReportExOptions extends CreateReportOptions {
174
174
  * - CreateReportEx 옵션
175
175
  */
176
176
  type CreateOZViewerOptions = CreateReportExOptions;
177
- type NonEmptyArray<T> = [T, ...T[]];
177
+ /**
178
+ * Ozd 파일을 관리하는 단위 타입
179
+ */
180
+ type OzdFile = {
181
+ /** 문서코드 ex)`A0010` */
182
+ docCode: string;
183
+ /** 비정형에 올라간 파일ID ex)`0Wq1s0CM2JIz3KkAA` */
184
+ fileID: string;
185
+ /** 이미지시스템서식코드(이미지서식ID) ex)`RT003001` */
186
+ imageFormatCode: string;
187
+ /** 이미지시스템문서유형코드(이미지분서분류코드) ex)`IT00` */
188
+ imageDocumentTypeCode: string;
189
+ /** 앱 로컬에 다운로드된 OZD 파일 Path */
190
+ filePath: string;
191
+ /** 현재 서식의 시작페이지 */
192
+ startPage: number;
193
+ /** 현재 서식의 마지막페이지 */
194
+ endPage: number;
195
+ };
178
196
  /**
179
197
  * 전자청약에서 관리할 문서 데이터 구조
180
- * ```tsx
181
- * [
182
- * { name: "문서1", file: ["doc1.ozd"], complete: true },
183
- * { name: "문서2", file: ["doc2.ozd", "doc3.ozd"], complete: true }
184
- * ]
198
+ *
199
+ * ```javascript
200
+ * [{
201
+ * "name": "[A0010]청약서",
202
+ * "complete": false,
203
+ * "startPage": 0,
204
+ * "endPage": 0,
205
+ * "focus": false
206
+ * // 메뉴에 소속된 ozd 파일들
207
+ * "doc": [{
208
+ * "docCode": "${문서코드}",
209
+ * "fileID": "${비정형시스템 파일아이디}",
210
+ * "imageFormatCode": "${이미지시스템 서식코드}",
211
+ * "imageDocumentTypeCode": "${이미지시스템 문서유형코드}",
212
+ * "filePath": "",
213
+ * "startPage": 0,
214
+ * "endPage": 0
215
+ * }]
216
+ * }]
185
217
  * ```
186
218
  */
187
- type DocumentInfo = {
219
+ type FormInfo = {
188
220
  /** 서식이름(복수의 OZD) */
189
221
  name: string;
190
222
  /** 서식에 매핑된 OZD 목록 */
191
- file: NonEmptyArray<string>;
223
+ doc: Array<OzdFile>;
192
224
  /** 서식 입력완료 여부 */
193
225
  complete: boolean;
194
226
  /** 현재 서식 포커스 여부 */
@@ -202,7 +234,14 @@ type DocumentInfo = {
202
234
  * OZD를 다운받을때 사용하는 브릿지의 옵션
203
235
  */
204
236
  type DownloadOzdOptions = {
205
- data: Array<DocumentInfo>;
237
+ /** 서식 목록 */
238
+ data: Array<FormInfo>;
239
+ /** 증권번호 */
240
+ policyNumber: string;
241
+ /** FP 사번 */
242
+ fpInfo: {
243
+ uniqNo: string;
244
+ };
206
245
  };
207
246
  /**
208
247
  * OZ 관련 브릿지 통신에서 기본적으로 사용되는 리턴 타입 구조.
@@ -922,6 +961,12 @@ declare enum OZViewerEvent {
922
961
  */
923
962
  OZReportCreated = "OZReportCreated"
924
963
  }
964
+ /**
965
+ * TriggerExternal에 사용할 param1인자를 정의한 enum
966
+ */
967
+ declare enum OZTriggerExternalEvent {
968
+ GetDraftData = "getDraftData"
969
+ }
925
970
  /**
926
971
  * `OZViewerEvent.OZProgressCommand` 이벤트의 `e.detail` 타입 정의
927
972
  * ```tsx
@@ -1145,7 +1190,7 @@ declare const btnStyle: CSSProperties;
1145
1190
  /**
1146
1191
  * 테스트용 하드코딩 문서목록
1147
1192
  */
1148
- declare const DownloadDocumentList: Array<DocumentInfo>;
1193
+ declare const DownloadDocumentList: Array<FormInfo>;
1149
1194
  /**
1150
1195
  * 테스트용 하드코딩 데이터
1151
1196
  */
@@ -1156,14 +1201,16 @@ declare const policyNumber = "300034894";
1156
1201
  declare const fpInfo: {
1157
1202
  uniqNo: string;
1158
1203
  };
1204
+ /** 청약작성자목록 - 계약 관계자 코드 */
1205
+ declare const roleCode: string[];
1159
1206
 
1160
- declare function useDocumentInfo(initialValue: DocumentInfo[]): {
1161
- setDocumentInfo: react.Dispatch<react.SetStateAction<DocumentInfo[]>>;
1162
- documentInfo: DocumentInfo[];
1163
- documentList: string[];
1164
- documentTemplateMap: Record<string, DocumentInfo>;
1207
+ declare function useDocumentInfo(initialValue: FormInfo[]): {
1208
+ setDocumentInfo: react.Dispatch<react.SetStateAction<FormInfo[]>>;
1209
+ documentInfo: FormInfo[];
1210
+ documentList: OzdFile[];
1211
+ documentTemplateMap: Record<string, FormInfo>;
1165
1212
  documentIndexMap: Record<string, number>;
1166
- nameTemplateMap: Record<string, DocumentInfo>;
1213
+ nameTemplateMap: Record<string, FormInfo>;
1167
1214
  groupIndexes: number[][];
1168
1215
  isAllComplete: boolean;
1169
1216
  };
@@ -1181,7 +1228,7 @@ declare function useOzEventListener<T, R = void>({ event, handler }: Props<T, R>
1181
1228
  * 전체 서식목록의 하위 버튼 클릭 이벤트 핸들러
1182
1229
  * - 해당 서식을 누르면 시작 페이지로 이동한다
1183
1230
  */
1184
- declare function CategoryHandler(documentInfo: DocumentInfo[], { type, btnID }: CategoryEvent): Promise<void>;
1231
+ declare function CategoryHandler(documentInfo: FormInfo[], { type, btnID }: CategoryEvent): Promise<void>;
1185
1232
 
1186
1233
  /**
1187
1234
  * 상단 버튼 중 '전체 서식목록'을 제외한 다른 버튼 클릭 이벤트 핸들러
@@ -1248,7 +1295,7 @@ declare function SaveTotalPdf(): Promise<string>;
1248
1295
  /**
1249
1296
  * OZ 리포트 최초 생성시 OZ에 넘길 파라미터를 생성하는 함수
1250
1297
  */
1251
- declare function CreateOzParam(documentList: string[], extraData?: ExtraDataType): Promise<string[]>;
1298
+ declare function CreateOzParam(documentList: OzdFile[], extraData?: ExtraDataType): Promise<string[]>;
1252
1299
  /**
1253
1300
  * 모든 문서에 대해 checkeForm을 Y로 설정하는 명령을 순차적으로 한 번씩 호출합니다.
1254
1301
  *
@@ -1284,11 +1331,11 @@ declare function getTotalPageOnAllDocuments(reportCount?: number): Promise<numbe
1284
1331
  /**
1285
1332
  * OZD 목록을 다운받는 브릿지
1286
1333
  */
1287
- declare function fetchDocument(options: Array<DocumentInfo>): Promise<{
1334
+ declare function fetchDocument(options: Array<FormInfo>): Promise<{
1288
1335
  startPage: number;
1289
1336
  endPage: number;
1290
1337
  name: string;
1291
- file: NonEmptyArray<string>;
1338
+ doc: Array<OzdFile>;
1292
1339
  complete: boolean;
1293
1340
  focus: boolean;
1294
1341
  }[]>;
@@ -1297,6 +1344,24 @@ declare function fetchDocument(options: Array<DocumentInfo>): Promise<{
1297
1344
  */
1298
1345
  declare function fetchFont(): Promise<string[]>;
1299
1346
 
1347
+ /**
1348
+ * OZ에서 getDraftData 요청 시 반환할 데이터를 생성하는 함수
1349
+ *
1350
+ * - OZ로부터 전달받은 JSON 문자열(`arg`)을 파싱하여 문서 코드(docCd)를 추출하고,
1351
+ * 해당 문서의 JSON 정보를 가져와 필요한 사인 정보만 key-value 형태로 반환한다.
1352
+ * - 사인FormId 값이 null일 경우, getInformation 결과로 채워진다.
1353
+ */
1354
+ declare function getDraftDataHandler(rawOzRequest: string, documentIndexMap: Record<string, number>): Promise<Record<string, string>>;
1355
+ /**
1356
+ * 주어진 문서 인덱스 목록(`indexList`)에 대해
1357
+ * 각 문서의 중간저장 데이터를 순차적으로 요청합니다.
1358
+ *
1359
+ * 각 페이지 검사 사이에 기본 지연(sleep)을 추가하여 처리 속도를 제어합니다.
1360
+ *
1361
+ * @param indexList - 중간저장 데이터를 요청할 문서의 인덱스 배열
1362
+ */
1363
+ declare function triggerDraftDataByIndexList(indexList: number[]): Promise<void>;
1364
+
1300
1365
  /**
1301
1366
  * 유효성 검사 시 미입력된 컴포넌트에 자동으로 포커스를 맞추도록 설정
1302
1367
  *
@@ -1381,7 +1446,13 @@ declare const checkValidPageMemo: {
1381
1446
  clearCacheByPage(page: number): void;
1382
1447
  };
1383
1448
 
1384
- declare function categorizeByPageRange(data: DocumentInfo[], pageCounts: number[]): DocumentInfo[];
1449
+ /**
1450
+ * 문서 데이터에 페이지 범위를 채워주는 함수
1451
+ * @param {Array} data - 문서 그룹 데이터
1452
+ * @param {Array<number>} pages - 각 문서의 페이지 수
1453
+ * @returns {Array} - startPage, endPage가 채워진 새 데이터
1454
+ */
1455
+ declare function categorizeByPageRange(data: FormInfo[], pageCounts: number[]): FormInfo[];
1385
1456
  /**
1386
1457
  * 주어진 파일 경로에서 파일 이름만 추출합니다.
1387
1458
  * @param filePath 파일 경로 (예: `/a/b/c/file.ext`)
@@ -1389,7 +1460,7 @@ declare function categorizeByPageRange(data: DocumentInfo[], pageCounts: number[
1389
1460
  * @throws {Error} 유효하지 않은 파일 경로일 경우 예외 처리
1390
1461
  */
1391
1462
  declare function extractFileName(filePath: string): string;
1392
- declare function getFileListByGlobalIndex(index: number, data: DocumentInfo[]): DocumentInfo | null;
1463
+ declare function getFileListByGlobalIndex(index: number, data: FormInfo[]): FormInfo | null;
1393
1464
  /**
1394
1465
  * 비동기 처리를 일정 시간 지연시키는 함수
1395
1466
  * @param ms - 지연 시간 (밀리초). 기본값은 10ms
@@ -1408,4 +1479,4 @@ declare function PromiseWithResolvers<T>(): {
1408
1479
  */
1409
1480
  declare function ensureArray<T>(arg?: T[]): T[];
1410
1481
 
1411
- export { Bridge, type CategoryEvent, CategoryHandler, type CommentEvent, CommentHandler, type CommonOzBridgetResponseType, type CreateOZViewerOptions, CreateOzParam, CreateOzViewer, type DocumentInfo, DownloadDocumentList, type DownloadOzdOptions, ExtraData, type ExtraDataType, MovePage, type NonEmptyArray, type OZBtnTouchEvent, type OZEFormInputEvent, type OZExportEvent, type OZViewerChangeEvent, type OZViewerErrorEvent, OZViewerEvent, type OZViewerPageBindEvent, type OZViewerProgressEvent, type OZViewerUserEvent, type OpenBrowserOptions, type OpenWebOptions, type PdfEvent, PdfHandler, PromiseWithResolvers, SaveTotalPdf, type ShowWebPopupOptions, type SignatureEvent, SignatureHandler, type TopEvent, TopHandler, btnStyle, categorizeByPageRange, checkDocumentsValidityByIndex, checkValidPageMemo, commentPenEraser, commentPenGreen, commentPenPink, commentPenYellow, commonOzParam, commonPdfExportParam, disableFocusOnValidation, enableFocusOnValidation, ensureArray, extractFileName, fetchDocument, fetchFont, fpInfo, getCurrentPage, getFileListByGlobalIndex, getReportCountMemo, getTotalPageMemo, getTotalPageOnAllDocuments, isCommentMode, policyNumber, setCheckEform, setDisableCommentMode, setEnableCommentMode, sleep, triggerClickOnAllDocuments, triggerCropImageOnAllDocuments, useDocumentInfo, useOzEventListener, validateAllPages, wrapperStyle };
1482
+ export { Bridge, type CategoryEvent, CategoryHandler, type CommentEvent, CommentHandler, type CommonOzBridgetResponseType, type CreateOZViewerOptions, CreateOzParam, CreateOzViewer, DownloadDocumentList, type DownloadOzdOptions, ExtraData, type ExtraDataType, type FormInfo, MovePage, type OZBtnTouchEvent, type OZEFormInputEvent, type OZExportEvent, OZTriggerExternalEvent, type OZViewerChangeEvent, type OZViewerErrorEvent, OZViewerEvent, type OZViewerPageBindEvent, type OZViewerProgressEvent, type OZViewerUserEvent, type OpenBrowserOptions, type OpenWebOptions, type OzdFile, type PdfEvent, PdfHandler, PromiseWithResolvers, SaveTotalPdf, type ShowWebPopupOptions, type SignatureEvent, SignatureHandler, type TopEvent, TopHandler, btnStyle, categorizeByPageRange, checkDocumentsValidityByIndex, checkValidPageMemo, commentPenEraser, commentPenGreen, commentPenPink, commentPenYellow, commonOzParam, commonPdfExportParam, disableFocusOnValidation, enableFocusOnValidation, ensureArray, extractFileName, fetchDocument, fetchFont, fpInfo, getCurrentPage, getDraftDataHandler, getFileListByGlobalIndex, getReportCountMemo, getTotalPageMemo, getTotalPageOnAllDocuments, isCommentMode, policyNumber, roleCode, setCheckEform, setDisableCommentMode, setEnableCommentMode, sleep, triggerClickOnAllDocuments, triggerCropImageOnAllDocuments, triggerDraftDataByIndexList, useDocumentInfo, useOzEventListener, validateAllPages, wrapperStyle };
package/dist/index.d.ts CHANGED
@@ -174,21 +174,53 @@ interface CreateReportExOptions extends CreateReportOptions {
174
174
  * - CreateReportEx 옵션
175
175
  */
176
176
  type CreateOZViewerOptions = CreateReportExOptions;
177
- type NonEmptyArray<T> = [T, ...T[]];
177
+ /**
178
+ * Ozd 파일을 관리하는 단위 타입
179
+ */
180
+ type OzdFile = {
181
+ /** 문서코드 ex)`A0010` */
182
+ docCode: string;
183
+ /** 비정형에 올라간 파일ID ex)`0Wq1s0CM2JIz3KkAA` */
184
+ fileID: string;
185
+ /** 이미지시스템서식코드(이미지서식ID) ex)`RT003001` */
186
+ imageFormatCode: string;
187
+ /** 이미지시스템문서유형코드(이미지분서분류코드) ex)`IT00` */
188
+ imageDocumentTypeCode: string;
189
+ /** 앱 로컬에 다운로드된 OZD 파일 Path */
190
+ filePath: string;
191
+ /** 현재 서식의 시작페이지 */
192
+ startPage: number;
193
+ /** 현재 서식의 마지막페이지 */
194
+ endPage: number;
195
+ };
178
196
  /**
179
197
  * 전자청약에서 관리할 문서 데이터 구조
180
- * ```tsx
181
- * [
182
- * { name: "문서1", file: ["doc1.ozd"], complete: true },
183
- * { name: "문서2", file: ["doc2.ozd", "doc3.ozd"], complete: true }
184
- * ]
198
+ *
199
+ * ```javascript
200
+ * [{
201
+ * "name": "[A0010]청약서",
202
+ * "complete": false,
203
+ * "startPage": 0,
204
+ * "endPage": 0,
205
+ * "focus": false
206
+ * // 메뉴에 소속된 ozd 파일들
207
+ * "doc": [{
208
+ * "docCode": "${문서코드}",
209
+ * "fileID": "${비정형시스템 파일아이디}",
210
+ * "imageFormatCode": "${이미지시스템 서식코드}",
211
+ * "imageDocumentTypeCode": "${이미지시스템 문서유형코드}",
212
+ * "filePath": "",
213
+ * "startPage": 0,
214
+ * "endPage": 0
215
+ * }]
216
+ * }]
185
217
  * ```
186
218
  */
187
- type DocumentInfo = {
219
+ type FormInfo = {
188
220
  /** 서식이름(복수의 OZD) */
189
221
  name: string;
190
222
  /** 서식에 매핑된 OZD 목록 */
191
- file: NonEmptyArray<string>;
223
+ doc: Array<OzdFile>;
192
224
  /** 서식 입력완료 여부 */
193
225
  complete: boolean;
194
226
  /** 현재 서식 포커스 여부 */
@@ -202,7 +234,14 @@ type DocumentInfo = {
202
234
  * OZD를 다운받을때 사용하는 브릿지의 옵션
203
235
  */
204
236
  type DownloadOzdOptions = {
205
- data: Array<DocumentInfo>;
237
+ /** 서식 목록 */
238
+ data: Array<FormInfo>;
239
+ /** 증권번호 */
240
+ policyNumber: string;
241
+ /** FP 사번 */
242
+ fpInfo: {
243
+ uniqNo: string;
244
+ };
206
245
  };
207
246
  /**
208
247
  * OZ 관련 브릿지 통신에서 기본적으로 사용되는 리턴 타입 구조.
@@ -922,6 +961,12 @@ declare enum OZViewerEvent {
922
961
  */
923
962
  OZReportCreated = "OZReportCreated"
924
963
  }
964
+ /**
965
+ * TriggerExternal에 사용할 param1인자를 정의한 enum
966
+ */
967
+ declare enum OZTriggerExternalEvent {
968
+ GetDraftData = "getDraftData"
969
+ }
925
970
  /**
926
971
  * `OZViewerEvent.OZProgressCommand` 이벤트의 `e.detail` 타입 정의
927
972
  * ```tsx
@@ -1145,7 +1190,7 @@ declare const btnStyle: CSSProperties;
1145
1190
  /**
1146
1191
  * 테스트용 하드코딩 문서목록
1147
1192
  */
1148
- declare const DownloadDocumentList: Array<DocumentInfo>;
1193
+ declare const DownloadDocumentList: Array<FormInfo>;
1149
1194
  /**
1150
1195
  * 테스트용 하드코딩 데이터
1151
1196
  */
@@ -1156,14 +1201,16 @@ declare const policyNumber = "300034894";
1156
1201
  declare const fpInfo: {
1157
1202
  uniqNo: string;
1158
1203
  };
1204
+ /** 청약작성자목록 - 계약 관계자 코드 */
1205
+ declare const roleCode: string[];
1159
1206
 
1160
- declare function useDocumentInfo(initialValue: DocumentInfo[]): {
1161
- setDocumentInfo: react.Dispatch<react.SetStateAction<DocumentInfo[]>>;
1162
- documentInfo: DocumentInfo[];
1163
- documentList: string[];
1164
- documentTemplateMap: Record<string, DocumentInfo>;
1207
+ declare function useDocumentInfo(initialValue: FormInfo[]): {
1208
+ setDocumentInfo: react.Dispatch<react.SetStateAction<FormInfo[]>>;
1209
+ documentInfo: FormInfo[];
1210
+ documentList: OzdFile[];
1211
+ documentTemplateMap: Record<string, FormInfo>;
1165
1212
  documentIndexMap: Record<string, number>;
1166
- nameTemplateMap: Record<string, DocumentInfo>;
1213
+ nameTemplateMap: Record<string, FormInfo>;
1167
1214
  groupIndexes: number[][];
1168
1215
  isAllComplete: boolean;
1169
1216
  };
@@ -1181,7 +1228,7 @@ declare function useOzEventListener<T, R = void>({ event, handler }: Props<T, R>
1181
1228
  * 전체 서식목록의 하위 버튼 클릭 이벤트 핸들러
1182
1229
  * - 해당 서식을 누르면 시작 페이지로 이동한다
1183
1230
  */
1184
- declare function CategoryHandler(documentInfo: DocumentInfo[], { type, btnID }: CategoryEvent): Promise<void>;
1231
+ declare function CategoryHandler(documentInfo: FormInfo[], { type, btnID }: CategoryEvent): Promise<void>;
1185
1232
 
1186
1233
  /**
1187
1234
  * 상단 버튼 중 '전체 서식목록'을 제외한 다른 버튼 클릭 이벤트 핸들러
@@ -1248,7 +1295,7 @@ declare function SaveTotalPdf(): Promise<string>;
1248
1295
  /**
1249
1296
  * OZ 리포트 최초 생성시 OZ에 넘길 파라미터를 생성하는 함수
1250
1297
  */
1251
- declare function CreateOzParam(documentList: string[], extraData?: ExtraDataType): Promise<string[]>;
1298
+ declare function CreateOzParam(documentList: OzdFile[], extraData?: ExtraDataType): Promise<string[]>;
1252
1299
  /**
1253
1300
  * 모든 문서에 대해 checkeForm을 Y로 설정하는 명령을 순차적으로 한 번씩 호출합니다.
1254
1301
  *
@@ -1284,11 +1331,11 @@ declare function getTotalPageOnAllDocuments(reportCount?: number): Promise<numbe
1284
1331
  /**
1285
1332
  * OZD 목록을 다운받는 브릿지
1286
1333
  */
1287
- declare function fetchDocument(options: Array<DocumentInfo>): Promise<{
1334
+ declare function fetchDocument(options: Array<FormInfo>): Promise<{
1288
1335
  startPage: number;
1289
1336
  endPage: number;
1290
1337
  name: string;
1291
- file: NonEmptyArray<string>;
1338
+ doc: Array<OzdFile>;
1292
1339
  complete: boolean;
1293
1340
  focus: boolean;
1294
1341
  }[]>;
@@ -1297,6 +1344,24 @@ declare function fetchDocument(options: Array<DocumentInfo>): Promise<{
1297
1344
  */
1298
1345
  declare function fetchFont(): Promise<string[]>;
1299
1346
 
1347
+ /**
1348
+ * OZ에서 getDraftData 요청 시 반환할 데이터를 생성하는 함수
1349
+ *
1350
+ * - OZ로부터 전달받은 JSON 문자열(`arg`)을 파싱하여 문서 코드(docCd)를 추출하고,
1351
+ * 해당 문서의 JSON 정보를 가져와 필요한 사인 정보만 key-value 형태로 반환한다.
1352
+ * - 사인FormId 값이 null일 경우, getInformation 결과로 채워진다.
1353
+ */
1354
+ declare function getDraftDataHandler(rawOzRequest: string, documentIndexMap: Record<string, number>): Promise<Record<string, string>>;
1355
+ /**
1356
+ * 주어진 문서 인덱스 목록(`indexList`)에 대해
1357
+ * 각 문서의 중간저장 데이터를 순차적으로 요청합니다.
1358
+ *
1359
+ * 각 페이지 검사 사이에 기본 지연(sleep)을 추가하여 처리 속도를 제어합니다.
1360
+ *
1361
+ * @param indexList - 중간저장 데이터를 요청할 문서의 인덱스 배열
1362
+ */
1363
+ declare function triggerDraftDataByIndexList(indexList: number[]): Promise<void>;
1364
+
1300
1365
  /**
1301
1366
  * 유효성 검사 시 미입력된 컴포넌트에 자동으로 포커스를 맞추도록 설정
1302
1367
  *
@@ -1381,7 +1446,13 @@ declare const checkValidPageMemo: {
1381
1446
  clearCacheByPage(page: number): void;
1382
1447
  };
1383
1448
 
1384
- declare function categorizeByPageRange(data: DocumentInfo[], pageCounts: number[]): DocumentInfo[];
1449
+ /**
1450
+ * 문서 데이터에 페이지 범위를 채워주는 함수
1451
+ * @param {Array} data - 문서 그룹 데이터
1452
+ * @param {Array<number>} pages - 각 문서의 페이지 수
1453
+ * @returns {Array} - startPage, endPage가 채워진 새 데이터
1454
+ */
1455
+ declare function categorizeByPageRange(data: FormInfo[], pageCounts: number[]): FormInfo[];
1385
1456
  /**
1386
1457
  * 주어진 파일 경로에서 파일 이름만 추출합니다.
1387
1458
  * @param filePath 파일 경로 (예: `/a/b/c/file.ext`)
@@ -1389,7 +1460,7 @@ declare function categorizeByPageRange(data: DocumentInfo[], pageCounts: number[
1389
1460
  * @throws {Error} 유효하지 않은 파일 경로일 경우 예외 처리
1390
1461
  */
1391
1462
  declare function extractFileName(filePath: string): string;
1392
- declare function getFileListByGlobalIndex(index: number, data: DocumentInfo[]): DocumentInfo | null;
1463
+ declare function getFileListByGlobalIndex(index: number, data: FormInfo[]): FormInfo | null;
1393
1464
  /**
1394
1465
  * 비동기 처리를 일정 시간 지연시키는 함수
1395
1466
  * @param ms - 지연 시간 (밀리초). 기본값은 10ms
@@ -1408,4 +1479,4 @@ declare function PromiseWithResolvers<T>(): {
1408
1479
  */
1409
1480
  declare function ensureArray<T>(arg?: T[]): T[];
1410
1481
 
1411
- export { Bridge, type CategoryEvent, CategoryHandler, type CommentEvent, CommentHandler, type CommonOzBridgetResponseType, type CreateOZViewerOptions, CreateOzParam, CreateOzViewer, type DocumentInfo, DownloadDocumentList, type DownloadOzdOptions, ExtraData, type ExtraDataType, MovePage, type NonEmptyArray, type OZBtnTouchEvent, type OZEFormInputEvent, type OZExportEvent, type OZViewerChangeEvent, type OZViewerErrorEvent, OZViewerEvent, type OZViewerPageBindEvent, type OZViewerProgressEvent, type OZViewerUserEvent, type OpenBrowserOptions, type OpenWebOptions, type PdfEvent, PdfHandler, PromiseWithResolvers, SaveTotalPdf, type ShowWebPopupOptions, type SignatureEvent, SignatureHandler, type TopEvent, TopHandler, btnStyle, categorizeByPageRange, checkDocumentsValidityByIndex, checkValidPageMemo, commentPenEraser, commentPenGreen, commentPenPink, commentPenYellow, commonOzParam, commonPdfExportParam, disableFocusOnValidation, enableFocusOnValidation, ensureArray, extractFileName, fetchDocument, fetchFont, fpInfo, getCurrentPage, getFileListByGlobalIndex, getReportCountMemo, getTotalPageMemo, getTotalPageOnAllDocuments, isCommentMode, policyNumber, setCheckEform, setDisableCommentMode, setEnableCommentMode, sleep, triggerClickOnAllDocuments, triggerCropImageOnAllDocuments, useDocumentInfo, useOzEventListener, validateAllPages, wrapperStyle };
1482
+ export { Bridge, type CategoryEvent, CategoryHandler, type CommentEvent, CommentHandler, type CommonOzBridgetResponseType, type CreateOZViewerOptions, CreateOzParam, CreateOzViewer, DownloadDocumentList, type DownloadOzdOptions, ExtraData, type ExtraDataType, type FormInfo, MovePage, type OZBtnTouchEvent, type OZEFormInputEvent, type OZExportEvent, OZTriggerExternalEvent, type OZViewerChangeEvent, type OZViewerErrorEvent, OZViewerEvent, type OZViewerPageBindEvent, type OZViewerProgressEvent, type OZViewerUserEvent, type OpenBrowserOptions, type OpenWebOptions, type OzdFile, type PdfEvent, PdfHandler, PromiseWithResolvers, SaveTotalPdf, type ShowWebPopupOptions, type SignatureEvent, SignatureHandler, type TopEvent, TopHandler, btnStyle, categorizeByPageRange, checkDocumentsValidityByIndex, checkValidPageMemo, commentPenEraser, commentPenGreen, commentPenPink, commentPenYellow, commonOzParam, commonPdfExportParam, disableFocusOnValidation, enableFocusOnValidation, ensureArray, extractFileName, fetchDocument, fetchFont, fpInfo, getCurrentPage, getDraftDataHandler, getFileListByGlobalIndex, getReportCountMemo, getTotalPageMemo, getTotalPageOnAllDocuments, isCommentMode, policyNumber, roleCode, setCheckEform, setDisableCommentMode, setEnableCommentMode, sleep, triggerClickOnAllDocuments, triggerCropImageOnAllDocuments, triggerDraftDataByIndexList, useDocumentInfo, useOzEventListener, validateAllPages, wrapperStyle };