@yolo-croket-dev/entity-v2 0.0.3 → 0.0.5-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.
@@ -0,0 +1,42 @@
1
+ import { Types } from 'mongoose';
2
+ export declare enum AppBulkPushLogTypeEnum {
3
+ 검색쿼리 = "searchQuery",
4
+ 엑셀 = "excel"
5
+ }
6
+ export declare enum AppBulkPushLogProcessEnum {
7
+ 진행중 = "ing",
8
+ 완료 = "done"
9
+ }
10
+ export interface AppPushInfo {
11
+ title: string;
12
+ content: string;
13
+ requestedAppUrl: string;
14
+ appUrl: string;
15
+ }
16
+ interface ManageUserInfo {
17
+ manageUserId: string;
18
+ manageUserName: string;
19
+ }
20
+ interface SearchQueryInfo {
21
+ searchQueryId: Types.ObjectId;
22
+ pastSearchQuery: object;
23
+ }
24
+ interface ExcelInfo {
25
+ s3FileName: string;
26
+ excelFileName: string;
27
+ }
28
+ export default interface AppBulkPushLogEntity {
29
+ _id: Types.ObjectId;
30
+ type: AppBulkPushLogTypeEnum;
31
+ process: AppBulkPushLogProcessEnum;
32
+ appPushInfo: AppPushInfo;
33
+ tryNums: number;
34
+ successNums: number;
35
+ failNums: number;
36
+ clickNums: number;
37
+ manageUserInfo: ManageUserInfo;
38
+ regDate: Date;
39
+ searchQueryInfo?: SearchQueryInfo;
40
+ excelInfo?: ExcelInfo;
41
+ }
42
+ export { AppBulkPushLogEntity };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AppBulkPushLogProcessEnum = exports.AppBulkPushLogTypeEnum = void 0;
4
+ var AppBulkPushLogTypeEnum;
5
+ (function (AppBulkPushLogTypeEnum) {
6
+ AppBulkPushLogTypeEnum["\uAC80\uC0C9\uCFFC\uB9AC"] = "searchQuery";
7
+ AppBulkPushLogTypeEnum["\uC5D1\uC140"] = "excel";
8
+ })(AppBulkPushLogTypeEnum || (exports.AppBulkPushLogTypeEnum = AppBulkPushLogTypeEnum = {}));
9
+ var AppBulkPushLogProcessEnum;
10
+ (function (AppBulkPushLogProcessEnum) {
11
+ AppBulkPushLogProcessEnum["\uC9C4\uD589\uC911"] = "ing";
12
+ AppBulkPushLogProcessEnum["\uC644\uB8CC"] = "done";
13
+ })(AppBulkPushLogProcessEnum || (exports.AppBulkPushLogProcessEnum = AppBulkPushLogProcessEnum = {}));
@@ -0,0 +1 @@
1
+ export * from './app-bulk-push-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("./app-bulk-push-log.entity"), exports);
@@ -1 +1,2 @@
1
1
  export * from './lologin.entity';
2
+ export * from './lologin-for-admin.entity';
package/lologin/index.js CHANGED
@@ -15,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./lologin.entity"), exports);
18
+ __exportStar(require("./lologin-for-admin.entity"), exports);
@@ -1,5 +1,5 @@
1
1
  import { LologinEntity } from './lologin.entity';
2
- export declare type LologinForAdminEntity = Pick<LologinEntity, '_id' | 'writeName' | 'managerId' | 'expired' | 'regDate'> & {
2
+ export type LologinForAdminEntity = Pick<LologinEntity, '_id' | 'writeName' | 'managerId' | 'expired' | 'regDate'> & {
3
3
  loginUserInfo: {
4
4
  userId: string;
5
5
  username: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yolo-croket-dev/entity-v2",
3
- "version": "0.0.3",
3
+ "version": "0.0.5-jun.0",
4
4
  "main": "index.js",
5
5
  "author": "Yolo Co., Ltd.",
6
6
  "description": "크로켓 nest 용 entity-v2",
@@ -0,0 +1 @@
1
+ export * from './user.entity';
package/user/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("./user.entity"), exports);
@@ -0,0 +1,214 @@
1
+ import { Types } from 'mongoose';
2
+ export declare enum DEVICE_TYPE {
3
+ AND = "AND",
4
+ IOS = "IOS"
5
+ }
6
+ export declare enum SellerRegisterStepEnum {
7
+ /** 2. preinformation 사전정보입력 (계좌 정보 입력해야함. 수정의 경우도 있어서 스토어 데이터가 있을 수 있음 */
8
+ preinformation = "preinformation",
9
+ /** 3. applyentry 입점신청 (tally 신청서 작성이전) */
10
+ applyentry = "applyentry",
11
+ /** 3. entryfilled 입점신청 (tally 신청서 작성이후) */
12
+ entryfilled = "entryfilled",
13
+ /** 4. standby 심사대기 (신청 완료 버튼 누른후) */
14
+ standby = "standby"
15
+ }
16
+ export interface UserCertification {
17
+ /** @description 이메일 인증 */
18
+ email: boolean;
19
+ /** @description 휴대폰 인증 */
20
+ phone: boolean;
21
+ /** @description 신분증 인증 */
22
+ idcard: string;
23
+ /** @description 유저 이미지 인증 (프로필 이미지 변경 시 true) */
24
+ profile: boolean;
25
+ /** @description 계좌 인증 */
26
+ account: boolean;
27
+ }
28
+ export interface UserCreditLog {
29
+ /** @description 저장일 */
30
+ date: Date;
31
+ /** @description 설명 */
32
+ text: string;
33
+ /** @description 크레딧 양 */
34
+ amount: number;
35
+ }
36
+ export interface UserCredit {
37
+ /** @description 보유중인 크레딧 */
38
+ amount: number;
39
+ /** @description 크레딧 로그 */
40
+ log: UserCreditLog[];
41
+ }
42
+ export interface UserReceive {
43
+ /** @description 광고성 알림 동의 이메일 - 5bab80703e8e41625d1e6f06 계정만 존재하지 않음 */
44
+ email: boolean;
45
+ /** @description 광고성 알림 동의 이메일 마지막 수정일 */
46
+ lastModifyDate_email?: Date;
47
+ /** @description 광고성 알림 동의 휴대폰 */
48
+ phone: boolean;
49
+ /** @description 광고성 알림 동의 휴대폰 */
50
+ lastModifyDate_phone?: Date;
51
+ /** @description 마지막 수정일 */
52
+ lastModifyDate?: Date;
53
+ /** @description 광고성 알림 동의 앱푸쉬 */
54
+ appPush?: boolean;
55
+ /** @description 광고성 알림 동의 앱푸쉬 마지막 수정일 */
56
+ lastModifyDate_appPush?: Date;
57
+ /** @description 유저가 직접 동의한 적이 있는가 */
58
+ isChecked?: boolean;
59
+ }
60
+ export interface UserPromotionCode {
61
+ /** @description 나의 코드 */
62
+ myCode?: Types.ObjectId;
63
+ /** @description 회원 가입할 때 사용한 코드 */
64
+ regCode?: Types.ObjectId;
65
+ /** @description 구입 할 때 사용한 코드 */
66
+ buyCode: Types.ObjectId[];
67
+ }
68
+ export interface UserInflow {
69
+ yg_type: string;
70
+ yg_method: string;
71
+ inflowDate: Date;
72
+ referer: string;
73
+ url: string;
74
+ userAgent: string;
75
+ ip: string;
76
+ appHost: string;
77
+ }
78
+ export interface UserDeviceToken {
79
+ /** @description 앱 타입 */
80
+ deviceType: DEVICE_TYPE;
81
+ /** @description 토큰값 */
82
+ token: string;
83
+ /** @description 생성날짜 */
84
+ createdAt: Date;
85
+ }
86
+ export interface UserNotificationActivity {
87
+ /** @description 카운트 */
88
+ count: number;
89
+ /** @description 마지막 날짜 */
90
+ lastMessageTime?: Date;
91
+ }
92
+ export interface UserNotification {
93
+ /** @description 앱(android, ios) aws arn 값 */
94
+ targetArn?: string;
95
+ /** @description 활동내역 count */
96
+ activity?: UserNotificationActivity;
97
+ }
98
+ export declare class UserAdultInfo {
99
+ /** @description 성인인증 여부 */
100
+ isAdult: boolean;
101
+ /** @description 성인인증 만료 날짜 */
102
+ expired?: Date;
103
+ /** @description 성인인증 인증 된 날짜 */
104
+ updateDate?: Date;
105
+ }
106
+ export interface UserSubContactList {
107
+ /** @description 2차 연락 수단 종류 <kakaoTalk, naverLine, instagram, whatsApp, facebookMessenger> */
108
+ subContactType: string;
109
+ /** @description 2차 연락 수단 아이디 종류 (종류에 따라 지원하는 아이디 다름 <id, phone> ) */
110
+ subContactIdType: string;
111
+ /** @description 2차 연락 수단 아이디 */
112
+ subContactId: string;
113
+ /** @description 2차 연락 수단 휴대폰 코드 */
114
+ subContactPhoneCode?: string;
115
+ /** @description 저장일 */
116
+ regDate: Date;
117
+ }
118
+ export interface UserRefundAccount {
119
+ /** @description 환불 받을 은행명 */
120
+ bankName: string;
121
+ /** @description 환불 받을 은행코드 */
122
+ bankCode: string;
123
+ /** @description 환불 받을 계좌번호 */
124
+ number: string;
125
+ /** @description 환불 받을 예금주 */
126
+ depositor: string;
127
+ }
128
+ export interface UserBlocked {
129
+ /** @description 블랙리스트 여부 */
130
+ isBlocked: boolean;
131
+ /** @description 처리된 날짜 */
132
+ date?: Date;
133
+ }
134
+ export declare class UserActInfo {
135
+ /** @description 마지막 앱 오픈일 */
136
+ lastOpenAppDate?: Date;
137
+ /** @description 마지막 스토어 상품 결제일 (요청X) */
138
+ lastPaidDate?: Date;
139
+ /** @description 마지막 장바구니 상품 담은일 */
140
+ lastAddedCartDate?: Date;
141
+ /**
142
+ * @description 장바구니 넣고 결제 안하면 true (알림 대상)
143
+ * * 장바구니 넣으면 true / 결제 할 경우 false
144
+ */
145
+ isAddCartAndNotPaid?: boolean;
146
+ }
147
+ /** 유저 엔티티 (미완성) */
148
+ export default interface UserEntity {
149
+ _id: Types.ObjectId;
150
+ /** @description 유저명 */
151
+ username?: string;
152
+ /** @description 국가코드 */
153
+ phoneCountry: string;
154
+ /** @description 휴대폰번호 - SNS 계정 없는 경우 존재 */
155
+ phoneNumber?: string;
156
+ /** @description 유저 이메일 - SNS 계정 없을 수 있음(SNS 가입시에 유저가 email 비공개 설정 가능) */
157
+ email?: string;
158
+ /** @description 회원 유니크 id - SNS, local 회원 구분값 ex) local:a@a.a, naver:b@b.b */
159
+ authId: string;
160
+ /** @description salt - local 만 존재 (naver 계정 6개 salt 존재) */
161
+ salt?: string;
162
+ /** @description 비밀번호 - local 만 존재 (naver 계정 6개 password 존재) */
163
+ password?: string;
164
+ /** @description 유저 이미지 - default https://s3.ap-northeast-2.amazonaws.com/yeogoolocal/icon/user/default_profile.png */
165
+ photos: string;
166
+ /** @description 유저 생년월일 */
167
+ birthday?: string;
168
+ /** @description 직업 */
169
+ job?: string;
170
+ /** @description 인증 현황 */
171
+ certification: UserCertification;
172
+ /**
173
+ * @description 크레딧 정보
174
+ * 1. 마지막 결제일로 부터 1년 지난 유저 크레딧 일괄 삭제
175
+ */
176
+ credit: UserCredit;
177
+ /** @description 광고성 알림을 받을것인가 2018-10-08 이전 가입자들 전체 true 라서 예외(5693명) */
178
+ receive?: UserReceive;
179
+ /** @description 프로모션 코드 */
180
+ promotionCode: UserPromotionCode;
181
+ /** @description 스토어 존재여부 */
182
+ isStoreExist: boolean;
183
+ /** @description 성별 - 애플, SNS 정책으로 비공개 다수 */
184
+ gender?: string;
185
+ /** @description 유입 정보 */
186
+ inflowInfo?: UserInflow;
187
+ /** @description 가입 날짜 */
188
+ signed: Date;
189
+ /** @description legacy token */
190
+ deviceToken?: string[];
191
+ /** @description token */
192
+ deviceTokens?: UserDeviceToken[];
193
+ /** @description 유저별 디바이스 그룹 이름 */
194
+ deviceGroupName?: string;
195
+ /** @description 알림 정보 */
196
+ notification: UserNotification;
197
+ /** @description 2차 연락 수단 */
198
+ subContactList?: UserSubContactList[];
199
+ /** @description 성인인증 정보 */
200
+ adultInfo?: UserAdultInfo;
201
+ /** @description 셀러 입점 Step */
202
+ sellerRegistrationStep?: SellerRegisterStepEnum;
203
+ /** @description 환불 계좌 */
204
+ refundAccount?: UserRefundAccount;
205
+ /** @description 유저 활동 정보 */
206
+ userActInfo?: UserActInfo;
207
+ /** @description 로그 정보 */
208
+ log?: any[];
209
+ /** @description 유저 블랙리스트 정보 */
210
+ blocked: UserBlocked;
211
+ /** 멤버쉽 아이디 */
212
+ memberShipId?: Types.ObjectId;
213
+ }
214
+ export { UserEntity };
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UserActInfo = exports.UserAdultInfo = exports.SellerRegisterStepEnum = exports.DEVICE_TYPE = void 0;
4
+ var DEVICE_TYPE;
5
+ (function (DEVICE_TYPE) {
6
+ DEVICE_TYPE["AND"] = "AND";
7
+ DEVICE_TYPE["IOS"] = "IOS";
8
+ })(DEVICE_TYPE || (exports.DEVICE_TYPE = DEVICE_TYPE = {}));
9
+ var SellerRegisterStepEnum;
10
+ (function (SellerRegisterStepEnum) {
11
+ /** 2. preinformation 사전정보입력 (계좌 정보 입력해야함. 수정의 경우도 있어서 스토어 데이터가 있을 수 있음 */
12
+ SellerRegisterStepEnum["preinformation"] = "preinformation";
13
+ /** 3. applyentry 입점신청 (tally 신청서 작성이전) */
14
+ SellerRegisterStepEnum["applyentry"] = "applyentry";
15
+ /** 3. entryfilled 입점신청 (tally 신청서 작성이후) */
16
+ SellerRegisterStepEnum["entryfilled"] = "entryfilled";
17
+ /** 4. standby 심사대기 (신청 완료 버튼 누른후) */
18
+ SellerRegisterStepEnum["standby"] = "standby";
19
+ })(SellerRegisterStepEnum || (exports.SellerRegisterStepEnum = SellerRegisterStepEnum = {}));
20
+ class UserAdultInfo {
21
+ }
22
+ exports.UserAdultInfo = UserAdultInfo;
23
+ class UserActInfo {
24
+ }
25
+ exports.UserActInfo = UserActInfo;