@fiado/type-kit 1.1.18 → 1.1.20

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.
@@ -1,6 +1,5 @@
1
1
  import { CountryId } from '../../country';
2
2
  export declare class AccountBeneficiaryCreateRequest {
3
- accountId: string;
4
3
  countryId: CountryId;
5
4
  phoneNumber?: string;
6
5
  fullName: string;
@@ -16,11 +16,6 @@ const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberC
16
16
  class AccountBeneficiaryCreateRequest {
17
17
  }
18
18
  exports.AccountBeneficiaryCreateRequest = AccountBeneficiaryCreateRequest;
19
- __decorate([
20
- (0, class_validator_1.IsNotEmpty)(),
21
- (0, class_validator_1.IsString)(),
22
- __metadata("design:type", String)
23
- ], AccountBeneficiaryCreateRequest.prototype, "accountId", void 0);
24
19
  __decorate([
25
20
  (0, class_validator_1.IsNotEmpty)(),
26
21
  (0, class_validator_1.IsEnum)(country_1.CountryId),
@@ -1,4 +1,5 @@
1
1
  export declare class AccountBeneficiaryUpdateRequest {
2
+ accountId?: string;
2
3
  phoneNumber?: string;
3
4
  fullName?: string;
4
5
  dateOfBirth?: string;
@@ -15,6 +15,11 @@ const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberC
15
15
  class AccountBeneficiaryUpdateRequest {
16
16
  }
17
17
  exports.AccountBeneficiaryUpdateRequest = AccountBeneficiaryUpdateRequest;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.IsUUID)(),
21
+ __metadata("design:type", String)
22
+ ], AccountBeneficiaryUpdateRequest.prototype, "accountId", void 0);
18
23
  __decorate([
19
24
  (0, class_validator_1.IsOptional)(),
20
25
  (0, IsPhoneNumberConstraint_1.IsPhoneNumberFiado)(),
@@ -0,0 +1,3 @@
1
+ export declare class GroupDirectoryRetationsUpdateRequest {
2
+ agent: string;
3
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GroupDirectoryRetationsUpdateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GroupDirectoryRetationsUpdateRequest {
15
+ }
16
+ exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.Length)(1, 20),
21
+ __metadata("design:type", String)
22
+ ], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -6,10 +6,6 @@ import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstrai
6
6
 
7
7
  export class AccountBeneficiaryCreateRequest {
8
8
 
9
- @IsNotEmpty()
10
- @IsString()
11
- accountId: string;
12
-
13
9
  @IsNotEmpty()
14
10
  @IsEnum(CountryId)
15
11
  countryId: CountryId;
@@ -1,8 +1,12 @@
1
- import { IsString, IsOptional, IsNumber, Min, Max, IsDateString } from 'class-validator';
1
+ import { IsString, IsOptional, IsNumber, Min, Max, IsDateString, IsUUID } from 'class-validator';
2
2
  import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
3
3
 
4
4
  export class AccountBeneficiaryUpdateRequest {
5
5
 
6
+ @IsOptional()
7
+ @IsUUID()
8
+ accountId?: string;
9
+
6
10
  @IsOptional()
7
11
  @IsPhoneNumberFiado()
8
12
  phoneNumber?: string;
@@ -1,5 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class CreateBankAccountOutput {
3
- externalAccountId: string;
4
- provider: Provider;
5
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountOutput = void 0;
4
- class CreateBankAccountOutput {
5
- }
6
- exports.CreateBankAccountOutput = CreateBankAccountOutput;
@@ -1,8 +0,0 @@
1
- import { Provider } from "../../provider";
2
- export declare class CreateBankAccountUserOutput {
3
- externalUserId: string;
4
- externalAccountId?: string;
5
- provider: Provider;
6
- accountNumber?: string;
7
- routingNumber?: string;
8
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateBankAccountUserOutput = void 0;
4
- class CreateBankAccountUserOutput {
5
- }
6
- exports.CreateBankAccountUserOutput = CreateBankAccountUserOutput;
@@ -1,2 +0,0 @@
1
- export declare class TransactionCreateRequest {
2
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionCreateRequest = void 0;
4
- class TransactionCreateRequest {
5
- }
6
- exports.TransactionCreateRequest = TransactionCreateRequest;
@@ -1,2 +0,0 @@
1
- export declare class TransactionCreateResponse {
2
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionCreateResponse = void 0;
4
- class TransactionCreateResponse {
5
- }
6
- exports.TransactionCreateResponse = TransactionCreateResponse;