@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.
- package/cart/cart.entity.d.ts +90 -0
- package/cart/cart.entity.js +12 -0
- package/cart/index.d.ts +1 -0
- package/cart/index.js +17 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +1 -1
- package/store/domestic-account-store.entity.d.ts +4 -0
- package/store/domestic-account-store.entity.js +2 -0
- package/store/index.d.ts +1 -0
- package/store/index.js +1 -0
- package/store/store.entity.d.ts +10 -0
- package/store/store.entity.js +5 -1
|
@@ -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 = {}));
|
package/cart/index.d.ts
ADDED
|
@@ -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
package/index.js
CHANGED
package/package.json
CHANGED
package/store/index.d.ts
CHANGED
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);
|
package/store/store.entity.d.ts
CHANGED
|
@@ -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 };
|
package/store/store.entity.js
CHANGED
|
@@ -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
|
}
|