contentful-management 12.4.0 → 12.5.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.
@@ -12658,9 +12658,11 @@ var contentfulManagement = (function (exports) {
12658
12658
  getManyForEntry: getManyForEntry
12659
12659
  });
12660
12660
 
12661
- const get$c = (http, params) => get$14(http, `/spaces/${params.spaceId}`);
12661
+ const get$c = (http, params) => get$14(http, `/spaces/${params.spaceId}`, {
12662
+ params: params.include ? { include: params.include } : undefined,
12663
+ });
12662
12664
  const getMany$b = (http, params) => get$14(http, `/spaces`, {
12663
- params: params.query,
12665
+ params: { ...params.query, ...(params.include ? { include: params.include } : {}) },
12664
12666
  headers: params.organizationId
12665
12667
  ? { 'X-Contentful-Organization': params.organizationId }
12666
12668
  : undefined,
@@ -23104,14 +23106,18 @@ var contentfulManagement = (function (exports) {
23104
23106
  * ```
23105
23107
  */
23106
23108
  getSpaces: function getSpaces(query = {}, organizationId) {
23107
- const { cursor, ...rest } = query;
23109
+ const { cursor, include, ...rest } = query;
23108
23110
  const normalizedQuery = cursor
23109
23111
  ? normalizeCursorPaginationParameters(rest)
23110
23112
  : rest;
23111
23113
  return makeRequest({
23112
23114
  entityType: 'Space',
23113
23115
  action: 'getMany',
23114
- params: { query: createRequestConfig({ query: normalizedQuery }).params, organizationId },
23116
+ params: {
23117
+ query: createRequestConfig({ query: normalizedQuery }).params,
23118
+ organizationId,
23119
+ include,
23120
+ },
23115
23121
  }).then((data) =>
23116
23122
  // makeRequest returns the union type; cursor determines which branch is present at runtime so the casts are required
23117
23123
  cursor
@@ -23134,11 +23140,11 @@ var contentfulManagement = (function (exports) {
23134
23140
  * .catch(console.error)
23135
23141
  * ```
23136
23142
  */
23137
- getSpace: function getSpace(spaceId) {
23143
+ getSpace: function getSpace(spaceId, { include } = {}) {
23138
23144
  return makeRequest({
23139
23145
  entityType: 'Space',
23140
23146
  action: 'get',
23141
- params: { spaceId },
23147
+ params: { spaceId, include },
23142
23148
  }).then((data) => wrapSpace(makeRequest, data));
23143
23149
  },
23144
23150
  /**