@fiado/type-kit 2.0.80 → 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.
Files changed (34) hide show
  1. package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
  2. package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
  3. package/bin/cnbv/dtos/CNBVLocalityRequest.d.ts +3 -0
  4. package/bin/cnbv/dtos/CNBVLocalityRequest.js +7 -0
  5. package/bin/cnbv/dtos/CNBVLocalityResponse.d.ts +15 -0
  6. package/bin/cnbv/dtos/CNBVLocalityResponse.js +70 -0
  7. package/bin/cnbv/index.d.ts +2 -0
  8. package/bin/cnbv/index.js +20 -0
  9. package/bin/group/dtos/GroupUpdateRequest.d.ts +1 -1
  10. package/bin/group/dtos/GroupUpdateRequest.js +1 -1
  11. package/bin/index.d.ts +1 -0
  12. package/bin/index.js +19 -8
  13. package/package.json +1 -1
  14. package/src/cnbv/dtos/CNBVLocalityRequest.ts +6 -0
  15. package/src/cnbv/dtos/CNBVLocalityResponse.ts +45 -0
  16. package/src/cnbv/index.ts +6 -0
  17. package/src/group/dtos/GroupUpdateRequest.ts +1 -1
  18. package/src/index.ts +2 -1
  19. package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
  20. package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
  21. package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
  22. package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
  23. package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
  24. package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
  25. package/bin/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
  26. package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
  27. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
  28. package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
  29. package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
  30. package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
  31. package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
  32. package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
  33. package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
  34. 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.IsValueValid = exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
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.IsPhoneNumberFiado = exports.IsPhoneNumberConstraint = void 0;
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,3 @@
1
+ import { AddressBase } from "../../address/dtos/AddressBase";
2
+ export declare class CNBVLocalityRequest extends AddressBase {
3
+ }
@@ -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,2 @@
1
+ export * from './dtos/CNBVLocalityRequest';
2
+ export * from './dtos/CNBVLocalityResponse';
@@ -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
@@ -4,7 +4,7 @@ export declare class GroupUpdateRequest {
4
4
  description: string;
5
5
  leader: string;
6
6
  status: GroupStatus;
7
- codeToRefer: Array<string>;
7
+ codesToRefer: Array<string>;
8
8
  uniqueMainDirectory: string;
9
9
  authorizedAccounts: Array<string>;
10
10
  category: string;
@@ -40,7 +40,7 @@ __decorate([
40
40
  __decorate([
41
41
  (0, class_validator_1.IsOptional)(),
42
42
  __metadata("design:type", Array)
43
- ], GroupUpdateRequest.prototype, "codeToRefer", void 0);
43
+ ], GroupUpdateRequest.prototype, "codesToRefer", void 0);
44
44
  __decorate([
45
45
  (0, class_validator_1.IsOptional)(),
46
46
  __metadata("design:type", String)
package/bin/index.d.ts CHANGED
@@ -49,3 +49,4 @@ export * as Pricelist from './pricelist';
49
49
  export * as Collector from './collector';
50
50
  export * as InvoiceCollector from './invoice-collector';
51
51
  export * as DirectorySetting from './directorySetting';
52
+ export * as Cnbv from './cnbv';
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 (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
- };
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "2.0.80",
3
+ "version": "2.0.82",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,6 @@
1
+ import { IsBoolean, IsNumber, IsOptional, IsString } from "class-validator";
2
+ import { AddressBase } from "../../address/dtos/AddressBase";
3
+
4
+ export class CNBVLocalityRequest extends AddressBase {
5
+
6
+ }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+
2
+ // cnbv dtos
3
+ export * from './dtos/CNBVLocalityRequest';
4
+ export * from './dtos/CNBVLocalityResponse';
5
+
6
+ // cnbv enum
@@ -22,7 +22,7 @@ export class GroupUpdateRequest {
22
22
  status: GroupStatus
23
23
 
24
24
  @IsOptional()
25
- codeToRefer: Array<string>;
25
+ codesToRefer: Array<string>;
26
26
 
27
27
  @IsOptional()
28
28
  uniqueMainDirectory: string;
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,4 +0,0 @@
1
- export declare class ExternalAccountType {
2
- id?: number;
3
- name?: string;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalAccountType = void 0;
4
- class ExternalAccountType {
5
- }
6
- exports.ExternalAccountType = ExternalAccountType;
@@ -1,6 +0,0 @@
1
- import { DocumentSideEnum } from "../../identity";
2
- export declare class CentralPaymentsDocumentImages {
3
- side: DocumentSideEnum;
4
- url: string;
5
- extension: string;
6
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CentralPaymentsDocumentImages = void 0;
4
- class CentralPaymentsDocumentImages {
5
- }
6
- exports.CentralPaymentsDocumentImages = CentralPaymentsDocumentImages;
@@ -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,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetPriceListDirectoriesResponse = void 0;
4
- class GetPriceListDirectoriesResponse {
5
- }
6
- exports.GetPriceListDirectoriesResponse = GetPriceListDirectoriesResponse;
@@ -1,4 +0,0 @@
1
- export declare class GetServiceListAppResponse {
2
- items: any[];
3
- index: string | null;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServiceListAppResponse = void 0;
4
- class GetServiceListAppResponse {
5
- }
6
- exports.GetServiceListAppResponse = GetServiceListAppResponse;
@@ -1,4 +0,0 @@
1
- export declare class GetServiceMembershipListAResponse {
2
- items: any[];
3
- index: string | null;
4
- }
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetServiceMembershipListAResponse = void 0;
4
- class GetServiceMembershipListAResponse {
5
- }
6
- exports.GetServiceMembershipListAResponse = GetServiceMembershipListAResponse;
@@ -1,5 +0,0 @@
1
- export declare enum ServiceProviderEnum {
2
- CP = "CP",
3
- TERN = "TERN",
4
- PAGOCONFIADO = "PAGOCONFIADO"
5
- }
@@ -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 = {}));