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.
- package/dist/nodes/DIGIT.node.js +8 -5
- 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,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:
|
|
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,
|
package/dist/package.json
CHANGED