@experts_hub/shared 1.0.461 → 1.0.463

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.
@@ -15,6 +15,8 @@ export declare class WalletTransaction extends BaseEntity {
15
15
  walletId: number;
16
16
  wallet: Wallet;
17
17
  amount: number;
18
+ balanceBefore: number;
19
+ balanceAfter: number;
18
20
  type: WalletTransactionTypeEnum;
19
21
  status: WalletTransactionStatusEnum;
20
22
  description: string;
package/dist/index.d.mts CHANGED
@@ -1687,6 +1687,8 @@ declare class WalletTransaction extends BaseEntity {
1687
1687
  walletId: number;
1688
1688
  wallet: Wallet;
1689
1689
  amount: number;
1690
+ balanceBefore: number;
1691
+ balanceAfter: number;
1690
1692
  type: WalletTransactionTypeEnum;
1691
1693
  status: WalletTransactionStatusEnum;
1692
1694
  description: string;
package/dist/index.d.ts CHANGED
@@ -1687,6 +1687,8 @@ declare class WalletTransaction extends BaseEntity {
1687
1687
  walletId: number;
1688
1688
  wallet: Wallet;
1689
1689
  amount: number;
1690
+ balanceBefore: number;
1691
+ balanceAfter: number;
1690
1692
  type: WalletTransactionTypeEnum;
1691
1693
  status: WalletTransactionStatusEnum;
1692
1694
  description: string;
package/dist/index.js CHANGED
@@ -1246,17 +1246,17 @@ __decorateClass([
1246
1246
  })
1247
1247
  ], JobBasicInformationDto.prototype, "location", 2);
1248
1248
  __decorateClass([
1249
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1249
+ (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1250
1250
  (0, import_class_validator33.IsNumber)({}, { message: "Country id must be a number" }),
1251
1251
  (0, import_class_transformer2.Type)(() => Number)
1252
1252
  ], JobBasicInformationDto.prototype, "countryId", 2);
1253
1253
  __decorateClass([
1254
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1254
+ (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1255
1255
  (0, import_class_validator33.IsNumber)({}, { message: "State id must be a number" }),
1256
1256
  (0, import_class_transformer2.Type)(() => Number)
1257
1257
  ], JobBasicInformationDto.prototype, "stateId", 2);
1258
1258
  __decorateClass([
1259
- (0, import_class_validator33.ValidateIf)((o) => !o.isDraft),
1259
+ (0, import_class_validator33.ValidateIf)((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1260
1260
  (0, import_class_validator33.IsNumber)({}, { message: "City id must be a number" }),
1261
1261
  (0, import_class_transformer2.Type)(() => Number)
1262
1262
  ], JobBasicInformationDto.prototype, "cityId", 2);
@@ -5000,6 +5000,12 @@ __decorateClass([
5000
5000
  __decorateClass([
5001
5001
  (0, import_typeorm56.Column)({ name: "amount", type: "bigint", nullable: true })
5002
5002
  ], WalletTransaction.prototype, "amount", 2);
5003
+ __decorateClass([
5004
+ (0, import_typeorm56.Column)({ name: "balance_before", type: "bigint", nullable: true })
5005
+ ], WalletTransaction.prototype, "balanceBefore", 2);
5006
+ __decorateClass([
5007
+ (0, import_typeorm56.Column)({ name: "balance_after", type: "bigint", nullable: true })
5008
+ ], WalletTransaction.prototype, "balanceAfter", 2);
5003
5009
  __decorateClass([
5004
5010
  (0, import_typeorm56.Column)({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5005
5011
  ], WalletTransaction.prototype, "type", 2);
package/dist/index.mjs CHANGED
@@ -1034,17 +1034,17 @@ __decorateClass([
1034
1034
  })
1035
1035
  ], JobBasicInformationDto.prototype, "location", 2);
1036
1036
  __decorateClass([
1037
- ValidateIf3((o) => !o.isDraft),
1037
+ ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1038
1038
  IsNumber({}, { message: "Country id must be a number" }),
1039
1039
  Type(() => Number)
1040
1040
  ], JobBasicInformationDto.prototype, "countryId", 2);
1041
1041
  __decorateClass([
1042
- ValidateIf3((o) => !o.isDraft),
1042
+ ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1043
1043
  IsNumber({}, { message: "State id must be a number" }),
1044
1044
  Type(() => Number)
1045
1045
  ], JobBasicInformationDto.prototype, "stateId", 2);
1046
1046
  __decorateClass([
1047
- ValidateIf3((o) => !o.isDraft),
1047
+ ValidateIf3((o) => !o.isDraft && (o.location === "ONSITE" /* ONSITE */ || o.location === "HYBRID" /* HYBRID */)),
1048
1048
  IsNumber({}, { message: "City id must be a number" }),
1049
1049
  Type(() => Number)
1050
1050
  ], JobBasicInformationDto.prototype, "cityId", 2);
@@ -5027,6 +5027,12 @@ __decorateClass([
5027
5027
  __decorateClass([
5028
5028
  Column56({ name: "amount", type: "bigint", nullable: true })
5029
5029
  ], WalletTransaction.prototype, "amount", 2);
5030
+ __decorateClass([
5031
+ Column56({ name: "balance_before", type: "bigint", nullable: true })
5032
+ ], WalletTransaction.prototype, "balanceBefore", 2);
5033
+ __decorateClass([
5034
+ Column56({ name: "balance_after", type: "bigint", nullable: true })
5035
+ ], WalletTransaction.prototype, "balanceAfter", 2);
5030
5036
  __decorateClass([
5031
5037
  Column56({ name: "type", type: "enum", enum: WalletTransactionTypeEnum })
5032
5038
  ], WalletTransaction.prototype, "type", 2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experts_hub/shared",
3
- "version": "1.0.461",
3
+ "version": "1.0.463",
4
4
  "description": "Shared DTOs, interfaces, and utilities for experts hub applications",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",