@yolo-croket-dev/amqp-access 0.4.31-sj2 → 0.4.31-slowquery.1

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,4 +1,3 @@
1
1
  export * from './item-max-discount-coupon';
2
2
  export * from './get-seleted-coupon-templates-by-codes.dto';
3
3
  export * from './get-coupon-template-by-code.dto';
4
- export * from './search-coupon-templates-for-admin.dto';
@@ -17,4 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./item-max-discount-coupon"), exports);
18
18
  __exportStar(require("./get-seleted-coupon-templates-by-codes.dto"), exports);
19
19
  __exportStar(require("./get-coupon-template-by-code.dto"), exports);
20
- __exportStar(require("./search-coupon-templates-for-admin.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core';
3
- import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload, SearchCouponTemplatesForAdminPayload, SearchCouponTemplatesForAdminResult } from '../dto/coupon-template';
3
+ import { PauseCouponTemplatePayload, GetCouponTemplatesForItemMaxDiscountCouponPayload, GetCouponTemplatesForItemMaxDiscountCouponResult, GetCouponTemplatesForUseableStoreMDThemePayload, GetCouponTemplatesForUseableStoreMDThemeResult, GetSeletedCouponTemplatesByCodesPayload, GetCouponTemplateByCodePayload } from '../dto/coupon-template';
4
4
  export declare class AmqpCouponTemplateService {
5
5
  private readonly client;
6
6
  private readonly amqpManager;
@@ -12,5 +12,4 @@ export declare class AmqpCouponTemplateService {
12
12
  getCouponTemplatesForUseableStoreMDTheme(payload: GetCouponTemplatesForUseableStoreMDThemePayload, param: AbstractParam): Promise<GetCouponTemplatesForUseableStoreMDThemeResult>;
13
13
  getSeletedCouponTemplatesByCodes(payload: GetSeletedCouponTemplatesByCodesPayload, param: AbstractParam): Promise<any>;
14
14
  getCouponTemplateByCode(payload: GetCouponTemplateByCodePayload, param: AbstractParam): Promise<any>;
15
- searchCouponTemplatesForAdmin(payload: SearchCouponTemplatesForAdminPayload, param: AbstractParam): Promise<SearchCouponTemplatesForAdminResult>;
16
15
  }
@@ -42,9 +42,6 @@ let AmqpCouponTemplateService = class AmqpCouponTemplateService {
42
42
  async getCouponTemplateByCode(payload, param) {
43
43
  return this.amqpManager.call('코드로 쿠폰 템플릿 조회', 'coupon-template.get.coupon-by-coupon-code', payload, param, { isErrorThrowing: true });
44
44
  }
45
- async searchCouponTemplatesForAdmin(payload, param) {
46
- return this.amqpManager.call('쿠폰 템플릿 리스트 관리자 조회', 'coupon-template.get.coupon-templates-for-admin', payload, param, { isErrorThrowing: true });
47
- }
48
45
  };
49
46
  exports.AmqpCouponTemplateService = AmqpCouponTemplateService;
50
47
  exports.AmqpCouponTemplateService = AmqpCouponTemplateService = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.31-sj2",
3
+ "version": "0.4.31-slowquery.1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1,17 @@
1
+ export declare class GetStoreItemPricesBulkPayload {
2
+ /** 상품 아이디 목록 */
3
+ storeItemIds: string[];
4
+ }
5
+ /** 상품 가격 정보 */
6
+ interface StoreItemPrice {
7
+ storeItemId: string;
8
+ value?: {
9
+ calulatedItemPrice?: number;
10
+ itemPriceForBuyer: number;
11
+ };
12
+ error?: string;
13
+ }
14
+ export interface GetStoreItemPricesBulkResponse {
15
+ prices: StoreItemPrice[];
16
+ }
17
+ export {};
@@ -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.GetStoreItemPricesBulkPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GetStoreItemPricesBulkPayload {
15
+ }
16
+ exports.GetStoreItemPricesBulkPayload = GetStoreItemPricesBulkPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)({ each: true }),
19
+ __metadata("design:type", Array)
20
+ ], GetStoreItemPricesBulkPayload.prototype, "storeItemIds", void 0);
@@ -1,2 +1,3 @@
1
1
  export * from './get-compare-per-day-store-item-price-fluctuation.dto';
2
2
  export * from './get-store-item-price-fluctuation-notification-triggers.dto';
3
+ export * from './get-store-item-prices-bulk.dto';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./get-compare-per-day-store-item-price-fluctuation.dto"), exports);
18
18
  __exportStar(require("./get-store-item-price-fluctuation-notification-triggers.dto"), exports);
19
+ __exportStar(require("./get-store-item-prices-bulk.dto"), exports);
@@ -1,6 +1,6 @@
1
1
  import { ClientProxy } from '@nestjs/microservices';
2
2
  import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
3
- import { GetStoreItemPriceFluctuationCompareBetweenTimesPayload, GetStoreItemPriceFluctuationCompareBetweenTimesResult, GetStoreItemPriceFluctuationNotificationTriggersPayload, GetStoreItemPriceFluctuationNotificationTriggersResult } from '../dto/store-item-price-fluctuation/query';
3
+ import { GetStoreItemPriceFluctuationCompareBetweenTimesPayload, GetStoreItemPriceFluctuationCompareBetweenTimesResult, GetStoreItemPriceFluctuationNotificationTriggersPayload, GetStoreItemPriceFluctuationNotificationTriggersResult, GetStoreItemPricesBulkPayload, GetStoreItemPricesBulkResponse } from '../dto/store-item-price-fluctuation/query';
4
4
  import { StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload, StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload } from '../dto/store-item-price-fluctuation/command';
5
5
  export declare class AmqpStoreItemPriceFluctuationService {
6
6
  private readonly client;
@@ -10,4 +10,5 @@ export declare class AmqpStoreItemPriceFluctuationService {
10
10
  createStoreItemPriceFluctuationNotificationTriggerBulk(payload: StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload, param: AbstractParam): Promise<boolean>;
11
11
  updateStoreItemPriceFluctuationNotificationTriggerBulk(payload: StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload, param: AbstractParam): Promise<boolean>;
12
12
  getStoreItemPriceFluctuationNotificationTriggers(payload: GetStoreItemPriceFluctuationNotificationTriggersPayload, param: AbstractParam): Promise<GetStoreItemPriceFluctuationNotificationTriggersResult>;
13
+ getStoreItemPricesBulk(payload: GetStoreItemPricesBulkPayload, param: AbstractParam): Promise<GetStoreItemPricesBulkResponse>;
13
14
  }
@@ -33,6 +33,9 @@ let AmqpStoreItemPriceFluctuationService = class AmqpStoreItemPriceFluctuationSe
33
33
  async getStoreItemPriceFluctuationNotificationTriggers(payload, param) {
34
34
  return this.amqpManager.call('스토어 상품 가격 변동 알림 트리거 목록', 'store-item-price-fluctuation.get.notification-triggers', payload, param, { isErrorThrowing: true });
35
35
  }
36
+ async getStoreItemPricesBulk(payload, param) {
37
+ return this.amqpManager.call('스토어 상품 현재 가격 일괄 조회', 'store-item-price-fluctuation.get.prices-bulk', payload, param, { isErrorThrowing: true });
38
+ }
36
39
  };
37
40
  exports.AmqpStoreItemPriceFluctuationService = AmqpStoreItemPriceFluctuationService;
38
41
  exports.AmqpStoreItemPriceFluctuationService = AmqpStoreItemPriceFluctuationService = __decorate([
@@ -0,0 +1,3 @@
1
+ import { PushRedisDBPayload } from './push-redis-db.dto';
2
+ export declare class PullRedisDBPayload extends PushRedisDBPayload {
3
+ }
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PullRedisDBPayload = void 0;
4
+ const push_redis_db_dto_1 = require("./push-redis-db.dto");
5
+ class PullRedisDBPayload extends push_redis_db_dto_1.PushRedisDBPayload {
6
+ }
7
+ exports.PullRedisDBPayload = PullRedisDBPayload;
@@ -0,0 +1,4 @@
1
+ export declare class PushRedisDBPayload {
2
+ redisDBKey: string;
3
+ value: string;
4
+ }
@@ -0,0 +1,26 @@
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.PushRedisDBPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class PushRedisDBPayload {
15
+ }
16
+ exports.PushRedisDBPayload = PushRedisDBPayload;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MinLength)(1),
20
+ __metadata("design:type", String)
21
+ ], PushRedisDBPayload.prototype, "redisDBKey", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.MinLength)(1),
25
+ __metadata("design:type", String)
26
+ ], PushRedisDBPayload.prototype, "value", void 0);
@@ -1,18 +0,0 @@
1
- import { CouponTemplateEntity } from '@yolo-croket-dev/entity/src/coupon-template';
2
- export declare enum CouponTemplateUseEnum {
3
- ALL = "ALL",
4
- CAN_USE = "CAN_USE",
5
- CANNOT_USE = "CANNOT_USE"
6
- }
7
- export declare class SearchCouponTemplatesForAdminPayload {
8
- limit: number;
9
- page: number;
10
- couponCode?: string;
11
- canUseType?: CouponTemplateUseEnum;
12
- sDate?: string;
13
- eDate?: string;
14
- }
15
- export declare class SearchCouponTemplatesForAdminResult {
16
- couponTemplates: CouponTemplateEntity[];
17
- totalCount: number;
18
- }
@@ -1,53 +0,0 @@
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.SearchCouponTemplatesForAdminResult = exports.SearchCouponTemplatesForAdminPayload = exports.CouponTemplateUseEnum = void 0;
13
- const class_validator_1 = require("class-validator");
14
- var CouponTemplateUseEnum;
15
- (function (CouponTemplateUseEnum) {
16
- CouponTemplateUseEnum["ALL"] = "ALL";
17
- CouponTemplateUseEnum["CAN_USE"] = "CAN_USE";
18
- CouponTemplateUseEnum["CANNOT_USE"] = "CANNOT_USE";
19
- })(CouponTemplateUseEnum || (exports.CouponTemplateUseEnum = CouponTemplateUseEnum = {}));
20
- class SearchCouponTemplatesForAdminPayload {
21
- }
22
- exports.SearchCouponTemplatesForAdminPayload = SearchCouponTemplatesForAdminPayload;
23
- __decorate([
24
- (0, class_validator_1.IsNumber)(),
25
- __metadata("design:type", Number)
26
- ], SearchCouponTemplatesForAdminPayload.prototype, "limit", void 0);
27
- __decorate([
28
- (0, class_validator_1.IsNumber)(),
29
- __metadata("design:type", Number)
30
- ], SearchCouponTemplatesForAdminPayload.prototype, "page", void 0);
31
- __decorate([
32
- (0, class_validator_1.IsString)(),
33
- (0, class_validator_1.IsOptional)(),
34
- __metadata("design:type", String)
35
- ], SearchCouponTemplatesForAdminPayload.prototype, "couponCode", void 0);
36
- __decorate([
37
- (0, class_validator_1.IsEnum)(CouponTemplateUseEnum),
38
- (0, class_validator_1.IsOptional)(),
39
- __metadata("design:type", String)
40
- ], SearchCouponTemplatesForAdminPayload.prototype, "canUseType", void 0);
41
- __decorate([
42
- (0, class_validator_1.IsDateString)(),
43
- (0, class_validator_1.IsOptional)(),
44
- __metadata("design:type", String)
45
- ], SearchCouponTemplatesForAdminPayload.prototype, "sDate", void 0);
46
- __decorate([
47
- (0, class_validator_1.IsDateString)(),
48
- (0, class_validator_1.IsOptional)(),
49
- __metadata("design:type", String)
50
- ], SearchCouponTemplatesForAdminPayload.prototype, "eDate", void 0);
51
- class SearchCouponTemplatesForAdminResult {
52
- }
53
- exports.SearchCouponTemplatesForAdminResult = SearchCouponTemplatesForAdminResult;