@camunda8/cli 4.2.1-alpha.1 → 4.2.1-alpha.3
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/core/update-check.d.ts +13 -1
- package/dist/core/update-check.d.ts.map +1 -1
- package/dist/core/update-check.js +23 -2
- package/dist/core/update-check.js.map +1 -1
- package/dist/default-plugins/cluster/c8ctl-plugin.js +33 -4
- package/dist/framework/command-registry.d.ts +73 -73
- package/package.json +1 -1
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
* per day, and usually zero.
|
|
17
17
|
*
|
|
18
18
|
* Design constraints:
|
|
19
|
-
* - Zero extra dependencies (uses
|
|
19
|
+
* - Zero extra dependencies (uses node:https + node:fs)
|
|
20
|
+
* - Never keeps the process alive: the socket is unref'd and destroyed on abort
|
|
20
21
|
* - Never delays command execution (fire-and-forget with AbortController)
|
|
21
22
|
* - Once-per-version notification (cache in the user data dir)
|
|
22
23
|
* - Notification output suppressed in JSON output mode; skipped entirely
|
|
@@ -37,6 +38,14 @@ export declare function detectChannel(version: string): string;
|
|
|
37
38
|
* a prerelease of the same major.minor.patch.
|
|
38
39
|
*/
|
|
39
40
|
export declare function isNewer(local: string, remote: string): boolean;
|
|
41
|
+
type Transport = (url: string, init: {
|
|
42
|
+
signal?: AbortSignal;
|
|
43
|
+
}) => Promise<Response>;
|
|
44
|
+
/**
|
|
45
|
+
* GET via node:https with an unref'd socket. Unlike global fetch, aborting
|
|
46
|
+
* destroys the in-flight connect, so the check never holds the process open.
|
|
47
|
+
*/
|
|
48
|
+
export declare const httpsTransport: Transport;
|
|
40
49
|
/**
|
|
41
50
|
* Fetch the latest version for a given dist-tag from the npm registry.
|
|
42
51
|
* Returns undefined on any failure (offline, timeout, etc.).
|
|
@@ -64,4 +73,7 @@ export declare function printUpdateNotification(): Promise<void>;
|
|
|
64
73
|
* Reset internal state (for testing only).
|
|
65
74
|
*/
|
|
66
75
|
export declare function _resetForTesting(): void;
|
|
76
|
+
/** Override the HTTP transport (for testing only). */
|
|
77
|
+
export declare function _setTransportForTesting(t: Transport): void;
|
|
78
|
+
export {};
|
|
67
79
|
//# sourceMappingURL=update-check.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-check.d.ts","sourceRoot":"","sources":["../../src/core/update-check.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"update-check.d.ts","sourceRoot":"","sources":["../../src/core/update-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AA4BH;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAErD;AAoCD;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAqC9D;AAED,KAAK,SAAS,GAAG,CAChB,GAAG,EAAE,MAAM,EACX,IAAI,EAAE;IAAE,MAAM,CAAC,EAAE,WAAW,CAAA;CAAE,KAC1B,OAAO,CAAC,QAAQ,CAAC,CAAC;AAEvB;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,SAc1B,CAAC;AAIJ;;;GAGG;AACH,wBAAsB,kBAAkB,CACvC,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAa7B;AAoBD;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,CA+C7D;AAED;;;;;;;;;GASG;AACH,wBAAsB,uBAAuB,IAAI,OAAO,CAAC,IAAI,CAAC,CAuC7D;AAqBD;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAMvC;AAED,sDAAsD;AACtD,wBAAgB,uBAAuB,CAAC,CAAC,EAAE,SAAS,GAAG,IAAI,CAE1D"}
|
|
@@ -16,13 +16,15 @@
|
|
|
16
16
|
* per day, and usually zero.
|
|
17
17
|
*
|
|
18
18
|
* Design constraints:
|
|
19
|
-
* - Zero extra dependencies (uses
|
|
19
|
+
* - Zero extra dependencies (uses node:https + node:fs)
|
|
20
|
+
* - Never keeps the process alive: the socket is unref'd and destroyed on abort
|
|
20
21
|
* - Never delays command execution (fire-and-forget with AbortController)
|
|
21
22
|
* - Once-per-version notification (cache in the user data dir)
|
|
22
23
|
* - Notification output suppressed in JSON output mode; skipped entirely
|
|
23
24
|
* in CI environments (no fetch, no cache write)
|
|
24
25
|
*/
|
|
25
26
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "node:fs";
|
|
27
|
+
import { get } from "node:https";
|
|
26
28
|
import { join } from "node:path";
|
|
27
29
|
import { getUserDataDir } from "./config.js";
|
|
28
30
|
import { isRecord } from "./logger.js";
|
|
@@ -122,13 +124,28 @@ export function isNewer(local, remote) {
|
|
|
122
124
|
}
|
|
123
125
|
return false;
|
|
124
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* GET via node:https with an unref'd socket. Unlike global fetch, aborting
|
|
129
|
+
* destroys the in-flight connect, so the check never holds the process open.
|
|
130
|
+
*/
|
|
131
|
+
export const httpsTransport = (url, { signal }) => new Promise((resolve, reject) => {
|
|
132
|
+
const req = get(url, { signal }, (res) => {
|
|
133
|
+
const chunks = [];
|
|
134
|
+
res.on("data", (c) => chunks.push(c));
|
|
135
|
+
res.on("end", () => resolve(new Response(Buffer.concat(chunks), { status: res.statusCode ?? 0 })));
|
|
136
|
+
res.on("error", reject);
|
|
137
|
+
});
|
|
138
|
+
req.on("socket", (socket) => socket.unref());
|
|
139
|
+
req.on("error", reject);
|
|
140
|
+
});
|
|
141
|
+
let transport = httpsTransport;
|
|
125
142
|
/**
|
|
126
143
|
* Fetch the latest version for a given dist-tag from the npm registry.
|
|
127
144
|
* Returns undefined on any failure (offline, timeout, etc.).
|
|
128
145
|
*/
|
|
129
146
|
export async function fetchRemoteVersion(channel, signal) {
|
|
130
147
|
try {
|
|
131
|
-
const res = await
|
|
148
|
+
const res = await transport(REGISTRY_URL, { signal });
|
|
132
149
|
if (!res.ok)
|
|
133
150
|
return undefined;
|
|
134
151
|
const data = await res.json();
|
|
@@ -281,4 +298,8 @@ export function _resetForTesting() {
|
|
|
281
298
|
resolveFetchSettled = undefined;
|
|
282
299
|
fetchController = undefined;
|
|
283
300
|
}
|
|
301
|
+
/** Override the HTTP transport (for testing only). */
|
|
302
|
+
export function _setTransportForTesting(t) {
|
|
303
|
+
transport = t;
|
|
304
|
+
}
|
|
284
305
|
//# sourceMappingURL=update-check.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-check.js","sourceRoot":"","sources":["../../src/core/update-check.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"update-check.js","sourceRoot":"","sources":["../../src/core/update-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE5D,oEAAoE;AACpE,MAAM,YAAY,GAAG,0CAA0C,CAAC;AAEhE,6EAA6E;AAC7E,MAAM,kBAAkB,GAAG,IAAI,CAAC;AAEhC,6DAA6D;AAC7D,MAAM,mBAAmB,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;AAEhD,gDAAgD;AAChD,MAAM,UAAU,GAAG,+BAA+B,CAAC;AASnD;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,OAAe;IAC5C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IAAI,IAAI,mBAAmB,CAAC;AACjD,CAAC;AAED;;GAEG;AACH,SAAS,uBAAuB;IAC/B,MAAM,KAAK,GAAG,SAAS,EAAE,IAAI,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,gBAAgB,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;AACxD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC/B,mBAAmB,GAAG,SAAS,CAAC;IAChC,YAAY,GAAG,SAAS,CAAC;IACzB,YAAY,GAAG,SAAS,CAAC;IACzB,mBAAmB,GAAG,SAAS,CAAC;IAChC,eAAe,GAAG,SAAS,CAAC;AAC7B,CAAC;AAED,sDAAsD;AACtD,MAAM,UAAU,uBAAuB,CAAC,CAAY;IACnD,SAAS,GAAG,CAAC,CAAC;AACf,CAAC"}
|
|
@@ -28,7 +28,11 @@ import { fileURLToPath } from 'node:url';
|
|
|
28
28
|
// Version aliases – dynamic discovery with package.json fallback
|
|
29
29
|
// ---------------------------------------------------------------------------
|
|
30
30
|
|
|
31
|
-
|
|
31
|
+
// C8CTL_C8RUN_DOWNLOAD_URL overrides the download center base URL (e.g. for
|
|
32
|
+
// mirrors or tests that must not depend on network access).
|
|
33
|
+
const DOWNLOAD_BASE_URL = (
|
|
34
|
+
process.env.C8CTL_C8RUN_DOWNLOAD_URL || 'https://downloads.camunda.cloud/release/camunda/c8run/'
|
|
35
|
+
).replace(/\/*$/, '/');
|
|
32
36
|
|
|
33
37
|
const _pluginPackageJson = JSON.parse(
|
|
34
38
|
readFileSync(join(dirname(fileURLToPath(import.meta.url)), 'package.json'), 'utf-8'),
|
|
@@ -484,7 +488,7 @@ function formatLocalVersionsHint(cacheDir) {
|
|
|
484
488
|
|
|
485
489
|
function getDownloadUrl(version) {
|
|
486
490
|
const platformInfo = getPlatformIdentifier();
|
|
487
|
-
return
|
|
491
|
+
return `${DOWNLOAD_BASE_URL}${version}/camunda8-run-${version}-${platformInfo.platform}-${platformInfo.arch}.${platformInfo.extension}`;
|
|
488
492
|
}
|
|
489
493
|
|
|
490
494
|
async function downloadC8Run(config) {
|
|
@@ -508,7 +512,8 @@ async function downloadC8Run(config) {
|
|
|
508
512
|
throw new Error(
|
|
509
513
|
`Cannot reach the Camunda Download Center.\n` +
|
|
510
514
|
`URL: ${downloadUrl}\n` +
|
|
511
|
-
`Error: ${error.message}\n
|
|
515
|
+
`Error: ${error.message}\n` +
|
|
516
|
+
`Please check your network connection and proxy settings, then try again.\n\n` +
|
|
512
517
|
formatLocalVersionsHint(cacheDir),
|
|
513
518
|
);
|
|
514
519
|
});
|
|
@@ -1169,7 +1174,10 @@ export function processStartSignature(pid) {
|
|
|
1169
1174
|
`$p = Get-CimInstance Win32_Process -Filter "ProcessId=${pid}"; ` +
|
|
1170
1175
|
`if ($p) { $p.CreationDate.ToString('o') }`,
|
|
1171
1176
|
],
|
|
1172
|
-
|
|
1177
|
+
// PowerShell start-up plus a CIM query can exceed 5 s on a loaded
|
|
1178
|
+
// machine; a timeout yields no signature, which makes a live orphan
|
|
1179
|
+
// look stopped, so allow a generous budget.
|
|
1180
|
+
{ encoding: 'utf-8', timeout: 10000 },
|
|
1173
1181
|
).trim();
|
|
1174
1182
|
return out ? `win:${out}` : null;
|
|
1175
1183
|
}
|
|
@@ -1556,6 +1564,18 @@ export function hasRunningClusterPidfiles(cacheDir) {
|
|
|
1556
1564
|
return liveRecordedPids(cacheDir).length > 0;
|
|
1557
1565
|
}
|
|
1558
1566
|
|
|
1567
|
+
// `c8run stop` only signals the cluster processes; Java can keep running for a
|
|
1568
|
+
// while as it shuts down. Wait for them to exit so a follow-up purge does not
|
|
1569
|
+
// mistake a shutting-down cluster for a live one. The timeout is a safety net.
|
|
1570
|
+
export async function waitForClusterExit(cacheDir, { timeoutMs = 60_000, intervalMs = 250 } = {}) {
|
|
1571
|
+
const deadline = Date.now() + timeoutMs;
|
|
1572
|
+
while (hasRunningClusterPidfiles(cacheDir)) {
|
|
1573
|
+
if (Date.now() >= deadline) return false;
|
|
1574
|
+
await sleep(intervalMs);
|
|
1575
|
+
}
|
|
1576
|
+
return true;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1559
1579
|
export async function stopC8Run(config, debug = false) {
|
|
1560
1580
|
const logger = getLogger();
|
|
1561
1581
|
const markerFile = join(config.cacheDir, ACTIVE_MARKER_FILE);
|
|
@@ -2797,6 +2817,15 @@ export const commands = {
|
|
|
2797
2817
|
`Version ${stoppedVersion} is no longer installed; its runtime data is already gone. Nothing to purge.`,
|
|
2798
2818
|
);
|
|
2799
2819
|
} else {
|
|
2820
|
+
// C8CTL_STOP_WAIT_TIMEOUT_MS is an internal override so tests can bound the wait.
|
|
2821
|
+
const override = Number(process.env.C8CTL_STOP_WAIT_TIMEOUT_MS);
|
|
2822
|
+
const timeoutMs = Number.isFinite(override) && override > 0 ? override : undefined;
|
|
2823
|
+
if (!(await waitForClusterExit(theCacheDir, { timeoutMs }))) {
|
|
2824
|
+
throw new Error(
|
|
2825
|
+
'Cluster processes are still shutting down, so runtime data was not purged. ' +
|
|
2826
|
+
`Once they have exited, run: c8ctl cluster purge ${stoppedVersion}`,
|
|
2827
|
+
);
|
|
2828
|
+
}
|
|
2800
2829
|
await purgeClusterData(theCacheDir, stoppedVersion);
|
|
2801
2830
|
}
|
|
2802
2831
|
}
|
|
@@ -222,7 +222,7 @@ export declare const GET_PD_FLAGS: {
|
|
|
222
222
|
export declare const GET_PD_POSITIONALS: readonly [{
|
|
223
223
|
readonly name: "key";
|
|
224
224
|
readonly required: true;
|
|
225
|
-
readonly validate:
|
|
225
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
226
226
|
}];
|
|
227
227
|
export declare const COMMAND_REGISTRY: {
|
|
228
228
|
list: {
|
|
@@ -280,7 +280,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
280
280
|
readonly processDefinitionId: {
|
|
281
281
|
readonly type: "string";
|
|
282
282
|
readonly description: "Filter by process definition ID";
|
|
283
|
-
readonly validate:
|
|
283
|
+
readonly validate: (value: string) => ProcessDefinitionId;
|
|
284
284
|
};
|
|
285
285
|
readonly name: {
|
|
286
286
|
readonly type: "string";
|
|
@@ -303,7 +303,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
303
303
|
readonly businessId: {
|
|
304
304
|
readonly type: "string";
|
|
305
305
|
readonly description: "Filter by Business ID (Camunda 8.9+)";
|
|
306
|
-
readonly validate:
|
|
306
|
+
readonly validate: (value: string) => BusinessId;
|
|
307
307
|
};
|
|
308
308
|
readonly bpmnProcessId: {
|
|
309
309
|
readonly type: "string";
|
|
@@ -316,12 +316,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
316
316
|
readonly processDefinitionId: {
|
|
317
317
|
readonly type: "string";
|
|
318
318
|
readonly description: "Filter by process definition ID";
|
|
319
|
-
readonly validate:
|
|
319
|
+
readonly validate: (value: string) => ProcessDefinitionId;
|
|
320
320
|
};
|
|
321
321
|
readonly processDefinitionKey: {
|
|
322
322
|
readonly type: "string";
|
|
323
323
|
readonly description: "Filter by process definition key";
|
|
324
|
-
readonly validate:
|
|
324
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
325
325
|
};
|
|
326
326
|
readonly state: {
|
|
327
327
|
readonly type: "string";
|
|
@@ -334,7 +334,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
334
334
|
readonly parentProcessInstanceKey: {
|
|
335
335
|
readonly type: "string";
|
|
336
336
|
readonly description: "Filter by parent process instance key";
|
|
337
|
-
readonly validate:
|
|
337
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
338
338
|
};
|
|
339
339
|
readonly iid: {
|
|
340
340
|
readonly type: "string";
|
|
@@ -353,12 +353,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
353
353
|
readonly processInstanceKey: {
|
|
354
354
|
readonly type: "string";
|
|
355
355
|
readonly description: "Filter by process instance key";
|
|
356
|
-
readonly validate:
|
|
356
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
357
357
|
};
|
|
358
358
|
readonly processDefinitionKey: {
|
|
359
359
|
readonly type: "string";
|
|
360
360
|
readonly description: "Filter by process definition key";
|
|
361
|
-
readonly validate:
|
|
361
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
362
362
|
};
|
|
363
363
|
readonly elementId: {
|
|
364
364
|
readonly type: "string";
|
|
@@ -377,12 +377,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
377
377
|
readonly processInstanceKey: {
|
|
378
378
|
readonly type: "string";
|
|
379
379
|
readonly description: "Filter by process instance key";
|
|
380
|
-
readonly validate:
|
|
380
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
381
381
|
};
|
|
382
382
|
readonly processDefinitionKey: {
|
|
383
383
|
readonly type: "string";
|
|
384
384
|
readonly description: "Filter by process definition key";
|
|
385
|
-
readonly validate:
|
|
385
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
386
386
|
};
|
|
387
387
|
readonly bpmnProcessId: {
|
|
388
388
|
readonly type: "string";
|
|
@@ -395,7 +395,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
395
395
|
readonly processDefinitionId: {
|
|
396
396
|
readonly type: "string";
|
|
397
397
|
readonly description: "Filter by process definition ID";
|
|
398
|
-
readonly validate:
|
|
398
|
+
readonly validate: (value: string) => ProcessDefinitionId;
|
|
399
399
|
};
|
|
400
400
|
readonly errorType: {
|
|
401
401
|
readonly type: "string";
|
|
@@ -426,12 +426,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
426
426
|
readonly processInstanceKey: {
|
|
427
427
|
readonly type: "string";
|
|
428
428
|
readonly description: "Filter by process instance key";
|
|
429
|
-
readonly validate:
|
|
429
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
430
430
|
};
|
|
431
431
|
readonly processDefinitionKey: {
|
|
432
432
|
readonly type: "string";
|
|
433
433
|
readonly description: "Filter by process definition key";
|
|
434
|
-
readonly validate:
|
|
434
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
435
435
|
};
|
|
436
436
|
readonly itype: {
|
|
437
437
|
readonly type: "string";
|
|
@@ -442,7 +442,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
442
442
|
readonly username: {
|
|
443
443
|
readonly type: "string";
|
|
444
444
|
readonly description: "Filter by username";
|
|
445
|
-
readonly validate:
|
|
445
|
+
readonly validate: (value: string) => Username;
|
|
446
446
|
};
|
|
447
447
|
readonly name: {
|
|
448
448
|
readonly type: "string";
|
|
@@ -477,7 +477,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
477
477
|
readonly tenantId: {
|
|
478
478
|
readonly type: "string";
|
|
479
479
|
readonly description: "Filter by tenant ID";
|
|
480
|
-
readonly validate:
|
|
480
|
+
readonly validate: (value: string) => TenantId;
|
|
481
481
|
};
|
|
482
482
|
readonly name: {
|
|
483
483
|
readonly type: "string";
|
|
@@ -573,7 +573,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
573
573
|
readonly processDefinitionId: {
|
|
574
574
|
readonly type: "string";
|
|
575
575
|
readonly description: "Filter by process definition ID";
|
|
576
|
-
readonly validate:
|
|
576
|
+
readonly validate: (value: string) => ProcessDefinitionId;
|
|
577
577
|
};
|
|
578
578
|
readonly name: {
|
|
579
579
|
readonly type: "string";
|
|
@@ -596,7 +596,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
596
596
|
readonly businessId: {
|
|
597
597
|
readonly type: "string";
|
|
598
598
|
readonly description: "Filter by Business ID (Camunda 8.9+)";
|
|
599
|
-
readonly validate:
|
|
599
|
+
readonly validate: (value: string) => BusinessId;
|
|
600
600
|
};
|
|
601
601
|
readonly bpmnProcessId: {
|
|
602
602
|
readonly type: "string";
|
|
@@ -609,12 +609,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
609
609
|
readonly processDefinitionId: {
|
|
610
610
|
readonly type: "string";
|
|
611
611
|
readonly description: "Filter by process definition ID";
|
|
612
|
-
readonly validate:
|
|
612
|
+
readonly validate: (value: string) => ProcessDefinitionId;
|
|
613
613
|
};
|
|
614
614
|
readonly processDefinitionKey: {
|
|
615
615
|
readonly type: "string";
|
|
616
616
|
readonly description: "Filter by process definition key";
|
|
617
|
-
readonly validate:
|
|
617
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
618
618
|
};
|
|
619
619
|
readonly state: {
|
|
620
620
|
readonly type: "string";
|
|
@@ -627,7 +627,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
627
627
|
readonly parentProcessInstanceKey: {
|
|
628
628
|
readonly type: "string";
|
|
629
629
|
readonly description: "Filter by parent process instance key";
|
|
630
|
-
readonly validate:
|
|
630
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
631
631
|
};
|
|
632
632
|
readonly iid: {
|
|
633
633
|
readonly type: "string";
|
|
@@ -646,12 +646,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
646
646
|
readonly processInstanceKey: {
|
|
647
647
|
readonly type: "string";
|
|
648
648
|
readonly description: "Filter by process instance key";
|
|
649
|
-
readonly validate:
|
|
649
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
650
650
|
};
|
|
651
651
|
readonly processDefinitionKey: {
|
|
652
652
|
readonly type: "string";
|
|
653
653
|
readonly description: "Filter by process definition key";
|
|
654
|
-
readonly validate:
|
|
654
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
655
655
|
};
|
|
656
656
|
readonly elementId: {
|
|
657
657
|
readonly type: "string";
|
|
@@ -670,12 +670,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
670
670
|
readonly processInstanceKey: {
|
|
671
671
|
readonly type: "string";
|
|
672
672
|
readonly description: "Filter by process instance key";
|
|
673
|
-
readonly validate:
|
|
673
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
674
674
|
};
|
|
675
675
|
readonly processDefinitionKey: {
|
|
676
676
|
readonly type: "string";
|
|
677
677
|
readonly description: "Filter by process definition key";
|
|
678
|
-
readonly validate:
|
|
678
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
679
679
|
};
|
|
680
680
|
readonly bpmnProcessId: {
|
|
681
681
|
readonly type: "string";
|
|
@@ -688,7 +688,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
688
688
|
readonly processDefinitionId: {
|
|
689
689
|
readonly type: "string";
|
|
690
690
|
readonly description: "Filter by process definition ID";
|
|
691
|
-
readonly validate:
|
|
691
|
+
readonly validate: (value: string) => ProcessDefinitionId;
|
|
692
692
|
};
|
|
693
693
|
readonly errorType: {
|
|
694
694
|
readonly type: "string";
|
|
@@ -719,12 +719,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
719
719
|
readonly processInstanceKey: {
|
|
720
720
|
readonly type: "string";
|
|
721
721
|
readonly description: "Filter by process instance key";
|
|
722
|
-
readonly validate:
|
|
722
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
723
723
|
};
|
|
724
724
|
readonly processDefinitionKey: {
|
|
725
725
|
readonly type: "string";
|
|
726
726
|
readonly description: "Filter by process definition key";
|
|
727
|
-
readonly validate:
|
|
727
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
728
728
|
};
|
|
729
729
|
readonly itype: {
|
|
730
730
|
readonly type: "string";
|
|
@@ -743,7 +743,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
743
743
|
readonly processInstanceKey: {
|
|
744
744
|
readonly type: "string";
|
|
745
745
|
readonly description: "Filter by process instance key";
|
|
746
|
-
readonly validate:
|
|
746
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
747
747
|
};
|
|
748
748
|
readonly scopeKey: {
|
|
749
749
|
readonly type: "string";
|
|
@@ -766,7 +766,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
766
766
|
readonly username: {
|
|
767
767
|
readonly type: "string";
|
|
768
768
|
readonly description: "Filter by username";
|
|
769
|
-
readonly validate:
|
|
769
|
+
readonly validate: (value: string) => Username;
|
|
770
770
|
};
|
|
771
771
|
readonly name: {
|
|
772
772
|
readonly type: "string";
|
|
@@ -801,7 +801,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
801
801
|
readonly tenantId: {
|
|
802
802
|
readonly type: "string";
|
|
803
803
|
readonly description: "Filter by tenant ID";
|
|
804
|
-
readonly validate:
|
|
804
|
+
readonly validate: (value: string) => TenantId;
|
|
805
805
|
};
|
|
806
806
|
readonly name: {
|
|
807
807
|
readonly type: "string";
|
|
@@ -849,19 +849,19 @@ export declare const COMMAND_REGISTRY: {
|
|
|
849
849
|
readonly type: "string";
|
|
850
850
|
readonly description: "Filter by process instance key";
|
|
851
851
|
readonly short: "k";
|
|
852
|
-
readonly validate:
|
|
852
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
853
853
|
};
|
|
854
854
|
readonly rootProcessInstanceKey: {
|
|
855
855
|
readonly type: "string";
|
|
856
856
|
readonly description: "Filter by root process instance key";
|
|
857
857
|
readonly short: "r";
|
|
858
|
-
readonly validate:
|
|
858
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
859
859
|
};
|
|
860
860
|
readonly elementInstanceKey: {
|
|
861
861
|
readonly type: "string";
|
|
862
862
|
readonly description: "Filter by element instance key";
|
|
863
863
|
readonly short: "e";
|
|
864
|
-
readonly validate:
|
|
864
|
+
readonly validate: (value: string) => ElementInstanceKey;
|
|
865
865
|
};
|
|
866
866
|
readonly elementId: {
|
|
867
867
|
readonly type: "string";
|
|
@@ -964,47 +964,47 @@ export declare const COMMAND_REGISTRY: {
|
|
|
964
964
|
"process-definition": readonly [{
|
|
965
965
|
readonly name: "key";
|
|
966
966
|
readonly required: true;
|
|
967
|
-
readonly validate:
|
|
967
|
+
readonly validate: (value: string) => ProcessDefinitionKey;
|
|
968
968
|
}];
|
|
969
969
|
"process-instance": readonly [{
|
|
970
970
|
readonly name: "key";
|
|
971
971
|
readonly required: true;
|
|
972
|
-
readonly validate:
|
|
972
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
973
973
|
}];
|
|
974
974
|
incident: readonly [{
|
|
975
975
|
readonly name: "key";
|
|
976
976
|
readonly required: true;
|
|
977
|
-
readonly validate:
|
|
977
|
+
readonly validate: (value: string) => IncidentKey;
|
|
978
978
|
}];
|
|
979
979
|
user: readonly [{
|
|
980
980
|
readonly name: "username";
|
|
981
981
|
readonly required: true;
|
|
982
|
-
readonly validate:
|
|
982
|
+
readonly validate: (value: string) => Username;
|
|
983
983
|
}];
|
|
984
984
|
role: readonly [{
|
|
985
985
|
readonly name: "roleId";
|
|
986
986
|
readonly required: true;
|
|
987
|
-
readonly validate:
|
|
987
|
+
readonly validate: (value: string) => RoleId;
|
|
988
988
|
}];
|
|
989
989
|
group: readonly [{
|
|
990
990
|
readonly name: "groupId";
|
|
991
991
|
readonly required: true;
|
|
992
|
-
readonly validate:
|
|
992
|
+
readonly validate: (value: string) => GroupId;
|
|
993
993
|
}];
|
|
994
994
|
tenant: readonly [{
|
|
995
995
|
readonly name: "tenantId";
|
|
996
996
|
readonly required: true;
|
|
997
|
-
readonly validate:
|
|
997
|
+
readonly validate: (value: string) => TenantId;
|
|
998
998
|
}];
|
|
999
999
|
authorization: readonly [{
|
|
1000
1000
|
readonly name: "authorizationKey";
|
|
1001
1001
|
readonly required: true;
|
|
1002
|
-
readonly validate:
|
|
1002
|
+
readonly validate: (value: string) => AuthorizationKey;
|
|
1003
1003
|
}];
|
|
1004
1004
|
"mapping-rule": readonly [{
|
|
1005
1005
|
readonly name: "mappingRuleId";
|
|
1006
1006
|
readonly required: true;
|
|
1007
|
-
readonly validate:
|
|
1007
|
+
readonly validate: (value: string) => MappingRuleId;
|
|
1008
1008
|
}];
|
|
1009
1009
|
form: readonly [{
|
|
1010
1010
|
readonly name: "key";
|
|
@@ -1030,7 +1030,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1030
1030
|
readonly processDefinitionId: {
|
|
1031
1031
|
readonly type: "string";
|
|
1032
1032
|
readonly description: "Process definition ID (BPMN process ID)";
|
|
1033
|
-
readonly validate:
|
|
1033
|
+
readonly validate: (value: string) => ProcessDefinitionId;
|
|
1034
1034
|
};
|
|
1035
1035
|
readonly id: {
|
|
1036
1036
|
readonly type: "string";
|
|
@@ -1043,7 +1043,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1043
1043
|
readonly businessId: {
|
|
1044
1044
|
readonly type: "string";
|
|
1045
1045
|
readonly description: "Business ID for the process instance (Camunda 8.9+)";
|
|
1046
|
-
readonly validate:
|
|
1046
|
+
readonly validate: (value: string) => BusinessId;
|
|
1047
1047
|
};
|
|
1048
1048
|
readonly variables: {
|
|
1049
1049
|
readonly type: "string";
|
|
@@ -1066,7 +1066,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1066
1066
|
readonly username: {
|
|
1067
1067
|
readonly type: "string";
|
|
1068
1068
|
readonly description: "Username";
|
|
1069
|
-
readonly validate:
|
|
1069
|
+
readonly validate: (value: string) => Username;
|
|
1070
1070
|
};
|
|
1071
1071
|
readonly name: {
|
|
1072
1072
|
readonly type: "string";
|
|
@@ -1085,7 +1085,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1085
1085
|
readonly roleId: {
|
|
1086
1086
|
readonly type: "string";
|
|
1087
1087
|
readonly description: "Role ID";
|
|
1088
|
-
readonly validate:
|
|
1088
|
+
readonly validate: (value: string) => RoleId;
|
|
1089
1089
|
};
|
|
1090
1090
|
readonly name: {
|
|
1091
1091
|
readonly type: "string";
|
|
@@ -1096,7 +1096,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1096
1096
|
readonly groupId: {
|
|
1097
1097
|
readonly type: "string";
|
|
1098
1098
|
readonly description: "Group ID";
|
|
1099
|
-
readonly validate:
|
|
1099
|
+
readonly validate: (value: string) => GroupId;
|
|
1100
1100
|
};
|
|
1101
1101
|
readonly name: {
|
|
1102
1102
|
readonly type: "string";
|
|
@@ -1107,7 +1107,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1107
1107
|
readonly tenantId: {
|
|
1108
1108
|
readonly type: "string";
|
|
1109
1109
|
readonly description: "Tenant ID";
|
|
1110
|
-
readonly validate:
|
|
1110
|
+
readonly validate: (value: string) => TenantId;
|
|
1111
1111
|
};
|
|
1112
1112
|
readonly name: {
|
|
1113
1113
|
readonly type: "string";
|
|
@@ -1118,7 +1118,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1118
1118
|
readonly mappingRuleId: {
|
|
1119
1119
|
readonly type: "string";
|
|
1120
1120
|
readonly description: "Mapping rule ID";
|
|
1121
|
-
readonly validate:
|
|
1121
|
+
readonly validate: (value: string) => MappingRuleId;
|
|
1122
1122
|
};
|
|
1123
1123
|
readonly name: {
|
|
1124
1124
|
readonly type: "string";
|
|
@@ -1181,32 +1181,32 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1181
1181
|
user: readonly [{
|
|
1182
1182
|
readonly name: "username";
|
|
1183
1183
|
readonly required: true;
|
|
1184
|
-
readonly validate:
|
|
1184
|
+
readonly validate: (value: string) => Username;
|
|
1185
1185
|
}];
|
|
1186
1186
|
role: readonly [{
|
|
1187
1187
|
readonly name: "roleId";
|
|
1188
1188
|
readonly required: true;
|
|
1189
|
-
readonly validate:
|
|
1189
|
+
readonly validate: (value: string) => RoleId;
|
|
1190
1190
|
}];
|
|
1191
1191
|
group: readonly [{
|
|
1192
1192
|
readonly name: "groupId";
|
|
1193
1193
|
readonly required: true;
|
|
1194
|
-
readonly validate:
|
|
1194
|
+
readonly validate: (value: string) => GroupId;
|
|
1195
1195
|
}];
|
|
1196
1196
|
tenant: readonly [{
|
|
1197
1197
|
readonly name: "tenantId";
|
|
1198
1198
|
readonly required: true;
|
|
1199
|
-
readonly validate:
|
|
1199
|
+
readonly validate: (value: string) => TenantId;
|
|
1200
1200
|
}];
|
|
1201
1201
|
authorization: readonly [{
|
|
1202
1202
|
readonly name: "authorizationKey";
|
|
1203
1203
|
readonly required: true;
|
|
1204
|
-
readonly validate:
|
|
1204
|
+
readonly validate: (value: string) => AuthorizationKey;
|
|
1205
1205
|
}];
|
|
1206
1206
|
"mapping-rule": readonly [{
|
|
1207
1207
|
readonly name: "mappingRuleId";
|
|
1208
1208
|
readonly required: true;
|
|
1209
|
-
readonly validate:
|
|
1209
|
+
readonly validate: (value: string) => MappingRuleId;
|
|
1210
1210
|
}];
|
|
1211
1211
|
};
|
|
1212
1212
|
};
|
|
@@ -1224,7 +1224,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1224
1224
|
"process-instance": readonly [{
|
|
1225
1225
|
readonly name: "key";
|
|
1226
1226
|
readonly required: true;
|
|
1227
|
-
readonly validate:
|
|
1227
|
+
readonly validate: (value: string) => ProcessInstanceKey;
|
|
1228
1228
|
}];
|
|
1229
1229
|
};
|
|
1230
1230
|
};
|
|
@@ -1245,7 +1245,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1245
1245
|
processDefinitionId: {
|
|
1246
1246
|
type: "string";
|
|
1247
1247
|
description: string;
|
|
1248
|
-
validate:
|
|
1248
|
+
validate: (value: string) => ProcessDefinitionId;
|
|
1249
1249
|
};
|
|
1250
1250
|
id: {
|
|
1251
1251
|
type: "string";
|
|
@@ -1258,7 +1258,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1258
1258
|
businessId: {
|
|
1259
1259
|
type: "string";
|
|
1260
1260
|
description: string;
|
|
1261
|
-
validate:
|
|
1261
|
+
validate: (value: string) => BusinessId;
|
|
1262
1262
|
};
|
|
1263
1263
|
variables: {
|
|
1264
1264
|
type: "string";
|
|
@@ -1293,12 +1293,12 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1293
1293
|
"user-task": readonly [{
|
|
1294
1294
|
readonly name: "key";
|
|
1295
1295
|
readonly required: true;
|
|
1296
|
-
readonly validate:
|
|
1296
|
+
readonly validate: (value: string) => UserTaskKey;
|
|
1297
1297
|
}];
|
|
1298
1298
|
job: readonly [{
|
|
1299
1299
|
readonly name: "key";
|
|
1300
1300
|
readonly required: true;
|
|
1301
|
-
readonly validate:
|
|
1301
|
+
readonly validate: (value: string) => JobKey;
|
|
1302
1302
|
}];
|
|
1303
1303
|
};
|
|
1304
1304
|
};
|
|
@@ -1324,7 +1324,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1324
1324
|
job: readonly [{
|
|
1325
1325
|
readonly name: "key";
|
|
1326
1326
|
readonly required: true;
|
|
1327
|
-
readonly validate:
|
|
1327
|
+
readonly validate: (value: string) => JobKey;
|
|
1328
1328
|
}];
|
|
1329
1329
|
};
|
|
1330
1330
|
};
|
|
@@ -1354,7 +1354,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1354
1354
|
job: readonly [{
|
|
1355
1355
|
readonly name: "key";
|
|
1356
1356
|
readonly required: true;
|
|
1357
|
-
readonly validate:
|
|
1357
|
+
readonly validate: (value: string) => JobKey;
|
|
1358
1358
|
}];
|
|
1359
1359
|
};
|
|
1360
1360
|
helpExamples: {
|
|
@@ -1412,7 +1412,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1412
1412
|
incident: readonly [{
|
|
1413
1413
|
readonly name: "key";
|
|
1414
1414
|
readonly required: true;
|
|
1415
|
-
readonly validate:
|
|
1415
|
+
readonly validate: (value: string) => IncidentKey;
|
|
1416
1416
|
}];
|
|
1417
1417
|
};
|
|
1418
1418
|
};
|
|
@@ -1503,7 +1503,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1503
1503
|
variable: readonly [{
|
|
1504
1504
|
readonly name: "key";
|
|
1505
1505
|
readonly required: true;
|
|
1506
|
-
readonly validate:
|
|
1506
|
+
readonly validate: (value: string) => ElementInstanceKey;
|
|
1507
1507
|
}];
|
|
1508
1508
|
};
|
|
1509
1509
|
};
|
|
@@ -1552,7 +1552,7 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1552
1552
|
businessId: {
|
|
1553
1553
|
type: "string";
|
|
1554
1554
|
description: string;
|
|
1555
|
-
validate:
|
|
1555
|
+
validate: (value: string) => BusinessId;
|
|
1556
1556
|
};
|
|
1557
1557
|
variables: {
|
|
1558
1558
|
type: "string";
|
|
@@ -1599,22 +1599,22 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1599
1599
|
role: readonly [{
|
|
1600
1600
|
readonly name: "roleId";
|
|
1601
1601
|
readonly required: true;
|
|
1602
|
-
readonly validate:
|
|
1602
|
+
readonly validate: (value: string) => RoleId;
|
|
1603
1603
|
}];
|
|
1604
1604
|
user: readonly [{
|
|
1605
1605
|
readonly name: "username";
|
|
1606
1606
|
readonly required: true;
|
|
1607
|
-
readonly validate:
|
|
1607
|
+
readonly validate: (value: string) => Username;
|
|
1608
1608
|
}];
|
|
1609
1609
|
group: readonly [{
|
|
1610
1610
|
readonly name: "groupId";
|
|
1611
1611
|
readonly required: true;
|
|
1612
|
-
readonly validate:
|
|
1612
|
+
readonly validate: (value: string) => GroupId;
|
|
1613
1613
|
}];
|
|
1614
1614
|
"mapping-rule": readonly [{
|
|
1615
1615
|
readonly name: "mappingRuleId";
|
|
1616
1616
|
readonly required: true;
|
|
1617
|
-
readonly validate:
|
|
1617
|
+
readonly validate: (value: string) => MappingRuleId;
|
|
1618
1618
|
}];
|
|
1619
1619
|
};
|
|
1620
1620
|
};
|
|
@@ -1653,22 +1653,22 @@ export declare const COMMAND_REGISTRY: {
|
|
|
1653
1653
|
role: readonly [{
|
|
1654
1654
|
readonly name: "roleId";
|
|
1655
1655
|
readonly required: true;
|
|
1656
|
-
readonly validate:
|
|
1656
|
+
readonly validate: (value: string) => RoleId;
|
|
1657
1657
|
}];
|
|
1658
1658
|
user: readonly [{
|
|
1659
1659
|
readonly name: "username";
|
|
1660
1660
|
readonly required: true;
|
|
1661
|
-
readonly validate:
|
|
1661
|
+
readonly validate: (value: string) => Username;
|
|
1662
1662
|
}];
|
|
1663
1663
|
group: readonly [{
|
|
1664
1664
|
readonly name: "groupId";
|
|
1665
1665
|
readonly required: true;
|
|
1666
|
-
readonly validate:
|
|
1666
|
+
readonly validate: (value: string) => GroupId;
|
|
1667
1667
|
}];
|
|
1668
1668
|
"mapping-rule": readonly [{
|
|
1669
1669
|
readonly name: "mappingRuleId";
|
|
1670
1670
|
readonly required: true;
|
|
1671
|
-
readonly validate:
|
|
1671
|
+
readonly validate: (value: string) => MappingRuleId;
|
|
1672
1672
|
}];
|
|
1673
1673
|
};
|
|
1674
1674
|
};
|