@fiado/type-kit 2.0.1 → 2.0.4

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/.idea/aws.xml ADDED
@@ -0,0 +1,11 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="accountSettings">
4
+ <option name="activeRegion" value="us-east-1" />
5
+ <option name="recentlyUsedRegions">
6
+ <list>
7
+ <option value="us-east-1" />
8
+ </list>
9
+ </option>
10
+ </component>
11
+ </project>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
package/.idea/misc.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" languageLevel="JDK_21" default="true" project-jdk-name="corretto-21" project-jdk-type="JavaSDK">
4
+ <output url="file://$PROJECT_DIR$/out" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/fiado-type-kit.iml" filepath="$PROJECT_DIR$/.idea/fiado-type-kit.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -20,6 +20,7 @@ const identity_1 = require("../../identity");
20
20
  const Profile_1 = require("../../directory/enums/Profile");
21
21
  const AccountLevelEnum_1 = require("../enums/AccountLevelEnum");
22
22
  const provider_1 = require("../../provider");
23
+ const class_transformer_1 = require("class-transformer");
23
24
  class AccountCreateRequest {
24
25
  }
25
26
  exports.AccountCreateRequest = AccountCreateRequest;
@@ -82,6 +83,8 @@ __decorate([
82
83
  ], AccountCreateRequest.prototype, "phoneNumber", void 0);
83
84
  __decorate([
84
85
  (0, class_validator_1.IsOptional)(),
86
+ (0, class_validator_1.ValidateNested)(),
87
+ (0, class_transformer_1.Type)(() => address_1.AddressResponse),
85
88
  __metadata("design:type", address_1.AddressResponse)
86
89
  ], AccountCreateRequest.prototype, "address", void 0);
87
90
  __decorate([
@@ -18,4 +18,6 @@ export declare class Place {
18
18
  timezone?: Timezone;
19
19
  unitNumber?: string;
20
20
  unitType?: string;
21
+ city?: string;
22
+ state?: string;
21
23
  }
@@ -113,3 +113,15 @@ __decorate([
113
113
  (0, class_validator_1.Length)(1, 10),
114
114
  __metadata("design:type", String)
115
115
  ], Place.prototype, "unitType", void 0);
116
+ __decorate([
117
+ (0, class_validator_1.IsOptional)(),
118
+ (0, class_validator_1.IsString)(),
119
+ (0, class_validator_1.Length)(1, 60),
120
+ __metadata("design:type", String)
121
+ ], Place.prototype, "city", void 0);
122
+ __decorate([
123
+ (0, class_validator_1.IsOptional)(),
124
+ (0, class_validator_1.IsString)(),
125
+ (0, class_validator_1.Length)(1, 60),
126
+ __metadata("design:type", String)
127
+ ], Place.prototype, "state", void 0);
@@ -12,6 +12,8 @@ export declare class CreateBankAccountCardShippingRequest {
12
12
  email?: string;
13
13
  userId?: string;
14
14
  officeCode?: string;
15
+ officeName?: string;
15
16
  firstNameSecondary?: string;
16
17
  lastNameSecondary?: string;
18
+ phoneNumberSecondary?: string;
17
19
  }
@@ -0,0 +1,18 @@
1
+ import { CollectionOrderExecutionStatus } from "../enums/CollectionOrderExecutionStatus";
2
+ export interface OrdersCollector {
3
+ id: string;
4
+ executionId: string;
5
+ createdAt: number;
6
+ updatedAt: number;
7
+ status: CollectionOrderExecutionStatus;
8
+ startedAt: number;
9
+ finishedAt?: number;
10
+ totalOrders?: number;
11
+ batchesSent?: number;
12
+ ordersCompleted?: number;
13
+ ordersPartial?: number;
14
+ ordersDue?: number;
15
+ ordersError?: number;
16
+ notes?: string;
17
+ executedBy?: string;
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "2.0.1",
3
+ "version": "2.0.4",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -4,10 +4,11 @@ import { CountryId } from "../../country";
4
4
  import { regexUuidV4 } from '../../helpers/constans/regex';
5
5
  import { TypeOfDirectoryId } from '../../directory';
6
6
  import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
7
- import {IdentificationDocument, SexDocument} from '../../identity';
7
+ import { IdentificationDocument, SexDocument } from '../../identity';
8
8
  import { Profile } from "../../directory/enums/Profile";
9
- import {AccountLevelEnum} from "../enums/AccountLevelEnum";
9
+ import { AccountLevelEnum } from "../enums/AccountLevelEnum";
10
10
  import { Provider } from '../../provider';
11
+ import { Type } from 'class-transformer';
11
12
 
12
13
  export class AccountCreateRequest {
13
14
 
@@ -17,7 +18,7 @@ export class AccountCreateRequest {
17
18
  message: 'directoryId must be a valid UUID v4',
18
19
  })
19
20
  directoryId: string;
20
-
21
+
21
22
 
22
23
  @IsString()
23
24
  @Matches(regexUuidV4,
@@ -38,30 +39,31 @@ export class AccountCreateRequest {
38
39
 
39
40
  @IsEnum(TypeOfDirectoryId)
40
41
  typeOfDirectoryId: string;
41
-
42
+
42
43
  @IsString()
43
- latLastNameMaternal:string
44
-
44
+ latLastNameMaternal: string
45
+
45
46
  @IsString()
46
- latLastNamePaternal:string
47
-
47
+ latLastNamePaternal: string
48
+
48
49
  @IsString()
49
- latNames:string
50
+ latNames: string
50
51
 
51
52
  @IsString()
52
- countryOfBirth:string
53
-
53
+ countryOfBirth: string
54
+
54
55
  @IsString()
55
- usNames:string
56
-
56
+ usNames: string
57
+
57
58
  @IsString()
58
- usLastNames:string
59
+ usLastNames: string
59
60
 
60
61
  @IsPhoneNumberFiado()
61
62
  phoneNumber: string;
62
63
 
63
-
64
64
  @IsOptional()
65
+ @ValidateNested()
66
+ @Type(() => AddressResponse)
65
67
  address: AddressResponse;
66
68
 
67
69
  @IsEmail()
@@ -102,4 +104,3 @@ export class AccountCreateRequest {
102
104
  externalReferenceId?: string;
103
105
 
104
106
  }
105
-
@@ -83,4 +83,14 @@ export class Place {
83
83
  @IsString()
84
84
  @Length(1, 10)
85
85
  unitType?: string;
86
+
87
+ @IsOptional()
88
+ @IsString()
89
+ @Length(1, 60)
90
+ city?: string;
91
+
92
+ @IsOptional()
93
+ @IsString()
94
+ @Length(1, 60)
95
+ state?: string;
86
96
  }
@@ -13,6 +13,8 @@ export class CreateBankAccountCardShippingRequest {
13
13
  email?: string;
14
14
  userId?: string;
15
15
  officeCode?: string;
16
+ officeName?: string;
16
17
  firstNameSecondary?: string;
17
18
  lastNameSecondary?: string;
19
+ phoneNumberSecondary?: string;
18
20
  }