@yolo-croket-dev/amqp-access 0.0.78 → 0.0.79-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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.0.78",
3
+ "version": "0.0.79-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -1 +1,2 @@
1
- export * from './search-complete-selection-frame-datas.dto';
1
+ export * from './search-all-selection-frame-datas-by-target-selection-data-id.dto';
2
+ export * from './search-selection-frame-large-data-by-target-selection-data-id.dto';
@@ -14,4 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./search-complete-selection-frame-datas.dto"), exports);
17
+ __exportStar(require("./search-all-selection-frame-datas-by-target-selection-data-id.dto"), exports);
18
+ __exportStar(require("./search-selection-frame-large-data-by-target-selection-data-id.dto"), exports);
@@ -0,0 +1,7 @@
1
+ import { SelectionFrameDataEntity } from '@yolo-croket-dev/entity-v2';
2
+ export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
3
+ targetSelectionDataId: string;
4
+ }
5
+ export declare class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
6
+ selectionFrameDatas: SelectionFrameDataEntity[];
7
+ }
@@ -0,0 +1,23 @@
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.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload {
15
+ }
16
+ exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload = SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload.prototype, "targetSelectionDataId", void 0);
21
+ class SearchAllSelectionFrameDatasByTargetSelectionDataIdResult {
22
+ }
23
+ exports.SearchAllSelectionFrameDatasByTargetSelectionDataIdResult = SearchAllSelectionFrameDatasByTargetSelectionDataIdResult;
@@ -0,0 +1,7 @@
1
+ import { SelectionFrameLargeDataEntity } from '@yolo-croket-dev/entity-v2';
2
+ export declare class SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload {
3
+ targetSelectionDataId: string;
4
+ }
5
+ export declare class SearchSelectionFrameLargeDataByTargetSelectionDataIdResult {
6
+ selectionFrameLargeData: SelectionFrameLargeDataEntity;
7
+ }
@@ -0,0 +1,23 @@
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.SearchSelectionFrameLargeDataByTargetSelectionDataIdResult = exports.SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload {
15
+ }
16
+ exports.SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload = SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload.prototype, "targetSelectionDataId", void 0);
21
+ class SearchSelectionFrameLargeDataByTargetSelectionDataIdResult {
22
+ }
23
+ exports.SearchSelectionFrameLargeDataByTargetSelectionDataIdResult = SearchSelectionFrameLargeDataByTargetSelectionDataIdResult;
@@ -4,7 +4,7 @@ import { AbstractParam } from '@yolo-croket-dev/core';
4
4
  import { CreateSelectionFrameDataPayload, CreateSelectionFrameDataResult, SearchSelectionFrameChildDatasPayload, SearchSelectionFrameChildDatasResult, SearchSelectionFrameLargeDatasResult, UpdateSelectionFrameDataPayload, UpdateSelectionFrameDataResult, UpdateSelectionFrameChildDataSortPayload, GetSelectionFrameDataForEsPayload, GetSelectionFrameDataForEsResult, SearchSelectionFrameDatasForSortEditResult, SearchSelectionFrameDatasForSortEditPayload, UpdateSelectionFrameLargeDataSortPayload, GetSelectionFrameDataIdsByIdsPayload, GetSelectionFrameDataIdsByIdsResult, SearchSelectionFrameLargeDatasByStoreItemIdPayload, SearchSelectionFrameLargeDatasByStoreItemIdResult, GetSelectionFrameDatasForEsPayload, GetSelectionFrameDatasForEsResult, SearchSelectionFrameChildIsPickDatasPayload, SearchSelectionFrameChildIsPickDatasResult, GetSelectionFrameDataByIdPayload } from '@yolo-croket-dev/dto-v2/user-service/selection-frame-data';
5
5
  import { SelectionFrameDataEntity } from '@yolo-croket-dev/entity-v2';
6
6
  import { GetSelectionFrameAllDatasForEsPayload, GetSelectionFrameAllDatasForEsResult } from '@yolo-croket-dev/dto-v2/selection-server';
7
- import { SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload, SearchAllSelectionFrameDatasByTargetSelectionDataIdResult } from '../dto';
7
+ import { SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload, SearchAllSelectionFrameDatasByTargetSelectionDataIdResult, SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload, SearchSelectionFrameLargeDataByTargetSelectionDataIdResult } from '../dto';
8
8
  export declare class AmqpSelectionFrameDataService {
9
9
  private readonly client;
10
10
  private readonly amqpManager;
@@ -24,4 +24,5 @@ export declare class AmqpSelectionFrameDataService {
24
24
  searchSelectionFrameChildIsPickDatas(payload: SearchSelectionFrameChildIsPickDatasPayload, param: AbstractParam): Promise<SearchSelectionFrameChildIsPickDatasResult>;
25
25
  getSelectionFrameDataById(payload: GetSelectionFrameDataByIdPayload, param: AbstractParam): Promise<SelectionFrameDataEntity>;
26
26
  searchAllSelectionFrameDatasByTargetSelectionDataId(payload: SearchAllSelectionFrameDatasByTargetSelectionDataIdPayload, param: AbstractParam): Promise<SearchAllSelectionFrameDatasByTargetSelectionDataIdResult>;
27
+ searchSelectionFrameLargeDataByTargetSelectionDataId(payload: SearchSelectionFrameLargeDataByTargetSelectionDataIdPayload, param: AbstractParam): Promise<SearchSelectionFrameLargeDataByTargetSelectionDataIdResult>;
27
28
  }
@@ -68,6 +68,9 @@ let AmqpSelectionFrameDataService = class AmqpSelectionFrameDataService {
68
68
  async searchAllSelectionFrameDatasByTargetSelectionDataId(payload, param) {
69
69
  return this.amqpManager.call('셀렉션 관 전체 조회를 위해, targetSelectionDataId와 연관 있는 셀렉션 프레임 데이터 전체 조회', 'selection-frame-data.get.all-datas-by-target-selection-data-id', payload, param, { isErrorThrowing: true });
70
70
  }
71
+ async searchSelectionFrameLargeDataByTargetSelectionDataId(payload, param) {
72
+ return this.amqpManager.call('targetSelectionDataId 를 통해 대분류 정보 조회', 'selection-frame-data.get.large-data-by-target-selection-data-id', payload, param, { isErrorThrowing: true });
73
+ }
71
74
  };
72
75
  exports.AmqpSelectionFrameDataService = AmqpSelectionFrameDataService;
73
76
  exports.AmqpSelectionFrameDataService = AmqpSelectionFrameDataService = __decorate([
@@ -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([
@@ -2,3 +2,4 @@ export * from './ban-word/query';
2
2
  export * from './search-keyword';
3
3
  export * from './store-item-bookmark';
4
4
  export * from './ask';
5
+ export * from './user';
@@ -18,3 +18,4 @@ __exportStar(require("./ban-word/query"), exports);
18
18
  __exportStar(require("./search-keyword"), exports);
19
19
  __exportStar(require("./store-item-bookmark"), exports);
20
20
  __exportStar(require("./ask"), exports);
21
+ __exportStar(require("./user"), exports);
@@ -0,0 +1 @@
1
+ export * from './query';
@@ -0,0 +1,17 @@
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("./query"), exports);
@@ -0,0 +1,12 @@
1
+ import { UserEntity } from '@yolo-croket-dev/entity-v2/user';
2
+ export declare class GetUserInfoByIdPayload {
3
+ /** 유저 아이디 */
4
+ userId: string;
5
+ /** 검색 포함 필드 */
6
+ includeFields?: string[];
7
+ /** 검색 제외 필드 */
8
+ excludeFields?: string[];
9
+ }
10
+ export declare class GetUserInfoByIdResult {
11
+ user: UserEntity | null;
12
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserInfoByIdResult = exports.GetUserInfoByIdPayload = void 0;
4
+ class GetUserInfoByIdPayload {
5
+ }
6
+ exports.GetUserInfoByIdPayload = GetUserInfoByIdPayload;
7
+ class GetUserInfoByIdResult {
8
+ }
9
+ exports.GetUserInfoByIdResult = GetUserInfoByIdResult;
@@ -0,0 +1 @@
1
+ export * from './get-user-info-by-id.dto';
@@ -0,0 +1,17 @@
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("./get-user-info-by-id.dto"), exports);