@contentchef/contentchef-types 10.1.0-alpha.3 → 10.1.0-alpha.5
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 +65 -0
- package/dist/api/Content.js +23 -1
- package/lib/api/Content.ts +68 -0
- package/package.json +2 -2
package/dist/api/Content.d.ts
CHANGED
|
@@ -17,6 +17,39 @@ export declare enum ContentsStatus {
|
|
|
17
17
|
unarchived = "unarchived",
|
|
18
18
|
all = "all"
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* This enum represent the fields that can be used to sort a list of contents
|
|
22
|
+
*/
|
|
23
|
+
export declare enum ContentSortField {
|
|
24
|
+
name = "name",
|
|
25
|
+
publicId = "publicId",
|
|
26
|
+
createdDate = "createdDate",
|
|
27
|
+
lastModifiedDate = "lastModifiedDate",
|
|
28
|
+
onlineDate = "onlineDate",
|
|
29
|
+
offlineDate = "offlineDate",
|
|
30
|
+
locale = "locale",
|
|
31
|
+
definitionName = "definitionName"
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* This enum represent the possible sort directions
|
|
35
|
+
*/
|
|
36
|
+
export declare enum SortDirection {
|
|
37
|
+
asc = "asc",
|
|
38
|
+
desc = "desc"
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* This type represent the data that can be used to sort a list of contents
|
|
42
|
+
*/
|
|
43
|
+
export type ListContentsSort = {
|
|
44
|
+
/**
|
|
45
|
+
* The field to sort the list of contents by
|
|
46
|
+
*/
|
|
47
|
+
field: ContentSortField;
|
|
48
|
+
/**
|
|
49
|
+
* The direction to sort the list of contents in
|
|
50
|
+
*/
|
|
51
|
+
direction: SortDirection;
|
|
52
|
+
};
|
|
20
53
|
/**
|
|
21
54
|
* This type represent the model of facet
|
|
22
55
|
*/
|
|
@@ -298,6 +331,34 @@ export type ListContentsFilters = {
|
|
|
298
331
|
* This filter is used to search contents that has the tags inserted
|
|
299
332
|
*/
|
|
300
333
|
tags?: string[];
|
|
334
|
+
/**
|
|
335
|
+
* This filter is used to search contents whose author matches (case-insensitively) one of the full names or emails inserted
|
|
336
|
+
*/
|
|
337
|
+
authors?: string[];
|
|
338
|
+
/**
|
|
339
|
+
* This filter is used to search contents whose locale, or one of their translation locales, matches (case-insensitively) one of the locales inserted
|
|
340
|
+
*/
|
|
341
|
+
locales?: string[];
|
|
342
|
+
/**
|
|
343
|
+
* This filter is used to search contents published in channels matching (case-insensitively) one of the mnemonic ids or names inserted
|
|
344
|
+
*/
|
|
345
|
+
channels?: string[];
|
|
346
|
+
/**
|
|
347
|
+
* This filter is used to search contents with an online date starting from the ISO 8601 date inserted
|
|
348
|
+
*/
|
|
349
|
+
onlineDateFrom?: string;
|
|
350
|
+
/**
|
|
351
|
+
* This filter is used to search contents with an online date up to the ISO 8601 date inserted
|
|
352
|
+
*/
|
|
353
|
+
onlineDateTo?: string;
|
|
354
|
+
/**
|
|
355
|
+
* This filter is used to search contents with an offline date starting from the ISO 8601 date inserted
|
|
356
|
+
*/
|
|
357
|
+
offlineDateFrom?: string;
|
|
358
|
+
/**
|
|
359
|
+
* This filter is used to search contents with an offline date up to the ISO 8601 date inserted
|
|
360
|
+
*/
|
|
361
|
+
offlineDateTo?: string;
|
|
301
362
|
/**
|
|
302
363
|
* This filter is used to search contents in the content status inserted
|
|
303
364
|
*/
|
|
@@ -323,6 +384,10 @@ export type ListContentsRequest = {
|
|
|
323
384
|
* The data used to filter the list of content
|
|
324
385
|
*/
|
|
325
386
|
filters: ListContentsFilters;
|
|
387
|
+
/**
|
|
388
|
+
* The data used to sort the list of content
|
|
389
|
+
*/
|
|
390
|
+
sort?: ListContentsSort;
|
|
326
391
|
};
|
|
327
392
|
/**
|
|
328
393
|
* This type represent the model of the single content returned from the list of content API request
|
package/dist/api/Content.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LocalizationSettings = exports.ContentFieldViolationCodes = exports.ContentsStatus = void 0;
|
|
3
|
+
exports.LocalizationSettings = exports.ContentFieldViolationCodes = exports.SortDirection = exports.ContentSortField = exports.ContentsStatus = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* This enum represent the possible content status
|
|
6
6
|
*/
|
|
@@ -10,6 +10,28 @@ var ContentsStatus;
|
|
|
10
10
|
ContentsStatus["unarchived"] = "unarchived";
|
|
11
11
|
ContentsStatus["all"] = "all";
|
|
12
12
|
})(ContentsStatus || (exports.ContentsStatus = ContentsStatus = {}));
|
|
13
|
+
/**
|
|
14
|
+
* This enum represent the fields that can be used to sort a list of contents
|
|
15
|
+
*/
|
|
16
|
+
var ContentSortField;
|
|
17
|
+
(function (ContentSortField) {
|
|
18
|
+
ContentSortField["name"] = "name";
|
|
19
|
+
ContentSortField["publicId"] = "publicId";
|
|
20
|
+
ContentSortField["createdDate"] = "createdDate";
|
|
21
|
+
ContentSortField["lastModifiedDate"] = "lastModifiedDate";
|
|
22
|
+
ContentSortField["onlineDate"] = "onlineDate";
|
|
23
|
+
ContentSortField["offlineDate"] = "offlineDate";
|
|
24
|
+
ContentSortField["locale"] = "locale";
|
|
25
|
+
ContentSortField["definitionName"] = "definitionName";
|
|
26
|
+
})(ContentSortField || (exports.ContentSortField = ContentSortField = {}));
|
|
27
|
+
/**
|
|
28
|
+
* This enum represent the possible sort directions
|
|
29
|
+
*/
|
|
30
|
+
var SortDirection;
|
|
31
|
+
(function (SortDirection) {
|
|
32
|
+
SortDirection["asc"] = "asc";
|
|
33
|
+
SortDirection["desc"] = "desc";
|
|
34
|
+
})(SortDirection || (exports.SortDirection = SortDirection = {}));
|
|
13
35
|
/**
|
|
14
36
|
* Thin enum represent all content fields violations error codes
|
|
15
37
|
*/
|
package/lib/api/Content.ts
CHANGED
|
@@ -29,6 +29,42 @@ export enum ContentsStatus {
|
|
|
29
29
|
all = "all",
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* This enum represent the fields that can be used to sort a list of contents
|
|
34
|
+
*/
|
|
35
|
+
export enum ContentSortField {
|
|
36
|
+
name = "name",
|
|
37
|
+
publicId = "publicId",
|
|
38
|
+
createdDate = "createdDate",
|
|
39
|
+
lastModifiedDate = "lastModifiedDate",
|
|
40
|
+
onlineDate = "onlineDate",
|
|
41
|
+
offlineDate = "offlineDate",
|
|
42
|
+
locale = "locale",
|
|
43
|
+
definitionName = "definitionName",
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* This enum represent the possible sort directions
|
|
48
|
+
*/
|
|
49
|
+
export enum SortDirection {
|
|
50
|
+
asc = "asc",
|
|
51
|
+
desc = "desc",
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* This type represent the data that can be used to sort a list of contents
|
|
56
|
+
*/
|
|
57
|
+
export type ListContentsSort = {
|
|
58
|
+
/**
|
|
59
|
+
* The field to sort the list of contents by
|
|
60
|
+
*/
|
|
61
|
+
field: ContentSortField;
|
|
62
|
+
/**
|
|
63
|
+
* The direction to sort the list of contents in
|
|
64
|
+
*/
|
|
65
|
+
direction: SortDirection;
|
|
66
|
+
};
|
|
67
|
+
|
|
32
68
|
/**
|
|
33
69
|
* This type represent the model of facet
|
|
34
70
|
*/
|
|
@@ -328,6 +364,34 @@ export type ListContentsFilters = {
|
|
|
328
364
|
* This filter is used to search contents that has the tags inserted
|
|
329
365
|
*/
|
|
330
366
|
tags?: string[];
|
|
367
|
+
/**
|
|
368
|
+
* This filter is used to search contents whose author matches (case-insensitively) one of the full names or emails inserted
|
|
369
|
+
*/
|
|
370
|
+
authors?: string[];
|
|
371
|
+
/**
|
|
372
|
+
* This filter is used to search contents whose locale, or one of their translation locales, matches (case-insensitively) one of the locales inserted
|
|
373
|
+
*/
|
|
374
|
+
locales?: string[];
|
|
375
|
+
/**
|
|
376
|
+
* This filter is used to search contents published in channels matching (case-insensitively) one of the mnemonic ids or names inserted
|
|
377
|
+
*/
|
|
378
|
+
channels?: string[];
|
|
379
|
+
/**
|
|
380
|
+
* This filter is used to search contents with an online date starting from the ISO 8601 date inserted
|
|
381
|
+
*/
|
|
382
|
+
onlineDateFrom?: string;
|
|
383
|
+
/**
|
|
384
|
+
* This filter is used to search contents with an online date up to the ISO 8601 date inserted
|
|
385
|
+
*/
|
|
386
|
+
onlineDateTo?: string;
|
|
387
|
+
/**
|
|
388
|
+
* This filter is used to search contents with an offline date starting from the ISO 8601 date inserted
|
|
389
|
+
*/
|
|
390
|
+
offlineDateFrom?: string;
|
|
391
|
+
/**
|
|
392
|
+
* This filter is used to search contents with an offline date up to the ISO 8601 date inserted
|
|
393
|
+
*/
|
|
394
|
+
offlineDateTo?: string;
|
|
331
395
|
/**
|
|
332
396
|
* This filter is used to search contents in the content status inserted
|
|
333
397
|
*/
|
|
@@ -355,6 +419,10 @@ export type ListContentsRequest = {
|
|
|
355
419
|
* The data used to filter the list of content
|
|
356
420
|
*/
|
|
357
421
|
filters: ListContentsFilters;
|
|
422
|
+
/**
|
|
423
|
+
* The data used to sort the list of content
|
|
424
|
+
*/
|
|
425
|
+
sort?: ListContentsSort;
|
|
358
426
|
};
|
|
359
427
|
|
|
360
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.5",
|
|
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": "395605c7649177141f6ee45bb5c178c946d25fc5"
|
|
38
38
|
}
|