n8n-nodes-get-variables 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,17 @@
1
- import { ICredentialType, INodeProperties } from 'n8n-workflow';
1
+ import { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
2
 
3
3
  export class N8nApi implements ICredentialType {
4
4
  name = 'n8nApi';
5
5
  displayName = 'n8n API';
6
+ test: ICredentialTestRequest = {
7
+ request: {
8
+ baseURL: '={{$credentials.baseUrl.replace(/\\/$/, "")}}',
9
+ url: '/api/v1/datatables',
10
+ headers: {
11
+ 'X-N8N-API-KEY': '={{$credentials.apiKey}}',
12
+ },
13
+ },
14
+ };
6
15
  properties: INodeProperties[] = [
7
16
  {
8
17
  displayName: 'Base URL',
@@ -1,6 +1,7 @@
1
- import { ICredentialType, INodeProperties } from 'n8n-workflow';
1
+ import { ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
2
  export declare class N8nApi implements ICredentialType {
3
3
  name: string;
4
4
  displayName: string;
5
+ test: ICredentialTestRequest;
5
6
  properties: INodeProperties[];
6
7
  }
@@ -5,6 +5,15 @@ class N8nApi {
5
5
  constructor() {
6
6
  this.name = 'n8nApi';
7
7
  this.displayName = 'n8n API';
8
+ this.test = {
9
+ request: {
10
+ baseURL: '={{$credentials.baseUrl.replace(/\\/$/, "")}}',
11
+ url: '/api/v1/datatables',
12
+ headers: {
13
+ 'X-N8N-API-KEY': '={{$credentials.apiKey}}',
14
+ },
15
+ },
16
+ };
8
17
  this.properties = [
9
18
  {
10
19
  displayName: 'Base URL',
@@ -1 +1 @@
1
- {"version":3,"file":"N8nApi.credentials.js","sourceRoot":"","sources":["../../credentials/N8nApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IAAnB;QACE,SAAI,GAAG,QAAQ,CAAC;QAChB,gBAAW,GAAG,SAAS,CAAC;QACxB,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,uBAAuB;gBAChC,WAAW,EAAE,+BAA+B;gBAC5C,WAAW,EAAE,uDAAuD;aACrE;YACD;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oDAAoD;aAClE;SACF,CAAC;IACJ,CAAC;CAAA;AArBD,wBAqBC"}
1
+ {"version":3,"file":"N8nApi.credentials.js","sourceRoot":"","sources":["../../credentials/N8nApi.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAa,MAAM;IAAnB;QACE,SAAI,GAAG,QAAQ,CAAC;QAChB,gBAAW,GAAG,SAAS,CAAC;QACxB,SAAI,GAA2B;YAC7B,OAAO,EAAE;gBACP,OAAO,EAAE,+CAA+C;gBACxD,GAAG,EAAE,oBAAoB;gBACzB,OAAO,EAAE;oBACP,eAAe,EAAE,0BAA0B;iBAC5C;aACF;SACF,CAAC;QACF,eAAU,GAAsB;YAC9B;gBACE,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,uBAAuB;gBAChC,WAAW,EAAE,+BAA+B;gBAC5C,WAAW,EAAE,uDAAuD;aACrE;YACD;gBACE,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oDAAoD;aAClE;SACF,CAAC;IACJ,CAAC;CAAA;AA9BD,wBA8BC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-get-variables",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "n8n community node — collapses DataTable rows into a single key-value object",
5
5
  "keywords": [
6
6
  "n8n-community-node-package"