@yolo-croket-dev/amqp-access 0.7.98 → 0.7.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.7.98",
3
+ "version": "0.7.100",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,2 @@
1
+ export * from './patch-chat-room-check.dto';
2
+ export * from './patch-chat-room-un-check-all.dto';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./patch-chat-room-check.dto"), exports);
18
+ __exportStar(require("./patch-chat-room-un-check-all.dto"), exports);
@@ -0,0 +1,4 @@
1
+ export declare class PatchChatRoomCheckPayload {
2
+ chatRoomId: string;
3
+ isChecking: boolean;
4
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.PatchChatRoomCheckPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class PatchChatRoomCheckPayload {
15
+ }
16
+ exports.PatchChatRoomCheckPayload = PatchChatRoomCheckPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], PatchChatRoomCheckPayload.prototype, "chatRoomId", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsBoolean)(),
23
+ __metadata("design:type", Boolean)
24
+ ], PatchChatRoomCheckPayload.prototype, "isChecking", void 0);
@@ -0,0 +1,3 @@
1
+ export interface PatchChatRoomUnCheckAllResult {
2
+ unCheckedNums: number;
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export * from './get-chat-room-last-chat-answered.dto';
2
2
  export * from './get-chat-room-ids-by-p-info-ids.dto';
3
+ export * from './command';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-chat-room-last-chat-answered.dto"), exports);
18
18
  __exportStar(require("./get-chat-room-ids-by-p-info-ids.dto"), exports);
19
+ __exportStar(require("./command"), exports);
@@ -1 +1,2 @@
1
1
  export * from './chat-content-group';
2
+ export * from './chat-room';
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./chat-content-group"), exports);
18
+ __exportStar(require("./chat-room"), exports);
@@ -16,3 +16,4 @@ export * from './device-id';
16
16
  export * from './store.modules';
17
17
  export * from './daily-random-coupon-noti-user';
18
18
  export * from './store-commission-history';
19
+ export * from './chat.modules';
@@ -32,3 +32,4 @@ __exportStar(require("./device-id"), exports);
32
32
  __exportStar(require("./store.modules"), exports);
33
33
  __exportStar(require("./daily-random-coupon-noti-user"), exports);
34
34
  __exportStar(require("./store-commission-history"), exports);
35
+ __exportStar(require("./chat.modules"), exports);
@@ -5,5 +5,5 @@ export declare class GetDuplicateUsersByPhoneNumberPayload {
5
5
  sort?: 'paymentDate';
6
6
  }
7
7
  export interface GetDuplicateUsersByPhoneNumberResult extends Pick<UserEntity, 'email' | 'authId' | 'signed'> {
8
- isPurchaseRecordExists: boolean;
8
+ isPurchaseRecordExists?: boolean;
9
9
  }
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { GetChatRoomIdsByPInfoIdsPayload, GetChatRoomIdsByPInfoIdsResult, GetChatRoomLastChatAnsweredPayload, GetChatRoomLastChatAnsweredResult } from '../dto/chat.modules/chat-room';
3
+ import { GetChatRoomIdsByPInfoIdsPayload, GetChatRoomIdsByPInfoIdsResult, GetChatRoomLastChatAnsweredPayload, GetChatRoomLastChatAnsweredResult, PatchChatRoomCheckPayload, PatchChatRoomUnCheckAllResult } from '../dto/chat.modules/chat-room';
4
4
  export declare class AmqpChatRoomService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -8,4 +8,6 @@ export declare class AmqpChatRoomService {
8
8
  sendSlackAlertForUnreadMessageSellerList(payload: void, param: AbstractParam): Promise<boolean>;
9
9
  getChatRoomLastChatAnswered(payload: GetChatRoomLastChatAnsweredPayload, param: AbstractParam): Promise<GetChatRoomLastChatAnsweredResult>;
10
10
  getChatRoomIdsByPInfoIds(payload: GetChatRoomIdsByPInfoIdsPayload, param: AbstractParam): Promise<GetChatRoomIdsByPInfoIdsResult[]>;
11
+ patchChatRoomCheck(payload: PatchChatRoomCheckPayload, param: AbstractParam): Promise<void>;
12
+ patchChatRoomUnCheckAll(payload: void, param: AbstractParam): Promise<PatchChatRoomUnCheckAllResult>;
11
13
  }
@@ -30,6 +30,12 @@ let AmqpChatRoomService = class AmqpChatRoomService {
30
30
  async getChatRoomIdsByPInfoIds(payload, param) {
31
31
  return this.amqpManager.call('pInfo 아이디로 채팅방 아이디 조회', 'chat-room.get.ids-by-p-info-ids', payload, param, { isErrorThrowing: true });
32
32
  }
33
+ async patchChatRoomCheck(payload, param) {
34
+ return this.amqpManager.call('채팅방 체크', 'chat-room.patch.check', payload, param, { isErrorThrowing: true });
35
+ }
36
+ async patchChatRoomUnCheckAll(payload, param) {
37
+ return this.amqpManager.call('채팅방 모두 체크 해제', 'chat-room.patch.un-check-all', payload, param, { isErrorThrowing: true });
38
+ }
33
39
  };
34
40
  exports.AmqpChatRoomService = AmqpChatRoomService;
35
41
  exports.AmqpChatRoomService = AmqpChatRoomService = __decorate([