@yolo-croket-dev/entity-v2 0.1.14-hj-2 → 0.1.15-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/api-key/api-key.entity.d.ts +17 -0
- package/api-key/api-key.entity.js +2 -0
- package/api-key/index.d.ts +1 -0
- package/api-key/index.js +17 -0
- package/api-secret/api-secret.entity.d.ts +31 -0
- package/api-secret/api-secret.entity.js +7 -0
- package/api-secret/index.d.ts +1 -0
- package/api-secret/index.js +17 -0
- package/image-log/image-log.entity.d.ts +1 -0
- package/image-log/image-log.entity.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
/**
|
|
3
|
+
* @author jun
|
|
4
|
+
* @description 유저당 1:1로 생성되는 apiKey 입니다.
|
|
5
|
+
* 해당 apiKeysms apiSecret과 1:N 관계로 되어있습니다.
|
|
6
|
+
*/
|
|
7
|
+
export interface ApiKey {
|
|
8
|
+
_id: Types.ObjectId;
|
|
9
|
+
/** 해당 유저 아이디 */
|
|
10
|
+
userId: Types.ObjectId | string;
|
|
11
|
+
/** 공개된 키 아이디 */
|
|
12
|
+
apiKeyId: string;
|
|
13
|
+
/** 활성화 여부 */
|
|
14
|
+
isActive: boolean;
|
|
15
|
+
/** 등록일 */
|
|
16
|
+
regDate: Date;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api-key.entity';
|
package/api-key/index.js
ADDED
|
@@ -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.entity"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Types } from 'mongoose';
|
|
2
|
+
/** api 인증 권한 */
|
|
3
|
+
declare enum ApiSecretAuthEnum {
|
|
4
|
+
사방넷_셀러 = "sabang_seller"
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @author jun
|
|
8
|
+
* @description apiKey와 1:N 관계로 되어있습니다.
|
|
9
|
+
*/
|
|
10
|
+
export interface ApiSecret {
|
|
11
|
+
_id: Types.ObjectId;
|
|
12
|
+
/** 해당 유저 아이디 */
|
|
13
|
+
userId: Types.ObjectId | string;
|
|
14
|
+
/** 공개된 키 아이디 */
|
|
15
|
+
apiKeyId: string;
|
|
16
|
+
/** 비공개된 키 */
|
|
17
|
+
apiSecretKey: string;
|
|
18
|
+
/** 활성화 여부 */
|
|
19
|
+
isActive: boolean;
|
|
20
|
+
/** 만료일 */
|
|
21
|
+
expiresAt: Date;
|
|
22
|
+
/** 사용 횟수 */
|
|
23
|
+
usageCount: number;
|
|
24
|
+
/** 마지막 사용일 */
|
|
25
|
+
lastUsedAt: Date;
|
|
26
|
+
/** 인증 타입 */
|
|
27
|
+
auths: ApiSecretAuthEnum[] | string[];
|
|
28
|
+
/** 등록일 */
|
|
29
|
+
regDate: Date;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/** api 인증 권한 */
|
|
4
|
+
var ApiSecretAuthEnum;
|
|
5
|
+
(function (ApiSecretAuthEnum) {
|
|
6
|
+
ApiSecretAuthEnum["\uC0AC\uBC29\uB137_\uC140\uB7EC"] = "sabang_seller";
|
|
7
|
+
})(ApiSecretAuthEnum || (ApiSecretAuthEnum = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './api-secret.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.entity"), exports);
|
|
@@ -2,6 +2,7 @@ import { Types } from 'mongoose';
|
|
|
2
2
|
export declare enum ImageUsageTypeEnum {
|
|
3
3
|
'item_thumbnail' = "item_thumbnail",
|
|
4
4
|
'item_contents' = "item_contents",
|
|
5
|
+
'item_contents_from_html' = "item_contents_from_html",
|
|
5
6
|
'manage_banner' = "manage_banner",
|
|
6
7
|
'manage_etc' = "manage_etc",
|
|
7
8
|
'환불_증명_사진' = "refund_proof_photo",
|
|
@@ -5,6 +5,7 @@ var ImageUsageTypeEnum;
|
|
|
5
5
|
(function (ImageUsageTypeEnum) {
|
|
6
6
|
ImageUsageTypeEnum["item_thumbnail"] = "item_thumbnail";
|
|
7
7
|
ImageUsageTypeEnum["item_contents"] = "item_contents";
|
|
8
|
+
ImageUsageTypeEnum["item_contents_from_html"] = "item_contents_from_html";
|
|
8
9
|
ImageUsageTypeEnum["manage_banner"] = "manage_banner";
|
|
9
10
|
ImageUsageTypeEnum["manage_etc"] = "manage_etc";
|
|
10
11
|
ImageUsageTypeEnum["\uD658\uBD88_\uC99D\uBA85_\uC0AC\uC9C4"] = "refund_proof_photo";
|