Merge pull request #319 from SyncrowIOT/SP-1322

added search for spaces
This commit is contained in:
hannathkadher
2025-03-25 21:55:56 +04:00
committed by GitHub
5 changed files with 37 additions and 7 deletions

View File

@ -0,0 +1,13 @@
import { ApiProperty } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';
import { PaginationRequestGetListDto } from './pagination.request.dto';
export class PaginationRequestWithSearchGetListDto extends PaginationRequestGetListDto {
@IsOptional()
@ApiProperty({
name: 'search',
required: false,
description: 'Search for community or space name',
})
search?: string;
}

View File

@ -18,6 +18,12 @@ export interface TypeORMCustomModelFindAllQuery {
includeDisable?: boolean | string;
includeSpaces?: boolean;
}
export interface ExtendedTypeORMCustomModelFindAllQuery
extends TypeORMCustomModelFindAllQuery {
search?: string;
}
interface CustomFindAllQuery {
page?: number;
size?: number;