bitmovin-javascript
Advanced tools
Comparing version 2.33.0 to 2.34.0
@@ -14,2 +14,3 @@ import { HttpClient } from '../utils/types'; | ||
list: (limit: any, offset: any) => Promise<{}>; | ||
reorder: (licenseId: any, orderIndex: any) => Promise<{}>; | ||
}; | ||
@@ -28,3 +29,4 @@ declare const _default: (configuration: any) => ((licenseId: any) => { | ||
list: (limit: any, offset: any) => Promise<{}>; | ||
reorder: (licenseId: any, orderIndex: any) => Promise<{}>; | ||
}; | ||
export default _default; |
@@ -36,3 +36,13 @@ "use strict"; | ||
}; | ||
var resource = Object.assign(resourceDetails, { create: create, list: list }); | ||
var reorder = function (licenseId, orderIndex) { | ||
var url = urljoin(configuration.apiBaseUrl, 'analytics/licenses', licenseId, 'changeorder'); | ||
var getParams = http_1.utils.buildGetParamString({ | ||
orderIndex: orderIndex | ||
}); | ||
if (getParams.length > 0) { | ||
url = urljoin(url, getParams); | ||
} | ||
return post(configuration, url); | ||
}; | ||
var resource = Object.assign(resourceDetails, { create: create, list: list, reorder: reorder }); | ||
return resource; | ||
@@ -39,0 +49,0 @@ }; |
@@ -49,3 +49,3 @@ "use strict"; | ||
internalConfig.apiBaseUrl = urljoin(internalConfig.protocol + '://' + internalConfig.host, internalConfig.basePath); | ||
internalConfig.httpHeaders = __assign({ 'Content-Type': 'application/json', 'X-Api-Key': internalConfig.apiKey, 'X-Api-Client': internalConfig.xApiClient, 'X-Api-Client-Version': "" + '2.33.0' }, internalConfig.additionalHeaders); | ||
internalConfig.httpHeaders = __assign({ 'Content-Type': 'application/json', 'X-Api-Key': internalConfig.apiKey, 'X-Api-Client': internalConfig.xApiClient, 'X-Api-Client-Version': "" + '2.34.0' }, internalConfig.additionalHeaders); | ||
if (internalConfig.tenantOrgId !== undefined) { | ||
@@ -52,0 +52,0 @@ internalConfig.httpHeaders['X-Tenant-Org-Id'] = internalConfig.tenantOrgId; |
{ | ||
"name": "bitmovin-javascript", | ||
"version": "2.33.0", | ||
"version": "2.34.0", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "browser": "./dist/bitmovin.browser.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
2381701
28728