@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.
@@ -17,7 +17,7 @@ export type LockReleaseInput = {
17
17
  export declare class LockNotFoundError extends Error {
18
18
  }
19
19
  export interface ILockRepository {
20
- acquire(input: LockAcquireInput): Promise<LockAcquireResult>;
21
- release(input: LockReleaseInput): Promise<void>;
22
- get(lockUid: string): Promise<LockItem | undefined>;
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
- get: (lockUid: string) => Promise<TLockEntry | undefined>;
13
- acquire: (input: LockAcquireInput) => Promise<LockAcquireResult>;
14
- release: (input: LockReleaseInput) => Promise<void>;
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
- get: (lockUid: string) => Promise<TLockEntry | undefined>;
1748
- acquire: (input: LockAcquireInput) => Promise<LockAcquireResult>;
1749
- release: (input: LockReleaseInput) => Promise<void>;
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
- acquire(input: LockAcquireInput): Promise<LockAcquireResult>;
3411
- release(input: LockReleaseInput): Promise<void>;
3412
- get(lockUid: string): Promise<LockItem | undefined>;
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
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@punks/backend-entity-manager",
3
- "version": "0.0.272",
3
+ "version": "0.0.273",
4
4
  "description": "",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
7
- "bin": {
8
- "punks": "dist/run.js"
9
- },
10
7
  "files": [
11
8
  "dist"
12
9
  ],