@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,31 +1,31 @@
1
- import { OperationSchedule } from "./OperationSchedule"
2
-
3
-
4
- export type OfficeDetails = {
5
- code: string;
6
- name: string;
7
- ownerName: string;
8
- address: AddressDetail;
9
- latitude: string;
10
- longitude: string;
11
- distance: number;
12
- phoneNumber: string;
13
- operationSchedule: OperationSchedule[];
14
- };
15
-
16
- export type AddressDetail = {
17
- fullAddress: string;
18
- address1: string;
19
- address2: string;
20
- city: string;
21
- neighorhood: string;
22
- state: string;
23
- zipCode: string;
24
- reference: string;
25
- betweenRoadName1: string;
26
- betweenRoadName2: string;
27
- externalNumber: string;
28
- internalNumber: string;
29
- roadTypeCode: string;
30
- roadTypeAbbName: string;
1
+ import { OperationSchedule } from "./OperationSchedule"
2
+
3
+
4
+ export type OfficeDetails = {
5
+ code: string;
6
+ name: string;
7
+ ownerName: string;
8
+ address: AddressDetail;
9
+ latitude: string;
10
+ longitude: string;
11
+ distance: number;
12
+ phoneNumber: string;
13
+ operationSchedule: OperationSchedule[];
14
+ };
15
+
16
+ export type AddressDetail = {
17
+ fullAddress: string;
18
+ address1: string;
19
+ address2: string;
20
+ city: string;
21
+ neighorhood: string;
22
+ state: string;
23
+ zipCode: string;
24
+ reference: string;
25
+ betweenRoadName1: string;
26
+ betweenRoadName2: string;
27
+ externalNumber: string;
28
+ internalNumber: string;
29
+ roadTypeCode: string;
30
+ roadTypeAbbName: string;
31
31
  };
@@ -1,9 +1,9 @@
1
-
2
-
3
- export type OperationSchedule = {
4
- Weekday: string
5
- StartHourDay: string
6
- FinishHourDay: string
7
- StartHourLunchDay: string
8
- FinishHourLunchDay: string
1
+
2
+
3
+ export type OperationSchedule = {
4
+ Weekday: string
5
+ StartHourDay: string
6
+ FinishHourDay: string
7
+ StartHourLunchDay: string
8
+ FinishHourLunchDay: string
9
9
  }
@@ -1,84 +1,84 @@
1
- import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
2
- import { Geometry } from "./Geometry";
3
- import { Timezone } from "./Timezone";
4
- import { Country } from '../../country/enums/Country';
5
-
6
- export class Place {
7
- @ValidateNested()
8
- geometry: Geometry;
9
-
10
- @IsOptional()
11
- @IsString()
12
- addressNumber?: string;
13
-
14
- @IsOptional()
15
- @IsArray()
16
- @IsString({ each: true })
17
- categories?: string[];
18
-
19
- @IsOptional()
20
- @IsEnum(Country)
21
- country?: string;
22
-
23
- @IsBoolean()
24
- interpolated: boolean;
25
-
26
- @IsOptional()
27
- @IsString()
28
- @Length(1, 300)
29
- label?: string;
30
-
31
- @IsOptional()
32
- @IsString()
33
- @Length(1, 60)
34
- municipality?: string;
35
-
36
- @IsOptional()
37
- @IsString()
38
- @Length(2, 60)
39
- neighborhood?: string;
40
-
41
- @IsOptional()
42
- @IsString()
43
- @Length(5, 10)
44
- postalCode?: string;
45
-
46
- @IsOptional()
47
- @IsString()
48
- @Length(5, 10)
49
- region?: string;
50
-
51
- @IsOptional()
52
- @IsString()
53
- @Length(1, 100)
54
- street?: string;
55
-
56
- @IsOptional()
57
- @IsString()
58
- @Length(2, 60)
59
- subMunicipality?: string;
60
-
61
- @IsOptional()
62
- @IsString()
63
- @Length(2, 60)
64
- subRegion?: string;
65
-
66
- @IsOptional()
67
- @IsArray()
68
- @IsString({ each: true })
69
- supplementalCategories?: string[];
70
-
71
- @IsOptional()
72
- @ValidateNested()
73
- timezone?: Timezone;
74
-
75
- @IsOptional()
76
- @IsString()
77
- @Length(1, 10)
78
- unitNumber?: string;
79
-
80
- @IsOptional()
81
- @IsString()
82
- @Length(1, 10)
83
- unitType?: string;
1
+ import { IsArray, IsBoolean, IsEnum, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
2
+ import { Geometry } from "./Geometry";
3
+ import { Timezone } from "./Timezone";
4
+ import { Country } from '../../country/enums/Country';
5
+
6
+ export class Place {
7
+ @ValidateNested()
8
+ geometry: Geometry;
9
+
10
+ @IsOptional()
11
+ @IsString()
12
+ addressNumber?: string;
13
+
14
+ @IsOptional()
15
+ @IsArray()
16
+ @IsString({ each: true })
17
+ categories?: string[];
18
+
19
+ @IsOptional()
20
+ @IsEnum(Country)
21
+ country?: string;
22
+
23
+ @IsBoolean()
24
+ interpolated: boolean;
25
+
26
+ @IsOptional()
27
+ @IsString()
28
+ @Length(1, 300)
29
+ label?: string;
30
+
31
+ @IsOptional()
32
+ @IsString()
33
+ @Length(1, 60)
34
+ municipality?: string;
35
+
36
+ @IsOptional()
37
+ @IsString()
38
+ @Length(2, 60)
39
+ neighborhood?: string;
40
+
41
+ @IsOptional()
42
+ @IsString()
43
+ @Length(5, 10)
44
+ postalCode?: string;
45
+
46
+ @IsOptional()
47
+ @IsString()
48
+ @Length(5, 10)
49
+ region?: string;
50
+
51
+ @IsOptional()
52
+ @IsString()
53
+ @Length(1, 100)
54
+ street?: string;
55
+
56
+ @IsOptional()
57
+ @IsString()
58
+ @Length(2, 60)
59
+ subMunicipality?: string;
60
+
61
+ @IsOptional()
62
+ @IsString()
63
+ @Length(2, 60)
64
+ subRegion?: string;
65
+
66
+ @IsOptional()
67
+ @IsArray()
68
+ @IsString({ each: true })
69
+ supplementalCategories?: string[];
70
+
71
+ @IsOptional()
72
+ @ValidateNested()
73
+ timezone?: Timezone;
74
+
75
+ @IsOptional()
76
+ @IsString()
77
+ @Length(1, 10)
78
+ unitNumber?: string;
79
+
80
+ @IsOptional()
81
+ @IsString()
82
+ @Length(1, 10)
83
+ unitType?: string;
84
84
  }
@@ -1,36 +1,36 @@
1
- import { IsString, Length, IsOptional } from 'class-validator';
2
- import { CountryId } from '../../country/enums/CountryId';
3
-
4
- export class Shipping {
5
- @IsString()
6
- @Length(2, 60)
7
- municipality: string;
8
-
9
- @IsString()
10
- @Length(2, 60)
11
- neighborhood: string;
12
-
13
- @IsString()
14
- @Length(5, 10)
15
- postalCode: string;
16
-
17
- @IsString()
18
- @Length(2, 100)
19
- street: string;
20
-
21
- @IsString()
22
- @Length(2, 60)
23
- subRegion: string;
24
-
25
- @IsString()
26
- @Length(1, 10)
27
- addressNumber: string;
28
-
29
- @IsOptional()
30
- @IsString()
31
- @Length(1, 200)
32
- internalNumber?: string;
33
-
34
- @IsString()
35
- countryId: CountryId;
36
- }
1
+ import { IsString, Length, IsOptional } from 'class-validator';
2
+ import { CountryId } from '../../country/enums/CountryId';
3
+
4
+ export class Shipping {
5
+ @IsString()
6
+ @Length(2, 60)
7
+ municipality: string;
8
+
9
+ @IsString()
10
+ @Length(2, 60)
11
+ neighborhood: string;
12
+
13
+ @IsString()
14
+ @Length(5, 10)
15
+ postalCode: string;
16
+
17
+ @IsString()
18
+ @Length(2, 100)
19
+ street: string;
20
+
21
+ @IsString()
22
+ @Length(2, 60)
23
+ subRegion: string;
24
+
25
+ @IsString()
26
+ @Length(1, 10)
27
+ addressNumber: string;
28
+
29
+ @IsOptional()
30
+ @IsString()
31
+ @Length(1, 200)
32
+ internalNumber?: string;
33
+
34
+ @IsString()
35
+ countryId: CountryId;
36
+ }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export type Timezone = {
4
- name: string;
5
- offset: string;
1
+
2
+
3
+ export type Timezone = {
4
+ name: string;
5
+ offset: string;
6
6
  }
@@ -1,10 +1,10 @@
1
-
2
- /**
3
- * AddressProvider enum
4
- * @description AddressProvider enum is used to define the address provider
5
- * @enum {string} AddressProvider
6
- */
7
- export enum AddressProvider {
8
- AWS = "AWS",
9
- MANUAL = "MANUAL"
10
- }
1
+
2
+ /**
3
+ * AddressProvider enum
4
+ * @description AddressProvider enum is used to define the address provider
5
+ * @enum {string} AddressProvider
6
+ */
7
+ export enum AddressProvider {
8
+ AWS = "AWS",
9
+ MANUAL = "MANUAL"
10
+ }
@@ -1,10 +1,10 @@
1
-
2
- /**
3
- * AddressProvider Status
4
- * @description AddressProvider Status is used to define the address provider status
5
- * @enum {string} AddressStatus
6
- */
7
- export enum AddressStatus {
8
- VISIBLE = "VISIBLE",
9
- NOT_VISIBLE = "NOT_VISIBLE"
1
+
2
+ /**
3
+ * AddressProvider Status
4
+ * @description AddressProvider Status is used to define the address provider status
5
+ * @enum {string} AddressStatus
6
+ */
7
+ export enum AddressStatus {
8
+ VISIBLE = "VISIBLE",
9
+ NOT_VISIBLE = "NOT_VISIBLE"
10
10
  }
@@ -1,16 +1,16 @@
1
- //dtos
2
- export * from './dtos/Shipping';
3
- export * from './dtos/AddressCreateRequest';
4
- export * from './dtos/AddressResponse';
5
- export * from './dtos/Geometry';
6
- export * from './dtos/Place';
7
- export * from './dtos/Timezone';
8
- export * from './dtos/OfficeDetails'
9
- export * from './dtos/OperationSchedule'
10
- export * from './dtos/AddressShippingCardResponse'
11
- export * from './dtos/AddressShippingCardRequest'
12
-
13
- //enums
14
- export * from './enums/AddressStatus';
15
- export * from './enums/AddressProvider';
16
-
1
+ //dtos
2
+ export * from './dtos/Shipping';
3
+ export * from './dtos/AddressCreateRequest';
4
+ export * from './dtos/AddressResponse';
5
+ export * from './dtos/Geometry';
6
+ export * from './dtos/Place';
7
+ export * from './dtos/Timezone';
8
+ export * from './dtos/OfficeDetails'
9
+ export * from './dtos/OperationSchedule'
10
+ export * from './dtos/AddressShippingCardResponse'
11
+ export * from './dtos/AddressShippingCardRequest'
12
+
13
+ //enums
14
+ export * from './enums/AddressStatus';
15
+ export * from './enums/AddressProvider';
16
+
@@ -1,11 +1,11 @@
1
-
2
-
3
- export enum App {
4
- USER = "USER",
5
- MERCHANT = "MERCHANT",
6
- BACKOFFICE = "BACKOFFICE",
7
- AGENT = "AGENT",
8
- USER_APP = "APP",
9
- USER_WEB = "WEB",
10
- HYBRID = "HYBRID"
1
+
2
+
3
+ export enum App {
4
+ USER = "USER",
5
+ MERCHANT = "MERCHANT",
6
+ BACKOFFICE = "BACKOFFICE",
7
+ AGENT = "AGENT",
8
+ USER_APP = "APP",
9
+ USER_WEB = "WEB",
10
+ HYBRID = "HYBRID"
11
11
  }
package/src/app/index.ts CHANGED
@@ -1,4 +1,4 @@
1
-
2
-
3
- //enums
1
+
2
+
3
+ //enums
4
4
  export * from './enums/App';
@@ -1,33 +1,33 @@
1
- import { IsBoolean, IsNotEmpty, IsOptional, IsString, Length, Matches } from "class-validator";
2
- import { IsPhoneNumberFiado } from "../../card/validations/IsPhoneNumberConstraint";
3
- import { regexUuidV4 } from "../../helpers/constans/regex";
4
-
5
-
6
-
7
- export class SignUpAdditionalRequest {
8
-
9
- @IsNotEmpty()
10
- @IsString()
11
- @Length(3, 70)
12
- name: string;
13
-
14
- @IsNotEmpty()
15
- @IsString()
16
- @IsPhoneNumberFiado()
17
- phoneNumber: string;
18
-
19
- @IsBoolean()
20
- mexCreditAdditionalWish: boolean;
21
-
22
- @IsString()
23
- @Matches(regexUuidV4,
24
- {
25
- message: 'ownerDirectoryId must be a valid UUID v4',
26
- })
27
- ownerDirectoryId?: string;
28
-
29
- @IsOptional()
30
- @IsString()
31
- ownerRelation: string
32
-
1
+ import { IsBoolean, IsNotEmpty, IsOptional, IsString, Length, Matches } from "class-validator";
2
+ import { IsPhoneNumberFiado } from "../../card/validations/IsPhoneNumberConstraint";
3
+ import { regexUuidV4 } from "../../helpers/constans/regex";
4
+
5
+
6
+
7
+ export class SignUpAdditionalRequest {
8
+
9
+ @IsNotEmpty()
10
+ @IsString()
11
+ @Length(3, 70)
12
+ name: string;
13
+
14
+ @IsNotEmpty()
15
+ @IsString()
16
+ @IsPhoneNumberFiado()
17
+ phoneNumber: string;
18
+
19
+ @IsBoolean()
20
+ mexCreditAdditionalWish: boolean;
21
+
22
+ @IsString()
23
+ @Matches(regexUuidV4,
24
+ {
25
+ message: 'ownerDirectoryId must be a valid UUID v4',
26
+ })
27
+ ownerDirectoryId?: string;
28
+
29
+ @IsOptional()
30
+ @IsString()
31
+ ownerRelation: string
32
+
33
33
  }
@@ -1,6 +1,6 @@
1
-
2
-
3
- export class SignUpAdditionalResponse {
4
- direcrtoryId: string;
5
- peopleId: string;
1
+
2
+
3
+ export class SignUpAdditionalResponse {
4
+ direcrtoryId: string;
5
+ peopleId: string;
6
6
  }
@@ -1,4 +1,4 @@
1
-
2
- //dtos
3
- export * from './dtos/SignUpAdditionalRequest';
1
+
2
+ //dtos
3
+ export * from './dtos/SignUpAdditionalRequest';
4
4
  export * from './dtos/SignUpAdditionalResponse';
@@ -1,12 +1,12 @@
1
- import { IsEnum, IsString, Matches } from 'class-validator';
2
- import { CountryId } from '../../country/enums/CountryId';
3
-
4
-
5
- export class CardActivateRequest {
6
- @IsEnum(CountryId)
7
- countryId: CountryId;
8
-
9
- @IsString()
10
- @Matches(/^\d{16}$/)
11
- panOrCode: string;
12
- }
1
+ import { IsEnum, IsString, Matches } from 'class-validator';
2
+ import { CountryId } from '../../country/enums/CountryId';
3
+
4
+
5
+ export class CardActivateRequest {
6
+ @IsEnum(CountryId)
7
+ countryId: CountryId;
8
+
9
+ @IsString()
10
+ @Matches(/^\d{16}$/)
11
+ panOrCode: string;
12
+ }
@@ -1,26 +1,26 @@
1
- import { IsDateString, IsPhoneNumber, IsString } from "class-validator";
2
-
3
-
4
- export class CardAdditionalRequest {
5
-
6
- @IsString()
7
- names: string;
8
-
9
- @IsString()
10
- lastNamePaternal: string;
11
-
12
- @IsString()
13
- lastNameMaternal: string;
14
-
15
- @IsPhoneNumber()
16
- phoneNumber: string;
17
-
18
- @IsDateString()
19
- dateOfBirth: string;
20
-
21
- @IsString()
22
- ownerRelation: string;
23
-
24
- @IsString()
25
- addressId;
1
+ import { IsDateString, IsPhoneNumber, IsString } from "class-validator";
2
+
3
+
4
+ export class CardAdditionalRequest {
5
+
6
+ @IsString()
7
+ names: string;
8
+
9
+ @IsString()
10
+ lastNamePaternal: string;
11
+
12
+ @IsString()
13
+ lastNameMaternal: string;
14
+
15
+ @IsPhoneNumber()
16
+ phoneNumber: string;
17
+
18
+ @IsDateString()
19
+ dateOfBirth: string;
20
+
21
+ @IsString()
22
+ ownerRelation: string;
23
+
24
+ @IsString()
25
+ addressId;
26
26
  }
@@ -1,22 +1,22 @@
1
-
2
-
3
- import { IsEnum, IsNotEmpty, IsOptional } from 'class-validator';
4
- import { CreditOrDebit } from '../enums/CreditOrDebit';
5
- import { VirtualOrPhysical } from '../enums/VirtualOrPhysical';
6
- import { DeliveryChannel } from '../enums/DeliveryChannel';
7
-
8
- export class CardApplicationRequest {
9
-
10
- @IsOptional()
11
- @IsEnum(CreditOrDebit)
12
- creditOrDebit: string;
13
-
14
- @IsEnum(VirtualOrPhysical)
15
- virtualOrPhysical: VirtualOrPhysical.PHYSICAL;
16
-
17
- @IsNotEmpty()
18
- addressId: string;
19
-
20
- @IsEnum(DeliveryChannel)
21
- deliveryChannel: DeliveryChannel
22
- }
1
+
2
+
3
+ import { IsEnum, IsNotEmpty, IsOptional } from 'class-validator';
4
+ import { CreditOrDebit } from '../enums/CreditOrDebit';
5
+ import { VirtualOrPhysical } from '../enums/VirtualOrPhysical';
6
+ import { DeliveryChannel } from '../enums/DeliveryChannel';
7
+
8
+ export class CardApplicationRequest {
9
+
10
+ @IsOptional()
11
+ @IsEnum(CreditOrDebit)
12
+ creditOrDebit: string;
13
+
14
+ @IsEnum(VirtualOrPhysical)
15
+ virtualOrPhysical: VirtualOrPhysical.PHYSICAL;
16
+
17
+ @IsNotEmpty()
18
+ addressId: string;
19
+
20
+ @IsEnum(DeliveryChannel)
21
+ deliveryChannel: DeliveryChannel
22
+ }
@@ -1,11 +1,11 @@
1
- import { TypeOfDirectoryId } from "../../directory"
2
- import { CountryId } from "../../country"
3
-
4
- export class CardBalanceResponse {
5
-
6
- cardBalanceId: string
7
- currentBalance: number
8
- directoryId: string
9
- typeOfDirectoryId: TypeOfDirectoryId
10
- currencyId: CountryId
1
+ import { TypeOfDirectoryId } from "../../directory"
2
+ import { CountryId } from "../../country"
3
+
4
+ export class CardBalanceResponse {
5
+
6
+ cardBalanceId: string
7
+ currentBalance: number
8
+ directoryId: string
9
+ typeOfDirectoryId: TypeOfDirectoryId
10
+ currencyId: CountryId
11
11
  }