@unito/integrations-platform-client 1.1.8 → 1.1.9
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/src/api.d.ts +39 -0
- package/dist/src/api.js +17 -0
- package/dist/src/index.cjs +18 -0
- package/package.json +1 -1
package/dist/src/api.d.ts
CHANGED
|
@@ -1123,6 +1123,45 @@ export declare function deleteProxyGraph(xUnitoCredentialId: string, path: strin
|
|
|
1123
1123
|
status: 500;
|
|
1124
1124
|
data: Error;
|
|
1125
1125
|
}>>;
|
|
1126
|
+
/**
|
|
1127
|
+
* Call an integration's graph with multipart/form-data
|
|
1128
|
+
*/
|
|
1129
|
+
export declare function postProxyGraphMultipart(xUnitoCredentialId: string, path: string, body?: {
|
|
1130
|
+
[key: string]: any;
|
|
1131
|
+
}, { xUnitoCorrelationId, xUnitoAdditionalLoggingContext, }?: {
|
|
1132
|
+
xUnitoCorrelationId?: string;
|
|
1133
|
+
xUnitoAdditionalLoggingContext?: string;
|
|
1134
|
+
}, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
|
|
1135
|
+
status: 200;
|
|
1136
|
+
data: object | any;
|
|
1137
|
+
} | {
|
|
1138
|
+
status: 400;
|
|
1139
|
+
data: Error;
|
|
1140
|
+
} | {
|
|
1141
|
+
status: 401;
|
|
1142
|
+
data: Error;
|
|
1143
|
+
} | {
|
|
1144
|
+
status: 403;
|
|
1145
|
+
data: Error;
|
|
1146
|
+
} | {
|
|
1147
|
+
status: 404;
|
|
1148
|
+
data: Error;
|
|
1149
|
+
} | {
|
|
1150
|
+
status: 406;
|
|
1151
|
+
data: Error;
|
|
1152
|
+
} | {
|
|
1153
|
+
status: 410;
|
|
1154
|
+
data: Error;
|
|
1155
|
+
} | {
|
|
1156
|
+
status: 422;
|
|
1157
|
+
data: Error;
|
|
1158
|
+
} | {
|
|
1159
|
+
status: 423;
|
|
1160
|
+
data: Error;
|
|
1161
|
+
} | {
|
|
1162
|
+
status: 500;
|
|
1163
|
+
data: Error;
|
|
1164
|
+
}>>;
|
|
1126
1165
|
/**
|
|
1127
1166
|
* Get all the users
|
|
1128
1167
|
*/
|
package/dist/src/api.js
CHANGED
|
@@ -340,6 +340,23 @@ export function deleteProxyGraph(xUnitoCredentialId, path, { xUnitoCorrelationId
|
|
|
340
340
|
}),
|
|
341
341
|
});
|
|
342
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* Call an integration's graph with multipart/form-data
|
|
345
|
+
*/
|
|
346
|
+
export function postProxyGraphMultipart(xUnitoCredentialId, path, body, { xUnitoCorrelationId, xUnitoAdditionalLoggingContext, } = {}, opts) {
|
|
347
|
+
return oazapfts.fetchJson(`/proxy/graph/multipart${QS.query(QS.explode({
|
|
348
|
+
path,
|
|
349
|
+
}))}`, oazapfts.multipart({
|
|
350
|
+
...opts,
|
|
351
|
+
method: 'POST',
|
|
352
|
+
body,
|
|
353
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
354
|
+
'X-Unito-Credential-Id': xUnitoCredentialId,
|
|
355
|
+
'X-Unito-Correlation-Id': xUnitoCorrelationId,
|
|
356
|
+
'X-Unito-Additional-Logging-Context': xUnitoAdditionalLoggingContext,
|
|
357
|
+
}),
|
|
358
|
+
}));
|
|
359
|
+
}
|
|
343
360
|
/**
|
|
344
361
|
* Get all the users
|
|
345
362
|
*/
|
package/dist/src/index.cjs
CHANGED
|
@@ -363,6 +363,23 @@ function deleteProxyGraph(xUnitoCredentialId, path, { xUnitoCorrelationId, xUnit
|
|
|
363
363
|
}),
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
|
+
/**
|
|
367
|
+
* Call an integration's graph with multipart/form-data
|
|
368
|
+
*/
|
|
369
|
+
function postProxyGraphMultipart(xUnitoCredentialId, path, body, { xUnitoCorrelationId, xUnitoAdditionalLoggingContext, } = {}, opts) {
|
|
370
|
+
return oazapfts$1.fetchJson(`/proxy/graph/multipart${QS__namespace.query(QS__namespace.explode({
|
|
371
|
+
path,
|
|
372
|
+
}))}`, oazapfts$1.multipart({
|
|
373
|
+
...opts,
|
|
374
|
+
method: 'POST',
|
|
375
|
+
body,
|
|
376
|
+
headers: oazapfts$1.mergeHeaders(opts?.headers, {
|
|
377
|
+
'X-Unito-Credential-Id': xUnitoCredentialId,
|
|
378
|
+
'X-Unito-Correlation-Id': xUnitoCorrelationId,
|
|
379
|
+
'X-Unito-Additional-Logging-Context': xUnitoAdditionalLoggingContext,
|
|
380
|
+
}),
|
|
381
|
+
}));
|
|
382
|
+
}
|
|
366
383
|
/**
|
|
367
384
|
* Get all the users
|
|
368
385
|
*/
|
|
@@ -639,6 +656,7 @@ exports.patchProxyGraph = patchProxyGraph;
|
|
|
639
656
|
exports.patchProxyGraphItem = patchProxyGraphItem;
|
|
640
657
|
exports.postProxyGraph = postProxyGraph;
|
|
641
658
|
exports.postProxyGraphCollection = postProxyGraphCollection;
|
|
659
|
+
exports.postProxyGraphMultipart = postProxyGraphMultipart;
|
|
642
660
|
exports.postTrack = postTrack;
|
|
643
661
|
exports.publishIntegration = publishIntegration;
|
|
644
662
|
exports.reencryptData = reencryptData;
|