@contentchef/contentchef-types 10.1.0-alpha.2 → 10.1.0-alpha.4
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/Content.d.ts +28 -0
- package/dist/api/PublishedContent.d.ts +79 -2
- package/lib/api/Content.ts +28 -0
- package/lib/api/PublishedContent.ts +81 -2
- package/package.json +2 -2
package/dist/api/Content.d.ts
CHANGED
|
@@ -298,6 +298,34 @@ export type ListContentsFilters = {
|
|
|
298
298
|
* This filter is used to search contents that has the tags inserted
|
|
299
299
|
*/
|
|
300
300
|
tags?: string[];
|
|
301
|
+
/**
|
|
302
|
+
* This filter is used to search contents whose author matches (case-insensitively) one of the full names or emails inserted
|
|
303
|
+
*/
|
|
304
|
+
authors?: string[];
|
|
305
|
+
/**
|
|
306
|
+
* This filter is used to search contents whose locale, or one of their translation locales, matches (case-insensitively) one of the locales inserted
|
|
307
|
+
*/
|
|
308
|
+
locales?: string[];
|
|
309
|
+
/**
|
|
310
|
+
* This filter is used to search contents published in channels matching (case-insensitively) one of the mnemonic ids or names inserted
|
|
311
|
+
*/
|
|
312
|
+
channels?: string[];
|
|
313
|
+
/**
|
|
314
|
+
* This filter is used to search contents with an online date starting from the ISO 8601 date inserted
|
|
315
|
+
*/
|
|
316
|
+
onlineDateFrom?: string;
|
|
317
|
+
/**
|
|
318
|
+
* This filter is used to search contents with an online date up to the ISO 8601 date inserted
|
|
319
|
+
*/
|
|
320
|
+
onlineDateTo?: string;
|
|
321
|
+
/**
|
|
322
|
+
* This filter is used to search contents with an offline date starting from the ISO 8601 date inserted
|
|
323
|
+
*/
|
|
324
|
+
offlineDateFrom?: string;
|
|
325
|
+
/**
|
|
326
|
+
* This filter is used to search contents with an offline date up to the ISO 8601 date inserted
|
|
327
|
+
*/
|
|
328
|
+
offlineDateTo?: string;
|
|
301
329
|
/**
|
|
302
330
|
* This filter is used to search contents in the content status inserted
|
|
303
331
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentId } from "./Content";
|
|
1
|
+
import { ContentId, LocalizationSettings } from "./Content";
|
|
2
2
|
import { AuthorResponse } from "./Author";
|
|
3
3
|
import { ContentRepositoryId } from "./ContentRepository";
|
|
4
4
|
import { ContentTranslationStatus } from "./ContentTranslation";
|
|
@@ -318,12 +318,89 @@ export type ListReleaseItemsV2Request = {
|
|
|
318
318
|
*/
|
|
319
319
|
filters?: ReleaseItemFilters;
|
|
320
320
|
};
|
|
321
|
+
/**
|
|
322
|
+
* This type represent a single locale variant of a content inside a release item group
|
|
323
|
+
*/
|
|
324
|
+
export type ReleaseItemVariant = {
|
|
325
|
+
/**
|
|
326
|
+
* The release item unique id
|
|
327
|
+
*/
|
|
328
|
+
id: ReleaseItemId;
|
|
329
|
+
/**
|
|
330
|
+
* The variant content locale
|
|
331
|
+
*/
|
|
332
|
+
contentLocale: string | null;
|
|
333
|
+
/**
|
|
334
|
+
* Mark if the release item is selected to be published
|
|
335
|
+
*/
|
|
336
|
+
toPublish: boolean;
|
|
337
|
+
/**
|
|
338
|
+
* Status of the ContentTranslation (defined if content is derived from a translation)
|
|
339
|
+
*/
|
|
340
|
+
translationStatus: ContentTranslationStatus | null;
|
|
341
|
+
/**
|
|
342
|
+
* The localization settings of the related content
|
|
343
|
+
*/
|
|
344
|
+
contentLocalizationSettings: LocalizationSettings;
|
|
345
|
+
/**
|
|
346
|
+
* The localized content unique id (defined if content is derived from a translation)
|
|
347
|
+
*/
|
|
348
|
+
localizedContentId: string | null;
|
|
349
|
+
/**
|
|
350
|
+
* The release item related content tags
|
|
351
|
+
*/
|
|
352
|
+
contentTags: string[];
|
|
353
|
+
/**
|
|
354
|
+
* The release item related content online date, as an ISO 8601 string
|
|
355
|
+
*/
|
|
356
|
+
onlineDate: string | null;
|
|
357
|
+
/**
|
|
358
|
+
* The release item related content offline date, as an ISO 8601 string
|
|
359
|
+
*/
|
|
360
|
+
offlineDate: string | null;
|
|
361
|
+
};
|
|
362
|
+
/**
|
|
363
|
+
* This type represent a release content along with its locale variants matching the request filters
|
|
364
|
+
*/
|
|
365
|
+
export type ReleaseItemGroup = {
|
|
366
|
+
/**
|
|
367
|
+
* The related content unique id
|
|
368
|
+
*/
|
|
369
|
+
contentId: ContentId;
|
|
370
|
+
/**
|
|
371
|
+
* The related content public id
|
|
372
|
+
*/
|
|
373
|
+
publicId: string;
|
|
374
|
+
/**
|
|
375
|
+
* The related content name
|
|
376
|
+
*/
|
|
377
|
+
contentName: string;
|
|
378
|
+
/**
|
|
379
|
+
* The related content definition mnemonic id
|
|
380
|
+
*/
|
|
381
|
+
contentDefinitionMnemonicId: string;
|
|
382
|
+
/**
|
|
383
|
+
* The related content repository mnemonic id
|
|
384
|
+
*/
|
|
385
|
+
contentRepositoryMnemonicId: string;
|
|
386
|
+
/**
|
|
387
|
+
* The locale variants of the content matching the request filters
|
|
388
|
+
*/
|
|
389
|
+
variants: ReleaseItemVariant[];
|
|
390
|
+
};
|
|
321
391
|
/**
|
|
322
392
|
* This type represent the response of a list release items V2 API request.
|
|
393
|
+
* The release items are grouped by content: one [[ReleaseItemGroup]] per content id with all of its
|
|
394
|
+
* filter-matching locale variants, so pagination (over groups) never splits a content across pages
|
|
395
|
+
* and [[PagedListResponse.total]] counts the matching groups.
|
|
323
396
|
* The facets ([[locales]], [[contentDefinitionMnemonicIds]]) and [[selectedCount]] are computed
|
|
324
397
|
* over the whole release, ignoring the request filters
|
|
325
398
|
*/
|
|
326
|
-
export type ListReleaseItemsV2Response = PagedListResponse<
|
|
399
|
+
export type ListReleaseItemsV2Response = PagedListResponse<ReleaseItemGroup> & {
|
|
400
|
+
/**
|
|
401
|
+
* The total number of release items matching the request filters
|
|
402
|
+
*/
|
|
403
|
+
totalItems: number;
|
|
327
404
|
/**
|
|
328
405
|
* The number of release items selected to be published in the whole release
|
|
329
406
|
*/
|
package/lib/api/Content.ts
CHANGED
|
@@ -328,6 +328,34 @@ export type ListContentsFilters = {
|
|
|
328
328
|
* This filter is used to search contents that has the tags inserted
|
|
329
329
|
*/
|
|
330
330
|
tags?: string[];
|
|
331
|
+
/**
|
|
332
|
+
* This filter is used to search contents whose author matches (case-insensitively) one of the full names or emails inserted
|
|
333
|
+
*/
|
|
334
|
+
authors?: string[];
|
|
335
|
+
/**
|
|
336
|
+
* This filter is used to search contents whose locale, or one of their translation locales, matches (case-insensitively) one of the locales inserted
|
|
337
|
+
*/
|
|
338
|
+
locales?: string[];
|
|
339
|
+
/**
|
|
340
|
+
* This filter is used to search contents published in channels matching (case-insensitively) one of the mnemonic ids or names inserted
|
|
341
|
+
*/
|
|
342
|
+
channels?: string[];
|
|
343
|
+
/**
|
|
344
|
+
* This filter is used to search contents with an online date starting from the ISO 8601 date inserted
|
|
345
|
+
*/
|
|
346
|
+
onlineDateFrom?: string;
|
|
347
|
+
/**
|
|
348
|
+
* This filter is used to search contents with an online date up to the ISO 8601 date inserted
|
|
349
|
+
*/
|
|
350
|
+
onlineDateTo?: string;
|
|
351
|
+
/**
|
|
352
|
+
* This filter is used to search contents with an offline date starting from the ISO 8601 date inserted
|
|
353
|
+
*/
|
|
354
|
+
offlineDateFrom?: string;
|
|
355
|
+
/**
|
|
356
|
+
* This filter is used to search contents with an offline date up to the ISO 8601 date inserted
|
|
357
|
+
*/
|
|
358
|
+
offlineDateTo?: string;
|
|
331
359
|
/**
|
|
332
360
|
* This filter is used to search contents in the content status inserted
|
|
333
361
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ContentId } from "./Content";
|
|
1
|
+
import { ContentId, LocalizationSettings } from "./Content";
|
|
2
2
|
import { AuthorResponse } from "./Author";
|
|
3
3
|
import { ContentRepositoryId } from "./ContentRepository";
|
|
4
4
|
import { ContentTranslationStatus } from "./ContentTranslation";
|
|
@@ -338,12 +338,91 @@ export type ListReleaseItemsV2Request = {
|
|
|
338
338
|
filters?: ReleaseItemFilters;
|
|
339
339
|
};
|
|
340
340
|
|
|
341
|
+
/**
|
|
342
|
+
* This type represent a single locale variant of a content inside a release item group
|
|
343
|
+
*/
|
|
344
|
+
export type ReleaseItemVariant = {
|
|
345
|
+
/**
|
|
346
|
+
* The release item unique id
|
|
347
|
+
*/
|
|
348
|
+
id: ReleaseItemId;
|
|
349
|
+
/**
|
|
350
|
+
* The variant content locale
|
|
351
|
+
*/
|
|
352
|
+
contentLocale: string | null;
|
|
353
|
+
/**
|
|
354
|
+
* Mark if the release item is selected to be published
|
|
355
|
+
*/
|
|
356
|
+
toPublish: boolean;
|
|
357
|
+
/**
|
|
358
|
+
* Status of the ContentTranslation (defined if content is derived from a translation)
|
|
359
|
+
*/
|
|
360
|
+
translationStatus: ContentTranslationStatus | null;
|
|
361
|
+
/**
|
|
362
|
+
* The localization settings of the related content
|
|
363
|
+
*/
|
|
364
|
+
contentLocalizationSettings: LocalizationSettings;
|
|
365
|
+
/**
|
|
366
|
+
* The localized content unique id (defined if content is derived from a translation)
|
|
367
|
+
*/
|
|
368
|
+
localizedContentId: string | null;
|
|
369
|
+
/**
|
|
370
|
+
* The release item related content tags
|
|
371
|
+
*/
|
|
372
|
+
contentTags: string[];
|
|
373
|
+
/**
|
|
374
|
+
* The release item related content online date, as an ISO 8601 string
|
|
375
|
+
*/
|
|
376
|
+
onlineDate: string | null;
|
|
377
|
+
/**
|
|
378
|
+
* The release item related content offline date, as an ISO 8601 string
|
|
379
|
+
*/
|
|
380
|
+
offlineDate: string | null;
|
|
381
|
+
};
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* This type represent a release content along with its locale variants matching the request filters
|
|
385
|
+
*/
|
|
386
|
+
export type ReleaseItemGroup = {
|
|
387
|
+
/**
|
|
388
|
+
* The related content unique id
|
|
389
|
+
*/
|
|
390
|
+
contentId: ContentId;
|
|
391
|
+
/**
|
|
392
|
+
* The related content public id
|
|
393
|
+
*/
|
|
394
|
+
publicId: string;
|
|
395
|
+
/**
|
|
396
|
+
* The related content name
|
|
397
|
+
*/
|
|
398
|
+
contentName: string;
|
|
399
|
+
/**
|
|
400
|
+
* The related content definition mnemonic id
|
|
401
|
+
*/
|
|
402
|
+
contentDefinitionMnemonicId: string;
|
|
403
|
+
/**
|
|
404
|
+
* The related content repository mnemonic id
|
|
405
|
+
*/
|
|
406
|
+
contentRepositoryMnemonicId: string;
|
|
407
|
+
/**
|
|
408
|
+
* The locale variants of the content matching the request filters
|
|
409
|
+
*/
|
|
410
|
+
variants: ReleaseItemVariant[];
|
|
411
|
+
};
|
|
412
|
+
|
|
341
413
|
/**
|
|
342
414
|
* This type represent the response of a list release items V2 API request.
|
|
415
|
+
* The release items are grouped by content: one [[ReleaseItemGroup]] per content id with all of its
|
|
416
|
+
* filter-matching locale variants, so pagination (over groups) never splits a content across pages
|
|
417
|
+
* and [[PagedListResponse.total]] counts the matching groups.
|
|
343
418
|
* The facets ([[locales]], [[contentDefinitionMnemonicIds]]) and [[selectedCount]] are computed
|
|
344
419
|
* over the whole release, ignoring the request filters
|
|
345
420
|
*/
|
|
346
|
-
export type ListReleaseItemsV2Response = PagedListResponse<
|
|
421
|
+
export type ListReleaseItemsV2Response = PagedListResponse<ReleaseItemGroup> & {
|
|
422
|
+
/**
|
|
423
|
+
* The total number of release items matching the request filters
|
|
424
|
+
*/
|
|
425
|
+
totalItems: number;
|
|
347
426
|
/**
|
|
348
427
|
* The number of release items selected to be published in the whole release
|
|
349
428
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentchef/contentchef-types",
|
|
3
|
-
"version": "10.1.0-alpha.
|
|
3
|
+
"version": "10.1.0-alpha.4",
|
|
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": "^5.9.3"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "8d55c6ca85b34f658c27a974daf759e2adcf358c"
|
|
38
38
|
}
|