batchImportModel.ts
746 Bytes
import { DeviceTypeEnum } from './deviceModel';
export interface ImportDeviceParams {
file: string;
tkDeviceProfileId?: string;
tbDeviceProfileId?: string;
organizationId?: string;
deviceTypeEnum?: DeviceTypeEnum;
gateWayTbDeviceId?: string;
isTcpDeviceProfile?: boolean;
mapping: {
columns: Record<'type', string>[];
delimiter: string;
header: boolean;
update: boolean;
};
tkDeviceMapping: {
tkDeviceProfileId: string;
tbDeviceProfileId: string;
organizationId: string;
deviceTypeEnum: DeviceTypeEnum;
gateWayTbDeviceId?: string;
isTcpDeviceProfile: boolean;
};
}
export interface ImportDeviceResponse {
created: number;
updated: number;
errors: number;
errorsList: [];
}