@experts_hub/shared 1.0.40 → 1.0.42
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/question.entity.d.ts +12 -0
- package/dist/index.d.mts +38 -1
- package/dist/index.d.ts +38 -1
- package/dist/index.js +45 -0
- package/dist/index.mjs +45 -0
- package/dist/modules/index.d.ts +3 -0
- package/dist/modules/onboarding/index.d.ts +1 -0
- package/dist/modules/onboarding/pattern/pattern.d.ts +3 -0
- package/dist/modules/otp/index.d.ts +1 -0
- package/dist/modules/otp/pattern/pattern.d.ts +4 -0
- package/dist/modules/question/dto/create-question.dto.d.ts +7 -0
- package/dist/modules/question/dto/index.d.ts +1 -0
- package/dist/modules/question/index.d.ts +3 -0
- package/dist/modules/question/pattern/pattern.d.ts +3 -0
- package/dist/modules/question/question.interface.d.ts +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseEntity } from './base.entity';
|
|
2
|
+
export declare enum QuestionFor {
|
|
3
|
+
CLIENT = "CLIENT",
|
|
4
|
+
FREELANCER = "FREELANCER"
|
|
5
|
+
}
|
|
6
|
+
export declare class Question extends BaseEntity {
|
|
7
|
+
questionId: number;
|
|
8
|
+
question: string;
|
|
9
|
+
questionFor: QuestionFor;
|
|
10
|
+
options: string[];
|
|
11
|
+
isActive: boolean;
|
|
12
|
+
}
|
package/dist/index.d.mts
CHANGED
|
@@ -23,6 +23,15 @@ declare class LogoutDto {
|
|
|
23
23
|
refreshToken: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
declare const OTP_PATTERN: {
|
|
27
|
+
handleSendOtp: string;
|
|
28
|
+
handleVerifyOtp: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
declare const ONBOARDING_PATTERN: {
|
|
32
|
+
handleFreelancerAccountCreation: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
26
35
|
declare const RESUME_PARSER_PATTERN: {
|
|
27
36
|
handleResumeParsing: string;
|
|
28
37
|
};
|
|
@@ -141,6 +150,34 @@ interface IAttachPermissionsToSubAdminResponse {
|
|
|
141
150
|
message: string;
|
|
142
151
|
}
|
|
143
152
|
|
|
153
|
+
declare const QUESTION_PATTERN: {
|
|
154
|
+
fetchQuestions: string;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare class CreateQuestionDto {
|
|
158
|
+
questionId: string;
|
|
159
|
+
question: string;
|
|
160
|
+
questionFor: string;
|
|
161
|
+
options: string;
|
|
162
|
+
isActive: boolean;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface IFetchQuestionQuery {
|
|
166
|
+
page_size?: number;
|
|
167
|
+
page: number;
|
|
168
|
+
searchText?: string;
|
|
169
|
+
question: string;
|
|
170
|
+
right: string;
|
|
171
|
+
sortColumn?: string;
|
|
172
|
+
sortBy?: string;
|
|
173
|
+
}
|
|
174
|
+
interface IFetchQuestionResponse {
|
|
175
|
+
statusCode: number;
|
|
176
|
+
status: boolean;
|
|
177
|
+
message: string;
|
|
178
|
+
data: any;
|
|
179
|
+
}
|
|
180
|
+
|
|
144
181
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
145
182
|
|
|
146
183
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -232,4 +269,4 @@ declare class User extends BaseEntity {
|
|
|
232
269
|
resumeParserLogs: ResumeParserLog[];
|
|
233
270
|
}
|
|
234
271
|
|
|
235
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, Otp, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
272
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateQuestionDto, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,15 @@ declare class LogoutDto {
|
|
|
23
23
|
refreshToken: string;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
declare const OTP_PATTERN: {
|
|
27
|
+
handleSendOtp: string;
|
|
28
|
+
handleVerifyOtp: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
declare const ONBOARDING_PATTERN: {
|
|
32
|
+
handleFreelancerAccountCreation: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
26
35
|
declare const RESUME_PARSER_PATTERN: {
|
|
27
36
|
handleResumeParsing: string;
|
|
28
37
|
};
|
|
@@ -141,6 +150,34 @@ interface IAttachPermissionsToSubAdminResponse {
|
|
|
141
150
|
message: string;
|
|
142
151
|
}
|
|
143
152
|
|
|
153
|
+
declare const QUESTION_PATTERN: {
|
|
154
|
+
fetchQuestions: string;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
declare class CreateQuestionDto {
|
|
158
|
+
questionId: string;
|
|
159
|
+
question: string;
|
|
160
|
+
questionFor: string;
|
|
161
|
+
options: string;
|
|
162
|
+
isActive: boolean;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
interface IFetchQuestionQuery {
|
|
166
|
+
page_size?: number;
|
|
167
|
+
page: number;
|
|
168
|
+
searchText?: string;
|
|
169
|
+
question: string;
|
|
170
|
+
right: string;
|
|
171
|
+
sortColumn?: string;
|
|
172
|
+
sortBy?: string;
|
|
173
|
+
}
|
|
174
|
+
interface IFetchQuestionResponse {
|
|
175
|
+
statusCode: number;
|
|
176
|
+
status: boolean;
|
|
177
|
+
message: string;
|
|
178
|
+
data: any;
|
|
179
|
+
}
|
|
180
|
+
|
|
144
181
|
declare const UserTCPAdapter: () => MicroserviceOptions;
|
|
145
182
|
|
|
146
183
|
declare const JobTCPAdapter: () => MicroserviceOptions;
|
|
@@ -232,4 +269,4 @@ declare class User extends BaseEntity {
|
|
|
232
269
|
resumeParserLogs: ResumeParserLog[];
|
|
233
270
|
}
|
|
234
271
|
|
|
235
|
-
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, Otp, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
|
272
|
+
export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateQuestionDto, CreateSubAdminDto, type IAttachPermissionsToSubAdminResponse, type ICreateSubAdminPayload, type ICreateSubAdminResponse, type IDeleteSubAdminResponse, type IFetchQuestionQuery, type IFetchQuestionResponse, type IFetchSubAdminByIdQuery, type IFetchSubAdminByIdResponse, type IFetchSubAdminQuery, type IFetchSubAdminResponse, type IUpdateSubAdminAccountStatusPayload, type IUpdateSubAdminAccountStatusResponse, type IUpdateSubAdminPayload, type IUpdateSubAdminResponse, JobRMQAdapter, JobTCPAdapter, LoginDto, LogoutDto, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
|
package/dist/index.js
CHANGED
|
@@ -31,12 +31,16 @@ __export(index_exports, {
|
|
|
31
31
|
AccountStatus: () => AccountStatus,
|
|
32
32
|
AccountType: () => AccountType,
|
|
33
33
|
BaseEntity: () => BaseEntity,
|
|
34
|
+
CreateQuestionDto: () => CreateQuestionDto,
|
|
34
35
|
CreateSubAdminDto: () => CreateSubAdminDto,
|
|
35
36
|
JobRMQAdapter: () => JobRMQAdapter,
|
|
36
37
|
JobTCPAdapter: () => JobTCPAdapter,
|
|
37
38
|
LoginDto: () => LoginDto,
|
|
38
39
|
LogoutDto: () => LogoutDto,
|
|
40
|
+
ONBOARDING_PATTERN: () => ONBOARDING_PATTERN,
|
|
41
|
+
OTP_PATTERN: () => OTP_PATTERN,
|
|
39
42
|
Otp: () => Otp,
|
|
43
|
+
QUESTION_PATTERN: () => QUESTION_PATTERN,
|
|
40
44
|
RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
|
|
41
45
|
RefreshDto: () => RefreshDto,
|
|
42
46
|
RefreshToken: () => RefreshToken,
|
|
@@ -88,6 +92,17 @@ __decorateClass([
|
|
|
88
92
|
(0, import_class_validator3.IsNotEmpty)({ message: "Please provide refresh token." })
|
|
89
93
|
], LogoutDto.prototype, "refreshToken", 2);
|
|
90
94
|
|
|
95
|
+
// src/modules/otp/pattern/pattern.ts
|
|
96
|
+
var OTP_PATTERN = {
|
|
97
|
+
handleSendOtp: "handle.send.otp",
|
|
98
|
+
handleVerifyOtp: "handle.verify.otp"
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// src/modules/onboarding/pattern/pattern.ts
|
|
102
|
+
var ONBOARDING_PATTERN = {
|
|
103
|
+
handleFreelancerAccountCreation: "handle.freelancer.account.creation"
|
|
104
|
+
};
|
|
105
|
+
|
|
91
106
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
92
107
|
var RESUME_PARSER_PATTERN = {
|
|
93
108
|
handleResumeParsing: "handle.resume.parsing"
|
|
@@ -177,6 +192,32 @@ __decorateClass([
|
|
|
177
192
|
(0, import_class_validator6.IsNotEmpty)({ message: "Please enter account status." })
|
|
178
193
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
179
194
|
|
|
195
|
+
// src/modules/question/pattern/pattern.ts
|
|
196
|
+
var QUESTION_PATTERN = {
|
|
197
|
+
fetchQuestions: "fetch.questions"
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
// src/modules/question/dto/create-question.dto.ts
|
|
201
|
+
var import_class_validator7 = require("class-validator");
|
|
202
|
+
var CreateQuestionDto = class {
|
|
203
|
+
};
|
|
204
|
+
__decorateClass([
|
|
205
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter unique id." })
|
|
206
|
+
], CreateQuestionDto.prototype, "questionId", 2);
|
|
207
|
+
__decorateClass([
|
|
208
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter username." })
|
|
209
|
+
], CreateQuestionDto.prototype, "question", 2);
|
|
210
|
+
__decorateClass([
|
|
211
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter first name." })
|
|
212
|
+
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
213
|
+
__decorateClass([
|
|
214
|
+
(0, import_class_validator7.IsNotEmpty)({ message: "Please enter last name." })
|
|
215
|
+
], CreateQuestionDto.prototype, "options", 2);
|
|
216
|
+
__decorateClass([
|
|
217
|
+
(0, import_class_validator7.IsOptional)(),
|
|
218
|
+
(0, import_class_validator7.IsBoolean)({ message: "Whether the question status active" })
|
|
219
|
+
], CreateQuestionDto.prototype, "isActive", 2);
|
|
220
|
+
|
|
180
221
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
181
222
|
var import_dotenv = require("dotenv");
|
|
182
223
|
var import_microservices = require("@nestjs/microservices");
|
|
@@ -573,12 +614,16 @@ User = __decorateClass([
|
|
|
573
614
|
AccountStatus,
|
|
574
615
|
AccountType,
|
|
575
616
|
BaseEntity,
|
|
617
|
+
CreateQuestionDto,
|
|
576
618
|
CreateSubAdminDto,
|
|
577
619
|
JobRMQAdapter,
|
|
578
620
|
JobTCPAdapter,
|
|
579
621
|
LoginDto,
|
|
580
622
|
LogoutDto,
|
|
623
|
+
ONBOARDING_PATTERN,
|
|
624
|
+
OTP_PATTERN,
|
|
581
625
|
Otp,
|
|
626
|
+
QUESTION_PATTERN,
|
|
582
627
|
RESUME_PARSER_PATTERN,
|
|
583
628
|
RefreshDto,
|
|
584
629
|
RefreshToken,
|
package/dist/index.mjs
CHANGED
|
@@ -53,6 +53,17 @@ __decorateClass([
|
|
|
53
53
|
IsNotEmpty3({ message: "Please provide refresh token." })
|
|
54
54
|
], LogoutDto.prototype, "refreshToken", 2);
|
|
55
55
|
|
|
56
|
+
// src/modules/otp/pattern/pattern.ts
|
|
57
|
+
var OTP_PATTERN = {
|
|
58
|
+
handleSendOtp: "handle.send.otp",
|
|
59
|
+
handleVerifyOtp: "handle.verify.otp"
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
// src/modules/onboarding/pattern/pattern.ts
|
|
63
|
+
var ONBOARDING_PATTERN = {
|
|
64
|
+
handleFreelancerAccountCreation: "handle.freelancer.account.creation"
|
|
65
|
+
};
|
|
66
|
+
|
|
56
67
|
// src/modules/resume-parser/pattern/pattern.ts
|
|
57
68
|
var RESUME_PARSER_PATTERN = {
|
|
58
69
|
handleResumeParsing: "handle.resume.parsing"
|
|
@@ -144,6 +155,36 @@ __decorateClass([
|
|
|
144
155
|
IsNotEmpty5({ message: "Please enter account status." })
|
|
145
156
|
], UpdateSubAdminDto.prototype, "accountStatus", 2);
|
|
146
157
|
|
|
158
|
+
// src/modules/question/pattern/pattern.ts
|
|
159
|
+
var QUESTION_PATTERN = {
|
|
160
|
+
fetchQuestions: "fetch.questions"
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
// src/modules/question/dto/create-question.dto.ts
|
|
164
|
+
import {
|
|
165
|
+
IsNotEmpty as IsNotEmpty6,
|
|
166
|
+
IsOptional as IsOptional3,
|
|
167
|
+
IsBoolean as IsBoolean3
|
|
168
|
+
} from "class-validator";
|
|
169
|
+
var CreateQuestionDto = class {
|
|
170
|
+
};
|
|
171
|
+
__decorateClass([
|
|
172
|
+
IsNotEmpty6({ message: "Please enter unique id." })
|
|
173
|
+
], CreateQuestionDto.prototype, "questionId", 2);
|
|
174
|
+
__decorateClass([
|
|
175
|
+
IsNotEmpty6({ message: "Please enter username." })
|
|
176
|
+
], CreateQuestionDto.prototype, "question", 2);
|
|
177
|
+
__decorateClass([
|
|
178
|
+
IsNotEmpty6({ message: "Please enter first name." })
|
|
179
|
+
], CreateQuestionDto.prototype, "questionFor", 2);
|
|
180
|
+
__decorateClass([
|
|
181
|
+
IsNotEmpty6({ message: "Please enter last name." })
|
|
182
|
+
], CreateQuestionDto.prototype, "options", 2);
|
|
183
|
+
__decorateClass([
|
|
184
|
+
IsOptional3(),
|
|
185
|
+
IsBoolean3({ message: "Whether the question status active" })
|
|
186
|
+
], CreateQuestionDto.prototype, "isActive", 2);
|
|
187
|
+
|
|
147
188
|
// src/adapters/tcp/user.tcp.adapter.ts
|
|
148
189
|
import { config } from "dotenv";
|
|
149
190
|
import { Transport } from "@nestjs/microservices";
|
|
@@ -569,12 +610,16 @@ export {
|
|
|
569
610
|
AccountStatus,
|
|
570
611
|
AccountType,
|
|
571
612
|
BaseEntity,
|
|
613
|
+
CreateQuestionDto,
|
|
572
614
|
CreateSubAdminDto,
|
|
573
615
|
JobRMQAdapter,
|
|
574
616
|
JobTCPAdapter,
|
|
575
617
|
LoginDto,
|
|
576
618
|
LogoutDto,
|
|
619
|
+
ONBOARDING_PATTERN,
|
|
620
|
+
OTP_PATTERN,
|
|
577
621
|
Otp,
|
|
622
|
+
QUESTION_PATTERN,
|
|
578
623
|
RESUME_PARSER_PATTERN,
|
|
579
624
|
RefreshDto,
|
|
580
625
|
RefreshToken,
|
package/dist/modules/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pattern/pattern';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './pattern/pattern';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './create-question.dto';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface IFetchQuestionQuery {
|
|
2
|
+
page_size?: number;
|
|
3
|
+
page: number;
|
|
4
|
+
searchText?: string;
|
|
5
|
+
question: string;
|
|
6
|
+
right: string;
|
|
7
|
+
sortColumn?: string;
|
|
8
|
+
sortBy?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IFetchQuestionResponse {
|
|
11
|
+
statusCode: number;
|
|
12
|
+
status: boolean;
|
|
13
|
+
message: string;
|
|
14
|
+
data: any;
|
|
15
|
+
}
|