@yolo-croket-dev/entity-v2 0.0.35 → 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.35",
3
+ "version": "0.0.36-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v2",
@@ -0,0 +1,4 @@
1
+ import StoreEntity from './store.entity';
2
+ /** @description 국내 계좌 스토어 */
3
+ export interface DomesticAccountStoreEntity extends Pick<StoreEntity, '_id' | 'account' | 'adminId' | 'storeTitle' | 'businessInfo' | 'lastBeforeAccountInfo'> {
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/store/index.d.ts CHANGED
@@ -2,3 +2,4 @@ export * from './store.entity';
2
2
  export * from './store-by-seller-id.entity';
3
3
  export * from './abroad-account.entity';
4
4
  export * from './store-for-toss-payment.entity';
5
+ export * from './domestic-account-store.entity';
package/store/index.js CHANGED
@@ -18,3 +18,4 @@ __exportStar(require("./store.entity"), exports);
18
18
  __exportStar(require("./store-by-seller-id.entity"), exports);
19
19
  __exportStar(require("./abroad-account.entity"), exports);
20
20
  __exportStar(require("./store-for-toss-payment.entity"), exports);
21
+ __exportStar(require("./domestic-account-store.entity"), exports);
@@ -162,6 +162,15 @@ export declare class ProceedsMethodInfo {
162
162
  editLog?: Array<any>;
163
163
  regDate: Date;
164
164
  }
165
+ /** @description 마지막 변경전 계좌 정보 */
166
+ export declare class LastBeforeAccountInfo {
167
+ /** @description 국내 / 해외 계좌 여부 - true = 해외 */
168
+ isAbroad: boolean;
169
+ /** @description 국내 계좌 정보 */
170
+ account?: StoreAccount;
171
+ /** @description 등록일 - 현재 계좌번호로 변경된 날짜 */
172
+ regDate: Date;
173
+ }
165
174
  /** store schema inteface (아직 선언하다 말았음) */
166
175
  export default class StoreEntity {
167
176
  _id: Types.ObjectId | string;
@@ -177,5 +186,6 @@ export default class StoreEntity {
177
186
  * @description 수취인 관리자 번호 (해외송금 센트비즈 관련 필요)
178
187
  */
179
188
  receiverAdminNum: string;
189
+ lastBeforeAccountInfo?: LastBeforeAccountInfo;
180
190
  }
181
191
  export { StoreEntity };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StoreEntity = exports.ProceedsMethodInfo = exports.BusinessInfo = exports.ZeroRateVatInfo = exports.ForeignBusinessInfo = exports.PrivateSellerInfo = exports.DomesticBusinessInfo = exports.ZeroRateVatProcessEnum = exports.IndividualTaxationTypeEnum = exports.StoreAccount = exports.BUSINESS_INFO_NOT_MATCH_REASONS = exports.BusinessInfoVerifiProcessEnum = exports.BusinessInfoSellerTypeEnum = exports.ProceedsMethodTypeEnum = void 0;
3
+ exports.StoreEntity = exports.LastBeforeAccountInfo = exports.ProceedsMethodInfo = exports.BusinessInfo = exports.ZeroRateVatInfo = exports.ForeignBusinessInfo = exports.PrivateSellerInfo = exports.DomesticBusinessInfo = exports.ZeroRateVatProcessEnum = exports.IndividualTaxationTypeEnum = exports.StoreAccount = exports.BUSINESS_INFO_NOT_MATCH_REASONS = exports.BusinessInfoVerifiProcessEnum = exports.BusinessInfoSellerTypeEnum = exports.ProceedsMethodTypeEnum = void 0;
4
4
  var ProceedsMethodTypeEnum;
5
5
  (function (ProceedsMethodTypeEnum) {
6
6
  ProceedsMethodTypeEnum["\uC77C\uBC18"] = "normal";
@@ -75,6 +75,10 @@ exports.BusinessInfo = BusinessInfo;
75
75
  class ProceedsMethodInfo {
76
76
  }
77
77
  exports.ProceedsMethodInfo = ProceedsMethodInfo;
78
+ /** @description 마지막 변경전 계좌 정보 */
79
+ class LastBeforeAccountInfo {
80
+ }
81
+ exports.LastBeforeAccountInfo = LastBeforeAccountInfo;
78
82
  /** store schema inteface (아직 선언하다 말았음) */
79
83
  class StoreEntity {
80
84
  }