@bitbar/cloud-api-client 1.0.12 → 1.0.13

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.
@@ -6,7 +6,7 @@ export declare class APIAdminResourceRunStandalone extends APIResource<AdminTest
6
6
  constructor(parent: APIAdminResource, id: number);
7
7
  abort(): APIResource<AdminTestRun, NoQueryParams, void>;
8
8
  changeBillable(billable: boolean): APIResource<AdminTestRun, RunChangeBillableParams, RunChangeBillableParams>;
9
- changePriority(priority: boolean): APIResource<AdminTestRun, RunChangePriorityParams, RunChangePriorityParams>;
9
+ changePriority(priority?: number): APIResource<AdminTestRun, RunChangePriorityParams, RunChangePriorityParams>;
10
10
  retry(ids?: Array<number>): APIResource<AdminTestRun, import("..").BuildLogsData, import("..").BuildLogsData>;
11
11
  }
12
12
  export default APIAdminResourceRunStandalone;
@@ -27,5 +27,5 @@ export interface RunChangeBillableParams extends QueryParams {
27
27
  billable: boolean;
28
28
  }
29
29
  export interface RunChangePriorityParams extends QueryParams {
30
- priority: boolean;
30
+ priority: number;
31
31
  }
@@ -1,4 +1,4 @@
1
- /* @bitbar/cloud-api-client v1.0.12 | Copyright 2023 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.0.13 | Copyright 2023 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('axios'), require('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'axios', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
@@ -10,7 +10,7 @@
10
10
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
11
11
  var finka__default = /*#__PURE__*/_interopDefaultLegacy(finka);
12
12
 
13
- var version = "1.0.12";
13
+ var version = "1.0.13";
14
14
 
15
15
  /******************************************************************************
16
16
  Copyright (c) Microsoft Corporation.
@@ -834,9 +834,13 @@
834
834
  });
835
835
  }
836
836
  changePriority(priority) {
837
- return new APIResource(this).push('changepriority').post().params({
838
- priority
839
- });
837
+ const resource = new APIResource(this).push('changepriority');
838
+ if (priority) {
839
+ resource.post().data({
840
+ priority
841
+ });
842
+ }
843
+ return resource;
840
844
  }
841
845
  retry(ids) {
842
846
  return postDeviceRunIds(this, 'retry', ids).setRequestConfig({