@evoke-platform/context 1.4.0-dev.1 → 1.4.0-dev.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.
|
@@ -87,10 +87,13 @@ export type DocumentValidation = {
|
|
|
87
87
|
errorMessage?: string;
|
|
88
88
|
maxDocuments?: number;
|
|
89
89
|
minDocuments?: number;
|
|
90
|
+
};
|
|
91
|
+
export type DocumentParameterValidation = DocumentValidation & {
|
|
90
92
|
allowedFileExtensions?: string[];
|
|
91
93
|
maxSizeInKB?: number;
|
|
92
94
|
};
|
|
93
95
|
export type PropertyValidation = StringValidation | NumericValidation | DateValidation | CriteriaValidation | DocumentValidation;
|
|
96
|
+
export type ParameterValidation = InputStringValidation | NumericValidation | DateValidation | CriteriaValidation | DocumentParameterValidation;
|
|
94
97
|
export type Property = {
|
|
95
98
|
id: string;
|
|
96
99
|
name: string;
|
|
@@ -124,7 +127,7 @@ export type InputParameter = {
|
|
|
124
127
|
enum?: string[];
|
|
125
128
|
strictlyTrue?: boolean;
|
|
126
129
|
nonStrictEnum?: boolean;
|
|
127
|
-
validation?:
|
|
130
|
+
validation?: ParameterValidation;
|
|
128
131
|
objectId?: string;
|
|
129
132
|
relatedPropertyId?: string;
|
|
130
133
|
manyToManyPropertyId?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@evoke-platform/context",
|
|
3
|
-
"version": "1.4.0-dev.
|
|
3
|
+
"version": "1.4.0-dev.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",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"msw": "^1.3.1",
|
|
57
57
|
"react": "^18.2.0",
|
|
58
58
|
"react-dom": "^18.3.1",
|
|
59
|
-
"react-oidc-context": "^
|
|
59
|
+
"react-oidc-context": "^3.3.0",
|
|
60
60
|
"react-router-dom": "^6.16.0",
|
|
61
61
|
"sinon": "^18.0.0",
|
|
62
62
|
"typescript": "^5.3.3"
|