@yolo-croket-dev/entity-v2 0.2.123 → 0.2.124-jun.1

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,60 @@
1
+ import { Types } from 'mongoose';
2
+ import { StoreItemOptionInfo } from '@yolo-croket-dev/entity/src/store-item';
3
+ export declare enum BuymaStockTypeEnum {
4
+ STOCK_IN_HAND = "stock_in_hand",
5
+ OUT_OF_STOCK = "out_of_stock",
6
+ PURCHASE_FOR_ORDER = "purchase_for_order"
7
+ }
8
+ export default interface BuymaItemEntity {
9
+ /** @description 아이디 */
10
+ _id: Types.ObjectId | string;
11
+ /** @description 상품 아이디 - buyma의 reference_number */
12
+ storeItemId: Types.ObjectId | string;
13
+ /** @description 상품명 */
14
+ itemName?: string;
15
+ /** @description 상품명 영문 */
16
+ itemName_en?: string;
17
+ /** @description 성별 */
18
+ gender?: string;
19
+ /** @description 상품 가격 */
20
+ itemPriceForBuyerWithShippingFee: number;
21
+ /** @description 선불 여부 */
22
+ isPrepay: boolean;
23
+ /** @description 정가 */
24
+ regularPrice?: number;
25
+ /** @description 재고 수 */
26
+ remainCount: number;
27
+ /** @description 메인 카테고리 */
28
+ mainCategory: string;
29
+ /** @description 서브 카테고리 */
30
+ subCategory: string;
31
+ /** @description 국가 */
32
+ nation: string;
33
+ /** @description 브랜드 아이디 */
34
+ brandId?: Types.ObjectId | string;
35
+ /** @description 브랜드명 */
36
+ brandName?: string;
37
+ /** @description 브랜드명 영문 */
38
+ engBrandName?: string;
39
+ /** @description 상품 이미지 리스트 */
40
+ itemImgList: string[];
41
+ /** @description 옵션 정보 */
42
+ optionInfo: StoreItemOptionInfo;
43
+ /** @description 옵션 정보 영문 */
44
+ optionInfo_en: StoreItemOptionInfo;
45
+ /** @description 판매 위치 */
46
+ salesLocation?: string;
47
+ /** @description 판매 여부 */
48
+ isSelling?: boolean;
49
+ /** @description 삭제 여부 */
50
+ isDelete?: boolean;
51
+ /** @description 마지막 동기화 성공 날짜 */
52
+ lastSyncSuccessDate?: Date;
53
+ /** @description 마지막 동기화 실패 날짜 */
54
+ lastSyncFailDate?: Date;
55
+ /** @description 마지막 동기화 성공 여부 */
56
+ isLastSyncSuccess?: boolean;
57
+ /** @description 에러 메시지 */
58
+ error?: any;
59
+ }
60
+ export { BuymaItemEntity };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BuymaStockTypeEnum = void 0;
4
+ var BuymaStockTypeEnum;
5
+ (function (BuymaStockTypeEnum) {
6
+ BuymaStockTypeEnum["STOCK_IN_HAND"] = "stock_in_hand";
7
+ BuymaStockTypeEnum["OUT_OF_STOCK"] = "out_of_stock";
8
+ BuymaStockTypeEnum["PURCHASE_FOR_ORDER"] = "purchase_for_order";
9
+ })(BuymaStockTypeEnum || (exports.BuymaStockTypeEnum = BuymaStockTypeEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './buyma-item.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("./buyma-item.entity"), exports);
@@ -0,0 +1 @@
1
+ export * from './buyma-item';
@@ -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("./buyma-item"), exports);
package/index.d.ts CHANGED
@@ -58,3 +58,4 @@ export * from './cart-second-push-log';
58
58
  export * from './cart-third-push-log';
59
59
  export * from './store-item-naver-feed';
60
60
  export * from './brand.modules/naver-brand-dictionary';
61
+ export * from './buyma-item.modules';
package/index.js CHANGED
@@ -74,3 +74,4 @@ __exportStar(require("./cart-second-push-log"), exports);
74
74
  __exportStar(require("./cart-third-push-log"), exports);
75
75
  __exportStar(require("./store-item-naver-feed"), exports);
76
76
  __exportStar(require("./brand.modules/naver-brand-dictionary"), exports);
77
+ __exportStar(require("./buyma-item.modules"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.123",
3
+ "version": "0.2.124-jun.1",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -20,6 +20,7 @@ export declare enum UserTypeEnum {
20
20
  cron = "cron"
21
21
  }
22
22
  export declare enum PurchasedProcessEnum {
23
+ 예약중 = "reserving",
23
24
  입금전 = "beforeDeposit",
24
25
  주문_대기중 = "waitingOrder",
25
26
  발송전 = "beforeDelivery",
@@ -30,6 +31,7 @@ export declare enum PurchasedProcessEnum {
30
31
  취소됨 = "cancelled"
31
32
  }
32
33
  export declare enum PurchasedProcessV2Enum {
34
+ 예약중 = "reserving",
33
35
  입금전 = "beforeDeposit",
34
36
  주문_대기중 = "waitingOrder",
35
37
  재고_확인중 = "checkingStock",
@@ -22,6 +22,7 @@ var UserTypeEnum;
22
22
  })(UserTypeEnum || (exports.UserTypeEnum = UserTypeEnum = {}));
23
23
  var PurchasedProcessEnum;
24
24
  (function (PurchasedProcessEnum) {
25
+ PurchasedProcessEnum["\uC608\uC57D\uC911"] = "reserving";
25
26
  PurchasedProcessEnum["\uC785\uAE08\uC804"] = "beforeDeposit";
26
27
  PurchasedProcessEnum["\uC8FC\uBB38_\uB300\uAE30\uC911"] = "waitingOrder";
27
28
  PurchasedProcessEnum["\uBC1C\uC1A1\uC804"] = "beforeDelivery";
@@ -33,6 +34,7 @@ var PurchasedProcessEnum;
33
34
  })(PurchasedProcessEnum || (exports.PurchasedProcessEnum = PurchasedProcessEnum = {}));
34
35
  var PurchasedProcessV2Enum;
35
36
  (function (PurchasedProcessV2Enum) {
37
+ PurchasedProcessV2Enum["\uC608\uC57D\uC911"] = "reserving";
36
38
  PurchasedProcessV2Enum["\uC785\uAE08\uC804"] = "beforeDeposit";
37
39
  PurchasedProcessV2Enum["\uC8FC\uBB38_\uB300\uAE30\uC911"] = "waitingOrder";
38
40
  PurchasedProcessV2Enum["\uC7AC\uACE0_\uD655\uC778\uC911"] = "checkingStock";
package/user/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from './user.entity';
2
2
  export * from './user-for-admin.entity';
3
3
  export * from './user-shipping-addresses.entity';
4
+ export * from './user-card-billing.entity';
package/user/index.js CHANGED
@@ -17,3 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./user.entity"), exports);
18
18
  __exportStar(require("./user-for-admin.entity"), exports);
19
19
  __exportStar(require("./user-shipping-addresses.entity"), exports);
20
+ __exportStar(require("./user-card-billing.entity"), exports);
@@ -0,0 +1,56 @@
1
+ import { Types } from 'mongoose';
2
+ /** 유저 카드 빌링 타입 */
3
+ export declare enum UserCardBillingEnum {
4
+ /** 나이스 페이 빌링 키 */
5
+ nicepay_billing = "nicepay_billing"
6
+ }
7
+ /**
8
+ * NicePay 빌키 발급 API 원본 응답 인터페이스
9
+ * @see https://developers.nicepay.co.kr/manual-card-billkey-auth-create.php
10
+ */
11
+ export interface NicepayBillingKeyApiResponse {
12
+ /** 결과 코드 (F100: 성공) */
13
+ ResultCode: string;
14
+ /** 결과 메시지 */
15
+ ResultMsg: string;
16
+ /** 거래 ID */
17
+ TID: string;
18
+ /** 빌키 */
19
+ BID: string;
20
+ /** 빌키 발급일자 (YYYYMMDD) */
21
+ AuthDate: string;
22
+ /** 카드사 코드 */
23
+ CardCode: string;
24
+ /** 카드사명 */
25
+ CardName: string;
26
+ /** 카드 타입 (0: 신용, 1: 체크) */
27
+ CardCl: string;
28
+ /** 매입 카드사 코드 */
29
+ AcquCardCode: string;
30
+ /** 매입 카드사명 */
31
+ AcquCardName: string;
32
+ /** 마스킹된 카드번호 */
33
+ CardNo: string;
34
+ }
35
+ /**
36
+ * @author jun
37
+ * @description 유저 카드 빌링 정보 엔티티
38
+ * @process 유저의 카드 빌링키 및 카드 정보를 저장
39
+ */
40
+ export interface UserCardBillingEntity {
41
+ _id: Types.ObjectId;
42
+ /** 카드 빌링 타입 */
43
+ type: UserCardBillingEnum;
44
+ /** 유저 아이디 */
45
+ userId: Types.ObjectId;
46
+ /** 빌링키 */
47
+ billingKey: string;
48
+ /** 카드사명 (ex: 신한카드) */
49
+ cardCompany: string;
50
+ /** 마스킹된 카드번호 뒷 4자리 (ex: 1234) */
51
+ cardNumberLast4: string;
52
+ /** 등록일 */
53
+ regDate: Date;
54
+ /** NicePay 빌링키 발급 API 원본 응답 */
55
+ nicepayResponse?: NicepayBillingKeyApiResponse;
56
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserCardBillingEnum = void 0;
4
+ /** 유저 카드 빌링 타입 */
5
+ var UserCardBillingEnum;
6
+ (function (UserCardBillingEnum) {
7
+ /** 나이스 페이 빌링 키 */
8
+ UserCardBillingEnum["nicepay_billing"] = "nicepay_billing";
9
+ })(UserCardBillingEnum || (exports.UserCardBillingEnum = UserCardBillingEnum = {}));