@evoke-platform/context 1.5.0-dev.3 → 1.5.0-dev.4

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.
@@ -15,7 +15,10 @@ export type EvokeForm = {
15
15
  };
16
16
  export type BaseObjReference = {
17
17
  objectId: string;
18
- discriminatorValue?: unknown;
18
+ discriminatorValue: unknown;
19
+ };
20
+ export type SystemObjReference = {
21
+ objectId: string;
19
22
  };
20
23
  export type ViewLayoutEntityReference = {
21
24
  id: string;
@@ -28,6 +31,7 @@ type ViewLayoutEntity = {
28
31
  };
29
32
  export type TableViewLayoutEntity = ViewLayoutEntity & TableViewLayout;
30
33
  export type DropdownViewLayoutEntity = ViewLayoutEntity & DropdownViewLayout;
34
+ export type PanelViewLayoutEntity = ViewLayoutEntity & PanelViewLayout;
31
35
  export type ViewLayout = {
32
36
  table?: TableViewLayout;
33
37
  dropdown?: DropdownViewLayout;
@@ -44,6 +48,22 @@ export type TableViewLayout = {
44
48
  properties: PropertyReference[];
45
49
  sort?: Sort;
46
50
  };
51
+ export type ViewSection = {
52
+ entries?: ViewEntry[];
53
+ };
54
+ export type ViewSections = {
55
+ sections: ViewSection[];
56
+ };
57
+ export type ViewColumn = {
58
+ entries?: ViewEntry[];
59
+ };
60
+ export type ViewColumns = {
61
+ columns: ViewColumn[];
62
+ };
63
+ export type ViewEntry = ReadonlyField | ViewSections | ViewColumns;
64
+ export type PanelViewLayout = {
65
+ entries: ViewEntry[];
66
+ };
47
67
  export type PropertyReference = {
48
68
  id: string;
49
69
  format?: string;
@@ -58,7 +78,7 @@ export type Obj = {
58
78
  description?: string;
59
79
  typeDiscriminatorProperty?: string;
60
80
  viewLayout?: ViewLayout;
61
- baseObject?: BaseObjReference;
81
+ baseObject?: BaseObjReference | SystemObjReference;
62
82
  properties?: Property[];
63
83
  actions?: Action[];
64
84
  formId?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/context",
3
- "version": "1.5.0-dev.3",
3
+ "version": "1.5.0-dev.4",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",