@experts_hub/shared 1.0.42 → 1.0.44

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.
@@ -2,4 +2,5 @@ export * from './base.entity';
2
2
  export * from './user.entity';
3
3
  export * from './refresh-token.entity';
4
4
  export * from './resume-parser-log.entity';
5
+ export * from './question.entity';
5
6
  export * from './otp.entity';
package/dist/index.d.mts CHANGED
@@ -269,4 +269,16 @@ declare class User extends BaseEntity {
269
269
  resumeParserLogs: ResumeParserLog[];
270
270
  }
271
271
 
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 };
272
+ declare enum QuestionFor {
273
+ CLIENT = "CLIENT",
274
+ FREELANCER = "FREELANCER"
275
+ }
276
+ declare class Question extends BaseEntity {
277
+ questionId: number;
278
+ question: string;
279
+ questionFor: QuestionFor;
280
+ options: string[];
281
+ isActive: boolean;
282
+ }
283
+
284
+ 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, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.d.ts CHANGED
@@ -269,4 +269,16 @@ declare class User extends BaseEntity {
269
269
  resumeParserLogs: ResumeParserLog[];
270
270
  }
271
271
 
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 };
272
+ declare enum QuestionFor {
273
+ CLIENT = "CLIENT",
274
+ FREELANCER = "FREELANCER"
275
+ }
276
+ declare class Question extends BaseEntity {
277
+ questionId: number;
278
+ question: string;
279
+ questionFor: QuestionFor;
280
+ options: string[];
281
+ isActive: boolean;
282
+ }
283
+
284
+ 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, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
package/dist/index.js CHANGED
@@ -41,6 +41,8 @@ __export(index_exports, {
41
41
  OTP_PATTERN: () => OTP_PATTERN,
42
42
  Otp: () => Otp,
43
43
  QUESTION_PATTERN: () => QUESTION_PATTERN,
44
+ Question: () => Question,
45
+ QuestionFor: () => QuestionFor,
44
46
  RESUME_PARSER_PATTERN: () => RESUME_PARSER_PATTERN,
45
47
  RefreshDto: () => RefreshDto,
46
48
  RefreshToken: () => RefreshToken,
@@ -608,6 +610,39 @@ __decorateClass([
608
610
  User = __decorateClass([
609
611
  (0, import_typeorm5.Entity)("users")
610
612
  ], User);
613
+
614
+ // src/entities/question.entity.ts
615
+ var import_typeorm6 = require("typeorm");
616
+ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
617
+ QuestionFor2["CLIENT"] = "CLIENT";
618
+ QuestionFor2["FREELANCER"] = "FREELANCER";
619
+ return QuestionFor2;
620
+ })(QuestionFor || {});
621
+ var Question = class extends BaseEntity {
622
+ };
623
+ __decorateClass([
624
+ (0, import_typeorm6.Column)({ name: "question_id", type: "integer" })
625
+ ], Question.prototype, "questionId", 2);
626
+ __decorateClass([
627
+ (0, import_typeorm6.Column)({ name: "question", type: "varchar", unique: true })
628
+ ], Question.prototype, "question", 2);
629
+ __decorateClass([
630
+ (0, import_typeorm6.Column)({
631
+ name: "question_for",
632
+ type: "enum",
633
+ enum: QuestionFor,
634
+ default: "CLIENT" /* CLIENT */
635
+ })
636
+ ], Question.prototype, "questionFor", 2);
637
+ __decorateClass([
638
+ (0, import_typeorm6.Column)({ name: "options", type: "varchar", array: true })
639
+ ], Question.prototype, "options", 2);
640
+ __decorateClass([
641
+ (0, import_typeorm6.Column)({ name: "is_active", type: "boolean", default: false })
642
+ ], Question.prototype, "isActive", 2);
643
+ Question = __decorateClass([
644
+ (0, import_typeorm6.Entity)("questions")
645
+ ], Question);
611
646
  // Annotate the CommonJS export names for ESM import in node:
612
647
  0 && (module.exports = {
613
648
  AUTHENTICATION_PATTERN,
@@ -624,6 +659,8 @@ User = __decorateClass([
624
659
  OTP_PATTERN,
625
660
  Otp,
626
661
  QUESTION_PATTERN,
662
+ Question,
663
+ QuestionFor,
627
664
  RESUME_PARSER_PATTERN,
628
665
  RefreshDto,
629
666
  RefreshToken,
package/dist/index.mjs CHANGED
@@ -605,6 +605,39 @@ __decorateClass([
605
605
  User = __decorateClass([
606
606
  Entity4("users")
607
607
  ], User);
608
+
609
+ // src/entities/question.entity.ts
610
+ import { Entity as Entity5, Column as Column6 } from "typeorm";
611
+ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
612
+ QuestionFor2["CLIENT"] = "CLIENT";
613
+ QuestionFor2["FREELANCER"] = "FREELANCER";
614
+ return QuestionFor2;
615
+ })(QuestionFor || {});
616
+ var Question = class extends BaseEntity {
617
+ };
618
+ __decorateClass([
619
+ Column6({ name: "question_id", type: "integer" })
620
+ ], Question.prototype, "questionId", 2);
621
+ __decorateClass([
622
+ Column6({ name: "question", type: "varchar", unique: true })
623
+ ], Question.prototype, "question", 2);
624
+ __decorateClass([
625
+ Column6({
626
+ name: "question_for",
627
+ type: "enum",
628
+ enum: QuestionFor,
629
+ default: "CLIENT" /* CLIENT */
630
+ })
631
+ ], Question.prototype, "questionFor", 2);
632
+ __decorateClass([
633
+ Column6({ name: "options", type: "varchar", array: true })
634
+ ], Question.prototype, "options", 2);
635
+ __decorateClass([
636
+ Column6({ name: "is_active", type: "boolean", default: false })
637
+ ], Question.prototype, "isActive", 2);
638
+ Question = __decorateClass([
639
+ Entity5("questions")
640
+ ], Question);
608
641
  export {
609
642
  AUTHENTICATION_PATTERN,
610
643
  AccountStatus,
@@ -620,6 +653,8 @@ export {
620
653
  OTP_PATTERN,
621
654
  Otp,
622
655
  QUESTION_PATTERN,
656
+ Question,
657
+ QuestionFor,
623
658
  RESUME_PARSER_PATTERN,
624
659
  RefreshDto,
625
660
  RefreshToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.42",
3
+ "version": "1.0.44",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",