@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.
- package/dist/api/Channel.d.ts +1 -1
- package/dist/api/ContentDefinitionSchema.d.ts +2 -2
- package/dist/api/ContentRepository.d.ts +1 -1
- package/dist/api/MediaGallery.d.ts +1 -1
- package/dist/api/Space.d.ts +17 -0
- package/lib/api/Channel.ts +1 -1
- package/lib/api/ContentDefinitionSchema.ts +2 -2
- package/lib/api/ContentRepository.ts +1 -1
- package/lib/api/MediaGallery.ts +1 -1
- package/lib/api/Space.ts +19 -0
- package/package.json +2 -2
- package/dist/.DS_Store +0 -0
package/dist/api/Channel.d.ts
CHANGED
|
@@ -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
|
*/
|
package/dist/api/Space.d.ts
CHANGED
|
@@ -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;
|
package/lib/api/Channel.ts
CHANGED
|
@@ -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
|
package/lib/api/MediaGallery.ts
CHANGED
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.
|
|
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": "
|
|
37
|
+
"gitHead": "4a94501008faed8c2f9bb4568f6e502ff1e5d54a"
|
|
38
38
|
}
|
package/dist/.DS_Store
DELETED
|
Binary file
|