@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.
- package/.idea/aws.xml +11 -0
- package/.idea/fiado-type-kit.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/README.md +70 -70
- package/bin/card/dtos/CardUpdateRequest.js +1 -2
- package/bin/index.d.ts +2 -0
- package/bin/index.js +3 -1
- package/bin/notificationMessages/dtos/NotificationQueueMessageRequest.d.ts +6 -0
- package/bin/notificationMessages/dtos/NotificationQueueMessageRequest.js +6 -0
- package/bin/notificationMessages/dtos/QueueMessageDestination.d.ts +6 -0
- package/bin/notificationMessages/dtos/QueueMessageDestination.js +6 -0
- package/bin/notificationMessages/dtos/QueueMessageVariableValues.d.ts +4 -0
- package/bin/notificationMessages/dtos/QueueMessageVariableValues.js +6 -0
- package/bin/notificationMessages/index.d.ts +3 -0
- package/bin/notificationMessages/index.js +19 -0
- package/bin/sessionActivity/dtos/SessionActivityQueueMessageRequest.d.ts +10 -0
- package/bin/sessionActivity/dtos/SessionActivityQueueMessageRequest.js +6 -0
- package/bin/sessionActivity/enums/SessionActivityActionEnum.d.ts +7 -0
- package/bin/sessionActivity/enums/SessionActivityActionEnum.js +11 -0
- package/bin/sessionActivity/enums/SessionActivityActionOriginEnum.d.ts +4 -0
- package/bin/sessionActivity/enums/SessionActivityActionOriginEnum.js +8 -0
- package/bin/sessionActivity/index.d.ts +3 -0
- package/bin/sessionActivity/index.js +19 -0
- package/package.json +23 -23
- package/src/account/dtos/AccountCreateRequest.ts +44 -44
- package/src/account/dtos/AccountCreateResponse.ts +5 -5
- package/src/account/dtos/AccountResponse.ts +26 -26
- package/src/account/dtos/PocketCreateRequest.ts +18 -18
- package/src/account/dtos/PocketCreateResponse.ts +4 -4
- package/src/account/enums/AccountStatus.ts +6 -6
- package/src/account/index.ts +16 -16
- package/src/address/dtos/AddressBase.ts +130 -130
- package/src/address/dtos/AddressCreateRequest.ts +6 -6
- package/src/address/dtos/AddressResponse.ts +41 -41
- package/src/address/dtos/Geometry.ts +4 -4
- package/src/address/dtos/Place.ts +83 -83
- package/src/address/dtos/Shipping.ts +36 -36
- package/src/address/dtos/Timezone.ts +5 -5
- package/src/address/enums/AddressProvider.ts +10 -10
- package/src/address/enums/AddressStatus.ts +9 -9
- package/src/address/index.ts +12 -12
- package/src/app/enums/App.ts +10 -10
- package/src/app/index.ts +3 -3
- package/src/authentication/dtos/SignUpAdditionalRequest.ts +32 -32
- package/src/authentication/dtos/SignUpAdditionalResponse.ts +5 -5
- package/src/authentication/index.ts +3 -3
- package/src/card/dtos/CardActivateRequest.ts +12 -12
- package/src/card/dtos/CardApplicationRequest.ts +20 -20
- package/src/card/dtos/CardBalanceResponse.ts +10 -10
- package/src/card/dtos/CardCreateAdditionalRequest.ts +41 -41
- package/src/card/dtos/CardCreateRequest.ts +141 -141
- package/src/card/dtos/CardResponse.ts +4 -4
- package/src/card/dtos/CardUpdateRequest.ts +13 -15
- package/src/card/enums/Brand.ts +7 -7
- package/src/card/enums/CardIssuanceStatus.ts +5 -5
- package/src/card/enums/CardType.ts +4 -4
- package/src/card/enums/CardUpdateKey.ts +4 -4
- package/src/card/enums/IssuanceType.ts +5 -5
- package/src/card/enums/OwnershipType.ts +3 -3
- package/src/card/enums/Status.ts +5 -5
- package/src/card/enums/UpdateKey.ts +5 -5
- package/src/card/index.ts +19 -19
- package/src/card/validations/CardUpdateKeyConstraint.ts +53 -53
- package/src/card/validations/IsPhoneNumberConstraint.ts +26 -26
- package/src/country/enums/Country.ts +6 -6
- package/src/country/enums/CountryId.ts +6 -6
- package/src/country/index.ts +5 -5
- package/src/currency/dtos/CurrencyResponse.ts +8 -8
- package/src/currency/index.ts +2 -2
- package/src/directory/dtos/DirectoryResponse.ts +17 -17
- package/src/directory/dtos/External.ts +6 -6
- package/src/directory/enums/Profile.ts +6 -6
- package/src/directory/enums/Scope.ts +7 -7
- package/src/directory/enums/Status.ts +8 -8
- package/src/directory/enums/TypeOfDirectoryId.ts +6 -6
- package/src/directory/index.ts +7 -7
- package/src/exchangeRate/dtos/ExchangeRateCreateRequest.ts +50 -50
- package/src/exchangeRate/dtos/ExchangeRateCreateResponse.ts +4 -4
- package/src/exchangeRate/dtos/ExchangeRateResponse.ts +19 -19
- package/src/exchangeRate/enums/ExchangeRateStatus.ts +5 -5
- package/src/exchangeRate/index.ts +8 -8
- package/src/group/dtos/GroupAddDirectoryRequest.ts +27 -27
- package/src/group/dtos/GroupCreateRequest.ts +48 -48
- package/src/group/dtos/GroupDirectoryRelationsResponse.ts +20 -20
- package/src/group/dtos/GroupDirectoryRelationsUpdateRequest.ts +10 -10
- package/src/group/dtos/GroupResponse.ts +17 -17
- package/src/group/dtos/GroupUpdateRequest.ts +27 -27
- package/src/group/enums/GroupAction.ts +8 -8
- package/src/group/enums/GroupStatus.ts +6 -6
- package/src/group/enums/RelationStatus.ts +8 -8
- package/src/group/enums/RelationType.ts +9 -9
- package/src/group/index.ts +18 -18
- package/src/header/TokenPayload.ts +16 -16
- package/src/header/index.ts +3 -3
- package/src/helpers/ValidationUtils.ts +32 -32
- package/src/helpers/constans/regex.ts +12 -12
- package/src/identity/dtos/IdentificationDocument.ts +24 -24
- package/src/identity/dtos/PeopleCreateRequest.ts +4 -4
- package/src/identity/dtos/PeopleResponse.ts +80 -80
- package/src/identity/dtos/TypeOfDocument.ts +11 -11
- package/src/identity/enums/IdentificationDocumentStatus.ts +7 -7
- package/src/identity/enums/SexDocument.ts +6 -6
- package/src/identity/index.ts +11 -11
- package/src/index.ts +20 -20
- package/src/notificationMessages/dtos/NotificationQueueMessageRequest.ts +7 -0
- package/src/notificationMessages/dtos/QueueMessageDestination.ts +7 -0
- package/src/notificationMessages/dtos/QueueMessageVariableValues.ts +4 -0
- package/src/notificationMessages/index.ts +3 -0
- package/src/provider/enums/Provider.ts +5 -5
- package/src/provider/index.ts +1 -1
- package/src/servicePayment/dtos/ServicePaymentRequest.ts +33 -33
- package/src/sessionActivity/dtos/SessionActivityQueueMessageRequest.ts +11 -0
- package/src/sessionActivity/enums/SessionActivityActionEnum.ts +7 -0
- package/src/sessionActivity/enums/SessionActivityActionOriginEnum.ts +4 -0
- package/src/sessionActivity/index.ts +3 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export enum AccountStatus {
|
|
4
|
-
ACTIVE = "ACTIVE",
|
|
5
|
-
INACTIVE = "INACTIVE",
|
|
6
|
-
BLOCKED = "BLOCKED"
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export enum AccountStatus {
|
|
4
|
+
ACTIVE = "ACTIVE",
|
|
5
|
+
INACTIVE = "INACTIVE",
|
|
6
|
+
BLOCKED = "BLOCKED"
|
|
7
7
|
}
|
package/src/account/index.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
//dtos
|
|
3
|
-
export * from './dtos/AccountResponse';
|
|
4
|
-
export * from './dtos/AccountCreateRequest';
|
|
5
|
-
export * from './dtos/AccountCreateResponse';
|
|
6
|
-
export * from './dtos/PocketCreateRequest';
|
|
7
|
-
export * from './dtos/PocketCreateResponse';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//enums
|
|
11
|
-
export * from './enums/AccountStatus';
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
//interfaces
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
|
|
2
|
+
//dtos
|
|
3
|
+
export * from './dtos/AccountResponse';
|
|
4
|
+
export * from './dtos/AccountCreateRequest';
|
|
5
|
+
export * from './dtos/AccountCreateResponse';
|
|
6
|
+
export * from './dtos/PocketCreateRequest';
|
|
7
|
+
export * from './dtos/PocketCreateResponse';
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
//enums
|
|
11
|
+
export * from './enums/AccountStatus';
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
//interfaces
|
|
15
|
+
|
|
16
|
+
|
|
@@ -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,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
|
}
|
|
@@ -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
|
}
|