@fiado/type-kit 1.1.6 → 1.1.8

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.
Files changed (186) hide show
  1. package/.idea/aws.xml +11 -0
  2. package/.idea/fiado-type-kit.iml +12 -0
  3. package/.idea/modules.xml +8 -0
  4. package/.idea/vcs.xml +6 -0
  5. package/README.md +70 -70
  6. package/bin/contactInfo/dtos/GetAllContactInfoResponse.d.ts +13 -0
  7. package/bin/contactInfo/dtos/GetAllContactInfoResponse.js +6 -0
  8. package/bin/contactInfo/enums/TypeOfContactIdEnum.d.ts +4 -0
  9. package/bin/contactInfo/enums/TypeOfContactIdEnum.js +8 -0
  10. package/bin/contactInfo/index.d.ts +2 -0
  11. package/bin/contactInfo/index.js +18 -0
  12. package/bin/identity/dtos/PeopleResponse.d.ts +1 -0
  13. package/bin/identity/dtos/PeopleUpdateRequest.d.ts +1 -0
  14. package/bin/index.d.ts +1 -0
  15. package/bin/index.js +2 -1
  16. package/package.json +23 -23
  17. package/src/account/dtos/AccountCreateRequest.ts +75 -75
  18. package/src/account/dtos/AccountCreateResponse.ts +7 -7
  19. package/src/account/dtos/AccountInfo.ts +39 -39
  20. package/src/account/dtos/BankAccountExternalAddress.ts +17 -17
  21. package/src/account/dtos/CreateBankAccountRequest.ts +11 -11
  22. package/src/account/dtos/CreateBankAccountResponse.ts +8 -8
  23. package/src/account/dtos/CreateBankAccountUserRequest.ts +17 -17
  24. package/src/account/dtos/CreateBankAccountUserResponse.ts +11 -11
  25. package/src/account/dtos/ExchangeInfo.ts +8 -8
  26. package/src/account/dtos/GetAccountBalanceResponse.ts +36 -36
  27. package/src/account/dtos/GetAccountResponse.ts +62 -62
  28. package/src/account/dtos/GetBankAccountRequest.ts +3 -3
  29. package/src/account/dtos/GetBankAccountResponse.ts +22 -22
  30. package/src/account/dtos/GetBankAccountSensitiveInformationRequest.ts +5 -5
  31. package/src/account/dtos/GetBankAccountSensitiveInformationResponse.ts +8 -8
  32. package/src/account/dtos/GetBankAccountUserRequest.ts +2 -2
  33. package/src/account/dtos/GetBankAccountUserResponse.ts +25 -25
  34. package/src/account/dtos/GetPocketBalanceResponse.ts +43 -43
  35. package/src/account/dtos/GetPocketResponse.ts +8 -8
  36. package/src/account/dtos/PocketBalanceItem.ts +14 -14
  37. package/src/account/dtos/PocketItem.ts +43 -43
  38. package/src/account/dtos/UpdateBankAccountUserRequest.ts +26 -26
  39. package/src/account/dtos/UpdateBankAccountUserResponse.ts +3 -3
  40. package/src/account/entities/AccountEntityBase.ts +12 -12
  41. package/src/account/enums/AccountEntityStatusEnum.ts +4 -4
  42. package/src/account/enums/AccountLevelEnum.ts +5 -5
  43. package/src/account/enums/BankAccountTypeEnum.ts +2 -2
  44. package/src/account/enums/BankAccountUserStatusEnum.ts +4 -4
  45. package/src/account/enums/UserEntityStatusEnum.ts +4 -4
  46. package/src/account/index.ts +35 -35
  47. package/src/address/dtos/AddressBase.ts +130 -130
  48. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  49. package/src/address/dtos/AddressResponse.ts +41 -41
  50. package/src/address/dtos/AddressShippingCardRequest.ts +12 -12
  51. package/src/address/dtos/AddressShippingCardResponse.ts +11 -11
  52. package/src/address/dtos/Geometry.ts +4 -4
  53. package/src/address/dtos/OfficeDetails.ts +30 -30
  54. package/src/address/dtos/OperationSchedule.ts +8 -8
  55. package/src/address/dtos/Place.ts +83 -83
  56. package/src/address/dtos/Shipping.ts +36 -36
  57. package/src/address/dtos/Timezone.ts +5 -5
  58. package/src/address/enums/AddressProvider.ts +10 -10
  59. package/src/address/enums/AddressStatus.ts +9 -9
  60. package/src/address/index.ts +16 -16
  61. package/src/app/enums/App.ts +10 -10
  62. package/src/app/index.ts +3 -3
  63. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  64. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  65. package/src/authentication/index.ts +3 -3
  66. package/src/card/dtos/CardActivateRequest.ts +12 -12
  67. package/src/card/dtos/CardAdditionalRequest.ts +25 -25
  68. package/src/card/dtos/CardApplicationRequest.ts +22 -22
  69. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  70. package/src/card/dtos/CardCreateAdditionalRequest.ts +40 -40
  71. package/src/card/dtos/CardResponse.ts +4 -4
  72. package/src/card/dtos/CardShipmentQueueMessage.ts +7 -7
  73. package/src/card/dtos/CardShipmentUpdateRequest.ts +19 -19
  74. package/src/card/dtos/CardUpdateRequest.ts +11 -11
  75. package/src/card/dtos/Internal/ActivateBankAccountCardRequest.ts +9 -9
  76. package/src/card/dtos/Internal/ActivateBankAccountCardResponse.ts +4 -4
  77. package/src/card/dtos/Internal/AssignCardRequest.ts +8 -8
  78. package/src/card/dtos/Internal/CreateBankAccountCardRequest.ts +16 -16
  79. package/src/card/dtos/Internal/CreateBankAccountCardResponse.ts +8 -8
  80. package/src/card/dtos/Internal/CreateBankAccountCardShippingRequest.ts +14 -14
  81. package/src/card/dtos/Internal/CreateBankAccountCardShippingResponse.ts +12 -12
  82. package/src/card/dtos/Internal/GetBankAccountCardResponse.ts +32 -32
  83. package/src/card/dtos/Internal/GetBankAccountShippingRequest.ts +5 -5
  84. package/src/card/dtos/Internal/GetBankAccountShippingResponse.ts +19 -19
  85. package/src/card/dtos/Internal/UpdateBankAccountCardRequest.ts +21 -21
  86. package/src/card/dtos/Internal/UpdateBankAccountCardResponse.ts +5 -5
  87. package/src/card/enums/Brand.ts +7 -7
  88. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  89. package/src/card/enums/CardIssuing.ts +6 -6
  90. package/src/card/enums/CardType.ts +4 -4
  91. package/src/card/enums/CardUpdateKey.ts +4 -4
  92. package/src/card/enums/CreditOrDebit.ts +5 -5
  93. package/src/card/enums/DeliveryChannel.ts +7 -7
  94. package/src/card/enums/ExternalShippingStatus.ts +14 -14
  95. package/src/card/enums/ExternalShippingStatusDetails.ts +53 -53
  96. package/src/card/enums/IssuanceType.ts +5 -5
  97. package/src/card/enums/NominatedOrInnominated.ts +8 -8
  98. package/src/card/enums/OwnershipType.ts +3 -3
  99. package/src/card/enums/ShippingStatus.ts +8 -8
  100. package/src/card/enums/Status.ts +6 -6
  101. package/src/card/enums/UpdateKey.ts +5 -5
  102. package/src/card/enums/VirtualOrPhysical.ts +6 -6
  103. package/src/card/index.ts +47 -47
  104. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  105. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  106. package/src/contactInfo/dtos/GetAllContactInfoResponse.ts +14 -0
  107. package/src/contactInfo/enums/TypeOfContactIdEnum.ts +4 -0
  108. package/src/contactInfo/index.ts +2 -0
  109. package/src/country/enums/Country.ts +6 -6
  110. package/src/country/enums/CountryId.ts +6 -6
  111. package/src/country/index.ts +5 -5
  112. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  113. package/src/currency/index.ts +2 -2
  114. package/src/directory/dtos/DirectoryResponse.ts +18 -18
  115. package/src/directory/dtos/External.ts +6 -6
  116. package/src/directory/enums/Profile.ts +6 -6
  117. package/src/directory/enums/Scope.ts +7 -7
  118. package/src/directory/enums/Status.ts +8 -8
  119. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  120. package/src/directory/index.ts +7 -7
  121. package/src/eventBridge/dto/EventBridgeMessageRequest.ts +4 -4
  122. package/src/eventBridge/index.ts +1 -1
  123. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  124. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  125. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  126. package/src/exchangeRate/dtos/GetExchangeRatesRequest.ts +3 -3
  127. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  128. package/src/exchangeRate/index.ts +9 -9
  129. package/src/genericMessage/dto/GenericMessageRequest.ts +17 -17
  130. package/src/genericMessage/enums/GenericMessageSourceEnum.ts +3 -3
  131. package/src/genericMessage/index.ts +1 -1
  132. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  133. package/src/group/dtos/GroupCreateRequest.ts +54 -54
  134. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  135. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  136. package/src/group/dtos/GroupResponse.ts +17 -17
  137. package/src/group/dtos/GroupUpdateRequest.ts +31 -31
  138. package/src/group/enums/GroupAction.ts +8 -8
  139. package/src/group/enums/GroupStatus.ts +6 -6
  140. package/src/group/enums/RelationStatus.ts +8 -8
  141. package/src/group/enums/RelationType.ts +9 -9
  142. package/src/group/index.ts +18 -18
  143. package/src/header/TokenPayload.ts +17 -17
  144. package/src/header/index.ts +3 -3
  145. package/src/helpers/ValidationUtils.ts +32 -32
  146. package/src/helpers/constans/regex.ts +12 -12
  147. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  148. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  149. package/src/identity/dtos/PeopleResponse.ts +72 -71
  150. package/src/identity/dtos/PeopleUpdateRequest.ts +70 -69
  151. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  152. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  153. package/src/identity/enums/SexDocument.ts +6 -6
  154. package/src/identity/enums/TypeOfDocument.ts +5 -5
  155. package/src/identity/index.ts +12 -12
  156. package/src/index.ts +25 -24
  157. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -7
  158. package/src/notificationMessages/dtos/QueueMessageDestination.ts +6 -6
  159. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +3 -3
  160. package/src/notificationMessages/enums/NotificationId.ts +13 -13
  161. package/src/notificationMessages/index.ts +5 -5
  162. package/src/provider/enums/Provider.ts +4 -4
  163. package/src/provider/index.ts +1 -1
  164. package/src/queue/dtos/QueueMessageBase.ts +13 -13
  165. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  166. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +10 -10
  167. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -7
  168. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -4
  169. package/src/sessionActivity/index.ts +2 -2
  170. package/src/transaction/dtos/TransactionCreateRequest.ts +4 -4
  171. package/src/transaction/dtos/TransactionCreateResponse.ts +4 -4
  172. package/src/transaction/enums/OperationEnum.ts +3 -3
  173. package/src/transaction/index.ts +5 -5
  174. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfo.ts +6 -6
  175. package/src/transactionProcessor/dtos/private/PrivateProcessorAmountInfoItem.ts +3 -3
  176. package/src/transactionProcessor/dtos/private/PrivateProcessorCardInfo.ts +5 -5
  177. package/src/transactionProcessor/dtos/private/PrivateProcessorMerchantInfo.ts +6 -6
  178. package/src/transactionProcessor/dtos/private/PrivateProcessorTransactionInfo.ts +7 -7
  179. package/src/transactionProcessor/dtos/private/PrivateTransactionProcessorRequest.ts +16 -16
  180. package/src/transactionProcessor/index.ts +7 -7
  181. package/bin/account/dtos/CreateBankAccountInput.d.ts +0 -8
  182. package/bin/account/dtos/CreateBankAccountInput.js +0 -6
  183. package/bin/account/dtos/CreateBankAccountUserInput.d.ts +0 -14
  184. package/bin/account/dtos/CreateBankAccountUserInput.js +0 -6
  185. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +0 -3
  186. package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +0 -22
@@ -1,27 +1,27 @@
1
- import { AddressBase } from "../../address/dtos/AddressBase"
2
- import { CountryId } from "../../country"
3
- import { SexDocument } from "../../identity"
4
- import { TypeOfDocument } from "../../identity/enums/TypeOfDocument"
5
- import { BankAccountUserStatus } from "../enums/BankAccountUserStatusEnum"
6
-
7
- export class UpdateBankAccountUserRequest {
8
- id:string
9
- name?: string
10
- lastName?: string
11
- typeOfDocumentId?: TypeOfDocument
12
- documentNumber?: string
13
- sex?: SexDocument
14
- email?: string
15
- phoneNumber?: string
16
- status?: BankAccountUserStatus
17
- taxNumber?: string
18
- taxType?: "RFC"
19
- address?: AddressBase
20
- dob?:string
21
- nationality?:CountryId
22
- createdDate?: string
23
- updatedDate?: string
24
- deletedDate?: string
25
- updatedBy?: string
26
- governmentId?: string
1
+ import { AddressBase } from "../../address/dtos/AddressBase"
2
+ import { CountryId } from "../../country"
3
+ import { SexDocument } from "../../identity"
4
+ import { TypeOfDocument } from "../../identity/enums/TypeOfDocument"
5
+ import { BankAccountUserStatus } from "../enums/BankAccountUserStatusEnum"
6
+
7
+ export class UpdateBankAccountUserRequest {
8
+ id:string
9
+ name?: string
10
+ lastName?: string
11
+ typeOfDocumentId?: TypeOfDocument
12
+ documentNumber?: string
13
+ sex?: SexDocument
14
+ email?: string
15
+ phoneNumber?: string
16
+ status?: BankAccountUserStatus
17
+ taxNumber?: string
18
+ taxType?: "RFC"
19
+ address?: AddressBase
20
+ dob?:string
21
+ nationality?:CountryId
22
+ createdDate?: string
23
+ updatedDate?: string
24
+ deletedDate?: string
25
+ updatedBy?: string
26
+ governmentId?: string
27
27
  }
@@ -1,4 +1,4 @@
1
- export class UpdateBankAccountUserResponse {
2
- updatedAt: string;
3
- updatedBy: string;
1
+ export class UpdateBankAccountUserResponse {
2
+ updatedAt: string;
3
+ updatedBy: string;
4
4
  }
@@ -1,13 +1,13 @@
1
- import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum"
2
- import {AccountLevelEnum} from "../enums/AccountLevelEnum";
3
-
4
- export class AccountEntityBase {
5
- id: string;
6
- directoryId: string;
7
- typeOfDirectoryId: string;
8
- peopleId: string;
9
- currencyId: string;
10
- status: AccountEntityStatusEnum;
11
- tenantId: string;
12
- accountLevel: AccountLevelEnum;
1
+ import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum"
2
+ import {AccountLevelEnum} from "../enums/AccountLevelEnum";
3
+
4
+ export class AccountEntityBase {
5
+ id: string;
6
+ directoryId: string;
7
+ typeOfDirectoryId: string;
8
+ peopleId: string;
9
+ currencyId: string;
10
+ status: AccountEntityStatusEnum;
11
+ tenantId: string;
12
+ accountLevel: AccountLevelEnum;
13
13
  }
@@ -1,5 +1,5 @@
1
- export enum AccountEntityStatusEnum {
2
- ACTIVE = "ACTIVE",
3
- INACTIVE = "INACTIVE",
4
- PAUSED = "PAUSED"
1
+ export enum AccountEntityStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE",
4
+ PAUSED = "PAUSED"
5
5
  }
@@ -1,6 +1,6 @@
1
- export enum AccountLevelEnum {
2
- LEVEL_1 = "1",
3
- LEVEL_2 = "2",
4
- LEVEL_3 = "3",
5
- LEVEL_4 = "4",
1
+ export enum AccountLevelEnum {
2
+ LEVEL_1 = "1",
3
+ LEVEL_2 = "2",
4
+ LEVEL_3 = "3",
5
+ LEVEL_4 = "4",
6
6
  }
@@ -1,3 +1,3 @@
1
- export enum BankAccountTypeEnum {
2
- CARD_ISSUING = "Card Issuing"
1
+ export enum BankAccountTypeEnum {
2
+ CARD_ISSUING = "Card Issuing"
3
3
  }
@@ -1,5 +1,5 @@
1
- export enum BankAccountUserStatus {
2
- ACTIVE = "ACTIVE",
3
- BLOCKED = "BLOCKED",
4
- INACTIVE = "INACTIVE"
1
+ export enum BankAccountUserStatus {
2
+ ACTIVE = "ACTIVE",
3
+ BLOCKED = "BLOCKED",
4
+ INACTIVE = "INACTIVE"
5
5
  }
@@ -1,5 +1,5 @@
1
- export enum UserEntityStatusEnum {
2
- ACTIVE = "ACTIVE",
3
- BLOCKED = "BLOCKED",
4
- INACTIVE = "INACTIVE"
1
+ export enum UserEntityStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ BLOCKED = "BLOCKED",
4
+ INACTIVE = "INACTIVE"
5
5
  }
@@ -1,35 +1,35 @@
1
- //dtos
2
-
3
- export * from './dtos/AccountCreateRequest';
4
- export * from './dtos/AccountCreateResponse';
5
- export * from './dtos/BankAccountExternalAddress';
6
- export * from './dtos/CreateBankAccountRequest';
7
- export * from './dtos/CreateBankAccountResponse';
8
- export * from './dtos/CreateBankAccountUserRequest';
9
- export * from './dtos/CreateBankAccountUserResponse';
10
- export * from './dtos/GetBankAccountRequest';
11
- export * from './dtos/GetBankAccountResponse';
12
- export * from './dtos/GetBankAccountUserRequest';
13
- export * from './dtos/GetBankAccountUserResponse';
14
- export * from './dtos/UpdateBankAccountUserRequest';
15
- export * from './dtos/UpdateBankAccountUserResponse';
16
- export * from './dtos/GetBankAccountSensitiveInformationRequest';
17
- export * from './dtos/GetBankAccountSensitiveInformationResponse';
18
- export * from './dtos/AccountInfo';
19
- export * from './dtos/ExchangeInfo';
20
- export * from './dtos/GetAccountBalanceResponse';
21
- export * from './dtos/GetPocketBalanceResponse';
22
- export * from './dtos/GetPocketResponse';
23
- export * from './dtos/PocketItem';
24
- export * from './dtos/PocketBalanceItem';
25
- export * from './dtos/GetAccountResponse';
26
-
27
- //Entities
28
- export * from './entities/AccountEntityBase';
29
-
30
- //Enums
31
- export * from './enums/AccountEntityStatusEnum';
32
- export * from './enums/BankAccountTypeEnum';
33
- export * from './enums/BankAccountUserStatusEnum';
34
- export * from './enums/UserEntityStatusEnum';
35
- export * from './enums/AccountLevelEnum';
1
+ //dtos
2
+
3
+ export * from './dtos/AccountCreateRequest';
4
+ export * from './dtos/AccountCreateResponse';
5
+ export * from './dtos/BankAccountExternalAddress';
6
+ export * from './dtos/CreateBankAccountRequest';
7
+ export * from './dtos/CreateBankAccountResponse';
8
+ export * from './dtos/CreateBankAccountUserRequest';
9
+ export * from './dtos/CreateBankAccountUserResponse';
10
+ export * from './dtos/GetBankAccountRequest';
11
+ export * from './dtos/GetBankAccountResponse';
12
+ export * from './dtos/GetBankAccountUserRequest';
13
+ export * from './dtos/GetBankAccountUserResponse';
14
+ export * from './dtos/UpdateBankAccountUserRequest';
15
+ export * from './dtos/UpdateBankAccountUserResponse';
16
+ export * from './dtos/GetBankAccountSensitiveInformationRequest';
17
+ export * from './dtos/GetBankAccountSensitiveInformationResponse';
18
+ export * from './dtos/AccountInfo';
19
+ export * from './dtos/ExchangeInfo';
20
+ export * from './dtos/GetAccountBalanceResponse';
21
+ export * from './dtos/GetPocketBalanceResponse';
22
+ export * from './dtos/GetPocketResponse';
23
+ export * from './dtos/PocketItem';
24
+ export * from './dtos/PocketBalanceItem';
25
+ export * from './dtos/GetAccountResponse';
26
+
27
+ //Entities
28
+ export * from './entities/AccountEntityBase';
29
+
30
+ //Enums
31
+ export * from './enums/AccountEntityStatusEnum';
32
+ export * from './enums/BankAccountTypeEnum';
33
+ export * from './enums/BankAccountUserStatusEnum';
34
+ export * from './enums/UserEntityStatusEnum';
35
+ export * from './enums/AccountLevelEnum';
@@ -1,131 +1,131 @@
1
-
2
-
3
-
4
- import { IsBoolean, IsEnum, IsNumber, IsOptional, IsString, Length, Matches, ValidateNested } from 'class-validator';
5
- import { TypeOfDirectoryId } from "../../directory/enums/TypeOfDirectoryId";
6
- import { AddressProvider } from "../enums/AddressProvider";
7
- import { AddressStatus } from "../enums/AddressStatus";
8
- import { Place } from "./Place";
9
- import { CountryId } from '../../country/enums/CountryId';
10
- import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
11
-
12
- export class AddressBase {
13
-
14
- @IsOptional()
15
- @IsString()
16
- @Matches(regexUuidV4,
17
- {
18
- message: 'id must be a valid UUID v4',
19
- })
20
- id?: string;
21
-
22
- @IsNumber()
23
- @IsOptional()
24
- distance?: number;
25
-
26
- @IsEnum(TypeOfDirectoryId)
27
- createdBy: TypeOfDirectoryId;
28
-
29
- @IsString()
30
- @Matches(regexUuidV4,
31
- {
32
- message: 'directoryId must be a valid UUID v4',
33
- })
34
- directoryId: string;
35
-
36
- @IsBoolean()
37
- isPrincipal: boolean;
38
-
39
- @IsOptional()
40
- @IsString()
41
- @Length(1, 100)
42
- tag?: string;
43
-
44
- @IsString()
45
- @Length(1, 100)
46
- tenantId: string;
47
-
48
- @IsString()
49
- typeOfAddressId: string;
50
-
51
- @IsEnum(TypeOfDirectoryId)
52
- typeOfDirectoryId: TypeOfDirectoryId;
53
-
54
- @IsEnum(AddressProvider)
55
- provider: AddressProvider;
56
-
57
- @ValidateNested()
58
- place: Place;
59
-
60
- @IsString()
61
- @Matches(regexIso8601,
62
- {
63
- message: 'validFrom must be a valid ISO 8601 date string',
64
- })
65
- validFrom: string;
66
-
67
- @IsOptional()
68
- @IsString()
69
- @Matches(regexIso8601,
70
- {
71
- message: 'validUntil must be a valid ISO 8601 date string',
72
- })
73
- validUntil?: string;
74
-
75
- @IsEnum(AddressStatus)
76
- addressStatus: AddressStatus;
77
-
78
- @IsOptional()
79
- @IsString()
80
- @Length(1, 200)
81
- additionalInformation?: string;
82
-
83
- @IsBoolean()
84
- helpNeeded: boolean;
85
-
86
- @IsOptional()
87
- @IsString()
88
- @Length(1, 10)
89
- internalNumber?: string;
90
-
91
- @IsEnum(CountryId)
92
- countryId: CountryId;
93
-
94
- @IsString()
95
- @Length(1, 100)
96
- street?: string;
97
-
98
- @IsString()
99
- @Length(1, 10)
100
- addressNumber?: string;
101
-
102
- @IsOptional()
103
- @IsString()
104
- @Length(2, 60)
105
- municipality?: string;
106
-
107
- @IsOptional()
108
- @IsString()
109
- subMunicipality?: string;
110
-
111
- @IsOptional()
112
- @IsString()
113
- @Length(2, 60)
114
- neighborhood?: string;
115
-
116
- @IsOptional()
117
- @IsString()
118
- @Length(2, 60)
119
- subRegion?: string;
120
-
121
- @IsString()
122
- @Length(5, 10)
123
- region?: string;
124
-
125
- @IsString()
126
- @Length(5, 10)
127
- postalCode?: string;
128
-
129
- @IsEnum(CountryId)
130
- country: string;
1
+
2
+
3
+
4
+ import { IsBoolean, IsEnum, IsNumber, IsOptional, IsString, Length, Matches, ValidateNested } from 'class-validator';
5
+ import { TypeOfDirectoryId } from "../../directory/enums/TypeOfDirectoryId";
6
+ import { AddressProvider } from "../enums/AddressProvider";
7
+ import { AddressStatus } from "../enums/AddressStatus";
8
+ import { Place } from "./Place";
9
+ import { CountryId } from '../../country/enums/CountryId';
10
+ import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
11
+
12
+ export class AddressBase {
13
+
14
+ @IsOptional()
15
+ @IsString()
16
+ @Matches(regexUuidV4,
17
+ {
18
+ message: 'id must be a valid UUID v4',
19
+ })
20
+ id?: string;
21
+
22
+ @IsNumber()
23
+ @IsOptional()
24
+ distance?: number;
25
+
26
+ @IsEnum(TypeOfDirectoryId)
27
+ createdBy: TypeOfDirectoryId;
28
+
29
+ @IsString()
30
+ @Matches(regexUuidV4,
31
+ {
32
+ message: 'directoryId must be a valid UUID v4',
33
+ })
34
+ directoryId: string;
35
+
36
+ @IsBoolean()
37
+ isPrincipal: boolean;
38
+
39
+ @IsOptional()
40
+ @IsString()
41
+ @Length(1, 100)
42
+ tag?: string;
43
+
44
+ @IsString()
45
+ @Length(1, 100)
46
+ tenantId: string;
47
+
48
+ @IsString()
49
+ typeOfAddressId: string;
50
+
51
+ @IsEnum(TypeOfDirectoryId)
52
+ typeOfDirectoryId: TypeOfDirectoryId;
53
+
54
+ @IsEnum(AddressProvider)
55
+ provider: AddressProvider;
56
+
57
+ @ValidateNested()
58
+ place: Place;
59
+
60
+ @IsString()
61
+ @Matches(regexIso8601,
62
+ {
63
+ message: 'validFrom must be a valid ISO 8601 date string',
64
+ })
65
+ validFrom: string;
66
+
67
+ @IsOptional()
68
+ @IsString()
69
+ @Matches(regexIso8601,
70
+ {
71
+ message: 'validUntil must be a valid ISO 8601 date string',
72
+ })
73
+ validUntil?: string;
74
+
75
+ @IsEnum(AddressStatus)
76
+ addressStatus: AddressStatus;
77
+
78
+ @IsOptional()
79
+ @IsString()
80
+ @Length(1, 200)
81
+ additionalInformation?: string;
82
+
83
+ @IsBoolean()
84
+ helpNeeded: boolean;
85
+
86
+ @IsOptional()
87
+ @IsString()
88
+ @Length(1, 10)
89
+ internalNumber?: string;
90
+
91
+ @IsEnum(CountryId)
92
+ countryId: CountryId;
93
+
94
+ @IsString()
95
+ @Length(1, 100)
96
+ street?: string;
97
+
98
+ @IsString()
99
+ @Length(1, 10)
100
+ addressNumber?: string;
101
+
102
+ @IsOptional()
103
+ @IsString()
104
+ @Length(2, 60)
105
+ municipality?: string;
106
+
107
+ @IsOptional()
108
+ @IsString()
109
+ subMunicipality?: string;
110
+
111
+ @IsOptional()
112
+ @IsString()
113
+ @Length(2, 60)
114
+ neighborhood?: string;
115
+
116
+ @IsOptional()
117
+ @IsString()
118
+ @Length(2, 60)
119
+ subRegion?: string;
120
+
121
+ @IsString()
122
+ @Length(5, 10)
123
+ region?: string;
124
+
125
+ @IsString()
126
+ @Length(5, 10)
127
+ postalCode?: string;
128
+
129
+ @IsEnum(CountryId)
130
+ country: string;
131
131
  }
@@ -1,7 +1,7 @@
1
- import { AddressBase } from "./AddressBase";
2
-
3
-
4
- export class AddressCreateRequest extends AddressBase {
5
-
6
-
1
+ import { AddressBase } from "./AddressBase";
2
+
3
+
4
+ export class AddressCreateRequest extends AddressBase {
5
+
6
+
7
7
  }
@@ -1,41 +1,41 @@
1
-
2
-
3
-
4
- import { IsOptional, IsString, Length, Matches } from 'class-validator';
5
-
6
- import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
7
- import { AddressBase } from './AddressBase';
8
-
9
- export class AddressResponse extends AddressBase {
10
-
11
- @IsString()
12
- @Matches(regexUuidV4,
13
- {
14
- message: 'id must be a valid UUID v4',
15
- })
16
- id: string
17
-
18
- @IsOptional()
19
- @IsString()
20
- @Matches(regexIso8601,
21
- {
22
- message: 'createDate must be a valid ISO 8601 date string',
23
- })
24
- createDate: string;
25
-
26
- @IsOptional()
27
- @IsString()
28
- @Matches(regexIso8601,
29
- {
30
- message: 'updateDate must be a valid ISO 8601 date string',
31
- })
32
- updateDate?: string;
33
-
34
- @IsOptional()
35
- @IsString()
36
- @Length(1, 100)
37
- updatedBy?: string;
38
- }
39
-
40
-
41
-
1
+
2
+
3
+
4
+ import { IsOptional, IsString, Length, Matches } from 'class-validator';
5
+
6
+ import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
7
+ import { AddressBase } from './AddressBase';
8
+
9
+ export class AddressResponse extends AddressBase {
10
+
11
+ @IsString()
12
+ @Matches(regexUuidV4,
13
+ {
14
+ message: 'id must be a valid UUID v4',
15
+ })
16
+ id: string
17
+
18
+ @IsOptional()
19
+ @IsString()
20
+ @Matches(regexIso8601,
21
+ {
22
+ message: 'createDate must be a valid ISO 8601 date string',
23
+ })
24
+ createDate: string;
25
+
26
+ @IsOptional()
27
+ @IsString()
28
+ @Matches(regexIso8601,
29
+ {
30
+ message: 'updateDate must be a valid ISO 8601 date string',
31
+ })
32
+ updateDate?: string;
33
+
34
+ @IsOptional()
35
+ @IsString()
36
+ @Length(1, 100)
37
+ updatedBy?: string;
38
+ }
39
+
40
+
41
+
@@ -1,12 +1,12 @@
1
- import { CountryId } from "../../country";
2
-
3
-
4
- export class AddressShippingCardRequest {
5
-
6
- addressId: string | null;
7
- addressServiceLocationId: string | null;
8
- provider: string | null;
9
- serviceType: string | null;
10
- countryId: CountryId;
11
- directoryId: string;
12
- };
1
+ import { CountryId } from "../../country";
2
+
3
+
4
+ export class AddressShippingCardRequest {
5
+
6
+ addressId: string | null;
7
+ addressServiceLocationId: string | null;
8
+ provider: string | null;
9
+ serviceType: string | null;
10
+ countryId: CountryId;
11
+ directoryId: string;
12
+ };
@@ -1,11 +1,11 @@
1
- import { AddressResponse } from "./AddressResponse";
2
- import { OfficeDetails } from "./OfficeDetails";
3
-
4
-
5
- export declare type AddressShippingCardResponse = {
6
- addresses:
7
- {
8
- address: AddressResponse,
9
- closeOffice: OfficeDetails
10
- }
11
- };
1
+ import { AddressResponse } from "./AddressResponse";
2
+ import { OfficeDetails } from "./OfficeDetails";
3
+
4
+
5
+ export declare type AddressShippingCardResponse = {
6
+ addresses:
7
+ {
8
+ address: AddressResponse,
9
+ closeOffice: OfficeDetails
10
+ }
11
+ };
@@ -1,5 +1,5 @@
1
-
2
-
3
- export type Geometry = {
4
- point: [number, number];
1
+
2
+
3
+ export type Geometry = {
4
+ point: [number, number];
5
5
  }