@forklaunch/core 0.9.3 → 0.9.4
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.
@@ -1,4 +1,5 @@
|
|
1
1
|
import { AnySchemaValidator, UnboxedObjectSchema, SchemaValidator, Schema } from '@forklaunch/validator';
|
2
|
+
import { EntityManager } from '@mikro-orm/core';
|
2
3
|
import { TypeboxSchemaValidator } from '@forklaunch/validator/typebox';
|
3
4
|
import { ZodSchemaValidator } from '@forklaunch/validator/zod';
|
4
5
|
import { InstanceTypeRecord } from '@forklaunch/common';
|
@@ -46,7 +47,7 @@ type ResponseDtoMapperConstructor<SchemaValidator extends AnySchemaValidator, Dt
|
|
46
47
|
* @template Dto - The type of the DTO object.
|
47
48
|
* @template Entity - The type of the entity object.
|
48
49
|
*/
|
49
|
-
type RequestDtoMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity = unknown> = new (schemaValidator: SchemaValidator) => {
|
50
|
+
type RequestDtoMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity = unknown> = new (schemaValidator: SchemaValidator, em: EntityManager) => {
|
50
51
|
dto: Dto;
|
51
52
|
_Entity: Entity;
|
52
53
|
deserializeDtoToEntity: DeserializeDtoToEntity;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { AnySchemaValidator, UnboxedObjectSchema, SchemaValidator, Schema } from '@forklaunch/validator';
|
2
|
+
import { EntityManager } from '@mikro-orm/core';
|
2
3
|
import { TypeboxSchemaValidator } from '@forklaunch/validator/typebox';
|
3
4
|
import { ZodSchemaValidator } from '@forklaunch/validator/zod';
|
4
5
|
import { InstanceTypeRecord } from '@forklaunch/common';
|
@@ -46,7 +47,7 @@ type ResponseDtoMapperConstructor<SchemaValidator extends AnySchemaValidator, Dt
|
|
46
47
|
* @template Dto - The type of the DTO object.
|
47
48
|
* @template Entity - The type of the entity object.
|
48
49
|
*/
|
49
|
-
type RequestDtoMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity = unknown> = new (schemaValidator: SchemaValidator) => {
|
50
|
+
type RequestDtoMapperConstructor<SchemaValidator extends AnySchemaValidator, Dto, Entity, DeserializeDtoToEntity = unknown> = new (schemaValidator: SchemaValidator, em: EntityManager) => {
|
50
51
|
dto: Dto;
|
51
52
|
_Entity: Entity;
|
52
53
|
deserializeDtoToEntity: DeserializeDtoToEntity;
|