contentful-management 12.6.0 → 12.7.0

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.
@@ -11198,11 +11198,19 @@ var contentfulManagement = (function (exports) {
11198
11198
  return 'entries';
11199
11199
  case 'Workflow':
11200
11200
  return 'workflows';
11201
+ case 'Experience':
11202
+ return 'experiences';
11203
+ case 'Fragment':
11204
+ return 'fragments';
11205
+ case 'ComponentType':
11206
+ return 'component_types';
11207
+ case 'Template':
11208
+ return 'templates';
11201
11209
  }
11202
11210
  }
11203
11211
  /**
11204
- * Comments can be added to a content type, an entry, and a workflow. Workflow comments requires a version
11205
- * to be set as part of the URL path. Workflow comments only support `create` (with
11212
+ * Comments can be added to a content type, an entry, a workflow, or ExO entities. Workflow comments requires a version
11213
+ * to be set as part of the URL path for versioned operations. Workflow comments only support `create` (with
11206
11214
  * versionized URL) and `getMany` (without version). The API might support more methods
11207
11215
  * in the future with new use cases being discovered.
11208
11216
  */
@@ -14259,12 +14267,16 @@ var contentfulManagement = (function (exports) {
14259
14267
  * @internal
14260
14268
  */
14261
14269
  function createCommentApi(makeRequest) {
14262
- const getParams = (comment) => ({
14263
- spaceId: comment.sys.space.sys.id,
14264
- environmentId: comment.sys.environment.sys.id,
14265
- entryId: comment.sys.parentEntity.sys.id,
14266
- commentId: comment.sys.id,
14267
- });
14270
+ const getParams = (comment) => {
14271
+ const parentEntity = comment.sys.parentEntity;
14272
+ return {
14273
+ spaceId: comment.sys.space.sys.id,
14274
+ environmentId: comment.sys.environment.sys.id,
14275
+ commentId: comment.sys.id,
14276
+ parentEntityType: parentEntity.sys.linkType,
14277
+ parentEntityId: parentEntity.sys.id,
14278
+ };
14279
+ };
14268
14280
  return {
14269
14281
  update: async function () {
14270
14282
  const raw = this.toPlainObject();