@punks/backend-entity-manager 0.0.272 → 0.0.273
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/cjs/index.js +6 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/abstractions/operations.d.ts +3 -3
- package/dist/cjs/types/platforms/nest/services/operations/operation-lock.repository.d.ts +3 -3
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/abstractions/operations.d.ts +3 -3
- package/dist/esm/types/platforms/nest/services/operations/operation-lock.repository.d.ts +3 -3
- package/dist/index.d.ts +6 -6
- package/package.json +1 -4
|
@@ -17,7 +17,7 @@ export type LockReleaseInput = {
|
|
|
17
17
|
export declare class LockNotFoundError extends Error {
|
|
18
18
|
}
|
|
19
19
|
export interface ILockRepository {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
acquireLock(input: LockAcquireInput): Promise<LockAcquireResult>;
|
|
21
|
+
releaseLock(input: LockReleaseInput): Promise<void>;
|
|
22
|
+
getLock(lockUid: string): Promise<LockItem | undefined>;
|
|
23
23
|
}
|
|
@@ -9,8 +9,8 @@ export declare class TypeormOperationLockRepository<TLockEntry extends LockItemC
|
|
|
9
9
|
private readonly repo;
|
|
10
10
|
private readonly entityClass;
|
|
11
11
|
constructor(repo: Repository<TLockEntry>, entityClass: EntityTarget<TLockEntry>);
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
getLock: (lockUid: string) => Promise<TLockEntry | undefined>;
|
|
13
|
+
acquireLock: (input: LockAcquireInput) => Promise<LockAcquireResult>;
|
|
14
|
+
releaseLock: (input: LockReleaseInput) => Promise<void>;
|
|
15
15
|
}
|
|
16
16
|
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1744,9 +1744,9 @@ declare class TypeormOperationLockRepository<TLockEntry extends LockItemClass> i
|
|
|
1744
1744
|
private readonly repo;
|
|
1745
1745
|
private readonly entityClass;
|
|
1746
1746
|
constructor(repo: Repository<TLockEntry>, entityClass: EntityTarget<TLockEntry>);
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1747
|
+
getLock: (lockUid: string) => Promise<TLockEntry | undefined>;
|
|
1748
|
+
acquireLock: (input: LockAcquireInput) => Promise<LockAcquireResult>;
|
|
1749
|
+
releaseLock: (input: LockReleaseInput) => Promise<void>;
|
|
1750
1750
|
}
|
|
1751
1751
|
|
|
1752
1752
|
declare class EmailService {
|
|
@@ -3407,9 +3407,9 @@ type LockReleaseInput = {
|
|
|
3407
3407
|
declare class LockNotFoundError extends Error {
|
|
3408
3408
|
}
|
|
3409
3409
|
interface ILockRepository {
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3410
|
+
acquireLock(input: LockAcquireInput): Promise<LockAcquireResult>;
|
|
3411
|
+
releaseLock(input: LockReleaseInput): Promise<void>;
|
|
3412
|
+
getLock(lockUid: string): Promise<LockItem | undefined>;
|
|
3413
3413
|
}
|
|
3414
3414
|
|
|
3415
3415
|
type AppSecretType = "string" | "number" | "boolean" | "json";
|
package/package.json
CHANGED