@yolo-croket-dev/amqp-access 0.4.19 → 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.
- package/package.json +1 -1
- package/store-item-server/dto/store-item-price-fluctuation/command/index.d.ts +1 -0
- package/store-item-server/dto/store-item-price-fluctuation/command/index.js +17 -0
- package/store-item-server/dto/store-item-price-fluctuation/command/store-item-price-fluctuation-update-bulk.dto.d.ts +25 -0
- package/store-item-server/dto/store-item-price-fluctuation/command/store-item-price-fluctuation-update-bulk.dto.js +41 -0
package/package.json
CHANGED
|
@@ -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);
|