@yolo-croket-dev/amqp-access 0.0.78-jun.0 → 0.0.78-jun.2

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.0.78-jun.0",
3
+ "version": "0.0.78-jun.2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -6,6 +6,7 @@ import { GetUsernameByIdPayload, GetUsersForAppPushPayload, GetUsersForAppPushRe
6
6
  import { Membership } from '@yolo-croket-dev/entity';
7
7
  import { UserPhoneDecodeByPhoneNumberPayloadDto, UserPhoneDecodeByPhoneNumberResultDto } from '@yolo-croket-dev/dto/user-service';
8
8
  import { NotificationUser, UpdateUserByIdPayload } from './amqp.user-service.types';
9
+ import { GetUserInfoByIdPayload, GetUserInfoByIdResult } from './dto/user';
9
10
  export declare class AmqpUserService {
10
11
  private readonly client;
11
12
  private readonly amqpManager;
@@ -25,4 +26,5 @@ export declare class AmqpUserService {
25
26
  updateUserById(payload: UpdateUserByIdPayload, param: AbstractParam): Promise<void>;
26
27
  /** 유저 아이디를 통한 휴대폰 번호 가져오기 (use. notification) */
27
28
  userPhoneDecodeById(userId: string, param: AbstractParam): Promise<string | null>;
29
+ getUserInfoById(payload: GetUserInfoByIdPayload, param: AbstractParam): Promise<GetUserInfoByIdResult>;
28
30
  }
@@ -66,6 +66,9 @@ let AmqpUserService = class AmqpUserService {
66
66
  async userPhoneDecodeById(userId, param) {
67
67
  return this.amqpManager.call('userPhoneDecodeById', 'USER_PHONE_DECODE_BY_ID', { userId }, param);
68
68
  }
69
+ async getUserInfoById(payload, param) {
70
+ return this.amqpManager.call('유저 아이디로 해당 유저 정보 검색', 'user.get.by-id', payload, param, { isErrorThrowing: true });
71
+ }
69
72
  };
70
73
  exports.AmqpUserService = AmqpUserService;
71
74
  exports.AmqpUserService = AmqpUserService = __decorate([
@@ -1,7 +1,7 @@
1
1
  import { UserEntity } from '@yolo-croket-dev/entity/src/user';
2
2
  export declare class GetUserInfoByIdPayload {
3
- /** 상품 아이디 */
4
- itemId: string;
3
+ /** 유저 아이디 */
4
+ userId: string;
5
5
  /** 검색 포함 필드 */
6
6
  includeFields?: string[];
7
7
  /** 검색 제외 필드 */