@yolo-croket-dev/entity-v2 0.1.5-slowquery.0 → 0.1.5
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-price-fluctuation-log/index.d.ts +1 -0
- package/store-item-price-fluctuation-log/index.js +17 -0
- package/store-item-price-fluctuation-log/store-item-price-fluctuation-log.entity.d.ts +22 -0
- package/store-item-price-fluctuation-log/store-item-price-fluctuation-log.entity.js +2 -0
package/package.json
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './store-item-price-fluctuation-log.entity';
|
|
@@ -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-log.entity"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export interface StoreItemPriceFluctuationLog {
|
|
3
|
+
_id: Types.ObjectId | string;
|
|
4
|
+
/** 상품 아이디 */
|
|
5
|
+
storeItemId: Types.ObjectId | string;
|
|
6
|
+
/** 상품 최대할인 쿠폰가 */
|
|
7
|
+
calulatedItemPrice?: number;
|
|
8
|
+
/** 상품 가격 */
|
|
9
|
+
itemPriceForBuyer: number;
|
|
10
|
+
/** 생성시간 */
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
/** 기준 가격 (쿠폰가가 있다면 쿠폰가, 없다면 상품가격) */
|
|
13
|
+
basePrice: number;
|
|
14
|
+
/** 기준 가격 변동폭 */
|
|
15
|
+
basePriceFluctuation: number;
|
|
16
|
+
/** 기준 가격 변동폭 절대값 */
|
|
17
|
+
basePriceFluctuationAbs: number;
|
|
18
|
+
/** 마지막 업데이트된 변동 행위 (COUPON: 쿠폰변경, ITEM: 상품가변경) */
|
|
19
|
+
causeType: string;
|
|
20
|
+
/** 업데이트 전 변동가격정보 */
|
|
21
|
+
previous?: Omit<StoreItemPriceFluctuationLog, '_id'>;
|
|
22
|
+
}
|