@fiado/type-kit 2.0.20 → 2.0.21
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/bin/address/dtos/ValidateAddressResponse.d.ts +2 -2
- package/bin/address/dtos/ValidateAddressResult.d.ts +1 -1
- package/bin/address/index.d.ts +0 -1
- package/bin/address/index.js +0 -1
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +4 -0
- package/bin/bankAccount/dtos/ExternalAccountType.js +6 -0
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +6 -0
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +6 -0
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +6 -0
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +6 -0
- package/bin/index.js +7 -17
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +28 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +6 -0
- package/bin/productCatalog/enums/ProductSubtypeEnum.d.ts +1 -1
- package/bin/productCatalog/enums/ProductSubtypeEnum.js +1 -1
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +4 -0
- package/bin/services/dtos/GetMembershipListAppResponse.js +6 -0
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +4 -0
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +6 -0
- package/bin/services/enums/ServiceProviderEnum.d.ts +5 -0
- package/bin/services/enums/ServiceProviderEnum.js +9 -0
- package/package.json +1 -1
- package/src/address/dtos/ValidateAddressResponse.ts +2 -2
- package/src/address/dtos/ValidateAddressResult.ts +1 -1
- package/src/address/index.ts +0 -1
- package/src/productCatalog/enums/ProductSubtypeEnum.ts +1 -1
- package/bin/address/dtos/SuggestedAddress.d.ts +0 -25
- package/bin/address/dtos/SuggestedAddress.js +0 -118
- package/src/address/dtos/SuggestedAddress.ts +0 -88
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ValidateAddressResult } from "./ValidateAddressResult";
|
|
2
|
-
import {
|
|
2
|
+
import { AddressBase } from "./AddressBase";
|
|
3
3
|
export declare class ValidateAddressResponse {
|
|
4
4
|
validationResult: ValidateAddressResult;
|
|
5
|
-
suggestedAddresses
|
|
5
|
+
suggestedAddresses: AddressBase[];
|
|
6
6
|
}
|
|
@@ -2,5 +2,5 @@ import { ValidateAddressStatusEnum } from "../enums/ValidateAddressStatusEnum";
|
|
|
2
2
|
import { ValidateAddressErrorCodeEnum } from "../enums/ValidateAddressErrorCodeEnum";
|
|
3
3
|
export declare class ValidateAddressResult {
|
|
4
4
|
validationStatus: ValidateAddressStatusEnum;
|
|
5
|
-
validationCodeError
|
|
5
|
+
validationCodeError: ValidateAddressErrorCodeEnum;
|
|
6
6
|
}
|
package/bin/address/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export * from './dtos/GetLocationResponse';
|
|
|
14
14
|
export * from './dtos/ValidateAddressRequest';
|
|
15
15
|
export * from './dtos/ValidateAddressResult';
|
|
16
16
|
export * from './dtos/ValidateAddressResponse';
|
|
17
|
-
export * from './dtos/SuggestedAddress';
|
|
18
17
|
export * from './enums/AddressStatus';
|
|
19
18
|
export * from './enums/AddressProvider';
|
|
20
19
|
export * from './enums/LocationTypeEnum';
|
package/bin/address/index.js
CHANGED
|
@@ -31,7 +31,6 @@ __exportStar(require("./dtos/GetLocationResponse"), exports);
|
|
|
31
31
|
__exportStar(require("./dtos/ValidateAddressRequest"), exports);
|
|
32
32
|
__exportStar(require("./dtos/ValidateAddressResult"), exports);
|
|
33
33
|
__exportStar(require("./dtos/ValidateAddressResponse"), exports);
|
|
34
|
-
__exportStar(require("./dtos/SuggestedAddress"), exports);
|
|
35
34
|
//enums
|
|
36
35
|
__exportStar(require("./enums/AddressStatus"), exports);
|
|
37
36
|
__exportStar(require("./enums/AddressProvider"), exports);
|
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
-
exports.IsValueValid = IsValueValid;
|
|
9
|
+
exports.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const Status_1 = require("../enums/Status");
|
|
13
12
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -71,3 +70,4 @@ function IsValueValid(validationOptions) {
|
|
|
71
70
|
});
|
|
72
71
|
};
|
|
73
72
|
}
|
|
73
|
+
exports.IsValueValid = IsValueValid;
|
|
@@ -6,8 +6,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
9
|
+
exports.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
|
|
11
10
|
const class_validator_1 = require("class-validator");
|
|
12
11
|
const regex_1 = require("../../helpers/constans/regex");
|
|
13
12
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -37,3 +36,4 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
37
36
|
});
|
|
38
37
|
};
|
|
39
38
|
}
|
|
39
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IdentificationDocument } from "../../identity";
|
|
2
|
+
import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
|
|
3
|
+
export declare class CentralPaymentsDocumentUploadRequest {
|
|
4
|
+
documentInfo: IdentificationDocument;
|
|
5
|
+
documentImages: CentralPaymentsDocumentImages[];
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CentralPaymentsDocumentUploadRequest = void 0;
|
|
4
|
+
class CentralPaymentsDocumentUploadRequest {
|
|
5
|
+
}
|
|
6
|
+
exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
|
package/bin/index.js
CHANGED
|
@@ -15,23 +15,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) ||
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
35
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
26
|
exports.InvoiceCollector = exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = void 0;
|
|
37
27
|
exports.Account = __importStar(require("./account"));
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Company } from "../../company";
|
|
2
|
+
import { Provider } from "../../provider";
|
|
3
|
+
import { ServiceTypeEnum } from "../../services";
|
|
4
|
+
import { ServiceRecurrenceEnum } from "../../services/enums/ServiceRecurrenceEnum";
|
|
5
|
+
export declare class GetPriceListDirectoriesResponse {
|
|
6
|
+
serviceId: string;
|
|
7
|
+
company: Company;
|
|
8
|
+
provider: Provider;
|
|
9
|
+
type: ServiceTypeEnum;
|
|
10
|
+
basePrice: number;
|
|
11
|
+
recurrence: ServiceRecurrenceEnum;
|
|
12
|
+
currencyId: string;
|
|
13
|
+
fees: any;
|
|
14
|
+
taxes: any;
|
|
15
|
+
globalDiscounts: {
|
|
16
|
+
discountType: string;
|
|
17
|
+
discountValue: number;
|
|
18
|
+
}[];
|
|
19
|
+
directories: {
|
|
20
|
+
directoryId: string;
|
|
21
|
+
appliedDiscounts: {
|
|
22
|
+
discountType: string;
|
|
23
|
+
discountValue: number;
|
|
24
|
+
source: string;
|
|
25
|
+
referenceId: string;
|
|
26
|
+
}[];
|
|
27
|
+
}[];
|
|
28
|
+
}
|
|
@@ -29,7 +29,7 @@ export declare enum ProductSubtypeEnum {
|
|
|
29
29
|
STPSERVSA_TRANSPORTE_Y_ENTREGAS = "TRANSPORTE_Y_ENTREGAS",
|
|
30
30
|
STPSERVSA_AGUA = "AGUA",
|
|
31
31
|
STPSERVSA_TV = "TV",
|
|
32
|
-
STPSERVSA_GAS_Y_LUZ = "
|
|
32
|
+
STPSERVSA_GAS_Y_LUZ = "GAS Y LUZ",
|
|
33
33
|
P2P_SELF = "SELF",
|
|
34
34
|
P2P_OTHER_IN = "OTHER_IN",
|
|
35
35
|
P2P_OTHER_OUT = "OTHER_OUT",
|
|
@@ -37,7 +37,7 @@ var ProductSubtypeEnum;
|
|
|
37
37
|
ProductSubtypeEnum["STPSERVSA_TRANSPORTE_Y_ENTREGAS"] = "TRANSPORTE_Y_ENTREGAS";
|
|
38
38
|
ProductSubtypeEnum["STPSERVSA_AGUA"] = "AGUA";
|
|
39
39
|
ProductSubtypeEnum["STPSERVSA_TV"] = "TV";
|
|
40
|
-
ProductSubtypeEnum["STPSERVSA_GAS_Y_LUZ"] = "
|
|
40
|
+
ProductSubtypeEnum["STPSERVSA_GAS_Y_LUZ"] = "GAS Y LUZ";
|
|
41
41
|
//P2P
|
|
42
42
|
ProductSubtypeEnum["P2P_SELF"] = "SELF";
|
|
43
43
|
ProductSubtypeEnum["P2P_OTHER_IN"] = "OTHER_IN";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServiceProviderEnum = void 0;
|
|
4
|
+
var ServiceProviderEnum;
|
|
5
|
+
(function (ServiceProviderEnum) {
|
|
6
|
+
ServiceProviderEnum["CP"] = "CP";
|
|
7
|
+
ServiceProviderEnum["TERN"] = "TERN";
|
|
8
|
+
ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
|
|
9
|
+
})(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ValidateAddressResult } from "./ValidateAddressResult";
|
|
2
|
-
import {
|
|
2
|
+
import { AddressBase } from "./AddressBase"
|
|
3
3
|
|
|
4
4
|
export class ValidateAddressResponse {
|
|
5
5
|
validationResult: ValidateAddressResult
|
|
6
|
-
suggestedAddresses
|
|
6
|
+
suggestedAddresses: AddressBase[];
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import { ValidateAddressErrorCodeEnum } from "../enums/ValidateAddressErrorCodeE
|
|
|
3
3
|
|
|
4
4
|
export class ValidateAddressResult {
|
|
5
5
|
validationStatus: ValidateAddressStatusEnum;
|
|
6
|
-
validationCodeError
|
|
6
|
+
validationCodeError: ValidateAddressErrorCodeEnum;
|
|
7
7
|
}
|
package/src/address/index.ts
CHANGED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AddressProvider } from "../enums/AddressProvider";
|
|
2
|
-
import { Place } from "./Place";
|
|
3
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
4
|
-
export declare class SuggestedAddress {
|
|
5
|
-
distance?: number;
|
|
6
|
-
isPrincipal: boolean;
|
|
7
|
-
tag?: string;
|
|
8
|
-
tenantId?: string;
|
|
9
|
-
typeOfAddressId?: string;
|
|
10
|
-
provider?: AddressProvider;
|
|
11
|
-
place: Place;
|
|
12
|
-
additionalInformation?: string;
|
|
13
|
-
helpNeeded: boolean;
|
|
14
|
-
internalNumber?: string;
|
|
15
|
-
countryId: CountryId;
|
|
16
|
-
street?: string;
|
|
17
|
-
addressNumber?: string;
|
|
18
|
-
municipality?: string;
|
|
19
|
-
subMunicipality?: string;
|
|
20
|
-
neighborhood?: string;
|
|
21
|
-
subRegion?: string;
|
|
22
|
-
region?: string;
|
|
23
|
-
postalCode?: string;
|
|
24
|
-
country?: string;
|
|
25
|
-
}
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.SuggestedAddress = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
const AddressProvider_1 = require("../enums/AddressProvider");
|
|
15
|
-
const Place_1 = require("./Place");
|
|
16
|
-
const CountryId_1 = require("../../country/enums/CountryId");
|
|
17
|
-
class SuggestedAddress {
|
|
18
|
-
}
|
|
19
|
-
exports.SuggestedAddress = SuggestedAddress;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsNumber)(),
|
|
22
|
-
(0, class_validator_1.IsOptional)(),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], SuggestedAddress.prototype, "distance", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsBoolean)(),
|
|
27
|
-
__metadata("design:type", Boolean)
|
|
28
|
-
], SuggestedAddress.prototype, "isPrincipal", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
(0, class_validator_1.IsString)(),
|
|
32
|
-
(0, class_validator_1.Length)(1, 100),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], SuggestedAddress.prototype, "tag", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsString)(),
|
|
37
|
-
(0, class_validator_1.Length)(1, 100),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], SuggestedAddress.prototype, "tenantId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_validator_1.IsString)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], SuggestedAddress.prototype, "typeOfAddressId", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_validator_1.IsEnum)(AddressProvider_1.AddressProvider),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], SuggestedAddress.prototype, "provider", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_validator_1.ValidateNested)(),
|
|
50
|
-
__metadata("design:type", Place_1.Place)
|
|
51
|
-
], SuggestedAddress.prototype, "place", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_validator_1.IsOptional)(),
|
|
54
|
-
(0, class_validator_1.IsString)(),
|
|
55
|
-
(0, class_validator_1.Length)(1, 200),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], SuggestedAddress.prototype, "additionalInformation", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsBoolean)(),
|
|
60
|
-
__metadata("design:type", Boolean)
|
|
61
|
-
], SuggestedAddress.prototype, "helpNeeded", void 0);
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, class_validator_1.IsOptional)(),
|
|
64
|
-
(0, class_validator_1.IsString)(),
|
|
65
|
-
(0, class_validator_1.Length)(1, 10),
|
|
66
|
-
__metadata("design:type", String)
|
|
67
|
-
], SuggestedAddress.prototype, "internalNumber", void 0);
|
|
68
|
-
__decorate([
|
|
69
|
-
(0, class_validator_1.IsEnum)(CountryId_1.CountryId),
|
|
70
|
-
__metadata("design:type", String)
|
|
71
|
-
], SuggestedAddress.prototype, "countryId", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, class_validator_1.IsString)(),
|
|
74
|
-
(0, class_validator_1.Length)(1, 100),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], SuggestedAddress.prototype, "street", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, class_validator_1.IsString)(),
|
|
79
|
-
(0, class_validator_1.Length)(1, 10),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], SuggestedAddress.prototype, "addressNumber", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, class_validator_1.IsOptional)(),
|
|
84
|
-
(0, class_validator_1.IsString)(),
|
|
85
|
-
(0, class_validator_1.Length)(2, 60),
|
|
86
|
-
__metadata("design:type", String)
|
|
87
|
-
], SuggestedAddress.prototype, "municipality", void 0);
|
|
88
|
-
__decorate([
|
|
89
|
-
(0, class_validator_1.IsOptional)(),
|
|
90
|
-
(0, class_validator_1.IsString)(),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], SuggestedAddress.prototype, "subMunicipality", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, class_validator_1.IsOptional)(),
|
|
95
|
-
(0, class_validator_1.IsString)(),
|
|
96
|
-
(0, class_validator_1.Length)(2, 60),
|
|
97
|
-
__metadata("design:type", String)
|
|
98
|
-
], SuggestedAddress.prototype, "neighborhood", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, class_validator_1.IsOptional)(),
|
|
101
|
-
(0, class_validator_1.IsString)(),
|
|
102
|
-
(0, class_validator_1.Length)(2, 60),
|
|
103
|
-
__metadata("design:type", String)
|
|
104
|
-
], SuggestedAddress.prototype, "subRegion", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, class_validator_1.IsString)(),
|
|
107
|
-
(0, class_validator_1.Length)(5, 10),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], SuggestedAddress.prototype, "region", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, class_validator_1.IsString)(),
|
|
112
|
-
(0, class_validator_1.Length)(5, 10),
|
|
113
|
-
__metadata("design:type", String)
|
|
114
|
-
], SuggestedAddress.prototype, "postalCode", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
(0, class_validator_1.IsEnum)(CountryId_1.CountryId),
|
|
117
|
-
__metadata("design:type", String)
|
|
118
|
-
], SuggestedAddress.prototype, "country", void 0);
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { IsBoolean, IsEnum, IsNumber, IsOptional, IsString, Length, ValidateNested } from 'class-validator';
|
|
4
|
-
import { AddressProvider } from "../enums/AddressProvider";
|
|
5
|
-
import { Place } from "./Place";
|
|
6
|
-
import { CountryId } from '../../country/enums/CountryId';
|
|
7
|
-
|
|
8
|
-
export class SuggestedAddress {
|
|
9
|
-
|
|
10
|
-
@IsNumber()
|
|
11
|
-
@IsOptional()
|
|
12
|
-
distance?: number;
|
|
13
|
-
|
|
14
|
-
@IsBoolean()
|
|
15
|
-
isPrincipal: boolean;
|
|
16
|
-
|
|
17
|
-
@IsOptional()
|
|
18
|
-
@IsString()
|
|
19
|
-
@Length(1, 100)
|
|
20
|
-
tag?: string;
|
|
21
|
-
|
|
22
|
-
@IsString()
|
|
23
|
-
@Length(1, 100)
|
|
24
|
-
tenantId?: string;
|
|
25
|
-
|
|
26
|
-
@IsString()
|
|
27
|
-
typeOfAddressId?: string;
|
|
28
|
-
|
|
29
|
-
@IsEnum(AddressProvider)
|
|
30
|
-
provider?: AddressProvider;
|
|
31
|
-
|
|
32
|
-
@ValidateNested()
|
|
33
|
-
place: Place;
|
|
34
|
-
|
|
35
|
-
@IsOptional()
|
|
36
|
-
@IsString()
|
|
37
|
-
@Length(1, 200)
|
|
38
|
-
additionalInformation?: string;
|
|
39
|
-
|
|
40
|
-
@IsBoolean()
|
|
41
|
-
helpNeeded: boolean;
|
|
42
|
-
|
|
43
|
-
@IsOptional()
|
|
44
|
-
@IsString()
|
|
45
|
-
@Length(1, 10)
|
|
46
|
-
internalNumber?: string;
|
|
47
|
-
|
|
48
|
-
@IsEnum(CountryId)
|
|
49
|
-
countryId: CountryId;
|
|
50
|
-
|
|
51
|
-
@IsString()
|
|
52
|
-
@Length(1, 100)
|
|
53
|
-
street?: string;
|
|
54
|
-
|
|
55
|
-
@IsString()
|
|
56
|
-
@Length(1, 10)
|
|
57
|
-
addressNumber?: string;
|
|
58
|
-
|
|
59
|
-
@IsOptional()
|
|
60
|
-
@IsString()
|
|
61
|
-
@Length(2, 60)
|
|
62
|
-
municipality?: string;
|
|
63
|
-
|
|
64
|
-
@IsOptional()
|
|
65
|
-
@IsString()
|
|
66
|
-
subMunicipality?: string;
|
|
67
|
-
|
|
68
|
-
@IsOptional()
|
|
69
|
-
@IsString()
|
|
70
|
-
@Length(2, 60)
|
|
71
|
-
neighborhood?: string;
|
|
72
|
-
|
|
73
|
-
@IsOptional()
|
|
74
|
-
@IsString()
|
|
75
|
-
@Length(2, 60)
|
|
76
|
-
subRegion?: string;
|
|
77
|
-
|
|
78
|
-
@IsString()
|
|
79
|
-
@Length(5, 10)
|
|
80
|
-
region?: string;
|
|
81
|
-
|
|
82
|
-
@IsString()
|
|
83
|
-
@Length(5, 10)
|
|
84
|
-
postalCode?: string;
|
|
85
|
-
|
|
86
|
-
@IsEnum(CountryId)
|
|
87
|
-
country?: string;
|
|
88
|
-
}
|