@experts_hub/shared 1.0.32 → 1.0.34
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/index.d.mts +14 -4
- package/dist/index.d.ts +14 -4
- package/dist/index.js +36 -13
- package/dist/index.mjs +36 -16
- package/dist/modules/index.d.ts +1 -0
- package/dist/modules/resume-parser/index.d.ts +1 -0
- package/dist/modules/resume-parser/pattern/pattern.d.ts +3 -0
- 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/index.d.mts
CHANGED
|
@@ -23,6 +23,10 @@ declare class LogoutDto {
|
|
|
23
23
|
refreshToken: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
declare const RESUME_PARSER_PATTERN: {
|
|
27
|
+
handleResumeParsing: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
26
30
|
declare const SUBADMIN_PATTERN: {
|
|
27
31
|
fetchSubAdmins: string;
|
|
28
32
|
fetchDeletedSubAdmins: string;
|
|
@@ -34,12 +38,15 @@ declare const SUBADMIN_PATTERN: {
|
|
|
34
38
|
deleteSubAdmin: string;
|
|
35
39
|
};
|
|
36
40
|
|
|
37
|
-
declare class
|
|
41
|
+
declare class CreateSubAdminDto {
|
|
42
|
+
uniqueId: string;
|
|
43
|
+
userName: string;
|
|
38
44
|
firstName: string;
|
|
39
45
|
lastName: string;
|
|
40
46
|
email: string;
|
|
41
47
|
mobile: string;
|
|
42
|
-
|
|
48
|
+
accountType: string;
|
|
49
|
+
accountStatus: string;
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
declare class ToggleSubAdminVisibilityDto {
|
|
@@ -47,11 +54,14 @@ declare class ToggleSubAdminVisibilityDto {
|
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
declare class UpdateSubAdminDto {
|
|
57
|
+
uniqueId: string;
|
|
58
|
+
userName: string;
|
|
50
59
|
firstName: string;
|
|
51
60
|
lastName: string;
|
|
52
61
|
email: string;
|
|
53
62
|
mobile: string;
|
|
54
|
-
|
|
63
|
+
accountType: string;
|
|
64
|
+
accountStatus: string;
|
|
55
65
|
}
|
|
56
66
|
|
|
57
67
|
interface IFetchSubAdminQuery {
|
|
@@ -185,4 +195,4 @@ declare class User extends BaseEntity {
|
|
|
185
195
|
refreshTokens: RefreshToken[];
|
|
186
196
|
}
|
|
187
197
|
|
|
188
|
-
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, RefreshDto, RefreshToken, SUBADMIN_PATTERN,
|
|
198
|
+
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, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,10 @@ declare class LogoutDto {
|
|
|
23
23
|
refreshToken: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
declare const RESUME_PARSER_PATTERN: {
|
|
27
|
+
handleResumeParsing: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
26
30
|
declare const SUBADMIN_PATTERN: {
|
|
27
31
|
fetchSubAdmins: string;
|
|
28
32
|
fetchDeletedSubAdmins: string;
|
|
@@ -34,12 +38,15 @@ declare const SUBADMIN_PATTERN: {
|
|
|
34
38
|
deleteSubAdmin: string;
|
|
35
39
|
};
|
|
36
40
|
|
|
37
|
-
declare class
|
|
41
|
+
declare class CreateSubAdminDto {
|
|
42
|
+
uniqueId: string;
|
|
43
|
+
userName: string;
|
|
38
44
|
firstName: string;
|
|
39
45
|
lastName: string;
|
|
40
46
|
email: string;
|
|
41
47
|
mobile: string;
|
|
42
|
-
|
|
48
|
+
accountType: string;
|
|
49
|
+
accountStatus: string;
|
|
43
50
|
}
|
|
44
51
|
|
|
45
52
|
declare class ToggleSubAdminVisibilityDto {
|
|
@@ -47,11 +54,14 @@ declare class ToggleSubAdminVisibilityDto {
|
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
declare class UpdateSubAdminDto {
|
|
57
|
+
uniqueId: string;
|
|
58
|
+
userName: string;
|
|
50
59
|
firstName: string;
|
|
51
60
|
lastName: string;
|
|
52
61
|
email: string;
|
|
53
62
|
mobile: string;
|
|
54
|
-
|
|
63
|
+
accountType: string;
|
|
64
|
+
accountStatus: string;
|
|
55
65
|
}
|
|
56
66
|
|
|
57
67
|
interface IFetchSubAdminQuery {
|
|
@@ -185,4 +195,4 @@ declare class User extends BaseEntity {
|
|
|
185
195
|
refreshTokens: RefreshToken[];
|
|
186
196
|
}
|
|
187
197
|
|
|
188
|
-
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, RefreshDto, RefreshToken, SUBADMIN_PATTERN,
|
|
198
|
+
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, SUBADMIN_PATTERN, ToggleSubAdminVisibilityDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -31,14 +31,15 @@ __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,
|
|
37
38
|
LogoutDto: () => LogoutDto,
|
|
39
|
+
RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
|
|
38
40
|
RefreshDto: () => RefreshDto,
|
|
39
41
|
RefreshToken: () => RefreshToken,
|
|
40
42
|
SUBADMIN_PATTERN: () => SUBADMIN_PATTERN,
|
|
41
|
-
SubAdminDto: () => SubAdminDto,
|
|
42
43
|
ToggleSubAdminVisibilityDto: () => ToggleSubAdminVisibilityDto,
|
|
43
44
|
UpdateSubAdminDto: () => UpdateSubAdminDto,
|
|
44
45
|
User: () => User,
|
|
@@ -85,6 +86,11 @@ __decorateClass([
|
|
|
85
86
|
(0, import_class_validator3.IsNotEmpty)({ message: "Please provide refresh token." })
|
|
86
87
|
], LogoutDto.prototype, "refreshToken", 2);
|
|
87
88
|
|
|
89
|
+
// src/modules/resume-parser/pattern/pattern.ts
|
|
90
|
+
var RESUME_PARSER_PATTERN = {
|
|
91
|
+
handleResumeParsing: "handle.resume.parsing"
|
|
92
|
+
};
|
|
93
|
+
|
|
88
94
|
// src/modules/user/subadmin/pattern/pattern.ts
|
|
89
95
|
var SUBADMIN_PATTERN = {
|
|
90
96
|
fetchSubAdmins: "fetch.subadmins",
|
|
@@ -99,24 +105,32 @@ var SUBADMIN_PATTERN = {
|
|
|
99
105
|
|
|
100
106
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
101
107
|
var import_class_validator4 = require("class-validator");
|
|
102
|
-
var
|
|
108
|
+
var CreateSubAdminDto = class {
|
|
103
109
|
};
|
|
110
|
+
__decorateClass([
|
|
111
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter unique id." })
|
|
112
|
+
], CreateSubAdminDto.prototype, "uniqueId", 2);
|
|
113
|
+
__decorateClass([
|
|
114
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter username." })
|
|
115
|
+
], CreateSubAdminDto.prototype, "userName", 2);
|
|
104
116
|
__decorateClass([
|
|
105
117
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter first name." })
|
|
106
|
-
],
|
|
118
|
+
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
107
119
|
__decorateClass([
|
|
108
120
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter last name." })
|
|
109
|
-
],
|
|
121
|
+
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
110
122
|
__decorateClass([
|
|
111
123
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter email." })
|
|
112
|
-
],
|
|
124
|
+
], CreateSubAdminDto.prototype, "email", 2);
|
|
113
125
|
__decorateClass([
|
|
114
126
|
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
115
|
-
],
|
|
127
|
+
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
116
128
|
__decorateClass([
|
|
117
|
-
(0, import_class_validator4.
|
|
118
|
-
|
|
119
|
-
|
|
129
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter acoount type." })
|
|
130
|
+
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
131
|
+
__decorateClass([
|
|
132
|
+
(0, import_class_validator4.IsNotEmpty)({ message: "Please enter account status." })
|
|
133
|
+
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
120
134
|
|
|
121
135
|
// src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
|
|
122
136
|
var import_class_validator5 = require("class-validator");
|
|
@@ -130,6 +144,12 @@ __decorateClass([
|
|
|
130
144
|
var import_class_validator6 = require("class-validator");
|
|
131
145
|
var UpdateSubAdminDto = class {
|
|
132
146
|
};
|
|
147
|
+
__decorateClass([
|
|
148
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter unique id." })
|
|
149
|
+
], UpdateSubAdminDto.prototype, "uniqueId", 2);
|
|
150
|
+
__decorateClass([
|
|
151
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter username." })
|
|
152
|
+
], UpdateSubAdminDto.prototype, "userName", 2);
|
|
133
153
|
__decorateClass([
|
|
134
154
|
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter first name." })
|
|
135
155
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
@@ -143,9 +163,11 @@ __decorateClass([
|
|
|
143
163
|
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter mobile number." })
|
|
144
164
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
145
165
|
__decorateClass([
|
|
146
|
-
(0, import_class_validator6.
|
|
147
|
-
|
|
148
|
-
|
|
166
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter acoount type." })
|
|
167
|
+
], UpdateSubAdminDto.prototype, "accountType", 2);
|
|
168
|
+
__decorateClass([
|
|
169
|
+
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter account status." })
|
|
170
|
+
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
149
171
|
|
|
150
172
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
151
173
|
var import_dotenv = require("dotenv");
|
|
@@ -454,14 +476,15 @@ User = __decorateClass([
|
|
|
454
476
|
AccountStatus,
|
|
455
477
|
AccountType,
|
|
456
478
|
BaseEntity,
|
|
479
|
+
CreateSubAdminDto,
|
|
457
480
|
JobRMQAdapter,
|
|
458
481
|
JobTCPAdapter,
|
|
459
482
|
LoginDto,
|
|
460
483
|
LogoutDto,
|
|
484
|
+
RESUME_PARSER_PATTERN,
|
|
461
485
|
RefreshDto,
|
|
462
486
|
RefreshToken,
|
|
463
487
|
SUBADMIN_PATTERN,
|
|
464
|
-
SubAdminDto,
|
|
465
488
|
ToggleSubAdminVisibilityDto,
|
|
466
489
|
UpdateSubAdminDto,
|
|
467
490
|
User,
|
package/dist/index.mjs
CHANGED
|
@@ -53,6 +53,11 @@ __decorateClass([
|
|
|
53
53
|
IsNotEmpty3({ message: "Please provide refresh token." })
|
|
54
54
|
], LogoutDto.prototype, "refreshToken", 2);
|
|
55
55
|
|
|
56
|
+
// src/modules/resume-parser/pattern/pattern.ts
|
|
57
|
+
var RESUME_PARSER_PATTERN = {
|
|
58
|
+
handleResumeParsing: "handle.resume.parsing"
|
|
59
|
+
};
|
|
60
|
+
|
|
56
61
|
// src/modules/user/subadmin/pattern/pattern.ts
|
|
57
62
|
var SUBADMIN_PATTERN = {
|
|
58
63
|
fetchSubAdmins: "fetch.subadmins",
|
|
@@ -67,28 +72,34 @@ var SUBADMIN_PATTERN = {
|
|
|
67
72
|
|
|
68
73
|
// src/modules/user/subadmin/dto/create-subadmin.dto.ts
|
|
69
74
|
import {
|
|
70
|
-
IsNotEmpty as IsNotEmpty4
|
|
71
|
-
IsOptional,
|
|
72
|
-
IsBoolean
|
|
75
|
+
IsNotEmpty as IsNotEmpty4
|
|
73
76
|
} from "class-validator";
|
|
74
|
-
var
|
|
77
|
+
var CreateSubAdminDto = class {
|
|
75
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);
|
|
76
85
|
__decorateClass([
|
|
77
86
|
IsNotEmpty4({ message: "Please enter first name." })
|
|
78
|
-
],
|
|
87
|
+
], CreateSubAdminDto.prototype, "firstName", 2);
|
|
79
88
|
__decorateClass([
|
|
80
89
|
IsNotEmpty4({ message: "Please enter last name." })
|
|
81
|
-
],
|
|
90
|
+
], CreateSubAdminDto.prototype, "lastName", 2);
|
|
82
91
|
__decorateClass([
|
|
83
92
|
IsNotEmpty4({ message: "Please enter email." })
|
|
84
|
-
],
|
|
93
|
+
], CreateSubAdminDto.prototype, "email", 2);
|
|
85
94
|
__decorateClass([
|
|
86
95
|
IsNotEmpty4({ message: "Please enter mobile number." })
|
|
87
|
-
],
|
|
96
|
+
], CreateSubAdminDto.prototype, "mobile", 2);
|
|
88
97
|
__decorateClass([
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
98
|
+
IsNotEmpty4({ message: "Please enter acoount type." })
|
|
99
|
+
], CreateSubAdminDto.prototype, "accountType", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
IsNotEmpty4({ message: "Please enter account status." })
|
|
102
|
+
], CreateSubAdminDto.prototype, "accountStatus", 2);
|
|
92
103
|
|
|
93
104
|
// src/modules/user/subadmin/dto/toggle-subadmin-visibility.dto.ts
|
|
94
105
|
import { IsBoolean as IsBoolean2 } from "class-validator";
|
|
@@ -99,9 +110,15 @@ __decorateClass([
|
|
|
99
110
|
], ToggleSubAdminVisibilityDto.prototype, "isActive", 2);
|
|
100
111
|
|
|
101
112
|
// src/modules/user/subadmin/dto/update-subadmin.dto.ts
|
|
102
|
-
import {
|
|
113
|
+
import { IsNotEmpty as IsNotEmpty5 } from "class-validator";
|
|
103
114
|
var UpdateSubAdminDto = class {
|
|
104
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);
|
|
105
122
|
__decorateClass([
|
|
106
123
|
IsNotEmpty5({ message: "Please enter first name." })
|
|
107
124
|
], UpdateSubAdminDto.prototype, "firstName", 2);
|
|
@@ -115,9 +132,11 @@ __decorateClass([
|
|
|
115
132
|
IsNotEmpty5({ message: "Please enter mobile number." })
|
|
116
133
|
], UpdateSubAdminDto.prototype, "mobile", 2);
|
|
117
134
|
__decorateClass([
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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);
|
|
121
140
|
|
|
122
141
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
123
142
|
import { config } from "dotenv";
|
|
@@ -440,14 +459,15 @@ export {
|
|
|
440
459
|
AccountStatus,
|
|
441
460
|
AccountType,
|
|
442
461
|
BaseEntity,
|
|
462
|
+
CreateSubAdminDto,
|
|
443
463
|
JobRMQAdapter,
|
|
444
464
|
JobTCPAdapter,
|
|
445
465
|
LoginDto,
|
|
446
466
|
LogoutDto,
|
|
467
|
+
RESUME_PARSER_PATTERN,
|
|
447
468
|
RefreshDto,
|
|
448
469
|
RefreshToken,
|
|
449
470
|
SUBADMIN_PATTERN,
|
|
450
|
-
SubAdminDto,
|
|
451
471
|
ToggleSubAdminVisibilityDto,
|
|
452
472
|
UpdateSubAdminDto,
|
|
453
473
|
User,
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pattern/pattern';
|
|
@@ -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
|
}
|