@arrowsphere/api-client 3.75.0 → 3.75.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.
- package/CHANGELOG.md +5 -0
- package/build/licenses/licensesClient.js +16 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
4
4
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
5
5
|
|
|
6
|
+
## [3.75.1] - 2023-12-07
|
|
7
|
+
|
|
8
|
+
### Fixed
|
|
9
|
+
- Fixes get license conversion sku
|
|
10
|
+
|
|
6
11
|
## [3.75.0] - 2023-12-07
|
|
7
12
|
|
|
8
13
|
### Changed
|
|
@@ -312,11 +312,25 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
|
|
|
312
312
|
}
|
|
313
313
|
async getConversionSku(licenseReference, parameters = {}) {
|
|
314
314
|
this.path = `/${licenseReference}${this.GET_LICENSE_CONVERSION_SKU}`;
|
|
315
|
-
|
|
315
|
+
const response = await this.get(parameters);
|
|
316
|
+
//A workaround, the public api endpoint is not returning "data" in the payload
|
|
317
|
+
response[getResult_1.GetResultFields.COLUMN_DATA] = {
|
|
318
|
+
[licenseConversionSkuResult_1.LicenseConversionSkuFields.COLUMN_OFFERS]: licenseConversionSkuResult_1.LicenseConversionSkuFields.COLUMN_OFFERS in response
|
|
319
|
+
? response[licenseConversionSkuResult_1.LicenseConversionSkuFields.COLUMN_OFFERS]
|
|
320
|
+
: [],
|
|
321
|
+
};
|
|
322
|
+
return new getResult_1.GetResult(licenseConversionSkuResult_1.LicenseConversionSkuResult, response);
|
|
316
323
|
}
|
|
317
324
|
async getExistingConversionSku(licenseReference, parameters = {}) {
|
|
318
325
|
this.path = `/${licenseReference}${this.GET_LICENSE_EXISTING_CONVERSION_SKU}`;
|
|
319
|
-
|
|
326
|
+
const response = await this.get(parameters);
|
|
327
|
+
//A workaround, the public api endpoint is not returning "data" in the payload
|
|
328
|
+
response[getResult_1.GetResultFields.COLUMN_DATA] = {
|
|
329
|
+
[licenseConversionSkuResult_1.LicenseConversionSkuFields.COLUMN_OFFERS]: licenseConversionSkuResult_1.LicenseConversionSkuFields.COLUMN_OFFERS in response
|
|
330
|
+
? response[licenseConversionSkuResult_1.LicenseConversionSkuFields.COLUMN_OFFERS]
|
|
331
|
+
: [],
|
|
332
|
+
};
|
|
333
|
+
return new getResult_1.GetResult(licenseConversionSkuResult_1.LicenseConversionSkuResult, response);
|
|
320
334
|
}
|
|
321
335
|
createFilters(parameters, keyParent) {
|
|
322
336
|
let appropriateParameters;
|
package/package.json
CHANGED