@agility/content-fetch 2.0.0-rc17 → 2.0.0-rc18
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/types/ContentItem.d.ts +11 -3
- package/package.json +1 -1
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { SEOProperties } from "./SEO";
|
|
2
|
+
interface ContentItemProperties {
|
|
3
|
+
state: number;
|
|
4
|
+
modified: Date;
|
|
5
|
+
versionID: number;
|
|
6
|
+
referenceName: string;
|
|
7
|
+
definitionName: string;
|
|
8
|
+
itemOrder: number;
|
|
9
|
+
}
|
|
2
10
|
/**
|
|
3
11
|
* Defines a **Content Item** in the CMS
|
|
4
12
|
* @typedef ContentItem
|
|
5
13
|
* @memberof AgilityFetch.Types
|
|
6
14
|
* @property {number} contentID - The unique ID of the content item in this language.
|
|
7
|
-
* @property {
|
|
15
|
+
* @property {ContentItemProperties} properties - The system properties of the content item.
|
|
8
16
|
* @property {Object} fields - A dictionary of the fields and the values of the content item.
|
|
9
17
|
* @property {SEOProperties} seo - Any SEO related fields for the content item. This is only returned for Dynamic Page Items.
|
|
10
18
|
*/
|
|
11
|
-
import { SystemProperties } from "./SystemProperties";
|
|
12
19
|
export interface ContentItem<T = {
|
|
13
20
|
[key: string]: any;
|
|
14
21
|
}> {
|
|
15
22
|
contentID: number;
|
|
16
|
-
properties:
|
|
23
|
+
properties: ContentItemProperties;
|
|
17
24
|
fields: T;
|
|
18
25
|
seo?: SEOProperties;
|
|
19
26
|
}
|
|
27
|
+
export {};
|