@experts_hub/shared 1.0.159 → 1.0.161

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,7 +2,7 @@ import { BaseEntity } from "./base.entity";
2
2
  import { User } from './user.entity';
3
3
  export declare enum KindOfHire {
4
4
  FULLTIME = "FULLTIME",
5
- SHORTTIME = "SHORTTIME",
5
+ PARTTIME = "PARTTIME",
6
6
  BOTH = "BOTH"
7
7
  }
8
8
  export declare enum ModeOfHire {
package/dist/index.d.mts CHANGED
@@ -131,6 +131,7 @@ declare class ClientProfileQuestionDto {
131
131
  uuid: string;
132
132
  question_slug: string;
133
133
  answer: any;
134
+ foundUsOnDetail?: string;
134
135
  }
135
136
 
136
137
  declare class ClientCreateAccountDto {
@@ -621,7 +622,7 @@ declare class FreelancerProfile extends BaseEntity {
621
622
 
622
623
  declare enum KindOfHire {
623
624
  FULLTIME = "FULLTIME",
624
- SHORTTIME = "SHORTTIME",
625
+ PARTTIME = "PARTTIME",
625
626
  BOTH = "BOTH"
626
627
  }
627
628
  declare enum ModeOfHire {
package/dist/index.d.ts CHANGED
@@ -131,6 +131,7 @@ declare class ClientProfileQuestionDto {
131
131
  uuid: string;
132
132
  question_slug: string;
133
133
  answer: any;
134
+ foundUsOnDetail?: string;
134
135
  }
135
136
 
136
137
  declare class ClientCreateAccountDto {
@@ -621,7 +622,7 @@ declare class FreelancerProfile extends BaseEntity {
621
622
 
622
623
  declare enum KindOfHire {
623
624
  FULLTIME = "FULLTIME",
624
- SHORTTIME = "SHORTTIME",
625
+ PARTTIME = "PARTTIME",
625
626
  BOTH = "BOTH"
626
627
  }
627
628
  declare enum ModeOfHire {
package/dist/index.js CHANGED
@@ -513,6 +513,11 @@ __decorateClass([
513
513
  __decorateClass([
514
514
  (0, import_class_validator15.IsNotEmpty)({ message: "Please enter answer." })
515
515
  ], ClientProfileQuestionDto.prototype, "answer", 2);
516
+ __decorateClass([
517
+ (0, import_class_validator15.ValidateIf)((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
518
+ (0, import_class_validator15.IsNotEmpty)({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
519
+ (0, import_class_validator15.IsString)()
520
+ ], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
516
521
 
517
522
  // src/modules/onboarding/dto/client-create-account.dto.ts
518
523
  var import_class_validator16 = require("class-validator");
@@ -1363,7 +1368,7 @@ FreelancerProfile = __decorateClass([
1363
1368
  var import_typeorm6 = require("typeorm");
1364
1369
  var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
1365
1370
  KindOfHire2["FULLTIME"] = "FULLTIME";
1366
- KindOfHire2["SHORTTIME"] = "SHORTTIME";
1371
+ KindOfHire2["PARTTIME"] = "PARTTIME";
1367
1372
  KindOfHire2["BOTH"] = "BOTH";
1368
1373
  return KindOfHire2;
1369
1374
  })(KindOfHire || {});
package/dist/index.mjs CHANGED
@@ -385,7 +385,8 @@ import {
385
385
  IsUUID as IsUUID5,
386
386
  IsString as IsString6,
387
387
  IsNotEmpty as IsNotEmpty14,
388
- IsIn as IsIn2
388
+ IsIn as IsIn2,
389
+ ValidateIf
389
390
  } from "class-validator";
390
391
  var ClientProfileQuestionDto = class {
391
392
  };
@@ -407,6 +408,11 @@ __decorateClass([
407
408
  __decorateClass([
408
409
  IsNotEmpty14({ message: "Please enter answer." })
409
410
  ], ClientProfileQuestionDto.prototype, "answer", 2);
411
+ __decorateClass([
412
+ ValidateIf((o) => o.questionSlug === "foundUsOn" && o.answer === "OTHER"),
413
+ IsNotEmpty14({ message: "Please enter foundUsOnDetail if answer is OTHER." }),
414
+ IsString6()
415
+ ], ClientProfileQuestionDto.prototype, "foundUsOnDetail", 2);
410
416
 
411
417
  // src/modules/onboarding/dto/client-create-account.dto.ts
412
418
  import {
@@ -905,7 +911,7 @@ import {
905
911
  IsEnum as IsEnum10,
906
912
  IsNotEmpty as IsNotEmpty25,
907
913
  IsOptional as IsOptional8,
908
- ValidateIf
914
+ ValidateIf as ValidateIf2
909
915
  } from "class-validator";
910
916
  var BankAccountScope = /* @__PURE__ */ ((BankAccountScope2) => {
911
917
  BankAccountScope2["DOMESTIC"] = "DOMESTIC";
@@ -936,19 +942,19 @@ __decorateClass([
936
942
  IsNotEmpty25({ message: "Please enter Branch Name." })
937
943
  ], FreelancerBankDetailsDto.prototype, "branchName", 2);
938
944
  __decorateClass([
939
- ValidateIf((dto) => dto.accountScope === "DOMESTIC"),
945
+ ValidateIf2((dto) => dto.accountScope === "DOMESTIC"),
940
946
  IsNotEmpty25({ message: "IFSC Code is required for DOMESTIC accounts." })
941
947
  ], FreelancerBankDetailsDto.prototype, "ifscCode", 2);
942
948
  __decorateClass([
943
- ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
949
+ ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
944
950
  IsNotEmpty25({ message: "Routing Number/Sort Code is required for INTERNATIONAL accounts." })
945
951
  ], FreelancerBankDetailsDto.prototype, "routingNo", 2);
946
952
  __decorateClass([
947
- ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
953
+ ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
948
954
  IsNotEmpty25({ message: "ABA Number is required for INTERNATIONAL accounts." })
949
955
  ], FreelancerBankDetailsDto.prototype, "abaNumber", 2);
950
956
  __decorateClass([
951
- ValidateIf((dto) => dto.accountScope === "INTERNATIONAL"),
957
+ ValidateIf2((dto) => dto.accountScope === "INTERNATIONAL"),
952
958
  IsNotEmpty25({ message: "IBAN is required for INTERNATIONAL accounts." })
953
959
  ], FreelancerBankDetailsDto.prototype, "iban", 2);
954
960
  __decorateClass([
@@ -1355,7 +1361,7 @@ import {
1355
1361
  } from "typeorm";
1356
1362
  var KindOfHire = /* @__PURE__ */ ((KindOfHire2) => {
1357
1363
  KindOfHire2["FULLTIME"] = "FULLTIME";
1358
- KindOfHire2["SHORTTIME"] = "SHORTTIME";
1364
+ KindOfHire2["PARTTIME"] = "PARTTIME";
1359
1365
  KindOfHire2["BOTH"] = "BOTH";
1360
1366
  return KindOfHire2;
1361
1367
  })(KindOfHire || {});
@@ -2,4 +2,5 @@ export declare class ClientProfileQuestionDto {
2
2
  uuid: string;
3
3
  question_slug: string;
4
4
  answer: any;
5
+ foundUsOnDetail?: string;
5
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.159",
3
+ "version": "1.0.161",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",