@evoke-platform/context 1.2.0-testing.1 → 1.2.0-testing.3

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,5 +1,14 @@
1
1
  import { ApiServices, Callback } from '../api/index.js';
2
2
  import { Filter } from './filters.js';
3
+ export type EvokeForm = {
4
+ id: string;
5
+ name: string;
6
+ entries: FormEntry[];
7
+ objectId: string;
8
+ formObjectId?: string;
9
+ actionId?: string;
10
+ autosaveActionId?: string;
11
+ };
3
12
  export type BaseObjReference = {
4
13
  objectId: string;
5
14
  discriminatorValue: unknown;
@@ -47,6 +56,7 @@ export type Obj = {
47
56
  baseObject?: BaseObjReference;
48
57
  properties?: Property[];
49
58
  actions?: Action[];
59
+ formId?: string;
50
60
  };
51
61
  export type ObjWithRoot = Obj & {
52
62
  rootObjectId: string;
@@ -80,6 +90,7 @@ export type Property = {
80
90
  name: string;
81
91
  type: PropertyType;
82
92
  enum?: string[];
93
+ nonStrictEnum?: boolean;
83
94
  objectId?: string;
84
95
  relatedPropertyId?: string;
85
96
  required?: boolean;
@@ -103,6 +114,7 @@ export type InputParameter = {
103
114
  type: PropertyType;
104
115
  required?: boolean;
105
116
  enum?: string[];
117
+ nonStrictEnum?: boolean;
106
118
  validation?: PropertyValidation | InputStringValidation;
107
119
  objectId?: string;
108
120
  relatedPropertyId?: string;
@@ -203,7 +215,18 @@ export type Sections = {
203
215
  sections: Section[];
204
216
  visibility?: VisibilityConfiguration | JsonLogic;
205
217
  };
206
- export type FormEntry = InputParameterReference | Columns | Sections | Content;
218
+ export type ReadonlyField = {
219
+ type: 'readonlyField';
220
+ propertyId: string;
221
+ display?: DisplayConfiguration;
222
+ };
223
+ export type InputField = {
224
+ type: 'inputField';
225
+ input: InputParameter;
226
+ display?: DisplayConfiguration;
227
+ documentMetadata?: Record<string, string>;
228
+ };
229
+ export type FormEntry = InputField | InputParameterReference | ReadonlyField | Sections | Columns | Content;
207
230
  export type Form = {
208
231
  entries?: FormEntry[];
209
232
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evoke-platform/context",
3
- "version": "1.2.0-testing.1",
3
+ "version": "1.2.0-testing.3",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",