pg-boss 8.1.0 → 8.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/README.md +1 -1
- package/package.json +1 -1
- package/types.d.ts +19 -19
package/README.md
CHANGED
|
@@ -88,7 +88,7 @@ CREATE EXTENSION pgcrypto;
|
|
|
88
88
|
|
|
89
89
|
If you use a different database name, username or password, or want to run the test suite against a database that is running on a remote machine then you will need to edit the `test/config.json` file with the appropriate connection values.
|
|
90
90
|
|
|
91
|
-
You can then run the linter and test suite using
|
|
91
|
+
You can then run the linter and test suite using
|
|
92
92
|
|
|
93
93
|
```bash
|
|
94
94
|
npm test
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -48,14 +48,14 @@ declare namespace PgBoss {
|
|
|
48
48
|
|
|
49
49
|
type ConstructorOptions =
|
|
50
50
|
DatabaseOptions
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
& QueueOptions
|
|
52
|
+
& SchedulingOptions
|
|
53
|
+
& MaintenanceOptions
|
|
54
|
+
& ExpirationOptions
|
|
55
|
+
& RetentionOptions
|
|
56
|
+
& RetryOptions
|
|
57
|
+
& JobPollingOptions
|
|
58
|
+
& CompletionOptions
|
|
59
59
|
|
|
60
60
|
interface CompletionOptions {
|
|
61
61
|
onComplete?: boolean;
|
|
@@ -341,22 +341,22 @@ declare class PgBoss extends EventEmitter {
|
|
|
341
341
|
fetchCompleted<T>(name: string, batchSize: number, options: PgBoss.FetchOptions & { includeMetadata: true }): Promise<PgBoss.JobWithMetadata<T>[] | null>;
|
|
342
342
|
fetchCompleted<T>(name: string, batchSize: number, options: PgBoss.FetchOptions): Promise<PgBoss.Job<T>[] | null>;
|
|
343
343
|
|
|
344
|
-
cancel(id: string, options
|
|
345
|
-
cancel(ids: string[], options
|
|
344
|
+
cancel(id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
345
|
+
cancel(ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
346
346
|
|
|
347
|
-
resume(id: string, options
|
|
348
|
-
resume(ids: string[], options
|
|
347
|
+
resume(id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
348
|
+
resume(ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
349
349
|
|
|
350
|
-
complete(id: string, options
|
|
351
|
-
complete(id: string, data: object, options
|
|
352
|
-
complete(ids: string[], options
|
|
350
|
+
complete(id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
351
|
+
complete(id: string, data: object, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
352
|
+
complete(ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
353
353
|
|
|
354
|
-
fail(id: string, options
|
|
355
|
-
fail(id: string, data: object, options
|
|
356
|
-
fail(ids: string[], options
|
|
354
|
+
fail(id: string, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
355
|
+
fail(id: string, data: object, options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
356
|
+
fail(ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>;
|
|
357
357
|
|
|
358
358
|
getQueueSize(name: string, options?: object): Promise<number>;
|
|
359
|
-
getJobById(id: string, options
|
|
359
|
+
getJobById(id: string, options?: PgBoss.ConnectionOptions): Promise<PgBoss.JobWithMetadata | null>;
|
|
360
360
|
|
|
361
361
|
deleteQueue(name: string): Promise<void>;
|
|
362
362
|
deleteAllQueues(): Promise<void>;
|