UNPKG

@swan-admin/swan-ai-measurements

Version:
33 lines (32 loc) 1.41 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const auth_js_1 = __importDefault(require("./auth.js")); const custom_js_1 = __importDefault(require("./custom.js")); const fileUpload_js_1 = __importDefault(require("./fileUpload.js")); const measurement_js_1 = __importDefault(require("./measurement.js")); const poseDetection_js_1 = __importDefault(require("./poseDetection.js")); const tryOn_js_1 = __importDefault(require("./tryOn.js")); class Swan { #accessKey; #stagingUrl; auth; custom; fileUpload; measurement; poseDetection; tryOn; constructor(accessKey, stagingUrl = false) { this.#accessKey = accessKey; this.#stagingUrl = stagingUrl; this.auth = new auth_js_1.default(this.#accessKey, this.#stagingUrl); this.custom = new custom_js_1.default(this.#accessKey, this.#stagingUrl); this.fileUpload = new fileUpload_js_1.default(this.#accessKey, this.#stagingUrl); this.measurement = new measurement_js_1.default(this.#accessKey, this.#stagingUrl); this.poseDetection = new poseDetection_js_1.default(this.#accessKey, this.#stagingUrl); this.tryOn = new tryOn_js_1.default(this.#accessKey, this.#stagingUrl); } } exports.default = Swan;