@seniorsistemas/senior-hcm
Version:
Senior HCM SDK para Node.js
32 lines • 1.1 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const senior_core_1 = require("@seniorsistemas/senior-core");
class Dependent extends senior_core_1.RequestClient {
constructor(hcmApi) {
super(hcmApi, 'hcm', 'dependent');
}
dependentQuery(dependentQueryIn) {
const clientOptions = {
url: this.getUrlPath('queries/dependentQuery'),
method: senior_core_1.HttpMethod.POST,
data: dependentQueryIn,
headers: {
authorization: this.seniorApi.accessToken,
},
};
return this.request(clientOptions);
}
dependentListQuery(dependentListQuery) {
const clientOptions = {
url: this.getUrlPath('queries/dependentListQuery'),
method: senior_core_1.HttpMethod.POST,
data: dependentListQuery,
headers: {
authorization: this.seniorApi.accessToken,
},
};
return this.request(clientOptions);
}
}
exports.default = Dependent;
//# sourceMappingURL=Dependent.js.map