@yolo-croket-dev/entity-v2 0.0.36-hj-1 → 0.0.36-jun.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.
@@ -0,0 +1,90 @@
1
+ import { Types } from 'mongoose';
2
+ declare enum CartTypeEnum {
3
+ shipping = "shipping",
4
+ direct = "direct"
5
+ }
6
+ declare enum CartPOptionTypeEnum {
7
+ single = "single",
8
+ group = "group"
9
+ }
10
+ export interface LegacyCartPOption {
11
+ optionName?: string;
12
+ pNums?: number;
13
+ }
14
+ interface CartPOptionChild {
15
+ optionName: string;
16
+ optionNameList: string[];
17
+ pNums: number;
18
+ }
19
+ interface CartPOption {
20
+ pOptionType: CartPOptionTypeEnum;
21
+ pOptionList: CartPOptionChild[];
22
+ }
23
+ interface CartPastSellingShippingFeeSectionChild {
24
+ until?: number;
25
+ untilShippingFee?: number;
26
+ }
27
+ interface CartPastSellingShippingFeeSection {
28
+ shippingFeeSectionList?: CartPastSellingShippingFeeSectionChild[];
29
+ lastSectionShippingFee?: number;
30
+ }
31
+ interface CartPastSellingShippingTermsInfo {
32
+ shippingTermsType?: string;
33
+ shippingFeeBySection?: CartPastSellingShippingFeeSection;
34
+ }
35
+ export interface CartPastSellingShippingInfo {
36
+ expectedSendDays?: number;
37
+ isAbroadShipping: boolean;
38
+ isPrepay?: boolean;
39
+ prepayPrice?: number;
40
+ isBundleShipping?: boolean;
41
+ bundleShippingFee?: number;
42
+ isShippingTerms?: boolean;
43
+ shippingTermsInfo?: CartPastSellingShippingTermsInfo | null;
44
+ }
45
+ export interface CartPastDirectInfo {
46
+ expectedDeliveryDays?: number;
47
+ address: string;
48
+ }
49
+ export interface CartPastVisitInfo {
50
+ keepingDate?: Date;
51
+ isRegularlyKeeping?: boolean;
52
+ regularlyKeepingDays?: number;
53
+ }
54
+ export interface CartPastSellingInfo {
55
+ area: string;
56
+ nation: string;
57
+ city: string;
58
+ isExistDueDate: boolean;
59
+ dueDate?: Date;
60
+ deliveryDate?: Date;
61
+ isShipping: boolean;
62
+ shippingInfo: CartPastSellingShippingInfo;
63
+ isDirect: boolean;
64
+ directInfo?: CartPastDirectInfo;
65
+ isVisit?: boolean;
66
+ visitInfo?: CartPastVisitInfo;
67
+ }
68
+ export interface CartEntity {
69
+ cartType: CartTypeEnum;
70
+ ownerId: Types.ObjectId;
71
+ /** 체크 여부 - (default : true) */
72
+ isChecked: boolean;
73
+ storeId: Types.ObjectId;
74
+ itemId: Types.ObjectId;
75
+ saveExpired: Date;
76
+ pOption: LegacyCartPOption[];
77
+ pOptionInfo?: CartPOption[];
78
+ requirement?: string;
79
+ directAddress_custom?: string;
80
+ sortDate: Date;
81
+ lastModifyDate: Date;
82
+ regDate: Date;
83
+ isUseCoupon?: boolean;
84
+ ICId?: Types.ObjectId;
85
+ itemName_past: string;
86
+ itemPrice_past: number;
87
+ itemPriceForBuyer_past?: number;
88
+ sellingInfo_past: CartPastSellingInfo;
89
+ }
90
+ export {};
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ var CartTypeEnum;
4
+ (function (CartTypeEnum) {
5
+ CartTypeEnum["shipping"] = "shipping";
6
+ CartTypeEnum["direct"] = "direct";
7
+ })(CartTypeEnum || (CartTypeEnum = {}));
8
+ var CartPOptionTypeEnum;
9
+ (function (CartPOptionTypeEnum) {
10
+ CartPOptionTypeEnum["single"] = "single";
11
+ CartPOptionTypeEnum["group"] = "group";
12
+ })(CartPOptionTypeEnum || (CartPOptionTypeEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './cart.entity';
package/cart/index.js ADDED
@@ -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("./cart.entity"), exports);
package/index.d.ts CHANGED
@@ -16,3 +16,4 @@ export * from './app-push-subscribed-user';
16
16
  export * from './link-tab';
17
17
  export * from './store';
18
18
  export * from './mail';
19
+ export * from './cart';
package/index.js CHANGED
@@ -32,3 +32,4 @@ __exportStar(require("./app-push-subscribed-user"), exports);
32
32
  __exportStar(require("./link-tab"), exports);
33
33
  __exportStar(require("./store"), exports);
34
34
  __exportStar(require("./mail"), exports);
35
+ __exportStar(require("./cart"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.36-hj-1",
3
+ "version": "0.0.36-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v2",