index.ts 431 Bytes
export { default as DevicePicker } from './index.vue';
export { validateDevicePicker } from './utils';

export enum FormFieldsEnum {
  DEVICE_TYPE = 'deviceType',
  DEVICE_PROFILE = 'deviceProfileId',
  ORGANIZATION = 'organizationId',
  DEVICE = 'deviceId',
}

export interface DeviceCascadePickerValueType
  extends Record<Exclude<FormFieldsEnum, FormFieldsEnum.DEVICE>, string> {
  [FormFieldsEnum.DEVICE]: string | string[];
}