@yolo-croket-dev/core 1.9.10 → 1.9.12

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.
@@ -130,7 +130,7 @@ let GrpcExceptionFilter = class GrpcExceptionFilter extends microservices_1.Base
130
130
  }
131
131
  }
132
132
  };
133
- exports.GrpcExceptionFilter = GrpcExceptionFilter;
134
- exports.GrpcExceptionFilter = GrpcExceptionFilter = __decorate([
133
+ GrpcExceptionFilter = __decorate([
135
134
  (0, common_1.Catch)()
136
135
  ], GrpcExceptionFilter);
136
+ exports.GrpcExceptionFilter = GrpcExceptionFilter;
@@ -219,7 +219,7 @@ let LoggingServiceInterceptor = class LoggingServiceInterceptor {
219
219
  }));
220
220
  }
221
221
  };
222
- exports.LoggingServiceInterceptor = LoggingServiceInterceptor;
223
- exports.LoggingServiceInterceptor = LoggingServiceInterceptor = __decorate([
222
+ LoggingServiceInterceptor = __decorate([
224
223
  (0, common_1.Injectable)()
225
224
  ], LoggingServiceInterceptor);
225
+ exports.LoggingServiceInterceptor = LoggingServiceInterceptor;
@@ -370,9 +370,9 @@ let RPCInterceptor = class RPCInterceptor {
370
370
  })));
371
371
  }
372
372
  };
373
- exports.RPCInterceptor = RPCInterceptor;
374
- exports.RPCInterceptor = RPCInterceptor = __decorate([
373
+ RPCInterceptor = __decorate([
375
374
  (0, common_1.Injectable)(),
376
375
  __metadata("design:paramtypes", [core_1.Reflector,
377
376
  graceful_shutdown_service_1.GracefulShutdownService])
378
377
  ], RPCInterceptor);
378
+ exports.RPCInterceptor = RPCInterceptor;
@@ -18,10 +18,9 @@ var ErrActionTypeEnum;
18
18
  ErrActionTypeEnum["LEGACY_SHOW_TOAST"] = "LEGACY_SHOW_TOAST";
19
19
  ErrActionTypeEnum["FORCE_UPDATE"] = "FORCE_UPDATE";
20
20
  ErrActionTypeEnum["UPDATE_ACCESS_TOKEN"] = "UPDATE_ACCESS_TOKEN";
21
- })(ErrActionTypeEnum || (exports.ErrActionTypeEnum = ErrActionTypeEnum = {}));
21
+ })(ErrActionTypeEnum = exports.ErrActionTypeEnum || (exports.ErrActionTypeEnum = {}));
22
22
  class ErrAction {
23
23
  }
24
- exports.ErrAction = ErrAction;
25
24
  __decorate([
26
25
  (0, swagger_1.ApiProperty)({
27
26
  description: '액션 타입',
@@ -58,9 +57,9 @@ __decorate([
58
57
  }),
59
58
  __metadata("design:type", String)
60
59
  ], ErrAction.prototype, "webViewUrl", void 0);
60
+ exports.ErrAction = ErrAction;
61
61
  class ErrInfo {
62
62
  }
63
- exports.ErrInfo = ErrInfo;
64
63
  __decorate([
65
64
  (0, swagger_1.ApiProperty)({
66
65
  description: '에러 종류 식별자',
@@ -89,3 +88,4 @@ __decorate([
89
88
  }),
90
89
  __metadata("design:type", Object)
91
90
  ], ErrInfo.prototype, "errOption", void 0);
91
+ exports.ErrInfo = ErrInfo;
@@ -21,4 +21,4 @@ var LogLevelEnum;
21
21
  LogLevelEnum["DEBUG"] = "debug";
22
22
  LogLevelEnum["WARN"] = "warn";
23
23
  LogLevelEnum["ERROR"] = "error";
24
- })(LogLevelEnum || (exports.LogLevelEnum = LogLevelEnum = {}));
24
+ })(LogLevelEnum = exports.LogLevelEnum || (exports.LogLevelEnum = {}));
@@ -1,6 +1,10 @@
1
1
  import { HttpException } from '@nestjs/common';
2
2
  import { LogLevelEnum } from './log-level.enum';
3
3
  import type { ErrAction } from './exception';
4
+ export declare enum MsaExceptionMessageAckBehaviorEnum {
5
+ ACK = "ACK",
6
+ NACK = "NACK"
7
+ }
4
8
  export interface MsaExceptionOption {
5
9
  /**
6
10
  * 로그 레벨
@@ -8,6 +12,12 @@ export interface MsaExceptionOption {
8
12
  * - 기본값은 ERROR 입니다.
9
13
  * */
10
14
  logErrorLevel?: LogLevelEnum;
15
+ /**
16
+ * 메시지 consumer 실패 시 ACK/NACK override 옵션
17
+ * - 현재는 amqp-rabbit-mq subscribe consumer에서만 해석합니다.
18
+ * - option이 없으면 consumer handler의 기본 errorBehavior를 따릅니다.
19
+ */
20
+ messageAckBehavior?: MsaExceptionMessageAckBehaviorEnum;
11
21
  }
12
22
  /**
13
23
  * @author jun
@@ -27,7 +37,7 @@ export interface MsaException {
27
37
  errOption?: MsaExceptionOption;
28
38
  }
29
39
  /** HttpException과 MsaException을 결합한 타입 */
30
- export type MsaHttpException = MsaException & HttpException;
40
+ export declare type MsaHttpException = MsaException & HttpException;
31
41
  /**
32
42
  * @description MsaException 타입 가드
33
43
  * @param error 검사할 에러 객체
@@ -1,7 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.isMsaException = void 0;
3
+ exports.isMsaException = exports.MsaExceptionMessageAckBehaviorEnum = void 0;
4
4
  const common_1 = require("@nestjs/common");
5
+ var MsaExceptionMessageAckBehaviorEnum;
6
+ (function (MsaExceptionMessageAckBehaviorEnum) {
7
+ MsaExceptionMessageAckBehaviorEnum["ACK"] = "ACK";
8
+ MsaExceptionMessageAckBehaviorEnum["NACK"] = "NACK";
9
+ })(MsaExceptionMessageAckBehaviorEnum = exports.MsaExceptionMessageAckBehaviorEnum || (exports.MsaExceptionMessageAckBehaviorEnum = {}));
5
10
  /**
6
11
  * @description MsaException 타입 가드
7
12
  * @param error 검사할 에러 객체
@@ -48,8 +48,7 @@ let GracefulShutdownModule = class GracefulShutdownModule {
48
48
  msaLogger.info('GracefulShutdownService.onModuleDestroy: all interceptors finished, shutting down', { traceId: 'ON_MODULE_DESTROY' });
49
49
  }
50
50
  };
51
- exports.GracefulShutdownModule = GracefulShutdownModule;
52
- exports.GracefulShutdownModule = GracefulShutdownModule = __decorate([
51
+ GracefulShutdownModule = __decorate([
53
52
  (0, common_1.Global)(),
54
53
  (0, common_1.Module)({
55
54
  providers: [graceful_shutdown_service_1.GracefulShutdownService],
@@ -57,3 +56,4 @@ exports.GracefulShutdownModule = GracefulShutdownModule = __decorate([
57
56
  }),
58
57
  __metadata("design:paramtypes", [graceful_shutdown_service_1.GracefulShutdownService])
59
58
  ], GracefulShutdownModule);
59
+ exports.GracefulShutdownModule = GracefulShutdownModule;
@@ -1,7 +1,7 @@
1
1
  import { RmqOptions, ServerRMQ } from '@nestjs/microservices';
2
2
  import { Channel } from 'amqp-connection-manager';
3
3
  import { ConsumeMessage } from 'amqplib';
4
- export type GracefulRmqOptions = RmqOptions['options'] & {
4
+ export declare type GracefulRmqOptions = RmqOptions['options'] & {
5
5
  waitingEndingHandlersTimeoutMs?: number;
6
6
  waitingEndingHandlersIntervalMs?: number;
7
7
  };
@@ -133,7 +133,7 @@ let GracefulShutdownService = class GracefulShutdownService {
133
133
  });
134
134
  }
135
135
  };
136
- exports.GracefulShutdownService = GracefulShutdownService;
137
- exports.GracefulShutdownService = GracefulShutdownService = __decorate([
136
+ GracefulShutdownService = __decorate([
138
137
  (0, common_1.Injectable)()
139
138
  ], GracefulShutdownService);
139
+ exports.GracefulShutdownService = GracefulShutdownService;
@@ -15,10 +15,10 @@ const redisProvider = {
15
15
  };
16
16
  let RedisModule = class RedisModule {
17
17
  };
18
- exports.RedisModule = RedisModule;
19
- exports.RedisModule = RedisModule = __decorate([
18
+ RedisModule = __decorate([
20
19
  (0, common_1.Module)({
21
20
  providers: [redisProvider],
22
21
  exports: [redisProvider],
23
22
  })
24
23
  ], RedisModule);
24
+ exports.RedisModule = RedisModule;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/core",
3
- "version": "1.9.10",
3
+ "version": "1.9.12",
4
4
  "author": "Yolo Co., Ltd.",
5
5
  "description": "Yolo commonization module",
6
6
  "main": "index.js",
@@ -31,8 +31,8 @@ let ValidationPipe = class ValidationPipe {
31
31
  return value;
32
32
  }
33
33
  };
34
- exports.ValidationPipe = ValidationPipe;
35
- exports.ValidationPipe = ValidationPipe = __decorate([
34
+ ValidationPipe = __decorate([
36
35
  (0, common_1.Injectable)(),
37
36
  __metadata("design:paramtypes", [Object])
38
37
  ], ValidationPipe);
38
+ exports.ValidationPipe = ValidationPipe;