@evoke-platform/context 1.4.0-dev.2 → 1.4.0-dev.4

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,7 +4,14 @@ export function paramsSerializer(params, options) {
4
4
  if (!validateParamKey(key) || !validateParamValue(value)) {
5
5
  continue;
6
6
  }
7
- searchParams.append(key, typeof value !== 'string' ? JSON.stringify(value) : value);
7
+ if (Array.isArray(value)) {
8
+ for (const item of value) {
9
+ searchParams.append(key, typeof item !== 'string' ? JSON.stringify(item) : item);
10
+ }
11
+ }
12
+ else {
13
+ searchParams.append(key, typeof value !== 'string' ? JSON.stringify(value) : value);
14
+ }
8
15
  }
9
16
  return searchParams.toString();
10
17
  }
@@ -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?: PropertyValidation | InputStringValidation;
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.2",
3
+ "version": "1.4.0-dev.4",
4
4
  "description": "Utilities that provide context to Evoke platform widgets",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",