@experts_hub/shared 1.0.159 → 1.0.160

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.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 {
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 {
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");
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([
@@ -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.160",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",