@furvester/upstream-sync 2.1.0 → 2.1.1
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/dist/index.d.ts +1 -6
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { EntityManager, MikroORM } from "@mikro-orm/postgresql";
|
|
2
2
|
import type { Logger } from "logforth";
|
|
3
3
|
import { type ConnectionOptions } from "rabbitmq-client";
|
|
4
4
|
import type { z } from "zod";
|
|
@@ -11,10 +11,6 @@ export type SyncManagerConfig = {
|
|
|
11
11
|
apiGatewayUrl: string;
|
|
12
12
|
apiKey: string;
|
|
13
13
|
};
|
|
14
|
-
export type SyncableEntityClass = EntityClass<{
|
|
15
|
-
id: string;
|
|
16
|
-
upstreamVersion: number;
|
|
17
|
-
}>;
|
|
18
14
|
export type ResyncResource = {
|
|
19
15
|
id: string;
|
|
20
16
|
version: number;
|
|
@@ -35,7 +31,6 @@ export type Resync<TResource extends ResyncResource, TDeserializer extends Resyn
|
|
|
35
31
|
basePath: string;
|
|
36
32
|
searchParams?: URLSearchParams;
|
|
37
33
|
deserializer: TDeserializer;
|
|
38
|
-
entityClass: SyncableEntityClass;
|
|
39
34
|
upsert: ResyncHandler<TResource>;
|
|
40
35
|
};
|
|
41
36
|
export type UpstreamEntity = {
|