mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-10 07:07:21 +00:00

* refactor: reducing used queries on get communities (#385) * refactor: fix create space logic (#394) * Remove unique constraint on subspace and product in SubspaceProductAllocationEntity; update product relation to nullable in NewTagEntity * refactor: fix create space logic * device model updated to include the fixes and final columns * updated space models to include suggested fixes, update final logic and column names * task: removing old references of the old tag-product relation * task: remove old use of tags * task: remove old tag & tag model usage * refactor: delete space * task: remove unused functions * fix lint rule
25 lines
825 B
TypeScript
25 lines
825 B
TypeScript
import { ModifyAction } from '@app/common/constants/modify-action.enum';
|
|
import {
|
|
SpaceModelProductAllocationEntity,
|
|
SubspaceModelEntity,
|
|
} from '@app/common/modules/space-model';
|
|
import { NewTagEntity } from '@app/common/modules/tag';
|
|
import { IUpdatedAllocations } from './subspace-product-allocation-update-result.interface';
|
|
import { ModifyTagDto } from 'src/space/dtos/tag/modify-tag.dto';
|
|
|
|
export interface IRelocatedAllocation {
|
|
allocation: SpaceModelProductAllocationEntity;
|
|
tags?: NewTagEntity[];
|
|
}
|
|
export interface ISingleSubspaceModel {
|
|
subspaceModel: SubspaceModelEntity;
|
|
action: ModifyAction;
|
|
tags?: ModifyTagDto[];
|
|
relocatedAllocations?: IRelocatedAllocation[];
|
|
}
|
|
|
|
export interface ISubspaceModelUpdates {
|
|
subspaceModels: ISingleSubspaceModel[];
|
|
updatedAllocations: IUpdatedAllocations[];
|
|
}
|