UNPKG

qcobjects-cli

Version:

qcobjects cli command line tool

80 lines (79 loc) 2.28 kB
"use strict"; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __hasOwnProp = Object.prototype.hasOwnProperty; var __name = (target, value) => __defProp(target, "name", { value, configurable: true }); var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var api_client_services_exports = {}; __export(api_client_services_exports, { QuickCorpCloud: () => QuickCorpCloud }); module.exports = __toCommonJS(api_client_services_exports); var import_qcobjects = require("qcobjects"); class QuickCorpCloud extends import_qcobjects.Service { static { __name(this, "QuickCorpCloud"); } headers; url; basePath; data; constructor({ name = "quickcorp_cloud", external = true, useHTTP2 = true, cached = false, method = "post", headers = { "origin": "localhost", "content-type": "application/json" }, basePath = "https://cloud.quickcorp.org/", url = "", withCredentials = false }) { super({ name, external, useHTTP2, cached, method, headers, basePath, url, withCredentials }); } _new_(o) { this.headers["authorization"] = "Basic token"; this.url = this.basePath + o.apiMethod; this.data = o.data; } done(service, standardResponse) { import_qcobjects.logger.debug(standardResponse); } fail(e) { import_qcobjects.logger.debug(e); } } (0, import_qcobjects.Package)("org.quickcorp.qcobjects.api.client_services", [ QuickCorpCloud ]); // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { QuickCorpCloud }); //# sourceMappingURL=api-client_services.cjs.map