@yolo-croket-dev/entity-v2 0.1.15-jun.5 → 0.1.15-jun.7

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.
@@ -8,8 +8,8 @@ export interface ApiKeyEntity {
8
8
  _id: Types.ObjectId;
9
9
  /** 해당 유저 아이디 */
10
10
  userId: Types.ObjectId | string;
11
- /** 공개된 키 아이디 */
12
- apiKeyPublicId: string;
11
+ /** 클라이언트 아이디 */
12
+ apiClientKey: string;
13
13
  /** 활성화 여부 */
14
14
  isActive: boolean;
15
15
  /** 등록일 */
@@ -18,7 +18,7 @@ export interface ApiKeyLogEntity {
18
18
  /** 해당 유저 아이디 */
19
19
  userId: Types.ObjectId | string;
20
20
  /** 공개된 키 아이디 */
21
- apiKeyPublicId: string;
21
+ apiClientKey: string;
22
22
  /** 시크릿 키 */
23
23
  apiSecretKey: string;
24
24
  /** 등록일 */
@@ -9,12 +9,18 @@ export declare enum ApiSecretAuthEnum {
9
9
  */
10
10
  export interface ApiSecretEntity {
11
11
  _id: Types.ObjectId;
12
+ /**
13
+ * @description 중복 등록을 막기위한 key
14
+ * @rules 활성화 되어있을시만 존재
15
+ * @value ${apiClientKey}-${auth}
16
+ * */
17
+ uniqueKey?: string;
12
18
  /** 해당 유저 아이디 */
13
19
  userId: Types.ObjectId | string;
14
20
  /** apiKeyId 값 */
15
21
  apiKeyId: Types.ObjectId | string;
16
- /** 공개된 키 아이디 */
17
- apiKeyPublicId: string;
22
+ /** 클라이언트 아이디 */
23
+ apiClientKey: string;
18
24
  /** 비공개된 키 */
19
25
  apiSecretKey: string;
20
26
  /** 활성화 여부 */
@@ -26,7 +32,7 @@ export interface ApiSecretEntity {
26
32
  /** 마지막 사용일 */
27
33
  lastUsedAt: Date;
28
34
  /** 인증 타입 */
29
- auths: ApiSecretAuthEnum[] | string[];
35
+ auth: ApiSecretAuthEnum;
30
36
  /** 등록일 */
31
37
  regDate: Date;
32
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.1.15-jun.5",
3
+ "version": "0.1.15-jun.7",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",