@experts_hub/shared 1.0.52 → 1.0.54

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.
@@ -5,3 +5,4 @@ export * from './resume-parser-log.entity';
5
5
  export * from './question.entity';
6
6
  export * from './otp.entity';
7
7
  export * from './freelancer-profile.entity';
8
+ export * from './company-profile.entity';
@@ -4,9 +4,11 @@ export declare enum QuestionFor {
4
4
  FREELANCER = "FREELANCER"
5
5
  }
6
6
  export declare class Question extends BaseEntity {
7
- questionId: number;
8
7
  question: string;
8
+ hint: string;
9
+ slug: string;
9
10
  questionFor: QuestionFor;
10
- options: string[];
11
+ type: string;
12
+ options: [];
11
13
  isActive: boolean;
12
14
  }
package/dist/index.d.mts CHANGED
@@ -304,11 +304,18 @@ declare enum QuestionFor {
304
304
  FREELANCER = "FREELANCER"
305
305
  }
306
306
  declare class Question extends BaseEntity {
307
- questionId: number;
308
307
  question: string;
308
+ hint: string;
309
+ slug: string;
309
310
  questionFor: QuestionFor;
310
- options: string[];
311
+ type: string;
312
+ options: [];
311
313
  isActive: boolean;
312
314
  }
313
315
 
314
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, ModeOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
316
+ declare class CompanyProfile extends BaseEntity {
317
+ userId: number;
318
+ companyName: string;
319
+ }
320
+
321
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, ModeOfWork, 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
@@ -304,11 +304,18 @@ declare enum QuestionFor {
304
304
  FREELANCER = "FREELANCER"
305
305
  }
306
306
  declare class Question extends BaseEntity {
307
- questionId: number;
308
307
  question: string;
308
+ hint: string;
309
+ slug: string;
309
310
  questionFor: QuestionFor;
310
- options: string[];
311
+ type: string;
312
+ options: [];
311
313
  isActive: boolean;
312
314
  }
313
315
 
314
- export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, ModeOfWork, ONBOARDING_PATTERN, OTP_PATTERN, Otp, QUESTION_PATTERN, Question, QuestionFor, RESUME_PARSER_PATTERN, RefreshDto, RefreshToken, ResumeParserLog, SUBADMIN_PATTERN, UpdateSubAdminAccountStatusDto, UpdateSubAdminDto, User, UserRMQAdapter, UserTCPAdapter };
316
+ declare class CompanyProfile extends BaseEntity {
317
+ userId: number;
318
+ companyName: string;
319
+ }
320
+
321
+ export { AUTHENTICATION_PATTERN, AccountStatus, AccountType, BaseEntity, CompanyProfile, CreateQuestionDto, CreateSubAdminDto, FreelancerProfile, 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, ModeOfWork, 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
@@ -31,6 +31,7 @@ __export(index_exports, {
31
31
  AccountStatus: () => AccountStatus,
32
32
  AccountType: () => AccountType,
33
33
  BaseEntity: () => BaseEntity,
34
+ CompanyProfile: () => CompanyProfile,
34
35
  CreateQuestionDto: () => CreateQuestionDto,
35
36
  CreateSubAdminDto: () => CreateSubAdminDto,
36
37
  FreelancerProfile: () => FreelancerProfile,
@@ -713,11 +714,14 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
713
714
  var Question = class extends BaseEntity {
714
715
  };
715
716
  __decorateClass([
716
- (0, import_typeorm7.Column)({ name: "question_id", type: "integer" })
717
- ], Question.prototype, "questionId", 2);
718
- __decorateClass([
719
- (0, import_typeorm7.Column)({ name: "question", type: "varchar", unique: true })
717
+ (0, import_typeorm7.Column)({ name: "question", type: "varchar" })
720
718
  ], Question.prototype, "question", 2);
719
+ __decorateClass([
720
+ (0, import_typeorm7.Column)({ name: "hint", type: "varchar", nullable: true })
721
+ ], Question.prototype, "hint", 2);
722
+ __decorateClass([
723
+ (0, import_typeorm7.Column)({ name: "slug", type: "varchar", nullable: true, unique: true })
724
+ ], Question.prototype, "slug", 2);
721
725
  __decorateClass([
722
726
  (0, import_typeorm7.Column)({
723
727
  name: "question_for",
@@ -727,7 +731,10 @@ __decorateClass([
727
731
  })
728
732
  ], Question.prototype, "questionFor", 2);
729
733
  __decorateClass([
730
- (0, import_typeorm7.Column)({ name: "options", type: "varchar", array: true })
734
+ (0, import_typeorm7.Column)({ name: "type", type: "varchar", nullable: true })
735
+ ], Question.prototype, "type", 2);
736
+ __decorateClass([
737
+ (0, import_typeorm7.Column)({ name: "options", type: "jsonb", nullable: true })
731
738
  ], Question.prototype, "options", 2);
732
739
  __decorateClass([
733
740
  (0, import_typeorm7.Column)({ name: "is_active", type: "boolean", default: false })
@@ -735,12 +742,29 @@ __decorateClass([
735
742
  Question = __decorateClass([
736
743
  (0, import_typeorm7.Entity)("questions")
737
744
  ], Question);
745
+
746
+ // src/entities/company-profile.entity.ts
747
+ var import_typeorm8 = require("typeorm");
748
+ var CompanyProfile = class extends BaseEntity {
749
+ };
750
+ // individual index to find company profile by user
751
+ __decorateClass([
752
+ (0, import_typeorm8.Column)({ name: "user_id", type: "integer", nullable: true }),
753
+ (0, import_typeorm8.Index)()
754
+ ], CompanyProfile.prototype, "userId", 2);
755
+ __decorateClass([
756
+ (0, import_typeorm8.Column)({ name: "company_name", type: "varchar" })
757
+ ], CompanyProfile.prototype, "companyName", 2);
758
+ CompanyProfile = __decorateClass([
759
+ (0, import_typeorm8.Entity)("company_profiles")
760
+ ], CompanyProfile);
738
761
  // Annotate the CommonJS export names for ESM import in node:
739
762
  0 && (module.exports = {
740
763
  AUTHENTICATION_PATTERN,
741
764
  AccountStatus,
742
765
  AccountType,
743
766
  BaseEntity,
767
+ CompanyProfile,
744
768
  CreateQuestionDto,
745
769
  CreateSubAdminDto,
746
770
  FreelancerProfile,
package/dist/index.mjs CHANGED
@@ -712,11 +712,14 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
712
712
  var Question = class extends BaseEntity {
713
713
  };
714
714
  __decorateClass([
715
- Column7({ name: "question_id", type: "integer" })
716
- ], Question.prototype, "questionId", 2);
717
- __decorateClass([
718
- Column7({ name: "question", type: "varchar", unique: true })
715
+ Column7({ name: "question", type: "varchar" })
719
716
  ], Question.prototype, "question", 2);
717
+ __decorateClass([
718
+ Column7({ name: "hint", type: "varchar", nullable: true })
719
+ ], Question.prototype, "hint", 2);
720
+ __decorateClass([
721
+ Column7({ name: "slug", type: "varchar", nullable: true, unique: true })
722
+ ], Question.prototype, "slug", 2);
720
723
  __decorateClass([
721
724
  Column7({
722
725
  name: "question_for",
@@ -726,7 +729,10 @@ __decorateClass([
726
729
  })
727
730
  ], Question.prototype, "questionFor", 2);
728
731
  __decorateClass([
729
- Column7({ name: "options", type: "varchar", array: true })
732
+ Column7({ name: "type", type: "varchar", nullable: true })
733
+ ], Question.prototype, "type", 2);
734
+ __decorateClass([
735
+ Column7({ name: "options", type: "jsonb", nullable: true })
730
736
  ], Question.prototype, "options", 2);
731
737
  __decorateClass([
732
738
  Column7({ name: "is_active", type: "boolean", default: false })
@@ -734,11 +740,32 @@ __decorateClass([
734
740
  Question = __decorateClass([
735
741
  Entity6("questions")
736
742
  ], Question);
743
+
744
+ // src/entities/company-profile.entity.ts
745
+ import {
746
+ Entity as Entity7,
747
+ Column as Column8,
748
+ Index as Index3
749
+ } from "typeorm";
750
+ var CompanyProfile = class extends BaseEntity {
751
+ };
752
+ // individual index to find company profile by user
753
+ __decorateClass([
754
+ Column8({ name: "user_id", type: "integer", nullable: true }),
755
+ Index3()
756
+ ], CompanyProfile.prototype, "userId", 2);
757
+ __decorateClass([
758
+ Column8({ name: "company_name", type: "varchar" })
759
+ ], CompanyProfile.prototype, "companyName", 2);
760
+ CompanyProfile = __decorateClass([
761
+ Entity7("company_profiles")
762
+ ], CompanyProfile);
737
763
  export {
738
764
  AUTHENTICATION_PATTERN,
739
765
  AccountStatus,
740
766
  AccountType,
741
767
  BaseEntity,
768
+ CompanyProfile,
742
769
  CreateQuestionDto,
743
770
  CreateSubAdminDto,
744
771
  FreelancerProfile,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.52",
3
+ "version": "1.0.54",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",