@aurigma/axios-design-atoms-api-client 2.31.5 → 2.32.1

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.
@@ -33,7 +33,13 @@ class ApiClientBase {
33
33
  else {
34
34
  options.headers = { ...options.headers, 'X-API-Key': this.configuration.apiKey };
35
35
  }
36
- options = { ...options, transformResponse: (res) => res, responseType: 'json' };
36
+ options = { ...options, transformResponse: (res) => res };
37
+ if (!options.responseType) {
38
+ options.responseType = 'json';
39
+ }
40
+ if (options.responseType == 'blob') {
41
+ options.responseType = 'arraybuffer';
42
+ }
37
43
  return options;
38
44
  }
39
45
  getBaseUrl(defultUrl) {
@@ -50,7 +56,7 @@ class BuildInfoApiClient extends ApiClientBase {
50
56
  jsonParseReviver = undefined;
51
57
  constructor(configuration, baseUrl, instance) {
52
58
  super(configuration);
53
- this.instance = instance ? instance : axios_1.default.create();
59
+ this.instance = instance ? instance : axios_1.create();
54
60
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
55
61
  }
56
62
  /**
@@ -172,7 +178,7 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
172
178
  jsonParseReviver = undefined;
173
179
  constructor(configuration, baseUrl, instance) {
174
180
  super(configuration);
175
- this.instance = instance ? instance : axios_1.default.create();
181
+ this.instance = instance ? instance : axios_1.create();
176
182
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
177
183
  }
178
184
  /**
@@ -1754,7 +1760,7 @@ class DesignAtomsImagesApiClient extends ApiClientBase {
1754
1760
  jsonParseReviver = undefined;
1755
1761
  constructor(configuration, baseUrl, instance) {
1756
1762
  super(configuration);
1757
- this.instance = instance ? instance : axios_1.default.create();
1763
+ this.instance = instance ? instance : axios_1.create();
1758
1764
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
1759
1765
  }
1760
1766
  /**
@@ -1844,7 +1850,7 @@ class DesignAtomsServiceApiClient extends ApiClientBase {
1844
1850
  jsonParseReviver = undefined;
1845
1851
  constructor(configuration, baseUrl, instance) {
1846
1852
  super(configuration);
1847
- this.instance = instance ? instance : axios_1.default.create();
1853
+ this.instance = instance ? instance : axios_1.create();
1848
1854
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
1849
1855
  }
1850
1856
  /**
@@ -3496,7 +3502,7 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
3496
3502
  jsonParseReviver = undefined;
3497
3503
  constructor(configuration, baseUrl, instance) {
3498
3504
  super(configuration);
3499
- this.instance = instance ? instance : axios_1.default.create();
3505
+ this.instance = instance ? instance : axios_1.create();
3500
3506
  this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
3501
3507
  }
3502
3508
  /**