@contentchef/contentchef-types 10.1.0-alpha.4 → 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 +37 -0
- package/dist/api/Content.js +23 -1
- package/lib/api/Content.ts +40 -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
|
*/
|
|
@@ -351,6 +384,10 @@ export type ListContentsRequest = {
|
|
|
351
384
|
* The data used to filter the list of content
|
|
352
385
|
*/
|
|
353
386
|
filters: ListContentsFilters;
|
|
387
|
+
/**
|
|
388
|
+
* The data used to sort the list of content
|
|
389
|
+
*/
|
|
390
|
+
sort?: ListContentsSort;
|
|
354
391
|
};
|
|
355
392
|
/**
|
|
356
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
|
*/
|
|
@@ -383,6 +419,10 @@ export type ListContentsRequest = {
|
|
|
383
419
|
* The data used to filter the list of content
|
|
384
420
|
*/
|
|
385
421
|
filters: ListContentsFilters;
|
|
422
|
+
/**
|
|
423
|
+
* The data used to sort the list of content
|
|
424
|
+
*/
|
|
425
|
+
sort?: ListContentsSort;
|
|
386
426
|
};
|
|
387
427
|
|
|
388
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
|
}
|