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

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.1.15-jun.8",
3
+ "version": "0.1.15",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v3",
@@ -1,17 +0,0 @@
1
- import { Types } from 'mongoose';
2
- /**
3
- * @author jun
4
- * @description 유저당 1:1로 생성되는 apiKey 입니다.
5
- * 해당 apiKeysms apiSecret과 1:N 관계로 되어있습니다.
6
- */
7
- export interface ApiKeyEntity {
8
- _id: Types.ObjectId;
9
- /** 해당 유저 아이디 */
10
- userId: Types.ObjectId | string;
11
- /** 클라이언트 아이디 */
12
- apiClientKey: string;
13
- /** 활성화 여부 */
14
- isActive: boolean;
15
- /** 등록일 */
16
- regDate: Date;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export * from './api-key.entity';
package/api-key/index.js DELETED
@@ -1,17 +0,0 @@
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);
@@ -1,26 +0,0 @@
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 ApiKeyLogEntity {
14
- _id: Types.ObjectId;
15
- /** apiKeyId 값 */
16
- apiKeyId: Types.ObjectId | string;
17
- logType: ApiKeyLogTypeEnum;
18
- /** 해당 유저 아이디 */
19
- userId: Types.ObjectId | string;
20
- /** 공개된 키 아이디 */
21
- apiClientKey: string;
22
- /** 시크릿 키 */
23
- apiSecretKey: string;
24
- /** 등록일 */
25
- regDate: Date;
26
- }
@@ -1,11 +0,0 @@
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 = {}));
@@ -1 +0,0 @@
1
- export * from './api-key-log.entity';
@@ -1,17 +0,0 @@
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);
@@ -1,40 +0,0 @@
1
- import { Types } from 'mongoose';
2
- /** api 인증 권한 */
3
- export declare enum ApiSecretAuthEnum {
4
- 사방넷_셀러 = "sabang_seller"
5
- }
6
- /**
7
- * @author jun
8
- * @description apiKey와 1:N 관계로 되어있습니다.
9
- */
10
- export interface ApiSecretEntity {
11
- _id: Types.ObjectId;
12
- /**
13
- * @description 중복 등록을 막기위한 key
14
- * @rules 활성화 되어있을시만 존재
15
- * @value ${apiClientKey}-${auth}
16
- * */
17
- uniqueKey?: string;
18
- /** 해당 유저 아이디 */
19
- userId: Types.ObjectId | string;
20
- /** apiKeyId 값 */
21
- apiKeyId: Types.ObjectId | string;
22
- /** secret key 조회 가능 여부 */
23
- isSecretKeyCanShow: boolean;
24
- /** 클라이언트 아이디 */
25
- apiClientKey: string;
26
- /** 비공개된 키 */
27
- apiSecretKey: string;
28
- /** 활성화 여부 */
29
- isActive: boolean;
30
- /** 만료일 */
31
- expiresAt: Date;
32
- /** 사용 횟수 */
33
- usageCount: number;
34
- /** 마지막 사용일 */
35
- lastUsedAt: Date;
36
- /** 인증 타입 */
37
- auth: ApiSecretAuthEnum;
38
- /** 등록일 */
39
- regDate: Date;
40
- }
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ApiSecretAuthEnum = void 0;
4
- /** api 인증 권한 */
5
- var ApiSecretAuthEnum;
6
- (function (ApiSecretAuthEnum) {
7
- ApiSecretAuthEnum["\uC0AC\uBC29\uB137_\uC140\uB7EC"] = "sabang_seller";
8
- })(ApiSecretAuthEnum || (exports.ApiSecretAuthEnum = ApiSecretAuthEnum = {}));
@@ -1 +0,0 @@
1
- export * from './api-secret.entity';
@@ -1,17 +0,0 @@
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);