n8n-nodes-dchub 0.0.0-stage → 0.1.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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 DC Hub
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,75 @@
1
- # Temporary Holding Version
1
+ # n8n-nodes-dchub
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ An [n8n](https://n8n.io) community node for [DC Hub](https://dchub.cloud/connect?via=n8n), the orchestration layer for data center and energy intelligence. Find power. Find land. Find fiber. Find capacity.
4
+
5
+ Use it to bring a Data Center Power Index (DCPI) verdict, or a data center facility lookup, into any n8n workflow: a site-selection sheet, a Slack digest, a CRM enrichment step or an AI agent tool.
6
+
7
+ DC Hub is built to work alongside everyone.
8
+
9
+ [Installation](#installation) · [Operations](#operations) · [Credentials](#credentials) · [Compatibility](#compatibility) · [Usage](#usage) · [Development](#development) · [Resources](#resources)
10
+
11
+ ## Installation
12
+
13
+ Follow the [community nodes installation guide](https://docs.n8n.io/integrations/community-nodes/installation/) in the n8n docs and install the package `n8n-nodes-dchub`.
14
+
15
+ ## Operations
16
+
17
+ **DCPI**
18
+
19
+ | Operation | What it returns |
20
+ | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
21
+ | Get Market | The Data Center Power Index (DCPI) verdict (BUILD, CAUTION or AVOID) for one market slug, with its evidence date, method version and a link to the market page |
22
+ | List Verdicts | Published market verdicts, one item per market, with optional verdict, grid operator and state filters |
23
+ | Get Methodology | How the Data Center Power Index (DCPI) is scored: verdict bands, composite formula, cadence and provenance |
24
+ | Get Daily History | Daily BUILD, CAUTION and AVOID totals from the public history file, newest day first |
25
+
26
+ **Facility**
27
+
28
+ | Operation | What it returns |
29
+ | --------- | --------------------------------------------------------------------------------------------------------------- |
30
+ | Search | Data center facilities matching a city, provider or market, with location, verification status and profile link |
31
+
32
+ Like the [DC Hub GitHub Action](https://github.com/azmartone67/dchub-action), the node returns verdicts and evidence dates, not numeric scores. Some markets have no published verdict right now. For those, Get Market returns `unpublished_market: true` with no verdict, and List Verdicts leaves them out.
33
+
34
+ All operations call public DC Hub REST endpoints on `https://dchub.cloud`.
35
+
36
+ ## Credentials
37
+
38
+ The **DC Hub API** credential is optional. Every operation works without it.
39
+
40
+ If you have a DC Hub API key, create a DC Hub API credential, paste the key, and attach it to the node. The key is sent as the `X-API-Key` header.
41
+
42
+ ## Compatibility
43
+
44
+ Built with `@n8n/node-cli` 0.57 against n8n Nodes API version 1. Tested with `n8n-workflow` 2.x.
45
+
46
+ ## Usage
47
+
48
+ - **Daily verdict check:** Schedule Trigger → DC Hub (Get Market, `columbus`) → IF `verdict` changed → notify your team.
49
+ - **Market shortlist:** DC Hub (List Verdicts, filter Verdict = BUILD) → Google Sheets.
50
+ - **AI agent tool:** the node is marked usable as a tool, so an n8n AI Agent can call it directly.
51
+
52
+ Cite DCPI values as: Data Center Power Index (DCPI), DC Hub (dchub.cloud).
53
+
54
+ AI assistants and agents can also reach DC Hub over MCP at `https://dchub.cloud/mcp`.
55
+
56
+ ## Development
57
+
58
+ ```bash
59
+ npm install
60
+ npm run lint
61
+ npm test # build + offline tests with mocked HTTP
62
+ npm run test:live # build + one keyless smoke test against https://dchub.cloud
63
+ npm run dev # run n8n locally with this node loaded
64
+ ```
65
+
66
+ ## Resources
67
+
68
+ - [n8n community nodes documentation](https://docs.n8n.io/integrations/#community-nodes)
69
+ - [DC Hub: connect your tools](https://dchub.cloud/connect?via=n8n)
70
+ - [Data Center Power Index (DCPI) methodology](https://dchub.cloud/api/v1/dcpi/methodology)
71
+ - [DC Hub GitHub Action](https://github.com/azmartone67/dchub-action)
72
+
73
+ ## License
74
+
75
+ [MIT](LICENSE.md)
@@ -0,0 +1,10 @@
1
+ import type { IAuthenticateGeneric, Icon, ICredentialTestRequest, ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class DcHubApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ icon: Icon;
6
+ documentationUrl: string;
7
+ properties: INodeProperties[];
8
+ authenticate: IAuthenticateGeneric;
9
+ test: ICredentialTestRequest;
10
+ }
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DcHubApi = void 0;
4
+ class DcHubApi {
5
+ constructor() {
6
+ this.name = 'dcHubApi';
7
+ this.displayName = 'DC Hub API';
8
+ this.icon = { light: 'file:../icons/dchub.svg', dark: 'file:../icons/dchub.dark.svg' };
9
+ this.documentationUrl = 'https://gitlab.com/azmartone671/n8n-nodes-dchub#credentials';
10
+ this.properties = [
11
+ {
12
+ displayName: 'API Key',
13
+ name: 'apiKey',
14
+ type: 'string',
15
+ typeOptions: { password: true },
16
+ default: '',
17
+ description: 'Optional. Every operation in this node works without a key. If you have a DC Hub API key, it is sent as the X-API-Key header.',
18
+ },
19
+ ];
20
+ this.authenticate = {
21
+ type: 'generic',
22
+ properties: {
23
+ headers: {
24
+ 'X-API-Key': '={{$credentials.apiKey}}',
25
+ },
26
+ },
27
+ };
28
+ this.test = {
29
+ request: {
30
+ baseURL: 'https://dchub.cloud',
31
+ url: '/api/v1/dcpi/methodology',
32
+ method: 'GET',
33
+ },
34
+ };
35
+ }
36
+ }
37
+ exports.DcHubApi = DcHubApi;
38
+ //# sourceMappingURL=DcHubApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DcHubApi.credentials.js","sourceRoot":"","sources":["../../credentials/DcHubApi.credentials.ts"],"names":[],"mappings":";;;AAQA,MAAa,QAAQ;IAArB;QACC,SAAI,GAAG,UAAU,CAAC;QAElB,gBAAW,GAAG,YAAY,CAAC;QAE3B,SAAI,GAAS,EAAE,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,8BAA8B,EAAE,CAAC;QAExF,qBAAgB,GACf,6DAA6D,CAAC;QAE/D,eAAU,GAAsB;YAC/B;gBACC,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,EACV,+HAA+H;aAChI;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,WAAW,EAAE,0BAA0B;iBACvC;aACD;SACD,CAAC;QAEF,SAAI,GAA2B;YAC9B,OAAO,EAAE;gBACR,OAAO,EAAE,qBAAqB;gBAC9B,GAAG,EAAE,0BAA0B;gBAC/B,MAAM,EAAE,KAAK;aACb;SACD,CAAC;IACH,CAAC;CAAA;AAtCD,4BAsCC"}
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="none" role="img" aria-label="DC Hub">
2
+ <circle cx="18" cy="18" r="18" fill="#1a1a2e"/>
3
+ <path d="M20.5 6L10 20h7l-2 10L27 16h-7.5l1-10z"
4
+ fill="url(#dchub-bolt)" stroke="#a78bfa" stroke-width=".5"
5
+ stroke-linejoin="round"/>
6
+ <defs>
7
+ <linearGradient id="dchub-bolt" x1="18" y1="6" x2="18" y2="30"
8
+ gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#6366f1"/>
10
+ <stop offset="1" stop-color="#a855f7"/>
11
+ </linearGradient>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="none" role="img" aria-label="DC Hub">
2
+ <circle cx="18" cy="18" r="18" fill="#1a1a2e"/>
3
+ <path d="M20.5 6L10 20h7l-2 10L27 16h-7.5l1-10z"
4
+ fill="url(#dchub-bolt)" stroke="#a78bfa" stroke-width=".5"
5
+ stroke-linejoin="round"/>
6
+ <defs>
7
+ <linearGradient id="dchub-bolt" x1="18" y1="6" x2="18" y2="30"
8
+ gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#6366f1"/>
10
+ <stop offset="1" stop-color="#a855f7"/>
11
+ </linearGradient>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,5 @@
1
+ import type { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class DcHub implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }
@@ -0,0 +1,276 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DcHub = void 0;
4
+ const n8n_workflow_1 = require("n8n-workflow");
5
+ const GenericFunctions_1 = require("./GenericFunctions");
6
+ async function dcHubRequest(ctx, path, qs = {}, json = true) {
7
+ var _a;
8
+ const options = {
9
+ method: 'GET',
10
+ url: `${GenericFunctions_1.BASE_URL}${path}`,
11
+ qs,
12
+ json,
13
+ headers: { 'User-Agent': GenericFunctions_1.USER_AGENT, Accept: json ? 'application/json' : 'text/csv' },
14
+ };
15
+ const hasCredential = Boolean((_a = ctx.getNode().credentials) === null || _a === void 0 ? void 0 : _a.dcHubApi);
16
+ if (hasCredential) {
17
+ return await ctx.helpers.httpRequestWithAuthentication.call(ctx, 'dcHubApi', options);
18
+ }
19
+ return await ctx.helpers.httpRequest(options);
20
+ }
21
+ function limitItems(items, returnAll, limit) {
22
+ return returnAll ? items : items.slice(0, limit);
23
+ }
24
+ class DcHub {
25
+ constructor() {
26
+ this.description = {
27
+ displayName: 'DC Hub',
28
+ name: 'dcHub',
29
+ icon: { light: 'file:dchub.svg', dark: 'file:dchub.dark.svg' },
30
+ group: ['transform'],
31
+ version: 1,
32
+ subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
33
+ description: 'DC Hub, the orchestration layer for data center and energy intelligence: Data Center Power Index (DCPI) verdicts and data center facilities',
34
+ defaults: {
35
+ name: 'DC Hub',
36
+ },
37
+ usableAsTool: true,
38
+ inputs: [n8n_workflow_1.NodeConnectionTypes.Main],
39
+ outputs: [n8n_workflow_1.NodeConnectionTypes.Main],
40
+ credentials: [
41
+ {
42
+ name: 'dcHubApi',
43
+ required: false,
44
+ },
45
+ ],
46
+ properties: [
47
+ {
48
+ displayName: 'Resource',
49
+ name: 'resource',
50
+ type: 'options',
51
+ noDataExpression: true,
52
+ options: [
53
+ { name: 'DCPI', value: 'dcpi' },
54
+ { name: 'Facility', value: 'facility' },
55
+ ],
56
+ default: 'dcpi',
57
+ },
58
+ {
59
+ displayName: 'Operation',
60
+ name: 'operation',
61
+ type: 'options',
62
+ noDataExpression: true,
63
+ displayOptions: { show: { resource: ['dcpi'] } },
64
+ options: [
65
+ {
66
+ name: 'Get Daily History',
67
+ value: 'getHistory',
68
+ description: 'Get daily BUILD, CAUTION and AVOID totals',
69
+ action: 'Get daily DCPI history',
70
+ },
71
+ {
72
+ name: 'Get Market',
73
+ value: 'getMarket',
74
+ description: 'Get the Data Center Power Index (DCPI) verdict for one market',
75
+ action: 'Get a DCPI market verdict',
76
+ },
77
+ {
78
+ name: 'Get Methodology',
79
+ value: 'getMethodology',
80
+ description: 'Get how the Data Center Power Index (DCPI) is scored',
81
+ action: 'Get the DCPI methodology',
82
+ },
83
+ {
84
+ name: 'List Verdicts',
85
+ value: 'listVerdicts',
86
+ description: 'List published Data Center Power Index (DCPI) market verdicts',
87
+ action: 'List DCPI verdicts',
88
+ },
89
+ ],
90
+ default: 'getMarket',
91
+ },
92
+ {
93
+ displayName: 'Operation',
94
+ name: 'operation',
95
+ type: 'options',
96
+ noDataExpression: true,
97
+ displayOptions: { show: { resource: ['facility'] } },
98
+ options: [
99
+ {
100
+ name: 'Search',
101
+ value: 'search',
102
+ description: 'Search data center facilities by city, provider or market',
103
+ action: 'Search facilities',
104
+ },
105
+ ],
106
+ default: 'search',
107
+ },
108
+ {
109
+ displayName: 'Market Slug',
110
+ name: 'market',
111
+ type: 'string',
112
+ required: true,
113
+ default: '',
114
+ placeholder: 'columbus',
115
+ description: 'Data Center Power Index (DCPI) market slug, for example columbus or atlanta',
116
+ displayOptions: { show: { resource: ['dcpi'], operation: ['getMarket'] } },
117
+ },
118
+ {
119
+ displayName: 'Filters',
120
+ name: 'filters',
121
+ type: 'collection',
122
+ placeholder: 'Add Filter',
123
+ default: {},
124
+ displayOptions: { show: { resource: ['dcpi'], operation: ['listVerdicts'] } },
125
+ options: [
126
+ {
127
+ displayName: 'Verdict',
128
+ name: 'verdict',
129
+ type: 'options',
130
+ options: [
131
+ { name: 'AVOID', value: 'AVOID' },
132
+ { name: 'BUILD', value: 'BUILD' },
133
+ { name: 'CAUTION', value: 'CAUTION' },
134
+ ],
135
+ default: 'BUILD',
136
+ },
137
+ {
138
+ displayName: 'Grid Operator',
139
+ name: 'iso',
140
+ type: 'string',
141
+ default: '',
142
+ placeholder: 'PJM',
143
+ description: 'ISO or grid operator code, for example PJM or WECC',
144
+ },
145
+ {
146
+ displayName: 'State',
147
+ name: 'state',
148
+ type: 'string',
149
+ default: '',
150
+ placeholder: 'OH',
151
+ description: 'Two-letter state code',
152
+ },
153
+ ],
154
+ },
155
+ {
156
+ displayName: 'Query',
157
+ name: 'query',
158
+ type: 'string',
159
+ required: true,
160
+ default: '',
161
+ placeholder: 'columbus',
162
+ description: 'City, provider or market to search for',
163
+ displayOptions: { show: { resource: ['facility'], operation: ['search'] } },
164
+ },
165
+ {
166
+ displayName: 'Return All',
167
+ name: 'returnAll',
168
+ type: 'boolean',
169
+ default: false,
170
+ description: 'Whether to return all results or only up to a given limit',
171
+ displayOptions: {
172
+ show: { operation: ['listVerdicts', 'getHistory', 'search'] },
173
+ },
174
+ },
175
+ {
176
+ displayName: 'Limit',
177
+ name: 'limit',
178
+ type: 'number',
179
+ typeOptions: { minValue: 1 },
180
+ default: 50,
181
+ description: 'Max number of results to return',
182
+ displayOptions: {
183
+ show: { operation: ['listVerdicts', 'getHistory', 'search'], returnAll: [false] },
184
+ },
185
+ },
186
+ ],
187
+ };
188
+ }
189
+ async execute() {
190
+ var _a, _b, _c, _d, _e, _f;
191
+ const items = this.getInputData();
192
+ const returnData = [];
193
+ for (let i = 0; i < items.length; i++) {
194
+ try {
195
+ const resource = this.getNodeParameter('resource', i);
196
+ const operation = this.getNodeParameter('operation', i);
197
+ let results = [];
198
+ if (resource === 'dcpi' && operation === 'getMarket') {
199
+ const slug = (0, GenericFunctions_1.normalizeSlug)(this.getNodeParameter('market', i));
200
+ if (!slug) {
201
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Set a market slug.', { itemIndex: i });
202
+ }
203
+ if ((0, GenericFunctions_1.isUnpublished)({ slug })) {
204
+ results = [(0, GenericFunctions_1.unpublishedItem)(slug)];
205
+ }
206
+ else {
207
+ const data = (await dcHubRequest(this, `/api/v1/dcpi/scores/${encodeURIComponent(slug)}`));
208
+ const unpublished = (0, GenericFunctions_1.isUnpublished)({
209
+ slug: (_b = (_a = data.market_slug) !== null && _a !== void 0 ? _a : data.slug) !== null && _b !== void 0 ? _b : slug,
210
+ iso: (_d = (_c = data.iso) !== null && _c !== void 0 ? _c : data.rto) !== null && _d !== void 0 ? _d : data.grid,
211
+ state: (_e = data.state) !== null && _e !== void 0 ? _e : data.state_code,
212
+ name: (_f = data.market_name) !== null && _f !== void 0 ? _f : data.name,
213
+ });
214
+ results = [unpublished ? (0, GenericFunctions_1.unpublishedItem)(slug) : (0, GenericFunctions_1.marketItem)(data, slug)];
215
+ }
216
+ }
217
+ else if (resource === 'dcpi' && operation === 'listVerdicts') {
218
+ const filters = this.getNodeParameter('filters', i, {});
219
+ const returnAll = this.getNodeParameter('returnAll', i, false);
220
+ const limit = this.getNodeParameter('limit', i, 50);
221
+ const data = (await dcHubRequest(this, '/api/v1/dcpi/verdicts'));
222
+ results = limitItems((0, GenericFunctions_1.verdictItems)(data, {
223
+ verdict: filters.verdict,
224
+ iso: filters.iso,
225
+ state: filters.state,
226
+ }), returnAll, limit);
227
+ }
228
+ else if (resource === 'dcpi' && operation === 'getMethodology') {
229
+ const data = (await dcHubRequest(this, '/api/v1/dcpi/methodology'));
230
+ results = [(0, GenericFunctions_1.methodologyItem)(data)];
231
+ }
232
+ else if (resource === 'dcpi' && operation === 'getHistory') {
233
+ const returnAll = this.getNodeParameter('returnAll', i, false);
234
+ const limit = this.getNodeParameter('limit', i, 50);
235
+ const csv = (await dcHubRequest(this, '/dcpi/history.csv', {}, false));
236
+ const rows = (0, GenericFunctions_1.parseHistoryCsv)(String(csv));
237
+ results = limitItems(rows.reverse(), returnAll, limit);
238
+ }
239
+ else if (resource === 'facility' && operation === 'search') {
240
+ const query = this.getNodeParameter('query', i).trim();
241
+ if (!query) {
242
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Set a search query.', { itemIndex: i });
243
+ }
244
+ const returnAll = this.getNodeParameter('returnAll', i, false);
245
+ const limit = this.getNodeParameter('limit', i, 50);
246
+ const data = (await dcHubRequest(this, '/api/v1/facilities', {
247
+ q: query,
248
+ }));
249
+ results = limitItems((0, GenericFunctions_1.facilityItems)(data), returnAll, limit);
250
+ }
251
+ else {
252
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), `Unsupported operation "${operation}" for resource "${resource}".`, { itemIndex: i });
253
+ }
254
+ for (const r of results) {
255
+ returnData.push({ json: r, pairedItem: { item: i } });
256
+ }
257
+ }
258
+ catch (error) {
259
+ if (this.continueOnFail()) {
260
+ returnData.push({
261
+ json: { error: error.message },
262
+ pairedItem: { item: i },
263
+ });
264
+ continue;
265
+ }
266
+ if (error instanceof n8n_workflow_1.NodeOperationError) {
267
+ throw new n8n_workflow_1.NodeOperationError(this.getNode(), error, { itemIndex: i });
268
+ }
269
+ throw new n8n_workflow_1.NodeApiError(this.getNode(), error, { itemIndex: i });
270
+ }
271
+ }
272
+ return [returnData];
273
+ }
274
+ }
275
+ exports.DcHub = DcHub;
276
+ //# sourceMappingURL=DcHub.node.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DcHub.node.js","sourceRoot":"","sources":["../../../nodes/DcHub/DcHub.node.ts"],"names":[],"mappings":";;;AASA,+CAAqF;AAErF,yDAW4B;AAE5B,KAAK,UAAU,YAAY,CAC1B,GAAsB,EACtB,IAAY,EACZ,KAAkB,EAAE,EACpB,IAAI,GAAG,IAAI;;IAEX,MAAM,OAAO,GAAwB;QACpC,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,GAAG,2BAAQ,GAAG,IAAI,EAAE;QACzB,EAAE;QACF,IAAI;QACJ,OAAO,EAAE,EAAE,YAAY,EAAE,6BAAU,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,UAAU,EAAE;KACrF,CAAC;IACF,MAAM,aAAa,GAAG,OAAO,CAAC,MAAA,GAAG,CAAC,OAAO,EAAE,CAAC,WAAW,0CAAE,QAAQ,CAAC,CAAC;IACnE,IAAI,aAAa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IAAI,OAAO,EAAE,CAAC;oBACzB,UAAU,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;gBACvD,CAAC;YACF,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBAChB,IAAI,IAAI,CAAC,cAAc,EAAE,EAAE,CAAC;oBAC3B,UAAU,CAAC,IAAI,CAAC;wBACf,IAAI,EAAE,EAAE,KAAK,EAAG,KAAe,CAAC,OAAO,EAAE;wBACzC,UAAU,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;qBACvB,CAAC,CAAC;oBACH,SAAS;gBACV,CAAC;gBACD,IAAI,KAAK,YAAY,iCAAkB,EAAE,CAAC;oBACzC,MAAM,IAAI,iCAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;gBACvE,CAAC;gBACD,MAAM,IAAI,2BAAY,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,KAAmB,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;YAC/E,CAAC;QACF,CAAC;QAED,OAAO,CAAC,UAAU,CAAC,CAAC;IACrB,CAAC;CACD;AAlQD,sBAkQC"}
@@ -0,0 +1,18 @@
1
+ {
2
+ "node": "n8n-nodes-dchub.dcHub",
3
+ "nodeVersion": "1.0",
4
+ "codexVersion": "1.0",
5
+ "categories": ["Data & Storage", "Analytics"],
6
+ "resources": {
7
+ "credentialDocumentation": [
8
+ {
9
+ "url": "https://gitlab.com/azmartone671/n8n-nodes-dchub#credentials"
10
+ }
11
+ ],
12
+ "primaryDocumentation": [
13
+ {
14
+ "url": "https://gitlab.com/azmartone671/n8n-nodes-dchub"
15
+ }
16
+ ]
17
+ }
18
+ }
@@ -0,0 +1,22 @@
1
+ import type { IDataObject } from 'n8n-workflow';
2
+ export declare const BASE_URL = "https://dchub.cloud";
3
+ export declare const USER_AGENT = "n8n-nodes-dchub/0.1.0";
4
+ export declare const UNPUBLISHED_MESSAGE = "No published verdict for this market right now.";
5
+ export declare function isUnpublished(m: {
6
+ slug?: unknown;
7
+ iso?: unknown;
8
+ state?: unknown;
9
+ name?: unknown;
10
+ }): boolean;
11
+ export declare function evidenceDate(data: IDataObject | undefined): string;
12
+ export declare function normalizeSlug(slug: string): string;
13
+ export declare function unpublishedItem(slug: string): IDataObject;
14
+ export declare function marketItem(data: IDataObject, requestedSlug: string): IDataObject;
15
+ export declare function verdictItems(data: IDataObject, filters: {
16
+ verdict?: string;
17
+ iso?: string;
18
+ state?: string;
19
+ }): IDataObject[];
20
+ export declare function methodologyItem(data: IDataObject): IDataObject;
21
+ export declare function parseHistoryCsv(csv: string): IDataObject[];
22
+ export declare function facilityItems(data: IDataObject): IDataObject[];
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UNPUBLISHED_MESSAGE = exports.USER_AGENT = exports.BASE_URL = void 0;
4
+ exports.isUnpublished = isUnpublished;
5
+ exports.evidenceDate = evidenceDate;
6
+ exports.normalizeSlug = normalizeSlug;
7
+ exports.unpublishedItem = unpublishedItem;
8
+ exports.marketItem = marketItem;
9
+ exports.verdictItems = verdictItems;
10
+ exports.methodologyItem = methodologyItem;
11
+ exports.parseHistoryCsv = parseHistoryCsv;
12
+ exports.facilityItems = facilityItems;
13
+ exports.BASE_URL = 'https://dchub.cloud';
14
+ exports.USER_AGENT = 'n8n-nodes-dchub/0.1.0';
15
+ exports.UNPUBLISHED_MESSAGE = 'No published verdict for this market right now.';
16
+ const UNPUBLISHED_ISOS = new Set(['ERCOT', 'MISO']);
17
+ const UNPUBLISHED_STATES = new Set(['AZ', 'ARIZONA']);
18
+ const UNPUBLISHED_SLUG_FRAGMENTS = ['phoenix', 'tucson', '-az', 'arizona', 'ercot', 'miso'];
19
+ function isUnpublished(m) {
20
+ var _a, _b, _c, _d;
21
+ const iso = String((_a = m.iso) !== null && _a !== void 0 ? _a : '').toUpperCase();
22
+ if (UNPUBLISHED_ISOS.has(iso))
23
+ return true;
24
+ const state = String((_b = m.state) !== null && _b !== void 0 ? _b : '').toUpperCase();
25
+ if (UNPUBLISHED_STATES.has(state))
26
+ return true;
27
+ const blob = `${String((_c = m.slug) !== null && _c !== void 0 ? _c : '')} ${String((_d = m.name) !== null && _d !== void 0 ? _d : '')}`.toLowerCase();
28
+ return UNPUBLISHED_SLUG_FRAGMENTS.some((f) => blob.includes(f));
29
+ }
30
+ function evidenceDate(data) {
31
+ var _a, _b, _c, _d, _e;
32
+ if (!data || typeof data !== 'object')
33
+ return '';
34
+ const prov = ((_a = data.dcpi_provenance) !== null && _a !== void 0 ? _a : data.provenance);
35
+ return String((_e = (_d = (_c = (_b = data.as_of) !== null && _b !== void 0 ? _b : data.asOf) !== null && _c !== void 0 ? _c : prov === null || prov === void 0 ? void 0 : prov.as_of) !== null && _d !== void 0 ? _d : data.computed_at) !== null && _e !== void 0 ? _e : '');
36
+ }
37
+ function normalizeSlug(slug) {
38
+ return slug.trim().toLowerCase();
39
+ }
40
+ function unpublishedItem(slug) {
41
+ return {
42
+ market_slug: slug,
43
+ unpublished_market: true,
44
+ verdict: null,
45
+ as_of: null,
46
+ message: exports.UNPUBLISHED_MESSAGE,
47
+ };
48
+ }
49
+ function marketItem(data, requestedSlug) {
50
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
51
+ const slug = String((_b = (_a = data.market_slug) !== null && _a !== void 0 ? _a : data.slug) !== null && _b !== void 0 ? _b : requestedSlug);
52
+ return {
53
+ market_slug: slug,
54
+ market_name: (_d = (_c = data.market_name) !== null && _c !== void 0 ? _c : data.name) !== null && _d !== void 0 ? _d : null,
55
+ iso: (_e = data.iso) !== null && _e !== void 0 ? _e : null,
56
+ state: (_f = data.state) !== null && _f !== void 0 ? _f : null,
57
+ verdict: (_g = data.verdict) !== null && _g !== void 0 ? _g : null,
58
+ verdict_meaning: (_h = data.verdict_meaning) !== null && _h !== void 0 ? _h : null,
59
+ as_of: evidenceDate(data) || null,
60
+ method_version: (_j = data.method_version) !== null && _j !== void 0 ? _j : null,
61
+ unpublished_market: false,
62
+ url: `${exports.BASE_URL}/dcpi/${encodeURIComponent(slug)}?via=n8n`,
63
+ source: 'Data Center Power Index (DCPI), DC Hub (dchub.cloud)',
64
+ };
65
+ }
66
+ function verdictItems(data, filters) {
67
+ var _a, _b, _c;
68
+ const markets = (Array.isArray(data.markets) ? data.markets : []);
69
+ const asOf = evidenceDate(data) || null;
70
+ const verdict = ((_a = filters.verdict) !== null && _a !== void 0 ? _a : '').toUpperCase();
71
+ const iso = ((_b = filters.iso) !== null && _b !== void 0 ? _b : '').trim().toUpperCase();
72
+ const state = ((_c = filters.state) !== null && _c !== void 0 ? _c : '').trim().toUpperCase();
73
+ return markets
74
+ .filter((m) => {
75
+ var _a, _b;
76
+ return !isUnpublished({
77
+ slug: (_a = m.market_slug) !== null && _a !== void 0 ? _a : m.slug,
78
+ iso: m.iso,
79
+ state: m.state,
80
+ name: (_b = m.market_name) !== null && _b !== void 0 ? _b : m.name,
81
+ });
82
+ })
83
+ .filter((m) => { var _a; return !verdict || String((_a = m.verdict) !== null && _a !== void 0 ? _a : '').toUpperCase() === verdict; })
84
+ .filter((m) => { var _a; return !iso || String((_a = m.iso) !== null && _a !== void 0 ? _a : '').toUpperCase() === iso; })
85
+ .filter((m) => { var _a; return !state || String((_a = m.state) !== null && _a !== void 0 ? _a : '').toUpperCase() === state; })
86
+ .map((m) => {
87
+ var _a, _b, _c, _d, _e, _f, _g;
88
+ return ({
89
+ market_slug: (_b = (_a = m.market_slug) !== null && _a !== void 0 ? _a : m.slug) !== null && _b !== void 0 ? _b : null,
90
+ market_name: (_d = (_c = m.market_name) !== null && _c !== void 0 ? _c : m.name) !== null && _d !== void 0 ? _d : null,
91
+ iso: (_e = m.iso) !== null && _e !== void 0 ? _e : null,
92
+ state: (_f = m.state) !== null && _f !== void 0 ? _f : null,
93
+ verdict: (_g = m.verdict) !== null && _g !== void 0 ? _g : null,
94
+ as_of: asOf,
95
+ url: m.market_slug ? `${exports.BASE_URL}/dcpi/${String(m.market_slug)}?via=n8n` : null,
96
+ });
97
+ });
98
+ }
99
+ const METHODOLOGY_KEYS = [
100
+ 'method_version',
101
+ 'scoring_unchanged_since',
102
+ 'scale',
103
+ 'verdict',
104
+ 'composite_score',
105
+ 'cadence',
106
+ 'provenance',
107
+ ];
108
+ function methodologyItem(data) {
109
+ const out = {};
110
+ for (const k of METHODOLOGY_KEYS)
111
+ if (k in data)
112
+ out[k] = data[k];
113
+ out.methodology_url = `${exports.BASE_URL}/api/v1/dcpi/methodology`;
114
+ out.source = 'Data Center Power Index (DCPI), DC Hub (dchub.cloud)';
115
+ return out;
116
+ }
117
+ const HISTORY_INT_COLUMNS = ['markets', 'build', 'caution', 'avoid'];
118
+ function parseHistoryCsv(csv) {
119
+ const lines = csv
120
+ .split(/\r?\n/)
121
+ .map((l) => l.trim())
122
+ .filter((l) => l && !l.startsWith('#'));
123
+ if (lines.length === 0)
124
+ return [];
125
+ const header = lines[0].split(',');
126
+ return lines.slice(1).map((line) => {
127
+ const cells = line.split(',');
128
+ const row = {};
129
+ header.forEach((h, i) => {
130
+ var _a;
131
+ const v = (_a = cells[i]) !== null && _a !== void 0 ? _a : '';
132
+ if (HISTORY_INT_COLUMNS.includes(h))
133
+ row[h] = v === '' ? null : Number(v);
134
+ else
135
+ row[h] = v === '' ? null : v;
136
+ });
137
+ return row;
138
+ });
139
+ }
140
+ const FACILITY_KEYS = [
141
+ 'id',
142
+ 'name',
143
+ 'provider',
144
+ 'city',
145
+ 'state',
146
+ 'state_name',
147
+ 'country',
148
+ 'country_name',
149
+ 'location_display',
150
+ 'verification',
151
+ 'as_of',
152
+ 'profile_url',
153
+ 'slug',
154
+ ];
155
+ function facilityItems(data) {
156
+ const rows = (Array.isArray(data.data) ? data.data : []);
157
+ return rows.map((r) => {
158
+ const out = {};
159
+ for (const k of FACILITY_KEYS)
160
+ if (k in r)
161
+ out[k] = r[k];
162
+ return out;
163
+ });
164
+ }
165
+ //# sourceMappingURL=GenericFunctions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GenericFunctions.js","sourceRoot":"","sources":["../../../nodes/DcHub/GenericFunctions.ts"],"names":[],"mappings":";;;AAcA,sCAYC;AAED,oCAIC;AAED,sCAEC;AAED,0CAQC;AAGD,gCAeC;AAED,oCA+BC;AAaD,0CAMC;AAKD,0CAiBC;AAkBD,sCAOC;AAjKY,QAAA,QAAQ,GAAG,qBAAqB,CAAC;AACjC,QAAA,UAAU,GAAG,uBAAuB,CAAC;AACrC,QAAA,mBAAmB,GAAG,iDAAiD,CAAC;AAErF,MAAM,gBAAgB,GAAG,IAAI,GAAG,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC;AACpD,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;AACtD,MAAM,0BAA0B,GAAG,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,CAAC,CAAC;AAM5F,SAAgB,aAAa,CAAC,CAK7B;;IACA,MAAM,GAAG,GAAG,MAAM,CAAC,MAAA,CAAC,CAAC,GAAG,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9C,IAAI,gBAAgB,CAAC,GAAG,CAAC,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAC3C,MAAM,KAAK,GAAG,MAAM,CAAC,MAAA,CAAC,CAAC,KAAK,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAClD,IAAI,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAC/C,MAAM,IAAI,GAAG,GAAG,MAAM,CAAC,MAAA,CAAC,CAAC,IAAI,mCAAI,EAAE,CAAC,IAAI,MAAM,CA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ox="0 0 36 36" fill="none" role="img" aria-label="DC Hub">
2
+ <circle cx="18" cy="18" r="18" fill="#1a1a2e"/>
3
+ <path d="M20.5 6L10 20h7l-2 10L27 16h-7.5l1-10z"
4
+ fill="url(#dchub-bolt)" stroke="#a78bfa" stroke-width=".5"
5
+ stroke-linejoin="round"/>
6
+ <defs>
7
+ <linearGradient id="dchub-bolt" x1="18" y1="6" x2="18" y2="30"
8
+ gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#6366f1"/>
10
+ <stop offset="1" stop-color="#a855f7"/>
11
+ </linearGradient>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,13 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" fill="none" role="img" aria-label="DC Hub">
2
+ <circle cx="18" cy="18" r="18" fill="#1a1a2e"/>
3
+ <path d="M20.5 6L10 20h7l-2 10L27 16h-7.5l1-10z"
4
+ fill="url(#dchub-bolt)" stroke="#a78bfa" stroke-width=".5"
5
+ stroke-linejoin="round"/>
6
+ <defs>
7
+ <linearGradient id="dchub-bolt" x1="18" y1="6" x2="18" y2="30"
8
+ gradientUnits="userSpaceOnUse">
9
+ <stop stop-color="#6366f1"/>
10
+ <stop offset="1" stop-color="#a855f7"/>
11
+ </linearGradient>
12
+ </defs>
13
+ </svg>
@@ -0,0 +1,66 @@
1
+ {
2
+ "name": "n8n-nodes-dchub",
3
+ "version": "0.1.2",
4
+ "description": "n8n node for DC Hub, the orchestration layer for data center and energy intelligence: Data Center Power Index (DCPI) verdicts, market lookups, methodology, daily history and facility search.",
5
+ "license": "MIT",
6
+ "homepage": "https://dchub.cloud/connect?via=n8n",
7
+ "keywords": [
8
+ "n8n-community-node-package",
9
+ "n8n",
10
+ "dchub",
11
+ "data-center",
12
+ "dcpi",
13
+ "energy",
14
+ "power-grid"
15
+ ],
16
+ "author": {
17
+ "name": "DC Hub",
18
+ "email": "api@dchub.cloud",
19
+ "url": "https://dchub.cloud"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://gitlab.com/azmartone671/n8n-nodes-dchub.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://dchub.cloud/support"
27
+ },
28
+ "scripts": {
29
+ "build": "n8n-node build",
30
+ "build:watch": "tsc --watch",
31
+ "dev": "n8n-node dev",
32
+ "lint": "n8n-node lint",
33
+ "lint:fix": "n8n-node lint --fix",
34
+ "test": "npm run build && node --test test/offline.test.js",
35
+ "test:live": "npm run build && DCHUB_LIVE=1 node --test test/live.test.js",
36
+ "release": "n8n-node release",
37
+ "prepublishOnly": "n8n-node prerelease"
38
+ },
39
+ "files": [
40
+ "dist",
41
+ "!dist/**/*.tsbuildinfo"
42
+ ],
43
+ "n8n": {
44
+ "n8nNodesApiVersion": 1,
45
+ "strict": true,
46
+ "credentials": [
47
+ "dist/credentials/DcHubApi.credentials.js"
48
+ ],
49
+ "nodes": [
50
+ "dist/nodes/DcHub/DcHub.node.js"
51
+ ]
52
+ },
53
+ "devDependencies": {
54
+ "@n8n/node-cli": "0.57.4",
55
+ "eslint": "9.39.4",
56
+ "prettier": "3.8.3",
57
+ "release-it": "20.2.0",
58
+ "typescript": "5.9.3"
59
+ },
60
+ "peerDependencies": {
61
+ "n8n-workflow": "*"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ }
66
+ }
package/package.json CHANGED
@@ -1,6 +1,66 @@
1
1
  {
2
- "name": "n8n-nodes-dchub",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
2
+ "name": "n8n-nodes-dchub",
3
+ "version": "0.1.2",
4
+ "description": "n8n node for DC Hub, the orchestration layer for data center and energy intelligence: Data Center Power Index (DCPI) verdicts, market lookups, methodology, daily history and facility search.",
5
+ "license": "MIT",
6
+ "homepage": "https://dchub.cloud/connect?via=n8n",
7
+ "keywords": [
8
+ "n8n-community-node-package",
9
+ "n8n",
10
+ "dchub",
11
+ "data-center",
12
+ "dcpi",
13
+ "energy",
14
+ "power-grid"
15
+ ],
16
+ "author": {
17
+ "name": "DC Hub",
18
+ "email": "api@dchub.cloud",
19
+ "url": "https://dchub.cloud"
20
+ },
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://gitlab.com/azmartone671/n8n-nodes-dchub.git"
24
+ },
25
+ "bugs": {
26
+ "url": "https://dchub.cloud/support"
27
+ },
28
+ "scripts": {
29
+ "build": "n8n-node build",
30
+ "build:watch": "tsc --watch",
31
+ "dev": "n8n-node dev",
32
+ "lint": "n8n-node lint",
33
+ "lint:fix": "n8n-node lint --fix",
34
+ "test": "npm run build && node --test test/offline.test.js",
35
+ "test:live": "npm run build && DCHUB_LIVE=1 node --test test/live.test.js",
36
+ "release": "n8n-node release",
37
+ "prepublishOnly": "n8n-node prerelease"
38
+ },
39
+ "files": [
40
+ "dist",
41
+ "!dist/**/*.tsbuildinfo"
42
+ ],
43
+ "n8n": {
44
+ "n8nNodesApiVersion": 1,
45
+ "strict": true,
46
+ "credentials": [
47
+ "dist/credentials/DcHubApi.credentials.js"
48
+ ],
49
+ "nodes": [
50
+ "dist/nodes/DcHub/DcHub.node.js"
51
+ ]
52
+ },
53
+ "devDependencies": {
54
+ "@n8n/node-cli": "0.57.4",
55
+ "eslint": "9.39.4",
56
+ "prettier": "3.8.3",
57
+ "release-it": "20.2.0",
58
+ "typescript": "5.9.3"
59
+ },
60
+ "peerDependencies": {
61
+ "n8n-workflow": "*"
62
+ },
63
+ "publishConfig": {
64
+ "access": "public"
65
+ }
66
+ }