@evoke-platform/context 1.0.0-dev.116 → 1.0.0-dev.118

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,6 +4,17 @@ export type BaseObjReference = {
4
4
  objectId: string;
5
5
  discriminatorValue: unknown;
6
6
  };
7
+ export type ViewLayoutEntityReference = {
8
+ id: string;
9
+ objectId: string;
10
+ };
11
+ type ViewLayoutEntity = {
12
+ id: string;
13
+ name: string;
14
+ objectId: string;
15
+ };
16
+ export type TableViewLayoutEntity = ViewLayoutEntity & TableViewLayout;
17
+ export type DropdownViewLayoutEntity = ViewLayoutEntity & DropdownViewLayout;
7
18
  export type ViewLayout = {
8
19
  table?: TableViewLayout;
9
20
  dropdown?: DropdownViewLayout;
@@ -51,10 +62,7 @@ export type CriteriaValidation = {
51
62
  };
52
63
  export type StringValidation = {
53
64
  operator: 'any' | 'all';
54
- rules?: {
55
- regex: string;
56
- errorMessage?: string;
57
- }[];
65
+ rules?: RegexValidation[];
58
66
  };
59
67
  export type DocumentValidation = {
60
68
  errorMessage?: string;
@@ -114,7 +122,7 @@ export type ObjectInstance = {
114
122
  };
115
123
  export type RegexValidation = {
116
124
  regex: string;
117
- errorMessage: string;
125
+ errorMessage?: string;
118
126
  };
119
127
  export type SelectOption = {
120
128
  label: string;
@@ -149,6 +157,7 @@ export type DisplayConfiguration = {
149
157
  mode?: 'default' | 'existingOnly';
150
158
  relatedObjectDisplay?: 'dropdown' | 'dialogBox';
151
159
  visibility?: VisibilityConfiguration | string;
160
+ viewLayout?: ViewLayoutEntityReference;
152
161
  };
153
162
  export type InputParameterReference = {
154
163
  type: 'input';
@@ -230,9 +239,9 @@ export type ActionInput = {
230
239
  when?: string;
231
240
  eq?: string | number | boolean;
232
241
  };
233
- property?: {
234
- id: string;
235
- };
242
+ property?: InputParameter;
243
+ viewLayout?: ViewLayoutEntityReference;
244
+ documentMetadata?: Record<string, string>;
236
245
  validate?: {
237
246
  required?: boolean;
238
247
  criteria?: object;
@@ -246,6 +255,8 @@ export type ActionInput = {
246
255
  maxTime?: string;
247
256
  min?: number;
248
257
  max?: number;
258
+ minDocuments?: number;
259
+ maxDocuments?: number;
249
260
  customMessage?: string;
250
261
  };
251
262
  /**
@@ -312,3 +323,4 @@ export declare class ObjectStore {
312
323
  instanceAction<T extends ObjectInstance = ObjectInstance>(id: string, input: ActionRequest, cb: Callback<T>): void;
313
324
  }
314
325
  export declare function useObject(objectId: string): ObjectStore;
326
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/context",
3
- "version": "1.0.0-dev.116",
3
+ "version": "1.0.0-dev.118",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",