n8n-nodes-digit 0.1.15 → 0.1.16

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.
@@ -154,7 +154,7 @@ class DIGIT {
154
154
  }
155
155
  }
156
156
  // ==================================================
157
- // BOUNDARY — SEARCH
157
+ // BOUNDARY
158
158
  // ==================================================
159
159
  if (resource === 'boundary') {
160
160
  const operation = this.getNodeParameter('boundaryOperation', 0);
@@ -162,17 +162,20 @@ class DIGIT {
162
162
  for (let i = 0; i < items.length; i++) {
163
163
  const tenantId = this.getNodeParameter('tenantId', i);
164
164
  const codes = this.getNodeParameter('codes', i);
165
+ const clientId = this.getNodeParameter('clientId', i);
165
166
  const accessToken = this.getNodeParameter('accessToken', i);
166
167
  const cleanToken = accessToken.replace(/^Bearer\s+/i, '').trim();
168
+ // Gateway boundary endpoint
169
+ const boundaryUrl = new URL('/boundary/v1', baseUrl).toString();
167
170
  const apiResponse = await this.helpers.httpRequest({
168
171
  method: 'GET',
169
- url: new URL('/egov-location/location/v11/boundarys/_search', baseUrl).toString(),
172
+ url: boundaryUrl,
170
173
  qs: {
171
- tenantId: tenantId.toLowerCase(),
172
- boundaryCodes: codes,
174
+ codes: codes,
173
175
  },
174
176
  headers: {
175
- 'X-Tenant-Id': tenantId.toLowerCase(),
177
+ 'X-Tenant-ID': tenantId,
178
+ 'X-Client-Id': clientId,
176
179
  Authorization: `Bearer ${cleanToken}`,
177
180
  },
178
181
  json: true,
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-digit",
3
- "version": "0.1.14",
3
+ "version": "0.1.15",
4
4
  "description": "DIGIT Platform nodes for n8n",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-digit",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "description": "DIGIT Platform nodes for n8n",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",