@seniorsistemas/senior-sam
Version:
Senior HCM SAM para Node.js
68 lines • 2.83 kB
JavaScript
"use strict";
const senior_core_1 = require("@seniorsistemas/senior-core");
module.exports = class Lobby extends senior_core_1.RequestClient {
constructor(samApi) {
super(samApi, 'sam', 'lobby');
}
listPersonLookup(listPersonLookupIn) {
const listPersonLookupInJSON = listPersonLookupIn.toJson();
const clientOptions = {
url: this.getUrlPath('queries/listPersonLookup'),
method: senior_core_1.HttpMethod.POST,
data: listPersonLookupInJSON,
headers: {
authorization: this.seniorApi.accessToken,
},
};
return this.request(clientOptions);
}
lobbyCredentialTechnologies(parentId, lobbyCredentialTechnologiesIn) {
const lobbyCredentialTechnologiesInJSON = lobbyCredentialTechnologiesIn.toJson();
const clientOptions = {
url: this.getUrlPath(`entities/lobby/${parentId}/lobbyCredentialTechnologies`),
method: senior_core_1.HttpMethod.POST,
data: lobbyCredentialTechnologiesInJSON,
headers: {
authorization: this.seniorApi.accessToken,
},
};
return this.request(clientOptions);
}
createPersonProvisoryCredentialCard(createPersonProvisoryCredential) {
const createPersonProvisoryCredentialJSON = createPersonProvisoryCredential.toJson();
const clientOptions = {
url: this.getUrlPath('actions/createPersonProvisoryCredentialCard'),
method: senior_core_1.HttpMethod.POST,
data: createPersonProvisoryCredentialJSON,
headers: {
authorization: this.seniorApi.accessToken,
},
};
return this.request(clientOptions);
}
createVisitorProvisoryCredentialCard(createVisitorProvisoryCredential) {
const createVisitorProvisoryCredentialJSON = createVisitorProvisoryCredential.toJson();
const clientOptions = {
url: this.getUrlPath('actions/createVisitorProvisoryCredentialCard'),
method: senior_core_1.HttpMethod.POST,
data: createVisitorProvisoryCredentialJSON,
headers: {
authorization: this.seniorApi.accessToken,
},
};
return this.request(clientOptions);
}
getCredentials(personId, listPersonLookupIn) {
const listPersonLookupInJSON = listPersonLookupIn.toJson();
const clientOptions = {
url: this.getUrlPath(`entities/person/${personId}/credentials`),
method: senior_core_1.HttpMethod.GET,
data: listPersonLookupInJSON,
headers: {
authorization: this.seniorApi.accessToken,
},
};
return this.request(clientOptions);
}
};
//# sourceMappingURL=Lobby.js.map