@yolo-croket-dev/entity-v2 0.1.15-jun.0 → 0.1.15-jun.2
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.
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
export declare enum ApiKeyLogTypeEnum {
|
|
3
|
+
시크릿키_발급 = "secret_key_issue",
|
|
4
|
+
시크릿키_정지 = "secret_key_pause",
|
|
5
|
+
사방넷_상품_등록 = "sabang_item_reg",
|
|
6
|
+
사방넷_상품_수정 = "sabang_item_edit",
|
|
7
|
+
사방넷_상품_상세_조회 = "sabang_item_get_info"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* @author jun
|
|
11
|
+
* @description apiKey, Secret 관련 사용 로그 입니다.
|
|
12
|
+
*/
|
|
13
|
+
export interface ApiKeyLog {
|
|
14
|
+
_id: Types.ObjectId;
|
|
15
|
+
logType: ApiKeyLogTypeEnum;
|
|
16
|
+
/** 해당 유저 아이디 */
|
|
17
|
+
userId: Types.ObjectId | string;
|
|
18
|
+
/** 공개된 키 아이디 */
|
|
19
|
+
apiKeyId: string;
|
|
20
|
+
/** 시크릿 키 */
|
|
21
|
+
apiSecretKey: string;
|
|
22
|
+
/** 등록일 */
|
|
23
|
+
regDate: Date;
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiKeyLogTypeEnum = void 0;
|
|
4
|
+
var ApiKeyLogTypeEnum;
|
|
5
|
+
(function (ApiKeyLogTypeEnum) {
|
|
6
|
+
ApiKeyLogTypeEnum["\uC2DC\uD06C\uB9BF\uD0A4_\uBC1C\uAE09"] = "secret_key_issue";
|
|
7
|
+
ApiKeyLogTypeEnum["\uC2DC\uD06C\uB9BF\uD0A4_\uC815\uC9C0"] = "secret_key_pause";
|
|
8
|
+
ApiKeyLogTypeEnum["\uC0AC\uBC29\uB137_\uC0C1\uD488_\uB4F1\uB85D"] = "sabang_item_reg";
|
|
9
|
+
ApiKeyLogTypeEnum["\uC0AC\uBC29\uB137_\uC0C1\uD488_\uC218\uC815"] = "sabang_item_edit";
|
|
10
|
+
ApiKeyLogTypeEnum["\uC0AC\uBC29\uB137_\uC0C1\uD488_\uC0C1\uC138_\uC870\uD68C"] = "sabang_item_get_info";
|
|
11
|
+
})(ApiKeyLogTypeEnum || (exports.ApiKeyLogTypeEnum = ApiKeyLogTypeEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api-key-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-key-log.entity"), exports);
|