189 lines
6.5 KiB
TypeScript
189 lines
6.5 KiB
TypeScript
export const mockPage =
|
|
{
|
|
"descriptionKey": "mock.ak-ui-05.plugins.description",
|
|
"id": "ak-ui-05-plugins-interim",
|
|
"registries": {
|
|
"breadcrumbs": [
|
|
{
|
|
"href": "/mock",
|
|
"id": "mock",
|
|
"labelKey": "mock.root"
|
|
},
|
|
{
|
|
"href": "/mock/ak-ui-05/plugins",
|
|
"id": "ak-ui-05-plugins",
|
|
"labelKey": "mock.ak-ui-05.plugins.label"
|
|
}
|
|
]
|
|
},
|
|
"route": "/mock/ak-ui-05/plugins",
|
|
"state": {
|
|
"data": {
|
|
"activity": [
|
|
{
|
|
"labelKey": "mock.ak-ui-05.plugins.activity.consent",
|
|
"meta": "dialog"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-ui-05.plugins.activity.lifecycle",
|
|
"meta": "lifecycle"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-ui-05.plugins.activity.revoke",
|
|
"meta": "dialog"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-ui-05.plugins.activity.manifest",
|
|
"meta": "manifest"
|
|
}
|
|
],
|
|
"cards": [
|
|
{
|
|
"labelKey": "mock.ak-ui-05.plugins.metrics.plugins",
|
|
"trend": "flat",
|
|
"value": "2"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-ui-05.plugins.metrics.pendingConsent",
|
|
"trend": "flat",
|
|
"value": "1"
|
|
},
|
|
{
|
|
"labelKey": "mock.ak-ui-05.plugins.metrics.designStatus",
|
|
"trend": "flat",
|
|
"value": "interim"
|
|
}
|
|
],
|
|
"designStatus": "interim",
|
|
"screenRoute": "/settings/integrations/plugins",
|
|
"viewModel": {
|
|
"data": {
|
|
"canManage": true,
|
|
"emptyBodyKey": "settings.plugins.emptyBody",
|
|
"emptyHeadlineKey": "settings.plugins.empty",
|
|
"rows": [
|
|
{
|
|
"auditHref": "/mock/ak-ui-05/settings/integrations/plugins/pl-1/audit",
|
|
"canEnable": false,
|
|
"canReviewCapabilities": false,
|
|
"capabilities": [
|
|
{
|
|
"approvable": true,
|
|
"availabilityKey": "settings.plugins.consent.available",
|
|
"availabilityTone": "subtle-positive",
|
|
"granted": true,
|
|
"grantedAtIso": "2026-07-01T10:30:00.000Z",
|
|
"label": {
|
|
"key": "settings.plugins.capabilityNames.http_outbound"
|
|
},
|
|
"name": "http.outbound",
|
|
"productionAvailable": true,
|
|
"risk": "high",
|
|
"riskKey": "settings.plugins.consent.risk.high",
|
|
"riskTone": "subtle-warning",
|
|
"scopeParts": [
|
|
{
|
|
"key": "settings.plugins.consent.allowedHosts",
|
|
"params": {
|
|
"hosts": "api.demo-pro.example"
|
|
}
|
|
}
|
|
],
|
|
"statusKey": "settings.plugins.consent.granted",
|
|
"statusTone": "subtle-positive"
|
|
}
|
|
],
|
|
"capabilitiesToReview": [],
|
|
"capabilityReviewDigest": "digest-granted",
|
|
"enabled": true,
|
|
"grantOp": "grant",
|
|
"hasUnapprovableCapability": false,
|
|
"id": "pl-1",
|
|
"installedAtIso": "2026-07-01T10:00:00.000Z",
|
|
"manifestJson": "{\n \"id\": \"com.demo.outbound\"\n}",
|
|
"missingCapabilities": [],
|
|
"pluginId": "com.demo.outbound",
|
|
"settingsHref": "/mock/ak-ui-05/settings/integrations/plugins/pl-1",
|
|
"statusKey": "shared.enabled",
|
|
"statusTone": "subtle-positive",
|
|
"version": "1.2.3"
|
|
},
|
|
{
|
|
"auditHref": "/mock/ak-ui-05/settings/integrations/plugins/pl-2/audit",
|
|
"canEnable": false,
|
|
"canReviewCapabilities": true,
|
|
"capabilities": [
|
|
{
|
|
"approvable": true,
|
|
"availabilityKey": "settings.plugins.consent.available",
|
|
"availabilityTone": "subtle-positive",
|
|
"granted": false,
|
|
"grantedAtIso": null,
|
|
"label": {
|
|
"key": "settings.plugins.consent.hookLabel",
|
|
"params": {
|
|
"hook": "workflow.executed"
|
|
}
|
|
},
|
|
"name": "hook:workflow.executed",
|
|
"productionAvailable": true,
|
|
"risk": "medium",
|
|
"riskKey": "settings.plugins.consent.risk.medium",
|
|
"riskTone": "subtle-information",
|
|
"scopeParts": [],
|
|
"statusKey": "settings.plugins.consent.missing",
|
|
"statusTone": "subtle-warning"
|
|
}
|
|
],
|
|
"capabilitiesToReview": [
|
|
{
|
|
"approvable": true,
|
|
"availabilityKey": "settings.plugins.consent.available",
|
|
"availabilityTone": "subtle-positive",
|
|
"granted": false,
|
|
"grantedAtIso": null,
|
|
"label": {
|
|
"key": "settings.plugins.consent.hookLabel",
|
|
"params": {
|
|
"hook": "workflow.executed"
|
|
}
|
|
},
|
|
"name": "hook:workflow.executed",
|
|
"productionAvailable": true,
|
|
"risk": "medium",
|
|
"riskKey": "settings.plugins.consent.risk.medium",
|
|
"riskTone": "subtle-information",
|
|
"scopeParts": [],
|
|
"statusKey": "settings.plugins.consent.missing",
|
|
"statusTone": "subtle-warning"
|
|
}
|
|
],
|
|
"capabilityReviewDigest": "digest-pending",
|
|
"enabled": false,
|
|
"grantOp": "grantAndEnable",
|
|
"hasUnapprovableCapability": false,
|
|
"id": "pl-2",
|
|
"installedAtIso": "2026-07-02T09:00:00.000Z",
|
|
"manifestJson": "{\n \"id\": \"com.demo.workflow-hook\"\n}",
|
|
"missingCapabilities": [
|
|
"hook:workflow.executed"
|
|
],
|
|
"pluginId": "com.demo.workflow-hook",
|
|
"settingsHref": null,
|
|
"statusKey": "shared.disabled",
|
|
"statusTone": "subtle-neutral",
|
|
"version": "0.9.0"
|
|
}
|
|
],
|
|
"tenantSlug": "demo-pro"
|
|
},
|
|
"status": "ready"
|
|
}
|
|
},
|
|
"status": "ready"
|
|
},
|
|
"titleKey": "mock.ak-ui-05.plugins.title"
|
|
}
|
|
;
|
|
export default mockPage;
|