@yolo-croket-dev/entity-v2 0.2.48 → 0.2.49-jun.0
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-log/brand-log.entity.d.ts +10 -7
- package/brand.modules/brand-log/brand-log.entity.js +6 -2
- package/item-review-integration/index.d.ts +1 -0
- package/item-review-integration/index.js +17 -0
- package/item-review-integration/item-review-integration.entity.d.ts +15 -0
- package/item-review-integration/item-review-integration.entity.js +2 -0
- package/item-review-integration-log/index.d.ts +1 -0
- package/item-review-integration-log/index.js +17 -0
- package/item-review-integration-log/item-review-integration-log.entity.d.ts +21 -0
- package/item-review-integration-log/item-review-integration-log.entity.js +9 -0
- package/package.json +2 -2
|
@@ -2,12 +2,13 @@ import { Types } from 'mongoose';
|
|
|
2
2
|
import { BrandEntity } from '../brand';
|
|
3
3
|
export declare enum BrandLogTypeEnum {
|
|
4
4
|
CREATE_BY_ADMIN = "CREATE_BY_ADMIN",
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
BRAND_NAME_UPDATED_BY_ADMIN = "BRAND_NAME_UPDATED_BY_ADMIN",
|
|
6
|
+
BRAND_ENG_NAME_UPDATED_BY_ADMIN = "BRAND_ENG_NAME_UPDATED_BY_ADMIN",
|
|
7
7
|
HARD_DELETE_BY_ADMIN = "HARD_DELETE_BY_ADMIN",
|
|
8
8
|
BRAND_CREATED_FROM_SELLER_INSPECTION_REQUEST = "BRAND_CREATED_FROM_SELLER_INSPECTION_REQUEST",
|
|
9
9
|
INSPECTION_APPROVED = "INSPECTION_APPROVED",
|
|
10
|
-
INSPECTION_REJECTED_BRAND_DELETED = "INSPECTION_REJECTED_BRAND_DELETED"
|
|
10
|
+
INSPECTION_REJECTED_BRAND_DELETED = "INSPECTION_REJECTED_BRAND_DELETED",
|
|
11
|
+
BRAND_SUB_NAMES_UPDATED_BY_ADMIN = "BRAND_SUB_NAMES_UPDATED_BY_ADMIN"
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* @author sj
|
|
@@ -24,19 +25,21 @@ export default interface BrandLogEntity {
|
|
|
24
25
|
* 관리자 아이디
|
|
25
26
|
* 데이터 존재:
|
|
26
27
|
* CREATE_BY_ADMIN
|
|
27
|
-
*
|
|
28
|
-
*
|
|
28
|
+
* BRAND_NAME_UPDATED_BY_ADMIN
|
|
29
|
+
* BRAND_ENG_NAME_UPDATED_BY_ADMIN
|
|
29
30
|
* HARD_DELETE_BY_ADMIN
|
|
30
31
|
* INSPECTION_APPROVED
|
|
31
32
|
* INSPECTION_REJECTED_BRAND_DELETED
|
|
33
|
+
* UPDATE_SUB_BRAND_NAMES_BY_ADMIN
|
|
32
34
|
* */
|
|
33
35
|
manageUserId?: string | Types.ObjectId;
|
|
34
36
|
/**
|
|
35
37
|
* 수정 전 브랜드 정보
|
|
36
38
|
* 데이터 존재:
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
+
* BRAND_NAME_UPDATED_BY_ADMIN
|
|
40
|
+
* BRAND_ENG_NAME_UPDATED_BY_ADMIN
|
|
39
41
|
* HARD_DELETE_BY_ADMIN
|
|
42
|
+
* UPDATE_SUB_BRAND_NAMES_BY_ADMIN
|
|
40
43
|
* */
|
|
41
44
|
beforeBrandInfo?: BrandEntity;
|
|
42
45
|
/**
|
|
@@ -4,8 +4,10 @@ exports.BrandLogTypeEnum = void 0;
|
|
|
4
4
|
var BrandLogTypeEnum;
|
|
5
5
|
(function (BrandLogTypeEnum) {
|
|
6
6
|
BrandLogTypeEnum["CREATE_BY_ADMIN"] = "CREATE_BY_ADMIN";
|
|
7
|
-
|
|
8
|
-
BrandLogTypeEnum["
|
|
7
|
+
// 관리자 브랜드 명 수정
|
|
8
|
+
BrandLogTypeEnum["BRAND_NAME_UPDATED_BY_ADMIN"] = "BRAND_NAME_UPDATED_BY_ADMIN";
|
|
9
|
+
// 관리자 브랜드 영문명 수정
|
|
10
|
+
BrandLogTypeEnum["BRAND_ENG_NAME_UPDATED_BY_ADMIN"] = "BRAND_ENG_NAME_UPDATED_BY_ADMIN";
|
|
9
11
|
BrandLogTypeEnum["HARD_DELETE_BY_ADMIN"] = "HARD_DELETE_BY_ADMIN";
|
|
10
12
|
// 셀러 브랜드 검토 요청 -브랜드 생성됨-
|
|
11
13
|
BrandLogTypeEnum["BRAND_CREATED_FROM_SELLER_INSPECTION_REQUEST"] = "BRAND_CREATED_FROM_SELLER_INSPECTION_REQUEST";
|
|
@@ -13,4 +15,6 @@ var BrandLogTypeEnum;
|
|
|
13
15
|
BrandLogTypeEnum["INSPECTION_APPROVED"] = "INSPECTION_APPROVED";
|
|
14
16
|
// 검토 반려 - 브랜드 삭제 처리됨.
|
|
15
17
|
BrandLogTypeEnum["INSPECTION_REJECTED_BRAND_DELETED"] = "INSPECTION_REJECTED_BRAND_DELETED";
|
|
18
|
+
// 관리자 브랜드 유의어 수정
|
|
19
|
+
BrandLogTypeEnum["BRAND_SUB_NAMES_UPDATED_BY_ADMIN"] = "BRAND_SUB_NAMES_UPDATED_BY_ADMIN";
|
|
16
20
|
})(BrandLogTypeEnum || (exports.BrandLogTypeEnum = BrandLogTypeEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './item-review-integration.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("./item-review-integration.entity"), exports);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 상품 리뷰 통합 엔티티
|
|
5
|
+
*/
|
|
6
|
+
export default interface ItemReviewIntegrationEntity {
|
|
7
|
+
_id: string | Types.ObjectId;
|
|
8
|
+
/** 통합된 상품 아이디들 (unique key) */
|
|
9
|
+
itemIds: string[] | Types.ObjectId[];
|
|
10
|
+
/** 마지막 수정일 */
|
|
11
|
+
lastModifyDate: Date;
|
|
12
|
+
/** 등록일 */
|
|
13
|
+
regDate: Date;
|
|
14
|
+
}
|
|
15
|
+
export { ItemReviewIntegrationEntity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './item-review-integration-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("./item-review-integration-log.entity"), exports);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { ItemReviewIntegrationEntity } from '../item-review-integration/item-review-integration.entity';
|
|
3
|
+
export declare enum ItemReviewIntegrationLogTypeEnum {
|
|
4
|
+
CREATE = "CREATE",
|
|
5
|
+
UPDATE = "UPDATE",
|
|
6
|
+
DELETE = "DELETE"
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @author jun
|
|
10
|
+
* @description 상품 리뷰 통합 로그 엔티티
|
|
11
|
+
*/
|
|
12
|
+
export default interface ItemReviewIntegrationLogEntity {
|
|
13
|
+
_id: string | Types.ObjectId;
|
|
14
|
+
type: ItemReviewIntegrationLogTypeEnum;
|
|
15
|
+
itemReviewIntegrationId: string | Types.ObjectId;
|
|
16
|
+
pastItemReviewIntegrationInfo?: ItemReviewIntegrationEntity;
|
|
17
|
+
manageUserId: string | Types.ObjectId;
|
|
18
|
+
/** 등록일 */
|
|
19
|
+
regDate: Date;
|
|
20
|
+
}
|
|
21
|
+
export { ItemReviewIntegrationLogEntity };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ItemReviewIntegrationLogTypeEnum = void 0;
|
|
4
|
+
var ItemReviewIntegrationLogTypeEnum;
|
|
5
|
+
(function (ItemReviewIntegrationLogTypeEnum) {
|
|
6
|
+
ItemReviewIntegrationLogTypeEnum["CREATE"] = "CREATE";
|
|
7
|
+
ItemReviewIntegrationLogTypeEnum["UPDATE"] = "UPDATE";
|
|
8
|
+
ItemReviewIntegrationLogTypeEnum["DELETE"] = "DELETE";
|
|
9
|
+
})(ItemReviewIntegrationLogTypeEnum || (exports.ItemReviewIntegrationLogTypeEnum = ItemReviewIntegrationLogTypeEnum = {}));
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yolo-croket-dev/entity-v2",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.49-jun.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"author": "Yolo Co., Ltd.",
|
|
6
6
|
"description": "크로켓 nest 용 entity-v3",
|
|
7
7
|
"keywords": [
|
|
8
|
-
|
|
8
|
+
"entity",
|
|
9
9
|
"croket"
|
|
10
10
|
],
|
|
11
11
|
"homepage": "https://bitbucket.org/yolo_server/croket_monorepo/src",
|