sales-frontend-oz 0.0.6 → 0.0.8

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.
@@ -1,206 +0,0 @@
1
- /** ozd 파일 다운로드 Bridge 공통 파라미터 */
2
- type OzdDownloadBaseParams = {
3
- REQ_PARAM: {
4
- /** FP 사번 */
5
- FP_ID: string;
6
- /** 증권번호 */
7
- PLAN_NO: string;
8
- /**
9
- * 문서 코드
10
- * - ex) `C0800_1`
11
- */
12
- DOCU_CODE: string;
13
- /** 보험 계약 ID */
14
- PR_ID: string;
15
- /**
16
- * 보험 계약 일자 `YYYYMMDD` 형식
17
- * - ex) `20250724`
18
- */
19
- PR_DATE: string;
20
- };
21
- };
22
- /** bizType이 0일 때는 단건 반환 */
23
- type DownloadOzdSingleParams = OzdDownloadBaseParams & {
24
- bizType: 0;
25
- };
26
- /** bizType이 2일 때는 배열 반환 및 extData를 입력받는다 */
27
- type DownloadOzdMultiParams = OzdDownloadBaseParams & {
28
- bizType: 2;
29
- extData: {
30
- /** 고객ID */
31
- custId: string;
32
- /** 증권번호 */
33
- stockNo: string;
34
- };
35
- };
36
- /** 다운로드 된 ozd 파일의 경로 */
37
- type OzdDownloadResult = {
38
- filePath: string;
39
- };
40
- /**
41
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
42
- * - hone.mobile.plugin.native.downloadOZD 시그니처 타입
43
- * - 단건 리턴
44
- */
45
- type DownloadOzdSingleHandler = (arg: DownloadOzdSingleParams) => Promise<OzdDownloadResult>;
46
- /**
47
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
48
- * - hone.mobile.plugin.native.downloadOZD 시그니처 타입
49
- * - 다건 리턴
50
- */
51
- type DownloadOzdMultiHandler = (arg: DownloadOzdMultiParams) => Promise<OzdDownloadResult[]>;
52
-
53
- type RequestGetOzGlobal = Array<{
54
- key: string;
55
- docIndex: `${number}`;
56
- }>;
57
- type ResponseGetOzGlobal = Record<string, any>;
58
- /**
59
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
60
- * - hone.mobile.plugin.native.getOZGlobal 시그니처 타입
61
- * - input에 넣은 key를 result에서 조회가능
62
- * ```javascript
63
- * getOZGlobal([{ key: "VALUE_INDEX09" }]).then((res) => { res.VALUE_INDEX09 })
64
- * ```
65
- */
66
- type GetOzGlobalHandler = (arg: RequestGetOzGlobal) => Promise<ResponseGetOzGlobal>;
67
-
68
- type RequestGetOzInformation = {
69
- command: "CURRENT_PAGE" | `TOTAL_PAGE_OF_REPORT_FILE_AT=${number}` | "INPUT_JSON_ALL";
70
- };
71
- type ResponseGetOzInformation = {
72
- value: string;
73
- };
74
- /**
75
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
76
- * - hone.mobile.plugin.native.getOZInformation 시그니처 타입
77
- */
78
- type GetOzInformationHandler = (arg: RequestGetOzInformation) => Promise<ResponseGetOzInformation>;
79
-
80
- /**
81
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
82
- * - hone.mobile.plugin.native.hideOZViewer 시그니처 타입
83
- */
84
- type HideOzViewerHandler = () => Promise<void>;
85
-
86
- /** 서명, 덧쓰기 후 데이터를 내보낼때 사용하는 RequestParam */
87
- type RequestOzExport = {
88
- /** 주석이 없어 확인불가 */
89
- exportType: 1 | 2 | 3;
90
- /** 파일이름 `파일이름.확장자` 형식 */
91
- fileName: `${string}.${string}`;
92
- /** 내보낼 페이지 범위 시작 */
93
- startPage: number | "";
94
- /** 내보낼 페이지 범위 끝 */
95
- endPage: number | "";
96
- /** 사용하는경우 고객 주민등록번호 앞 6자리를 넣음 */
97
- pdfPassword: string;
98
- signImageKey: string;
99
- };
100
- type ResponseOzExport = {
101
- /** export된 파일 경로 */
102
- filePath: string;
103
- };
104
- /**
105
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
106
- * - hone.mobile.plugin.native.ozExport 시그니처 타입
107
- * - 서명, 덧쓰기 후 export할때 사용하는것으로 추정
108
- */
109
- type OzExportHandler = (arg: RequestOzExport) => Promise<ResponseOzExport>;
110
-
111
- type RequestOzScript = {
112
- /** `movepage` 이외 사용예시가 없음 */
113
- command: `movepage=${number}`;
114
- param: "";
115
- delimiter: "";
116
- };
117
- /**
118
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
119
- * - hone.mobile.plugin.native.ozScript 시그니처 타입
120
- */
121
- type OzScriptHandler = (arg: RequestOzScript) => Promise<unknown>;
122
-
123
- /** 주석이 없어서 용도 파악불가 */
124
- type RequestOzTriggerExternalEvent = {
125
- param1: string;
126
- param2: string;
127
- param3: string;
128
- param4: string;
129
- };
130
- /**
131
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
132
- * - hone.mobile.plugin.native.ozTriggerExternalEvent 시그니처 타입
133
- */
134
- type OzTriggerExternalEventHandler = (arg: RequestOzTriggerExternalEvent) => Promise<unknown>;
135
-
136
- /** 현재 oz viewer에 띄워진 페이지 유효성 체크 */
137
- type ResponseOzValidation = {
138
- /** 입력값 유효 여부 */
139
- isValid: boolean;
140
- /** 유효하지 않은 페이지 번호 */
141
- page: number;
142
- };
143
- /**
144
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
145
- * - hone.mobile.plugin.native.ozValidation 시그니처 타입
146
- */
147
- type OzValidationHandler = () => Promise<ResponseOzValidation>;
148
-
149
- type RequestSetOzGlobal = {
150
- param: Record<string, any>;
151
- };
152
- /**
153
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
154
- * - hone.mobile.plugin.native.setOZGlobal 시그니처 타입
155
- */
156
- type SetOzGlobalHandler = (arg: RequestSetOzGlobal) => Promise<unknown>;
157
-
158
- type RequestShowOzViewer = {
159
- /**
160
- * - ex) `"0"`, `2`
161
- */
162
- bizType: string | number;
163
- extData: Record<string, any>;
164
- /** - ex) `0:130:1024:580` */
165
- viewFrame: string;
166
- /**
167
- * - `0` fullScreen
168
- * - `1` 타이틀바
169
- * - `2` size지정가능한 팝업
170
- */
171
- popupType: string | number;
172
- title: string;
173
- /**
174
- * OZViewer에 전달할 파라미터
175
- * - ex) `connection.pcount=6`
176
- */
177
- OZ_PARAMS?: string;
178
- };
179
- /**
180
- * @deprecated AS-IS 소스에 존재하는 bridge 타입 정의
181
- * - hone.mobile.plugin.native.showOZViewer 시그니처 타입
182
- */
183
- type ShowOzViewerHandler = (arg: RequestShowOzViewer) => Promise<unknown>;
184
-
185
- /**
186
- * @deprecated AS-IS 소스에 존재하는 OZ용 이벤트 이름 정의
187
- * ```javascript
188
- * window.addEventListener(OZ_EVENT_NAMES.OZErrorCommand,(e)=>{
189
- * const ozEvent = (e as CustomEvent);
190
- * // detail에 oz에 전달된 값이 매핑되어 있음
191
- * console.log(ozEvent.detail);
192
- * });
193
- * ```
194
- */
195
- declare enum OZ_EVENT_NAMES {
196
- OZExportCommand = "ds.ozViewer.OZExportCommand",
197
- OZErrorCommand = "ds.ozViewer.OZErrorCommand",
198
- OZPageChangeCommand = "ds.ozViewer.OZPageChangeCommand",
199
- selectedControls = "ds.ozViewer.selectedControls",
200
- OZUserEvent = "ds.ozViewer.OZUserEvent",
201
- OZProgressCommand = "ds.ozViewer.OZProgressCommand",
202
- OZPageBindCommand = "ds.ozViewer.OZPageBindCommand",
203
- OZReportChangeCommand = "ds.ozViewer.OZReportChangeCommand"
204
- }
205
-
206
- export { type DownloadOzdMultiHandler, type DownloadOzdSingleHandler, type GetOzGlobalHandler, type GetOzInformationHandler, type HideOzViewerHandler, OZ_EVENT_NAMES, type OzExportHandler, type OzScriptHandler, type OzTriggerExternalEventHandler, type OzValidationHandler, type RequestGetOzGlobal, type ResponseGetOzGlobal, type SetOzGlobalHandler, type ShowOzViewerHandler };
@@ -1,16 +0,0 @@
1
- // src/legacy/oz-event-names.ts
2
- var OZ_EVENT_NAMES = /* @__PURE__ */ ((OZ_EVENT_NAMES2) => {
3
- OZ_EVENT_NAMES2["OZExportCommand"] = "ds.ozViewer.OZExportCommand";
4
- OZ_EVENT_NAMES2["OZErrorCommand"] = "ds.ozViewer.OZErrorCommand";
5
- OZ_EVENT_NAMES2["OZPageChangeCommand"] = "ds.ozViewer.OZPageChangeCommand";
6
- OZ_EVENT_NAMES2["selectedControls"] = "ds.ozViewer.selectedControls";
7
- OZ_EVENT_NAMES2["OZUserEvent"] = "ds.ozViewer.OZUserEvent";
8
- OZ_EVENT_NAMES2["OZProgressCommand"] = "ds.ozViewer.OZProgressCommand";
9
- OZ_EVENT_NAMES2["OZPageBindCommand"] = "ds.ozViewer.OZPageBindCommand";
10
- OZ_EVENT_NAMES2["OZReportChangeCommand"] = "ds.ozViewer.OZReportChangeCommand";
11
- return OZ_EVENT_NAMES2;
12
- })(OZ_EVENT_NAMES || {});
13
-
14
- export { OZ_EVENT_NAMES };
15
- //# sourceMappingURL=index.js.map
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/legacy/oz-event-names.ts"],"names":["OZ_EVENT_NAMES"],"mappings":";AAUY,IAAA,cAAA,qBAAAA,eAAL,KAAA;AACH,EAAAA,gBAAA,iBAAkB,CAAA,GAAA,6BAAA;AAClB,EAAAA,gBAAA,gBAAiB,CAAA,GAAA,4BAAA;AACjB,EAAAA,gBAAA,qBAAsB,CAAA,GAAA,iCAAA;AACtB,EAAAA,gBAAA,kBAAmB,CAAA,GAAA,8BAAA;AACnB,EAAAA,gBAAA,aAAc,CAAA,GAAA,yBAAA;AACd,EAAAA,gBAAA,mBAAoB,CAAA,GAAA,+BAAA;AACpB,EAAAA,gBAAA,mBAAoB,CAAA,GAAA,+BAAA;AACpB,EAAAA,gBAAA,uBAAwB,CAAA,GAAA,mCAAA;AARhB,EAAAA,OAAAA,eAAAA;AAAA,CAAA,EAAA,cAAA,IAAA,EAAA","file":"index.js","sourcesContent":["/**\n * @deprecated AS-IS 소스에 존재하는 OZ용 이벤트 이름 정의\n * ```javascript\n * window.addEventListener(OZ_EVENT_NAMES.OZErrorCommand,(e)=>{\n * const ozEvent = (e as CustomEvent);\n * // detail에 oz에 전달된 값이 매핑되어 있음\n * console.log(ozEvent.detail);\n * });\n * ```\n */\nexport enum OZ_EVENT_NAMES {\n OZExportCommand = 'ds.ozViewer.OZExportCommand',\n OZErrorCommand = 'ds.ozViewer.OZErrorCommand',\n OZPageChangeCommand = 'ds.ozViewer.OZPageChangeCommand',\n selectedControls = 'ds.ozViewer.selectedControls',\n OZUserEvent = 'ds.ozViewer.OZUserEvent',\n OZProgressCommand = 'ds.ozViewer.OZProgressCommand',\n OZPageBindCommand = 'ds.ozViewer.OZPageBindCommand',\n OZReportChangeCommand = 'ds.ozViewer.OZReportChangeCommand',\n};"]}