@yolo-croket-dev/entity-v2 0.2.55 → 0.2.56-sj

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.
@@ -1,8 +1,15 @@
1
1
  import { Types } from 'mongoose';
2
+ import { BrandImageInfo } from './brand.entity';
3
+ import { RelatedBrandInfoEntity } from './related-brand-info.entity';
2
4
  export default interface BrandForBuyerEntity {
3
5
  _id: Types.ObjectId | string;
4
6
  brandName: string;
5
7
  engBrandName?: string;
6
8
  isBookmarked: boolean;
9
+ brandDescription?: string;
10
+ brandBanners?: BrandImageInfo[];
11
+ brandLogoThumbnail?: BrandImageInfo;
12
+ brandSearchKeywordCount?: number;
13
+ relatedBrandInfos?: RelatedBrandInfoEntity[];
7
14
  }
8
15
  export { BrandForBuyerEntity };
@@ -5,6 +5,12 @@ export declare enum BrandStatusEnum {
5
5
  /** @description 브랜드 상태 */
6
6
  INACTIVE = "INACTIVE"
7
7
  }
8
+ export interface BrandImageInfo {
9
+ imgUrl: string;
10
+ landingUrl?: string;
11
+ width: number;
12
+ height: number;
13
+ }
8
14
  export default interface BrandEntity {
9
15
  /** @description 브랜드 고유 아이디 */
10
16
  _id: Types.ObjectId | string;
@@ -16,7 +22,6 @@ export default interface BrandEntity {
16
22
  subBrandNames?: string[];
17
23
  /** @description 브랜드 찜 개수 */
18
24
  brandBookmarkCount: number;
19
- /** @description 브랜드 로고 이미지 (희진님이 아직 안 넣을거라고 말씀함) */
20
25
  /** @description 저장날짜 */
21
26
  regDate: Date;
22
27
  /** @description 마지막 수정일 */
@@ -27,5 +32,17 @@ export default interface BrandEntity {
27
32
  brandInspectionId?: Types.ObjectId | string;
28
33
  /** @description 브랜드 상품 개수 */
29
34
  brandStoreItemCount: number;
35
+ /** @description 브랜드 관 여부 */
36
+ isBrandHall: boolean;
37
+ /** @description 브랜드 설명 */
38
+ brandDescription?: string;
39
+ /** @description 브랜드 배너 이미지 리스트 */
40
+ brandBanners?: BrandImageInfo[];
41
+ /** @description 브랜드 로고 이미지 */
42
+ brandLogoThumbnail?: BrandImageInfo;
43
+ /** @description 브랜드 검색 키워드 개수 */
44
+ brandSearchKeywordCount?: number;
45
+ /** @description 관련 브랜드 아이디 리스트 */
46
+ relatedBrandIds?: Types.ObjectId[] | string[];
30
47
  }
31
48
  export { BrandEntity };
@@ -1,2 +1,3 @@
1
1
  export * from './brand.entity';
2
2
  export * from './brand-for-buyer.entity';
3
+ export * from './related-brand-info.entity';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./brand.entity"), exports);
18
18
  __exportStar(require("./brand-for-buyer.entity"), exports);
19
+ __exportStar(require("./related-brand-info.entity"), exports);
@@ -0,0 +1,10 @@
1
+ import { Types } from 'mongoose';
2
+ import { BrandImageInfo } from './brand.entity';
3
+ export default interface RelatedBrandInfoEntity {
4
+ _id: Types.ObjectId | string;
5
+ brandName: string;
6
+ engBrandName?: string;
7
+ /** @description 브랜드 로고 이미지 */
8
+ brandLogoThumbnail?: BrandImageInfo;
9
+ }
10
+ export { RelatedBrandInfoEntity };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -8,7 +8,10 @@ export declare enum BrandLogTypeEnum {
8
8
  BRAND_CREATED_FROM_SELLER_INSPECTION_REQUEST = "BRAND_CREATED_FROM_SELLER_INSPECTION_REQUEST",
9
9
  INSPECTION_APPROVED = "INSPECTION_APPROVED",
10
10
  INSPECTION_REJECTED_BRAND_DELETED = "INSPECTION_REJECTED_BRAND_DELETED",
11
- BRAND_SUB_NAMES_UPDATED_BY_ADMIN = "BRAND_SUB_NAMES_UPDATED_BY_ADMIN"
11
+ BRAND_SUB_NAMES_UPDATED_BY_ADMIN = "BRAND_SUB_NAMES_UPDATED_BY_ADMIN",
12
+ BRAND_HALL_TRUE_BY_ADMIN = "BRAND_HALL_TRUE_BY_ADMIN",
13
+ BRAND_HALL_FALSE_BY_ADMIN = "BRAND_HALL_FALSE_BY_ADMIN",
14
+ BRAND_DATA_UPDATED_BY_ADMIN = "BRAND_DATA_UPDATED_BY_ADMIN"
12
15
  }
13
16
  /**
14
17
  * @author sj
@@ -31,6 +34,9 @@ export default interface BrandLogEntity {
31
34
  * INSPECTION_APPROVED
32
35
  * INSPECTION_REJECTED_BRAND_DELETED
33
36
  * UPDATE_SUB_BRAND_NAMES_BY_ADMIN
37
+ * BRAND_HALL_TRUE_BY_ADMIN
38
+ * BRAND_HALL_FALSE_BY_ADMIN
39
+ * BRAND_DATA_UPDATED_BY_ADMIN
34
40
  * */
35
41
  manageUserId?: string | Types.ObjectId;
36
42
  /**
@@ -40,6 +46,9 @@ export default interface BrandLogEntity {
40
46
  * BRAND_ENG_NAME_UPDATED_BY_ADMIN
41
47
  * HARD_DELETE_BY_ADMIN
42
48
  * UPDATE_SUB_BRAND_NAMES_BY_ADMIN
49
+ * BRAND_HALL_TRUE_BY_ADMIN
50
+ * BRAND_HALL_FALSE_BY_ADMIN
51
+ * BRAND_DATA_UPDATED_BY_ADMIN
43
52
  * */
44
53
  beforeBrandInfo?: BrandEntity;
45
54
  /**
@@ -17,4 +17,10 @@ var BrandLogTypeEnum;
17
17
  BrandLogTypeEnum["INSPECTION_REJECTED_BRAND_DELETED"] = "INSPECTION_REJECTED_BRAND_DELETED";
18
18
  // 관리자 브랜드 유의어 수정
19
19
  BrandLogTypeEnum["BRAND_SUB_NAMES_UPDATED_BY_ADMIN"] = "BRAND_SUB_NAMES_UPDATED_BY_ADMIN";
20
+ // 관리자 브랜드 관 여부 수정 (true)
21
+ BrandLogTypeEnum["BRAND_HALL_TRUE_BY_ADMIN"] = "BRAND_HALL_TRUE_BY_ADMIN";
22
+ // 관리자 브랜드 관 여부 수정 (false)
23
+ BrandLogTypeEnum["BRAND_HALL_FALSE_BY_ADMIN"] = "BRAND_HALL_FALSE_BY_ADMIN";
24
+ // 관리자 브랜드 데이터 수정 (설명, 배너, 로고, 관련 브랜드 아이디)
25
+ BrandLogTypeEnum["BRAND_DATA_UPDATED_BY_ADMIN"] = "BRAND_DATA_UPDATED_BY_ADMIN";
20
26
  })(BrandLogTypeEnum || (exports.BrandLogTypeEnum = BrandLogTypeEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.55",
3
+ "version": "0.2.56-sj",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -23,4 +23,4 @@
23
23
  },
24
24
  "license": "UNLICENSED",
25
25
  "dependencies": {}
26
- }
26
+ }