UNPKG

tipi-services

Version:

Node.js library to access wrapping REST API of tipi backend services

21 lines (15 loc) 543 B
const Service = require('../../../Service') const Endpoints = require('./Endpoints') class IntegrationsService extends Service { constructor (baseUrl) { super() this.endpoints = Endpoints(baseUrl) } async checkIn (id, data) { return this.sendRequest({ endpoint: this.endpoints.checkIn, params: { id }, body: data }) } async getCheckInStatus (id, query) { return this.sendRequest({ endpoint: this.endpoints.getCheckInStatus, params: { id }, query }) } } module.exports = IntegrationsService