@yolo-croket-dev/core 1.9.0 → 1.9.2-jun.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.
@@ -31,10 +31,12 @@ async function AmqpHandler(client, messagePattern, payload) {
31
31
  * 다른 서비스에서 이미 처리가 될 수 있음
32
32
  * */
33
33
  (0, _1.reWriteFileValue)((_a = data === null || data === void 0 ? void 0 : data.arg) === null || _a === void 0 ? void 0 : _a.file);
34
+ console.log('data@@@@@@@', data);
34
35
  const errInfo = data.errInfo ? data.errInfo : {
35
36
  message: data.errMessage,
36
37
  type: data.errType,
37
38
  action: data.errAction,
39
+ errOption: data.errOption,
38
40
  };
39
41
  delete data.errType;
40
42
  delete data.errMessage;
@@ -153,6 +153,7 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
153
153
  message: error.subMessage ? error.subMessage : error.message,
154
154
  status: error.status,
155
155
  stack: error.stack,
156
+ errOption: error.errOption,
156
157
  },
157
158
  messageBrokerInfo: {
158
159
  messagePatten: content.pattern,
@@ -1,5 +1,6 @@
1
1
  import { ErrAction } from './exception';
2
2
  import { AbstractRequest, ErrInfo } from '.';
3
+ import { MsaExceptionOption } from './msa-exception';
3
4
  export interface AbstractAmqpHandlerData {
4
5
  isError?: boolean;
5
6
  subMessage?: string | null;
@@ -13,6 +14,7 @@ export interface AbstractAmqpHandlerData {
13
14
  errType?: string;
14
15
  errMessage?: string;
15
16
  errAction?: ErrAction;
17
+ errOption?: MsaExceptionOption;
16
18
  }
17
19
  /** Raw RabbitMQ Message */
18
20
  export interface RawEventMessagePayload<Payload> {
@@ -1,3 +1,4 @@
1
+ import { MsaExceptionOption } from './msa-exception';
1
2
  export declare enum ErrActionTypeEnum {
2
3
  SERVER_PAUSE = "SERVER_PAUSE",
3
4
  OPEN_WEBVIEW = "OPEN_WEBVIEW",
@@ -16,4 +17,5 @@ export declare class ErrInfo {
16
17
  type?: string;
17
18
  message?: string;
18
19
  action?: ErrAction;
20
+ errOption?: MsaExceptionOption;
19
21
  }
@@ -82,3 +82,10 @@ __decorate([
82
82
  }),
83
83
  __metadata("design:type", ErrAction)
84
84
  ], ErrInfo.prototype, "action", void 0);
85
+ __decorate([
86
+ (0, swagger_1.ApiProperty)({
87
+ description: '에러 옵션',
88
+ required: false,
89
+ }),
90
+ __metadata("design:type", Object)
91
+ ], ErrInfo.prototype, "errOption", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.9.0",
3
+ "version": "1.9.2-jun.0",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",