@yolo-croket-dev/entity-v2 0.2.43-sj13 → 0.2.43-sj2

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.
Files changed (32) hide show
  1. package/brand/brand.entity.d.ts +10 -0
  2. package/brand/brand.entity.js +2 -0
  3. package/brand-inspection/brand-inspection.entity.d.ts +38 -0
  4. package/{brand.modules/brand-inspection → brand-inspection}/brand-inspection.entity.js +0 -3
  5. package/index.d.ts +4 -5
  6. package/index.js +4 -5
  7. package/package.json +1 -1
  8. package/brand.modules/brand/brand.entity.d.ts +0 -31
  9. package/brand.modules/brand/brand.entity.js +0 -10
  10. package/brand.modules/brand-inspection/brand-inspection.entity.d.ts +0 -52
  11. package/brand.modules/brand-log/brand-log.entity.d.ts +0 -49
  12. package/brand.modules/brand-log/brand-log.entity.js +0 -16
  13. package/brand.modules/brand-log/index.d.ts +0 -1
  14. package/brand.modules/brand-log/index.js +0 -17
  15. package/brand.modules/index.d.ts +0 -5
  16. package/brand.modules/index.js +0 -21
  17. /package/{brand.modules/brand → brand}/brand-for-buyer.entity.d.ts +0 -0
  18. /package/{brand.modules/brand → brand}/brand-for-buyer.entity.js +0 -0
  19. /package/{brand.modules/brand → brand}/index.d.ts +0 -0
  20. /package/{brand.modules/brand → brand}/index.js +0 -0
  21. /package/{brand.modules/brand-bookmark → brand-bookmark}/brand-bookmark.entity.d.ts +0 -0
  22. /package/{brand.modules/brand-bookmark → brand-bookmark}/brand-bookmark.entity.js +0 -0
  23. /package/{brand.modules/brand-bookmark → brand-bookmark}/index.d.ts +0 -0
  24. /package/{brand.modules/brand-bookmark → brand-bookmark}/index.js +0 -0
  25. /package/{brand.modules/brand-cohort → brand-cohort}/brand-cohort-for-admin.entity.d.ts +0 -0
  26. /package/{brand.modules/brand-cohort → brand-cohort}/brand-cohort-for-admin.entity.js +0 -0
  27. /package/{brand.modules/brand-cohort → brand-cohort}/brand-cohort.entity.d.ts +0 -0
  28. /package/{brand.modules/brand-cohort → brand-cohort}/brand-cohort.entity.js +0 -0
  29. /package/{brand.modules/brand-cohort → brand-cohort}/index.d.ts +0 -0
  30. /package/{brand.modules/brand-cohort → brand-cohort}/index.js +0 -0
  31. /package/{brand.modules/brand-inspection → brand-inspection}/index.d.ts +0 -0
  32. /package/{brand.modules/brand-inspection → brand-inspection}/index.js +0 -0
@@ -0,0 +1,10 @@
1
+ import { Types } from 'mongoose';
2
+ export default interface BrandEntity {
3
+ _id: Types.ObjectId | string;
4
+ brandName: string;
5
+ engBrandName?: string;
6
+ brandBookmarkCount: number;
7
+ regDate: Date;
8
+ lastModifyDate: Date;
9
+ }
10
+ export { BrandEntity };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,38 @@
1
+ import { Types } from 'mongoose';
2
+ /** 관리자 정보 */
3
+ interface ManagerInfo {
4
+ /** 관리자 아이디 */
5
+ managerId: Types.ObjectId | string;
6
+ /** 관리자 이름 */
7
+ managerUsername: string;
8
+ }
9
+ export declare enum InspectionStatusEnum {
10
+ WAITING = "WAITING",
11
+ APPROVED = "APPROVED",
12
+ REJECTED = "REJECTED"
13
+ }
14
+ export interface RequestedStoreInfo {
15
+ storeId: Types.ObjectId | string;
16
+ regDate: Date;
17
+ }
18
+ export default interface BrandInspectionEntity {
19
+ /** @description 브랜드 검토 고유 아이디 */
20
+ _id: Types.ObjectId | string;
21
+ /** @description 브랜드 이름 */
22
+ brandName: string;
23
+ /** @description 브랜드 영문 이름 */
24
+ engBrandName?: string;
25
+ /** @description 검토 상태 */
26
+ inspectionStatus: InspectionStatusEnum;
27
+ /** @description 검토 알림 (셀러에게 보내는 문구) */
28
+ reviewNotification?: string;
29
+ /** @description 관리자 정보 */
30
+ managerInfo?: ManagerInfo;
31
+ /** @description 요청 스토어 정보 */
32
+ requestedStoreInfos: RequestedStoreInfo[];
33
+ /** @description 검토 일자 (검토 완료 시 저장) */
34
+ inspectionDate?: Date;
35
+ /** @description 저장날짜 */
36
+ regDate: Date;
37
+ }
38
+ export { BrandInspectionEntity };
@@ -3,10 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InspectionStatusEnum = void 0;
4
4
  var InspectionStatusEnum;
5
5
  (function (InspectionStatusEnum) {
6
- // 대기중
7
6
  InspectionStatusEnum["WAITING"] = "WAITING";
8
- // 승인
9
7
  InspectionStatusEnum["APPROVED"] = "APPROVED";
10
- // 반려
11
8
  InspectionStatusEnum["REJECTED"] = "REJECTED";
12
9
  })(InspectionStatusEnum || (exports.InspectionStatusEnum = InspectionStatusEnum = {}));
package/index.d.ts CHANGED
@@ -34,6 +34,9 @@ export * from './issued-receipt-coupon-log';
34
34
  export * from './device-id';
35
35
  export * from './signup-reward-popup';
36
36
  export * from './changed-purhcased-option-log';
37
+ export * from './brand';
38
+ export * from './brand-cohort';
39
+ export * from './brand-bookmark';
37
40
  export * from './exchange-rate';
38
41
  export * from './summer-black-friday.modules';
39
42
  export * from './public-holiday';
@@ -43,8 +46,4 @@ export * from './store-item-detail-banner-by-store-item';
43
46
  export * from './store-item-option-restock-log';
44
47
  export * from './daily-random-coupon';
45
48
  export * from './event-banner';
46
- export * from './brand.modules/brand-inspection';
47
- export * from './brand.modules/brand';
48
- export * from './brand.modules/brand-cohort';
49
- export * from './brand.modules/brand-bookmark';
50
- export * from './brand.modules/brand-log';
49
+ export * from './brand-inspection';
package/index.js CHANGED
@@ -50,6 +50,9 @@ __exportStar(require("./issued-receipt-coupon-log"), exports);
50
50
  __exportStar(require("./device-id"), exports);
51
51
  __exportStar(require("./signup-reward-popup"), exports);
52
52
  __exportStar(require("./changed-purhcased-option-log"), exports);
53
+ __exportStar(require("./brand"), exports);
54
+ __exportStar(require("./brand-cohort"), exports);
55
+ __exportStar(require("./brand-bookmark"), exports);
53
56
  __exportStar(require("./exchange-rate"), exports);
54
57
  __exportStar(require("./summer-black-friday.modules"), exports);
55
58
  __exportStar(require("./public-holiday"), exports);
@@ -59,8 +62,4 @@ __exportStar(require("./store-item-detail-banner-by-store-item"), exports);
59
62
  __exportStar(require("./store-item-option-restock-log"), exports);
60
63
  __exportStar(require("./daily-random-coupon"), exports);
61
64
  __exportStar(require("./event-banner"), exports);
62
- __exportStar(require("./brand.modules/brand-inspection"), exports);
63
- __exportStar(require("./brand.modules/brand"), exports);
64
- __exportStar(require("./brand.modules/brand-cohort"), exports);
65
- __exportStar(require("./brand.modules/brand-bookmark"), exports);
66
- __exportStar(require("./brand.modules/brand-log"), exports);
65
+ __exportStar(require("./brand-inspection"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.2.43-sj13",
3
+ "version": "0.2.43-sj2",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -1,31 +0,0 @@
1
- import { Types } from 'mongoose';
2
- export declare enum BrandStatusEnum {
3
- /** @description 브랜드 상태 */
4
- ACTIVE = "ACTIVE",
5
- /** @description 브랜드 상태 */
6
- INACTIVE = "INACTIVE"
7
- }
8
- export default interface BrandEntity {
9
- /** @description 브랜드 고유 아이디 */
10
- _id: Types.ObjectId | string;
11
- /** @description 브랜드 이름 */
12
- brandName: string;
13
- /** @description 브랜드 영문 이름 */
14
- engBrandName?: string;
15
- /** @description 브랜드 서브 이름 */
16
- subBrandNames?: string[];
17
- /** @description 브랜드 찜 개수 */
18
- brandBookmarkCount: number;
19
- /** @description 브랜드 로고 이미지 (희진님이 아직 안 넣을거라고 말씀함) */
20
- /** @description 저장날짜 */
21
- regDate: Date;
22
- /** @description 마지막 수정일 */
23
- lastModifyDate: Date;
24
- /** @description 브랜드 상태 */
25
- status: BrandStatusEnum;
26
- /** @description 브랜드 검토 아이디 */
27
- brandInspectionId?: Types.ObjectId | string;
28
- /** @description 브랜드 상품 개수 */
29
- brandStoreItemCount: number;
30
- }
31
- export { BrandEntity };
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BrandStatusEnum = void 0;
4
- var BrandStatusEnum;
5
- (function (BrandStatusEnum) {
6
- /** @description 브랜드 상태 */
7
- BrandStatusEnum["ACTIVE"] = "ACTIVE";
8
- /** @description 브랜드 상태 */
9
- BrandStatusEnum["INACTIVE"] = "INACTIVE";
10
- })(BrandStatusEnum || (exports.BrandStatusEnum = BrandStatusEnum = {}));
@@ -1,52 +0,0 @@
1
- import { Types } from 'mongoose';
2
- /** 관리자 정보 */
3
- interface ManagerInfo {
4
- /** 관리자 아이디 */
5
- managerId: Types.ObjectId | string;
6
- /** 관리자 이름 */
7
- managerUsername: string;
8
- }
9
- export declare enum InspectionStatusEnum {
10
- WAITING = "WAITING",
11
- APPROVED = "APPROVED",
12
- REJECTED = "REJECTED"
13
- }
14
- export interface RequestedSellerInfo {
15
- /** @description 요청한 셀러 아이디 */
16
- sellerId: Types.ObjectId | string;
17
- /** @description 요청 날짜 */
18
- regDate: Date;
19
- }
20
- export interface ApprovedBrandInfo {
21
- /** @description 승인 확정 된 브랜드 이름 */
22
- approvedBrandName: string;
23
- /** @description 승인 확정 된 영문 브랜드 이름 */
24
- approvedEngBrandName?: string;
25
- }
26
- export interface BrandInspectionResolutionInfo {
27
- /** @description 관리자 정보 */
28
- managerInfo: ManagerInfo;
29
- /** @description 검토 일자 */
30
- inspectionDate: Date;
31
- /** @description 검토 알림 (셀러에게 보내는 문구) */
32
- inspectionResultMessage?: string;
33
- /** @description 승인 시 최종 반영된 브랜드 값 */
34
- approvedBrandInfo?: ApprovedBrandInfo;
35
- }
36
- export default interface BrandInspectionEntity {
37
- /** @description 브랜드 검토 고유 아이디 */
38
- _id: Types.ObjectId | string;
39
- /** @description 브랜드 이름 (셀러 요청 값) */
40
- requestedBrandName: string;
41
- /** @description 브랜드 영문 이름 (셀러 요청 값)*/
42
- requestedEngBrandName?: string;
43
- /** @description 검토 상태 */
44
- inspectionStatus: InspectionStatusEnum;
45
- /** @description 요청 셀러 정보 */
46
- requestedSellerInfos: RequestedSellerInfo[];
47
- /** @description 승인/반려 최종 결과 */
48
- resolutionInfo?: BrandInspectionResolutionInfo;
49
- /** @description 저장날짜 */
50
- regDate: Date;
51
- }
52
- export { BrandInspectionEntity };
@@ -1,49 +0,0 @@
1
- import { Types } from 'mongoose';
2
- import { BrandEntity } from '../brand';
3
- export declare enum BrandLogTypeEnum {
4
- CREATE_BY_ADMIN = "CREATE_BY_ADMIN",
5
- BRAND_NAME_EDIT_BY_ADMIN = "BRAND_NAME_EDIT_BY_ADMIN",
6
- BRAND_ENG_NAME_EDIT_BY_ADMIN = "BRAND_ENG_NAME_EDIT_BY_ADMIN",
7
- HARD_DELETE_BY_ADMIN = "HARD_DELETE_BY_ADMIN",
8
- SELLER_BRAND_INSPECTION_REQUEST_CREATED_BRAND_AUTO_CREATED = "SELLER_BRAND_INSPECTION_REQUEST_CREATED_BRAND_AUTO_CREATED",
9
- INSPECTION_APPROVED = "INSPECTION_APPROVED",
10
- INSPECTION_REJECTED_BRAND_DELETED = "INSPECTION_REJECTED_BRAND_DELETED"
11
- }
12
- /**
13
- * @author sj
14
- * @description 브랜드 로그 */
15
- export default interface BrandLogEntity {
16
- _id: Types.ObjectId | string;
17
- /** 브랜드 아이디 */
18
- brandId: string | Types.ObjectId;
19
- /** 로그 타입 */
20
- logType: BrandLogTypeEnum;
21
- /** 등록 일자 */
22
- regDate: Date;
23
- /**
24
- * 관리자 아이디
25
- * 데이터 존재:
26
- * CREATE_BY_ADMIN
27
- * BRAND_NAME_EDIT_BY_ADMIN
28
- * BRAND_ENG_NAME_EDIT_BY_ADMIN
29
- * HARD_DELETE_BY_ADMIN
30
- * INSPECTION_APPROVED
31
- * INSPECTION_REJECTED_BRAND_DELETED
32
- * */
33
- manageUserId?: string | Types.ObjectId;
34
- /**
35
- * 수정 전 브랜드 정보
36
- * 데이터 존재:
37
- * BRAND_NAME_EDIT_BY_ADMIN
38
- * BRAND_ENG_NAME_EDIT_BY_ADMIN
39
- * HARD_DELETE_BY_ADMIN
40
- * */
41
- beforeBrandInfo?: BrandEntity;
42
- /**
43
- * 유저 아이디
44
- * 데이터 존재:
45
- * CREATE_INSPECTION_REQUEST_SELLER_BRAND_CREATED
46
- * */
47
- userId?: string | Types.ObjectId;
48
- }
49
- export { BrandLogEntity };
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BrandLogTypeEnum = void 0;
4
- var BrandLogTypeEnum;
5
- (function (BrandLogTypeEnum) {
6
- BrandLogTypeEnum["CREATE_BY_ADMIN"] = "CREATE_BY_ADMIN";
7
- BrandLogTypeEnum["BRAND_NAME_EDIT_BY_ADMIN"] = "BRAND_NAME_EDIT_BY_ADMIN";
8
- BrandLogTypeEnum["BRAND_ENG_NAME_EDIT_BY_ADMIN"] = "BRAND_ENG_NAME_EDIT_BY_ADMIN";
9
- BrandLogTypeEnum["HARD_DELETE_BY_ADMIN"] = "HARD_DELETE_BY_ADMIN";
10
- // 셀러 브랜드 검토 요청 -브랜드 생성됨-
11
- BrandLogTypeEnum["SELLER_BRAND_INSPECTION_REQUEST_CREATED_BRAND_AUTO_CREATED"] = "SELLER_BRAND_INSPECTION_REQUEST_CREATED_BRAND_AUTO_CREATED";
12
- // 검토 승인 - 브랜드 status 변경됨.
13
- BrandLogTypeEnum["INSPECTION_APPROVED"] = "INSPECTION_APPROVED";
14
- // 검토 반려 - 브랜드 삭제 처리됨.
15
- BrandLogTypeEnum["INSPECTION_REJECTED_BRAND_DELETED"] = "INSPECTION_REJECTED_BRAND_DELETED";
16
- })(BrandLogTypeEnum || (exports.BrandLogTypeEnum = BrandLogTypeEnum = {}));
@@ -1 +0,0 @@
1
- export * from './brand-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("./brand-log.entity"), exports);
@@ -1,5 +0,0 @@
1
- export * from './brand';
2
- export * from './brand-inspection';
3
- export * from './brand-bookmark';
4
- export * from './brand-cohort';
5
- export * from './brand-log';
@@ -1,21 +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("./brand"), exports);
18
- __exportStar(require("./brand-inspection"), exports);
19
- __exportStar(require("./brand-bookmark"), exports);
20
- __exportStar(require("./brand-cohort"), exports);
21
- __exportStar(require("./brand-log"), exports);
File without changes
File without changes