@yolo-croket-dev/amqp-access 0.5.137 → 0.5.139-sj

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,5 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { SendBulkPushByRedisDBPayload } from '@yolo-croket-dev/dto-v2/notification-service/app-bulk-push/command';
3
4
  import { CheckIngBulkPushExceptMePayload } from '../dto/app-bulk-push/query';
4
5
  export declare class AmqpAppBulkPushService {
5
6
  private readonly client;
@@ -7,4 +8,5 @@ export declare class AmqpAppBulkPushService {
7
8
  constructor(client: ClientProxy);
8
9
  sendReservationBulkPush(payload: void, param: AbstractParam): Promise<boolean>;
9
10
  checkIngBulkPushExceptMe(payload: CheckIngBulkPushExceptMePayload, param: AbstractParam): Promise<boolean>;
11
+ sendBulkPushByRedisDBForEvent(payload: SendBulkPushByRedisDBPayload, param: AbstractParam): boolean;
10
12
  }
@@ -27,6 +27,9 @@ let AmqpAppBulkPushService = class AmqpAppBulkPushService {
27
27
  async checkIngBulkPushExceptMe(payload, param) {
28
28
  return this.amqpManager.call('나를 제외한 진행중인 푸시가 있는지 체크', 'app-bulk-push.check.ing-except-me', payload, param, { isErrorThrowing: true });
29
29
  }
30
+ sendBulkPushByRedisDBForEvent(payload, param) {
31
+ return this.amqpManager.onlyPublish('Redis DB에 저장된 대량 푸시 데이터 전송', 'app-bulk-push.send.by-redis-db', payload, param, { isErrorThrowing: true });
32
+ }
30
33
  };
31
34
  exports.AmqpAppBulkPushService = AmqpAppBulkPushService;
32
35
  exports.AmqpAppBulkPushService = AmqpAppBulkPushService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.137",
3
+ "version": "0.5.139-sj",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -2,5 +2,5 @@ import { BrandEntity } from '@yolo-croket-dev/entity-v2';
2
2
  export declare class GetBrandByBrandNamePayload {
3
3
  brandName: string;
4
4
  }
5
- export interface GetBrandByBrandNameResult extends Pick<BrandEntity, '_id' | 'brandName' | 'engBrandName'> {
5
+ export interface GetBrandByBrandNameResult extends Pick<BrandEntity, '_id' | 'brandName' | 'engBrandName' | 'status'> {
6
6
  }