@eo-sdk/client 8.16.32 → 8.16.33
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/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js +6 -6
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.js.map +1 -1
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js +2 -2
- package/bundles/eo-sdk-client-projects-eo-sdk-core.umd.min.js.map +1 -1
- package/bundles/eo-sdk-client.umd.js +2 -2
- package/bundles/eo-sdk-client.umd.js.map +1 -1
- package/bundles/eo-sdk-client.umd.min.js +1 -1
- package/bundles/eo-sdk-client.umd.min.js.map +1 -1
- package/esm2015/app/eo-client/about-state/about-state.component.js +3 -3
- package/esm2015/projects/eo-sdk/core/lib/service/prepare/prepare.service.js +7 -7
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js +6 -6
- package/fesm2015/eo-sdk-client-projects-eo-sdk-core.js.map +1 -1
- package/fesm2015/eo-sdk-client.js +2 -2
- package/fesm2015/eo-sdk-client.js.map +1 -1
- package/package.json +2 -2
- package/projects/eo-sdk/core/package.json +1 -1
|
@@ -3232,7 +3232,7 @@
|
|
|
3232
3232
|
* @returns string Preview uri
|
|
3233
3233
|
*/
|
|
3234
3234
|
PrepareService.prototype.getPreviewUri = function (id, index, rendition) {
|
|
3235
|
-
return Utils.buildUri(this.backend.
|
|
3235
|
+
return Utils.buildUri(this.backend.getContextPath() + "/prepare/" + id + "/content", { rendition: rendition, index: index });
|
|
3236
3236
|
};
|
|
3237
3237
|
/**
|
|
3238
3238
|
* Updates the prepared items target object type.
|
|
@@ -3276,7 +3276,7 @@
|
|
|
3276
3276
|
* @returns string The template preview url.
|
|
3277
3277
|
*/
|
|
3278
3278
|
PrepareService.prototype.getTemplatePreviewUri = function (id, rendition) {
|
|
3279
|
-
return Utils.buildUri(this.backend.
|
|
3279
|
+
return Utils.buildUri(this.backend.getContextPath() + "/template/" + id + "/content", { rendition: rendition });
|
|
3280
3280
|
};
|
|
3281
3281
|
/**
|
|
3282
3282
|
* Commit a prepared item. This will create an actual dms object.
|
|
@@ -3301,7 +3301,7 @@
|
|
|
3301
3301
|
* @returns Observable<any>
|
|
3302
3302
|
*/
|
|
3303
3303
|
PrepareService.prototype.uploadContent = function (preparedItemId, file) {
|
|
3304
|
-
var uri =
|
|
3304
|
+
var uri = "/prepare/" + preparedItemId + "/content.json?form=true&contentmeta=true";
|
|
3305
3305
|
return this.uploadService
|
|
3306
3306
|
.upload(uri, [file])
|
|
3307
3307
|
.pipe(
|
|
@@ -3338,7 +3338,7 @@
|
|
|
3338
3338
|
*
|
|
3339
3339
|
* @type string
|
|
3340
3340
|
*/
|
|
3341
|
-
uri = this.
|
|
3341
|
+
uri = this.createPreparedItemPostUrl({
|
|
3342
3342
|
parentId: null,
|
|
3343
3343
|
createMany: !useBatchUpload
|
|
3344
3344
|
});
|
|
@@ -3348,7 +3348,7 @@
|
|
|
3348
3348
|
* upload to dms object, means adding or replacing content file
|
|
3349
3349
|
*/
|
|
3350
3350
|
var referenceObject = uploadTarget.referenceObject;
|
|
3351
|
-
uri =
|
|
3351
|
+
uri = "/dms/" + referenceObject.id + "/contents?type=" + referenceObject.type.name;
|
|
3352
3352
|
}
|
|
3353
3353
|
else if (uploadTarget.type === UploadTarget.CONTEXT || uploadTarget.type === UploadTarget.CONTEXT_TREE) {
|
|
3354
3354
|
/**
|
|
@@ -3358,7 +3358,7 @@
|
|
|
3358
3358
|
*
|
|
3359
3359
|
* @type string
|
|
3360
3360
|
*/
|
|
3361
|
-
uri = this.
|
|
3361
|
+
uri = this.createPreparedItemPostUrl({
|
|
3362
3362
|
parentId: uploadTarget.referenceObject.id,
|
|
3363
3363
|
createMany: !useBatchUpload,
|
|
3364
3364
|
childType: uploadTarget.subFolder && uploadTarget.subFolder.data.type ? uploadTarget.subFolder.data.type : null
|