@fiado/type-kit 2.0.85 → 2.0.87
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/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/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
- package/bin/identity/dtos/PeopleResponse.d.ts +1 -0
- package/bin/index.js +7 -17
- package/bin/payroll-business/dtos/PayrollBossCreateRequest.d.ts +7 -0
- package/bin/payroll-business/dtos/PayrollBossCreateRequest.js +38 -0
- package/bin/payroll-business/dtos/PayrollBossUpadteRequest.d.ts +7 -0
- package/bin/payroll-business/dtos/PayrollBossUpadteRequest.js +33 -0
- package/bin/payroll-business/enums/PayrollBossStatusEnum.d.ts +5 -0
- package/bin/payroll-business/enums/PayrollBossStatusEnum.js +9 -0
- package/bin/payroll-business/index.d.ts +3 -0
- package/bin/payroll-business/index.js +21 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +28 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +6 -0
- 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 +9 -9
- package/src/identity/dtos/PeopleResponse.ts +1 -0
- package/src/payroll-business/dtos/PayrollBossCreateRequest.ts +25 -0
- package/src/payroll-business/dtos/PayrollBossUpadteRequest.ts +21 -0
- package/src/payroll-business/enums/PayrollBossStatusEnum.ts +5 -0
- package/src/payroll-business/index.ts +8 -0
|
@@ -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;
|
|
File without changes
|
|
File without changes
|
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.Cnbv = exports.DirectorySetting = void 0;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.PayrollBossCreateRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class PayrollBossCreateRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.PayrollBossCreateRequest = PayrollBossCreateRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PayrollBossCreateRequest.prototype, "directoryId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.IsString)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], PayrollBossCreateRequest.prototype, "peopleId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], PayrollBossCreateRequest.prototype, "description", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], PayrollBossCreateRequest.prototype, "searchAchString", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], PayrollBossCreateRequest.prototype, "groupId", void 0);
|
|
@@ -0,0 +1,33 @@
|
|
|
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.PayrollBossUpadteRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const PayrollBossStatusEnum_1 = require("../enums/PayrollBossStatusEnum");
|
|
15
|
+
class PayrollBossUpadteRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.PayrollBossUpadteRequest = PayrollBossUpadteRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], PayrollBossUpadteRequest.prototype, "description", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], PayrollBossUpadteRequest.prototype, "searchAchString", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], PayrollBossUpadteRequest.prototype, "groupId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], PayrollBossUpadteRequest.prototype, "status", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PayrollBossStatusEnum = void 0;
|
|
4
|
+
var PayrollBossStatusEnum;
|
|
5
|
+
(function (PayrollBossStatusEnum) {
|
|
6
|
+
PayrollBossStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
PayrollBossStatusEnum["INACTIVE"] = "INACTIVE";
|
|
8
|
+
PayrollBossStatusEnum["DELETED"] = "DELETED";
|
|
9
|
+
})(PayrollBossStatusEnum || (exports.PayrollBossStatusEnum = PayrollBossStatusEnum = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
//dtos
|
|
18
|
+
__exportStar(require("./dtos/PayrollBossCreateRequest"), exports);
|
|
19
|
+
__exportStar(require("./dtos/PayrollBossUpadteRequest"), exports);
|
|
20
|
+
//enums
|
|
21
|
+
__exportStar(require("./enums/PayrollBossStatusEnum"), exports);
|
|
@@ -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
|
+
}
|
|
@@ -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,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/type-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.87",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
"test": "jest",
|
|
9
|
+
"build": "tsc"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [],
|
|
12
12
|
"author": "Fiado Inc",
|
|
13
13
|
"license": "ISC",
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
"@types/node": "^20.11.20",
|
|
16
|
+
"install": "^0.13.0",
|
|
17
|
+
"typescript": "^5.3.3"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
"class-transformer": "^0.5.1",
|
|
21
|
+
"class-validator": "^0.14.2"
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsNotEmpty, IsString } from 'class-validator';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class PayrollBossCreateRequest {
|
|
7
|
+
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
@IsString()
|
|
10
|
+
directoryId: string;
|
|
11
|
+
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
@IsString()
|
|
14
|
+
peopleId: string;
|
|
15
|
+
|
|
16
|
+
@IsString()
|
|
17
|
+
description: string;
|
|
18
|
+
|
|
19
|
+
@IsString()
|
|
20
|
+
searchAchString: string;
|
|
21
|
+
|
|
22
|
+
@IsString()
|
|
23
|
+
groupId: string;
|
|
24
|
+
|
|
25
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsString } from 'class-validator';
|
|
4
|
+
import { PayrollBossStatusEnum } from '../enums/PayrollBossStatusEnum';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export class PayrollBossUpadteRequest {
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
description?: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
searchAchString?: string;
|
|
14
|
+
|
|
15
|
+
@IsString()
|
|
16
|
+
groupId?: string;
|
|
17
|
+
|
|
18
|
+
@IsString()
|
|
19
|
+
status?: PayrollBossStatusEnum;
|
|
20
|
+
|
|
21
|
+
}
|