@vtex/api
Version:
VTEX I/O API client
21 lines (20 loc) • 590 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.IOClient = void 0;
const HttpClient_1 = require("../HttpClient/HttpClient");
/**
* A client that can be instantiated by the Serviceruntime layer.
*/
class IOClient {
constructor(context, options) {
this.context = context;
this.options = options;
this.http = new HttpClient_1.HttpClient({
name: this.constructor.name,
...context,
...options,
metrics: options && options.metrics,
});
}
}
exports.IOClient = IOClient;
;