Comparing version 10.0.1 to 10.0.2
{ | ||
"name": "pg-boss", | ||
"version": "10.0.1", | ||
"version": "10.0.2", | ||
"description": "Queueing jobs in Postgres from Node.js like a boss", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -18,2 +18,4 @@ Queueing jobs in Postgres from Node.js like a boss. | ||
await boss.createQueue(queue) | ||
const id = await boss.send(queue, { arg1: 'read me' }) | ||
@@ -38,2 +40,3 @@ | ||
* Exactly-once job delivery | ||
* Create jobs within your existing database transaction | ||
* Backpressure-compatible polling workers | ||
@@ -40,0 +43,0 @@ * Cron scheduling |
import { EventEmitter } from 'events' | ||
declare namespace PgBoss { | ||
type JobStates = { | ||
@@ -110,9 +110,9 @@ created : 'created', | ||
} | ||
type InsertOptions = ConnectionOptions; | ||
type SendOptions = JobOptions & ExpirationOptions & RetentionOptions & RetryOptions & ConnectionOptions; | ||
type QueuePolicy = 'standard' | 'short' | 'singleton' | 'stately' | ||
type Queue = RetryOptions & ExpirationOptions & RetentionOptions & { name: string, policy?: QueuePolicy, deadLetter?: string } | ||
@@ -338,3 +338,3 @@ type QueueResult = Queue & { createdOn: Date, updatedOn: Date } | ||
deleteJob(name: string, ids: string[], options?: PgBoss.ConnectionOptions): Promise<void>; | ||
complete(name: string, id: string, options?: PgBoss.ConnectionOptions): Promise<void>; | ||
@@ -348,4 +348,4 @@ complete(name: string, id: string, data: object, options?: PgBoss.ConnectionOptions): Promise<void>; | ||
getJobById(name: string, id: string, options?: PgBoss.ConnectionOptions & { includeArchive: bool }): Promise<PgBoss.JobWithMetadata | null>; | ||
getJobById<T>(name: string, id: string, options?: PgBoss.ConnectionOptions & { includeArchive: boolean }): Promise<PgBoss.JobWithMetadata<T> | null>; | ||
createQueue(name: string, options?: PgBoss.Queue): Promise<void>; | ||
@@ -352,0 +352,0 @@ updateQueue(name: string, options?: PgBoss.Queue): Promise<void>; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
95772
80
3