UNPKG

n8n-nodes-base

Version:

Base nodes of n8n

19 lines 790 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.azureCosmosDbApiRequest = azureCosmosDbApiRequest; async function azureCosmosDbApiRequest(method, endpoint, body = {}, qs, headers, returnFullResponse = false) { const credentialsType = 'microsoftAzureCosmosDbSharedKeyApi'; const credentials = await this.getCredentials(credentialsType); const baseUrl = `https://${credentials.account}.documents.azure.com/dbs/${credentials.database}`; const options = { method, url: `${baseUrl}${endpoint}`, json: true, headers, body, qs, returnFullResponse, }; return await this.helpers.httpRequestWithAuthentication.call(this, credentialsType, options); } //# sourceMappingURL=index.js.map