Vizzuality/landgriffon

View on GitHub
api/src/modules/scenario-interventions/intermediate-table-names/intermediate.table.names.ts

Summary

Maintainability
A
0 mins
Test Coverage
export const REPLACED_ADMIN_REGIONS_TABLE_NAME: string =
  'replaced_admin_regions';

export const REPLACED_MATERIALS_TABLE_NAME: string = 'replaced_materials';

export const REPLACED_BUSINESS_UNITS_TABLE_NAME: string =
  'replaced_business_units';

export const REPLACED_T1SUPPLIERS_TABLE_NAME: string = 'replaced_t1suppliers';

export const REPLACED_PRODUCERS_TABLE_NAME: string = 'replaced_producers';

type interventionId = { scenarioInterventionId: string };

export type ReplacedAdminRegion = { adminRegionId: string } & interventionId;

export type ReplacedMaterial = { materialId: string } & interventionId;

export type ReplacedBusinessUnits = {
  businessUnitId: string;
} & interventionId;

export type ReplacedT1Supplier = { t1SupplierId: string } & interventionId;

export type ReplacedProducer = { producerId: string } & interventionId;