@yolo-croket-dev/entity-v2 0.2.43-sj1 → 0.2.43-sj10
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/brand.modules/brand/brand.entity.d.ts +31 -0
- package/brand.modules/brand/brand.entity.js +10 -0
- package/brand.modules/brand-inspection/brand-inspection.entity.d.ts +52 -0
- package/{brand-inspection/brand-indpection.entity.js → brand.modules/brand-inspection/brand-inspection.entity.js} +3 -0
- package/brand.modules/brand-inspection/index.d.ts +1 -0
- package/{brand-inspection → brand.modules/brand-inspection}/index.js +1 -1
- package/brand.modules/brand-log/brand-log.entity.d.ts +46 -0
- package/brand.modules/brand-log/brand-log.entity.js +14 -0
- package/brand.modules/brand-log/index.d.ts +1 -0
- package/brand.modules/brand-log/index.js +17 -0
- package/brand.modules/index.d.ts +5 -0
- package/brand.modules/index.js +21 -0
- package/index.d.ts +5 -4
- package/index.js +5 -4
- package/package.json +1 -1
- package/brand/brand.entity.d.ts +0 -10
- package/brand/brand.entity.js +0 -2
- package/brand-inspection/brand-indpection.entity.d.ts +0 -38
- package/brand-inspection/index.d.ts +0 -1
- /package/{brand → brand.modules/brand}/brand-for-buyer.entity.d.ts +0 -0
- /package/{brand → brand.modules/brand}/brand-for-buyer.entity.js +0 -0
- /package/{brand → brand.modules/brand}/index.d.ts +0 -0
- /package/{brand → brand.modules/brand}/index.js +0 -0
- /package/{brand-bookmark → brand.modules/brand-bookmark}/brand-bookmark.entity.d.ts +0 -0
- /package/{brand-bookmark → brand.modules/brand-bookmark}/brand-bookmark.entity.js +0 -0
- /package/{brand-bookmark → brand.modules/brand-bookmark}/index.d.ts +0 -0
- /package/{brand-bookmark → brand.modules/brand-bookmark}/index.js +0 -0
- /package/{brand-cohort → brand.modules/brand-cohort}/brand-cohort-for-admin.entity.d.ts +0 -0
- /package/{brand-cohort → brand.modules/brand-cohort}/brand-cohort-for-admin.entity.js +0 -0
- /package/{brand-cohort → brand.modules/brand-cohort}/brand-cohort.entity.d.ts +0 -0
- /package/{brand-cohort → brand.modules/brand-cohort}/brand-cohort.entity.js +0 -0
- /package/{brand-cohort → brand.modules/brand-cohort}/index.d.ts +0 -0
- /package/{brand-cohort → brand.modules/brand-cohort}/index.js +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
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 };
|
|
@@ -0,0 +1,10 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,52 @@
|
|
|
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 };
|
|
@@ -3,7 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.InspectionStatusEnum = void 0;
|
|
4
4
|
var InspectionStatusEnum;
|
|
5
5
|
(function (InspectionStatusEnum) {
|
|
6
|
+
// 대기중
|
|
6
7
|
InspectionStatusEnum["WAITING"] = "WAITING";
|
|
8
|
+
// 승인
|
|
7
9
|
InspectionStatusEnum["APPROVED"] = "APPROVED";
|
|
10
|
+
// 반려
|
|
8
11
|
InspectionStatusEnum["REJECTED"] = "REJECTED";
|
|
9
12
|
})(InspectionStatusEnum || (exports.InspectionStatusEnum = InspectionStatusEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './brand-inspection.entity';
|
|
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./brand-
|
|
17
|
+
__exportStar(require("./brand-inspection.entity"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { BrandEntity } from '../brand';
|
|
3
|
+
export declare enum BrandLogTypeEnum {
|
|
4
|
+
CREATE_BY_ADMIN = "CREATE_BY_ADMIN",
|
|
5
|
+
EDIT_BY_ADMIN = "EDIT_BY_ADMIN",
|
|
6
|
+
DELETE_BY_ADMIN = "DELETE_BY_ADMIN",
|
|
7
|
+
CREATE_INSPECTION_REQUEST_SELLER = "CREATE_INSPECTION_REQUEST_SELLER",
|
|
8
|
+
INSPECTION_APPROVED = "INSPECTION_APPROVED",
|
|
9
|
+
INSPECTION_REJECTED = "INSPECTION_REJECTED"
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* @author sj
|
|
13
|
+
* @description 브랜드 로그 */
|
|
14
|
+
export default interface BrandLogEntity {
|
|
15
|
+
_id: Types.ObjectId | string;
|
|
16
|
+
/** 브랜드 아이디 */
|
|
17
|
+
brandId: string | Types.ObjectId;
|
|
18
|
+
/** 로그 타입 */
|
|
19
|
+
logType: BrandLogTypeEnum;
|
|
20
|
+
/** 등록 일자 */
|
|
21
|
+
regDate: Date;
|
|
22
|
+
/**
|
|
23
|
+
* 관리자 아이디
|
|
24
|
+
* 데이터 존재:
|
|
25
|
+
* CREATE_BY_ADMIN
|
|
26
|
+
* EDIT_BY_ADMIN
|
|
27
|
+
* DELETE_BY_ADMIN
|
|
28
|
+
* INSPECTION_APPROVED
|
|
29
|
+
* INSPECTION_REJECTED
|
|
30
|
+
* */
|
|
31
|
+
manageUserId?: string | Types.ObjectId;
|
|
32
|
+
/**
|
|
33
|
+
* 수정 전 브랜드 정보
|
|
34
|
+
* 데이터 존재:
|
|
35
|
+
* EDIT_BY_ADMIN
|
|
36
|
+
* DELETE_BY_ADMIN
|
|
37
|
+
* */
|
|
38
|
+
beforeBrandInfo?: BrandEntity;
|
|
39
|
+
/**
|
|
40
|
+
* 유저 아이디
|
|
41
|
+
* 데이터 존재:
|
|
42
|
+
* CREATE_INSPECTION_REQUEST_SELLER
|
|
43
|
+
* */
|
|
44
|
+
userId?: string | Types.ObjectId;
|
|
45
|
+
}
|
|
46
|
+
export { BrandLogEntity };
|
|
@@ -0,0 +1,14 @@
|
|
|
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["EDIT_BY_ADMIN"] = "EDIT_BY_ADMIN";
|
|
8
|
+
BrandLogTypeEnum["DELETE_BY_ADMIN"] = "DELETE_BY_ADMIN";
|
|
9
|
+
BrandLogTypeEnum["CREATE_INSPECTION_REQUEST_SELLER"] = "CREATE_INSPECTION_REQUEST_SELLER";
|
|
10
|
+
// 검토 승인 - 브랜드 status 변경됨.
|
|
11
|
+
BrandLogTypeEnum["INSPECTION_APPROVED"] = "INSPECTION_APPROVED";
|
|
12
|
+
// 검토 반려 - 브랜드 삭제 처리됨.
|
|
13
|
+
BrandLogTypeEnum["INSPECTION_REJECTED"] = "INSPECTION_REJECTED";
|
|
14
|
+
})(BrandLogTypeEnum || (exports.BrandLogTypeEnum = BrandLogTypeEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './brand-log.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("./brand-log.entity"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
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);
|
package/index.d.ts
CHANGED
|
@@ -34,9 +34,6 @@ 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';
|
|
40
37
|
export * from './exchange-rate';
|
|
41
38
|
export * from './summer-black-friday.modules';
|
|
42
39
|
export * from './public-holiday';
|
|
@@ -46,4 +43,8 @@ export * from './store-item-detail-banner-by-store-item';
|
|
|
46
43
|
export * from './store-item-option-restock-log';
|
|
47
44
|
export * from './daily-random-coupon';
|
|
48
45
|
export * from './event-banner';
|
|
49
|
-
export * from './brand-inspection';
|
|
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';
|
package/index.js
CHANGED
|
@@ -50,9 +50,6 @@ __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);
|
|
56
53
|
__exportStar(require("./exchange-rate"), exports);
|
|
57
54
|
__exportStar(require("./summer-black-friday.modules"), exports);
|
|
58
55
|
__exportStar(require("./public-holiday"), exports);
|
|
@@ -62,4 +59,8 @@ __exportStar(require("./store-item-detail-banner-by-store-item"), exports);
|
|
|
62
59
|
__exportStar(require("./store-item-option-restock-log"), exports);
|
|
63
60
|
__exportStar(require("./daily-random-coupon"), exports);
|
|
64
61
|
__exportStar(require("./event-banner"), exports);
|
|
65
|
-
__exportStar(require("./brand-inspection"), 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);
|
package/package.json
CHANGED
package/brand/brand.entity.d.ts
DELETED
package/brand/brand.entity.js
DELETED
|
@@ -1,38 +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 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 };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './brand-indpection.entity';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|