@hastehaul/common 2.7.0 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,7 +11,7 @@ export declare abstract class AbstractWorker {
11
11
  *
12
12
  * @param {string} queueName - The name of the job queue that this worker will process jobs from.
13
13
  */
14
- constructor(queueName: string, useReplicas?: boolean, opts?: WorkerOptions | undefined);
14
+ constructor(queueName: string, useReplicas?: boolean, opts?: Partial<WorkerOptions> | undefined);
15
15
  /**
16
16
  * Abstract method to process jobs retrieved from the job queue.
17
17
  *
@@ -14,7 +14,9 @@ export declare enum Status {
14
14
  DELETED = "deleted",// Deleted or removed
15
15
  EXPIRED = "expired",// Expired or no longer valid
16
16
  BLOCKED = "blocked",// Blocked from use
17
- SUSPENDED = "suspended"
17
+ SUSPENDED = "suspended",// Temporarily suspended
18
+ REJECTED = "rejected",// rejected
19
+ APPROVED = "approved"
18
20
  }
19
21
  export declare enum SmsStatus {
20
22
  SMS_PENDING = "sms-pending",// SMS is awaiting delivery
@@ -22,6 +22,8 @@ var Status;
22
22
  Status["EXPIRED"] = "expired";
23
23
  Status["BLOCKED"] = "blocked";
24
24
  Status["SUSPENDED"] = "suspended";
25
+ Status["REJECTED"] = "rejected";
26
+ Status["APPROVED"] = "approved";
25
27
  })(Status || (exports.Status = Status = {}));
26
28
  // Enum that defines various SMS status values
27
29
  var SmsStatus;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "2.7.0",
3
+ "version": "2.9.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",