@fiado/type-kit 2.0.81 → 2.0.82
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/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/cnbv/dtos/CNBVLocalityRequest.d.ts +3 -0
- package/bin/cnbv/dtos/CNBVLocalityRequest.js +7 -0
- package/bin/cnbv/dtos/CNBVLocalityResponse.d.ts +15 -0
- package/bin/cnbv/dtos/CNBVLocalityResponse.js +70 -0
- package/bin/cnbv/index.d.ts +2 -0
- package/bin/cnbv/index.js +20 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +19 -8
- package/package.json +1 -1
- package/src/cnbv/dtos/CNBVLocalityRequest.ts +6 -0
- package/src/cnbv/dtos/CNBVLocalityResponse.ts +45 -0
- package/src/cnbv/index.ts +6 -0
- package/src/index.ts +2 -1
- 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/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
- 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
|
@@ -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;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CNBVLocalityRequest = void 0;
|
|
4
|
+
const AddressBase_1 = require("../../address/dtos/AddressBase");
|
|
5
|
+
class CNBVLocalityRequest extends AddressBase_1.AddressBase {
|
|
6
|
+
}
|
|
7
|
+
exports.CNBVLocalityRequest = CNBVLocalityRequest;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare class CNBVLocalityResponse {
|
|
2
|
+
id: string;
|
|
3
|
+
countryCode: string;
|
|
4
|
+
localityCnbvCode: string;
|
|
5
|
+
countryName: string;
|
|
6
|
+
stateCode: string;
|
|
7
|
+
stateName: string;
|
|
8
|
+
municipalityCode: string;
|
|
9
|
+
municipalityName: string;
|
|
10
|
+
localityName: string;
|
|
11
|
+
isCapital: boolean;
|
|
12
|
+
isCustomAdded: boolean;
|
|
13
|
+
createdAt: number;
|
|
14
|
+
updatedAt: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.CNBVLocalityResponse = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CNBVLocalityResponse {
|
|
15
|
+
}
|
|
16
|
+
exports.CNBVLocalityResponse = CNBVLocalityResponse;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], CNBVLocalityResponse.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CNBVLocalityResponse.prototype, "countryCode", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CNBVLocalityResponse.prototype, "localityCnbvCode", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CNBVLocalityResponse.prototype, "countryName", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CNBVLocalityResponse.prototype, "stateCode", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsString)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], CNBVLocalityResponse.prototype, "stateName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CNBVLocalityResponse.prototype, "municipalityCode", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], CNBVLocalityResponse.prototype, "municipalityName", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CNBVLocalityResponse.prototype, "localityName", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsBoolean)(),
|
|
55
|
+
__metadata("design:type", Boolean)
|
|
56
|
+
], CNBVLocalityResponse.prototype, "isCapital", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsBoolean)(),
|
|
59
|
+
__metadata("design:type", Boolean)
|
|
60
|
+
], CNBVLocalityResponse.prototype, "isCustomAdded", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsNumber)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], CNBVLocalityResponse.prototype, "createdAt", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsNumber)(),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], CNBVLocalityResponse.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
// cnbv dtos
|
|
18
|
+
__exportStar(require("./dtos/CNBVLocalityRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/CNBVLocalityResponse"), exports);
|
|
20
|
+
// cnbv enum
|
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -15,16 +15,26 @@ 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
|
-
exports.DirectorySetting = void 0;
|
|
37
|
+
exports.Cnbv = exports.DirectorySetting = void 0;
|
|
28
38
|
exports.Account = __importStar(require("./account"));
|
|
29
39
|
exports.Activity = __importStar(require("./activity"));
|
|
30
40
|
exports.Beneficiary = __importStar(require("./beneficiary"));
|
|
@@ -76,3 +86,4 @@ exports.Pricelist = __importStar(require("./pricelist"));
|
|
|
76
86
|
exports.Collector = __importStar(require("./collector"));
|
|
77
87
|
exports.InvoiceCollector = __importStar(require("./invoice-collector"));
|
|
78
88
|
exports.DirectorySetting = __importStar(require("./directorySetting"));
|
|
89
|
+
exports.Cnbv = __importStar(require("./cnbv"));
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { IsBoolean, IsNumber, IsOptional, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class CNBVLocalityResponse {
|
|
4
|
+
|
|
5
|
+
@IsString()
|
|
6
|
+
id: string;
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
countryCode: string;
|
|
10
|
+
|
|
11
|
+
@IsString()
|
|
12
|
+
localityCnbvCode: string;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
countryName: string;
|
|
16
|
+
|
|
17
|
+
@IsString()
|
|
18
|
+
stateCode: string;
|
|
19
|
+
|
|
20
|
+
@IsString()
|
|
21
|
+
stateName: string;
|
|
22
|
+
|
|
23
|
+
@IsString()
|
|
24
|
+
municipalityCode: string;
|
|
25
|
+
|
|
26
|
+
@IsString()
|
|
27
|
+
municipalityName: string;
|
|
28
|
+
|
|
29
|
+
@IsString()
|
|
30
|
+
localityName: string;
|
|
31
|
+
|
|
32
|
+
@IsBoolean()
|
|
33
|
+
isCapital: boolean;
|
|
34
|
+
|
|
35
|
+
@IsBoolean()
|
|
36
|
+
isCustomAdded: boolean;
|
|
37
|
+
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsNumber()
|
|
40
|
+
createdAt: number;
|
|
41
|
+
|
|
42
|
+
@IsOptional()
|
|
43
|
+
@IsNumber()
|
|
44
|
+
updatedAt: number;
|
|
45
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -50,4 +50,5 @@ export * as Company from './company';
|
|
|
50
50
|
export * as Pricelist from './pricelist';
|
|
51
51
|
export * as Collector from './collector';
|
|
52
52
|
export * as InvoiceCollector from './invoice-collector';
|
|
53
|
-
export * as DirectorySetting from './directorySetting';
|
|
53
|
+
export * as DirectorySetting from './directorySetting';
|
|
54
|
+
export * as Cnbv from './cnbv';
|
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
|
@@ -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 = {}));
|