@contentchef/contentchef-types 2.6.0 → 2.7.0-alpha.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.
@@ -166,6 +166,10 @@ export type SpaceLocale = {
166
166
  * Fallback locale (defaults to 'en')
167
167
  */
168
168
  fallbackLocale: string;
169
+ /**
170
+ * List of locales that are enabled for publishing
171
+ */
172
+ publishingLocales?: string[];
169
173
  };
170
174
  /**
171
175
  * Return type of `getSpaceLocale`
@@ -223,3 +227,16 @@ export type UpdateSpaceFallbackLocaleRequest = {
223
227
  * Return type of `updateSpacefallbackLocale`
224
228
  */
225
229
  export type UpdateSpaceFallbackLocaleResponse = SpaceLocale;
230
+ /**
231
+ * Request type to update space's publishing locales
232
+ */
233
+ export type UpdateSpacePublishingLocalesRequest = {
234
+ /**
235
+ * Locales to enable for publishing (must be a subset of space's supported locales)
236
+ */
237
+ publishingLocales: string[];
238
+ };
239
+ /**
240
+ * Return type of `updateSpacePublishingLocales`
241
+ */
242
+ export type UpdateSpacePublishingLocalesResponse = SpaceLocale;
package/lib/api/Space.ts CHANGED
@@ -178,6 +178,11 @@ export type SpaceLocale = {
178
178
  * Fallback locale (defaults to 'en')
179
179
  */
180
180
  fallbackLocale: string;
181
+
182
+ /**
183
+ * List of locales that are enabled for publishing
184
+ */
185
+ publishingLocales?: string[];
181
186
  }
182
187
 
183
188
  /**
@@ -239,3 +244,17 @@ export type UpdateSpaceDefaultLocaleResponse = SpaceLocale;
239
244
  * Return type of `updateSpacefallbackLocale`
240
245
  */
241
246
  export type UpdateSpaceFallbackLocaleResponse = SpaceLocale;
247
+
248
+ /**
249
+ * Request type to update space's publishing locales
250
+ */
251
+ export type UpdateSpacePublishingLocalesRequest = {
252
+ /**
253
+ * Locales to enable for publishing (must be a subset of space's supported locales)
254
+ */
255
+ publishingLocales: string[];
256
+ }
257
+ /**
258
+ * Return type of `updateSpacePublishingLocales`
259
+ */
260
+ export type UpdateSpacePublishingLocalesResponse = SpaceLocale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentchef/contentchef-types",
3
- "version": "2.6.0",
3
+ "version": "2.7.0-alpha.0",
4
4
  "description": "ContentChef types",
5
5
  "author": "PierpaoloIannone <piannone@byte-code.com>",
6
6
  "homepage": "https://github.com/ContentChef/contentchef-management-js-client#readme",