diff --git a/packages/nodes-base/credentials/MicrosoftCosmosDbSharedKeyApi.credentials.ts b/packages/nodes-base/credentials/MicrosoftCosmosDbSharedKeyApi.credentials.ts index 37fea92edf..4518abaaa4 100644 --- a/packages/nodes-base/credentials/MicrosoftCosmosDbSharedKeyApi.credentials.ts +++ b/packages/nodes-base/credentials/MicrosoftCosmosDbSharedKeyApi.credentials.ts @@ -14,7 +14,7 @@ import { export class MicrosoftCosmosDbSharedKeyApi implements ICredentialType { name = 'microsoftCosmosDbSharedKeyApi'; - displayName = 'Azure Cosmos DB API'; + displayName = 'Cosmos DB API'; documentationUrl = 'microsoftCosmosDb'; diff --git a/packages/nodes-base/nodes/Microsoft/CosmosDB/CosmosDb.node.ts b/packages/nodes-base/nodes/Microsoft/CosmosDB/CosmosDb.node.ts index 028374ef9a..a0fdf917ed 100644 --- a/packages/nodes-base/nodes/Microsoft/CosmosDB/CosmosDb.node.ts +++ b/packages/nodes-base/nodes/Microsoft/CosmosDB/CosmosDb.node.ts @@ -16,9 +16,9 @@ export class CosmosDb implements INodeType { group: ['transform'], version: 1, subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}', - description: 'Interact with Azure Cosmos DB API', + description: 'Interact with Cosmos DB API', defaults: { - name: 'Azure Cosmos Db', + name: 'Cosmos Db', }, inputs: [NodeConnectionType.Main], outputs: [NodeConnectionType.Main], @@ -26,11 +26,6 @@ export class CosmosDb implements INodeType { { name: 'microsoftCosmosDbSharedKeyApi', required: true, - displayOptions: { - show: { - authentication: ['sharedKey'], - }, - }, }, ], requestDefaults: { @@ -41,28 +36,11 @@ export class CosmosDb implements INodeType { }, }, properties: [ - { - displayName: 'Authentication', - name: 'authentication', - type: 'options', - options: [ - { - name: 'Shared Key', - value: 'sharedKey', - }, - ], - default: 'sharedKey', - }, { displayName: 'Resource', name: 'resource', type: 'options', noDataExpression: true, - routing: { - // send: { - // preSend: [presendStringifyBody], - // }, - }, options: [ { name: 'Container', diff --git a/packages/nodes-base/nodes/Microsoft/CosmosDB/GenericFunctions.ts b/packages/nodes-base/nodes/Microsoft/CosmosDB/GenericFunctions.ts index d63f68c7ab..e32bc036da 100644 --- a/packages/nodes-base/nodes/Microsoft/CosmosDB/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Microsoft/CosmosDB/GenericFunctions.ts @@ -63,16 +63,6 @@ export function getAuthorizationTokenUsingMasterKey( return `type=master&ver=1.0&sig=${signature}`; } -export async function presendStringifyBody( - this: IExecuteSingleFunctions, - requestOptions: IHttpRequestOptions, -): Promise { - if (requestOptions.body) { - requestOptions.body = JSON.stringify(requestOptions.body); - } - return requestOptions; -} - export async function handlePagination( this: IExecutePaginationFunctions, resultOptions: DeclarativeRestApiSettings.ResultOptions,