@yolo-croket-dev/entity-v2 0.1.15-jun.6 → 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.
@@ -9,6 +9,12 @@ 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 값 */
@@ -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.6",
3
+ "version": "0.1.15-jun.7",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",