@shipengine/connect
Version:
The official developer tooling for building ShipEngine connect apps
21 lines • 576 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class Diagnostics {
client;
constructor(apiClient) {
this.client = apiClient;
}
/**
* Check the API for a heart beat.
* @returns {Promise<Pulse>} Promise object that resolves to a Pulse object.
*/
async heartBeat() {
const response = await this.client.call({
endpoint: 'diagnostics/heartbeat',
method: 'GET',
});
return response;
}
}
exports.default = Diagnostics;
//# sourceMappingURL=diagnostics.js.map