Vizzuality/landgriffon

View on GitHub
api/src/types/impact-table-entity.type.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { BusinessUnit } from 'modules/business-units/business-unit.entity';
import { AdminRegion } from 'modules/admin-regions/admin-region.entity';
import { Supplier } from 'modules/suppliers/supplier.entity';
import { Material } from 'modules/materials/material.entity';
import { LOCATION_TYPES } from 'modules/sourcing-locations/sourcing-location.entity';

export type ImpactTableEntityType =
  | BusinessUnit
  | AdminRegion
  | Supplier
  | Material
  | LocationTypeEntities;

class LocationTypeEntities {
  name: LOCATION_TYPES;
  children?: any;
  id?: any;
}