@portqueue/dashboard 1.0.3 → 1.1.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.
@@ -52,8 +52,10 @@ export interface ActionPayloadDto {
52
52
  instanceKey?: string;
53
53
  jobId?: string;
54
54
  /**
55
- * Many job ids for a bulk retry / cancel / remove. The server applies them in **one transaction**,
56
- * so the batch either lands whole or not at all. Capped at {@link MAX_BATCH_IDS} ids per request.
55
+ * Many job ids for a bulk retry / cancel / remove. The server hands the whole set to **one**
56
+ * statement; an id it refuses (gone, or an `ACTIVE` row) is skipped rather than failing the rest,
57
+ * and `affected` says how many landed. Capped at core's `MAX_BATCH_IDS` per request — the client
58
+ * learns the number from `DashboardConfigDto.maxBatchIds`.
57
59
  */
58
60
  jobIds?: string[];
59
61
  scheduleId?: string;
@@ -38,6 +38,12 @@ export interface InstanceDto {
38
38
  createdAt: string;
39
39
  updatedAt: string;
40
40
  lastSeenAt: string;
41
+ /**
42
+ * The instant from which core accepts a remove for this instance — `lastSeenAt` plus core's
43
+ * removal window. Sent as an instant rather than the window itself, so the browser gates the
44
+ * action with a comparison and never does unit arithmetic or copies core's 30 minutes.
45
+ */
46
+ removableAfter: string;
41
47
  /**
42
48
  * The health of the **Node process** behind this instance, at its last heartbeat, both 0-100:
43
49
  * `cpuPercent` over the cores available to it, `memoryPercent` over V8's heap limit. Neither is
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@portqueue/dashboard",
3
- "version": "1.0.3",
3
+ "version": "1.1.0",
4
4
  "description": "Self-hostable React dashboard middleware for PortQueue.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://episclera.github.io/portqueue",
@@ -50,11 +50,11 @@
50
50
  "test:coverage": "node --experimental-vm-modules ../../node_modules/jest/bin/jest.js --coverage --passWithNoTests"
51
51
  },
52
52
  "peerDependencies": {
53
- "@portqueue/core": "^1.0.3"
53
+ "@portqueue/core": "^1.1.0"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@ant-design/icons": "^6.3.2",
57
- "@portqueue/core": "1.0.3",
57
+ "@portqueue/core": "1.1.0",
58
58
  "@portqueue/eslint-config": "*",
59
59
  "@portqueue/ui": "*",
60
60
  "@tanstack/react-query": "^5.62.0",