@evoke-platform/context 1.0.0-dev.92 → 1.0.0-dev.93
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.
- package/dist/objects/objects.d.ts +13 -5
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ export type Obj = {
|
|
|
32
32
|
properties?: Property[];
|
|
33
33
|
actions?: Action[];
|
|
34
34
|
};
|
|
35
|
-
export type PropertyType = 'address' | 'array' | 'boolean' | 'collection' | 'date' | 'date-time' | 'image' | 'integer' | 'number' | 'object' | 'string' | 'time';
|
|
35
|
+
export type PropertyType = 'address' | 'array' | 'boolean' | 'collection' | 'date' | 'date-time' | 'image' | 'integer' | 'number' | 'object' | 'richText' | 'string' | 'time' | 'user';
|
|
36
36
|
export type NumericValidation = {
|
|
37
37
|
errorMessage?: string;
|
|
38
38
|
minimum?: number;
|
|
@@ -64,9 +64,11 @@ export type Property = {
|
|
|
64
64
|
required?: boolean;
|
|
65
65
|
searchable?: boolean;
|
|
66
66
|
formula?: string;
|
|
67
|
+
formulaType?: 'aggregate' | 'custom' | 'arithmetic';
|
|
67
68
|
mask?: string;
|
|
68
69
|
validation?: PropertyValidation;
|
|
69
70
|
manyToManyPropertyId?: string;
|
|
71
|
+
textTransform?: 'titleCase' | 'upperCase' | 'lowerCase' | 'sentenceCase';
|
|
70
72
|
};
|
|
71
73
|
export type ActionType = 'create' | 'update' | 'delete';
|
|
72
74
|
export type InputStringValidation = StringValidation & {
|
|
@@ -89,6 +91,8 @@ export type Action = {
|
|
|
89
91
|
inputProperties?: ActionInput[];
|
|
90
92
|
parameters?: InputParameter[];
|
|
91
93
|
form?: Form;
|
|
94
|
+
customCode?: string;
|
|
95
|
+
preconditions?: object;
|
|
92
96
|
};
|
|
93
97
|
export type ObjectInstance = {
|
|
94
98
|
id: string;
|
|
@@ -167,17 +171,21 @@ export type FormEntry = InputParameterReference | Columns | Sections | Content;
|
|
|
167
171
|
export type Form = {
|
|
168
172
|
entries?: FormEntry[];
|
|
169
173
|
};
|
|
174
|
+
export type ActionInputType = 'button' | 'Section' | 'Columns' | 'Content' | 'Select' | 'TextField' | 'DateTime' | 'RepeatableField' | 'MultiSelect' | 'Decimal' | 'RichText' | 'Date' | 'Integer' | 'Image' | 'Object' | 'Time' | 'User';
|
|
170
175
|
/**
|
|
171
176
|
* Represents an object action inputProperty object.
|
|
172
177
|
*/
|
|
173
178
|
export type ActionInput = {
|
|
174
179
|
id?: string;
|
|
175
180
|
label?: string;
|
|
176
|
-
type?:
|
|
181
|
+
type?: ActionInputType;
|
|
177
182
|
key?: string;
|
|
178
183
|
initialValue?: string | number | SelectOption[] | SelectOption;
|
|
179
184
|
defaultToCurrentDate?: boolean;
|
|
180
185
|
defaultToCurrentTime?: boolean;
|
|
186
|
+
defaultValueCriteria?: object;
|
|
187
|
+
sortBy?: string;
|
|
188
|
+
orderBy?: 'asc' | 'desc' | 'ASC' | 'DESC';
|
|
181
189
|
html?: string;
|
|
182
190
|
labelPosition?: string;
|
|
183
191
|
placeholder?: string;
|
|
@@ -214,7 +222,7 @@ export type ActionInput = {
|
|
|
214
222
|
};
|
|
215
223
|
validate?: {
|
|
216
224
|
required?: boolean;
|
|
217
|
-
|
|
225
|
+
criteria?: object;
|
|
218
226
|
operator?: 'any' | 'all';
|
|
219
227
|
regexes?: RegexValidation[];
|
|
220
228
|
minLength?: number;
|
|
@@ -234,7 +242,7 @@ export type ActionInput = {
|
|
|
234
242
|
key: string;
|
|
235
243
|
label?: string;
|
|
236
244
|
components: ActionInput[];
|
|
237
|
-
};
|
|
245
|
+
}[];
|
|
238
246
|
/**
|
|
239
247
|
* An array of sub-components to be rendered inside columns.
|
|
240
248
|
*/
|
|
@@ -242,7 +250,7 @@ export type ActionInput = {
|
|
|
242
250
|
width: number;
|
|
243
251
|
currentWidth?: number;
|
|
244
252
|
components: ActionInput[];
|
|
245
|
-
};
|
|
253
|
+
}[];
|
|
246
254
|
};
|
|
247
255
|
export type ActionRequest = {
|
|
248
256
|
actionId: string;
|