message: chore(origin-backend-client-mocks): use IDevice instead of IDeviceWithRelationsId
diff: @@ -3,7 +3,6 @@ import {
  DeviceStatus,
  DeviceUpdateData,
  IDevice,
  - IDeviceWithRelationsIds,
  IExternalDeviceId,
  ISmartMeterRead,
  ISmartMeterReadWithStatus,
  @@ -14,28 +13,28 @@ import {
  } from '@energyweb/origin-backend-core';
  export class DeviceClientMock implements IDeviceClient {
  - private storage = new Map<number, IDeviceWithRelationsIds>();
  + private storage = new Map<number, IDevice>();
  private idCounter = 0;
  - async getByExternalId(id: IExternalDeviceId): Promise<IDeviceWithRelationsIds> {
  + async getByExternalId(id: IExternalDeviceId): Promise<IDevice> {
  return [...this.storage.values()].find((d) =>
  d.externalDeviceIds?.find((i) => i.type === id.type && i.id === id.id)
  );
  }
  - async getById(id: number): Promise<IDeviceWithRelationsIds> {
  + async getById(id: number): Promise<IDevice> {
  return this.storage.get(id);
  }
  - async getAll(withMeterStats: boolean): Promise<IDeviceWithRelationsIds[]> {
  + async getAll(withMeterStats: boolean): Promise<IDevice[]> {
  return [...this.storage.values()];
  }
  - async add(data: IDeviceWithRelationsIds): Promise<IDeviceWithRelationsIds> {
  + async add(data: IDevice): Promise<IDevice> {
  this.idCounter++;
  - const device: IDeviceWithRelationsIds = {
  + const device: IDevice = {
  ...data,
  id: this.idCounter,
  status: data.status ?? DeviceStatus.Submitted,
  @@ -81,10 +80,7 @@ export class DeviceClientMock implements IDeviceClient {
  this.storage.set(id, device);
  }
  - public async getSupplyBy(
  - facilityName: string,
  - status: number
  - ): Promise<IDeviceWithRelationsIds[]> {
  + public async getSupplyBy(facilityName: string, status: number): Promise<IDevice[]> {
  return [...this.storage.values()];
  }
  @@ -99,7 +95,7 @@ export class DeviceClientMock implements IDeviceClient {
  throw new Error('Method not implemented.');
  }
  - public async getMyDevices(withMeterStats: boolean): Promise<IDeviceWithRelationsIds[]> {
  + public async getMyDevices(withMeterStats: boolean): Promise<IDevice[]> {
  throw new Error('Method not implemented.');
  }
  }
  