n8n-nodes-digit 0.1.15 → 0.1.17
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/nodes/DIGIT.node.js +9 -6
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/nodes/DIGIT.node.js
CHANGED
|
@@ -154,7 +154,7 @@ class DIGIT {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
// ==================================================
|
|
157
|
-
// BOUNDARY
|
|
157
|
+
// BOUNDARY
|
|
158
158
|
// ==================================================
|
|
159
159
|
if (resource === 'boundary') {
|
|
160
160
|
const operation = this.getNodeParameter('boundaryOperation', 0);
|
|
@@ -162,23 +162,26 @@ 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
|
+
// EXACT gateway URL (same as curl)
|
|
169
|
+
const boundaryUrl = `${baseUrl}/boundary/v1`;
|
|
167
170
|
const apiResponse = await this.helpers.httpRequest({
|
|
168
171
|
method: 'GET',
|
|
169
|
-
url:
|
|
172
|
+
url: boundaryUrl,
|
|
170
173
|
qs: {
|
|
171
|
-
|
|
172
|
-
boundaryCodes: codes,
|
|
174
|
+
codes: codes,
|
|
173
175
|
},
|
|
174
176
|
headers: {
|
|
175
|
-
'X-Tenant-
|
|
177
|
+
'X-Tenant-ID': tenantId,
|
|
178
|
+
'X-Client-Id': clientId,
|
|
176
179
|
Authorization: `Bearer ${cleanToken}`,
|
|
177
180
|
},
|
|
178
181
|
json: true,
|
|
179
182
|
});
|
|
180
183
|
returnData.push({
|
|
181
|
-
json:
|
|
184
|
+
json: apiResponse,
|
|
182
185
|
});
|
|
183
186
|
}
|
|
184
187
|
return [returnData];
|
package/dist/package.json
CHANGED