btrz-api-client 8.68.4 → 8.69.0
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.
|
@@ -223,6 +223,7 @@ function manifestFactory(_ref) {
|
|
|
223
223
|
* @param {string} [opts.token] - API key
|
|
224
224
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
225
225
|
* @param {Object} opts.data - Request body
|
|
226
|
+
* @param {"sync" | "async"} opts.mode - Call mode. "sync" by default
|
|
226
227
|
* @param {Object} [opts.headers] - Optional headers
|
|
227
228
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
228
229
|
*/
|
|
@@ -230,10 +231,17 @@ function manifestFactory(_ref) {
|
|
|
230
231
|
var token = _ref7.token,
|
|
231
232
|
jwtToken = _ref7.jwtToken,
|
|
232
233
|
data = _ref7.data,
|
|
233
|
-
headers = _ref7.headers
|
|
234
|
+
headers = _ref7.headers,
|
|
235
|
+
mode = _ref7.mode;
|
|
236
|
+
|
|
237
|
+
var params = { mode: "sync" };
|
|
238
|
+
if (mode) {
|
|
239
|
+
params.mode = mode;
|
|
240
|
+
}
|
|
234
241
|
|
|
235
242
|
return client({
|
|
236
243
|
url: "/manifests/status",
|
|
244
|
+
params: params,
|
|
237
245
|
method: "put",
|
|
238
246
|
headers: authorizationHeaders({ token: token, jwtToken: jwtToken, internalAuthTokenProvider: internalAuthTokenProvider, headers: headers }),
|
|
239
247
|
data: data
|
package/package.json
CHANGED
|
@@ -188,14 +188,21 @@ function manifestFactory({
|
|
|
188
188
|
* @param {string} [opts.token] - API key
|
|
189
189
|
* @param {string} [opts.jwtToken] - JWT or internal auth symbol
|
|
190
190
|
* @param {Object} opts.data - Request body
|
|
191
|
+
* @param {"sync" | "async"} opts.mode - Call mode. "sync" by default
|
|
191
192
|
* @param {Object} [opts.headers] - Optional headers
|
|
192
193
|
* @returns {Promise<import("axios").AxiosResponse>}
|
|
193
194
|
*/
|
|
194
195
|
function statusBulkUpdate({
|
|
195
|
-
token, jwtToken, data, headers
|
|
196
|
+
token, jwtToken, data, headers, mode
|
|
196
197
|
}) {
|
|
198
|
+
const params = {mode: "sync"};
|
|
199
|
+
if (mode) {
|
|
200
|
+
params.mode = mode;
|
|
201
|
+
}
|
|
202
|
+
|
|
197
203
|
return client({
|
|
198
204
|
url: "/manifests/status",
|
|
205
|
+
params,
|
|
199
206
|
method: "put",
|
|
200
207
|
headers: authorizationHeaders({token, jwtToken, internalAuthTokenProvider, headers}),
|
|
201
208
|
data
|