sales-frontend-bridge 0.0.119 → 0.0.121
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 -2
- package/dist/index.d.cts +43 -8
- package/dist/index.d.ts +43 -8
- package/dist/index.js +30 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -756,7 +756,10 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
756
756
|
* ```
|
|
757
757
|
*/
|
|
758
758
|
getGlobal(options) {
|
|
759
|
-
return this.core.callToTarget(
|
|
759
|
+
return this.core.callToTarget(
|
|
760
|
+
"getGlobal",
|
|
761
|
+
Object.assign({ docIndex: 0 }, options)
|
|
762
|
+
);
|
|
760
763
|
}
|
|
761
764
|
/**
|
|
762
765
|
* ### Bridge for Oz
|
|
@@ -769,7 +772,10 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
769
772
|
* ```
|
|
770
773
|
*/
|
|
771
774
|
setGlobal(options) {
|
|
772
|
-
return this.core.callToTarget(
|
|
775
|
+
return this.core.callToTarget(
|
|
776
|
+
"setGlobal",
|
|
777
|
+
Object.assign({ docIndex: 0 }, options)
|
|
778
|
+
);
|
|
773
779
|
}
|
|
774
780
|
/**
|
|
775
781
|
* ### Bridge for Oz
|
|
@@ -941,6 +947,28 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
941
947
|
hideMissingFieldWarning() {
|
|
942
948
|
return this.core.callToTarget("hideMissingFieldWarning");
|
|
943
949
|
}
|
|
950
|
+
/**
|
|
951
|
+
* ### Bridge for Oz
|
|
952
|
+
* 이메일 전송 모달 열기
|
|
953
|
+
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
954
|
+
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
955
|
+
* - 취소: `data`는 `'cancel'` 문자열
|
|
956
|
+
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
957
|
+
* @example
|
|
958
|
+
* ```tsx
|
|
959
|
+
* // 사용 예시
|
|
960
|
+
* const { data } = await Bridge.nativeOz.showEmailModal();
|
|
961
|
+
* if (data !== 'cancel') {
|
|
962
|
+
* // 전송: data.recipientName, data.recipientEmail, data.senderEmail 사용
|
|
963
|
+
* } else {
|
|
964
|
+
* // 사용자가 취소
|
|
965
|
+
* }
|
|
966
|
+
* ```
|
|
967
|
+
*/
|
|
968
|
+
async showEmailModal() {
|
|
969
|
+
const stringifiedData = await this.core.callToTarget("showEmailModal");
|
|
970
|
+
return JSON.parse(stringifiedData);
|
|
971
|
+
}
|
|
944
972
|
// TODO: 필요 플러그인들 추가
|
|
945
973
|
};
|
|
946
974
|
|
package/dist/index.d.cts
CHANGED
|
@@ -785,6 +785,28 @@ declare class NativeBridge extends CommonBridge implements INativeBridge {
|
|
|
785
785
|
dudExternalFileUpload(options: DudExternalFileUploadOptions): Promise<CommonOzBridgetResponseType<DudExternalFileUploadResponse>>;
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
+
interface SampleRequest {
|
|
789
|
+
sample: string;
|
|
790
|
+
}
|
|
791
|
+
interface SampleResponse {
|
|
792
|
+
sample: string;
|
|
793
|
+
}
|
|
794
|
+
/** 이메일 전송 모달에서 사용자가 전송했을 때의 응답 객체 */
|
|
795
|
+
interface ShowEmailModalSubmitResponse {
|
|
796
|
+
/** 수신자 이름 */
|
|
797
|
+
recipientName: string;
|
|
798
|
+
/** 수신자 이메일 */
|
|
799
|
+
recipientEmail: string;
|
|
800
|
+
/** 발송자 이메일 */
|
|
801
|
+
senderEmail: string;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* 이메일 전송 모달 응답 데이터.
|
|
805
|
+
* - 전송 시: 수신자/발송자 정보 객체
|
|
806
|
+
* - 취소 시: `'cancel'` 문자열
|
|
807
|
+
*/
|
|
808
|
+
type ShowEmailModalResponse = ShowEmailModalSubmitResponse | 'cancel';
|
|
809
|
+
|
|
788
810
|
/**
|
|
789
811
|
* 오즈 뷰어 함수 `CreateReport`를 호출할 때 사용하는 브릿지용 입력 옵션
|
|
790
812
|
*/
|
|
@@ -910,6 +932,7 @@ interface INativeBridgeOz {
|
|
|
910
932
|
hideSignatureShortcut(): Promise<CommonOzBridgetResponseType>;
|
|
911
933
|
showMissingFieldWarning(): Promise<CommonOzBridgetResponseType>;
|
|
912
934
|
hideMissingFieldWarning(): Promise<CommonOzBridgetResponseType>;
|
|
935
|
+
showEmailModal(): Promise<CommonOzBridgetResponseType<ShowEmailModalResponse>>;
|
|
913
936
|
}
|
|
914
937
|
|
|
915
938
|
/**
|
|
@@ -1095,6 +1118,25 @@ declare class NativeBridgeOz extends CommonBridge implements INativeBridgeOz {
|
|
|
1095
1118
|
* await Bridge.nativeOz.hideMissingFieldWarning();
|
|
1096
1119
|
*/
|
|
1097
1120
|
hideMissingFieldWarning(): Promise<CommonOzBridgetResponseType<string>>;
|
|
1121
|
+
/**
|
|
1122
|
+
* ### Bridge for Oz
|
|
1123
|
+
* 이메일 전송 모달 열기
|
|
1124
|
+
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
1125
|
+
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
1126
|
+
* - 취소: `data`는 `'cancel'` 문자열
|
|
1127
|
+
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
1128
|
+
* @example
|
|
1129
|
+
* ```tsx
|
|
1130
|
+
* // 사용 예시
|
|
1131
|
+
* const { data } = await Bridge.nativeOz.showEmailModal();
|
|
1132
|
+
* if (data !== 'cancel') {
|
|
1133
|
+
* // 전송: data.recipientName, data.recipientEmail, data.senderEmail 사용
|
|
1134
|
+
* } else {
|
|
1135
|
+
* // 사용자가 취소
|
|
1136
|
+
* }
|
|
1137
|
+
* ```
|
|
1138
|
+
*/
|
|
1139
|
+
showEmailModal(): Promise<CommonOzBridgetResponseType<ShowEmailModalResponse>>;
|
|
1098
1140
|
}
|
|
1099
1141
|
|
|
1100
1142
|
/**
|
|
@@ -1180,13 +1222,6 @@ declare class NativeBridgeCore<TAction extends string> extends CommonBridgeCore
|
|
|
1180
1222
|
private cleanupPromise;
|
|
1181
1223
|
}
|
|
1182
1224
|
|
|
1183
|
-
interface SampleRequest {
|
|
1184
|
-
sample: string;
|
|
1185
|
-
}
|
|
1186
|
-
interface SampleResponse {
|
|
1187
|
-
sample: string;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
1225
|
declare const Bridge: {
|
|
1191
1226
|
native: NativeBridge;
|
|
1192
1227
|
nativeOz: NativeBridgeOz;
|
|
@@ -1195,4 +1230,4 @@ declare const Bridge: {
|
|
|
1195
1230
|
iframeCore: IframeBridgeCore;
|
|
1196
1231
|
};
|
|
1197
1232
|
|
|
1198
|
-
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 TriggerExternalEventByDocIndexOptions, type UpdateOzdOptions, type contractClearOptions, type createOzPdfViewerOptions, type localFetchBridgeOptions };
|
|
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -785,6 +785,28 @@ declare class NativeBridge extends CommonBridge implements INativeBridge {
|
|
|
785
785
|
dudExternalFileUpload(options: DudExternalFileUploadOptions): Promise<CommonOzBridgetResponseType<DudExternalFileUploadResponse>>;
|
|
786
786
|
}
|
|
787
787
|
|
|
788
|
+
interface SampleRequest {
|
|
789
|
+
sample: string;
|
|
790
|
+
}
|
|
791
|
+
interface SampleResponse {
|
|
792
|
+
sample: string;
|
|
793
|
+
}
|
|
794
|
+
/** 이메일 전송 모달에서 사용자가 전송했을 때의 응답 객체 */
|
|
795
|
+
interface ShowEmailModalSubmitResponse {
|
|
796
|
+
/** 수신자 이름 */
|
|
797
|
+
recipientName: string;
|
|
798
|
+
/** 수신자 이메일 */
|
|
799
|
+
recipientEmail: string;
|
|
800
|
+
/** 발송자 이메일 */
|
|
801
|
+
senderEmail: string;
|
|
802
|
+
}
|
|
803
|
+
/**
|
|
804
|
+
* 이메일 전송 모달 응답 데이터.
|
|
805
|
+
* - 전송 시: 수신자/발송자 정보 객체
|
|
806
|
+
* - 취소 시: `'cancel'` 문자열
|
|
807
|
+
*/
|
|
808
|
+
type ShowEmailModalResponse = ShowEmailModalSubmitResponse | 'cancel';
|
|
809
|
+
|
|
788
810
|
/**
|
|
789
811
|
* 오즈 뷰어 함수 `CreateReport`를 호출할 때 사용하는 브릿지용 입력 옵션
|
|
790
812
|
*/
|
|
@@ -910,6 +932,7 @@ interface INativeBridgeOz {
|
|
|
910
932
|
hideSignatureShortcut(): Promise<CommonOzBridgetResponseType>;
|
|
911
933
|
showMissingFieldWarning(): Promise<CommonOzBridgetResponseType>;
|
|
912
934
|
hideMissingFieldWarning(): Promise<CommonOzBridgetResponseType>;
|
|
935
|
+
showEmailModal(): Promise<CommonOzBridgetResponseType<ShowEmailModalResponse>>;
|
|
913
936
|
}
|
|
914
937
|
|
|
915
938
|
/**
|
|
@@ -1095,6 +1118,25 @@ declare class NativeBridgeOz extends CommonBridge implements INativeBridgeOz {
|
|
|
1095
1118
|
* await Bridge.nativeOz.hideMissingFieldWarning();
|
|
1096
1119
|
*/
|
|
1097
1120
|
hideMissingFieldWarning(): Promise<CommonOzBridgetResponseType<string>>;
|
|
1121
|
+
/**
|
|
1122
|
+
* ### Bridge for Oz
|
|
1123
|
+
* 이메일 전송 모달 열기
|
|
1124
|
+
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
1125
|
+
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
1126
|
+
* - 취소: `data`는 `'cancel'` 문자열
|
|
1127
|
+
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
1128
|
+
* @example
|
|
1129
|
+
* ```tsx
|
|
1130
|
+
* // 사용 예시
|
|
1131
|
+
* const { data } = await Bridge.nativeOz.showEmailModal();
|
|
1132
|
+
* if (data !== 'cancel') {
|
|
1133
|
+
* // 전송: data.recipientName, data.recipientEmail, data.senderEmail 사용
|
|
1134
|
+
* } else {
|
|
1135
|
+
* // 사용자가 취소
|
|
1136
|
+
* }
|
|
1137
|
+
* ```
|
|
1138
|
+
*/
|
|
1139
|
+
showEmailModal(): Promise<CommonOzBridgetResponseType<ShowEmailModalResponse>>;
|
|
1098
1140
|
}
|
|
1099
1141
|
|
|
1100
1142
|
/**
|
|
@@ -1180,13 +1222,6 @@ declare class NativeBridgeCore<TAction extends string> extends CommonBridgeCore
|
|
|
1180
1222
|
private cleanupPromise;
|
|
1181
1223
|
}
|
|
1182
1224
|
|
|
1183
|
-
interface SampleRequest {
|
|
1184
|
-
sample: string;
|
|
1185
|
-
}
|
|
1186
|
-
interface SampleResponse {
|
|
1187
|
-
sample: string;
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
1225
|
declare const Bridge: {
|
|
1191
1226
|
native: NativeBridge;
|
|
1192
1227
|
nativeOz: NativeBridgeOz;
|
|
@@ -1195,4 +1230,4 @@ declare const Bridge: {
|
|
|
1195
1230
|
iframeCore: IframeBridgeCore;
|
|
1196
1231
|
};
|
|
1197
1232
|
|
|
1198
|
-
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 TriggerExternalEventByDocIndexOptions, type UpdateOzdOptions, type contractClearOptions, type createOzPdfViewerOptions, type localFetchBridgeOptions };
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -754,7 +754,10 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
754
754
|
* ```
|
|
755
755
|
*/
|
|
756
756
|
getGlobal(options) {
|
|
757
|
-
return this.core.callToTarget(
|
|
757
|
+
return this.core.callToTarget(
|
|
758
|
+
"getGlobal",
|
|
759
|
+
Object.assign({ docIndex: 0 }, options)
|
|
760
|
+
);
|
|
758
761
|
}
|
|
759
762
|
/**
|
|
760
763
|
* ### Bridge for Oz
|
|
@@ -767,7 +770,10 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
767
770
|
* ```
|
|
768
771
|
*/
|
|
769
772
|
setGlobal(options) {
|
|
770
|
-
return this.core.callToTarget(
|
|
773
|
+
return this.core.callToTarget(
|
|
774
|
+
"setGlobal",
|
|
775
|
+
Object.assign({ docIndex: 0 }, options)
|
|
776
|
+
);
|
|
771
777
|
}
|
|
772
778
|
/**
|
|
773
779
|
* ### Bridge for Oz
|
|
@@ -939,6 +945,28 @@ var NativeBridgeOz = class extends CommonBridge {
|
|
|
939
945
|
hideMissingFieldWarning() {
|
|
940
946
|
return this.core.callToTarget("hideMissingFieldWarning");
|
|
941
947
|
}
|
|
948
|
+
/**
|
|
949
|
+
* ### Bridge for Oz
|
|
950
|
+
* 이메일 전송 모달 열기
|
|
951
|
+
* - 네이티브는 envelope 전체(`{ action, data }`)를 JSON 문자열로 리턴합니다.
|
|
952
|
+
* - 전송: `data`는 `{ recipientName, recipientEmail, senderEmail }` 객체
|
|
953
|
+
* - 취소: `data`는 `'cancel'` 문자열
|
|
954
|
+
* - 응답이 유효한 JSON 이 아닐 경우 `JSON.parse` 가 throw 합니다. 호출 측에서 try/catch 로 감싸세요.
|
|
955
|
+
* @example
|
|
956
|
+
* ```tsx
|
|
957
|
+
* // 사용 예시
|
|
958
|
+
* const { data } = await Bridge.nativeOz.showEmailModal();
|
|
959
|
+
* if (data !== 'cancel') {
|
|
960
|
+
* // 전송: data.recipientName, data.recipientEmail, data.senderEmail 사용
|
|
961
|
+
* } else {
|
|
962
|
+
* // 사용자가 취소
|
|
963
|
+
* }
|
|
964
|
+
* ```
|
|
965
|
+
*/
|
|
966
|
+
async showEmailModal() {
|
|
967
|
+
const stringifiedData = await this.core.callToTarget("showEmailModal");
|
|
968
|
+
return JSON.parse(stringifiedData);
|
|
969
|
+
}
|
|
942
970
|
// TODO: 필요 플러그인들 추가
|
|
943
971
|
};
|
|
944
972
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sales-frontend-bridge",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.121",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"typescript": "5.8.2",
|
|
29
29
|
"eslint-config-sales-frontend-eslint-config-v8": "^0.0.8",
|
|
30
30
|
"sales-frontend-typescript-config": "0.0.2",
|
|
31
|
-
"sales-frontend-vitest-config": "0.0.
|
|
31
|
+
"sales-frontend-vitest-config": "0.0.4"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"sales-frontend-utils": "0.0.
|
|
34
|
+
"sales-frontend-utils": "0.0.73"
|
|
35
35
|
},
|
|
36
36
|
"scripts": {
|
|
37
37
|
"lint": "eslint . --max-warnings 0",
|