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EACZ,CACX,CA1CA,SAAS,QAAQ,cACjB,SAAS,QAAQ,WACjB,SAAS,QAAQ,aAyCjB,QAAQ,qBAAuB","file":"/npm/@bimdata/typescript-fetch-api-client@10.48.0/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/@bimdata/typescript-fetch-api-client@10.48.0/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","\"use strict\";\nfunction __export(m) {\n    for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];\n}\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst apis_1 = require(\"./apis\");\nconst runtime_1 = require(\"./runtime\");\n__export(require(\"./runtime\"));\n__export(require(\"./apis\"));\n__export(require(\"./models\"));\nfunction makeBIMDataApiClient(config) {\n    const apiClient = {\n        _accessToken: null,\n        _config: null,\n        _clients: {},\n        // Setters\n        set config(value) {\n            this._accessToken = value.accessToken;\n            this._config = new runtime_1.Configuration({\n                // basePath is renamed to make the makeBIMDataApiClient signature more readable\n                basePath: value.basePath || value.apiUrl,\n                credentials: value.credentials,\n                headers: {\n                    Authorization: `Bearer ${value.accessToken}`\n                }\n            });\n            Object.assign(this._clients, {\n                bfcApi: new apis_1.BcfApi(this._config),\n                collaborationApi: new apis_1.CollaborationApi(this._config),\n                modelApi: new apis_1.ModelApi(this._config),\n                ssoApi: new apis_1.SsoApi(this._config),\n                webhookApi: new apis_1.WebhookApi(this._config),\n            });\n        },\n        set accessToken(value) {\n            this.config = Object.assign({}, this._config.configuration, { accessToken: value });\n        },\n        // Getters\n        get accessToken() { return this._accessToken; },\n        get authHeader() { return this._config.headers; },\n        get config() { return this._config; },\n        get bcfApi() { return this._clients.bfcApi; },\n        get collaborationApi() { return this._clients.collaborationApi; },\n        get modelApi() { return this._clients.modelApi; },\n        get ssoApi() { return this._clients.ssoApi; },\n        get webhookApi() { return this._clients.webhookApi; },\n    };\n    apiClient.config = config;\n    return apiClient;\n}\nexports.makeBIMDataApiClient = makeBIMDataApiClient;\n"]}