@experts_hub/shared 1.0.33 → 1.0.35
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/dist/entities/index.d.ts +1 -0
- package/dist/entities/resume-parser-log.entity.d.ts +12 -0
- package/dist/entities/user.entity.d.ts +2 -0
- package/dist/index.d.mts +23 -4
- package/dist/index.d.ts +23 -4
- package/dist/index.js +89 -32
- package/dist/index.mjs +95 -34
- package/dist/modules/user/subadmin/dto/create-subadmin.dto.d.ts +5 -2
- package/dist/modules/user/subadmin/dto/update-subadmin.dto.d.ts +4 -1
- package/package.json +1 -1
package/dist/entities/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BaseEntity } from './base.entity';
|
|
2
2
|
import { RefreshToken } from './refresh-token.entity';
|
|
3
|
+
import { ResumeParserLog } from './resume-parser-log.entity';
|
|
3
4
|
export declare enum AccountType {
|
|
4
5
|
ADMIN = "ADMIN",
|
|
5
6
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -30,4 +31,5 @@ export declare class User extends BaseEntity {
|
|
|
30
31
|
lastLoginAt: Date;
|
|
31
32
|
lastLoginIp: string;
|
|
32
33
|
refreshTokens: RefreshToken[];
|
|
34
|
+
resumeParserLogs: ResumeParserLog[];
|
|
33
35
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -38,12 +38,15 @@ declare const SUBADMIN_PATTERN: {
|
|
|
38
38
|
deleteSubAdmin: string;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
declare class
|
|
41
|
+
declare class CreateSubAdminDto {
|
|
42
|
+
uniqueId: string;
|
|
43
|
+
userName: string;
|
|
42
44
|
firstName: string;
|
|
43
45
|
lastName: string;
|
|
44
46
|
email: string;
|
|
45
47
|
mobile: string;
|
|
46
|
-
|
|
48
|
+
accountType: string;
|
|
49
|
+
accountStatus: string;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
declare class ToggleSubAdminVisibilityDto {
|
|
@@ -51,11 +54,14 @@ declare class ToggleSubAdminVisibilityDto {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
declare class UpdateSubAdminDto {
|
|
57
|
+
uniqueId: string;
|
|
58
|
+
userName: string;
|
|
54
59
|
firstName: string;
|
|
55
60
|
lastName: string;
|
|
56
61
|
email: string;
|
|
57
62
|
mobile: string;
|
|
58
|
-
|
|
63
|
+
accountType: string;
|
|
64
|
+
accountStatus: string;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
interface IFetchSubAdminQuery {
|
|
@@ -157,6 +163,18 @@ declare class RefreshToken {
|
|
|
157
163
|
user: User;
|
|
158
164
|
}
|
|
159
165
|
|
|
166
|
+
declare class ResumeParserLog {
|
|
167
|
+
id: number;
|
|
168
|
+
userId: number;
|
|
169
|
+
endpoint: string;
|
|
170
|
+
success: boolean;
|
|
171
|
+
request: any;
|
|
172
|
+
response: any;
|
|
173
|
+
errorMessage: string;
|
|
174
|
+
createdAt: Date;
|
|
175
|
+
user: User;
|
|
176
|
+
}
|
|
177
|
+
|
|
160
178
|
declare enum AccountType {
|
|
161
179
|
ADMIN = "ADMIN",
|
|
162
180
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -187,6 +205,7 @@ declare class User extends BaseEntity {
|
|
|
187
205
|
lastLoginAt: Date;
|
|
188
206
|
lastLoginIp: string;
|
|
189
207
|
refreshTokens: RefreshToken[];
|
|
208
|
+
resumeParserLogs: ResumeParserLog[];
|
|
190
209
|
}
|
|
191
210
|
|
|
192
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken,
|
|
211
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -38,12 +38,15 @@ declare const SUBADMIN_PATTERN: {
|
|
|
38
38
|
deleteSubAdmin: string;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
declare class
|
|
41
|
+
declare class CreateSubAdminDto {
|
|
42
|
+
uniqueId: string;
|
|
43
|
+
userName: string;
|
|
42
44
|
firstName: string;
|
|
43
45
|
lastName: string;
|
|
44
46
|
email: string;
|
|
45
47
|
mobile: string;
|
|
46
|
-
|
|
48
|
+
accountType: string;
|
|
49
|
+
accountStatus: string;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
declare class ToggleSubAdminVisibilityDto {
|
|
@@ -51,11 +54,14 @@ declare class ToggleSubAdminVisibilityDto {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
declare class UpdateSubAdminDto {
|
|
57
|
+
uniqueId: string;
|
|
58
|
+
userName: string;
|
|
54
59
|
firstName: string;
|
|
55
60
|
lastName: string;
|
|
56
61
|
email: string;
|
|
57
62
|
mobile: string;
|
|
58
|
-
|
|
63
|
+
accountType: string;
|
|
64
|
+
accountStatus: string;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
interface IFetchSubAdminQuery {
|
|
@@ -157,6 +163,18 @@ declare class RefreshToken {
|
|
|
157
163
|
user: User;
|
|
158
164
|
}
|
|
159
165
|
|
|
166
|
+
declare class ResumeParserLog {
|
|
167
|
+
id: number;
|
|
168
|
+
userId: number;
|
|
169
|
+
endpoint: string;
|
|
170
|
+
success: boolean;
|
|
171
|
+
request: any;
|
|
172
|
+
response: any;
|
|
173
|
+
errorMessage: string;
|
|
174
|
+
createdAt: Date;
|
|
175
|
+
user: User;
|
|
176
|
+
}
|
|
177
|
+
|
|
160
178
|
declare enum AccountType {
|
|
161
179
|
ADMIN = "ADMIN",
|
|
162
180
|
SUB_ADMIN = "SUB_ADMIN",
|
|
@@ -187,6 +205,7 @@ declare class User extends BaseEntity {
|
|
|
187
205
|
lastLoginAt: Date;
|
|
188
206
|
lastLoginIp: string;
|
|
189
207
|
refreshTokens: RefreshToken[];
|
|
208
|
+
resumeParserLogs: ResumeParserLog[];
|
|
190
209
|
}
|
|
191
210
|
|
|
192
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken,
|
|
211
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IToggleSubAdminVisibilityPayload, type IToggleSubAdminVisibilityResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ __export(index_exports, {
|
|
|
31
31
|
AccountStatus: () => AccountStatus,
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
33
|
BaseEntity: () => BaseEntity,
|
|
34
|
+
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
34
35
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
35
36
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
36
37
|
LoginDto: () => LoginDto,
|
|
@@ -38,8 +39,8 @@ __export(index_exports, {
|
|
|
38
39
|
RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
|
|
39
40
|
RefreshDto: () => RefreshDto,
|
|
40
41
|
RefreshToken: () => RefreshToken,
|
|
42
|
+
ResumeParserLog: () => ResumeParserLog,
|
|
41
43
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
42
|
-
SubAdminDto: () => SubAdminDto,
|
|
43
44
|
ToggleSubAdminVisibilityDto: () => ToggleSubAdminVisibilityDto,
|
|
44
45
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
45
46
|
User: () => User,
|
|
@@ -105,24 +106,32 @@ var SUBADMIN_PATTERN = {
|
|
|
105
106
|
|
|
106
107
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
107
108
|
var import_class_validator4 = require("class-validator");
|
|
108
|
-
var
|
|
109
|
+
var CreateSubAdminDto = class {
|
|
109
110
|
};
|
|
111
|
+
__decorateClass([
|
|
112
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter unique id." })
|
|
113
|
+
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
114
|
+
__decorateClass([
|
|
115
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter username." })
|
|
116
|
+
], CreateSubAdminDto.prototype, "userName", 2);
|
|
110
117
|
__decorateClass([
|
|
111
118
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter first name." })
|
|
112
|
-
],
|
|
119
|
+
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
113
120
|
__decorateClass([
|
|
114
121
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter last name." })
|
|
115
|
-
],
|
|
122
|
+
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
116
123
|
__decorateClass([
|
|
117
124
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter email." })
|
|
118
|
-
],
|
|
125
|
+
], CreateSubAdminDto.prototype, "email", 2);
|
|
119
126
|
__decorateClass([
|
|
120
127
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
121
|
-
],
|
|
128
|
+
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
129
|
+
__decorateClass([
|
|
130
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter acoount type." })
|
|
131
|
+
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
122
132
|
__decorateClass([
|
|
123
|
-
(0, import_class_validator4.
|
|
124
|
-
|
|
125
|
-
], SubAdminDto.prototype, "isActive", 2);
|
|
133
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter account status." })
|
|
134
|
+
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
126
135
|
|
|
127
136
|
// src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
|
|
128
137
|
var import_class_validator5 = require("class-validator");
|
|
@@ -136,6 +145,12 @@ __decorateClass([
|
|
|
136
145
|
var import_class_validator6 = require("class-validator");
|
|
137
146
|
var UpdateSubAdminDto = class {
|
|
138
147
|
};
|
|
148
|
+
__decorateClass([
|
|
149
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter unique id." })
|
|
150
|
+
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
151
|
+
__decorateClass([
|
|
152
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter username." })
|
|
153
|
+
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
139
154
|
__decorateClass([
|
|
140
155
|
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter first name." })
|
|
141
156
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
@@ -149,9 +164,11 @@ __decorateClass([
|
|
|
149
164
|
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
150
165
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
151
166
|
__decorateClass([
|
|
152
|
-
(0, import_class_validator6.
|
|
153
|
-
|
|
154
|
-
|
|
167
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter acoount type." })
|
|
168
|
+
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
169
|
+
__decorateClass([
|
|
170
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter account status." })
|
|
171
|
+
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
155
172
|
|
|
156
173
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
157
174
|
var import_dotenv = require("dotenv");
|
|
@@ -335,7 +352,7 @@ __decorateClass([
|
|
|
335
352
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
336
353
|
|
|
337
354
|
// src/entities/user.entity.ts
|
|
338
|
-
var
|
|
355
|
+
var import_typeorm4 = require("typeorm");
|
|
339
356
|
|
|
340
357
|
// src/entities/refresh-token.entity.ts
|
|
341
358
|
var import_typeorm2 = require("typeorm");
|
|
@@ -373,6 +390,42 @@ RefreshToken = __decorateClass([
|
|
|
373
390
|
(0, import_typeorm2.Entity)("refresh_tokens")
|
|
374
391
|
], RefreshToken);
|
|
375
392
|
|
|
393
|
+
// src/entities/resume-parser-log.entity.ts
|
|
394
|
+
var import_typeorm3 = require("typeorm");
|
|
395
|
+
var ResumeParserLog = class {
|
|
396
|
+
};
|
|
397
|
+
__decorateClass([
|
|
398
|
+
(0, import_typeorm3.PrimaryGeneratedColumn)("increment", { type: "integer" })
|
|
399
|
+
], ResumeParserLog.prototype, "id", 2);
|
|
400
|
+
__decorateClass([
|
|
401
|
+
(0, import_typeorm3.Column)({ name: "user_id", type: "integer", nullable: true })
|
|
402
|
+
], ResumeParserLog.prototype, "userId", 2);
|
|
403
|
+
__decorateClass([
|
|
404
|
+
(0, import_typeorm3.Column)({ name: "end_point", type: "string" })
|
|
405
|
+
], ResumeParserLog.prototype, "endpoint", 2);
|
|
406
|
+
__decorateClass([
|
|
407
|
+
(0, import_typeorm3.Column)({ name: "success", type: "boolean" })
|
|
408
|
+
], ResumeParserLog.prototype, "success", 2);
|
|
409
|
+
__decorateClass([
|
|
410
|
+
(0, import_typeorm3.Column)({ name: "request", type: "jsonb", nullable: true })
|
|
411
|
+
], ResumeParserLog.prototype, "request", 2);
|
|
412
|
+
__decorateClass([
|
|
413
|
+
(0, import_typeorm3.Column)({ name: "response", type: "jsonb", nullable: true })
|
|
414
|
+
], ResumeParserLog.prototype, "response", 2);
|
|
415
|
+
__decorateClass([
|
|
416
|
+
(0, import_typeorm3.Column)({ name: "error_message", type: "text", nullable: true })
|
|
417
|
+
], ResumeParserLog.prototype, "errorMessage", 2);
|
|
418
|
+
__decorateClass([
|
|
419
|
+
(0, import_typeorm3.CreateDateColumn)({ name: "created_at", type: "timestamp with time zone" })
|
|
420
|
+
], ResumeParserLog.prototype, "createdAt", 2);
|
|
421
|
+
__decorateClass([
|
|
422
|
+
(0, import_typeorm3.ManyToOne)(() => User, (user) => user.resumeParserLogs),
|
|
423
|
+
(0, import_typeorm3.JoinColumn)({ name: "user_id" })
|
|
424
|
+
], ResumeParserLog.prototype, "user", 2);
|
|
425
|
+
ResumeParserLog = __decorateClass([
|
|
426
|
+
(0, import_typeorm3.Entity)("resume_parser_logs")
|
|
427
|
+
], ResumeParserLog);
|
|
428
|
+
|
|
376
429
|
// src/entities/user.entity.ts
|
|
377
430
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
378
431
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -391,37 +444,37 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
391
444
|
var User = class extends BaseEntity {
|
|
392
445
|
};
|
|
393
446
|
__decorateClass([
|
|
394
|
-
(0,
|
|
447
|
+
(0, import_typeorm4.Column)({ name: "unique_id", type: "varchar", unique: true })
|
|
395
448
|
], User.prototype, "uniqueId", 2);
|
|
396
449
|
__decorateClass([
|
|
397
|
-
(0,
|
|
450
|
+
(0, import_typeorm4.Column)({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
398
451
|
], User.prototype, "username", 2);
|
|
399
452
|
__decorateClass([
|
|
400
|
-
(0,
|
|
453
|
+
(0, import_typeorm4.Column)({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
401
454
|
], User.prototype, "firstName", 2);
|
|
402
455
|
__decorateClass([
|
|
403
|
-
(0,
|
|
456
|
+
(0, import_typeorm4.Column)({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
404
457
|
], User.prototype, "lastName", 2);
|
|
405
458
|
__decorateClass([
|
|
406
|
-
(0,
|
|
459
|
+
(0, import_typeorm4.Column)({ name: "date_of_birth", type: "date", nullable: true })
|
|
407
460
|
], User.prototype, "dateOfBirth", 2);
|
|
408
461
|
__decorateClass([
|
|
409
|
-
(0,
|
|
462
|
+
(0, import_typeorm4.Column)({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
410
463
|
], User.prototype, "gender", 2);
|
|
411
464
|
__decorateClass([
|
|
412
|
-
(0,
|
|
465
|
+
(0, import_typeorm4.Column)({ name: "profile_picture_url", type: "text", nullable: true })
|
|
413
466
|
], User.prototype, "profilePictureUrl", 2);
|
|
414
467
|
__decorateClass([
|
|
415
|
-
(0,
|
|
468
|
+
(0, import_typeorm4.Column)({ name: "email", type: "varchar", unique: true })
|
|
416
469
|
], User.prototype, "email", 2);
|
|
417
470
|
__decorateClass([
|
|
418
|
-
(0,
|
|
471
|
+
(0, import_typeorm4.Column)({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
419
472
|
], User.prototype, "mobile", 2);
|
|
420
473
|
__decorateClass([
|
|
421
|
-
(0,
|
|
474
|
+
(0, import_typeorm4.Column)({ name: "password", type: "varchar" })
|
|
422
475
|
], User.prototype, "password", 2);
|
|
423
476
|
__decorateClass([
|
|
424
|
-
(0,
|
|
477
|
+
(0, import_typeorm4.Column)({
|
|
425
478
|
name: "account_type",
|
|
426
479
|
type: "enum",
|
|
427
480
|
enum: AccountType,
|
|
@@ -429,7 +482,7 @@ __decorateClass([
|
|
|
429
482
|
})
|
|
430
483
|
], User.prototype, "accountType", 2);
|
|
431
484
|
__decorateClass([
|
|
432
|
-
(0,
|
|
485
|
+
(0, import_typeorm4.Column)({
|
|
433
486
|
name: "account_status",
|
|
434
487
|
type: "enum",
|
|
435
488
|
enum: AccountStatus,
|
|
@@ -437,22 +490,25 @@ __decorateClass([
|
|
|
437
490
|
})
|
|
438
491
|
], User.prototype, "accountStatus", 2);
|
|
439
492
|
__decorateClass([
|
|
440
|
-
(0,
|
|
493
|
+
(0, import_typeorm4.Column)({ name: "is_email_verified", type: "boolean", default: false })
|
|
441
494
|
], User.prototype, "isEmailVerified", 2);
|
|
442
495
|
__decorateClass([
|
|
443
|
-
(0,
|
|
496
|
+
(0, import_typeorm4.Column)({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
444
497
|
], User.prototype, "isMobileVerified", 2);
|
|
445
498
|
__decorateClass([
|
|
446
|
-
(0,
|
|
499
|
+
(0, import_typeorm4.Column)({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
|
|
447
500
|
], User.prototype, "lastLoginAt", 2);
|
|
448
501
|
__decorateClass([
|
|
449
|
-
(0,
|
|
502
|
+
(0, import_typeorm4.Column)({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
450
503
|
], User.prototype, "lastLoginIp", 2);
|
|
451
504
|
__decorateClass([
|
|
452
|
-
(0,
|
|
505
|
+
(0, import_typeorm4.OneToMany)(() => RefreshToken, (token) => token.user)
|
|
453
506
|
], User.prototype, "refreshTokens", 2);
|
|
507
|
+
__decorateClass([
|
|
508
|
+
(0, import_typeorm4.OneToMany)(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
509
|
+
], User.prototype, "resumeParserLogs", 2);
|
|
454
510
|
User = __decorateClass([
|
|
455
|
-
(0,
|
|
511
|
+
(0, import_typeorm4.Entity)("users")
|
|
456
512
|
], User);
|
|
457
513
|
// Annotate the CommonJS export names for ESM import in node:
|
|
458
514
|
0 && (module.exports = {
|
|
@@ -460,6 +516,7 @@ User = __decorateClass([
|
|
|
460
516
|
AccountStatus,
|
|
461
517
|
AccountType,
|
|
462
518
|
BaseEntity,
|
|
519
|
+
CreateSubAdminDto,
|
|
463
520
|
JobRMQAdapter,
|
|
464
521
|
JobTCPAdapter,
|
|
465
522
|
LoginDto,
|
|
@@ -467,8 +524,8 @@ User = __decorateClass([
|
|
|
467
524
|
RESUME_PARSER_PATTERN,
|
|
468
525
|
RefreshDto,
|
|
469
526
|
RefreshToken,
|
|
527
|
+
ResumeParserLog,
|
|
470
528
|
SUBADMIN_PATTERN,
|
|
471
|
-
SubAdminDto,
|
|
472
529
|
ToggleSubAdminVisibilityDto,
|
|
473
530
|
UpdateSubAdminDto,
|
|
474
531
|
User,
|
package/dist/index.mjs
CHANGED
|
@@ -72,28 +72,34 @@ var SUBADMIN_PATTERN = {
|
|
|
72
72
|
|
|
73
73
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
74
74
|
import {
|
|
75
|
-
IsNotEmpty as IsNotEmpty4
|
|
76
|
-
IsOptional,
|
|
77
|
-
IsBoolean
|
|
75
|
+
IsNotEmpty as IsNotEmpty4
|
|
78
76
|
} from "class-validator";
|
|
79
|
-
var
|
|
77
|
+
var CreateSubAdminDto = class {
|
|
80
78
|
};
|
|
79
|
+
__decorateClass([
|
|
80
|
+
IsNotEmpty4({ message: "Please enter unique id." })
|
|
81
|
+
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
82
|
+
__decorateClass([
|
|
83
|
+
IsNotEmpty4({ message: "Please enter username." })
|
|
84
|
+
], CreateSubAdminDto.prototype, "userName", 2);
|
|
81
85
|
__decorateClass([
|
|
82
86
|
IsNotEmpty4({ message: "Please enter first name." })
|
|
83
|
-
],
|
|
87
|
+
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
84
88
|
__decorateClass([
|
|
85
89
|
IsNotEmpty4({ message: "Please enter last name." })
|
|
86
|
-
],
|
|
90
|
+
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
87
91
|
__decorateClass([
|
|
88
92
|
IsNotEmpty4({ message: "Please enter email." })
|
|
89
|
-
],
|
|
93
|
+
], CreateSubAdminDto.prototype, "email", 2);
|
|
90
94
|
__decorateClass([
|
|
91
95
|
IsNotEmpty4({ message: "Please enter mobile number." })
|
|
92
|
-
],
|
|
96
|
+
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
IsNotEmpty4({ message: "Please enter acoount type." })
|
|
99
|
+
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
93
100
|
__decorateClass([
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
], SubAdminDto.prototype, "isActive", 2);
|
|
101
|
+
IsNotEmpty4({ message: "Please enter account status." })
|
|
102
|
+
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
97
103
|
|
|
98
104
|
// src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
|
|
99
105
|
import { IsBoolean as IsBoolean2 } from "class-validator";
|
|
@@ -104,9 +110,15 @@ __decorateClass([
|
|
|
104
110
|
], ToggleSubAdminVisibilityDto.prototype, "isActive", 2);
|
|
105
111
|
|
|
106
112
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
107
|
-
import {
|
|
113
|
+
import { IsNotEmpty as IsNotEmpty5 } from "class-validator";
|
|
108
114
|
var UpdateSubAdminDto = class {
|
|
109
115
|
};
|
|
116
|
+
__decorateClass([
|
|
117
|
+
IsNotEmpty5({ message: "Please enter unique id." })
|
|
118
|
+
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
119
|
+
__decorateClass([
|
|
120
|
+
IsNotEmpty5({ message: "Please enter username." })
|
|
121
|
+
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
110
122
|
__decorateClass([
|
|
111
123
|
IsNotEmpty5({ message: "Please enter first name." })
|
|
112
124
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
@@ -120,9 +132,11 @@ __decorateClass([
|
|
|
120
132
|
IsNotEmpty5({ message: "Please enter mobile number." })
|
|
121
133
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
122
134
|
__decorateClass([
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
135
|
+
IsNotEmpty5({ message: "Please enter acoount type." })
|
|
136
|
+
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
137
|
+
__decorateClass([
|
|
138
|
+
IsNotEmpty5({ message: "Please enter account status." })
|
|
139
|
+
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
126
140
|
|
|
127
141
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
128
142
|
import { config } from "dotenv";
|
|
@@ -313,7 +327,7 @@ __decorateClass([
|
|
|
313
327
|
], BaseEntity.prototype, "deletedAt", 2);
|
|
314
328
|
|
|
315
329
|
// src/entities/user.entity.ts
|
|
316
|
-
import { Entity as
|
|
330
|
+
import { Entity as Entity3, Column as Column4, OneToMany } from "typeorm";
|
|
317
331
|
|
|
318
332
|
// src/entities/refresh-token.entity.ts
|
|
319
333
|
import {
|
|
@@ -359,6 +373,49 @@ RefreshToken = __decorateClass([
|
|
|
359
373
|
Entity("refresh_tokens")
|
|
360
374
|
], RefreshToken);
|
|
361
375
|
|
|
376
|
+
// src/entities/resume-parser-log.entity.ts
|
|
377
|
+
import {
|
|
378
|
+
Entity as Entity2,
|
|
379
|
+
PrimaryGeneratedColumn as PrimaryGeneratedColumn3,
|
|
380
|
+
Column as Column3,
|
|
381
|
+
CreateDateColumn as CreateDateColumn3,
|
|
382
|
+
ManyToOne as ManyToOne2,
|
|
383
|
+
JoinColumn as JoinColumn2
|
|
384
|
+
} from "typeorm";
|
|
385
|
+
var ResumeParserLog = class {
|
|
386
|
+
};
|
|
387
|
+
__decorateClass([
|
|
388
|
+
PrimaryGeneratedColumn3("increment", { type: "integer" })
|
|
389
|
+
], ResumeParserLog.prototype, "id", 2);
|
|
390
|
+
__decorateClass([
|
|
391
|
+
Column3({ name: "user_id", type: "integer", nullable: true })
|
|
392
|
+
], ResumeParserLog.prototype, "userId", 2);
|
|
393
|
+
__decorateClass([
|
|
394
|
+
Column3({ name: "end_point", type: "string" })
|
|
395
|
+
], ResumeParserLog.prototype, "endpoint", 2);
|
|
396
|
+
__decorateClass([
|
|
397
|
+
Column3({ name: "success", type: "boolean" })
|
|
398
|
+
], ResumeParserLog.prototype, "success", 2);
|
|
399
|
+
__decorateClass([
|
|
400
|
+
Column3({ name: "request", type: "jsonb", nullable: true })
|
|
401
|
+
], ResumeParserLog.prototype, "request", 2);
|
|
402
|
+
__decorateClass([
|
|
403
|
+
Column3({ name: "response", type: "jsonb", nullable: true })
|
|
404
|
+
], ResumeParserLog.prototype, "response", 2);
|
|
405
|
+
__decorateClass([
|
|
406
|
+
Column3({ name: "error_message", type: "text", nullable: true })
|
|
407
|
+
], ResumeParserLog.prototype, "errorMessage", 2);
|
|
408
|
+
__decorateClass([
|
|
409
|
+
CreateDateColumn3({ name: "created_at", type: "timestamp with time zone" })
|
|
410
|
+
], ResumeParserLog.prototype, "createdAt", 2);
|
|
411
|
+
__decorateClass([
|
|
412
|
+
ManyToOne2(() => User, (user) => user.resumeParserLogs),
|
|
413
|
+
JoinColumn2({ name: "user_id" })
|
|
414
|
+
], ResumeParserLog.prototype, "user", 2);
|
|
415
|
+
ResumeParserLog = __decorateClass([
|
|
416
|
+
Entity2("resume_parser_logs")
|
|
417
|
+
], ResumeParserLog);
|
|
418
|
+
|
|
362
419
|
// src/entities/user.entity.ts
|
|
363
420
|
var AccountType = /* @__PURE__ */ ((AccountType2) => {
|
|
364
421
|
AccountType2["ADMIN"] = "ADMIN";
|
|
@@ -377,37 +434,37 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
|
|
|
377
434
|
var User = class extends BaseEntity {
|
|
378
435
|
};
|
|
379
436
|
__decorateClass([
|
|
380
|
-
|
|
437
|
+
Column4({ name: "unique_id", type: "varchar", unique: true })
|
|
381
438
|
], User.prototype, "uniqueId", 2);
|
|
382
439
|
__decorateClass([
|
|
383
|
-
|
|
440
|
+
Column4({ name: "username", type: "varchar", unique: true, nullable: true })
|
|
384
441
|
], User.prototype, "username", 2);
|
|
385
442
|
__decorateClass([
|
|
386
|
-
|
|
443
|
+
Column4({ name: "first_name", type: "varchar", length: 100, nullable: true })
|
|
387
444
|
], User.prototype, "firstName", 2);
|
|
388
445
|
__decorateClass([
|
|
389
|
-
|
|
446
|
+
Column4({ name: "last_name", type: "varchar", length: 100, nullable: true })
|
|
390
447
|
], User.prototype, "lastName", 2);
|
|
391
448
|
__decorateClass([
|
|
392
|
-
|
|
449
|
+
Column4({ name: "date_of_birth", type: "date", nullable: true })
|
|
393
450
|
], User.prototype, "dateOfBirth", 2);
|
|
394
451
|
__decorateClass([
|
|
395
|
-
|
|
452
|
+
Column4({ name: "gender", type: "varchar", length: 10, nullable: true })
|
|
396
453
|
], User.prototype, "gender", 2);
|
|
397
454
|
__decorateClass([
|
|
398
|
-
|
|
455
|
+
Column4({ name: "profile_picture_url", type: "text", nullable: true })
|
|
399
456
|
], User.prototype, "profilePictureUrl", 2);
|
|
400
457
|
__decorateClass([
|
|
401
|
-
|
|
458
|
+
Column4({ name: "email", type: "varchar", unique: true })
|
|
402
459
|
], User.prototype, "email", 2);
|
|
403
460
|
__decorateClass([
|
|
404
|
-
|
|
461
|
+
Column4({ name: "mobile", type: "varchar", unique: true, nullable: true })
|
|
405
462
|
], User.prototype, "mobile", 2);
|
|
406
463
|
__decorateClass([
|
|
407
|
-
|
|
464
|
+
Column4({ name: "password", type: "varchar" })
|
|
408
465
|
], User.prototype, "password", 2);
|
|
409
466
|
__decorateClass([
|
|
410
|
-
|
|
467
|
+
Column4({
|
|
411
468
|
name: "account_type",
|
|
412
469
|
type: "enum",
|
|
413
470
|
enum: AccountType,
|
|
@@ -415,7 +472,7 @@ __decorateClass([
|
|
|
415
472
|
})
|
|
416
473
|
], User.prototype, "accountType", 2);
|
|
417
474
|
__decorateClass([
|
|
418
|
-
|
|
475
|
+
Column4({
|
|
419
476
|
name: "account_status",
|
|
420
477
|
type: "enum",
|
|
421
478
|
enum: AccountStatus,
|
|
@@ -423,28 +480,32 @@ __decorateClass([
|
|
|
423
480
|
})
|
|
424
481
|
], User.prototype, "accountStatus", 2);
|
|
425
482
|
__decorateClass([
|
|
426
|
-
|
|
483
|
+
Column4({ name: "is_email_verified", type: "boolean", default: false })
|
|
427
484
|
], User.prototype, "isEmailVerified", 2);
|
|
428
485
|
__decorateClass([
|
|
429
|
-
|
|
486
|
+
Column4({ name: "is_mobile_verified", type: "boolean", default: false })
|
|
430
487
|
], User.prototype, "isMobileVerified", 2);
|
|
431
488
|
__decorateClass([
|
|
432
|
-
|
|
489
|
+
Column4({ name: "last_login_at", type: "timestamp with time zone", nullable: true })
|
|
433
490
|
], User.prototype, "lastLoginAt", 2);
|
|
434
491
|
__decorateClass([
|
|
435
|
-
|
|
492
|
+
Column4({ name: "last_login_ip", type: "varchar", nullable: true })
|
|
436
493
|
], User.prototype, "lastLoginIp", 2);
|
|
437
494
|
__decorateClass([
|
|
438
495
|
OneToMany(() => RefreshToken, (token) => token.user)
|
|
439
496
|
], User.prototype, "refreshTokens", 2);
|
|
497
|
+
__decorateClass([
|
|
498
|
+
OneToMany(() => ResumeParserLog, (resumeParser) => resumeParser.user)
|
|
499
|
+
], User.prototype, "resumeParserLogs", 2);
|
|
440
500
|
User = __decorateClass([
|
|
441
|
-
|
|
501
|
+
Entity3("users")
|
|
442
502
|
], User);
|
|
443
503
|
export {
|
|
444
504
|
AUTHENTICATION_PATTERN,
|
|
445
505
|
AccountStatus,
|
|
446
506
|
AccountType,
|
|
447
507
|
BaseEntity,
|
|
508
|
+
CreateSubAdminDto,
|
|
448
509
|
JobRMQAdapter,
|
|
449
510
|
JobTCPAdapter,
|
|
450
511
|
LoginDto,
|
|
@@ -452,8 +513,8 @@ export {
|
|
|
452
513
|
RESUME_PARSER_PATTERN,
|
|
453
514
|
RefreshDto,
|
|
454
515
|
RefreshToken,
|
|
516
|
+
ResumeParserLog,
|
|
455
517
|
SUBADMIN_PATTERN,
|
|
456
|
-
SubAdminDto,
|
|
457
518
|
ToggleSubAdminVisibilityDto,
|
|
458
519
|
UpdateSubAdminDto,
|
|
459
520
|
User,
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
export declare class
|
|
1
|
+
export declare class CreateSubAdminDto {
|
|
2
|
+
uniqueId: string;
|
|
3
|
+
userName: string;
|
|
2
4
|
firstName: string;
|
|
3
5
|
lastName: string;
|
|
4
6
|
email: string;
|
|
5
7
|
mobile: string;
|
|
6
|
-
|
|
8
|
+
accountType: string;
|
|
9
|
+
accountStatus: string;
|
|
7
10
|
}
|