@bitbar/cloud-api-client 1.4.0 → 1.4.2

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.
@@ -3,7 +3,6 @@ import { APIEntity } from './APIEntity';
3
3
  import { APIList } from './APIList';
4
4
  import { FilesQueryParams } from './class/FilesQueryParams';
5
5
  import { FileData, UploadObj, UserFile } from './models/UserFile';
6
- import FormData from 'form-data';
7
6
  export declare class APIListFiles extends APIList<UserFile, FilesQueryParams, FileData | FormData> {
8
7
  constructor(parent: APIEntity | API);
9
8
  upload(obj: UploadObj): this;
@@ -1,10 +1,5 @@
1
1
  import { CollectionQueryParams, QueryParams } from './HTTP';
2
2
  import { Role } from './Role';
3
- export declare enum MfaStatus {
4
- VERIFICATION_NEED = "VERIFICATION_NEED",
5
- DISABLED = "DISABLED",
6
- ENABLED = "ENABLED"
7
- }
8
3
  export declare enum UserStatus {
9
4
  INACTIVE = "INACTIVE",
10
5
  DISABLED = "DISABLED",
@@ -33,8 +28,6 @@ export type User = {
33
28
  lastLaunchedTestTime: number;
34
29
  lastLoginTime: number;
35
30
  lastName: string;
36
- mfaQRCodeUrl: string;
37
- mfaStatus: MfaStatus;
38
31
  organization: string;
39
32
  phone: string;
40
33
  registrationIP: string;
@@ -1,11 +1,11 @@
1
- /* @bitbar/cloud-api-client v1.4.0 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
1
+ /* @bitbar/cloud-api-client v1.4.2 | Copyright 2025 (c) SmartBear Software and contributors | .git/blob/master/LICENSE */
2
2
  (function (global, factory) {
3
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('axios'), require('@bitbar/finka'), require('qs'), require('node-abort-controller'), require('form-data')) :
4
- typeof define === 'function' && define.amd ? define(['exports', 'axios', '@bitbar/finka', 'qs', 'node-abort-controller', 'form-data'], factory) :
5
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global.axios, global["@bitbar/finka"], global.qs, global["node-abort-controller"], global["form-data"]));
6
- })(this, (function (exports, axios, finka, qs, nodeAbortController, FormData) { 'use strict';
3
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@bitbar/finka'), require('qs'), require('node-abort-controller')) :
4
+ typeof define === 'function' && define.amd ? define(['exports', '@bitbar/finka', 'qs', 'node-abort-controller'], factory) :
5
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["bitbar-cloud-api-client"] = {}, global["@bitbar/finka"], global.qs, global["node-abort-controller"]));
6
+ })(this, (function (exports, finka, qs, nodeAbortController) { 'use strict';
7
7
 
8
- var version = "1.4.0";
8
+ var version = "1.4.2";
9
9
 
10
10
  /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
@@ -1599,6 +1599,7 @@
1599
1599
  }
1600
1600
  nodeUpload(file) {
1601
1601
  const fs = require('fs');
1602
+ const FormData = require('form-data');
1602
1603
  const form = new FormData();
1603
1604
  form.append('file', fs.createReadStream(file.dir + '/' + file.filename), {
1604
1605
  filename: file.filename
@@ -1791,6 +1792,7 @@
1791
1792
  }
1792
1793
  }
1793
1794
 
1795
+ const axios = require('axios').default;
1794
1796
  if (globalThis.isNodeJs) {
1795
1797
  axios.defaults.headers.common['User-Agent'] = `Bitbar Cloud API Client for JavaScript v${version}`;
1796
1798
  }
@@ -2266,12 +2268,6 @@
2266
2268
  TestRunConfigFileAction["RUN_TEST"] = "RUN_TEST";
2267
2269
  })(exports.TestRunConfigFileAction || (exports.TestRunConfigFileAction = {}));
2268
2270
 
2269
- exports.MfaStatus = void 0;
2270
- (function (MfaStatus) {
2271
- MfaStatus["VERIFICATION_NEED"] = "VERIFICATION_NEED";
2272
- MfaStatus["DISABLED"] = "DISABLED";
2273
- MfaStatus["ENABLED"] = "ENABLED";
2274
- })(exports.MfaStatus || (exports.MfaStatus = {}));
2275
2271
  exports.UserStatus = void 0;
2276
2272
  (function (UserStatus) {
2277
2273
  UserStatus["INACTIVE"] = "INACTIVE";