@yolo-croket-dev/amqp-access 0.4.30-sj → 0.4.30

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 (26) hide show
  1. package/coupon-server/dto/coupon-template/query/index.d.ts +0 -1
  2. package/coupon-server/dto/coupon-template/query/index.js +0 -1
  3. package/coupon-server/services/amqp.coupon-template.service.d.ts +1 -2
  4. package/coupon-server/services/amqp.coupon-template.service.js +0 -3
  5. package/package.json +2 -2
  6. package/store-item-server/amqp.store-item-server.module.js +2 -0
  7. package/store-item-server/dto/store-item-price-fluctuation/command/index.d.ts +2 -0
  8. package/store-item-server/dto/store-item-price-fluctuation/command/index.js +2 -0
  9. package/store-item-server/dto/store-item-price-fluctuation/command/store-item-price-fluctuation-notification-trigger-create-bulk.dto.d.ts +20 -0
  10. package/store-item-server/dto/store-item-price-fluctuation/command/store-item-price-fluctuation-notification-trigger-create-bulk.dto.js +53 -0
  11. package/store-item-server/dto/store-item-price-fluctuation/command/store-item-price-fluctuation-notification-trigger-update-bulk.dto.d.ts +12 -0
  12. package/store-item-server/dto/store-item-price-fluctuation/command/store-item-price-fluctuation-notification-trigger-update-bulk.dto.js +38 -0
  13. package/store-item-server/dto/store-item-price-fluctuation/query/get-store-item-price-fluctuation-notification-triggers.dto.d.ts +13 -0
  14. package/store-item-server/dto/store-item-price-fluctuation/query/get-store-item-price-fluctuation-notification-triggers.dto.js +31 -0
  15. package/store-item-server/dto/store-item-price-fluctuation/query/index.d.ts +1 -0
  16. package/store-item-server/dto/store-item-price-fluctuation/query/index.js +1 -0
  17. package/store-item-server/services/amqp.store-item-price-fluctuation.service.d.ts +13 -0
  18. package/store-item-server/services/amqp.store-item-price-fluctuation.service.js +42 -0
  19. package/store-item-server/services/index.d.ts +1 -0
  20. package/store-item-server/services/index.js +1 -0
  21. package/user-service/dto/redis-db/command/pull-redis-db.dto.d.ts +3 -0
  22. package/user-service/dto/redis-db/command/pull-redis-db.dto.js +7 -0
  23. package/user-service/dto/redis-db/command/push-redis-db.dto.d.ts +4 -0
  24. package/user-service/dto/redis-db/command/push-redis-db.dto.js +26 -0
  25. package/coupon-server/dto/coupon-template/query/search-coupon-templates-for-admin.dto.d.ts +0 -16
  26. package/coupon-server/dto/coupon-template/query/search-coupon-templates-for-admin.dto.js +0 -45
@@ -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.30-sj",
3
+ "version": "0.4.30",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -22,7 +22,7 @@
22
22
  "@yolo-croket-dev/domain": "0.1.0",
23
23
  "@yolo-croket-dev/dto-v2": "^0.1.1",
24
24
  "@yolo-croket-dev/entity": "^0.2.1",
25
- "@yolo-croket-dev/entity-v2": "^0.1.4",
25
+ "@yolo-croket-dev/entity-v2": "^0.1.13",
26
26
  "class-transformer": "^0.5.1",
27
27
  "class-validator": "^0.13.2",
28
28
  "dotenv": "^16.3.1"
@@ -27,6 +27,7 @@ exports.AmqpStoreItemServerModule = AmqpStoreItemServerModule = __decorate([
27
27
  services_1.AmqpBanWordService,
28
28
  services_1.AmqpSellingInfoLogService,
29
29
  services_1.AmqpStoreItemBookmarkService,
30
+ services_1.AmqpStoreItemPriceFluctuationService,
30
31
  ],
31
32
  exports: [
32
33
  amqp_store_item_server_provider_1.StoreItemServerProvider,
@@ -40,6 +41,7 @@ exports.AmqpStoreItemServerModule = AmqpStoreItemServerModule = __decorate([
40
41
  services_1.AmqpBanWordService,
41
42
  services_1.AmqpSellingInfoLogService,
42
43
  services_1.AmqpStoreItemBookmarkService,
44
+ services_1.AmqpStoreItemPriceFluctuationService,
43
45
  ],
44
46
  })
45
47
  ], AmqpStoreItemServerModule);
@@ -1 +1,3 @@
1
1
  export * from './store-item-price-fluctuation-update-bulk.dto';
2
+ export * from './store-item-price-fluctuation-notification-trigger-create-bulk.dto';
3
+ export * from './store-item-price-fluctuation-notification-trigger-update-bulk.dto';
@@ -15,3 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./store-item-price-fluctuation-update-bulk.dto"), exports);
18
+ __exportStar(require("./store-item-price-fluctuation-notification-trigger-create-bulk.dto"), exports);
19
+ __exportStar(require("./store-item-price-fluctuation-notification-trigger-update-bulk.dto"), exports);
@@ -0,0 +1,20 @@
1
+ export declare class StoreItemPriceFluctuationNotificationTriggerCreate {
2
+ /** 상품 아이디 */
3
+ storeItemId: string;
4
+ /** 비교대상 첫번째 로그 가격 */
5
+ firstLogId: string;
6
+ /** 비교대상 마지막 로그 가격 */
7
+ lastLogId: string;
8
+ /** 비교대상 첫번째 로그 기준 가격 */
9
+ firstLogBasePrice: number;
10
+ /** 비교대상 마지막 로그 기준 가격 */
11
+ lastLogBasePrice: number;
12
+ /** 기준 가격 변동폭 */
13
+ basePriceFluctuation: number;
14
+ /** 트리거 타입 */
15
+ triggerType: string;
16
+ }
17
+ export declare class StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload {
18
+ /** 알림 트리거 업데이트 목록 */
19
+ triggerItems: StoreItemPriceFluctuationNotificationTriggerCreate[];
20
+ }
@@ -0,0 +1,53 @@
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.StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload = exports.StoreItemPriceFluctuationNotificationTriggerCreate = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class StoreItemPriceFluctuationNotificationTriggerCreate {
16
+ }
17
+ exports.StoreItemPriceFluctuationNotificationTriggerCreate = StoreItemPriceFluctuationNotificationTriggerCreate;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], StoreItemPriceFluctuationNotificationTriggerCreate.prototype, "storeItemId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsMongoId)(),
24
+ __metadata("design:type", String)
25
+ ], StoreItemPriceFluctuationNotificationTriggerCreate.prototype, "firstLogId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsMongoId)(),
28
+ __metadata("design:type", String)
29
+ ], StoreItemPriceFluctuationNotificationTriggerCreate.prototype, "lastLogId", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsNumber)(),
32
+ __metadata("design:type", Number)
33
+ ], StoreItemPriceFluctuationNotificationTriggerCreate.prototype, "firstLogBasePrice", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsNumber)(),
36
+ __metadata("design:type", Number)
37
+ ], StoreItemPriceFluctuationNotificationTriggerCreate.prototype, "lastLogBasePrice", void 0);
38
+ __decorate([
39
+ (0, class_validator_1.IsNumber)(),
40
+ __metadata("design:type", Number)
41
+ ], StoreItemPriceFluctuationNotificationTriggerCreate.prototype, "basePriceFluctuation", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ __metadata("design:type", String)
45
+ ], StoreItemPriceFluctuationNotificationTriggerCreate.prototype, "triggerType", void 0);
46
+ class StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload {
47
+ }
48
+ exports.StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload = StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload;
49
+ __decorate([
50
+ (0, class_validator_1.ValidateNested)({ each: true }),
51
+ (0, class_transformer_1.Type)(() => StoreItemPriceFluctuationNotificationTriggerCreate),
52
+ __metadata("design:type", Array)
53
+ ], StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload.prototype, "triggerItems", void 0);
@@ -0,0 +1,12 @@
1
+ export declare class StoreItemPriceFluctuationNotificationTriggerUpdate {
2
+ /** 상품 변동 가격 알림 트리거 아이디 */
3
+ storeItemPriceFluctuationNotificationTriggerId: string;
4
+ /** 해당 트리거로 영향받은 유저수 */
5
+ triggerUsersCount?: number;
6
+ /** 트리거 조건 만족 여부 (가격이 발송시와 동일한 상태에 있는지에 대한 여부) */
7
+ isTriggerConditionMatch: boolean;
8
+ }
9
+ export declare class StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload {
10
+ /** 알림 트리거 업데이트 목록 */
11
+ triggerItems: StoreItemPriceFluctuationNotificationTriggerUpdate[];
12
+ }
@@ -0,0 +1,38 @@
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.StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload = exports.StoreItemPriceFluctuationNotificationTriggerUpdate = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class StoreItemPriceFluctuationNotificationTriggerUpdate {
16
+ }
17
+ exports.StoreItemPriceFluctuationNotificationTriggerUpdate = StoreItemPriceFluctuationNotificationTriggerUpdate;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], StoreItemPriceFluctuationNotificationTriggerUpdate.prototype, "storeItemPriceFluctuationNotificationTriggerId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsOptional)(),
24
+ (0, class_validator_1.IsNumber)(),
25
+ __metadata("design:type", Number)
26
+ ], StoreItemPriceFluctuationNotificationTriggerUpdate.prototype, "triggerUsersCount", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsBoolean)(),
29
+ __metadata("design:type", Boolean)
30
+ ], StoreItemPriceFluctuationNotificationTriggerUpdate.prototype, "isTriggerConditionMatch", void 0);
31
+ class StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload {
32
+ }
33
+ exports.StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload = StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload;
34
+ __decorate([
35
+ (0, class_validator_1.ValidateNested)({ each: true }),
36
+ (0, class_transformer_1.Type)(() => StoreItemPriceFluctuationNotificationTriggerUpdate),
37
+ __metadata("design:type", Array)
38
+ ], StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload.prototype, "triggerItems", void 0);
@@ -0,0 +1,13 @@
1
+ import { StoreItemPriceFluctuationNotificationTrigger } from '@yolo-croket-dev/entity-v2/store-item-price-fluctuation-log';
2
+ /** 상품 변동가 알림 트리거 목록 가져오기 */
3
+ export declare class GetStoreItemPriceFluctuationNotificationTriggersPayload {
4
+ /** 이전 페이지중 마지막 아이디 (StoreItemPriceFluctuationNotificationTriggerId) */
5
+ lastId?: string;
6
+ /** 가져올 개수 */
7
+ limit: number;
8
+ /** 트리거 완료 여부 필터 (true면 완료된것만, false면 완료되지 않은 것만), undefined라면 전부 */
9
+ isTriggerCompleted?: boolean;
10
+ }
11
+ export interface GetStoreItemPriceFluctuationNotificationTriggersResult {
12
+ storeItemPriceFluctuationNotificationTriggers: StoreItemPriceFluctuationNotificationTrigger[];
13
+ }
@@ -0,0 +1,31 @@
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.GetStoreItemPriceFluctuationNotificationTriggersPayload = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** 상품 변동가 알림 트리거 목록 가져오기 */
15
+ class GetStoreItemPriceFluctuationNotificationTriggersPayload {
16
+ }
17
+ exports.GetStoreItemPriceFluctuationNotificationTriggersPayload = GetStoreItemPriceFluctuationNotificationTriggersPayload;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.IsMongoId)(),
21
+ __metadata("design:type", String)
22
+ ], GetStoreItemPriceFluctuationNotificationTriggersPayload.prototype, "lastId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsNumber)(),
25
+ __metadata("design:type", Number)
26
+ ], GetStoreItemPriceFluctuationNotificationTriggersPayload.prototype, "limit", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsOptional)(),
29
+ (0, class_validator_1.IsBoolean)(),
30
+ __metadata("design:type", Boolean)
31
+ ], GetStoreItemPriceFluctuationNotificationTriggersPayload.prototype, "isTriggerCompleted", void 0);
@@ -1 +1,2 @@
1
1
  export * from './get-compare-per-day-store-item-price-fluctuation.dto';
2
+ export * from './get-store-item-price-fluctuation-notification-triggers.dto';
@@ -15,3 +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-compare-per-day-store-item-price-fluctuation.dto"), exports);
18
+ __exportStar(require("./get-store-item-price-fluctuation-notification-triggers.dto"), exports);
@@ -0,0 +1,13 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AbstractParam } from '@yolo-croket-dev/core/interfaces';
3
+ import { GetStoreItemPriceFluctuationCompareBetweenTimesPayload, GetStoreItemPriceFluctuationCompareBetweenTimesResult, GetStoreItemPriceFluctuationNotificationTriggersPayload, GetStoreItemPriceFluctuationNotificationTriggersResult } from '../dto/store-item-price-fluctuation/query';
4
+ import { StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload, StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload } from '../dto/store-item-price-fluctuation/command';
5
+ export declare class AmqpStoreItemPriceFluctuationService {
6
+ private readonly client;
7
+ private readonly amqpManager;
8
+ constructor(client: ClientProxy);
9
+ getStoreItemPriceFluctuationCompareBetweenTimes(payload: GetStoreItemPriceFluctuationCompareBetweenTimesPayload, param: AbstractParam): Promise<GetStoreItemPriceFluctuationCompareBetweenTimesResult>;
10
+ createStoreItemPriceFluctuationNotificationTriggerBulk(payload: StoreItemPriceFluctuationNotificationTriggerCreateBulkPayload, param: AbstractParam): Promise<boolean>;
11
+ updateStoreItemPriceFluctuationNotificationTriggerBulk(payload: StoreItemPriceFluctuationNotificationTriggerUpdateBulkPayload, param: AbstractParam): Promise<boolean>;
12
+ getStoreItemPriceFluctuationNotificationTriggers(payload: GetStoreItemPriceFluctuationNotificationTriggersPayload, param: AbstractParam): Promise<GetStoreItemPriceFluctuationNotificationTriggersResult>;
13
+ }
@@ -0,0 +1,42 @@
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.AmqpStoreItemPriceFluctuationService = 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 AmqpStoreItemPriceFluctuationService = class AmqpStoreItemPriceFluctuationService {
20
+ constructor(client) {
21
+ this.client = client;
22
+ this.amqpManager = new functions_1.AmqpManagement(this.client);
23
+ }
24
+ async getStoreItemPriceFluctuationCompareBetweenTimes(payload, param) {
25
+ return this.amqpManager.call('스토어 상품 가격 변동 비교', 'store-item-price-fluctuation.get.compare-between-times', payload, param, { isErrorThrowing: true });
26
+ }
27
+ async createStoreItemPriceFluctuationNotificationTriggerBulk(payload, param) {
28
+ return this.amqpManager.call('스토어 상품 가격 변동 알림 트리거 일괄 생성', 'store-item-price-fluctuation.create.notification-trigger.bulk', payload, param, { isErrorThrowing: true });
29
+ }
30
+ async updateStoreItemPriceFluctuationNotificationTriggerBulk(payload, param) {
31
+ return this.amqpManager.call('스토어 상품 가격 변동 알림 트리거 일괄 수정', 'store-item-price-fluctuation.update.notification-trigger.bulk', payload, param, { isErrorThrowing: true });
32
+ }
33
+ async getStoreItemPriceFluctuationNotificationTriggers(payload, param) {
34
+ return this.amqpManager.call('스토어 상품 가격 변동 알림 트리거 목록', 'store-item-price-fluctuation.get.notification-triggers', payload, param, { isErrorThrowing: true });
35
+ }
36
+ };
37
+ exports.AmqpStoreItemPriceFluctuationService = AmqpStoreItemPriceFluctuationService;
38
+ exports.AmqpStoreItemPriceFluctuationService = AmqpStoreItemPriceFluctuationService = __decorate([
39
+ (0, common_1.Injectable)(),
40
+ __param(0, (0, common_1.Inject)('STORE_ITEM_SERVER_PROVIDER')),
41
+ __metadata("design:paramtypes", [microservices_1.ClientProxy])
42
+ ], AmqpStoreItemPriceFluctuationService);
@@ -8,3 +8,4 @@ export * from './amqp.store-item-log-v2.service';
8
8
  export * from './amqp.ban-word.service';
9
9
  export * from './amqp.selling-info-log.service';
10
10
  export * from './amqp.store-item-bookmark.service';
11
+ export * from './amqp.store-item-price-fluctuation.service';
@@ -24,3 +24,4 @@ __exportStar(require("./amqp.store-item-log-v2.service"), exports);
24
24
  __exportStar(require("./amqp.ban-word.service"), exports);
25
25
  __exportStar(require("./amqp.selling-info-log.service"), exports);
26
26
  __exportStar(require("./amqp.store-item-bookmark.service"), exports);
27
+ __exportStar(require("./amqp.store-item-price-fluctuation.service"), exports);
@@ -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,16 +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
- couponCode?: string;
9
- isUseEnumType?: CouponTemplateUseEnum;
10
- sDate?: string;
11
- eDate?: string;
12
- }
13
- export declare class SearchCouponTemplatesForAdminResult {
14
- couponTemplates: CouponTemplateEntity[];
15
- totalCount: number;
16
- }
@@ -1,45 +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.IsString)(),
25
- (0, class_validator_1.IsOptional)(),
26
- __metadata("design:type", String)
27
- ], SearchCouponTemplatesForAdminPayload.prototype, "couponCode", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsEnum)(CouponTemplateUseEnum),
30
- (0, class_validator_1.IsOptional)(),
31
- __metadata("design:type", String)
32
- ], SearchCouponTemplatesForAdminPayload.prototype, "isUseEnumType", void 0);
33
- __decorate([
34
- (0, class_validator_1.IsDateString)(),
35
- (0, class_validator_1.IsOptional)(),
36
- __metadata("design:type", String)
37
- ], SearchCouponTemplatesForAdminPayload.prototype, "sDate", void 0);
38
- __decorate([
39
- (0, class_validator_1.IsDateString)(),
40
- (0, class_validator_1.IsOptional)(),
41
- __metadata("design:type", String)
42
- ], SearchCouponTemplatesForAdminPayload.prototype, "eDate", void 0);
43
- class SearchCouponTemplatesForAdminResult {
44
- }
45
- exports.SearchCouponTemplatesForAdminResult = SearchCouponTemplatesForAdminResult;