contentful-management 10.35.6 → 10.37.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { INLINES, BLOCKS } from '@contentful/rich-text-types';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { KeyValueMap } from '../common-types';
|
|
2
|
+
import { INLINES, BLOCKS } from '@contentful/rich-text-types';
|
|
2
3
|
interface NumRange {
|
|
3
4
|
min?: number;
|
|
4
5
|
max?: number;
|
|
@@ -11,11 +12,22 @@ interface RegExp {
|
|
|
11
12
|
pattern: string;
|
|
12
13
|
flags: string;
|
|
13
14
|
}
|
|
15
|
+
interface NodesValidation {
|
|
16
|
+
[BLOCKS.EMBEDDED_ENTRY]?: Pick<ContentTypeFieldValidation, 'size' | 'linkContentType' | 'message'>[];
|
|
17
|
+
[INLINES.EMBEDDED_ENTRY]?: Pick<ContentTypeFieldValidation, 'size' | 'linkContentType' | 'message'>[];
|
|
18
|
+
[INLINES.ENTRY_HYPERLINK]?: Pick<ContentTypeFieldValidation, 'size' | 'linkContentType' | 'message'>[];
|
|
19
|
+
[BLOCKS.EMBEDDED_ASSET]?: Pick<ContentTypeFieldValidation, 'size' | 'message'>[];
|
|
20
|
+
[INLINES.ASSET_HYPERLINK]?: Pick<ContentTypeFieldValidation, 'size' | 'message'>[];
|
|
21
|
+
[BLOCKS.EMBEDDED_RESOURCE]?: {
|
|
22
|
+
validations: Pick<ContentTypeFieldValidation, 'size' | 'message'>[];
|
|
23
|
+
allowedResources: ContentTypeAllowedResources[];
|
|
24
|
+
};
|
|
25
|
+
}
|
|
14
26
|
export interface ContentTypeFieldValidation {
|
|
15
27
|
linkContentType?: string[];
|
|
16
28
|
in?: (string | number)[];
|
|
17
29
|
linkMimetypeGroup?: string[];
|
|
18
|
-
enabledNodeTypes?:
|
|
30
|
+
enabledNodeTypes?: (`${BLOCKS}` | `${INLINES}`)[];
|
|
19
31
|
enabledMarks?: string[];
|
|
20
32
|
unique?: boolean;
|
|
21
33
|
size?: NumRange;
|
|
@@ -29,6 +41,7 @@ export interface ContentTypeFieldValidation {
|
|
|
29
41
|
height?: NumRange;
|
|
30
42
|
};
|
|
31
43
|
assetFileSize?: NumRange;
|
|
44
|
+
nodes?: NodesValidation;
|
|
32
45
|
}
|
|
33
46
|
interface Item {
|
|
34
47
|
type: string;
|
|
@@ -4,7 +4,10 @@ export type WorkflowsChangelogQueryOptions = Omit<PaginationQueryOptions, 'order
|
|
|
4
4
|
'entity.sys.linkType': string;
|
|
5
5
|
/** Find workflows changelog entries containing the specified, comma-separated entities. Requires `sys.entity.sys.linkType` */
|
|
6
6
|
'entity.sys.id': string;
|
|
7
|
-
|
|
7
|
+
/** workflow.sys.id is optional so all past workflows can be found */
|
|
8
|
+
'workflow.sys.id'?: string;
|
|
9
|
+
'eventAt[lte]'?: string;
|
|
10
|
+
'eventAt[gte]'?: string;
|
|
8
11
|
};
|
|
9
12
|
export type WorkflowsChangelogEntryProps = {
|
|
10
13
|
event: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "contentful-management",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.37.0",
|
|
4
4
|
"description": "Client for Contentful's Content Management API",
|
|
5
5
|
"homepage": "https://www.contentful.com/developers/documentation/content-management-api/",
|
|
6
6
|
"main": "./dist/contentful-management.node.js",
|