sales-frontend-bridge 0.0.121 → 0.1.0
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 +30 -8
- package/dist/index.d.cts +76 -8
- package/dist/index.d.ts +76 -8
- package/dist/index.js +30 -8
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -647,16 +647,41 @@ var NativeBridge = class extends CommonBridge {
|
|
|
647
647
|
return this.core.callToTarget("hideHeader", options);
|
|
648
648
|
}
|
|
649
649
|
/**
|
|
650
|
-
* 네이티브 서류첨부 시 카메라
|
|
650
|
+
* 네이티브 서류첨부 시 카메라(스캐너) 호출. 멀티페이지 촬영을 지원한다.
|
|
651
|
+
* - Android: 촬영 이미지의 scheme URL 배열(`uris`)을 한 번에 반환.
|
|
652
|
+
* - iOS: 세션 ID(`sessionId`)를 반환하므로 웹은 `documentCaptureNext` 를 `count` 회 호출한 뒤 `documentCaptureEnd` 로 종료.
|
|
651
653
|
* @example
|
|
652
654
|
* ```tsx
|
|
653
|
-
* // 사용 예시
|
|
654
|
-
* const
|
|
655
|
+
* // 사용 예시 (최대 5장)
|
|
656
|
+
* const res = await Bridge.native.documentCapture({ pageLimit: 5 });
|
|
655
657
|
* ```
|
|
656
658
|
*/
|
|
657
659
|
documentCapture(options) {
|
|
658
660
|
return this.core.callToTarget("documentCapture", options);
|
|
659
661
|
}
|
|
662
|
+
/**
|
|
663
|
+
* iOS 세션 기반 pull. `documentCapture` 응답의 세션에서 N 번째 페이지를 base64 로 가져온다.
|
|
664
|
+
* 같은 index 재호출 시 동일 결과를 반환하는 멱등 동작이다. (Android 는 호출 불필요)
|
|
665
|
+
* @example
|
|
666
|
+
* ```tsx
|
|
667
|
+
* // 사용 예시
|
|
668
|
+
* const { base64 } = await Bridge.native.documentCaptureNext({ sessionId, index: 0 });
|
|
669
|
+
* ```
|
|
670
|
+
*/
|
|
671
|
+
documentCaptureNext(options) {
|
|
672
|
+
return this.core.callToTarget("documentCaptureNext", options);
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* iOS 세션을 종료하고 임시 자원을 해제한다. 성공/실패/취소와 무관하게 반드시 호출해야 한다. (Android 는 호출 불필요)
|
|
676
|
+
* @example
|
|
677
|
+
* ```tsx
|
|
678
|
+
* // 사용 예시
|
|
679
|
+
* await Bridge.native.documentCaptureEnd({ sessionId });
|
|
680
|
+
* ```
|
|
681
|
+
*/
|
|
682
|
+
documentCaptureEnd(options) {
|
|
683
|
+
return this.core.callToTarget("documentCaptureEnd", options);
|
|
684
|
+
}
|
|
660
685
|
/**
|
|
661
686
|
* 뒤로가기 on/off
|
|
662
687
|
* 안드로이드 백키, iOS 스와이프 백 on/off
|
|
@@ -950,10 +975,8 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
950
975
|
/**
|
|
951
976
|
* ### Bridge for Oz
|
|
952
977
|
* 이메일 전송 모달 열기
|
|
953
|
-
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
954
978
|
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
955
979
|
* - 취소: `data`는 `'cancel'` 문자열
|
|
956
|
-
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
957
980
|
* @example
|
|
958
981
|
* ```tsx
|
|
959
982
|
* // 사용 예시
|
|
@@ -965,9 +988,8 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
965
988
|
* }
|
|
966
989
|
* ```
|
|
967
990
|
*/
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
return JSON.parse(stringifiedData);
|
|
991
|
+
showEmailModal() {
|
|
992
|
+
return this.core.callToTarget("showEmailModal");
|
|
971
993
|
}
|
|
972
994
|
// TODO: 필요 플러그인들 추가
|
|
973
995
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -185,8 +185,29 @@ interface GetAppInfoResponse {
|
|
|
185
185
|
/** 플랫폼 버전 (앱: OS 버전, 웹: 브라우저 버전) */
|
|
186
186
|
'X-Channel-PlatformVersion': string;
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* 문서 촬영(documentCapture) 응답입니다.
|
|
190
|
+
* 플랫폼에 따라 응답 형태가 분기되며, `sessionId` 유무로 후속 흐름이 결정됩니다.
|
|
191
|
+
* - Android: `uris` 배열(scheme URL)을 한 번에 반환합니다.
|
|
192
|
+
* - iOS: `sessionId` 를 반환하고 웹이 `documentCaptureNext` 를 `count` 회 호출합니다.
|
|
193
|
+
* - 사용자가 취소하면 Android 는 빈 응답, iOS 는 `count: 0` 을 반환합니다.
|
|
194
|
+
*/
|
|
188
195
|
interface DocumentCaptureResponse {
|
|
189
|
-
|
|
196
|
+
/** Android 전용. 촬영된 이미지의 scheme URL 배열입니다. */
|
|
197
|
+
uris?: string[];
|
|
198
|
+
/** iOS 전용. 세션 기반 pull 에 사용할 세션 ID 입니다. */
|
|
199
|
+
sessionId?: string;
|
|
200
|
+
/** 촬영된 장수입니다. 취소 시 0 입니다. */
|
|
201
|
+
count?: number;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* iOS 세션 pull 시 한 페이지의 base64 결과 응답입니다.
|
|
205
|
+
*/
|
|
206
|
+
interface DocumentCaptureNextResponse {
|
|
207
|
+
/** 요청한 페이지 인덱스입니다. */
|
|
208
|
+
index: number;
|
|
209
|
+
/** `data:image/jpeg;base64,` prefix 를 포함한 base64 문자열입니다. */
|
|
210
|
+
base64: string;
|
|
190
211
|
}
|
|
191
212
|
interface RefreshAccessTokenResponse {
|
|
192
213
|
tokenType: string;
|
|
@@ -429,8 +450,34 @@ interface DudExternalFileUploadOptions {
|
|
|
429
450
|
/** DUD 호출에 필요한 필수 요청 헤더 */
|
|
430
451
|
headers: DudExternalFileUploadHeaders;
|
|
431
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* 문서 촬영(documentCapture) 진입 옵션입니다.
|
|
455
|
+
* 신규 멀티페이지 프로토콜에서는 `pageLimit` 으로 촬영 장수를 제어합니다.
|
|
456
|
+
*/
|
|
432
457
|
interface DocumentCaptureOptions {
|
|
433
|
-
|
|
458
|
+
/**
|
|
459
|
+
* 네이티브 캡처 결과의 응답 형식 힌트입니다.
|
|
460
|
+
* 신규 멀티페이지 프로토콜에서는 플랫폼별 응답(Android `uris`, iOS 세션 pull)이 우선하며 보조 용도로만 사용됩니다.
|
|
461
|
+
*/
|
|
462
|
+
responseFileType?: 'scheme' | 'base64';
|
|
463
|
+
/** 최대 촬영 장수입니다. 1 ~ 20 범위로 clamp 되며 기본값은 1 입니다. */
|
|
464
|
+
pageLimit?: number;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* iOS 세션 기반 pull 시 한 페이지를 base64 로 가져오는 요청 옵션입니다.
|
|
468
|
+
*/
|
|
469
|
+
interface DocumentCaptureNextOptions {
|
|
470
|
+
/** `documentCapture` 응답으로 받은 세션 ID 입니다. */
|
|
471
|
+
sessionId: string;
|
|
472
|
+
/** 0 ~ (count - 1) 범위의 페이지 인덱스입니다. */
|
|
473
|
+
index: number;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* iOS 세션을 종료하고 임시 자원을 해제하는 요청 옵션입니다.
|
|
477
|
+
*/
|
|
478
|
+
interface DocumentCaptureEndOptions {
|
|
479
|
+
/** 종료할 세션 ID 입니다. */
|
|
480
|
+
sessionId: string;
|
|
434
481
|
}
|
|
435
482
|
|
|
436
483
|
/**
|
|
@@ -462,6 +509,8 @@ interface INativeBridge {
|
|
|
462
509
|
setHeaderTitle(options: SetHeaderTitleOptions): Promise<string>;
|
|
463
510
|
hideHeader(options: HideHeaderOptions): Promise<string>;
|
|
464
511
|
documentCapture(options?: DocumentCaptureOptions): Promise<DocumentCaptureResponse>;
|
|
512
|
+
documentCaptureNext(options: DocumentCaptureNextOptions): Promise<DocumentCaptureNextResponse>;
|
|
513
|
+
documentCaptureEnd(options: DocumentCaptureEndOptions): Promise<void>;
|
|
465
514
|
setBackNavigationEnabled(options: SetBackNavigationEnabledOptions): Promise<string>;
|
|
466
515
|
refreshAccessToken(): Promise<RefreshAccessTokenResponse>;
|
|
467
516
|
dudExternalFileUpload(options: DudExternalFileUploadOptions): Promise<CommonOzBridgetResponseType<DudExternalFileUploadResponse>>;
|
|
@@ -725,14 +774,35 @@ declare class NativeBridge extends CommonBridge implements INativeBridge {
|
|
|
725
774
|
*/
|
|
726
775
|
hideHeader(options: HideHeaderOptions): Promise<string>;
|
|
727
776
|
/**
|
|
728
|
-
* 네이티브 서류첨부 시 카메라
|
|
777
|
+
* 네이티브 서류첨부 시 카메라(스캐너) 호출. 멀티페이지 촬영을 지원한다.
|
|
778
|
+
* - Android: 촬영 이미지의 scheme URL 배열(`uris`)을 한 번에 반환.
|
|
779
|
+
* - iOS: 세션 ID(`sessionId`)를 반환하므로 웹은 `documentCaptureNext` 를 `count` 회 호출한 뒤 `documentCaptureEnd` 로 종료.
|
|
729
780
|
* @example
|
|
730
781
|
* ```tsx
|
|
731
|
-
* // 사용 예시
|
|
732
|
-
* const
|
|
782
|
+
* // 사용 예시 (최대 5장)
|
|
783
|
+
* const res = await Bridge.native.documentCapture({ pageLimit: 5 });
|
|
733
784
|
* ```
|
|
734
785
|
*/
|
|
735
786
|
documentCapture(options?: DocumentCaptureOptions): Promise<DocumentCaptureResponse>;
|
|
787
|
+
/**
|
|
788
|
+
* iOS 세션 기반 pull. `documentCapture` 응답의 세션에서 N 번째 페이지를 base64 로 가져온다.
|
|
789
|
+
* 같은 index 재호출 시 동일 결과를 반환하는 멱등 동작이다. (Android 는 호출 불필요)
|
|
790
|
+
* @example
|
|
791
|
+
* ```tsx
|
|
792
|
+
* // 사용 예시
|
|
793
|
+
* const { base64 } = await Bridge.native.documentCaptureNext({ sessionId, index: 0 });
|
|
794
|
+
* ```
|
|
795
|
+
*/
|
|
796
|
+
documentCaptureNext(options: DocumentCaptureNextOptions): Promise<DocumentCaptureNextResponse>;
|
|
797
|
+
/**
|
|
798
|
+
* iOS 세션을 종료하고 임시 자원을 해제한다. 성공/실패/취소와 무관하게 반드시 호출해야 한다. (Android 는 호출 불필요)
|
|
799
|
+
* @example
|
|
800
|
+
* ```tsx
|
|
801
|
+
* // 사용 예시
|
|
802
|
+
* await Bridge.native.documentCaptureEnd({ sessionId });
|
|
803
|
+
* ```
|
|
804
|
+
*/
|
|
805
|
+
documentCaptureEnd(options: DocumentCaptureEndOptions): Promise<void>;
|
|
736
806
|
/**
|
|
737
807
|
* 뒤로가기 on/off
|
|
738
808
|
* 안드로이드 백키, iOS 스와이프 백 on/off
|
|
@@ -1121,10 +1191,8 @@ declare class NativeBridgeOz extends CommonBridge implements INativeBridgeOz {
|
|
|
1121
1191
|
/**
|
|
1122
1192
|
* ### Bridge for Oz
|
|
1123
1193
|
* 이메일 전송 모달 열기
|
|
1124
|
-
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
1125
1194
|
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
1126
1195
|
* - 취소: `data`는 `'cancel'` 문자열
|
|
1127
|
-
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
1128
1196
|
* @example
|
|
1129
1197
|
* ```tsx
|
|
1130
1198
|
* // 사용 예시
|
|
@@ -1230,4 +1298,4 @@ declare const Bridge: {
|
|
|
1230
1298
|
iframeCore: IframeBridgeCore;
|
|
1231
1299
|
};
|
|
1232
1300
|
|
|
1233
|
-
export { Bridge, type CommonOzBridgetResponseType, type CreateOZViewerOptions, type DocumentCaptureOptions, type DocumentCaptureResponse, type DownloadOzdOptions, type DudExternalFileUploadHeaders, type DudExternalFileUploadOptions, type DudExternalFileUploadResponse, type FormInfo, type GetAccessTokenResponse, type GetAnalyticsUserPropertyResponse, type GetAppInfoResponse, type GetGlobalOptions, type GetInformationOptions, type GetOzFontParamResponse, type HideHeaderOptions, type OnAuthenticationResultRequest, type OnAuthenticationResultResponse, type OpenBrowserOptions, type OpenWebOptions, type OzdFile, type RefreshAccessTokenResponse, type RequestAuthenticationResponse, type SampleRequest, type SampleResponse, type SavePdfOptions, type SaveSignImgOptions, type ScriptExOptions, type ScriptOptions, type SetBackNavigationEnabledOptions, type SetGlobalOptions, type SetHeaderTitleOptions, type ShowAlertOptions, type ShowEmailModalResponse, type ShowEmailModalSubmitResponse, type TriggerExternalEventByDocIndexOptions, type UpdateOzdOptions, type contractClearOptions, type createOzPdfViewerOptions, type localFetchBridgeOptions };
|
|
1301
|
+
export { Bridge, type CommonOzBridgetResponseType, type CreateOZViewerOptions, type DocumentCaptureEndOptions, type DocumentCaptureNextOptions, type DocumentCaptureNextResponse, type DocumentCaptureOptions, type DocumentCaptureResponse, type DownloadOzdOptions, type DudExternalFileUploadHeaders, type DudExternalFileUploadOptions, type DudExternalFileUploadResponse, type FormInfo, type GetAccessTokenResponse, type GetAnalyticsUserPropertyResponse, type GetAppInfoResponse, type GetGlobalOptions, type GetInformationOptions, type GetOzFontParamResponse, type HideHeaderOptions, type OnAuthenticationResultRequest, type OnAuthenticationResultResponse, type OpenBrowserOptions, type OpenWebOptions, type OzdFile, type RefreshAccessTokenResponse, type RequestAuthenticationResponse, type SampleRequest, type SampleResponse, type SavePdfOptions, type SaveSignImgOptions, type ScriptExOptions, type ScriptOptions, type SetBackNavigationEnabledOptions, type SetGlobalOptions, type SetHeaderTitleOptions, type ShowAlertOptions, type ShowEmailModalResponse, type ShowEmailModalSubmitResponse, type TriggerExternalEventByDocIndexOptions, type UpdateOzdOptions, type contractClearOptions, type createOzPdfViewerOptions, type localFetchBridgeOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -185,8 +185,29 @@ interface GetAppInfoResponse {
|
|
|
185
185
|
/** 플랫폼 버전 (앱: OS 버전, 웹: 브라우저 버전) */
|
|
186
186
|
'X-Channel-PlatformVersion': string;
|
|
187
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* 문서 촬영(documentCapture) 응답입니다.
|
|
190
|
+
* 플랫폼에 따라 응답 형태가 분기되며, `sessionId` 유무로 후속 흐름이 결정됩니다.
|
|
191
|
+
* - Android: `uris` 배열(scheme URL)을 한 번에 반환합니다.
|
|
192
|
+
* - iOS: `sessionId` 를 반환하고 웹이 `documentCaptureNext` 를 `count` 회 호출합니다.
|
|
193
|
+
* - 사용자가 취소하면 Android 는 빈 응답, iOS 는 `count: 0` 을 반환합니다.
|
|
194
|
+
*/
|
|
188
195
|
interface DocumentCaptureResponse {
|
|
189
|
-
|
|
196
|
+
/** Android 전용. 촬영된 이미지의 scheme URL 배열입니다. */
|
|
197
|
+
uris?: string[];
|
|
198
|
+
/** iOS 전용. 세션 기반 pull 에 사용할 세션 ID 입니다. */
|
|
199
|
+
sessionId?: string;
|
|
200
|
+
/** 촬영된 장수입니다. 취소 시 0 입니다. */
|
|
201
|
+
count?: number;
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* iOS 세션 pull 시 한 페이지의 base64 결과 응답입니다.
|
|
205
|
+
*/
|
|
206
|
+
interface DocumentCaptureNextResponse {
|
|
207
|
+
/** 요청한 페이지 인덱스입니다. */
|
|
208
|
+
index: number;
|
|
209
|
+
/** `data:image/jpeg;base64,` prefix 를 포함한 base64 문자열입니다. */
|
|
210
|
+
base64: string;
|
|
190
211
|
}
|
|
191
212
|
interface RefreshAccessTokenResponse {
|
|
192
213
|
tokenType: string;
|
|
@@ -429,8 +450,34 @@ interface DudExternalFileUploadOptions {
|
|
|
429
450
|
/** DUD 호출에 필요한 필수 요청 헤더 */
|
|
430
451
|
headers: DudExternalFileUploadHeaders;
|
|
431
452
|
}
|
|
453
|
+
/**
|
|
454
|
+
* 문서 촬영(documentCapture) 진입 옵션입니다.
|
|
455
|
+
* 신규 멀티페이지 프로토콜에서는 `pageLimit` 으로 촬영 장수를 제어합니다.
|
|
456
|
+
*/
|
|
432
457
|
interface DocumentCaptureOptions {
|
|
433
|
-
|
|
458
|
+
/**
|
|
459
|
+
* 네이티브 캡처 결과의 응답 형식 힌트입니다.
|
|
460
|
+
* 신규 멀티페이지 프로토콜에서는 플랫폼별 응답(Android `uris`, iOS 세션 pull)이 우선하며 보조 용도로만 사용됩니다.
|
|
461
|
+
*/
|
|
462
|
+
responseFileType?: 'scheme' | 'base64';
|
|
463
|
+
/** 최대 촬영 장수입니다. 1 ~ 20 범위로 clamp 되며 기본값은 1 입니다. */
|
|
464
|
+
pageLimit?: number;
|
|
465
|
+
}
|
|
466
|
+
/**
|
|
467
|
+
* iOS 세션 기반 pull 시 한 페이지를 base64 로 가져오는 요청 옵션입니다.
|
|
468
|
+
*/
|
|
469
|
+
interface DocumentCaptureNextOptions {
|
|
470
|
+
/** `documentCapture` 응답으로 받은 세션 ID 입니다. */
|
|
471
|
+
sessionId: string;
|
|
472
|
+
/** 0 ~ (count - 1) 범위의 페이지 인덱스입니다. */
|
|
473
|
+
index: number;
|
|
474
|
+
}
|
|
475
|
+
/**
|
|
476
|
+
* iOS 세션을 종료하고 임시 자원을 해제하는 요청 옵션입니다.
|
|
477
|
+
*/
|
|
478
|
+
interface DocumentCaptureEndOptions {
|
|
479
|
+
/** 종료할 세션 ID 입니다. */
|
|
480
|
+
sessionId: string;
|
|
434
481
|
}
|
|
435
482
|
|
|
436
483
|
/**
|
|
@@ -462,6 +509,8 @@ interface INativeBridge {
|
|
|
462
509
|
setHeaderTitle(options: SetHeaderTitleOptions): Promise<string>;
|
|
463
510
|
hideHeader(options: HideHeaderOptions): Promise<string>;
|
|
464
511
|
documentCapture(options?: DocumentCaptureOptions): Promise<DocumentCaptureResponse>;
|
|
512
|
+
documentCaptureNext(options: DocumentCaptureNextOptions): Promise<DocumentCaptureNextResponse>;
|
|
513
|
+
documentCaptureEnd(options: DocumentCaptureEndOptions): Promise<void>;
|
|
465
514
|
setBackNavigationEnabled(options: SetBackNavigationEnabledOptions): Promise<string>;
|
|
466
515
|
refreshAccessToken(): Promise<RefreshAccessTokenResponse>;
|
|
467
516
|
dudExternalFileUpload(options: DudExternalFileUploadOptions): Promise<CommonOzBridgetResponseType<DudExternalFileUploadResponse>>;
|
|
@@ -725,14 +774,35 @@ declare class NativeBridge extends CommonBridge implements INativeBridge {
|
|
|
725
774
|
*/
|
|
726
775
|
hideHeader(options: HideHeaderOptions): Promise<string>;
|
|
727
776
|
/**
|
|
728
|
-
* 네이티브 서류첨부 시 카메라
|
|
777
|
+
* 네이티브 서류첨부 시 카메라(스캐너) 호출. 멀티페이지 촬영을 지원한다.
|
|
778
|
+
* - Android: 촬영 이미지의 scheme URL 배열(`uris`)을 한 번에 반환.
|
|
779
|
+
* - iOS: 세션 ID(`sessionId`)를 반환하므로 웹은 `documentCaptureNext` 를 `count` 회 호출한 뒤 `documentCaptureEnd` 로 종료.
|
|
729
780
|
* @example
|
|
730
781
|
* ```tsx
|
|
731
|
-
* // 사용 예시
|
|
732
|
-
* const
|
|
782
|
+
* // 사용 예시 (최대 5장)
|
|
783
|
+
* const res = await Bridge.native.documentCapture({ pageLimit: 5 });
|
|
733
784
|
* ```
|
|
734
785
|
*/
|
|
735
786
|
documentCapture(options?: DocumentCaptureOptions): Promise<DocumentCaptureResponse>;
|
|
787
|
+
/**
|
|
788
|
+
* iOS 세션 기반 pull. `documentCapture` 응답의 세션에서 N 번째 페이지를 base64 로 가져온다.
|
|
789
|
+
* 같은 index 재호출 시 동일 결과를 반환하는 멱등 동작이다. (Android 는 호출 불필요)
|
|
790
|
+
* @example
|
|
791
|
+
* ```tsx
|
|
792
|
+
* // 사용 예시
|
|
793
|
+
* const { base64 } = await Bridge.native.documentCaptureNext({ sessionId, index: 0 });
|
|
794
|
+
* ```
|
|
795
|
+
*/
|
|
796
|
+
documentCaptureNext(options: DocumentCaptureNextOptions): Promise<DocumentCaptureNextResponse>;
|
|
797
|
+
/**
|
|
798
|
+
* iOS 세션을 종료하고 임시 자원을 해제한다. 성공/실패/취소와 무관하게 반드시 호출해야 한다. (Android 는 호출 불필요)
|
|
799
|
+
* @example
|
|
800
|
+
* ```tsx
|
|
801
|
+
* // 사용 예시
|
|
802
|
+
* await Bridge.native.documentCaptureEnd({ sessionId });
|
|
803
|
+
* ```
|
|
804
|
+
*/
|
|
805
|
+
documentCaptureEnd(options: DocumentCaptureEndOptions): Promise<void>;
|
|
736
806
|
/**
|
|
737
807
|
* 뒤로가기 on/off
|
|
738
808
|
* 안드로이드 백키, iOS 스와이프 백 on/off
|
|
@@ -1121,10 +1191,8 @@ declare class NativeBridgeOz extends CommonBridge implements INativeBridgeOz {
|
|
|
1121
1191
|
/**
|
|
1122
1192
|
* ### Bridge for Oz
|
|
1123
1193
|
* 이메일 전송 모달 열기
|
|
1124
|
-
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
1125
1194
|
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
1126
1195
|
* - 취소: `data`는 `'cancel'` 문자열
|
|
1127
|
-
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
1128
1196
|
* @example
|
|
1129
1197
|
* ```tsx
|
|
1130
1198
|
* // 사용 예시
|
|
@@ -1230,4 +1298,4 @@ declare const Bridge: {
|
|
|
1230
1298
|
iframeCore: IframeBridgeCore;
|
|
1231
1299
|
};
|
|
1232
1300
|
|
|
1233
|
-
export { Bridge, type CommonOzBridgetResponseType, type CreateOZViewerOptions, type DocumentCaptureOptions, type DocumentCaptureResponse, type DownloadOzdOptions, type DudExternalFileUploadHeaders, type DudExternalFileUploadOptions, type DudExternalFileUploadResponse, type FormInfo, type GetAccessTokenResponse, type GetAnalyticsUserPropertyResponse, type GetAppInfoResponse, type GetGlobalOptions, type GetInformationOptions, type GetOzFontParamResponse, type HideHeaderOptions, type OnAuthenticationResultRequest, type OnAuthenticationResultResponse, type OpenBrowserOptions, type OpenWebOptions, type OzdFile, type RefreshAccessTokenResponse, type RequestAuthenticationResponse, type SampleRequest, type SampleResponse, type SavePdfOptions, type SaveSignImgOptions, type ScriptExOptions, type ScriptOptions, type SetBackNavigationEnabledOptions, type SetGlobalOptions, type SetHeaderTitleOptions, type ShowAlertOptions, type ShowEmailModalResponse, type ShowEmailModalSubmitResponse, type TriggerExternalEventByDocIndexOptions, type UpdateOzdOptions, type contractClearOptions, type createOzPdfViewerOptions, type localFetchBridgeOptions };
|
|
1301
|
+
export { Bridge, type CommonOzBridgetResponseType, type CreateOZViewerOptions, type DocumentCaptureEndOptions, type DocumentCaptureNextOptions, type DocumentCaptureNextResponse, type DocumentCaptureOptions, type DocumentCaptureResponse, type DownloadOzdOptions, type DudExternalFileUploadHeaders, type DudExternalFileUploadOptions, type DudExternalFileUploadResponse, type FormInfo, type GetAccessTokenResponse, type GetAnalyticsUserPropertyResponse, type GetAppInfoResponse, type GetGlobalOptions, type GetInformationOptions, type GetOzFontParamResponse, type HideHeaderOptions, type OnAuthenticationResultRequest, type OnAuthenticationResultResponse, type OpenBrowserOptions, type OpenWebOptions, type OzdFile, type RefreshAccessTokenResponse, type RequestAuthenticationResponse, type SampleRequest, type SampleResponse, type SavePdfOptions, type SaveSignImgOptions, type ScriptExOptions, type ScriptOptions, type SetBackNavigationEnabledOptions, type SetGlobalOptions, type SetHeaderTitleOptions, type ShowAlertOptions, type ShowEmailModalResponse, type ShowEmailModalSubmitResponse, type TriggerExternalEventByDocIndexOptions, type UpdateOzdOptions, type contractClearOptions, type createOzPdfViewerOptions, type localFetchBridgeOptions };
|
package/dist/index.js
CHANGED
|
@@ -645,16 +645,41 @@ var NativeBridge = class extends CommonBridge {
|
|
|
645
645
|
return this.core.callToTarget("hideHeader", options);
|
|
646
646
|
}
|
|
647
647
|
/**
|
|
648
|
-
* 네이티브 서류첨부 시 카메라
|
|
648
|
+
* 네이티브 서류첨부 시 카메라(스캐너) 호출. 멀티페이지 촬영을 지원한다.
|
|
649
|
+
* - Android: 촬영 이미지의 scheme URL 배열(`uris`)을 한 번에 반환.
|
|
650
|
+
* - iOS: 세션 ID(`sessionId`)를 반환하므로 웹은 `documentCaptureNext` 를 `count` 회 호출한 뒤 `documentCaptureEnd` 로 종료.
|
|
649
651
|
* @example
|
|
650
652
|
* ```tsx
|
|
651
|
-
* // 사용 예시
|
|
652
|
-
* const
|
|
653
|
+
* // 사용 예시 (최대 5장)
|
|
654
|
+
* const res = await Bridge.native.documentCapture({ pageLimit: 5 });
|
|
653
655
|
* ```
|
|
654
656
|
*/
|
|
655
657
|
documentCapture(options) {
|
|
656
658
|
return this.core.callToTarget("documentCapture", options);
|
|
657
659
|
}
|
|
660
|
+
/**
|
|
661
|
+
* iOS 세션 기반 pull. `documentCapture` 응답의 세션에서 N 번째 페이지를 base64 로 가져온다.
|
|
662
|
+
* 같은 index 재호출 시 동일 결과를 반환하는 멱등 동작이다. (Android 는 호출 불필요)
|
|
663
|
+
* @example
|
|
664
|
+
* ```tsx
|
|
665
|
+
* // 사용 예시
|
|
666
|
+
* const { base64 } = await Bridge.native.documentCaptureNext({ sessionId, index: 0 });
|
|
667
|
+
* ```
|
|
668
|
+
*/
|
|
669
|
+
documentCaptureNext(options) {
|
|
670
|
+
return this.core.callToTarget("documentCaptureNext", options);
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* iOS 세션을 종료하고 임시 자원을 해제한다. 성공/실패/취소와 무관하게 반드시 호출해야 한다. (Android 는 호출 불필요)
|
|
674
|
+
* @example
|
|
675
|
+
* ```tsx
|
|
676
|
+
* // 사용 예시
|
|
677
|
+
* await Bridge.native.documentCaptureEnd({ sessionId });
|
|
678
|
+
* ```
|
|
679
|
+
*/
|
|
680
|
+
documentCaptureEnd(options) {
|
|
681
|
+
return this.core.callToTarget("documentCaptureEnd", options);
|
|
682
|
+
}
|
|
658
683
|
/**
|
|
659
684
|
* 뒤로가기 on/off
|
|
660
685
|
* 안드로이드 백키, iOS 스와이프 백 on/off
|
|
@@ -948,10 +973,8 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
948
973
|
/**
|
|
949
974
|
* ### Bridge for Oz
|
|
950
975
|
* 이메일 전송 모달 열기
|
|
951
|
-
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
952
976
|
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
953
977
|
* - 취소: `data`는 `'cancel'` 문자열
|
|
954
|
-
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
955
978
|
* @example
|
|
956
979
|
* ```tsx
|
|
957
980
|
* // 사용 예시
|
|
@@ -963,9 +986,8 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
963
986
|
* }
|
|
964
987
|
* ```
|
|
965
988
|
*/
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
return JSON.parse(stringifiedData);
|
|
989
|
+
showEmailModal() {
|
|
990
|
+
return this.core.callToTarget("showEmailModal");
|
|
969
991
|
}
|
|
970
992
|
// TODO: 필요 플러그인들 추가
|
|
971
993
|
};
|