n8n-nodes-db-anub 0.0.1 → 0.0.2
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.
- package/dist/credentials/D1ManagerApi.credentials.d.ts +11 -0
- package/dist/credentials/D1ManagerApi.credentials.d.ts.map +1 -0
- package/dist/credentials/D1ManagerApi.credentials.js +48 -0
- package/dist/credentials/D1ManagerApi.credentials.js.map +1 -0
- package/dist/nodes/D1Manager/D1Manager.node.d.ts +11 -0
- package/dist/nodes/D1Manager/D1Manager.node.d.ts.map +1 -0
- package/{nodes/D1Manager/D1Manager.node.ts → dist/nodes/D1Manager/D1Manager.node.js} +543 -594
- package/dist/nodes/D1Manager/D1Manager.node.js.map +1 -0
- package/package.json +4 -1
- package/credentials/D1ManagerApi.credentials.ts +0 -52
- package/tsconfig.json +0 -25
- /package/{nodes → dist/nodes}/D1Manager/d1manager-dark.svg +0 -0
- /package/{nodes → dist/nodes}/D1Manager/d1manager-light.svg +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IAuthenticateGeneric, ICredentialTestRequest, ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
|
|
2
|
+
export declare class D1ManagerApi implements ICredentialType {
|
|
3
|
+
name: string;
|
|
4
|
+
displayName: string;
|
|
5
|
+
documentationUrl: string;
|
|
6
|
+
icon: Icon;
|
|
7
|
+
properties: INodeProperties[];
|
|
8
|
+
authenticate: IAuthenticateGeneric;
|
|
9
|
+
test: ICredentialTestRequest;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=D1ManagerApi.credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"D1ManagerApi.credentials.d.ts","sourceRoot":"","sources":["../../credentials/D1ManagerApi.credentials.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,eAAe,EACf,IAAI,EACP,MAAM,cAAc,CAAC;AAEtB,qBAAa,YAAa,YAAW,eAAe;IAChD,IAAI,SAAkB;IACtB,WAAW,SAAoB;IAC/B,gBAAgB,SAA+D;IAC/E,IAAI,EAAE,IAAI,CAA0E;IAEpF,UAAU,EAAE,eAAe,EAAE,CAmB3B;IAEF,YAAY,EAAE,oBAAoB,CAOhC;IAEF,IAAI,EAAE,sBAAsB,CAM1B;CACL"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.D1ManagerApi = void 0;
|
|
4
|
+
class D1ManagerApi {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.name = 'd1ManagerApi';
|
|
7
|
+
this.displayName = 'D1 Manager API';
|
|
8
|
+
this.documentationUrl = 'https://github.com/your-username/n8n-nodes-db-anub#readme';
|
|
9
|
+
this.icon = { light: 'file:d1manager-dark.svg', dark: 'file:d1manager-light.svg' };
|
|
10
|
+
this.properties = [
|
|
11
|
+
{
|
|
12
|
+
displayName: 'Base URL',
|
|
13
|
+
name: 'baseUrl',
|
|
14
|
+
type: 'string',
|
|
15
|
+
default: 'https://your-worker.your-subdomain.workers.dev',
|
|
16
|
+
required: true,
|
|
17
|
+
description: 'The URL of your D1 Manager Worker',
|
|
18
|
+
placeholder: 'https://your-worker.your-subdomain.workers.dev',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
displayName: 'API Key',
|
|
22
|
+
name: 'apiKey',
|
|
23
|
+
type: 'string',
|
|
24
|
+
typeOptions: { password: true },
|
|
25
|
+
default: '',
|
|
26
|
+
required: true,
|
|
27
|
+
description: 'The API key for authentication (x-api-key header)',
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
this.authenticate = {
|
|
31
|
+
type: 'generic',
|
|
32
|
+
properties: {
|
|
33
|
+
headers: {
|
|
34
|
+
'x-api-key': '={{$credentials.apiKey}}',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
this.test = {
|
|
39
|
+
request: {
|
|
40
|
+
baseURL: '={{$credentials.baseUrl}}',
|
|
41
|
+
url: '/databases',
|
|
42
|
+
method: 'GET',
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.D1ManagerApi = D1ManagerApi;
|
|
48
|
+
//# sourceMappingURL=D1ManagerApi.credentials.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"D1ManagerApi.credentials.js","sourceRoot":"","sources":["../../credentials/D1ManagerApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,YAAY;IAAzB;QACI,SAAI,GAAG,cAAc,CAAC;QACtB,gBAAW,GAAG,gBAAgB,CAAC;QAC/B,qBAAgB,GAAG,2DAA2D,CAAC;QAC/E,SAAI,GAAS,EAAE,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,0BAA0B,EAAE,CAAC;QAEpF,eAAU,GAAsB;YAC5B;gBACI,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,gDAAgD;gBACzD,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mCAAmC;gBAChD,WAAW,EAAE,gDAAgD;aAChE;YACD;gBACI,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,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,mDAAmD;aACnE;SACJ,CAAC;QAEF,iBAAY,GAAyB;YACjC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACR,OAAO,EAAE;oBACL,WAAW,EAAE,0BAA0B;iBAC1C;aACJ;SACJ,CAAC;QAEF,SAAI,GAA2B;YAC3B,OAAO,EAAE;gBACL,OAAO,EAAE,2BAA2B;gBACpC,GAAG,EAAE,YAAY;gBACjB,MAAM,EAAE,KAAK;aAChB;SACJ,CAAC;IACN,CAAC;CAAA;AA3CD,oCA2CC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription, ILoadOptionsFunctions, INodeListSearchResult } from 'n8n-workflow';
|
|
2
|
+
export declare class D1Manager implements INodeType {
|
|
3
|
+
description: INodeTypeDescription;
|
|
4
|
+
methods: {
|
|
5
|
+
listSearch: {
|
|
6
|
+
getDatabases(this: ILoadOptionsFunctions, filter?: string): Promise<INodeListSearchResult>;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=D1Manager.node.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"D1Manager.node.d.ts","sourceRoot":"","sources":["../../../nodes/D1Manager/D1Manager.node.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,oBAAoB,EAIpB,qBAAqB,EACrB,qBAAqB,EACxB,MAAM,cAAc,CAAC;AAyMtB,qBAAa,SAAU,YAAW,SAAS;IACvC,WAAW,EAAE,oBAAoB,CAgJ/B;IAMF,OAAO;;+BAE0B,qBAAqB,WAAW,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;;MAyBtG;IAMI,OAAO,CAAC,IAAI,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,EAAE,EAAE,CAAC;CAsM1E"}
|