@yolo-croket-dev/entity-v2 0.0.22-jun.0 → 0.0.22

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.22-jun.0",
3
+ "version": "0.0.22",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v2",
@@ -1 +0,0 @@
1
- export * from './store-item-connected-coupon.entity';
@@ -1,17 +0,0 @@
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-connected-coupon.entity"), exports);
@@ -1,38 +0,0 @@
1
- import { Types } from 'mongoose';
2
- /**
3
- * @description 해당 상품과 관련된 쿠폰 정보를 취합하여 최대 할인 금액 노출을 위한 데이터 추후 연결된 쿠폰 템플릿을 위해 확장성 고려
4
- * 생성일: 2024-08-14
5
- * created by jun
6
- */
7
- export declare enum MaxDiscountCouponInfoTypeEnum {
8
- '할인률' = "\uD560\uC778\uB960",
9
- '할인금액' = "\uD560\uC778\uAE08\uC561"
10
- }
11
- export interface MaxDiscountCouponPriceInfo {
12
- calulatedItemPrice: number;
13
- couponInfo: MaxDiscountCouponInfo;
14
- }
15
- export interface MaxDiscountCouponInfo {
16
- /** 해당 쿠폰 코드 */
17
- couponCode: string;
18
- /** 할인 종류 */
19
- discountType: MaxDiscountCouponInfoTypeEnum;
20
- /** 할인 금액 */
21
- discountValue?: number;
22
- /** 할인률 */
23
- discountRate?: number;
24
- }
25
- export default interface StoreItemConnectedCouponEntity {
26
- _id: string | Types.ObjectId;
27
- /** @description 상품 상품 ID */
28
- storeItemId: Types.ObjectId;
29
- /** @description 최대할인 쿠폰 템플릿 아이디 */
30
- maxDiscountCouponTemplateId: Types.ObjectId;
31
- /** @description 셀렉션 프레임 최상위 ID (이미 연결된 ItemId가 있을때 정가, 판매처를 통일하기 위해 존재) */
32
- maxDiscountCouponPriceInfo: MaxDiscountCouponPriceInfo;
33
- /** @description 업데이트 일자 */
34
- updateDate: Date;
35
- /** @description 등록일 */
36
- regDate: Date;
37
- }
38
- export { StoreItemConnectedCouponEntity };
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MaxDiscountCouponInfoTypeEnum = void 0;
4
- /**
5
- * @description 해당 상품과 관련된 쿠폰 정보를 취합하여 최대 할인 금액 노출을 위한 데이터 추후 연결된 쿠폰 템플릿을 위해 확장성 고려
6
- * 생성일: 2024-08-14
7
- * created by jun
8
- */
9
- var MaxDiscountCouponInfoTypeEnum;
10
- (function (MaxDiscountCouponInfoTypeEnum) {
11
- MaxDiscountCouponInfoTypeEnum["\uD560\uC778\uB960"] = "\uD560\uC778\uB960";
12
- MaxDiscountCouponInfoTypeEnum["\uD560\uC778\uAE08\uC561"] = "\uD560\uC778\uAE08\uC561";
13
- })(MaxDiscountCouponInfoTypeEnum || (exports.MaxDiscountCouponInfoTypeEnum = MaxDiscountCouponInfoTypeEnum = {}));