@yolo-croket-dev/amqp-access 0.5.7-sj9 → 0.5.8-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.
Files changed (20) hide show
  1. package/excel-upload-server/amqp.excel-upload-server.module.js +2 -0
  2. package/excel-upload-server/dto/brand-excel/generate-and-share-users-by-brand-cohort-excel.dto.d.ts +3 -0
  3. package/excel-upload-server/dto/brand-excel/generate-and-share-users-by-brand-cohort-excel.dto.js +20 -0
  4. package/excel-upload-server/dto/brand-excel/index.d.ts +1 -0
  5. package/excel-upload-server/dto/brand-excel/index.js +17 -0
  6. package/excel-upload-server/dto/index.d.ts +1 -0
  7. package/excel-upload-server/dto/index.js +1 -0
  8. package/excel-upload-server/services/amqp.brand-excel.service.d.ts +9 -0
  9. package/excel-upload-server/services/amqp.brand-excel.service.js +33 -0
  10. package/excel-upload-server/services/index.d.ts +1 -0
  11. package/excel-upload-server/services/index.js +1 -0
  12. package/package.json +1 -1
  13. package/store-item-server/dto/brand-bookmark/query/get-bookmarked-brands-for-buyer.dto.d.ts +1 -1
  14. package/store-item-server/dto/brand-bookmark/query/get-bookmarked-brands-for-buyer.dto.js +4 -1
  15. package/store-item-server/dto/brand-cohort/query/get-brand-cohorts-for-admin.dto.d.ts +1 -1
  16. package/store-item-server/dto/brand-cohort/query/get-brand-cohorts-for-admin.dto.js +4 -1
  17. package/store-item-server/dto/brand-cohort/query/get-users-by-brand-cohort.dto.d.ts +1 -1
  18. package/store-item-server/dto/brand-cohort/query/get-users-by-brand-cohort.dto.js +4 -1
  19. package/store-item-server/dto/summer-black-friday.modules/weekly-mega-deal/command/create-weekly-mega-deal-data.dto.d.ts +8 -0
  20. package/store-item-server/dto/summer-black-friday.modules/weekly-mega-deal/command/create-weekly-mega-deal-data.dto.js +10 -0
@@ -19,11 +19,13 @@ exports.AmqpExcelUploadServerModule = AmqpExcelUploadServerModule = __decorate([
19
19
  amqp_excel_upload_server_provider_1.ExcelUploadServerProvider,
20
20
  services_1.AmqpStoreItemExcelService,
21
21
  services_1.AmqpPurchasedInfoExcelService,
22
+ services_1.AmqpBrandExcelService,
22
23
  ],
23
24
  exports: [
24
25
  services_1.AmqpStoreItemExcelService,
25
26
  amqp_excel_upload_server_provider_1.ExcelUploadServerProvider,
26
27
  services_1.AmqpPurchasedInfoExcelService,
28
+ services_1.AmqpBrandExcelService,
27
29
  ],
28
30
  })
29
31
  ], AmqpExcelUploadServerModule);
@@ -0,0 +1,3 @@
1
+ export declare class GenerateAndShareUsersByBrandCohortExcelPayload {
2
+ brandCohortId: string;
3
+ }
@@ -0,0 +1,20 @@
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.GenerateAndShareUsersByBrandCohortExcelPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GenerateAndShareUsersByBrandCohortExcelPayload {
15
+ }
16
+ exports.GenerateAndShareUsersByBrandCohortExcelPayload = GenerateAndShareUsersByBrandCohortExcelPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsMongoId)(),
19
+ __metadata("design:type", String)
20
+ ], GenerateAndShareUsersByBrandCohortExcelPayload.prototype, "brandCohortId", void 0);
@@ -0,0 +1 @@
1
+ export * from './generate-and-share-users-by-brand-cohort-excel.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("./generate-and-share-users-by-brand-cohort-excel.dto"), exports);
@@ -1,2 +1,3 @@
1
+ export * from './brand-excel';
1
2
  export * from './purchased-info-excel';
2
3
  export * from './store-item-excel';
@@ -14,5 +14,6 @@ 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("./brand-excel"), exports);
17
18
  __exportStar(require("./purchased-info-excel"), exports);
18
19
  __exportStar(require("./store-item-excel"), exports);
@@ -0,0 +1,9 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core';
3
+ import { GenerateAndShareUsersByBrandCohortExcelPayload } from '../dto';
4
+ export declare class AmqpBrandExcelService {
5
+ private readonly client;
6
+ private readonly amqpManager;
7
+ constructor(client: ClientProxy);
8
+ generateAndShareUsersByBrandCohortExcel(payload: GenerateAndShareUsersByBrandCohortExcelPayload, param: AbstractParam): Promise<void>;
9
+ }
@@ -0,0 +1,33 @@
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
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.AmqpBrandExcelService = void 0;
16
+ const common_1 = require("@nestjs/common");
17
+ const microservices_1 = require("@nestjs/microservices");
18
+ const functions_1 = require("@yolo-croket-dev/core/functions");
19
+ let AmqpBrandExcelService = class AmqpBrandExcelService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async generateAndShareUsersByBrandCohortExcel(payload, param) {
25
+ return this.amqpManager.call('브랜드 코호트 기반 유저 리스트 엑셀 파일 생성 및 슬랙 공유', 'brand-excel.generate-and-share-users-by-brand-cohort-excel', payload, param, { isErrorThrowing: true });
26
+ }
27
+ };
28
+ exports.AmqpBrandExcelService = AmqpBrandExcelService;
29
+ exports.AmqpBrandExcelService = AmqpBrandExcelService = __decorate([
30
+ (0, common_1.Injectable)(),
31
+ __param(0, (0, common_1.Inject)('EXCEL_UPLOAD_SERVER_PROVIDER')),
32
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
33
+ ], AmqpBrandExcelService);
@@ -1,2 +1,3 @@
1
1
  export * from './amqp.store-item-excel.service';
2
2
  export * from './amqp.purchased-info-excel.service';
3
+ export * from './amqp.brand-excel.service';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./amqp.store-item-excel.service"), exports);
18
18
  __exportStar(require("./amqp.purchased-info-excel.service"), exports);
19
+ __exportStar(require("./amqp.brand-excel.service"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.5.7-sj9",
3
+ "version": "0.5.8-sj",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -7,7 +7,7 @@ export declare class GetBookmarkedBrandsForBuyerPayload {
7
7
  limit: number;
8
8
  sortType: BrandSortTypeEnum;
9
9
  }
10
- export interface GetBookmarkedBrandsForBuyerResult {
10
+ export declare class GetBookmarkedBrandsForBuyerResult {
11
11
  brands: BrandForBuyerEntity[];
12
12
  totalCount: number;
13
13
  }
@@ -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.GetBookmarkedBrandsForBuyerPayload = exports.BrandSortTypeEnum = void 0;
12
+ exports.GetBookmarkedBrandsForBuyerResult = exports.GetBookmarkedBrandsForBuyerPayload = exports.BrandSortTypeEnum = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  var BrandSortTypeEnum;
15
15
  (function (BrandSortTypeEnum) {
@@ -31,3 +31,6 @@ __decorate([
31
31
  (0, class_validator_1.IsEnum)(BrandSortTypeEnum),
32
32
  __metadata("design:type", String)
33
33
  ], GetBookmarkedBrandsForBuyerPayload.prototype, "sortType", void 0);
34
+ class GetBookmarkedBrandsForBuyerResult {
35
+ }
36
+ exports.GetBookmarkedBrandsForBuyerResult = GetBookmarkedBrandsForBuyerResult;
@@ -9,7 +9,7 @@ export declare class GetBrandCohortsForAdminPayload {
9
9
  page: number;
10
10
  limit: number;
11
11
  }
12
- export interface GetBrandCohortsForAdminResult {
12
+ export declare class GetBrandCohortsForAdminResult {
13
13
  brandCohorts: BrandCohortForAdminEntity[];
14
14
  totalCount: number;
15
15
  }
@@ -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.GetBrandCohortsForAdminPayload = exports.BrandCohortSearchTypeEnum = void 0;
12
+ exports.GetBrandCohortsForAdminResult = exports.GetBrandCohortsForAdminPayload = exports.BrandCohortSearchTypeEnum = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  var BrandCohortSearchTypeEnum;
15
15
  (function (BrandCohortSearchTypeEnum) {
@@ -37,3 +37,6 @@ __decorate([
37
37
  (0, class_validator_1.IsNumber)(),
38
38
  __metadata("design:type", Number)
39
39
  ], GetBrandCohortsForAdminPayload.prototype, "limit", void 0);
40
+ class GetBrandCohortsForAdminResult {
41
+ }
42
+ exports.GetBrandCohortsForAdminResult = GetBrandCohortsForAdminResult;
@@ -10,6 +10,6 @@ export declare class BrandCohortUser {
10
10
  brandName: string;
11
11
  brandLatestBookmarkDate: string;
12
12
  }
13
- export interface GetUsersByBrandCohortResult {
13
+ export declare class GetUsersByBrandCohortResult {
14
14
  brandCohortUsers: BrandCohortUser[];
15
15
  }
@@ -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.BrandCohortUser = exports.GetUsersByBrandCohortPayload = void 0;
12
+ exports.GetUsersByBrandCohortResult = exports.BrandCohortUser = exports.GetUsersByBrandCohortPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  class GetUsersByBrandCohortPayload {
15
15
  }
@@ -22,3 +22,6 @@ __decorate([
22
22
  class BrandCohortUser {
23
23
  }
24
24
  exports.BrandCohortUser = BrandCohortUser;
25
+ class GetUsersByBrandCohortResult {
26
+ }
27
+ exports.GetUsersByBrandCohortResult = GetUsersByBrandCohortResult;
@@ -28,6 +28,14 @@ import { Types } from 'mongoose';
28
28
  export declare class WeeklyMegaDealPeriodItemDataDto implements WeeklyMegaDealPeriodItemData {
29
29
  itemId: string | Types.ObjectId;
30
30
  isShowNow: boolean;
31
+ /**
32
+ * @description 판매 개수 제한
33
+ */
34
+ sellingNumsLimit?: number | null;
35
+ /**
36
+ * @description 현재 판매된 수 초기화 여부
37
+ */
38
+ isCurrentSoldNumsInit?: boolean;
31
39
  }
32
40
  export declare class ExternalPriceInfoDto implements ExternalPriceInfo {
33
41
  name: ExternalPriceNameEnum;
@@ -25,6 +25,16 @@ __decorate([
25
25
  (0, class_validator_1.IsBoolean)(),
26
26
  __metadata("design:type", Boolean)
27
27
  ], WeeklyMegaDealPeriodItemDataDto.prototype, "isShowNow", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsNumber)(),
30
+ (0, class_validator_1.IsOptional)(),
31
+ __metadata("design:type", Object)
32
+ ], WeeklyMegaDealPeriodItemDataDto.prototype, "sellingNumsLimit", void 0);
33
+ __decorate([
34
+ (0, class_validator_1.IsBoolean)(),
35
+ (0, class_validator_1.IsOptional)(),
36
+ __metadata("design:type", Boolean)
37
+ ], WeeklyMegaDealPeriodItemDataDto.prototype, "isCurrentSoldNumsInit", void 0);
28
38
  class ExternalPriceInfoDto {
29
39
  }
30
40
  exports.ExternalPriceInfoDto = ExternalPriceInfoDto;