@guillotinaweb/react-gmi 0.29.2-alpha.3 → 0.30.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.
@@ -6,9 +6,53 @@ type ItemsPropertyObject = {
6
6
  '@type': string;
7
7
  '@uid': string;
8
8
  '@absolute_url': string;
9
- __behaviors__: string[];
10
- '@static_behaviors': string[];
9
+ title: string;
10
+ creation_date: string;
11
+ modification_date: string;
12
+ uuid: string;
13
+ type_name: string;
11
14
  };
15
+ export type GuillotinaCommonObject = {
16
+ type_name: string;
17
+ uuid: string;
18
+ is_folderish: boolean;
19
+ parent: GuillotinaParentObject;
20
+ length: number;
21
+ __behaviors__?: string[];
22
+ '@static_behaviors': string[];
23
+ 'guillotina.behaviors.dublincore.IDublinCore'?: IBehaviorDublinCore;
24
+ 'guillotina.contrib.workflows.interfaces.IWorkflowBehavior'?: IWorkflowBehavior;
25
+ 'guillotina.behaviors.attachment.IAttachment'?: {
26
+ file: GuillotinaFile;
27
+ };
28
+ 'guillotina.behaviors.attachment.IMultiAttachment'?: {
29
+ files: {
30
+ [key: string]: GuillotinaFile;
31
+ };
32
+ };
33
+ 'guillotina.contrib.image.behaviors.IImageAttachment'?: {
34
+ image: GuillotinaFile;
35
+ };
36
+ 'guillotina.contrib.image.behaviors.IMultiImageAttachment'?: {
37
+ images: {
38
+ [key: string]: GuillotinaFile;
39
+ };
40
+ };
41
+ 'guillotina.contrib.image.behaviors.IMultiImageOrderedAttachment'?: {
42
+ images: {
43
+ [key: string]: GuillotinaFile;
44
+ };
45
+ };
46
+ } & ItemsPropertyObject;
47
+ export type SearchItem = {
48
+ id: string;
49
+ parent_uuid: string;
50
+ path: string;
51
+ tid: string;
52
+ description: string;
53
+ access_roles: string[];
54
+ access_users: string[];
55
+ } & ItemsPropertyObject;
12
56
  export interface IBehaviorDublinCore {
13
57
  title: string;
14
58
  description: string | null;
@@ -21,6 +65,16 @@ export interface IBehaviorDublinCore {
21
65
  publisher: string | null;
22
66
  contributors: string[];
23
67
  }
68
+ export interface IWorkflowBehavior {
69
+ review_state: string;
70
+ history: WorkflowHistory[];
71
+ }
72
+ interface GuillotinaParentObject {
73
+ '@id': string;
74
+ '@name': string;
75
+ '@type': string;
76
+ '@uid': string;
77
+ }
24
78
  export interface GuillotinaSchema {
25
79
  title: string;
26
80
  $schema: string;
@@ -60,35 +114,6 @@ export interface GuillotinaSchemaProperty {
60
114
  queryCondition?: string;
61
115
  queryPath?: string;
62
116
  }
63
- interface GuillotinaParentObject {
64
- '@id': string;
65
- '@name': string;
66
- '@type': string;
67
- '@uid': string;
68
- }
69
- export type GuillotinaCommonObject = {
70
- creation_date: string;
71
- modification_date: string;
72
- title: string;
73
- type_name: string;
74
- uuid: string;
75
- is_folderish: boolean;
76
- parent: GuillotinaParentObject;
77
- length: number;
78
- __behaviors__?: string[];
79
- 'guillotina.behaviors.dublincore.IDublinCore'?: IBehaviorDublinCore;
80
- 'guillotina.contrib.workflows.interfaces.IWorkflowBehavior'?: {
81
- review_state: string;
82
- };
83
- 'guillotina.behaviors.attachment.IAttachment'?: {
84
- file: GuillotinaFile;
85
- };
86
- 'guillotina.behaviors.attachment.IMultiAttachment'?: {
87
- files: {
88
- [key: string]: GuillotinaFile;
89
- };
90
- };
91
- } & ItemsPropertyObject;
92
117
  export type GuillotinaFile = {
93
118
  filename: string;
94
119
  content_type: string;
@@ -96,17 +121,6 @@ export type GuillotinaFile = {
96
121
  size: number;
97
122
  md5: string;
98
123
  };
99
- export type SearchItem = {
100
- id: string;
101
- parent_uuid: string;
102
- path: string;
103
- tid: string;
104
- uuid: string;
105
- title: string;
106
- type_name: string;
107
- creation_date: string;
108
- modification_date: string;
109
- } & ItemsPropertyObject;
110
124
  export interface GuillotinaVocabulary {
111
125
  '@id': string;
112
126
  items: GuillotinaVocabularyItem[];
@@ -175,18 +189,18 @@ export declare enum Setting {
175
189
  }
176
190
  export interface Workflow {
177
191
  '@id': string;
178
- history: History[];
192
+ history: WorkflowHistory[];
179
193
  transitions: Transition[];
180
194
  }
181
- export interface History {
195
+ export interface WorkflowHistory {
182
196
  actor: string;
183
197
  comments: string;
184
198
  time: string;
185
199
  title: string;
186
200
  type: string;
187
- data: Data;
201
+ data: WorkflowHistoryData;
188
202
  }
189
- export interface Data {
203
+ export interface WorkflowHistoryData {
190
204
  action: null;
191
205
  review_state: string;
192
206
  }
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.29.2-alpha.3",
2
+ "version": "0.30.0",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git@github.com:guillotinaweb/guillotina_react.git"