@fiado/type-kit 1.0.37 → 1.0.39

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 (116) 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/card/dtos/CardUpdateRequest.js +1 -2
  7. package/bin/index.d.ts +2 -0
  8. package/bin/index.js +3 -1
  9. package/bin/notificationMessages/dtos/NotificationQueueMessageRequest.d.ts +6 -0
  10. package/bin/notificationMessages/dtos/NotificationQueueMessageRequest.js +6 -0
  11. package/bin/notificationMessages/dtos/QueueMessageDestination.d.ts +6 -0
  12. package/bin/notificationMessages/dtos/QueueMessageDestination.js +6 -0
  13. package/bin/notificationMessages/dtos/QueueMessageVariableValues.d.ts +4 -0
  14. package/bin/notificationMessages/dtos/QueueMessageVariableValues.js +6 -0
  15. package/bin/notificationMessages/index.d.ts +3 -0
  16. package/bin/notificationMessages/index.js +19 -0
  17. package/bin/sessionActivity/dtos/SessionActivityQueueMessageRequest.d.ts +10 -0
  18. package/bin/sessionActivity/dtos/SessionActivityQueueMessageRequest.js +6 -0
  19. package/bin/sessionActivity/enums/SessionActivityActionEnum.d.ts +7 -0
  20. package/bin/sessionActivity/enums/SessionActivityActionEnum.js +11 -0
  21. package/bin/sessionActivity/enums/SessionActivityActionOriginEnum.d.ts +4 -0
  22. package/bin/sessionActivity/enums/SessionActivityActionOriginEnum.js +8 -0
  23. package/bin/sessionActivity/index.d.ts +3 -0
  24. package/bin/sessionActivity/index.js +19 -0
  25. package/package.json +23 -23
  26. package/src/account/dtos/AccountCreateRequest.ts +44 -44
  27. package/src/account/dtos/AccountCreateResponse.ts +5 -5
  28. package/src/account/dtos/AccountResponse.ts +26 -26
  29. package/src/account/dtos/PocketCreateRequest.ts +18 -18
  30. package/src/account/dtos/PocketCreateResponse.ts +4 -4
  31. package/src/account/enums/AccountStatus.ts +6 -6
  32. package/src/account/index.ts +16 -16
  33. package/src/address/dtos/AddressBase.ts +130 -130
  34. package/src/address/dtos/AddressCreateRequest.ts +6 -6
  35. package/src/address/dtos/AddressResponse.ts +41 -41
  36. package/src/address/dtos/Geometry.ts +4 -4
  37. package/src/address/dtos/Place.ts +83 -83
  38. package/src/address/dtos/Shipping.ts +36 -36
  39. package/src/address/dtos/Timezone.ts +5 -5
  40. package/src/address/enums/AddressProvider.ts +10 -10
  41. package/src/address/enums/AddressStatus.ts +9 -9
  42. package/src/address/index.ts +12 -12
  43. package/src/app/enums/App.ts +10 -10
  44. package/src/app/index.ts +3 -3
  45. package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
  46. package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
  47. package/src/authentication/index.ts +3 -3
  48. package/src/card/dtos/CardActivateRequest.ts +12 -12
  49. package/src/card/dtos/CardApplicationRequest.ts +20 -20
  50. package/src/card/dtos/CardBalanceResponse.ts +10 -10
  51. package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -41
  52. package/src/card/dtos/CardCreateRequest.ts +141 -141
  53. package/src/card/dtos/CardResponse.ts +4 -4
  54. package/src/card/dtos/CardUpdateRequest.ts +13 -15
  55. package/src/card/enums/Brand.ts +7 -7
  56. package/src/card/enums/CardIssuanceStatus.ts +5 -5
  57. package/src/card/enums/CardType.ts +4 -4
  58. package/src/card/enums/CardUpdateKey.ts +4 -4
  59. package/src/card/enums/IssuanceType.ts +5 -5
  60. package/src/card/enums/OwnershipType.ts +3 -3
  61. package/src/card/enums/Status.ts +5 -5
  62. package/src/card/enums/UpdateKey.ts +5 -5
  63. package/src/card/index.ts +19 -19
  64. package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
  65. package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
  66. package/src/country/enums/Country.ts +6 -6
  67. package/src/country/enums/CountryId.ts +6 -6
  68. package/src/country/index.ts +5 -5
  69. package/src/currency/dtos/CurrencyResponse.ts +8 -8
  70. package/src/currency/index.ts +2 -2
  71. package/src/directory/dtos/DirectoryResponse.ts +17 -17
  72. package/src/directory/dtos/External.ts +6 -6
  73. package/src/directory/enums/Profile.ts +6 -6
  74. package/src/directory/enums/Scope.ts +7 -7
  75. package/src/directory/enums/Status.ts +8 -8
  76. package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
  77. package/src/directory/index.ts +7 -7
  78. package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
  79. package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
  80. package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
  81. package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
  82. package/src/exchangeRate/index.ts +8 -8
  83. package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
  84. package/src/group/dtos/GroupCreateRequest.ts +48 -48
  85. package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
  86. package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
  87. package/src/group/dtos/GroupResponse.ts +17 -17
  88. package/src/group/dtos/GroupUpdateRequest.ts +27 -27
  89. package/src/group/enums/GroupAction.ts +8 -8
  90. package/src/group/enums/GroupStatus.ts +6 -6
  91. package/src/group/enums/RelationStatus.ts +8 -8
  92. package/src/group/enums/RelationType.ts +9 -9
  93. package/src/group/index.ts +18 -18
  94. package/src/header/TokenPayload.ts +16 -16
  95. package/src/header/index.ts +3 -3
  96. package/src/helpers/ValidationUtils.ts +32 -32
  97. package/src/helpers/constans/regex.ts +12 -12
  98. package/src/identity/dtos/IdentificationDocument.ts +24 -24
  99. package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
  100. package/src/identity/dtos/PeopleResponse.ts +80 -80
  101. package/src/identity/dtos/TypeOfDocument.ts +11 -11
  102. package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
  103. package/src/identity/enums/SexDocument.ts +6 -6
  104. package/src/identity/index.ts +11 -11
  105. package/src/index.ts +20 -20
  106. package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -0
  107. package/src/notificationMessages/dtos/QueueMessageDestination.ts +7 -0
  108. package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +4 -0
  109. package/src/notificationMessages/index.ts +3 -0
  110. package/src/provider/enums/Provider.ts +5 -5
  111. package/src/provider/index.ts +1 -1
  112. package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
  113. package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +11 -0
  114. package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -0
  115. package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -0
  116. package/src/sessionActivity/index.ts +3 -0
@@ -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,12 +1,12 @@
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
-
9
- //enums
10
- export * from './enums/AddressStatus';
11
- export * from './enums/AddressProvider';
12
-
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
+
9
+ //enums
10
+ export * from './enums/AddressStatus';
11
+ export * from './enums/AddressProvider';
12
+
@@ -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: number;
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: number;
8
+
9
+ @IsString()
10
+ @Matches(/^\d{16}$/)
11
+ panOrCode: string;
12
+ }
@@ -1,20 +1,20 @@
1
-
2
-
3
- import { IsEnum, IsNotEmpty, ValidateNested } from 'class-validator';
4
- import { Type } from 'class-transformer';
5
- import { CountryId } from '../../country/enums/CountryId';
6
- import { CardType } from '../enums/CardType';
7
- import { Shipping } from '../../address/dtos/Shipping';
8
-
9
- export class CardApplicationRequest {
10
- @IsEnum(CountryId)
11
- countryId: number;
12
-
13
- @IsEnum(CardType)
14
- type: string;
15
-
16
- @IsNotEmpty()
17
- @ValidateNested()
18
- @Type(() => Shipping)
19
- address: Shipping;
20
- }
1
+
2
+
3
+ import { IsEnum, IsNotEmpty, ValidateNested } from 'class-validator';
4
+ import { Type } from 'class-transformer';
5
+ import { CountryId } from '../../country/enums/CountryId';
6
+ import { CardType } from '../enums/CardType';
7
+ import { Shipping } from '../../address/dtos/Shipping';
8
+
9
+ export class CardApplicationRequest {
10
+ @IsEnum(CountryId)
11
+ countryId: number;
12
+
13
+ @IsEnum(CardType)
14
+ type: string;
15
+
16
+ @IsNotEmpty()
17
+ @ValidateNested()
18
+ @Type(() => Shipping)
19
+ address: Shipping;
20
+ }
@@ -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
  }
@@ -1,41 +1,41 @@
1
- import { IsDateString, IsString, Length, ValidateNested } from "class-validator";
2
- import { IsNotEmpty } from "class-validator/types/decorator/common/IsNotEmpty";
3
- import { IsPhoneNumberFiado } from "../validations/IsPhoneNumberConstraint";
4
- import { Type } from "class-transformer";
5
- import { AddressCreateRequest } from "../../address";
6
-
7
- export class CardCreateAdditionalRequest {
8
-
9
- @IsNotEmpty()
10
- @IsString()
11
- @Length(3, 40)
12
- name: string;
13
-
14
- @IsNotEmpty()
15
- @IsString()
16
- @Length(3, 20)
17
- lastNamePaternal: string;
18
-
19
- @IsNotEmpty()
20
- @IsString()
21
- @Length(3, 20)
22
- lastNameMaternal: string;
23
-
24
- @IsNotEmpty()
25
- @IsString()
26
- @IsPhoneNumberFiado()
27
- phoneNumber: string;
28
-
29
- @IsDateString()
30
- dateOfBirth: string;
31
-
32
- @IsNotEmpty()
33
- @IsString()
34
- @Length(3, 20)
35
- ownerRelation: string;
36
-
37
- @ValidateNested()
38
- @Type(() => AddressCreateRequest)
39
- address: AddressCreateRequest;
40
- }
41
-
1
+ import { IsDateString, IsString, Length, ValidateNested } from "class-validator";
2
+ import { IsNotEmpty } from "class-validator/types/decorator/common/IsNotEmpty";
3
+ import { IsPhoneNumberFiado } from "../validations/IsPhoneNumberConstraint";
4
+ import { Type } from "class-transformer";
5
+ import { AddressCreateRequest } from "../../address";
6
+
7
+ export class CardCreateAdditionalRequest {
8
+
9
+ @IsNotEmpty()
10
+ @IsString()
11
+ @Length(3, 40)
12
+ name: string;
13
+
14
+ @IsNotEmpty()
15
+ @IsString()
16
+ @Length(3, 20)
17
+ lastNamePaternal: string;
18
+
19
+ @IsNotEmpty()
20
+ @IsString()
21
+ @Length(3, 20)
22
+ lastNameMaternal: string;
23
+
24
+ @IsNotEmpty()
25
+ @IsString()
26
+ @IsPhoneNumberFiado()
27
+ phoneNumber: string;
28
+
29
+ @IsDateString()
30
+ dateOfBirth: string;
31
+
32
+ @IsNotEmpty()
33
+ @IsString()
34
+ @Length(3, 20)
35
+ ownerRelation: string;
36
+
37
+ @ValidateNested()
38
+ @Type(() => AddressCreateRequest)
39
+ address: AddressCreateRequest;
40
+ }
41
+
@@ -1,141 +1,141 @@
1
- import { IsString, IsOptional, IsEnum, ValidateNested, IsNumber, Min, Max, Length, Matches } from 'class-validator';
2
- import { Type } from 'class-transformer';
3
- import { CountryId } from '../../country/enums/CountryId';
4
- import { CardType } from '../enums/CardType';
5
- import { Brand } from '../enums/Brand';
6
- import { OwnershipType } from '../enums/OwnershipType';
7
- import { Status } from '../enums/Status';
8
- import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
9
- import { Shipping } from '../../address';
10
-
11
- export class CardCreateRequest {
12
-
13
- @IsOptional()
14
- @IsString()
15
- @Matches(regexUuidV4,
16
- {
17
- message: 'id must be a valid UUID v4',
18
- })
19
- id?: string;
20
-
21
- @IsOptional()
22
- @IsString()
23
- @Matches(regexUuidV4,
24
- {
25
- message: 'accountId must be a valid UUID v4 or null',
26
- })
27
- accountId?: string;
28
-
29
- @IsOptional()
30
- @IsString()
31
- @Matches(regexIso8601, {
32
- message: 'activationDate must be a valid ISO 8601 date string',
33
- })
34
- activationDate?: string;
35
-
36
- @IsEnum(CountryId)
37
- countryId: CountryId;
38
-
39
- @IsEnum(CardType)
40
- type: CardType;
41
-
42
- @IsString()
43
- @Matches(regexUuidV4,
44
- {
45
- message: 'directoryId must be a valid UUID v4',
46
- })
47
- directoryId?: string;
48
-
49
- @IsString()
50
- @Length(1, 100)
51
- externalCardId: string;
52
-
53
- @IsString()
54
- @Length(1, 100)
55
- externalUserId: string;
56
-
57
- @IsOptional()
58
- @IsString()
59
- @Length(1, 100)
60
- externalShipmentId: string;
61
-
62
- @IsOptional()
63
- @IsString()
64
- @Length(1, 50)
65
- shipmentProvider: string;
66
-
67
- @IsOptional()
68
- @IsString()
69
- @Length(1, 50)
70
- externalShipmentTrackingId: string;
71
-
72
- @IsOptional()
73
- @IsString()
74
- @Length(1, 200)
75
- externalShipmentTrackingUrl: string;
76
-
77
- @IsOptional()
78
- @IsString()
79
- @Length(1, 50)
80
- holderName: string;
81
-
82
- @IsOptional()
83
- @IsString()
84
- @Length(1, 50)
85
- holderLastName: string;
86
-
87
- @IsOptional()
88
- @IsString()
89
- @Length(1, 200)
90
- imageUrl?: string;
91
-
92
- @IsEnum(Brand)
93
- brand: Brand;
94
-
95
- @IsEnum(OwnershipType)
96
- ownershipType: OwnershipType;
97
-
98
- @IsString()
99
- @Length(4, 4)
100
- lastFour: string;
101
-
102
- @IsOptional()
103
- @IsString()
104
- @Length(1, 50)
105
- providerName?: string;
106
-
107
- @IsEnum(Status)
108
- status: Status;
109
-
110
- @IsOptional()
111
- @IsString()
112
- statusUpdateDate?: string;
113
-
114
- @IsOptional()
115
- @IsString()
116
- @Length(1, 50)
117
- tenantId?: string;
118
-
119
- @IsOptional()
120
- @IsNumber()
121
- @Min(1)
122
- @Max(9999999999)
123
- spendLimitByTransaction?: number;
124
-
125
- @IsOptional()
126
- @IsNumber()
127
- @Min(1)
128
- @Max(9999999999)
129
- spendLimitByDay?: number;
130
-
131
- @IsOptional()
132
- @IsNumber()
133
- @Min(1)
134
- @Max(9999999999)
135
- spendLimitByMonth?: number;
136
-
137
- @IsOptional()
138
- @ValidateNested()
139
- @Type(() => Shipping)
140
- shippedAddress?: Shipping;
141
- }
1
+ import { IsString, IsOptional, IsEnum, ValidateNested, IsNumber, Min, Max, Length, Matches } from 'class-validator';
2
+ import { Type } from 'class-transformer';
3
+ import { CountryId } from '../../country/enums/CountryId';
4
+ import { CardType } from '../enums/CardType';
5
+ import { Brand } from '../enums/Brand';
6
+ import { OwnershipType } from '../enums/OwnershipType';
7
+ import { Status } from '../enums/Status';
8
+ import { regexIso8601, regexUuidV4 } from '../../helpers/constans/regex';
9
+ import { Shipping } from '../../address';
10
+
11
+ export class CardCreateRequest {
12
+
13
+ @IsOptional()
14
+ @IsString()
15
+ @Matches(regexUuidV4,
16
+ {
17
+ message: 'id must be a valid UUID v4',
18
+ })
19
+ id?: string;
20
+
21
+ @IsOptional()
22
+ @IsString()
23
+ @Matches(regexUuidV4,
24
+ {
25
+ message: 'accountId must be a valid UUID v4 or null',
26
+ })
27
+ accountId?: string;
28
+
29
+ @IsOptional()
30
+ @IsString()
31
+ @Matches(regexIso8601, {
32
+ message: 'activationDate must be a valid ISO 8601 date string',
33
+ })
34
+ activationDate?: string;
35
+
36
+ @IsEnum(CountryId)
37
+ countryId: CountryId;
38
+
39
+ @IsEnum(CardType)
40
+ type: CardType;
41
+
42
+ @IsString()
43
+ @Matches(regexUuidV4,
44
+ {
45
+ message: 'directoryId must be a valid UUID v4',
46
+ })
47
+ directoryId?: string;
48
+
49
+ @IsString()
50
+ @Length(1, 100)
51
+ externalCardId: string;
52
+
53
+ @IsString()
54
+ @Length(1, 100)
55
+ externalUserId: string;
56
+
57
+ @IsOptional()
58
+ @IsString()
59
+ @Length(1, 100)
60
+ externalShipmentId: string;
61
+
62
+ @IsOptional()
63
+ @IsString()
64
+ @Length(1, 50)
65
+ shipmentProvider: string;
66
+
67
+ @IsOptional()
68
+ @IsString()
69
+ @Length(1, 50)
70
+ externalShipmentTrackingId: string;
71
+
72
+ @IsOptional()
73
+ @IsString()
74
+ @Length(1, 200)
75
+ externalShipmentTrackingUrl: string;
76
+
77
+ @IsOptional()
78
+ @IsString()
79
+ @Length(1, 50)
80
+ holderName: string;
81
+
82
+ @IsOptional()
83
+ @IsString()
84
+ @Length(1, 50)
85
+ holderLastName: string;
86
+
87
+ @IsOptional()
88
+ @IsString()
89
+ @Length(1, 200)
90
+ imageUrl?: string;
91
+
92
+ @IsEnum(Brand)
93
+ brand: Brand;
94
+
95
+ @IsEnum(OwnershipType)
96
+ ownershipType: OwnershipType;
97
+
98
+ @IsString()
99
+ @Length(4, 4)
100
+ lastFour: string;
101
+
102
+ @IsOptional()
103
+ @IsString()
104
+ @Length(1, 50)
105
+ providerName?: string;
106
+
107
+ @IsEnum(Status)
108
+ status: Status;
109
+
110
+ @IsOptional()
111
+ @IsString()
112
+ statusUpdateDate?: string;
113
+
114
+ @IsOptional()
115
+ @IsString()
116
+ @Length(1, 50)
117
+ tenantId?: string;
118
+
119
+ @IsOptional()
120
+ @IsNumber()
121
+ @Min(1)
122
+ @Max(9999999999)
123
+ spendLimitByTransaction?: number;
124
+
125
+ @IsOptional()
126
+ @IsNumber()
127
+ @Min(1)
128
+ @Max(9999999999)
129
+ spendLimitByDay?: number;
130
+
131
+ @IsOptional()
132
+ @IsNumber()
133
+ @Min(1)
134
+ @Max(9999999999)
135
+ spendLimitByMonth?: number;
136
+
137
+ @IsOptional()
138
+ @ValidateNested()
139
+ @Type(() => Shipping)
140
+ shippedAddress?: Shipping;
141
+ }
@@ -1,5 +1,5 @@
1
-
2
-
3
- export class CardResponse {
4
-
1
+
2
+
3
+ export class CardResponse {
4
+
5
5
  }