@eo-sdk/client 8.16.31 → 8.16.32

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.
@@ -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.getContextPath() + "/prepare/" + id + "/content", { rendition: rendition, index: index });
3235
+ return Utils.buildUri(this.backend.getServiceBase() + "/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.getContextPath() + "/template/" + id + "/content", { rendition: rendition });
3279
+ return Utils.buildUri(this.backend.getServiceBase() + "/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 = "/prepare/" + preparedItemId + "/content.json?form=true&contentmeta=true";
3304
+ var uri = this.backend.getBaseWithContext(this.backend.getServiceBase()) + "/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.createPreparedItemPostUrl({
3341
+ uri = this.backend.getBaseWithContext(this.backend.getServiceBase()) + 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 = "/dms/" + referenceObject.id + "/contents?type=" + referenceObject.type.name;
3351
+ uri = this.backend.getBaseWithContext(this.backend.getServiceBase()) + "/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.createPreparedItemPostUrl({
3361
+ uri = this.backend.getBaseWithContext(this.backend.getServiceBase()) + 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