@upstash/qstash 2.3.1 → 2.4.0

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/index.d.mts CHANGED
@@ -191,6 +191,14 @@ declare class DLQ {
191
191
  * Remove a message from the dlq using it's `dlqId`
192
192
  */
193
193
  delete(dlqMessageId: string): Promise<void>;
194
+ /**
195
+ * Remove multiple messages from the dlq using their `dlqId`s
196
+ */
197
+ deleteMany(req: {
198
+ dlqIds: string[];
199
+ }): Promise<{
200
+ deleted: number;
201
+ }>;
194
202
  }
195
203
 
196
204
  type Schedule = {
package/dist/index.d.ts CHANGED
@@ -191,6 +191,14 @@ declare class DLQ {
191
191
  * Remove a message from the dlq using it's `dlqId`
192
192
  */
193
193
  delete(dlqMessageId: string): Promise<void>;
194
+ /**
195
+ * Remove multiple messages from the dlq using their `dlqId`s
196
+ */
197
+ deleteMany(req: {
198
+ dlqIds: string[];
199
+ }): Promise<{
200
+ deleted: number;
201
+ }>;
194
202
  }
195
203
 
196
204
  type Schedule = {
package/dist/index.js CHANGED
@@ -36,6 +36,19 @@ var DLQ = class {
36
36
  });
37
37
  });
38
38
  }
39
+ /**
40
+ * Remove multiple messages from the dlq using their `dlqId`s
41
+ */
42
+ deleteMany(req) {
43
+ return _chunkEROSIHWEjs.__async.call(void 0, this, null, function* () {
44
+ return yield this.http.request({
45
+ method: "DELETE",
46
+ path: ["v2", "dlq"],
47
+ headers: { "Content-Type": "application/json" },
48
+ body: JSON.stringify({ dlqIds: req.dlqIds })
49
+ });
50
+ });
51
+ }
39
52
  };
40
53
 
41
54
  // src/client/error.ts
package/dist/index.mjs CHANGED
@@ -36,6 +36,19 @@ var DLQ = class {
36
36
  });
37
37
  });
38
38
  }
39
+ /**
40
+ * Remove multiple messages from the dlq using their `dlqId`s
41
+ */
42
+ deleteMany(req) {
43
+ return __async(this, null, function* () {
44
+ return yield this.http.request({
45
+ method: "DELETE",
46
+ path: ["v2", "dlq"],
47
+ headers: { "Content-Type": "application/json" },
48
+ body: JSON.stringify({ dlqIds: req.dlqIds })
49
+ });
50
+ });
51
+ }
39
52
  };
40
53
 
41
54
  // src/client/error.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstash/qstash",
3
- "version": "v2.3.1",
3
+ "version": "v2.4.0",
4
4
  "description": "Official Typescript client for QStash",
5
5
  "repository": {
6
6
  "type": "git",