@yolo-croket-dev/entity-v2 0.2.46 → 0.2.48-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.
- package/api-key.modules/api-secret-check/api-secret-check.entity.d.ts +31 -0
- package/api-key.modules/api-secret-check/api-secret-check.entity.js +16 -0
- package/api-key.modules/api-secret-check/index.d.ts +1 -0
- package/api-key.modules/api-secret-check/index.js +17 -0
- package/api-key.modules/api-secret-check-log/api-secret-check-log.entity.d.ts +32 -0
- package/api-key.modules/api-secret-check-log/api-secret-check-log.entity.js +15 -0
- package/api-key.modules/api-secret-check-log/index.d.ts +1 -0
- package/api-key.modules/api-secret-check-log/index.js +17 -0
- package/api-key.modules/index.d.ts +4 -0
- package/api-key.modules/index.js +20 -0
- package/brand.modules/brand-log/brand-log.entity.d.ts +10 -7
- package/brand.modules/brand-log/brand-log.entity.js +6 -2
- package/package.json +3 -3
- /package/{api-key → api-key.modules/api-key}/api-key.entity.d.ts +0 -0
- /package/{api-key → api-key.modules/api-key}/api-key.entity.js +0 -0
- /package/{api-key → api-key.modules/api-key}/index.d.ts +0 -0
- /package/{api-key → api-key.modules/api-key}/index.js +0 -0
- /package/{api-key-log → api-key.modules/api-key-log}/api-key-log.entity.d.ts +0 -0
- /package/{api-key-log → api-key.modules/api-key-log}/api-key-log.entity.js +0 -0
- /package/{api-key-log → api-key.modules/api-key-log}/index.d.ts +0 -0
- /package/{api-key-log → api-key.modules/api-key-log}/index.js +0 -0
- /package/{api-secret → api-key.modules/api-secret}/api-secret.entity.d.ts +0 -0
- /package/{api-secret → api-key.modules/api-secret}/api-secret.entity.js +0 -0
- /package/{api-secret → api-key.modules/api-secret}/index.d.ts +0 -0
- /package/{api-secret → api-key.modules/api-secret}/index.js +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
/** apiSecret 검톤 타입 */
|
|
3
|
+
export declare enum ApiSecretCheckTypeEnum {
|
|
4
|
+
사방넷 = "sabang",
|
|
5
|
+
스토어봇 = "store_bot"
|
|
6
|
+
}
|
|
7
|
+
/** apiSecret 검톤 처리 상태 */
|
|
8
|
+
export declare enum ApiSecretCheckProcessEnum {
|
|
9
|
+
신청 = "apply",
|
|
10
|
+
승인 = "approve",
|
|
11
|
+
거절 = "reject"
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* @author jun
|
|
15
|
+
* @description apiSecret 검톤 엔티티
|
|
16
|
+
*/
|
|
17
|
+
export interface ApiSecretCheckEntity {
|
|
18
|
+
_id: Types.ObjectId;
|
|
19
|
+
/** 해당 유저 아이디 */
|
|
20
|
+
userId: Types.ObjectId | string;
|
|
21
|
+
/** 타입 */
|
|
22
|
+
type: ApiSecretCheckTypeEnum;
|
|
23
|
+
/** 처리 상태 */
|
|
24
|
+
process: ApiSecretCheckProcessEnum;
|
|
25
|
+
/** 메모 */
|
|
26
|
+
memo: string;
|
|
27
|
+
/** 마지막 수정일 */
|
|
28
|
+
lastModifyDate: Date;
|
|
29
|
+
/** 등록일 */
|
|
30
|
+
regDate: Date;
|
|
31
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiSecretCheckProcessEnum = exports.ApiSecretCheckTypeEnum = void 0;
|
|
4
|
+
/** apiSecret 검톤 타입 */
|
|
5
|
+
var ApiSecretCheckTypeEnum;
|
|
6
|
+
(function (ApiSecretCheckTypeEnum) {
|
|
7
|
+
ApiSecretCheckTypeEnum["\uC0AC\uBC29\uB137"] = "sabang";
|
|
8
|
+
ApiSecretCheckTypeEnum["\uC2A4\uD1A0\uC5B4\uBD07"] = "store_bot";
|
|
9
|
+
})(ApiSecretCheckTypeEnum || (exports.ApiSecretCheckTypeEnum = ApiSecretCheckTypeEnum = {}));
|
|
10
|
+
/** apiSecret 검톤 처리 상태 */
|
|
11
|
+
var ApiSecretCheckProcessEnum;
|
|
12
|
+
(function (ApiSecretCheckProcessEnum) {
|
|
13
|
+
ApiSecretCheckProcessEnum["\uC2E0\uCCAD"] = "apply";
|
|
14
|
+
ApiSecretCheckProcessEnum["\uC2B9\uC778"] = "approve";
|
|
15
|
+
ApiSecretCheckProcessEnum["\uAC70\uC808"] = "reject";
|
|
16
|
+
})(ApiSecretCheckProcessEnum || (exports.ApiSecretCheckProcessEnum = ApiSecretCheckProcessEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api-secret-check.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("./api-secret-check.entity"), exports);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
import { ApiSecretCheckEntity } from '../api-secret-check/api-secret-check.entity';
|
|
3
|
+
/** apiSecret 검토 로그 타입 */
|
|
4
|
+
export declare enum ApiSecretCheckLogTypeEnum {
|
|
5
|
+
/** reg_by_user */
|
|
6
|
+
reg_by_user = "reg_by_user",
|
|
7
|
+
/** edit_memo_by_manage */
|
|
8
|
+
edit_memo_by_manage = "edit_memo_by_manage",
|
|
9
|
+
/** approve_by_manage */
|
|
10
|
+
approve_by_manage = "approve_by_manage",
|
|
11
|
+
/** reject_by_manage */
|
|
12
|
+
reject_by_manage = "reject_by_manage"
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* @author jun
|
|
16
|
+
* @description apiSecret 검토 로그 엔티티
|
|
17
|
+
*/
|
|
18
|
+
export interface ApiSecretCheckLogEntity {
|
|
19
|
+
_id: Types.ObjectId;
|
|
20
|
+
/** 해당 유저 아이디 */
|
|
21
|
+
logType: ApiSecretCheckLogTypeEnum;
|
|
22
|
+
/** 해당 apiSecret 검토 아이디 */
|
|
23
|
+
apiSecretCheckId: Types.ObjectId | string;
|
|
24
|
+
/**
|
|
25
|
+
* 당시 apiSecret 검토 정보
|
|
26
|
+
*
|
|
27
|
+
* */
|
|
28
|
+
pastApiSecretCheck?: ApiSecretCheckEntity;
|
|
29
|
+
manageUserId?: Types.ObjectId | string;
|
|
30
|
+
/** 등록일 */
|
|
31
|
+
regDate: Date;
|
|
32
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiSecretCheckLogTypeEnum = void 0;
|
|
4
|
+
/** apiSecret 검토 로그 타입 */
|
|
5
|
+
var ApiSecretCheckLogTypeEnum;
|
|
6
|
+
(function (ApiSecretCheckLogTypeEnum) {
|
|
7
|
+
/** reg_by_user */
|
|
8
|
+
ApiSecretCheckLogTypeEnum["reg_by_user"] = "reg_by_user";
|
|
9
|
+
/** edit_memo_by_manage */
|
|
10
|
+
ApiSecretCheckLogTypeEnum["edit_memo_by_manage"] = "edit_memo_by_manage";
|
|
11
|
+
/** approve_by_manage */
|
|
12
|
+
ApiSecretCheckLogTypeEnum["approve_by_manage"] = "approve_by_manage";
|
|
13
|
+
/** reject_by_manage */
|
|
14
|
+
ApiSecretCheckLogTypeEnum["reject_by_manage"] = "reject_by_manage";
|
|
15
|
+
})(ApiSecretCheckLogTypeEnum || (exports.ApiSecretCheckLogTypeEnum = ApiSecretCheckLogTypeEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api-secret-check-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("./api-secret-check-log.entity"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
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("./api-key"), exports);
|
|
18
|
+
__exportStar(require("./api-secret"), exports);
|
|
19
|
+
__exportStar(require("./api-secret-check"), exports);
|
|
20
|
+
__exportStar(require("./api-secret-check-log"), exports);
|
|
@@ -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 = {}));
|
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.48-sj",
|
|
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",
|
|
@@ -23,4 +23,4 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "UNLICENSED",
|
|
25
25
|
"dependencies": {}
|
|
26
|
-
}
|
|
26
|
+
}
|
|
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
|