@experts_hub/shared 1.0.40 → 1.0.41

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,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,11 @@ declare class LogoutDto {
23
23
  refreshToken: string;
24
24
  }
25
25
 
26
+ declare const OTP_PATTERN: {
27
+ handleSendOtp: string;
28
+ handleVerifyOtp: string;
29
+ };
30
+
26
31
  declare const RESUME_PARSER_PATTERN: {
27
32
  handleResumeParsing: string;
28
33
  };
@@ -141,6 +146,34 @@ interface IAttachPermissionsToSubAdminResponse {
141
146
  message: string;
142
147
  }
143
148
 
149
+ declare const QUESTION_PATTERN: {
150
+ fetchQuestions: string;
151
+ };
152
+
153
+ declare class CreateQuestionDto {
154
+ questionId: string;
155
+ question: string;
156
+ questionFor: string;
157
+ options: string;
158
+ isActive: boolean;
159
+ }
160
+
161
+ interface IFetchQuestionQuery {
162
+ page_size?: number;
163
+ page: number;
164
+ searchText?: string;
165
+ question: string;
166
+ right: string;
167
+ sortColumn?: string;
168
+ sortBy?: string;
169
+ }
170
+ interface IFetchQuestionResponse {
171
+ statusCode: number;
172
+ status: boolean;
173
+ message: string;
174
+ data: any;
175
+ }
176
+
144
177
  declare const UserTCPAdapter: () => MicroserviceOptions;
145
178
 
146
179
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -232,4 +265,4 @@ declare class User extends BaseEntity {
232
265
  resumeParserLogs: ResumeParserLog[];
233
266
  }
234
267
 
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 };
268
+ 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, 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,11 @@ declare class LogoutDto {
23
23
  refreshToken: string;
24
24
  }
25
25
 
26
+ declare const OTP_PATTERN: {
27
+ handleSendOtp: string;
28
+ handleVerifyOtp: string;
29
+ };
30
+
26
31
  declare const RESUME_PARSER_PATTERN: {
27
32
  handleResumeParsing: string;
28
33
  };
@@ -141,6 +146,34 @@ interface IAttachPermissionsToSubAdminResponse {
141
146
  message: string;
142
147
  }
143
148
 
149
+ declare const QUESTION_PATTERN: {
150
+ fetchQuestions: string;
151
+ };
152
+
153
+ declare class CreateQuestionDto {
154
+ questionId: string;
155
+ question: string;
156
+ questionFor: string;
157
+ options: string;
158
+ isActive: boolean;
159
+ }
160
+
161
+ interface IFetchQuestionQuery {
162
+ page_size?: number;
163
+ page: number;
164
+ searchText?: string;
165
+ question: string;
166
+ right: string;
167
+ sortColumn?: string;
168
+ sortBy?: string;
169
+ }
170
+ interface IFetchQuestionResponse {
171
+ statusCode: number;
172
+ status: boolean;
173
+ message: string;
174
+ data: any;
175
+ }
176
+
144
177
  declare const UserTCPAdapter: () => MicroserviceOptions;
145
178
 
146
179
  declare const JobTCPAdapter: () => MicroserviceOptions;
@@ -232,4 +265,4 @@ declare class User extends BaseEntity {
232
265
  resumeParserLogs: ResumeParserLog[];
233
266
  }
234
267
 
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 };
268
+ 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, 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,15 @@ __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
+ OTP_PATTERN: () => OTP_PATTERN,
39
41
  Otp: () => Otp,
42
+ QUESTION_PATTERN: () => QUESTION_PATTERN,
40
43
  RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
41
44
  RefreshDto: () => RefreshDto,
42
45
  RefreshToken: () => RefreshToken,
@@ -88,6 +91,12 @@ __decorateClass([
88
91
  (0, import_class_validator3.IsNotEmpty)({ message: "Please provide refresh token." })
89
92
  ], LogoutDto.prototype, "refreshToken", 2);
90
93
 
94
+ // src/modules/otp/pattern/pattern.ts
95
+ var OTP_PATTERN = {
96
+ handleSendOtp: "handle.send.otp",
97
+ handleVerifyOtp: "handle.verify.otp"
98
+ };
99
+
91
100
  // src/modules/resume-parser/pattern/pattern.ts
92
101
  var RESUME_PARSER_PATTERN = {
93
102
  handleResumeParsing: "handle.resume.parsing"
@@ -177,6 +186,32 @@ __decorateClass([
177
186
  (0, import_class_validator6.IsNotEmpty)({ message: "Please enter account status." })
178
187
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
179
188
 
189
+ // src/modules/question/pattern/pattern.ts
190
+ var QUESTION_PATTERN = {
191
+ fetchQuestions: "fetch.questions"
192
+ };
193
+
194
+ // src/modules/question/dto/create-question.dto.ts
195
+ var import_class_validator7 = require("class-validator");
196
+ var CreateQuestionDto = class {
197
+ };
198
+ __decorateClass([
199
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter unique id." })
200
+ ], CreateQuestionDto.prototype, "questionId", 2);
201
+ __decorateClass([
202
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter username." })
203
+ ], CreateQuestionDto.prototype, "question", 2);
204
+ __decorateClass([
205
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter first name." })
206
+ ], CreateQuestionDto.prototype, "questionFor", 2);
207
+ __decorateClass([
208
+ (0, import_class_validator7.IsNotEmpty)({ message: "Please enter last name." })
209
+ ], CreateQuestionDto.prototype, "options", 2);
210
+ __decorateClass([
211
+ (0, import_class_validator7.IsOptional)(),
212
+ (0, import_class_validator7.IsBoolean)({ message: "Whether the question status active" })
213
+ ], CreateQuestionDto.prototype, "isActive", 2);
214
+
180
215
  // src/adapters/tcp/user.tcp.adapter.ts
181
216
  var import_dotenv = require("dotenv");
182
217
  var import_microservices = require("@nestjs/microservices");
@@ -573,12 +608,15 @@ User = __decorateClass([
573
608
  AccountStatus,
574
609
  AccountType,
575
610
  BaseEntity,
611
+ CreateQuestionDto,
576
612
  CreateSubAdminDto,
577
613
  JobRMQAdapter,
578
614
  JobTCPAdapter,
579
615
  LoginDto,
580
616
  LogoutDto,
617
+ OTP_PATTERN,
581
618
  Otp,
619
+ QUESTION_PATTERN,
582
620
  RESUME_PARSER_PATTERN,
583
621
  RefreshDto,
584
622
  RefreshToken,
package/dist/index.mjs CHANGED
@@ -53,6 +53,12 @@ __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
+
56
62
  // src/modules/resume-parser/pattern/pattern.ts
57
63
  var RESUME_PARSER_PATTERN = {
58
64
  handleResumeParsing: "handle.resume.parsing"
@@ -144,6 +150,36 @@ __decorateClass([
144
150
  IsNotEmpty5({ message: "Please enter account status." })
145
151
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
146
152
 
153
+ // src/modules/question/pattern/pattern.ts
154
+ var QUESTION_PATTERN = {
155
+ fetchQuestions: "fetch.questions"
156
+ };
157
+
158
+ // src/modules/question/dto/create-question.dto.ts
159
+ import {
160
+ IsNotEmpty as IsNotEmpty6,
161
+ IsOptional as IsOptional3,
162
+ IsBoolean as IsBoolean3
163
+ } from "class-validator";
164
+ var CreateQuestionDto = class {
165
+ };
166
+ __decorateClass([
167
+ IsNotEmpty6({ message: "Please enter unique id." })
168
+ ], CreateQuestionDto.prototype, "questionId", 2);
169
+ __decorateClass([
170
+ IsNotEmpty6({ message: "Please enter username." })
171
+ ], CreateQuestionDto.prototype, "question", 2);
172
+ __decorateClass([
173
+ IsNotEmpty6({ message: "Please enter first name." })
174
+ ], CreateQuestionDto.prototype, "questionFor", 2);
175
+ __decorateClass([
176
+ IsNotEmpty6({ message: "Please enter last name." })
177
+ ], CreateQuestionDto.prototype, "options", 2);
178
+ __decorateClass([
179
+ IsOptional3(),
180
+ IsBoolean3({ message: "Whether the question status active" })
181
+ ], CreateQuestionDto.prototype, "isActive", 2);
182
+
147
183
  // src/adapters/tcp/user.tcp.adapter.ts
148
184
  import { config } from "dotenv";
149
185
  import { Transport } from "@nestjs/microservices";
@@ -569,12 +605,15 @@ export {
569
605
  AccountStatus,
570
606
  AccountType,
571
607
  BaseEntity,
608
+ CreateQuestionDto,
572
609
  CreateSubAdminDto,
573
610
  JobRMQAdapter,
574
611
  JobTCPAdapter,
575
612
  LoginDto,
576
613
  LogoutDto,
614
+ OTP_PATTERN,
577
615
  Otp,
616
+ QUESTION_PATTERN,
578
617
  RESUME_PARSER_PATTERN,
579
618
  RefreshDto,
580
619
  RefreshToken,
@@ -1,3 +1,5 @@
1
1
  export * from './authentication';
2
+ export * from './otp';
2
3
  export * from './resume-parser';
3
4
  export * from './user/subadmin';
5
+ export * from './question';
@@ -0,0 +1 @@
1
+ export * from './pattern/pattern';
@@ -0,0 +1,4 @@
1
+ export declare const OTP_PATTERN: {
2
+ handleSendOtp: string;
3
+ handleVerifyOtp: string;
4
+ };
@@ -0,0 +1,7 @@
1
+ export declare class CreateQuestionDto {
2
+ questionId: string;
3
+ question: string;
4
+ questionFor: string;
5
+ options: string;
6
+ isActive: boolean;
7
+ }
@@ -0,0 +1 @@
1
+ export * from './create-question.dto';
@@ -0,0 +1,3 @@
1
+ export * from './pattern/pattern';
2
+ export * from './dto';
3
+ export * from './question.interface';
@@ -0,0 +1,3 @@
1
+ export declare const QUESTION_PATTERN: {
2
+ fetchQuestions: string;
3
+ };
@@ -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
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.40",
3
+ "version": "1.0.41",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",