@yolo-croket-dev/amqp-access 0.2.38 → 0.2.39-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.
@@ -1,10 +1,15 @@
1
1
  import { CouponTemplateEntity } from '@yolo-croket-dev/entity/src/coupon-template/coupon-template.entity';
2
2
  export type CouponTemplateForMaxDisCount = Pick<CouponTemplateEntity, '_id' | 'useConditionInfo' | 'discountType' | 'discountValue' | 'discountRate' | 'couponCode' | 'periodInfo' | 'maxDiscountValue'>;
3
+ export declare class CategoryInfo {
4
+ mainCategory: string;
5
+ subCategory: string;
6
+ }
3
7
  export declare class IdInfo {
4
8
  itemId: string;
5
9
  storeId?: string;
6
10
  themeIds?: string[];
7
11
  selectionFrameIds?: string[];
12
+ category?: CategoryInfo;
8
13
  }
9
14
  export declare class GetCouponTemplatesForItemMaxDiscountCouponPayload {
10
15
  idInfos: IdInfo[];
@@ -9,10 +9,21 @@ 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.GetCouponTemplatesForItemMaxDiscountCouponPayload = exports.IdInfo = void 0;
12
+ exports.GetCouponTemplatesForItemMaxDiscountCouponPayload = exports.IdInfo = exports.CategoryInfo = void 0;
13
13
  /* eslint-disable max-len */
14
14
  const class_validator_1 = require("class-validator");
15
15
  const class_transformer_1 = require("class-transformer");
16
+ class CategoryInfo {
17
+ }
18
+ exports.CategoryInfo = CategoryInfo;
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ __metadata("design:type", String)
22
+ ], CategoryInfo.prototype, "mainCategory", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsString)(),
25
+ __metadata("design:type", String)
26
+ ], CategoryInfo.prototype, "subCategory", void 0);
16
27
  class IdInfo {
17
28
  }
18
29
  exports.IdInfo = IdInfo;
@@ -37,6 +48,13 @@ __decorate([
37
48
  (0, class_validator_1.IsOptional)(),
38
49
  __metadata("design:type", Array)
39
50
  ], IdInfo.prototype, "selectionFrameIds", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsObject)(),
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.ValidateNested)({}),
55
+ (0, class_transformer_1.Type)(() => CategoryInfo),
56
+ __metadata("design:type", CategoryInfo)
57
+ ], IdInfo.prototype, "category", void 0);
40
58
  class GetCouponTemplatesForItemMaxDiscountCouponPayload {
41
59
  }
42
60
  exports.GetCouponTemplatesForItemMaxDiscountCouponPayload = GetCouponTemplatesForItemMaxDiscountCouponPayload;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.2.38",
3
+ "version": "0.2.39-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,11 @@
1
+ export declare class GetSellingItemIdsByCatagoryPayload {
2
+ mainCategory: string;
3
+ subCategory?: string;
4
+ limit: number;
5
+ page: number;
6
+ }
7
+ export declare class GetSellingItemIdsByCatagoryResult {
8
+ itemIds: string[];
9
+ allCount?: number;
10
+ maxPage?: number;
11
+ }
@@ -0,0 +1,36 @@
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.GetSellingItemIdsByCatagoryResult = exports.GetSellingItemIdsByCatagoryPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetSellingItemIdsByCatagoryPayload {
15
+ }
16
+ exports.GetSellingItemIdsByCatagoryPayload = GetSellingItemIdsByCatagoryPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ __metadata("design:type", String)
20
+ ], GetSellingItemIdsByCatagoryPayload.prototype, "mainCategory", void 0);
21
+ __decorate([
22
+ (0, class_validator_1.IsString)(),
23
+ (0, class_validator_1.IsOptional)(),
24
+ __metadata("design:type", String)
25
+ ], GetSellingItemIdsByCatagoryPayload.prototype, "subCategory", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsNumber)(),
28
+ __metadata("design:type", Number)
29
+ ], GetSellingItemIdsByCatagoryPayload.prototype, "limit", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsNumber)(),
32
+ __metadata("design:type", Number)
33
+ ], GetSellingItemIdsByCatagoryPayload.prototype, "page", void 0);
34
+ class GetSellingItemIdsByCatagoryResult {
35
+ }
36
+ exports.GetSellingItemIdsByCatagoryResult = GetSellingItemIdsByCatagoryResult;
@@ -7,3 +7,4 @@ export * from './get-store-item-info-by-id.dto';
7
7
  export * from './get-selling-item-ids-by-theme-id.dto';
8
8
  export * from './search-store-item-name-by-id.dto';
9
9
  export * from './atlas-search';
10
+ export * from './get-selling-item-ids-by-catagory.dto';
@@ -23,3 +23,4 @@ __exportStar(require("./get-store-item-info-by-id.dto"), exports);
23
23
  __exportStar(require("./get-selling-item-ids-by-theme-id.dto"), exports);
24
24
  __exportStar(require("./search-store-item-name-by-id.dto"), exports);
25
25
  __exportStar(require("./atlas-search"), exports);
26
+ __exportStar(require("./get-selling-item-ids-by-catagory.dto"), exports);