@experts_hub/shared 1.0.62 → 1.0.64

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.mjs CHANGED
@@ -189,51 +189,23 @@ __decorateClass([
189
189
  IsNotEmpty7({ message: "Please enter answer." })
190
190
  ], FreelancerProfileQuestionDto.prototype, "answer", 2);
191
191
 
192
- // src/modules/onboarding/dto/client-profile-question.dto.ts
193
- import {
194
- IsUUID as IsUUID4,
195
- IsString as IsString3,
196
- IsNotEmpty as IsNotEmpty8,
197
- IsIn as IsIn2
198
- } from "class-validator";
199
- var ClientProfileQuestionDto = class {
200
- };
201
- __decorateClass([
202
- IsNotEmpty8({ message: "Please enter uuid." }),
203
- IsUUID4()
204
- ], ClientProfileQuestionDto.prototype, "uuid", 2);
205
- __decorateClass([
206
- IsNotEmpty8({ message: "Please enter question slug." }),
207
- IsString3(),
208
- IsIn2([
209
- "skills",
210
- "requiredFreelancer",
211
- "kindOfHiring",
212
- "modeOfHire",
213
- "foundUsOn"
214
- ])
215
- ], ClientProfileQuestionDto.prototype, "question_slug", 2);
216
- __decorateClass([
217
- IsNotEmpty8({ message: "Please enter answer." })
218
- ], ClientProfileQuestionDto.prototype, "answer", 2);
219
-
220
192
  // src/modules/onboarding/dto/freelancer-work-showcase.dto.ts
221
193
  import {
222
- IsNotEmpty as IsNotEmpty9,
194
+ IsNotEmpty as IsNotEmpty8,
223
195
  IsOptional,
224
196
  IsUrl,
225
- IsString as IsString4,
226
- IsUUID as IsUUID5
197
+ IsString as IsString3,
198
+ IsUUID as IsUUID4
227
199
  } from "class-validator";
228
200
  var FreelancerWorkShowcaseDto = class {
229
201
  };
230
202
  __decorateClass([
231
- IsNotEmpty9({ message: "Please enter uuid." }),
232
- IsUUID5()
203
+ IsNotEmpty8({ message: "Please enter uuid." }),
204
+ IsUUID4()
233
205
  ], FreelancerWorkShowcaseDto.prototype, "uuid", 2);
234
206
  __decorateClass([
235
- IsNotEmpty9({ message: "Please enter likedin profile url." }),
236
- IsString4(),
207
+ IsNotEmpty8({ message: "Please enter likedin profile url." }),
208
+ IsString3(),
237
209
  IsUrl({ require_protocol: true }, { message: "linkedinProfileLink must be a valid URL with protocol (e.g. https://)" })
238
210
  ], FreelancerWorkShowcaseDto.prototype, "linkedinProfileLink", 2);
239
211
  __decorateClass([
@@ -253,6 +225,70 @@ __decorateClass([
253
225
  IsUrl({ require_protocol: true }, { message: "portfolioLink must be a valid URL with protocol (e.g. https://)" })
254
226
  ], FreelancerWorkShowcaseDto.prototype, "portfolioLink", 2);
255
227
 
228
+ // src/modules/onboarding/dto/client-profile-question.dto.ts
229
+ import {
230
+ IsUUID as IsUUID5,
231
+ IsString as IsString4,
232
+ IsNotEmpty as IsNotEmpty9,
233
+ IsIn as IsIn2
234
+ } from "class-validator";
235
+ var ClientProfileQuestionDto = class {
236
+ };
237
+ __decorateClass([
238
+ IsNotEmpty9({ message: "Please enter uuid." }),
239
+ IsUUID5()
240
+ ], ClientProfileQuestionDto.prototype, "uuid", 2);
241
+ __decorateClass([
242
+ IsNotEmpty9({ message: "Please enter question slug." }),
243
+ IsString4(),
244
+ IsIn2([
245
+ "skills",
246
+ "requiredFreelancer",
247
+ "kindOfHiring",
248
+ "modeOfHire",
249
+ "foundUsOn"
250
+ ])
251
+ ], ClientProfileQuestionDto.prototype, "question_slug", 2);
252
+ __decorateClass([
253
+ IsNotEmpty9({ message: "Please enter answer." })
254
+ ], ClientProfileQuestionDto.prototype, "answer", 2);
255
+
256
+ // src/modules/onboarding/dto/client-create-account.dto.ts
257
+ import {
258
+ IsNotEmpty as IsNotEmpty10,
259
+ IsEmail as IsEmail2,
260
+ Matches as Matches2,
261
+ MinLength as MinLength2,
262
+ MaxLength as MaxLength2,
263
+ IsString as IsString5
264
+ } from "class-validator";
265
+ var ClientCreateAccountDto = class {
266
+ };
267
+ __decorateClass([
268
+ IsNotEmpty10({ message: "Please enter full name." }),
269
+ IsString5({ message: "Please enter valid full name." })
270
+ ], ClientCreateAccountDto.prototype, "fullName", 2);
271
+ __decorateClass([
272
+ IsNotEmpty10({ message: "Please enter email." }),
273
+ IsEmail2()
274
+ ], ClientCreateAccountDto.prototype, "email", 2);
275
+ __decorateClass([
276
+ IsNotEmpty10({ message: "Please enter company name." }),
277
+ IsString5({ message: "Please enter valid company name." })
278
+ ], ClientCreateAccountDto.prototype, "companyName", 2);
279
+ __decorateClass([
280
+ IsNotEmpty10({ message: "Please enter password." }),
281
+ MinLength2(6),
282
+ MaxLength2(32),
283
+ Matches2(/^(?=.*[A-Za-z])(?=.*\d)(?=.*[@$!%*?&])/, {
284
+ message: "Password must include letters, numbers and symbols."
285
+ })
286
+ ], ClientCreateAccountDto.prototype, "password", 2);
287
+ __decorateClass([
288
+ IsNotEmpty10({ message: "Please enter confirm password." }),
289
+ Match("password", { message: "Passwords do not match" })
290
+ ], ClientCreateAccountDto.prototype, "confirmPassword", 2);
291
+
256
292
  // src/modules/resume-parser/pattern/pattern.ts
257
293
  var RESUME_PARSER_PATTERN = {
258
294
  handleResumeParsing: "handle.resume.parsing"
@@ -272,76 +308,76 @@ var SUBADMIN_PATTERN = {
272
308
 
273
309
  // src/modules/user/subadmin/dto/create-subadmin.dto.ts
274
310
  import {
275
- IsNotEmpty as IsNotEmpty10
311
+ IsNotEmpty as IsNotEmpty11
276
312
  } from "class-validator";
277
313
  var CreateSubAdminDto = class {
278
314
  };
279
315
  __decorateClass([
280
- IsNotEmpty10({ message: "Please enter unique id." })
316
+ IsNotEmpty11({ message: "Please enter unique id." })
281
317
  ], CreateSubAdminDto.prototype, "uniqueId", 2);
282
318
  __decorateClass([
283
- IsNotEmpty10({ message: "Please enter username." })
319
+ IsNotEmpty11({ message: "Please enter username." })
284
320
  ], CreateSubAdminDto.prototype, "userName", 2);
285
321
  __decorateClass([
286
- IsNotEmpty10({ message: "Please enter first name." })
322
+ IsNotEmpty11({ message: "Please enter first name." })
287
323
  ], CreateSubAdminDto.prototype, "firstName", 2);
288
324
  __decorateClass([
289
- IsNotEmpty10({ message: "Please enter last name." })
325
+ IsNotEmpty11({ message: "Please enter last name." })
290
326
  ], CreateSubAdminDto.prototype, "lastName", 2);
291
327
  __decorateClass([
292
- IsNotEmpty10({ message: "Please enter email." })
328
+ IsNotEmpty11({ message: "Please enter email." })
293
329
  ], CreateSubAdminDto.prototype, "email", 2);
294
330
  __decorateClass([
295
- IsNotEmpty10({ message: "Please enter mobile number." })
331
+ IsNotEmpty11({ message: "Please enter mobile number." })
296
332
  ], CreateSubAdminDto.prototype, "mobile", 2);
297
333
  __decorateClass([
298
- IsNotEmpty10({ message: "Please enter the password." })
334
+ IsNotEmpty11({ message: "Please enter the password." })
299
335
  ], CreateSubAdminDto.prototype, "password", 2);
300
336
  __decorateClass([
301
- IsNotEmpty10({ message: "Please enter account type." })
337
+ IsNotEmpty11({ message: "Please enter account type." })
302
338
  ], CreateSubAdminDto.prototype, "accountType", 2);
303
339
  __decorateClass([
304
- IsNotEmpty10({ message: "Please enter account status." })
340
+ IsNotEmpty11({ message: "Please enter account status." })
305
341
  ], CreateSubAdminDto.prototype, "accountStatus", 2);
306
342
 
307
343
  // src/modules/user/subadmin/dto/update-subadmin-status.dto.ts
308
- import { IsString as IsString5 } from "class-validator";
344
+ import { IsString as IsString6 } from "class-validator";
309
345
  var UpdateSubAdminAccountStatusDto = class {
310
346
  };
311
347
  __decorateClass([
312
- IsString5()
348
+ IsString6()
313
349
  ], UpdateSubAdminAccountStatusDto.prototype, "accountStatus", 2);
314
350
 
315
351
  // src/modules/user/subadmin/dto/update-subadmin.dto.ts
316
- import { IsNotEmpty as IsNotEmpty11 } from "class-validator";
352
+ import { IsNotEmpty as IsNotEmpty12 } from "class-validator";
317
353
  var UpdateSubAdminDto = class {
318
354
  };
319
355
  __decorateClass([
320
- IsNotEmpty11({ message: "Please enter unique id." })
356
+ IsNotEmpty12({ message: "Please enter unique id." })
321
357
  ], UpdateSubAdminDto.prototype, "uniqueId", 2);
322
358
  __decorateClass([
323
- IsNotEmpty11({ message: "Please enter username." })
359
+ IsNotEmpty12({ message: "Please enter username." })
324
360
  ], UpdateSubAdminDto.prototype, "userName", 2);
325
361
  __decorateClass([
326
- IsNotEmpty11({ message: "Please enter first name." })
362
+ IsNotEmpty12({ message: "Please enter first name." })
327
363
  ], UpdateSubAdminDto.prototype, "firstName", 2);
328
364
  __decorateClass([
329
- IsNotEmpty11({ message: "Please enter last name." })
365
+ IsNotEmpty12({ message: "Please enter last name." })
330
366
  ], UpdateSubAdminDto.prototype, "lastName", 2);
331
367
  __decorateClass([
332
- IsNotEmpty11({ message: "Please enter email." })
368
+ IsNotEmpty12({ message: "Please enter email." })
333
369
  ], UpdateSubAdminDto.prototype, "email", 2);
334
370
  __decorateClass([
335
- IsNotEmpty11({ message: "Please enter mobile number." })
371
+ IsNotEmpty12({ message: "Please enter mobile number." })
336
372
  ], UpdateSubAdminDto.prototype, "mobile", 2);
337
373
  __decorateClass([
338
- IsNotEmpty11({ message: "Please enter the password." })
374
+ IsNotEmpty12({ message: "Please enter the password." })
339
375
  ], UpdateSubAdminDto.prototype, "password", 2);
340
376
  __decorateClass([
341
- IsNotEmpty11({ message: "Please enter account type." })
377
+ IsNotEmpty12({ message: "Please enter account type." })
342
378
  ], UpdateSubAdminDto.prototype, "accountType", 2);
343
379
  __decorateClass([
344
- IsNotEmpty11({ message: "Please enter account status." })
380
+ IsNotEmpty12({ message: "Please enter account status." })
345
381
  ], UpdateSubAdminDto.prototype, "accountStatus", 2);
346
382
 
347
383
  // src/modules/question/pattern/pattern.ts
@@ -351,23 +387,23 @@ var QUESTION_PATTERN = {
351
387
 
352
388
  // src/modules/question/dto/create-question.dto.ts
353
389
  import {
354
- IsNotEmpty as IsNotEmpty12,
390
+ IsNotEmpty as IsNotEmpty13,
355
391
  IsOptional as IsOptional4,
356
392
  IsBoolean as IsBoolean4
357
393
  } from "class-validator";
358
394
  var CreateQuestionDto = class {
359
395
  };
360
396
  __decorateClass([
361
- IsNotEmpty12({ message: "Please enter unique id." })
397
+ IsNotEmpty13({ message: "Please enter unique id." })
362
398
  ], CreateQuestionDto.prototype, "questionId", 2);
363
399
  __decorateClass([
364
- IsNotEmpty12({ message: "Please enter question." })
400
+ IsNotEmpty13({ message: "Please enter question." })
365
401
  ], CreateQuestionDto.prototype, "question", 2);
366
402
  __decorateClass([
367
- IsNotEmpty12({ message: "Please enter for whom the question is." })
403
+ IsNotEmpty13({ message: "Please enter for whom the question is." })
368
404
  ], CreateQuestionDto.prototype, "questionFor", 2);
369
405
  __decorateClass([
370
- IsNotEmpty12({ message: "Please enter options." })
406
+ IsNotEmpty13({ message: "Please enter options." })
371
407
  ], CreateQuestionDto.prototype, "options", 2);
372
408
  __decorateClass([
373
409
  IsOptional4(),
@@ -563,7 +599,7 @@ __decorateClass([
563
599
  ], BaseEntity.prototype, "deletedAt", 2);
564
600
 
565
601
  // src/entities/user.entity.ts
566
- import { Entity as Entity5, Column as Column6, OneToMany as OneToMany2, OneToOne } from "typeorm";
602
+ import { Entity as Entity6, Column as Column7, OneToMany as OneToMany2, OneToOne } from "typeorm";
567
603
 
568
604
  // src/entities/refresh-token.entity.ts
569
605
  import {
@@ -800,6 +836,81 @@ FreelancerProfile = __decorateClass([
800
836
  Entity4("freelancer_profiles")
801
837
  ], FreelancerProfile);
802
838
 
839
+ // src/entities/company-profile.entity.ts
840
+ import {
841
+ Entity as Entity5,
842
+ Column as Column6,
843
+ ManyToOne as ManyToOne5,
844
+ JoinColumn as JoinColumn5,
845
+ Index as Index3
846
+ } from "typeorm";
847
+ var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
848
+ KindOfHire2["FULLTIME"] = "FULLTIME";
849
+ KindOfHire2["SHORTTIME"] = "SHORTTIME";
850
+ KindOfHire2["BOTH"] = "BOTH";
851
+ return KindOfHire2;
852
+ })(KindOfHire || {});
853
+ var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
854
+ ModeOfHire2["ONSITE"] = "ONSITE";
855
+ ModeOfHire2["REMOTE"] = "REMOTE";
856
+ ModeOfHire2["BOTH"] = "BOTH";
857
+ return ModeOfHire2;
858
+ })(ModeOfHire || {});
859
+ var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
860
+ FromUsOn2["LINKEDIN"] = "LINKEDIN";
861
+ FromUsOn2["GOOGLE"] = "GOOGLE";
862
+ FromUsOn2["REFERRAL"] = "REFERRAL";
863
+ FromUsOn2["OTHER"] = "OTHER";
864
+ return FromUsOn2;
865
+ })(FromUsOn || {});
866
+ var CompanyProfile = class extends BaseEntity {
867
+ };
868
+ // individual index to find company profile by user
869
+ __decorateClass([
870
+ Column6({ name: "user_id", type: "integer", nullable: true }),
871
+ Index3()
872
+ ], CompanyProfile.prototype, "userId", 2);
873
+ __decorateClass([
874
+ ManyToOne5(() => User, (user) => user.otps),
875
+ JoinColumn5({ name: "user_id" })
876
+ ], CompanyProfile.prototype, "user", 2);
877
+ __decorateClass([
878
+ Column6({ name: "company_name", type: "varchar", nullable: true })
879
+ ], CompanyProfile.prototype, "companyName", 2);
880
+ __decorateClass([
881
+ Column6({ name: "skills", type: "text", nullable: true })
882
+ ], CompanyProfile.prototype, "skills", 2);
883
+ __decorateClass([
884
+ Column6({ name: "required_freelancer", type: "varchar", nullable: true })
885
+ ], CompanyProfile.prototype, "requiredFreelancer", 2);
886
+ __decorateClass([
887
+ Column6({
888
+ name: "kind_of_hiring",
889
+ type: "enum",
890
+ enum: KindOfHire,
891
+ nullable: true
892
+ })
893
+ ], CompanyProfile.prototype, "kindOfHiring", 2);
894
+ __decorateClass([
895
+ Column6({
896
+ name: "mode_of_hire",
897
+ type: "enum",
898
+ enum: ModeOfHire,
899
+ nullable: true
900
+ })
901
+ ], CompanyProfile.prototype, "modeOfHire", 2);
902
+ __decorateClass([
903
+ Column6({
904
+ name: "found_us_on",
905
+ type: "enum",
906
+ enum: FromUsOn,
907
+ nullable: true
908
+ })
909
+ ], CompanyProfile.prototype, "foundUsOn", 2);
910
+ CompanyProfile = __decorateClass([
911
+ Entity5("company_profiles")
912
+ ], CompanyProfile);
913
+
803
914
  // src/entities/user.entity.ts
804
915
  var AccountType = /* @__PURE__ */ ((AccountType2) => {
805
916
  AccountType2["ADMIN"] = "ADMIN";
@@ -818,40 +929,40 @@ var AccountStatus = /* @__PURE__ */ ((AccountStatus2) => {
818
929
  var User = class extends BaseEntity {
819
930
  };
820
931
  __decorateClass([
821
- Column6({ name: "unique_id", type: "varchar", unique: true })
932
+ Column7({ name: "unique_id", type: "varchar", unique: true })
822
933
  ], User.prototype, "uniqueId", 2);
823
934
  __decorateClass([
824
- Column6({ name: "username", type: "varchar", unique: true, nullable: true })
935
+ Column7({ name: "username", type: "varchar", unique: true, nullable: true })
825
936
  ], User.prototype, "username", 2);
826
937
  __decorateClass([
827
- Column6({ name: "first_name", type: "varchar", length: 100, nullable: true })
938
+ Column7({ name: "first_name", type: "varchar", length: 100, nullable: true })
828
939
  ], User.prototype, "firstName", 2);
829
940
  __decorateClass([
830
- Column6({ name: "last_name", type: "varchar", length: 100, nullable: true })
941
+ Column7({ name: "last_name", type: "varchar", length: 100, nullable: true })
831
942
  ], User.prototype, "lastName", 2);
832
943
  __decorateClass([
833
- Column6({ name: "date_of_birth", type: "date", nullable: true })
944
+ Column7({ name: "date_of_birth", type: "date", nullable: true })
834
945
  ], User.prototype, "dateOfBirth", 2);
835
946
  __decorateClass([
836
- Column6({ name: "gender", type: "varchar", length: 10, nullable: true })
947
+ Column7({ name: "gender", type: "varchar", length: 10, nullable: true })
837
948
  ], User.prototype, "gender", 2);
838
949
  __decorateClass([
839
- Column6({ name: "profile_picture_url", type: "text", nullable: true })
950
+ Column7({ name: "profile_picture_url", type: "text", nullable: true })
840
951
  ], User.prototype, "profilePictureUrl", 2);
841
952
  __decorateClass([
842
- Column6({ name: "email", type: "varchar", unique: true })
953
+ Column7({ name: "email", type: "varchar", unique: true })
843
954
  ], User.prototype, "email", 2);
844
955
  __decorateClass([
845
- Column6({ name: "mobile_code", type: "varchar", nullable: true })
956
+ Column7({ name: "mobile_code", type: "varchar", nullable: true })
846
957
  ], User.prototype, "mobileCode", 2);
847
958
  __decorateClass([
848
- Column6({ name: "mobile", type: "varchar", unique: true, nullable: true })
959
+ Column7({ name: "mobile", type: "varchar", unique: true, nullable: true })
849
960
  ], User.prototype, "mobile", 2);
850
961
  __decorateClass([
851
- Column6({ name: "password", type: "varchar" })
962
+ Column7({ name: "password", type: "varchar" })
852
963
  ], User.prototype, "password", 2);
853
964
  __decorateClass([
854
- Column6({
965
+ Column7({
855
966
  name: "account_type",
856
967
  type: "enum",
857
968
  enum: AccountType,
@@ -859,7 +970,7 @@ __decorateClass([
859
970
  })
860
971
  ], User.prototype, "accountType", 2);
861
972
  __decorateClass([
862
- Column6({
973
+ Column7({
863
974
  name: "account_status",
864
975
  type: "enum",
865
976
  enum: AccountStatus,
@@ -867,20 +978,20 @@ __decorateClass([
867
978
  })
868
979
  ], User.prototype, "accountStatus", 2);
869
980
  __decorateClass([
870
- Column6({ name: "is_email_verified", type: "boolean", default: false })
981
+ Column7({ name: "is_email_verified", type: "boolean", default: false })
871
982
  ], User.prototype, "isEmailVerified", 2);
872
983
  __decorateClass([
873
- Column6({ name: "is_mobile_verified", type: "boolean", default: false })
984
+ Column7({ name: "is_mobile_verified", type: "boolean", default: false })
874
985
  ], User.prototype, "isMobileVerified", 2);
875
986
  __decorateClass([
876
- Column6({
987
+ Column7({
877
988
  name: "last_login_at",
878
989
  type: "timestamp with time zone",
879
990
  nullable: true
880
991
  })
881
992
  ], User.prototype, "lastLoginAt", 2);
882
993
  __decorateClass([
883
- Column6({ name: "last_login_ip", type: "varchar", nullable: true })
994
+ Column7({ name: "last_login_ip", type: "varchar", nullable: true })
884
995
  ], User.prototype, "lastLoginIp", 2);
885
996
  __decorateClass([
886
997
  OneToMany2(() => RefreshToken, (token) => token.user)
@@ -897,12 +1008,18 @@ __decorateClass([
897
1008
  (freelancerProfile) => freelancerProfile.user
898
1009
  )
899
1010
  ], User.prototype, "freelancerProfile", 2);
1011
+ __decorateClass([
1012
+ OneToOne(
1013
+ () => CompanyProfile,
1014
+ (companyProfile) => companyProfile.user
1015
+ )
1016
+ ], User.prototype, "companyProfile", 2);
900
1017
  User = __decorateClass([
901
- Entity5("users")
1018
+ Entity6("users")
902
1019
  ], User);
903
1020
 
904
1021
  // src/entities/question.entity.ts
905
- import { Entity as Entity6, Column as Column7 } from "typeorm";
1022
+ import { Entity as Entity7, Column as Column8 } from "typeorm";
906
1023
  var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
907
1024
  QuestionFor2["CLIENT"] = "CLIENT";
908
1025
  QuestionFor2["FREELANCER"] = "FREELANCER";
@@ -911,16 +1028,16 @@ var QuestionFor = /* @__PURE__ */ ((QuestionFor2) => {
911
1028
  var Question = class extends BaseEntity {
912
1029
  };
913
1030
  __decorateClass([
914
- Column7({ name: "question", type: "varchar" })
1031
+ Column8({ name: "question", type: "varchar" })
915
1032
  ], Question.prototype, "question", 2);
916
1033
  __decorateClass([
917
- Column7({ name: "hint", type: "varchar", nullable: true })
1034
+ Column8({ name: "hint", type: "varchar", nullable: true })
918
1035
  ], Question.prototype, "hint", 2);
919
1036
  __decorateClass([
920
- Column7({ name: "slug", type: "varchar", nullable: true, unique: true })
1037
+ Column8({ name: "slug", type: "varchar", nullable: true, unique: true })
921
1038
  ], Question.prototype, "slug", 2);
922
1039
  __decorateClass([
923
- Column7({
1040
+ Column8({
924
1041
  name: "question_for",
925
1042
  type: "enum",
926
1043
  enum: QuestionFor,
@@ -928,97 +1045,23 @@ __decorateClass([
928
1045
  })
929
1046
  ], Question.prototype, "questionFor", 2);
930
1047
  __decorateClass([
931
- Column7({ name: "type", type: "varchar", nullable: true })
1048
+ Column8({ name: "type", type: "varchar", nullable: true })
932
1049
  ], Question.prototype, "type", 2);
933
1050
  __decorateClass([
934
- Column7({ name: "options", type: "jsonb", nullable: true })
1051
+ Column8({ name: "options", type: "jsonb", nullable: true })
935
1052
  ], Question.prototype, "options", 2);
936
1053
  __decorateClass([
937
- Column7({ name: "is_active", type: "boolean", default: false })
1054
+ Column8({ name: "is_active", type: "boolean", default: false })
938
1055
  ], Question.prototype, "isActive", 2);
939
1056
  Question = __decorateClass([
940
- Entity6("questions")
1057
+ Entity7("questions")
941
1058
  ], Question);
942
-
943
- // src/entities/company-profile.entity.ts
944
- import {
945
- Entity as Entity7,
946
- Column as Column8,
947
- ManyToOne as ManyToOne5,
948
- JoinColumn as JoinColumn5,
949
- Index as Index3
950
- } from "typeorm";
951
- var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
952
- KindOfHire2["FULLTIME"] = "FULLTIME";
953
- KindOfHire2["SHORTTIME"] = "SHORTTIME";
954
- KindOfHire2["BOTH"] = "BOTH";
955
- return KindOfHire2;
956
- })(KindOfHire || {});
957
- var ModeOfHire = /* @__PURE__ */ ((ModeOfHire2) => {
958
- ModeOfHire2["ONSITE"] = "ONSITE";
959
- ModeOfHire2["REMOTE"] = "REMOTE";
960
- ModeOfHire2["BOTH"] = "BOTH";
961
- return ModeOfHire2;
962
- })(ModeOfHire || {});
963
- var FromUsOn = /* @__PURE__ */ ((FromUsOn2) => {
964
- FromUsOn2["LINKEDIN"] = "LINKEDIN";
965
- FromUsOn2["GOOGLE"] = "GOOGLE";
966
- FromUsOn2["REFERRAL"] = "REFERRAL";
967
- FromUsOn2["OTHER"] = "OTHER";
968
- return FromUsOn2;
969
- })(FromUsOn || {});
970
- var CompanyProfile = class extends BaseEntity {
971
- };
972
- // individual index to find company profile by user
973
- __decorateClass([
974
- Column8({ name: "user_id", type: "integer", nullable: true }),
975
- Index3()
976
- ], CompanyProfile.prototype, "userId", 2);
977
- __decorateClass([
978
- ManyToOne5(() => User, (user) => user.otps),
979
- JoinColumn5({ name: "user_id" })
980
- ], CompanyProfile.prototype, "user", 2);
981
- __decorateClass([
982
- Column8({ name: "company_name", type: "varchar", nullable: true })
983
- ], CompanyProfile.prototype, "companyName", 2);
984
- __decorateClass([
985
- Column8({ name: "skills", type: "text", nullable: true })
986
- ], CompanyProfile.prototype, "skills", 2);
987
- __decorateClass([
988
- Column8({ name: "required_freelancer", type: "varchar", nullable: true })
989
- ], CompanyProfile.prototype, "requiredFreelancer", 2);
990
- __decorateClass([
991
- Column8({
992
- name: "kind_of_hiring",
993
- type: "enum",
994
- enum: KindOfHire,
995
- nullable: true
996
- })
997
- ], CompanyProfile.prototype, "kindOfHiring", 2);
998
- __decorateClass([
999
- Column8({
1000
- name: "mode_of_hire",
1001
- type: "enum",
1002
- enum: ModeOfHire,
1003
- nullable: true
1004
- })
1005
- ], CompanyProfile.prototype, "modeOfHire", 2);
1006
- __decorateClass([
1007
- Column8({
1008
- name: "found_us_on",
1009
- type: "enum",
1010
- enum: FromUsOn,
1011
- nullable: true
1012
- })
1013
- ], CompanyProfile.prototype, "foundUsOn", 2);
1014
- CompanyProfile = __decorateClass([
1015
- Entity7("company_profiles")
1016
- ], CompanyProfile);
1017
1059
  export {
1018
1060
  AUTHENTICATION_PATTERN,
1019
1061
  AccountStatus,
1020
1062
  AccountType,
1021
1063
  BaseEntity,
1064
+ ClientCreateAccountDto,
1022
1065
  ClientProfileQuestionDto,
1023
1066
  CompanyProfile,
1024
1067
  CreateQuestionDto,
@@ -2,5 +2,6 @@ export * from './freelancer-create-account.dto';
2
2
  export * from './freelancer-upload-resume.dto';
3
3
  export * from './freelancer-development-preference.dto';
4
4
  export * from './freelancer-profile-question.dto';
5
- export * from './client-profile-question.dto';
6
5
  export * from './freelancer-work-showcase.dto';
6
+ export * from './client-profile-question.dto';
7
+ export * from './client-create-account.dto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",