Files
backend/src/space-model/interfaces/single-subspace.interface.ts
ZaydSkaff 8503ee728d Refactor/space management (#404)
* 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
2025-06-11 13:15:21 +03:00

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[];
}