@punks/backend-entity-manager 0.0.139 → 0.0.140

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,6 +1,7 @@
1
1
  import { AppTenantEntity } from "./appTenant.entity";
2
+ export type FooEntityId = string;
2
3
  export declare class FooEntity {
3
- id: string;
4
+ id: FooEntityId;
4
5
  name: string;
5
6
  uid?: string;
6
7
  age?: number;
@@ -1,8 +1,8 @@
1
1
  import { EntityManagerRegistry } from "../../../../../..";
2
2
  import { NestEntitySnapshotService } from "../../../../base/entitySnapshotService";
3
- import { FooEntity } from "../../database/core/entities/foo.entity";
3
+ import { FooEntity, FooEntityId } from "../../database/core/entities/foo.entity";
4
4
  import { FooRepository } from "../../database/core/repositories/foo.repository";
5
- export declare class FooEntitySnapshotService extends NestEntitySnapshotService<FooEntity, string, FooRepository> {
5
+ export declare class FooEntitySnapshotService extends NestEntitySnapshotService<FooEntity, FooEntityId, FooRepository, any> {
6
6
  constructor(registry: EntityManagerRegistry);
7
- getSnapshot(id: FooEntity): Promise<any>;
7
+ getSnapshot(id: FooEntityId): Promise<any>;
8
8
  }
@@ -1,7 +1,7 @@
1
1
  import { EntitySnapshotService } from "../../../base/snapshot";
2
2
  import { EntityServiceLocator } from "../../../providers/services";
3
3
  import { EntityManagerRegistry } from "../ioc";
4
- export declare abstract class NestEntitySnapshotService<TEntity, TEntityId, TEntityRepository> extends EntitySnapshotService<TEntity, TEntityId> {
4
+ export declare abstract class NestEntitySnapshotService<TEntity, TEntityId, TEntityRepository, TEntitySnapshot> extends EntitySnapshotService<TEntityId, TEntitySnapshot> {
5
5
  protected readonly services: EntityServiceLocator<TEntity, unknown>;
6
6
  constructor(entityName: string, registry: EntityManagerRegistry);
7
7
  get repository(): TEntityRepository;
package/dist/index.d.ts CHANGED
@@ -1451,7 +1451,7 @@ declare abstract class NestEntitySerializer<TEntity, TEntityId> extends EntitySe
1451
1451
  constructor(entityName: string, registry: EntityManagerRegistry);
1452
1452
  }
1453
1453
 
1454
- declare abstract class NestEntitySnapshotService<TEntity, TEntityId, TEntityRepository> extends EntitySnapshotService<TEntity, TEntityId> {
1454
+ declare abstract class NestEntitySnapshotService<TEntity, TEntityId, TEntityRepository, TEntitySnapshot> extends EntitySnapshotService<TEntityId, TEntitySnapshot> {
1455
1455
  protected readonly services: EntityServiceLocator<TEntity, unknown>;
1456
1456
  constructor(entityName: string, registry: EntityManagerRegistry);
1457
1457
  get repository(): TEntityRepository;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.139",
3
+ "version": "0.0.140",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",