@fiado/type-kit 2.0.29 → 2.0.31
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/AddressBase.d.ts +1 -2
- package/bin/address/dtos/AddressBase.js +6 -11
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/index.js +17 -7
- package/package.json +1 -2
- package/src/address/dtos/AddressBase.ts +7 -8
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
- package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
- package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
- package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
- package/bin/services/enums/ServiceProviderEnum.js +0 -9
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TypeOfDirectoryId } from "../../directory/enums/TypeOfDirectoryId";
|
|
2
2
|
import { AddressProvider } from "../enums/AddressProvider";
|
|
3
3
|
import { AddressStatus } from "../enums/AddressStatus";
|
|
4
|
-
import { Place } from "./Place";
|
|
5
4
|
import { CountryId } from '../../country/enums/CountryId';
|
|
6
5
|
export declare class AddressBase {
|
|
7
6
|
id?: string;
|
|
@@ -14,7 +13,7 @@ export declare class AddressBase {
|
|
|
14
13
|
typeOfAddressId: string;
|
|
15
14
|
typeOfDirectoryId: TypeOfDirectoryId;
|
|
16
15
|
provider: AddressProvider;
|
|
17
|
-
place
|
|
16
|
+
place?: any;
|
|
18
17
|
validFrom: string;
|
|
19
18
|
validUntil?: string;
|
|
20
19
|
addressStatus: AddressStatus;
|
|
@@ -14,7 +14,6 @@ const class_validator_1 = require("class-validator");
|
|
|
14
14
|
const TypeOfDirectoryId_1 = require("../../directory/enums/TypeOfDirectoryId");
|
|
15
15
|
const AddressProvider_1 = require("../enums/AddressProvider");
|
|
16
16
|
const AddressStatus_1 = require("../enums/AddressStatus");
|
|
17
|
-
const Place_1 = require("./Place");
|
|
18
17
|
const CountryId_1 = require("../../country/enums/CountryId");
|
|
19
18
|
const regex_1 = require("../../helpers/constans/regex");
|
|
20
19
|
const country_1 = require("../../country");
|
|
@@ -72,10 +71,6 @@ __decorate([
|
|
|
72
71
|
(0, class_validator_1.IsEnum)(AddressProvider_1.AddressProvider),
|
|
73
72
|
__metadata("design:type", String)
|
|
74
73
|
], AddressBase.prototype, "provider", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_validator_1.ValidateNested)(),
|
|
77
|
-
__metadata("design:type", Place_1.Place)
|
|
78
|
-
], AddressBase.prototype, "place", void 0);
|
|
79
74
|
__decorate([
|
|
80
75
|
(0, class_validator_1.IsString)(),
|
|
81
76
|
(0, class_validator_1.Matches)(regex_1.regexIso8601, {
|
|
@@ -98,7 +93,7 @@ __decorate([
|
|
|
98
93
|
__decorate([
|
|
99
94
|
(0, class_validator_1.IsOptional)(),
|
|
100
95
|
(0, class_validator_1.IsString)(),
|
|
101
|
-
(0, class_validator_1.Length)(1,
|
|
96
|
+
(0, class_validator_1.Length)(1, 500),
|
|
102
97
|
__metadata("design:type", String)
|
|
103
98
|
], AddressBase.prototype, "additionalInformation", void 0);
|
|
104
99
|
__decorate([
|
|
@@ -108,7 +103,7 @@ __decorate([
|
|
|
108
103
|
__decorate([
|
|
109
104
|
(0, class_validator_1.IsOptional)(),
|
|
110
105
|
(0, class_validator_1.IsString)(),
|
|
111
|
-
(0, class_validator_1.Length)(1,
|
|
106
|
+
(0, class_validator_1.Length)(1, 15),
|
|
112
107
|
__metadata("design:type", String)
|
|
113
108
|
], AddressBase.prototype, "internalNumber", void 0);
|
|
114
109
|
__decorate([
|
|
@@ -128,7 +123,7 @@ __decorate([
|
|
|
128
123
|
__decorate([
|
|
129
124
|
(0, class_validator_1.IsOptional)(),
|
|
130
125
|
(0, class_validator_1.IsString)(),
|
|
131
|
-
(0, class_validator_1.Length)(
|
|
126
|
+
(0, class_validator_1.Length)(1, 100),
|
|
132
127
|
__metadata("design:type", String)
|
|
133
128
|
], AddressBase.prototype, "municipality", void 0);
|
|
134
129
|
__decorate([
|
|
@@ -139,18 +134,18 @@ __decorate([
|
|
|
139
134
|
__decorate([
|
|
140
135
|
(0, class_validator_1.IsOptional)(),
|
|
141
136
|
(0, class_validator_1.IsString)(),
|
|
142
|
-
(0, class_validator_1.Length)(
|
|
137
|
+
(0, class_validator_1.Length)(1, 200),
|
|
143
138
|
__metadata("design:type", String)
|
|
144
139
|
], AddressBase.prototype, "neighborhood", void 0);
|
|
145
140
|
__decorate([
|
|
146
141
|
(0, class_validator_1.IsOptional)(),
|
|
147
142
|
(0, class_validator_1.IsString)(),
|
|
148
|
-
(0, class_validator_1.Length)(
|
|
143
|
+
(0, class_validator_1.Length)(1, 200),
|
|
149
144
|
__metadata("design:type", String)
|
|
150
145
|
], AddressBase.prototype, "subRegion", void 0);
|
|
151
146
|
__decorate([
|
|
152
147
|
(0, class_validator_1.IsString)(),
|
|
153
|
-
(0, class_validator_1.Length)(
|
|
148
|
+
(0, class_validator_1.Length)(1, 200),
|
|
154
149
|
__metadata("design:type", String)
|
|
155
150
|
], AddressBase.prototype, "region", void 0);
|
|
156
151
|
__decorate([
|
|
@@ -6,7 +6,8 @@ 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.
|
|
9
|
+
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
+
exports.IsValueValid = IsValueValid;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const Status_1 = require("../enums/Status");
|
|
12
13
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
|
|
|
70
71
|
});
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
exports.IsValueValid = IsValueValid;
|
|
@@ -6,7 +6,8 @@ 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.
|
|
9
|
+
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const regex_1 = require("../../helpers/constans/regex");
|
|
12
13
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
package/bin/index.js
CHANGED
|
@@ -15,13 +15,23 @@ 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) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
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
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
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;
|
|
27
37
|
exports.Account = __importStar(require("./account"));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/type-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.31",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"devDependencies": {
|
|
15
15
|
"@types/node": "^20.11.20",
|
|
16
16
|
"install": "^0.13.0",
|
|
17
|
-
"npm": "^10.4.0",
|
|
18
17
|
"typescript": "^5.3.3"
|
|
19
18
|
},
|
|
20
19
|
"dependencies": {
|
|
@@ -55,8 +55,7 @@ export class AddressBase {
|
|
|
55
55
|
@IsEnum(AddressProvider)
|
|
56
56
|
provider: AddressProvider;
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
place: Place;
|
|
58
|
+
place?: any;
|
|
60
59
|
|
|
61
60
|
@IsString()
|
|
62
61
|
@Matches(regexIso8601,
|
|
@@ -78,7 +77,7 @@ export class AddressBase {
|
|
|
78
77
|
|
|
79
78
|
@IsOptional()
|
|
80
79
|
@IsString()
|
|
81
|
-
@Length(1,
|
|
80
|
+
@Length(1, 500)
|
|
82
81
|
additionalInformation?: string;
|
|
83
82
|
|
|
84
83
|
@IsBoolean()
|
|
@@ -86,7 +85,7 @@ export class AddressBase {
|
|
|
86
85
|
|
|
87
86
|
@IsOptional()
|
|
88
87
|
@IsString()
|
|
89
|
-
@Length(1,
|
|
88
|
+
@Length(1, 15)
|
|
90
89
|
internalNumber?: string;
|
|
91
90
|
|
|
92
91
|
@IsEnum(CountryId)
|
|
@@ -102,7 +101,7 @@ export class AddressBase {
|
|
|
102
101
|
|
|
103
102
|
@IsOptional()
|
|
104
103
|
@IsString()
|
|
105
|
-
@Length(
|
|
104
|
+
@Length(1, 100)
|
|
106
105
|
municipality?: string;
|
|
107
106
|
|
|
108
107
|
@IsOptional()
|
|
@@ -111,16 +110,16 @@ export class AddressBase {
|
|
|
111
110
|
|
|
112
111
|
@IsOptional()
|
|
113
112
|
@IsString()
|
|
114
|
-
@Length(
|
|
113
|
+
@Length(1, 200)
|
|
115
114
|
neighborhood?: string;
|
|
116
115
|
|
|
117
116
|
@IsOptional()
|
|
118
117
|
@IsString()
|
|
119
|
-
@Length(
|
|
118
|
+
@Length(1, 200)
|
|
120
119
|
subRegion?: string;
|
|
121
120
|
|
|
122
121
|
@IsString()
|
|
123
|
-
@Length(
|
|
122
|
+
@Length(1, 200)
|
|
124
123
|
region?: string;
|
|
125
124
|
|
|
126
125
|
@IsString()
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IdentificationDocument } from "../../identity";
|
|
2
|
-
import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
|
|
3
|
-
export declare class CentralPaymentsDocumentUploadRequest {
|
|
4
|
-
documentInfo: IdentificationDocument;
|
|
5
|
-
documentImages: CentralPaymentsDocumentImages[];
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CentralPaymentsDocumentUploadRequest = void 0;
|
|
4
|
-
class CentralPaymentsDocumentUploadRequest {
|
|
5
|
-
}
|
|
6
|
-
exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
|
|
@@ -1,28 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
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 = {}));
|