@yolo-croket-dev/amqp-access 0.5.8-sj → 0.5.8-sj2

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.
Files changed (17) hide show
  1. package/excel-upload-server/dto/brand-excel/generate-and-share-users-by-brand-cohort-excel.dto.d.ts +7 -0
  2. package/excel-upload-server/dto/brand-excel/generate-and-share-users-by-brand-cohort-excel.dto.js +7 -1
  3. package/package.json +1 -1
  4. package/store-item-server/dto/brand-bookmark/query/get-brand-bookmark-users-by-brand-id.dto.d.ts +16 -0
  5. package/store-item-server/dto/brand-bookmark/query/{get-brand-bookmarks-by-brand-infos.dto.js → get-brand-bookmark-users-by-brand-id.dto.js} +9 -12
  6. package/store-item-server/dto/brand-bookmark/query/index.d.ts +1 -1
  7. package/store-item-server/dto/brand-bookmark/query/index.js +1 -1
  8. package/store-item-server/dto/brand-cohort/query/get-brand-infos-by-brand-cohort-id.dto.d.ts +11 -0
  9. package/store-item-server/dto/brand-cohort/query/{get-users-by-brand-cohort.dto.js → get-brand-infos-by-brand-cohort-id.dto.js} +7 -8
  10. package/store-item-server/dto/brand-cohort/query/index.d.ts +1 -1
  11. package/store-item-server/dto/brand-cohort/query/index.js +1 -1
  12. package/store-item-server/services/amqp.brand-bookmark.service.d.ts +2 -1
  13. package/store-item-server/services/amqp.brand-bookmark.service.js +3 -0
  14. package/store-item-server/services/amqp.brand-cohort.service.d.ts +2 -2
  15. package/store-item-server/services/amqp.brand-cohort.service.js +2 -2
  16. package/store-item-server/dto/brand-bookmark/query/get-brand-bookmarks-by-brand-infos.dto.d.ts +0 -20
  17. package/store-item-server/dto/brand-cohort/query/get-users-by-brand-cohort.dto.d.ts +0 -15
@@ -1,3 +1,10 @@
1
1
  export declare class GenerateAndShareUsersByBrandCohortExcelPayload {
2
2
  brandCohortId: string;
3
3
  }
4
+ export declare class GenerateAndShareUsersByBrandCohortExcelInfo {
5
+ brandId: string;
6
+ brandName: string;
7
+ }
8
+ export declare class GenerateAndShareUsersByBrandCohortExcelResult {
9
+ brandInfos: GenerateAndShareUsersByBrandCohortExcelInfo[];
10
+ }
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GenerateAndShareUsersByBrandCohortExcelPayload = void 0;
12
+ exports.GenerateAndShareUsersByBrandCohortExcelResult = exports.GenerateAndShareUsersByBrandCohortExcelInfo = exports.GenerateAndShareUsersByBrandCohortExcelPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class GenerateAndShareUsersByBrandCohortExcelPayload {
15
15
  }
@@ -18,3 +18,9 @@ __decorate([
18
18
  (0, class_validator_1.IsMongoId)(),
19
19
  __metadata("design:type", String)
20
20
  ], GenerateAndShareUsersByBrandCohortExcelPayload.prototype, "brandCohortId", void 0);
21
+ class GenerateAndShareUsersByBrandCohortExcelInfo {
22
+ }
23
+ exports.GenerateAndShareUsersByBrandCohortExcelInfo = GenerateAndShareUsersByBrandCohortExcelInfo;
24
+ class GenerateAndShareUsersByBrandCohortExcelResult {
25
+ }
26
+ exports.GenerateAndShareUsersByBrandCohortExcelResult = GenerateAndShareUsersByBrandCohortExcelResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.8-sj",
3
+ "version": "0.5.8-sj2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,16 @@
1
+ export declare class GetBrandBookmarkUsersByBrandIdPayload {
2
+ brandId: string;
3
+ brandName: string;
4
+ }
5
+ export declare class BrandBookmarkUserInfo {
6
+ userId: string;
7
+ appPush: boolean;
8
+ brandNewsAppPush: boolean;
9
+ phone: boolean;
10
+ phoneNumber: string;
11
+ brandName: string;
12
+ brandLatestBookmarkDate: string;
13
+ }
14
+ export declare class GetBrandBookmarkUsersByBrandIdResult {
15
+ bookmarks: BrandBookmarkUserInfo[];
16
+ }
@@ -9,25 +9,22 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.BrandBookmarkWithUserData = exports.GetBrandBookmarksByBrandInfosPayload = void 0;
12
+ exports.GetBrandBookmarkUsersByBrandIdResult = exports.BrandBookmarkUserInfo = exports.GetBrandBookmarkUsersByBrandIdPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class BrandInfo {
14
+ class GetBrandBookmarkUsersByBrandIdPayload {
15
15
  }
16
+ exports.GetBrandBookmarkUsersByBrandIdPayload = GetBrandBookmarkUsersByBrandIdPayload;
16
17
  __decorate([
17
18
  (0, class_validator_1.IsMongoId)(),
18
19
  __metadata("design:type", String)
19
- ], BrandInfo.prototype, "brandId", void 0);
20
+ ], GetBrandBookmarkUsersByBrandIdPayload.prototype, "brandId", void 0);
20
21
  __decorate([
21
22
  (0, class_validator_1.IsString)(),
22
23
  __metadata("design:type", String)
23
- ], BrandInfo.prototype, "brandName", void 0);
24
- class GetBrandBookmarksByBrandInfosPayload {
24
+ ], GetBrandBookmarkUsersByBrandIdPayload.prototype, "brandName", void 0);
25
+ class BrandBookmarkUserInfo {
25
26
  }
26
- exports.GetBrandBookmarksByBrandInfosPayload = GetBrandBookmarksByBrandInfosPayload;
27
- __decorate([
28
- (0, class_validator_1.IsArray)(),
29
- __metadata("design:type", Array)
30
- ], GetBrandBookmarksByBrandInfosPayload.prototype, "brandInfos", void 0);
31
- class BrandBookmarkWithUserData {
27
+ exports.BrandBookmarkUserInfo = BrandBookmarkUserInfo;
28
+ class GetBrandBookmarkUsersByBrandIdResult {
32
29
  }
33
- exports.BrandBookmarkWithUserData = BrandBookmarkWithUserData;
30
+ exports.GetBrandBookmarkUsersByBrandIdResult = GetBrandBookmarkUsersByBrandIdResult;
@@ -1,2 +1,2 @@
1
1
  export * from './get-bookmarked-brands-for-buyer.dto';
2
- export * from './get-brand-bookmarks-by-brand-infos.dto';
2
+ export * from './get-brand-bookmark-users-by-brand-id.dto';
@@ -15,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-bookmarked-brands-for-buyer.dto"), exports);
18
- __exportStar(require("./get-brand-bookmarks-by-brand-infos.dto"), exports);
18
+ __exportStar(require("./get-brand-bookmark-users-by-brand-id.dto"), exports);
@@ -0,0 +1,11 @@
1
+ export declare class GetBrandInfosByBrandCohortIdPayload {
2
+ brandCohortId: string;
3
+ }
4
+ declare class BrandInfo {
5
+ brandId: string;
6
+ brandName: string;
7
+ }
8
+ export declare class GetBrandInfosByBrandCohortIdResult {
9
+ brandInfos: BrandInfo[];
10
+ }
11
+ export {};
@@ -9,19 +9,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GetUsersByBrandCohortResult = exports.BrandCohortUser = exports.GetUsersByBrandCohortPayload = void 0;
12
+ exports.GetBrandInfosByBrandCohortIdResult = exports.GetBrandInfosByBrandCohortIdPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class GetUsersByBrandCohortPayload {
14
+ class GetBrandInfosByBrandCohortIdPayload {
15
15
  }
16
- exports.GetUsersByBrandCohortPayload = GetUsersByBrandCohortPayload;
16
+ exports.GetBrandInfosByBrandCohortIdPayload = GetBrandInfosByBrandCohortIdPayload;
17
17
  __decorate([
18
18
  (0, class_validator_1.IsMongoId)(),
19
19
  (0, class_validator_1.IsNotEmpty)(),
20
20
  __metadata("design:type", String)
21
- ], GetUsersByBrandCohortPayload.prototype, "brandCohortId", void 0);
22
- class BrandCohortUser {
21
+ ], GetBrandInfosByBrandCohortIdPayload.prototype, "brandCohortId", void 0);
22
+ class BrandInfo {
23
23
  }
24
- exports.BrandCohortUser = BrandCohortUser;
25
- class GetUsersByBrandCohortResult {
24
+ class GetBrandInfosByBrandCohortIdResult {
26
25
  }
27
- exports.GetUsersByBrandCohortResult = GetUsersByBrandCohortResult;
26
+ exports.GetBrandInfosByBrandCohortIdResult = GetBrandInfosByBrandCohortIdResult;
@@ -1,2 +1,2 @@
1
1
  export * from './get-brand-cohorts-for-admin.dto';
2
- export * from './get-users-by-brand-cohort.dto';
2
+ export * from './get-brand-infos-by-brand-cohort-id.dto';
@@ -15,4 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-brand-cohorts-for-admin.dto"), exports);
18
- __exportStar(require("./get-users-by-brand-cohort.dto"), exports);
18
+ __exportStar(require("./get-brand-infos-by-brand-cohort-id.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { CreateBrandBookmarkPayload, DeleteBrandBookmarkPayload, GetBookmarkedBrandsForBuyerPayload, GetBookmarkedBrandsForBuyerResult } from '../dto/brand-bookmark';
3
+ import { CreateBrandBookmarkPayload, DeleteBrandBookmarkPayload, GetBookmarkedBrandsForBuyerPayload, GetBookmarkedBrandsForBuyerResult, GetBrandBookmarkUsersByBrandIdPayload, GetBrandBookmarkUsersByBrandIdResult } from '../dto/brand-bookmark';
4
4
  export declare class AmqpBrandBookmarkService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -8,4 +8,5 @@ export declare class AmqpBrandBookmarkService {
8
8
  createBrandBookmark(payload: CreateBrandBookmarkPayload, param: AbstractParam): Promise<void>;
9
9
  deleteBrandBookmark(payload: DeleteBrandBookmarkPayload, param: AbstractParam): Promise<void>;
10
10
  getBookmarkedBrandsForBuyer(payload: GetBookmarkedBrandsForBuyerPayload, param: AbstractParam): Promise<GetBookmarkedBrandsForBuyerResult>;
11
+ getBrandBookmarkUsersByBrandId(payload: GetBrandBookmarkUsersByBrandIdPayload, param: AbstractParam): Promise<GetBrandBookmarkUsersByBrandIdResult>;
11
12
  }
@@ -30,6 +30,9 @@ let AmqpBrandBookmarkService = class AmqpBrandBookmarkService {
30
30
  async getBookmarkedBrandsForBuyer(payload, param) {
31
31
  return this.amqpManager.call('브랜드 북마크 리스트 조회 -구매자가 찜한 리스트 조회-', 'brand-bookmark.get-bookmarked-brands-for-buyer', payload, param, { isErrorThrowing: true });
32
32
  }
33
+ async getBrandBookmarkUsersByBrandId(payload, param) {
34
+ return this.amqpManager.call('브랜드 북마크 유저 조회 -브랜드 아이디 기반-', 'brand-bookmark.get-brand-bookmark-users-by-brand-id', payload, param, { isErrorThrowing: true });
35
+ }
33
36
  };
34
37
  exports.AmqpBrandBookmarkService = AmqpBrandBookmarkService;
35
38
  exports.AmqpBrandBookmarkService = AmqpBrandBookmarkService = __decorate([
@@ -1,7 +1,7 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
3
  import { BrandCohortForAdminEntity } from '@yolo-croket-dev/entity-v2';
4
- import { CreateBrandCohortPayload, DeleteBrandCohortPayload, UpdateBrandCohortPayload, GetBrandCohortsForAdminPayload, GetUsersByBrandCohortResult, GetUsersByBrandCohortPayload } from '../dto/brand-cohort';
4
+ import { CreateBrandCohortPayload, DeleteBrandCohortPayload, UpdateBrandCohortPayload, GetBrandCohortsForAdminPayload, GetBrandInfosByBrandCohortIdPayload, GetBrandInfosByBrandCohortIdResult } from '../dto/brand-cohort';
5
5
  export declare class AmqpBrandCohortService {
6
6
  private readonly client;
7
7
  private readonly amqpManager;
@@ -10,5 +10,5 @@ export declare class AmqpBrandCohortService {
10
10
  updateBrandCohort(payload: UpdateBrandCohortPayload, param: AbstractParam): Promise<void>;
11
11
  deleteBrandCohort(payload: DeleteBrandCohortPayload, param: AbstractParam): Promise<void>;
12
12
  getBrandCohortsForAdmin(payload: GetBrandCohortsForAdminPayload, param: AbstractParam): Promise<BrandCohortForAdminEntity[]>;
13
- getUsersByBrandCohort(payload: GetUsersByBrandCohortPayload, param: AbstractParam): Promise<GetUsersByBrandCohortResult>;
13
+ getBrandInfosByBrandCohortId(payload: GetBrandInfosByBrandCohortIdPayload, param: AbstractParam): Promise<GetBrandInfosByBrandCohortIdResult>;
14
14
  }
@@ -33,8 +33,8 @@ let AmqpBrandCohortService = class AmqpBrandCohortService {
33
33
  async getBrandCohortsForAdmin(payload, param) {
34
34
  return this.amqpManager.call('브랜드 코호트 조회', 'brand-cohort.get.list-for-admin', payload, param, { isErrorThrowing: true });
35
35
  }
36
- async getUsersByBrandCohort(payload, param) {
37
- return this.amqpManager.call('브랜드 코호트 유저 조회', 'brand-cohort.get.users-by-brand-cohort', payload, param, { isErrorThrowing: true });
36
+ async getBrandInfosByBrandCohortId(payload, param) {
37
+ return this.amqpManager.call('브랜드 코호트 기반 브랜드 리스트 조회', 'brand-cohort.get.list-by-brand-cohort-id', payload, param, { isErrorThrowing: true });
38
38
  }
39
39
  };
40
40
  exports.AmqpBrandCohortService = AmqpBrandCohortService;
@@ -1,20 +0,0 @@
1
- declare class BrandInfo {
2
- brandId: string;
3
- brandName: string;
4
- }
5
- export declare class GetBrandBookmarksByBrandInfosPayload {
6
- brandInfos: BrandInfo[];
7
- }
8
- export declare class BrandBookmarkWithUserData {
9
- userId: string;
10
- appPush: boolean;
11
- brandNewsAppPush: boolean;
12
- phone: boolean;
13
- phoneNumber: string;
14
- brandName: string;
15
- brandLatestBookmarkDate: string;
16
- }
17
- export interface GetBrandBookmarksByBrandInfosResult {
18
- bookmarks: BrandBookmarkWithUserData[];
19
- }
20
- export {};
@@ -1,15 +0,0 @@
1
- export declare class GetUsersByBrandCohortPayload {
2
- brandCohortId: string;
3
- }
4
- export declare class BrandCohortUser {
5
- userId: string;
6
- appPush: boolean;
7
- brandNewsAppPush: boolean;
8
- phone: boolean;
9
- phoneNumber: string;
10
- brandName: string;
11
- brandLatestBookmarkDate: string;
12
- }
13
- export declare class GetUsersByBrandCohortResult {
14
- brandCohortUsers: BrandCohortUser[];
15
- }