@yolo-croket-dev/entity-v2 0.2.121-hj-3 → 0.2.122

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/index.d.ts CHANGED
@@ -56,4 +56,5 @@ export * from './attribution-history';
56
56
  export * from './cart-push-log';
57
57
  export * from './cart-second-push-log';
58
58
  export * from './cart-third-push-log';
59
- export * from './buyma-item.modules/buyma-item';
59
+ export * from './store-item-naver-feed';
60
+ export * from './brand.modules/naver-brand-dictionary';
package/index.js CHANGED
@@ -72,4 +72,5 @@ __exportStar(require("./attribution-history"), exports);
72
72
  __exportStar(require("./cart-push-log"), exports);
73
73
  __exportStar(require("./cart-second-push-log"), exports);
74
74
  __exportStar(require("./cart-third-push-log"), exports);
75
- __exportStar(require("./buyma-item.modules/buyma-item"), exports);
75
+ __exportStar(require("./store-item-naver-feed"), exports);
76
+ __exportStar(require("./brand.modules/naver-brand-dictionary"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.121-hj-3",
3
+ "version": "0.2.122",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -4,6 +4,25 @@ export declare enum StoreItemNaverFeedSyncStatusEnum {
4
4
  PENDING = "PENDING",
5
5
  FAILED = "FAILED"
6
6
  }
7
+ /** @description 동기화 실패 사유 타입 */
8
+ export declare enum SyncFailedReasonTypeEnum {
9
+ /** 유효하지 않은 상품 아이디 (ObjectId 변환 실패) */
10
+ INVALID_ITEM_ID = "INVALID_ITEM_ID",
11
+ /** 상품 조회 실패 (미존재/판매중지/삭제/재고소진 등) */
12
+ ITEM_NOT_FOUND = "ITEM_NOT_FOUND",
13
+ /** 네이버 피드 제외 대상 셀러 */
14
+ EXCLUDED_SELLER = "EXCLUDED_SELLER",
15
+ /** 시크릿 상품 */
16
+ SECRET_ITEM = "SECRET_ITEM",
17
+ /** 사방넷 연동 상품 네이버 피드 미활성화 */
18
+ SABANG_NOT_ENABLED = "SABANG_NOT_ENABLED",
19
+ /** 상품 대표 이미지 미등록 */
20
+ NO_IMAGE = "NO_IMAGE",
21
+ /** 상품 판매가 유효하지 않음 */
22
+ INVALID_PRICE = "INVALID_PRICE",
23
+ /** 연동 상품명 중복 */
24
+ ITEM_NAME_DUPLICATED = "ITEM_NAME_DUPLICATED"
25
+ }
7
26
  export declare enum StoreItemNaverFeedConditionEnum {
8
27
  신상품 = "\uC2E0\uC0C1\uD488",
9
28
  중고 = "\uC911\uACE0"
@@ -23,6 +42,8 @@ export interface StoreItemNaverFeedEntity {
23
42
  isShow: boolean;
24
43
  /** @description 커스텀 상품명 */
25
44
  customItemName?: string;
45
+ /** @description 네이버 쇼핑에 실제 연동되는 상품명 */
46
+ effectiveItemName: string;
26
47
  /** @description 브랜드 */
27
48
  brand?: string;
28
49
  /** @description 메이커 */
@@ -37,6 +58,8 @@ export interface StoreItemNaverFeedEntity {
37
58
  syncStatus: StoreItemNaverFeedSyncStatusEnum;
38
59
  /** @description 동기화 실패 사유 */
39
60
  syncFailedReason?: string;
61
+ /** @description 동기화 실패 사유 타입 */
62
+ syncFailedReasonType?: SyncFailedReasonTypeEnum;
40
63
  /** @description 동기화 실패 일시 */
41
64
  syncFailedDate?: Date;
42
65
  /** @description 이벤트 문구 */
@@ -1,12 +1,32 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.StoreItemNaverFeedConditionEnum = exports.StoreItemNaverFeedSyncStatusEnum = void 0;
3
+ exports.StoreItemNaverFeedConditionEnum = exports.SyncFailedReasonTypeEnum = exports.StoreItemNaverFeedSyncStatusEnum = void 0;
4
4
  var StoreItemNaverFeedSyncStatusEnum;
5
5
  (function (StoreItemNaverFeedSyncStatusEnum) {
6
6
  StoreItemNaverFeedSyncStatusEnum["SUCCESS"] = "SUCCESS";
7
7
  StoreItemNaverFeedSyncStatusEnum["PENDING"] = "PENDING";
8
8
  StoreItemNaverFeedSyncStatusEnum["FAILED"] = "FAILED";
9
9
  })(StoreItemNaverFeedSyncStatusEnum || (exports.StoreItemNaverFeedSyncStatusEnum = StoreItemNaverFeedSyncStatusEnum = {}));
10
+ /** @description 동기화 실패 사유 타입 */
11
+ var SyncFailedReasonTypeEnum;
12
+ (function (SyncFailedReasonTypeEnum) {
13
+ /** 유효하지 않은 상품 아이디 (ObjectId 변환 실패) */
14
+ SyncFailedReasonTypeEnum["INVALID_ITEM_ID"] = "INVALID_ITEM_ID";
15
+ /** 상품 조회 실패 (미존재/판매중지/삭제/재고소진 등) */
16
+ SyncFailedReasonTypeEnum["ITEM_NOT_FOUND"] = "ITEM_NOT_FOUND";
17
+ /** 네이버 피드 제외 대상 셀러 */
18
+ SyncFailedReasonTypeEnum["EXCLUDED_SELLER"] = "EXCLUDED_SELLER";
19
+ /** 시크릿 상품 */
20
+ SyncFailedReasonTypeEnum["SECRET_ITEM"] = "SECRET_ITEM";
21
+ /** 사방넷 연동 상품 네이버 피드 미활성화 */
22
+ SyncFailedReasonTypeEnum["SABANG_NOT_ENABLED"] = "SABANG_NOT_ENABLED";
23
+ /** 상품 대표 이미지 미등록 */
24
+ SyncFailedReasonTypeEnum["NO_IMAGE"] = "NO_IMAGE";
25
+ /** 상품 판매가 유효하지 않음 */
26
+ SyncFailedReasonTypeEnum["INVALID_PRICE"] = "INVALID_PRICE";
27
+ /** 연동 상품명 중복 */
28
+ SyncFailedReasonTypeEnum["ITEM_NAME_DUPLICATED"] = "ITEM_NAME_DUPLICATED";
29
+ })(SyncFailedReasonTypeEnum || (exports.SyncFailedReasonTypeEnum = SyncFailedReasonTypeEnum = {}));
10
30
  var StoreItemNaverFeedConditionEnum;
11
31
  (function (StoreItemNaverFeedConditionEnum) {
12
32
  StoreItemNaverFeedConditionEnum["\uC2E0\uC0C1\uD488"] = "\uC2E0\uC0C1\uD488";
@@ -1,49 +0,0 @@
1
- import { Types } from 'mongoose';
2
- import { StoreItemOptionInfo } from '@yolo-croket-dev/entity/src/store-item';
3
- export default interface BuymaItemEntity {
4
- /** @description 아이디 */
5
- _id: Types.ObjectId | string;
6
- /** @description 상품 아이디 - buyma의 reference_number */
7
- storeItemId: Types.ObjectId | string;
8
- /** @description 상품명 */
9
- itemName?: string;
10
- /** @description 상품명 영문 */
11
- itemName_en?: string;
12
- /** @description 성별 */
13
- gender?: string;
14
- /** @description 상품 가격 */
15
- itemPriceForBuyer: number;
16
- /** @description 정가 */
17
- regularPrice: number;
18
- /** @description 재고 수 */
19
- remainCount: number;
20
- /** @description 메인 카테고리 */
21
- mainCategory: string;
22
- /** @description 서브 카테고리 */
23
- subCategory: string;
24
- /** @description 국가 */
25
- nation: string;
26
- /** @description 브랜드 아이디 */
27
- brandId?: Types.ObjectId | string;
28
- /** @description 브랜드명 */
29
- brandName?: string;
30
- /** @description 브랜드명 영문 */
31
- engBrandName?: string;
32
- /** @description 상품 이미지 리스트 */
33
- itemImgList: string[];
34
- /** @description 옵션 정보 */
35
- optionInfo: StoreItemOptionInfo;
36
- /** @description 옵션 정보 영문 */
37
- optionInfo_en: StoreItemOptionInfo;
38
- /** @description 판매 위치 */
39
- salesLocation?: string;
40
- /** @description 마지막 상품정보 업데이트 된 날짜 */
41
- lastUpdateDate?: Date;
42
- /** @description 마지막 api 연동 시도 날짜 */
43
- lastSyncDate?: Date;
44
- /** @description 마지막 api 연동 시도 성공 여부 */
45
- isLastSyncSuccess?: boolean;
46
- /** @description 에러 메시지 */
47
- err?: string;
48
- }
49
- export { BuymaItemEntity };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './buyma-item.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("./buyma-item.entity"), exports);
@@ -1,4 +0,0 @@
1
- import BuymaItemEntity from '../buyma-item/buyma-item.entity';
2
- export default interface BuymaItemSyncLogEntity extends BuymaItemEntity {
3
- }
4
- export { BuymaItemSyncLogEntity };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './buyma-item-sync-log.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("./buyma-item-sync-log.entity"), exports);
@@ -1,2 +0,0 @@
1
- export * from './buyma-item';
2
- export * from './buyma-item-sync-log';
@@ -1,18 +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("./buyma-item"), exports);
18
- __exportStar(require("./buyma-item-sync-log"), exports);