contensis-management-api
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0-beta.2
@@ -12,3 +12,7 @@ import { UrlBuilder } from 'contensis-core-api'; | ||
.toUrl(); | ||
return this.httpClient.request(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
@@ -19,4 +23,8 @@ list() { | ||
.toUrl(); | ||
return this.httpClient.request(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
} |
@@ -37,3 +37,7 @@ import { defaultMapperForLanguage, defaultMapperForLatestVersionStatus, UrlBuilder } from 'contensis-core-api'; | ||
.toUrl(); | ||
return this.httpClient.request(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
@@ -40,0 +44,0 @@ create(entry) { |
@@ -7,2 +7,6 @@ # Changelog | ||
## [1.0.0-beta.2] - 2019-11-28 | ||
### Added | ||
- content type and entries api bugfixes; | ||
## [1.0.0-beta.1] - 2019-11-28 | ||
@@ -9,0 +13,0 @@ ### Added |
@@ -14,3 +14,7 @@ "use strict"; | ||
.toUrl(); | ||
return this.httpClient.request(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
@@ -21,5 +25,9 @@ list() { | ||
.toUrl(); | ||
return this.httpClient.request(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
} | ||
exports.ContentTypeOperations = ContentTypeOperations; |
@@ -39,3 +39,7 @@ "use strict"; | ||
.toUrl(); | ||
return this.httpClient.request(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
@@ -42,0 +46,0 @@ create(entry) { |
{ | ||
"name": "contensis-management-api", | ||
"version": "1.0.0-beta.1", | ||
"version": "1.0.0-beta.2", | ||
"description": "Contensis Javascript Management API", | ||
@@ -5,0 +5,0 @@ "engines": { |
@@ -15,3 +15,7 @@ import { IContentTypeOperations, ContensisClient } from '../models'; | ||
return this.httpClient.request<ContentType>(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request<ContentType>(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
@@ -24,4 +28,9 @@ | ||
.toUrl(); | ||
return this.httpClient.request<ContentType[]>(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request<ContentType[]>(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
} |
@@ -6,3 +6,3 @@ import { | ||
ClientParams, defaultMapperForLanguage, defaultMapperForLatestVersionStatus, Entry, | ||
IHttpClient, isBrowser, isIE, MapperFn, PagedList, UrlBuilder | ||
IHttpClient, MapperFn, PagedList, UrlBuilder | ||
} from 'contensis-core-api'; | ||
@@ -50,3 +50,8 @@ | ||
.toUrl(); | ||
return this.httpClient.request<PagedList<Entry>>(url); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
return this.httpClient.request<PagedList<Entry>>(url, { | ||
headers: this.contensisClient.getHeaders() | ||
}); | ||
}); | ||
} | ||
@@ -90,2 +95,3 @@ | ||
.toUrl(); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
@@ -110,2 +116,3 @@ return this.httpClient.request<Entry>(url, { | ||
.toUrl(); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
@@ -152,2 +159,3 @@ return this.httpClient.request<void>(url, { | ||
.toUrl(); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
@@ -154,0 +162,0 @@ return this.httpClient.request<Entry>(url, { |
@@ -93,2 +93,3 @@ import { | ||
.toUrl(); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
@@ -117,2 +118,3 @@ return this.httpClient.request<Node>(url, { | ||
.toUrl(); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
@@ -137,2 +139,3 @@ return this.httpClient.request<Node>(url, { | ||
.toUrl(); | ||
return this.contensisClient.ensureAuthenticationToken().then(() => { | ||
@@ -139,0 +142,0 @@ return this.httpClient.request<void>(url, { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
370565
8870