@yolo-croket-dev/amqp-access 0.4.18 → 0.4.20-slowquery.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,13 +1,8 @@
1
1
  import { SendTemplateNotificationPayload } from './send-template-notification.dto';
2
- export declare class SendTemplateNotificationBulkPayloadsPayload {
3
- payload: SendTemplateNotificationPayload;
4
- correlationId: string;
5
- }
6
2
  export declare class SendTemplateNotificationBulkPayload {
7
- payloads: SendTemplateNotificationBulkPayloadsPayload[];
3
+ payloads: SendTemplateNotificationPayload[];
8
4
  }
9
5
  export interface SendTemplateNotificationBulkResultItem {
10
- correlationId: string;
11
6
  result?: boolean;
12
7
  error?: any;
13
8
  }
@@ -9,27 +9,15 @@ 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.SendTemplateNotificationBulkPayload = exports.SendTemplateNotificationBulkPayloadsPayload = void 0;
12
+ exports.SendTemplateNotificationBulkPayload = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const send_template_notification_dto_1 = require("./send-template-notification.dto");
16
- class SendTemplateNotificationBulkPayloadsPayload {
17
- }
18
- exports.SendTemplateNotificationBulkPayloadsPayload = SendTemplateNotificationBulkPayloadsPayload;
19
- __decorate([
20
- (0, class_validator_1.ValidateNested)(),
21
- (0, class_transformer_1.Type)(() => send_template_notification_dto_1.SendTemplateNotificationPayload),
22
- __metadata("design:type", send_template_notification_dto_1.SendTemplateNotificationPayload)
23
- ], SendTemplateNotificationBulkPayloadsPayload.prototype, "payload", void 0);
24
- __decorate([
25
- (0, class_validator_1.IsString)(),
26
- __metadata("design:type", String)
27
- ], SendTemplateNotificationBulkPayloadsPayload.prototype, "correlationId", void 0);
28
16
  class SendTemplateNotificationBulkPayload {
29
17
  }
30
18
  exports.SendTemplateNotificationBulkPayload = SendTemplateNotificationBulkPayload;
31
19
  __decorate([
32
20
  (0, class_validator_1.ValidateNested)({ each: true }),
33
- (0, class_transformer_1.Type)(() => SendTemplateNotificationBulkPayloadsPayload),
21
+ (0, class_transformer_1.Type)(() => send_template_notification_dto_1.SendTemplateNotificationPayload),
34
22
  __metadata("design:type", Array)
35
23
  ], SendTemplateNotificationBulkPayload.prototype, "payloads", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/amqp-access",
3
- "version": "0.4.18",
3
+ "version": "0.4.20-slowquery.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 amqp-access npm",
@@ -0,0 +1 @@
1
+ export * from './store-item-price-fluctuation-update-bulk.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("./store-item-price-fluctuation-update-bulk.dto"), exports);
@@ -0,0 +1,25 @@
1
+ /**
2
+ * COUPON: 쿠폰에 의해서 가격이 변경된 경우
3
+ * ITEM: 상품 가격에 의해서 가격이 변경된 경우
4
+ * */
5
+ export type CAUSE_TYPE = 'COUPON' | 'ITEM';
6
+ export declare class StoreItemPriceFluctuationItem {
7
+ /** 상품 아이디 */
8
+ storeItemId: string;
9
+ /** 상품 최대할인 쿠폰가 */
10
+ calulatedItemPrice: number;
11
+ /** 상품 가격 */
12
+ itemPriceForBuyer: number;
13
+ /** 행위 */
14
+ causeType: CAUSE_TYPE;
15
+ }
16
+ export declare class StoreItemPriceFluctuationUpdateBulkPayload {
17
+ items: StoreItemPriceFluctuationItem[];
18
+ }
19
+ export interface StoreItemPriceFluctuationUpdateBulkResultItem {
20
+ result?: boolean;
21
+ error?: any;
22
+ }
23
+ export interface StoreItemPriceFluctuationUpdateBulkResult {
24
+ results: StoreItemPriceFluctuationUpdateBulkResultItem[];
25
+ }
@@ -0,0 +1,41 @@
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.StoreItemPriceFluctuationUpdateBulkPayload = exports.StoreItemPriceFluctuationItem = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const class_transformer_1 = require("class-transformer");
15
+ class StoreItemPriceFluctuationItem {
16
+ }
17
+ exports.StoreItemPriceFluctuationItem = StoreItemPriceFluctuationItem;
18
+ __decorate([
19
+ (0, class_validator_1.IsMongoId)(),
20
+ __metadata("design:type", String)
21
+ ], StoreItemPriceFluctuationItem.prototype, "storeItemId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsNumber)(),
24
+ __metadata("design:type", Number)
25
+ ], StoreItemPriceFluctuationItem.prototype, "calulatedItemPrice", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsNumber)(),
28
+ __metadata("design:type", Number)
29
+ ], StoreItemPriceFluctuationItem.prototype, "itemPriceForBuyer", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], StoreItemPriceFluctuationItem.prototype, "causeType", void 0);
34
+ class StoreItemPriceFluctuationUpdateBulkPayload {
35
+ }
36
+ exports.StoreItemPriceFluctuationUpdateBulkPayload = StoreItemPriceFluctuationUpdateBulkPayload;
37
+ __decorate([
38
+ (0, class_validator_1.ValidateNested)({ each: true }),
39
+ (0, class_transformer_1.Type)(() => StoreItemPriceFluctuationItem),
40
+ __metadata("design:type", Array)
41
+ ], StoreItemPriceFluctuationUpdateBulkPayload.prototype, "items", void 0);
@@ -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);