@camunda/ccma-saas-frontend 0.35.4 → 0.35.5
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/lib/esm/runtime/c4-console-data-store.js +3 -2
- package/lib/esm/runtime/use-cli-actions-api.d.ts +18 -0
- package/lib/esm/runtime/use-cli-actions-api.js +58 -0
- package/lib/esm/runtime/use-cli-cluster-api.d.ts +38 -0
- package/lib/esm/runtime/use-cli-cluster-api.js +53 -0
- package/lib/esm/runtime/use-cli-extras-api.d.ts +34 -0
- package/lib/esm/runtime/use-cli-extras-api.js +165 -0
- package/lib/esm/runtime/use-cli-org-api.d.ts +28 -0
- package/lib/esm/runtime/use-cli-org-api.js +87 -0
- package/lib/esm/runtime/use-cli-resources-api.d.ts +53 -0
- package/lib/esm/runtime/use-cli-resources-api.js +273 -0
- package/lib/esm/runtime/use-console-cli-api.d.ts +3 -3
- package/lib/esm/runtime/use-console-cli-api.js +3 -3
- package/lib/esm/widgets/cluster-client-details/c4-cluster-client-details-app.js +33 -13
- package/lib/esm/widgets/cluster-details/c4-cluster-details-app.js +31 -13
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-byom-clients-tab.js +8 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-clients-tab.js +13 -13
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +31 -18
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-encryption-tab.js +4 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-hot-backups-tab.js +7 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-ip-whitelist-tab.js +4 -3
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-overview-tab.js +15 -16
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-secure-connectivity-tab.js +8 -6
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-settings-tab.js +49 -38
- package/lib/esm/widgets/clusters/c4-clusters-page.js +14 -12
- package/lib/esm/widgets/create-cluster/c4-create-cluster-page.js +5 -2
- package/lib/esm/widgets/dashboard/c4-dashboard-app.js +5 -2
- package/lib/esm/widgets/environment/use-cluster-api-clients.js +4 -3
- package/lib/esm/widgets/job-worker/c4-job-worker-details-page.js +5 -3
- package/lib/esm/widgets/job-worker/c4-job-worker-overview-page.js +5 -3
- package/lib/esm/widgets/job-worker/c4-job-worker.helpers.d.ts +1 -1
- package/lib/esm/widgets/management/c4-management-app.js +16 -31
- package/package.json +2 -2
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ConsoleClusterService } from '@camunda/ccma-api';
|
|
3
2
|
import { BUSINESS_ID_UNIQUENESS_MIN_VERSION, BYOIDP_MIN_VERSION, checkVersion, ENFORCE_GROUPS_TASKLIST_V2_HIDDEN_MIN_VERSION, ENFORCE_GROUPS_TOGGLE_MIN_VERSION, IDENTITY_MANAGEMENT_MIN_VERSION, isAppIntegrationsVersionSupported, isSecretsFilterModeConfigurable, LINE_8_10_MIN_VERSION, MCP_MIN_VERSION, MULTI_TENANCY_TOGGLE_MIN_VERSION, OPTIMIZE_FILTERING_MIN_VERSION, RESOURCE_BASED_AUTHORIZATIONS_MIN_VERSION, SESSION_CONFIG_MIN_VERSION, SWAGGER_MIN_VERSION, TASKLIST_UPGRADE_BANNER_MIN_VERSION, VersionCheckOperator, } from '@camunda/ccma-shared-types';
|
|
4
3
|
import { Fragment, useCallback, useMemo, useState, } from 'react';
|
|
5
4
|
import { C4ClusterSettings } from '../../../components/c4-cluster-settings/c4-cluster-settings.js';
|
|
@@ -8,6 +7,8 @@ import { C4InlineNotification } from '../../../components/c4-inline-notification
|
|
|
8
7
|
import { buildClusterSsoCallbackUrl } from '../../../runtime/build-cluster-sso-callback-url.js';
|
|
9
8
|
import { buildClusterSwaggerUrl } from '../../../runtime/build-cluster-swagger-url.js';
|
|
10
9
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
10
|
+
import { useCliActionsApi } from '../../../runtime/use-cli-actions-api.js';
|
|
11
|
+
import { useCliClusterApi } from '../../../runtime/use-cli-cluster-api.js';
|
|
11
12
|
import { Link, Modal } from '../../../ui/index.js';
|
|
12
13
|
import { safeTranslate } from '../../../utils/safe-translate.js';
|
|
13
14
|
import { isClusterReconciliationPaused } from '../../is-cluster-reconciliation-paused.js';
|
|
@@ -30,6 +31,8 @@ function renderStrongTextTranslation(translateFn, key, fallback, options) {
|
|
|
30
31
|
}
|
|
31
32
|
export const C4ClusterDetailsSettingsTab = (props) => {
|
|
32
33
|
const runtime = useC4ConsoleRuntime();
|
|
34
|
+
const clusterActions = useCliActionsApi();
|
|
35
|
+
const clusterApi = useCliClusterApi();
|
|
33
36
|
const [isUpdatingAutoUpdate, setIsUpdatingAutoUpdate] = useState(false);
|
|
34
37
|
const [isUpdatingEnforceGroups, setIsUpdatingEnforceGroups] = useState(false);
|
|
35
38
|
const [isUpdatingLowLatency, setIsUpdatingLowLatency] = useState(false);
|
|
@@ -165,7 +168,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
165
168
|
});
|
|
166
169
|
setIsUpdatingAutoUpdate(true);
|
|
167
170
|
try {
|
|
168
|
-
await
|
|
171
|
+
await clusterApi.updateCluster({
|
|
169
172
|
config: props.apiConfig,
|
|
170
173
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
171
174
|
body: { autoUpdate: nextState },
|
|
@@ -185,7 +188,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
185
188
|
finally {
|
|
186
189
|
setIsUpdatingAutoUpdate(false);
|
|
187
190
|
}
|
|
188
|
-
}, [props, runtime.telemetry]);
|
|
191
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
189
192
|
const toggleEnforceGroups = useCallback(async () => {
|
|
190
193
|
if (!props.cluster)
|
|
191
194
|
return;
|
|
@@ -198,7 +201,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
198
201
|
});
|
|
199
202
|
setIsUpdatingEnforceGroups(true);
|
|
200
203
|
try {
|
|
201
|
-
await
|
|
204
|
+
await clusterApi.updateCluster({
|
|
202
205
|
config: props.apiConfig,
|
|
203
206
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
204
207
|
body: { enforceGroups: nextState },
|
|
@@ -218,14 +221,14 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
218
221
|
finally {
|
|
219
222
|
setIsUpdatingEnforceGroups(false);
|
|
220
223
|
}
|
|
221
|
-
}, [props, runtime.telemetry]);
|
|
224
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
222
225
|
const toggleLowLatency = useCallback(async () => {
|
|
223
226
|
if (!props.cluster)
|
|
224
227
|
return;
|
|
225
228
|
const nextState = !props.cluster.playMode;
|
|
226
229
|
setIsUpdatingLowLatency(true);
|
|
227
230
|
try {
|
|
228
|
-
await
|
|
231
|
+
await clusterApi.updateCluster({
|
|
229
232
|
config: props.apiConfig,
|
|
230
233
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
231
234
|
body: { playMode: nextState },
|
|
@@ -245,14 +248,14 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
245
248
|
finally {
|
|
246
249
|
setIsUpdatingLowLatency(false);
|
|
247
250
|
}
|
|
248
|
-
}, [props, runtime.telemetry]);
|
|
251
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
249
252
|
const toggleSwagger = useCallback(async () => {
|
|
250
253
|
if (!props.cluster)
|
|
251
254
|
return;
|
|
252
255
|
const nextState = !props.cluster.externalMetadata?.swagger;
|
|
253
256
|
setIsUpdatingSwagger(true);
|
|
254
257
|
try {
|
|
255
|
-
await
|
|
258
|
+
await clusterApi.updateCluster({
|
|
256
259
|
config: props.apiConfig,
|
|
257
260
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
258
261
|
body: { swagger: nextState },
|
|
@@ -272,13 +275,13 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
272
275
|
finally {
|
|
273
276
|
setIsUpdatingSwagger(false);
|
|
274
277
|
}
|
|
275
|
-
}, [props, runtime.telemetry]);
|
|
278
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
276
279
|
const updateSecretsFilterMode = useCallback(async (mode) => {
|
|
277
280
|
if (!props.cluster)
|
|
278
281
|
return;
|
|
279
282
|
setIsUpdatingSecretsFilterMode(true);
|
|
280
283
|
try {
|
|
281
|
-
await
|
|
284
|
+
await clusterApi.updateCluster({
|
|
282
285
|
config: props.apiConfig,
|
|
283
286
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
284
287
|
body: { secretsFilterMode: mode },
|
|
@@ -298,14 +301,14 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
298
301
|
finally {
|
|
299
302
|
setIsUpdatingSecretsFilterMode(false);
|
|
300
303
|
}
|
|
301
|
-
}, [props, runtime.telemetry]);
|
|
304
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
302
305
|
const toggleMcp = useCallback(async () => {
|
|
303
306
|
if (!props.cluster)
|
|
304
307
|
return;
|
|
305
308
|
const nextState = !props.cluster.mcpEnabled;
|
|
306
309
|
setIsUpdatingMcp(true);
|
|
307
310
|
try {
|
|
308
|
-
await
|
|
311
|
+
await clusterApi.updateCluster({
|
|
309
312
|
config: props.apiConfig,
|
|
310
313
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
311
314
|
body: { mcpEnabled: nextState },
|
|
@@ -325,14 +328,14 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
325
328
|
finally {
|
|
326
329
|
setIsUpdatingMcp(false);
|
|
327
330
|
}
|
|
328
|
-
}, [props, runtime.telemetry]);
|
|
331
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
329
332
|
const toggleBusinessIdUniqueness = useCallback(async () => {
|
|
330
333
|
if (!props.cluster)
|
|
331
334
|
return;
|
|
332
335
|
const nextState = !props.cluster.businessIdUniquenessEnabled;
|
|
333
336
|
setIsUpdatingBusinessIdUniqueness(true);
|
|
334
337
|
try {
|
|
335
|
-
await
|
|
338
|
+
await clusterApi.updateCluster({
|
|
336
339
|
config: props.apiConfig,
|
|
337
340
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
338
341
|
body: {
|
|
@@ -354,7 +357,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
354
357
|
finally {
|
|
355
358
|
setIsUpdatingBusinessIdUniqueness(false);
|
|
356
359
|
}
|
|
357
|
-
}, [props, runtime.telemetry]);
|
|
360
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
358
361
|
const toggleAppIntegrations = useCallback(async () => {
|
|
359
362
|
if (!props.cluster)
|
|
360
363
|
return;
|
|
@@ -362,7 +365,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
362
365
|
?.appIntegrationsEnabled;
|
|
363
366
|
setIsUpdatingAppIntegrations(true);
|
|
364
367
|
try {
|
|
365
|
-
await
|
|
368
|
+
await clusterApi.updateCluster({
|
|
366
369
|
config: props.apiConfig,
|
|
367
370
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
368
371
|
body: { appIntegrationsEnabled: nextState },
|
|
@@ -382,7 +385,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
382
385
|
finally {
|
|
383
386
|
setIsUpdatingAppIntegrations(false);
|
|
384
387
|
}
|
|
385
|
-
}, [props, runtime.telemetry]);
|
|
388
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
386
389
|
const toggleTasklistV2 = useCallback(async () => {
|
|
387
390
|
if (!props.cluster)
|
|
388
391
|
return;
|
|
@@ -390,7 +393,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
390
393
|
?.tasklistV2Enabled;
|
|
391
394
|
setIsUpdatingTasklistV2(true);
|
|
392
395
|
try {
|
|
393
|
-
await
|
|
396
|
+
await clusterApi.updateCluster({
|
|
394
397
|
config: props.apiConfig,
|
|
395
398
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
396
399
|
body: {
|
|
@@ -412,7 +415,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
412
415
|
finally {
|
|
413
416
|
setIsUpdatingTasklistV2(false);
|
|
414
417
|
}
|
|
415
|
-
}, [props, runtime.telemetry]);
|
|
418
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
416
419
|
const submitTasklistV2Upgrade = useCallback(async () => {
|
|
417
420
|
setTasklistV2UpgradeError(undefined);
|
|
418
421
|
try {
|
|
@@ -435,7 +438,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
435
438
|
setRbaError(false);
|
|
436
439
|
setIsUpdatingRba(true);
|
|
437
440
|
try {
|
|
438
|
-
await
|
|
441
|
+
await clusterApi.updateCluster({
|
|
439
442
|
config: props.apiConfig,
|
|
440
443
|
params: {
|
|
441
444
|
orgId: props.orgId,
|
|
@@ -461,7 +464,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
461
464
|
finally {
|
|
462
465
|
setIsUpdatingRba(false);
|
|
463
466
|
}
|
|
464
|
-
}, [props, runtime.telemetry]);
|
|
467
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
465
468
|
const openResourceBasedAuthorizationsConfirmation = useCallback(() => {
|
|
466
469
|
if (!props.cluster)
|
|
467
470
|
return;
|
|
@@ -474,7 +477,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
474
477
|
const updateIdentityBasedAuthorizations = useCallback(async (nextState) => {
|
|
475
478
|
setIsUpdatingIdentityAuthorizations(true);
|
|
476
479
|
try {
|
|
477
|
-
await
|
|
480
|
+
await clusterApi.updateCluster({
|
|
478
481
|
config: props.apiConfig,
|
|
479
482
|
params: {
|
|
480
483
|
orgId: props.orgId,
|
|
@@ -499,7 +502,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
499
502
|
finally {
|
|
500
503
|
setIsUpdatingIdentityAuthorizations(false);
|
|
501
504
|
}
|
|
502
|
-
}, [props, runtime.telemetry]);
|
|
505
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
503
506
|
const updateMultiTenancy = useCallback(async (nextState) => {
|
|
504
507
|
runtime.telemetry?.track?.(`multiTenancy:${nextState}:confirm`, {
|
|
505
508
|
message: `Confirm ${nextState} multi-tenancy`,
|
|
@@ -509,7 +512,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
509
512
|
});
|
|
510
513
|
setIsUpdatingMultiTenancy(true);
|
|
511
514
|
try {
|
|
512
|
-
await
|
|
515
|
+
await clusterApi.updateCluster({
|
|
513
516
|
config: props.apiConfig,
|
|
514
517
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
515
518
|
body: { multiTenancyEnabled: nextState },
|
|
@@ -529,7 +532,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
529
532
|
finally {
|
|
530
533
|
setIsUpdatingMultiTenancy(false);
|
|
531
534
|
}
|
|
532
|
-
}, [props, runtime.telemetry]);
|
|
535
|
+
}, [props, clusterApi, runtime.telemetry]);
|
|
533
536
|
// Session idle-timeout config (camunda-security-library ADR-0042,
|
|
534
537
|
// camunda-operator#5863). Both fields feed the generated Identity spec, so a
|
|
535
538
|
// change restarts the cluster — the caller wraps these in
|
|
@@ -543,7 +546,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
543
546
|
});
|
|
544
547
|
setIsUpdatingSessionTimeout(true);
|
|
545
548
|
try {
|
|
546
|
-
await
|
|
549
|
+
await clusterApi.updateCluster({
|
|
547
550
|
config: props.apiConfig,
|
|
548
551
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
549
552
|
body: { sessionMaxInactiveIntervalMinutes: minutes },
|
|
@@ -563,7 +566,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
563
566
|
finally {
|
|
564
567
|
setIsUpdatingSessionTimeout(false);
|
|
565
568
|
}
|
|
566
|
-
}, [props, runtime.telemetry, settingUpdateFailedFallback]);
|
|
569
|
+
}, [props, clusterApi, runtime.telemetry, settingUpdateFailedFallback]);
|
|
567
570
|
const updateSessionHeartbeatEnabled = useCallback(async (nextState) => {
|
|
568
571
|
runtime.telemetry?.track?.(`sessionHeartbeat:${nextState}:confirm`, {
|
|
569
572
|
message: `Confirm ${nextState} session heartbeat`,
|
|
@@ -573,7 +576,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
573
576
|
});
|
|
574
577
|
setIsUpdatingSessionHeartbeat(true);
|
|
575
578
|
try {
|
|
576
|
-
await
|
|
579
|
+
await clusterApi.updateCluster({
|
|
577
580
|
config: props.apiConfig,
|
|
578
581
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
579
582
|
body: { sessionHeartbeatEnabled: nextState },
|
|
@@ -593,7 +596,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
593
596
|
finally {
|
|
594
597
|
setIsUpdatingSessionHeartbeat(false);
|
|
595
598
|
}
|
|
596
|
-
}, [props, runtime.telemetry, settingUpdateFailedFallback]);
|
|
599
|
+
}, [props, clusterApi, runtime.telemetry, settingUpdateFailedFallback]);
|
|
597
600
|
// BYOIDP Phase 1 (#3190): toggle enable/disable. Config + secret are retained on
|
|
598
601
|
// disable (D4), so re-enabling needs no re-entry.
|
|
599
602
|
const updateExternalIdpEnabled = useCallback(async (nextState) => {
|
|
@@ -604,7 +607,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
604
607
|
});
|
|
605
608
|
setIsUpdatingExternalIdp(true);
|
|
606
609
|
try {
|
|
607
|
-
await
|
|
610
|
+
await clusterApi.updateCluster({
|
|
608
611
|
config: props.apiConfig,
|
|
609
612
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
610
613
|
body: { externalIdpEnabled: nextState },
|
|
@@ -624,7 +627,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
624
627
|
finally {
|
|
625
628
|
setIsUpdatingExternalIdp(false);
|
|
626
629
|
}
|
|
627
|
-
}, [props, runtime.telemetry, settingUpdateFailedFallback]);
|
|
630
|
+
}, [props, clusterApi, runtime.telemetry, settingUpdateFailedFallback]);
|
|
628
631
|
// BYOIDP (camunda-operator#5760): save config from the modal. Write the secret
|
|
629
632
|
// FIRST, then persist config and enable — the secret now lands via the cloud
|
|
630
633
|
// secret manager + ESO sync rather than a direct K8s Secret write, so it's
|
|
@@ -637,7 +640,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
637
640
|
setExternalIdpError(undefined);
|
|
638
641
|
try {
|
|
639
642
|
if (clientSecret) {
|
|
640
|
-
await
|
|
643
|
+
await clusterActions.updateExternalIdpSecret({
|
|
641
644
|
config: props.apiConfig,
|
|
642
645
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
643
646
|
body: { name: config.name, clientSecret },
|
|
@@ -649,7 +652,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
649
652
|
? new Date().toISOString()
|
|
650
653
|
: props.cluster?.externalIdpConfig?.secretUpdatedAt,
|
|
651
654
|
};
|
|
652
|
-
await
|
|
655
|
+
await clusterApi.updateCluster({
|
|
653
656
|
config: props.apiConfig,
|
|
654
657
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
655
658
|
body: { externalIdpEnabled: true, externalIdpConfig: nextConfig },
|
|
@@ -669,7 +672,13 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
669
672
|
finally {
|
|
670
673
|
setIsUpdatingExternalIdp(false);
|
|
671
674
|
}
|
|
672
|
-
}, [
|
|
675
|
+
}, [
|
|
676
|
+
clusterActions,
|
|
677
|
+
clusterApi,
|
|
678
|
+
props,
|
|
679
|
+
runtime.telemetry,
|
|
680
|
+
settingUpdateFailedFallback,
|
|
681
|
+
]);
|
|
673
682
|
// BYOIDP (#9864): remove config, CR entry, and secret in one call. The toggle
|
|
674
683
|
// keeps the config on purpose (D4), so this is the only way back to a cluster
|
|
675
684
|
// that has never been configured.
|
|
@@ -680,7 +689,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
680
689
|
});
|
|
681
690
|
setIsUpdatingExternalIdp(true);
|
|
682
691
|
try {
|
|
683
|
-
await
|
|
692
|
+
await clusterActions.deleteExternalIdp({
|
|
684
693
|
config: props.apiConfig,
|
|
685
694
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
686
695
|
});
|
|
@@ -698,7 +707,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
698
707
|
finally {
|
|
699
708
|
setIsUpdatingExternalIdp(false);
|
|
700
709
|
}
|
|
701
|
-
}, [props, runtime.telemetry, settingUpdateFailedFallback]);
|
|
710
|
+
}, [clusterActions, props, runtime.telemetry, settingUpdateFailedFallback]);
|
|
702
711
|
const openIdentityBasedAuthorizationsConfirmation = useCallback(() => {
|
|
703
712
|
if (!props.cluster)
|
|
704
713
|
return;
|
|
@@ -742,7 +751,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
742
751
|
const handleOptimizeFilteringToggle = useCallback(async (enabled) => {
|
|
743
752
|
await applyWithRestartConfirmAsync(async () => {
|
|
744
753
|
try {
|
|
745
|
-
await
|
|
754
|
+
await clusterApi.updateCluster({
|
|
746
755
|
config: props.apiConfig,
|
|
747
756
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
748
757
|
body: { optimizeFiltering: enabled ? {} : null },
|
|
@@ -756,6 +765,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
756
765
|
});
|
|
757
766
|
}, [
|
|
758
767
|
props.apiConfig,
|
|
768
|
+
clusterApi,
|
|
759
769
|
props.orgId,
|
|
760
770
|
props.clusterId,
|
|
761
771
|
props.onReloadCluster,
|
|
@@ -765,7 +775,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
765
775
|
const handleOptimizeFilteringSave = useCallback(async (config) => {
|
|
766
776
|
await applyWithRestartConfirmAsync(async () => {
|
|
767
777
|
try {
|
|
768
|
-
await
|
|
778
|
+
await clusterApi.updateCluster({
|
|
769
779
|
config: props.apiConfig,
|
|
770
780
|
params: { orgId: props.orgId, clusterId: props.clusterId },
|
|
771
781
|
body: { optimizeFiltering: config },
|
|
@@ -778,6 +788,7 @@ export const C4ClusterDetailsSettingsTab = (props) => {
|
|
|
778
788
|
});
|
|
779
789
|
}, [
|
|
780
790
|
props.apiConfig,
|
|
791
|
+
clusterApi,
|
|
781
792
|
props.orgId,
|
|
782
793
|
props.clusterId,
|
|
783
794
|
props.onReloadCluster,
|
|
@@ -16,6 +16,9 @@ import { useC4ConsoleRuntime, useC4FeatureFlag, } from '../../runtime/c4-console
|
|
|
16
16
|
import { CLUSTER_CREATION_BLOCKED_FLAG } from '../../runtime/cluster-creation-blocked.js';
|
|
17
17
|
import { SELF_MANAGED_MIGRATION_FLAG } from '../../runtime/self-managed-migration.js';
|
|
18
18
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
19
|
+
import { useCliActionsApi } from '../../runtime/use-cli-actions-api.js';
|
|
20
|
+
import { useCliClusterApi } from '../../runtime/use-cli-cluster-api.js';
|
|
21
|
+
import { useCliResourcesApi } from '../../runtime/use-cli-resources-api.js';
|
|
19
22
|
import { Checkbox, Modal, Stack, TextInput } from '../../ui/index.js';
|
|
20
23
|
import { Select, SelectItem } from '../../ui/families.js';
|
|
21
24
|
import { isMigrationLocked } from '../../utils/migration-view.js';
|
|
@@ -284,6 +287,9 @@ function mergePermissions(base, override) {
|
|
|
284
287
|
export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStartedHref, onNavigate, translations, permissionsOverride, clusterCapMessage, isClusterPaused: isClusterPausedOverride, isRunningOnUnsupportedGeneration: isRunningOnUnsupportedGenerationOverride, onRequestAssignTag, onRequestDeleteCluster, onRequestWakeCluster, onRequestFailoverCluster, onNeedsReload, }) => {
|
|
285
288
|
const resolvedGettingStartedHref = useMemo(() => getC4ClustersGettingStartedHref(gettingStartedHref), [gettingStartedHref]);
|
|
286
289
|
const runtime = useC4ConsoleRuntime();
|
|
290
|
+
const clusterActions = useCliActionsApi();
|
|
291
|
+
const clusterApi = useCliClusterApi();
|
|
292
|
+
const resourcesApi = useCliResourcesApi();
|
|
287
293
|
const clusterCreationBlocked = useC4FeatureFlag(CLUSTER_CREATION_BLOCKED_FLAG);
|
|
288
294
|
const data = useC4ConsoleData();
|
|
289
295
|
const authz = useC4ConsoleAuthz({ orgId });
|
|
@@ -798,8 +804,7 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
798
804
|
wakeInFlight.current = true;
|
|
799
805
|
void (async () => {
|
|
800
806
|
try {
|
|
801
|
-
|
|
802
|
-
await ConsoleClusterService.wakeCluster({
|
|
807
|
+
await clusterActions.wakeCluster({
|
|
803
808
|
config: apiConfig,
|
|
804
809
|
params: { orgId, clusterId },
|
|
805
810
|
});
|
|
@@ -857,11 +862,11 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
857
862
|
let cancelled = false;
|
|
858
863
|
setFailoverBackupsLoading(true);
|
|
859
864
|
setFailoverBackupsError(false);
|
|
860
|
-
|
|
861
|
-
.
|
|
865
|
+
resourcesApi.backups
|
|
866
|
+
.getHotBackups({
|
|
862
867
|
config: apiConfig,
|
|
863
868
|
params: { orgId, clusterId: failoverTarget.clusterId },
|
|
864
|
-
})
|
|
869
|
+
})
|
|
865
870
|
.then((backups) => {
|
|
866
871
|
if (cancelled)
|
|
867
872
|
return;
|
|
@@ -880,7 +885,7 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
880
885
|
return () => {
|
|
881
886
|
cancelled = true;
|
|
882
887
|
};
|
|
883
|
-
}, [failoverTarget, failoverModalOpen, orgId, apiConfig]);
|
|
888
|
+
}, [failoverTarget, failoverModalOpen, orgId, apiConfig, resourcesApi]);
|
|
884
889
|
const isClusterPausedFallback = (clusterId) => {
|
|
885
890
|
const status = clusterStatusById.get(clusterId);
|
|
886
891
|
return status === 'suspended';
|
|
@@ -982,8 +987,7 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
982
987
|
setDeleteError(undefined);
|
|
983
988
|
setDeleteBusy(true);
|
|
984
989
|
try {
|
|
985
|
-
|
|
986
|
-
await ConsoleClusterService.deleteCluster({
|
|
990
|
+
await clusterActions.deleteCluster({
|
|
987
991
|
config: apiConfig,
|
|
988
992
|
params: { orgId, clusterId: deleteTarget.clusterId },
|
|
989
993
|
});
|
|
@@ -1015,8 +1019,7 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
1015
1019
|
setTagError(undefined);
|
|
1016
1020
|
setTagBusy(true);
|
|
1017
1021
|
try {
|
|
1018
|
-
|
|
1019
|
-
await ConsoleClusterService.updateCluster({
|
|
1022
|
+
await clusterApi.updateCluster({
|
|
1020
1023
|
config: apiConfig,
|
|
1021
1024
|
params: { orgId, clusterId: tagTarget.clusterId },
|
|
1022
1025
|
body: {
|
|
@@ -1064,8 +1067,7 @@ export const C4ClustersPage = observer(({ orgId, scope = 'cluster', gettingStart
|
|
|
1064
1067
|
setFailoverError(undefined);
|
|
1065
1068
|
setFailoverBusy(true);
|
|
1066
1069
|
try {
|
|
1067
|
-
const
|
|
1068
|
-
const result = await ConsoleClusterService.failoverCluster({
|
|
1070
|
+
const result = await clusterActions.failoverCluster({
|
|
1069
1071
|
config: apiConfig,
|
|
1070
1072
|
params: {
|
|
1071
1073
|
orgId,
|
|
@@ -17,6 +17,7 @@ import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
|
|
|
17
17
|
import { useC4ConsoleRuntime, useC4FeatureFlag, } from '../../runtime/c4-console-runtime-context.js';
|
|
18
18
|
import { SELF_MANAGED_MIGRATION_FLAG } from '../../runtime/self-managed-migration.js';
|
|
19
19
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
20
|
+
import { useCliActionsApi } from '../../runtime/use-cli-actions-api.js';
|
|
20
21
|
import { Link, Stack } from '../../ui/index.js';
|
|
21
22
|
import { buildMigrationCreateName, isValidAwsRoleArn, MIGRATION_NAME_MAX_LENGTH, MIGRATION_ROLE_ARN_MAX_LENGTH, } from '../../utils/migration-workaround.js';
|
|
22
23
|
import { safeTranslate } from '../../utils/safe-translate.js';
|
|
@@ -406,6 +407,7 @@ export function buildCreateClusterTranslations(t) {
|
|
|
406
407
|
}
|
|
407
408
|
export const C4CreateClusterPage = observer(({ orgId, afterCreateModalUrl, talkToAnExpertUrl, externalLinks, onNavigate, duplicateOfClusterId: sourceClusterId, }) => {
|
|
408
409
|
const runtime = useC4ConsoleRuntime();
|
|
410
|
+
const clusterActions = useCliActionsApi();
|
|
409
411
|
const data = useC4ConsoleData();
|
|
410
412
|
const authz = useC4ConsoleAuthz({ orgId });
|
|
411
413
|
const resolvedTalkToAnExpertUrl = useMemo(() => talkToAnExpertUrl ??
|
|
@@ -968,7 +970,7 @@ export const C4CreateClusterPage = observer(({ orgId, afterCreateModalUrl, talkT
|
|
|
968
970
|
};
|
|
969
971
|
try {
|
|
970
972
|
if (sourceClusterId) {
|
|
971
|
-
const response = await
|
|
973
|
+
const response = await clusterActions.duplicateCluster({
|
|
972
974
|
params: { orgId, clusterId: sourceClusterId },
|
|
973
975
|
body: { ...body, replaceSource },
|
|
974
976
|
config: apiConfig,
|
|
@@ -997,7 +999,7 @@ export const C4CreateClusterPage = observer(({ orgId, afterCreateModalUrl, talkT
|
|
|
997
999
|
}
|
|
998
1000
|
return { success: true, clusterId: response.clusterId };
|
|
999
1001
|
}
|
|
1000
|
-
const response = await
|
|
1002
|
+
const response = await clusterActions.createCluster({
|
|
1001
1003
|
params: { orgId },
|
|
1002
1004
|
body,
|
|
1003
1005
|
config: apiConfig,
|
|
@@ -1015,6 +1017,7 @@ export const C4CreateClusterPage = observer(({ orgId, afterCreateModalUrl, talkT
|
|
|
1015
1017
|
}, [
|
|
1016
1018
|
apiConfig,
|
|
1017
1019
|
carryOverStepLabels,
|
|
1020
|
+
clusterActions,
|
|
1018
1021
|
clusterTtlEnabled,
|
|
1019
1022
|
migrationAvailable,
|
|
1020
1023
|
orgId,
|
|
@@ -4,7 +4,7 @@ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { HdpService } from '@camunda/ccma-api';
|
|
8
8
|
import { USAGE_SALES_PLAN_TYPES, } from '@camunda/ccma-shared-types';
|
|
9
9
|
import { observer } from 'mobx-react-lite';
|
|
10
10
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
@@ -17,6 +17,7 @@ import { useC4ConsoleData } from '../../runtime/c4-console-data-context.js';
|
|
|
17
17
|
import { useC4ConsoleRuntime, useC4FeatureFlag, } from '../../runtime/c4-console-runtime-context.js';
|
|
18
18
|
import { CLUSTER_CREATION_BLOCKED_FLAG } from '../../runtime/cluster-creation-blocked.js';
|
|
19
19
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
20
|
+
import { useCliExtrasApi } from '../../runtime/use-cli-extras-api.js';
|
|
20
21
|
import { safeTranslate } from '../../utils/safe-translate.js';
|
|
21
22
|
import { isClusterReconciliationPaused } from '../is-cluster-reconciliation-paused.js';
|
|
22
23
|
const DAY = 24 * 60 * 60 * 1000;
|
|
@@ -110,6 +111,7 @@ export const C4DashboardApp = observer((props) => {
|
|
|
110
111
|
const authz = useC4ConsoleAuthz({ orgId });
|
|
111
112
|
const data = useC4ConsoleData();
|
|
112
113
|
const runtime = useC4ConsoleRuntime();
|
|
114
|
+
const cliExtras = useCliExtrasApi();
|
|
113
115
|
const clusterCreationBlocked = useC4FeatureFlag(CLUSTER_CREATION_BLOCKED_FLAG);
|
|
114
116
|
const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
|
|
115
117
|
const externalUrls = useMemo(() => getC4DashboardUrls({ orgId, overrides: urls }), [orgId, urls]);
|
|
@@ -230,7 +232,7 @@ export const C4DashboardApp = observer((props) => {
|
|
|
230
232
|
decisionInstances: entry.di,
|
|
231
233
|
taskUsers: entry.tu,
|
|
232
234
|
}))
|
|
233
|
-
: await
|
|
235
|
+
: await cliExtras.getValueMetricsPerDays({
|
|
234
236
|
config: apiConfig,
|
|
235
237
|
params: { orgId, days: USAGE_DAYS },
|
|
236
238
|
});
|
|
@@ -252,6 +254,7 @@ export const C4DashboardApp = observer((props) => {
|
|
|
252
254
|
};
|
|
253
255
|
}, [
|
|
254
256
|
apiConfig,
|
|
257
|
+
cliExtras,
|
|
255
258
|
hostProvidesBilling,
|
|
256
259
|
licensingModelKnown,
|
|
257
260
|
orgId,
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
4
4
|
* You may not use this file except in compliance with the commercial license.
|
|
5
5
|
*/
|
|
6
|
-
import { ConsoleClusterClientsService } from '@camunda/ccma-api';
|
|
7
6
|
import { useCallback, useState } from 'react';
|
|
7
|
+
import { useCliResourcesApi } from '../../runtime/use-cli-resources-api.js';
|
|
8
8
|
/**
|
|
9
9
|
* The cluster's API clients, with the load/error/reload state the clients panel
|
|
10
10
|
* needs.
|
|
@@ -19,6 +19,7 @@ import { useCallback, useState } from 'react';
|
|
|
19
19
|
*/
|
|
20
20
|
export function useClusterApiClients(params) {
|
|
21
21
|
const { orgId, clusterId, apiConfig, enabled } = params;
|
|
22
|
+
const resourcesApi = useCliResourcesApi();
|
|
22
23
|
const [clients, setClients] = useState([]);
|
|
23
24
|
const [loading, setLoading] = useState(false);
|
|
24
25
|
const [error, setError] = useState(false);
|
|
@@ -31,7 +32,7 @@ export function useClusterApiClients(params) {
|
|
|
31
32
|
setLoading(true);
|
|
32
33
|
setError(false);
|
|
33
34
|
try {
|
|
34
|
-
const loaded = await
|
|
35
|
+
const loaded = await resourcesApi.clients.getAll({
|
|
35
36
|
config: apiConfig,
|
|
36
37
|
params: { orgId, clusterId },
|
|
37
38
|
});
|
|
@@ -43,6 +44,6 @@ export function useClusterApiClients(params) {
|
|
|
43
44
|
finally {
|
|
44
45
|
setLoading(false);
|
|
45
46
|
}
|
|
46
|
-
}, [apiConfig, clusterId, enabled, orgId]);
|
|
47
|
+
}, [apiConfig, clusterId, enabled, orgId, resourcesApi]);
|
|
47
48
|
return { clients, loading, error, reload };
|
|
48
49
|
}
|
|
@@ -4,12 +4,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { SaaSJobsService } from '@camunda/ccma-api';
|
|
8
8
|
import { observer } from 'mobx-react-lite';
|
|
9
9
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
10
10
|
import { C4JobDashboardDetailsPage } from '../../components/c4-job-dashboard-details-page/c4-job-dashboard-details-page.js';
|
|
11
11
|
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
12
12
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
13
|
+
import { useCliClusterApi, } from '../../runtime/use-cli-cluster-api.js';
|
|
13
14
|
import { getRegion, latestUpdateTime, makeScopedTr, makeTr, safeDecodeURIComponent, safeT, toJobsError, } from './c4-job-worker.helpers.js';
|
|
14
15
|
function buildDetailsTranslations(tr, trScoped) {
|
|
15
16
|
return {
|
|
@@ -103,6 +104,7 @@ const INITIAL_TIME_SERIES = { items: [], isLoading: false };
|
|
|
103
104
|
const INITIAL_ERROR_DATA = { items: [], isLoading: false };
|
|
104
105
|
export const C4JobWorkerDetailsPage = observer(({ orgId, clusterId, jobType: jobTypeProp, onNavigate, scope = 'cluster', }) => {
|
|
105
106
|
const runtime = useC4ConsoleRuntime();
|
|
107
|
+
const clusterApi = useCliClusterApi();
|
|
106
108
|
const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
|
|
107
109
|
const t = runtime.i18n?.t;
|
|
108
110
|
const tr = useMemo(() => makeTr(t), [t]);
|
|
@@ -131,7 +133,7 @@ export const C4JobWorkerDetailsPage = observer(({ orgId, clusterId, jobType: job
|
|
|
131
133
|
return;
|
|
132
134
|
setClusterLoading(true);
|
|
133
135
|
try {
|
|
134
|
-
const loaded = await
|
|
136
|
+
const loaded = await clusterApi.getClusterBasics({
|
|
135
137
|
config: apiConfig,
|
|
136
138
|
params: { orgId, clusterId },
|
|
137
139
|
});
|
|
@@ -143,7 +145,7 @@ export const C4JobWorkerDetailsPage = observer(({ orgId, clusterId, jobType: job
|
|
|
143
145
|
finally {
|
|
144
146
|
setClusterLoading(false);
|
|
145
147
|
}
|
|
146
|
-
}, [apiConfig, clusterId, orgId]);
|
|
148
|
+
}, [apiConfig, clusterApi, clusterId, orgId]);
|
|
147
149
|
useEffect(() => {
|
|
148
150
|
void loadCluster();
|
|
149
151
|
}, [loadCluster]);
|
|
@@ -4,12 +4,13 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { SaaSJobsService } from '@camunda/ccma-api';
|
|
8
8
|
import { observer } from 'mobx-react-lite';
|
|
9
9
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
10
10
|
import { C4JobDashboardOverviewPage } from '../../components/c4-job-dashboard-overview-page/c4-job-dashboard-overview.js';
|
|
11
11
|
import { useC4ConsoleRuntime } from '../../runtime/c4-console-runtime-context.js';
|
|
12
12
|
import { toApiConfig } from '../../runtime/to-api-config.js';
|
|
13
|
+
import { useCliClusterApi, } from '../../runtime/use-cli-cluster-api.js';
|
|
13
14
|
import { getRegion, latestUpdateTime, makeScopedTr, makeTr, safeT, toJobsError, } from './c4-job-worker.helpers.js';
|
|
14
15
|
function buildOverviewTranslations(tr, trScoped) {
|
|
15
16
|
return {
|
|
@@ -63,6 +64,7 @@ function buildOverviewTranslations(tr, trScoped) {
|
|
|
63
64
|
}
|
|
64
65
|
export const C4JobWorkerOverviewPage = observer(({ orgId, clusterId, onNavigate, scope = 'cluster', }) => {
|
|
65
66
|
const runtime = useC4ConsoleRuntime();
|
|
67
|
+
const clusterApi = useCliClusterApi();
|
|
66
68
|
const apiConfig = useMemo(() => toApiConfig(runtime), [runtime]);
|
|
67
69
|
const t = runtime.i18n?.t;
|
|
68
70
|
const tr = useMemo(() => makeTr(t), [t]);
|
|
@@ -90,7 +92,7 @@ export const C4JobWorkerOverviewPage = observer(({ orgId, clusterId, onNavigate,
|
|
|
90
92
|
return;
|
|
91
93
|
setClusterLoading(true);
|
|
92
94
|
try {
|
|
93
|
-
const loaded = await
|
|
95
|
+
const loaded = await clusterApi.getClusterBasics({
|
|
94
96
|
config: apiConfig,
|
|
95
97
|
params: { orgId, clusterId },
|
|
96
98
|
});
|
|
@@ -102,7 +104,7 @@ export const C4JobWorkerOverviewPage = observer(({ orgId, clusterId, onNavigate,
|
|
|
102
104
|
finally {
|
|
103
105
|
setClusterLoading(false);
|
|
104
106
|
}
|
|
105
|
-
}, [apiConfig, clusterId, orgId]);
|
|
107
|
+
}, [apiConfig, clusterApi, clusterId, orgId]);
|
|
106
108
|
useEffect(() => {
|
|
107
109
|
void loadCluster();
|
|
108
110
|
}, [loadCluster]);
|
|
@@ -17,7 +17,7 @@ export declare function makeScopedTr(tr: Tr, scope: C4WidgetScope): ScopedTr;
|
|
|
17
17
|
/** Binds `t` to the `jobDashboard:` namespace of this module. */
|
|
18
18
|
export declare function makeTr(t: TranslateFn | undefined): Tr;
|
|
19
19
|
export declare function safeT(t: TranslateFn | undefined, key: string, fallback: string): string;
|
|
20
|
-
export declare function getRegion(cluster: ConsoleClusterDto): string;
|
|
20
|
+
export declare function getRegion(cluster: Pick<ConsoleClusterDto, 'status'>): string;
|
|
21
21
|
export declare function formatDateTime(dateStr: string | null | undefined): string;
|
|
22
22
|
export declare function latestUpdateTime(item: {
|
|
23
23
|
created: {
|