@ptc-org/nestjs-query-core 5.1.0-alpha.2 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -5,13 +5,13 @@ import { AbstractAssembler } from './abstract.assembler';
|
|
|
5
5
|
* Base assembler that uses class-transformer to transform to and from the DTO/Entity.
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class ClassTransformerAssembler<DTO, Entity extends DeepPartial<Entity>> extends AbstractAssembler<DTO, Entity, DeepPartial<DTO>, DeepPartial<Entity>, DeepPartial<DTO>, DeepPartial<Entity>> {
|
|
8
|
-
convertToDTO(entity: Entity): DTO
|
|
9
|
-
convertToEntity(dto: DTO): Entity
|
|
8
|
+
convertToDTO(entity: Entity): DTO | Promise<DTO>;
|
|
9
|
+
convertToEntity(dto: DTO): Entity | Promise<Entity>;
|
|
10
10
|
convertQuery(query: Query<DTO>): Query<Entity>;
|
|
11
11
|
convertAggregateQuery(aggregate: AggregateQuery<DTO>): AggregateQuery<Entity>;
|
|
12
12
|
convertAggregateResponse(aggregate: AggregateResponse<Entity>): AggregateResponse<DTO>;
|
|
13
|
-
convertToCreateEntity(create: DeepPartial<DTO>): DeepPartial<Entity
|
|
14
|
-
convertToUpdateEntity(create: DeepPartial<DTO>): DeepPartial<Entity
|
|
13
|
+
convertToCreateEntity(create: DeepPartial<DTO>): DeepPartial<Entity> | Promise<DeepPartial<Entity>>;
|
|
14
|
+
convertToUpdateEntity(create: DeepPartial<DTO>): DeepPartial<Entity> | Promise<DeepPartial<Entity>>;
|
|
15
15
|
convert<T>(cls: Class<T>, obj: object): T;
|
|
16
16
|
isConstructor(x: any): boolean;
|
|
17
17
|
toPlain(entityOrDto: Entity | DTO): object;
|