@contentchef/contentchef-types 2.5.6 → 2.5.8

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.
@@ -18,7 +18,7 @@ export declare type CreatePublishingChannelRequest = {
18
18
  /**
19
19
  * The publishing channel color
20
20
  */
21
- color: string;
21
+ color?: string;
22
22
  };
23
23
  /**
24
24
  * This type represent the model of a publishing channel
@@ -421,7 +421,7 @@ export declare type MediaSchemaType = TranslatableSchemaType<SchemaType<SchemaTy
421
421
  * This type represent a number field schema type
422
422
  * A number field can be indexed and searched when requesting the content
423
423
  */
424
- export declare type NumberSchemaType = IndexableSchemaType<SchemaTypeIds.NUMBER, NumberFieldConstraints>;
424
+ export declare type NumberSchemaType = TranslatableSchemaType<IndexableSchemaType<SchemaTypeIds.NUMBER, NumberFieldConstraints>>;
425
425
  /**
426
426
  * This type represent a boolean field schema type
427
427
  * A boolean field can be indexed and searched when requesting the content
@@ -465,7 +465,7 @@ export declare type IndexableSchemaTypes = TextSchemaType | LongTextSchemaType |
465
465
  /**
466
466
  * This are all the fields that can be localized
467
467
  */
468
- export declare type TranslatableSchemaTypes = TextSchemaType | LongTextSchemaType | CloudinaryPublicIdSchemaType | CloudinaryImageSchemaType | CloudinaryVideoSchemaType | CloudinaryRawSchemaType | MediaSchemaType;
468
+ export declare type TranslatableSchemaTypes = NumberSchemaType | TextSchemaType | LongTextSchemaType | CloudinaryPublicIdSchemaType | CloudinaryImageSchemaType | CloudinaryVideoSchemaType | CloudinaryRawSchemaType | MediaSchemaType;
469
469
  /**
470
470
  * This type group all the schema types of a content definition that are not indexable
471
471
  */
@@ -102,7 +102,7 @@ export declare type CreateContentRepositoryRequest = {
102
102
  /**
103
103
  * The content repository color
104
104
  */
105
- color: string;
105
+ color?: string;
106
106
  /**
107
107
  * The content repository description
108
108
  */
@@ -191,7 +191,7 @@ export declare type CreateMediaGalleryRequest = {
191
191
  /**
192
192
  * The color of the media gallery
193
193
  */
194
- color: string;
194
+ color?: string;
195
195
  /**
196
196
  * This description of the media gallery
197
197
  */
@@ -162,6 +162,10 @@ export declare type SpaceLocale = {
162
162
  * List of supported locales (default locale is included)
163
163
  */
164
164
  locales: string[];
165
+ /**
166
+ * Fallback locale (defaults to 'en')
167
+ */
168
+ fallbackLocale: string;
165
169
  };
166
170
  /**
167
171
  * Return type of `getSpaceLocale`
@@ -206,3 +210,16 @@ export declare type UpdateSpaceDefaultLocaleRequest = {
206
210
  * Return type of `updateSpaceDefaultLocale`
207
211
  */
208
212
  export declare type UpdateSpaceDefaultLocaleResponse = SpaceLocale;
213
+ /**
214
+ * Request type to update space's fallback locale
215
+ */
216
+ export declare type UpdateSpaceFallbackLocaleRequest = {
217
+ /**
218
+ * Locale to update to space's fallback locale
219
+ */
220
+ locale: string;
221
+ };
222
+ /**
223
+ * Return type of `updateSpacefallbackLocale`
224
+ */
225
+ export declare type UpdateSpaceFallbackLocaleResponse = SpaceLocale;
@@ -20,7 +20,7 @@ export type CreatePublishingChannelRequest = {
20
20
  /**
21
21
  * The publishing channel color
22
22
  */
23
- color: string;
23
+ color?: string;
24
24
  };
25
25
 
26
26
  /**
@@ -459,7 +459,7 @@ export type MediaSchemaType = TranslatableSchemaType<SchemaType<SchemaTypeIds.ME
459
459
  * This type represent a number field schema type
460
460
  * A number field can be indexed and searched when requesting the content
461
461
  */
462
- export type NumberSchemaType = IndexableSchemaType<SchemaTypeIds.NUMBER, NumberFieldConstraints>;
462
+ export type NumberSchemaType = TranslatableSchemaType<IndexableSchemaType<SchemaTypeIds.NUMBER, NumberFieldConstraints>>;
463
463
  /**
464
464
  * This type represent a boolean field schema type
465
465
  * A boolean field can be indexed and searched when requesting the content
@@ -510,7 +510,7 @@ export type IndexableSchemaTypes = TextSchemaType | LongTextSchemaType | LinkedC
510
510
  /**
511
511
  * This are all the fields that can be localized
512
512
  */
513
- export type TranslatableSchemaTypes = TextSchemaType | LongTextSchemaType | CloudinaryPublicIdSchemaType | CloudinaryImageSchemaType | CloudinaryVideoSchemaType | CloudinaryRawSchemaType | MediaSchemaType;
513
+ export type TranslatableSchemaTypes = NumberSchemaType | TextSchemaType | LongTextSchemaType | CloudinaryPublicIdSchemaType | CloudinaryImageSchemaType | CloudinaryVideoSchemaType | CloudinaryRawSchemaType | MediaSchemaType;
514
514
 
515
515
  /**
516
516
  * This type group all the schema types of a content definition that are not indexable
@@ -109,7 +109,7 @@ export type CreateContentRepositoryRequest = {
109
109
  /**
110
110
  * The content repository color
111
111
  */
112
- color: string;
112
+ color?: string;
113
113
  /**
114
114
  * The content repository description
115
115
  */
@@ -202,7 +202,7 @@ export type CreateMediaGalleryRequest = {
202
202
  /**
203
203
  * The color of the media gallery
204
204
  */
205
- color: string;
205
+ color?: string;
206
206
  /**
207
207
  * This description of the media gallery
208
208
  */
package/lib/api/Space.ts CHANGED
@@ -173,6 +173,11 @@ export type SpaceLocale = {
173
173
  * List of supported locales (default locale is included)
174
174
  */
175
175
  locales: string[];
176
+
177
+ /**
178
+ * Fallback locale (defaults to 'en')
179
+ */
180
+ fallbackLocale: string;
176
181
  }
177
182
 
178
183
  /**
@@ -220,3 +225,17 @@ export type UpdateSpaceDefaultLocaleRequest = {
220
225
  * Return type of `updateSpaceDefaultLocale`
221
226
  */
222
227
  export type UpdateSpaceDefaultLocaleResponse = SpaceLocale;
228
+
229
+ /**
230
+ * Request type to update space's fallback locale
231
+ */
232
+ export type UpdateSpaceFallbackLocaleRequest = {
233
+ /**
234
+ * Locale to update to space's fallback locale
235
+ */
236
+ locale: string;
237
+ }
238
+ /**
239
+ * Return type of `updateSpacefallbackLocale`
240
+ */
241
+ export type UpdateSpaceFallbackLocaleResponse = SpaceLocale;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentchef/contentchef-types",
3
- "version": "2.5.6",
3
+ "version": "2.5.8",
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",
@@ -34,5 +34,5 @@
34
34
  "devDependencies": {
35
35
  "typescript": "^4.0.5"
36
36
  },
37
- "gitHead": "abbd192cd0a8e8de0dde6b886c558d0133ce3056"
37
+ "gitHead": "4a94501008faed8c2f9bb4568f6e502ff1e5d54a"
38
38
  }
package/dist/.DS_Store DELETED
Binary file