@fiado/type-kit 1.1.61 → 1.1.63

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,5 +2,6 @@ export declare class PocketBalanceItem {
2
2
  currencyId: string;
3
3
  availableBalance: number;
4
4
  lockedBalance: number;
5
+ usableBalance: number;
5
6
  unsettledBalance: number;
6
7
  }
@@ -26,6 +26,10 @@ __decorate([
26
26
  (0, class_validator_1.IsNumber)(),
27
27
  __metadata("design:type", Number)
28
28
  ], PocketBalanceItem.prototype, "lockedBalance", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsNumber)(),
31
+ __metadata("design:type", Number)
32
+ ], PocketBalanceItem.prototype, "usableBalance", void 0);
29
33
  __decorate([
30
34
  (0, class_validator_1.IsNumber)(),
31
35
  __metadata("design:type", Number)
@@ -31,7 +31,6 @@ __decorate([
31
31
  __metadata("design:type", String)
32
32
  ], Product.prototype, "displayName", void 0);
33
33
  __decorate([
34
- (0, class_validator_1.IsNotEmpty)(),
35
34
  (0, class_validator_1.IsString)(),
36
35
  __metadata("design:type", String)
37
36
  ], Product.prototype, "relatedProductId", void 0);
@@ -13,7 +13,7 @@ export declare class TransactionCreateRequest {
13
13
  accountId: string;
14
14
  pocketId: string;
15
15
  ownerDirectoryId: string;
16
- targetDirectoryId: string | null;
16
+ targetDirectoryId: string;
17
17
  transactionDate: string;
18
18
  sessionId: string;
19
19
  currencyId: CountryId;
@@ -65,11 +65,7 @@ __decorate([
65
65
  __metadata("design:type", String)
66
66
  ], TransactionCreateRequest.prototype, "ownerDirectoryId", void 0);
67
67
  __decorate([
68
- (0, class_validator_1.IsEmpty)(),
69
68
  (0, class_validator_1.IsString)(),
70
- (0, class_validator_1.Matches)(regex_1.regexUuidV4, {
71
- message: 'ownerDirectoryId must be a valid UUID v4',
72
- }),
73
69
  __metadata("design:type", String)
74
70
  ], TransactionCreateRequest.prototype, "targetDirectoryId", void 0);
75
71
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -10,6 +10,9 @@ export class PocketBalanceItem {
10
10
  @IsNumber()
11
11
  lockedBalance: number;
12
12
 
13
+ @IsNumber()
14
+ usableBalance: number;
15
+
13
16
  @IsNumber()
14
17
  unsettledBalance: number;
15
18
  }
@@ -14,8 +14,7 @@ export class Product {
14
14
  @IsNotEmpty()
15
15
  @IsString()
16
16
  displayName: string;
17
-
18
- @IsNotEmpty()
17
+
19
18
  @IsString()
20
19
  relatedProductId: string;
21
20
  }
@@ -49,13 +49,8 @@ export class TransactionCreateRequest {
49
49
  })
50
50
  ownerDirectoryId: string;
51
51
 
52
- @IsEmpty()
53
52
  @IsString()
54
- @Matches(regexUuidV4,
55
- {
56
- message: 'ownerDirectoryId must be a valid UUID v4',
57
- })
58
- targetDirectoryId: string | null;
53
+ targetDirectoryId: string;
59
54
 
60
55
  @IsNotEmpty()
61
56
  @IsString()