@integry/sdk 4.6.29 → 4.6.31

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@integry/sdk",
3
- "version": "4.6.29",
3
+ "version": "4.6.31",
4
4
  "description": "Integry SDK",
5
5
  "main": "dist/umd/index.umd.js",
6
6
  "module": "dist/esm/index.csm.js",
@@ -48,6 +48,8 @@ interface FieldDetails {
48
48
  options?: Option[];
49
49
  data_source?: any; // If needed, define this more specifically
50
50
  endpointURL?: string; // Add endpointURL here
51
+ option_key_path?: string;
52
+ value_key_path?: string;
51
53
  };
52
54
  };
53
55
  };
@@ -413,6 +415,10 @@ const ObjectField = (props: ObjectFieldProps) => {
413
415
  fieldDetails.meta.ui.ui_field?.type || 'DYNAMIC_DROPDOWN',
414
416
  fieldDetails.meta.machine_name,
415
417
  )}
418
+ optionKeyPath=${fieldDetails.meta.ui.ui_field?.value_key_path ||
419
+ ''}
420
+ valueKeyPath=${fieldDetails.meta.ui.ui_field?.option_key_path ||
421
+ ''}
416
422
  />
417
423
  `}
418
424
  ${fieldType === 'STATIC_DROPDOWN' &&
@@ -306,24 +306,8 @@ class FunctionForm extends Component<
306
306
  };
307
307
  });
308
308
 
309
- let isValid = false;
310
- if (dataType === 'number') {
311
- isValid = !Number.isNaN(Number(value));
312
- } else if (dataType === 'boolean') {
313
- isValid =
314
- value === 'true' ||
315
- value === 'false' ||
316
- value === '1' ||
317
- value === '0' ||
318
- value === true ||
319
- value === false ||
320
- value === 1 ||
321
- value === 0;
322
- } else if (dataType === 'string') {
323
- isValid = true;
324
- } else {
325
- isValid = true;
326
- }
309
+ const isValid = true;
310
+
327
311
  if (value && isValid) {
328
312
  this.setState({
329
313
  invalidFields: this.state.invalidFields.filter(