@evoke-platform/context 1.0.0-dev.114 → 1.0.0-dev.115

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.
@@ -4,17 +4,33 @@ export type BaseObjReference = {
4
4
  objectId: string;
5
5
  discriminatorValue: unknown;
6
6
  };
7
- export type ViewLayout = {
8
- table?: TableViewLayout;
9
- dropdown?: DropdownViewLayout;
7
+ export type DefaultViewLayout = {
8
+ table?: DefaultTableViewLayout;
9
+ dropdown?: DefaultDropdownViewLayout;
10
+ };
11
+ export type ViewLayoutReference = {
12
+ id: string;
13
+ objectId: string;
10
14
  };
11
- export type DropdownViewLayout = {
15
+ export type DefaultDropdownViewLayout = {
12
16
  secondaryTextExpression: string;
13
17
  };
14
- export type TableViewLayout = {
18
+ export type DefaultTableViewLayout = {
19
+ properties: PropertyReference[];
20
+ sort?: Sort;
21
+ };
22
+ export type ViewLayout = {
23
+ id: string;
24
+ name: string;
25
+ objectId: string;
26
+ };
27
+ export type TableViewLayout = ViewLayout & {
15
28
  properties: PropertyReference[];
16
29
  sort?: Sort;
17
30
  };
31
+ export type DropdownViewLayout = ViewLayout & {
32
+ secondaryTextExpression: string;
33
+ };
18
34
  export type PropertyReference = {
19
35
  id: string;
20
36
  format?: string;
@@ -27,7 +43,7 @@ export type Obj = {
27
43
  id: string;
28
44
  name: string;
29
45
  typeDiscriminatorProperty?: string;
30
- viewLayout?: ViewLayout;
46
+ viewLayout?: DefaultViewLayout;
31
47
  baseObject?: BaseObjReference;
32
48
  properties?: Property[];
33
49
  actions?: Action[];
@@ -149,6 +165,7 @@ export type DisplayConfiguration = {
149
165
  mode?: 'default' | 'existingOnly';
150
166
  relatedObjectDisplay?: 'dropdown' | 'dialogBox';
151
167
  visibility?: VisibilityConfiguration | string;
168
+ viewLayout?: ViewLayoutReference;
152
169
  };
153
170
  export type InputParameterReference = {
154
171
  type: 'input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/context",
3
- "version": "1.0.0-dev.114",
3
+ "version": "1.0.0-dev.115",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",