@memberjunction/ng-dashboards 5.29.0 → 5.30.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/AI/components/agents/agent-configuration.component.d.ts.map +1 -1
- package/dist/AI/components/agents/agent-configuration.component.js +11 -9
- package/dist/AI/components/agents/agent-configuration.component.js.map +1 -1
- package/dist/AI/components/agents/agent-editor.component.d.ts.map +1 -1
- package/dist/AI/components/agents/agent-editor.component.js +21 -19
- package/dist/AI/components/agents/agent-editor.component.js.map +1 -1
- package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js +154 -154
- package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js.map +1 -1
- package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts.map +1 -1
- package/dist/AI/components/duplicates/duplicate-detection-resource.component.js +8 -0
- package/dist/AI/components/duplicates/duplicate-detection-resource.component.js.map +1 -1
- package/dist/AI/components/vectors/vector-management-resource.component.d.ts +1 -1
- package/dist/AI/components/vectors/vector-management-resource.component.d.ts.map +1 -1
- package/dist/AI/components/vectors/vector-management-resource.component.js +2 -2
- package/dist/AI/components/vectors/vector-management-resource.component.js.map +1 -1
- package/dist/APIKeys/api-applications-panel.component.d.ts +1 -1
- package/dist/APIKeys/api-applications-panel.component.d.ts.map +1 -1
- package/dist/APIKeys/api-applications-panel.component.js +15 -2
- package/dist/APIKeys/api-applications-panel.component.js.map +1 -1
- package/dist/APIKeys/api-key-edit-panel.component.d.ts.map +1 -1
- package/dist/APIKeys/api-key-edit-panel.component.js +17 -5
- package/dist/APIKeys/api-key-edit-panel.component.js.map +1 -1
- package/dist/Credentials/components/credentials-list-resource.component.d.ts.map +1 -1
- package/dist/Credentials/components/credentials-list-resource.component.js +56 -71
- package/dist/Credentials/components/credentials-list-resource.component.js.map +1 -1
- package/dist/DashboardBrowser/dashboard-browser-resource.component.d.ts +0 -8
- package/dist/DashboardBrowser/dashboard-browser-resource.component.d.ts.map +1 -1
- package/dist/DashboardBrowser/dashboard-browser-resource.component.js +73 -74
- package/dist/DashboardBrowser/dashboard-browser-resource.component.js.map +1 -1
- package/dist/DashboardBrowser/dashboard-share-adapter.d.ts +25 -0
- package/dist/DashboardBrowser/dashboard-share-adapter.d.ts.map +1 -0
- package/dist/DashboardBrowser/dashboard-share-adapter.js +99 -0
- package/dist/DashboardBrowser/dashboard-share-adapter.js.map +1 -0
- package/dist/DashboardBrowser/dashboard-share-dialog.component.d.ts +21 -104
- package/dist/DashboardBrowser/dashboard-share-dialog.component.d.ts.map +1 -1
- package/dist/DashboardBrowser/dashboard-share-dialog.component.js +48 -530
- package/dist/DashboardBrowser/dashboard-share-dialog.component.js.map +1 -1
- package/dist/DataExplorer/data-explorer-dashboard.component.d.ts +5 -0
- package/dist/DataExplorer/data-explorer-dashboard.component.d.ts.map +1 -1
- package/dist/DataExplorer/data-explorer-dashboard.component.js +17 -0
- package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
- package/dist/Integration/components/connections/connections.component.d.ts +18 -1
- package/dist/Integration/components/connections/connections.component.d.ts.map +1 -1
- package/dist/Integration/components/connections/connections.component.js +251 -199
- package/dist/Integration/components/connections/connections.component.js.map +1 -1
- package/dist/Integration/services/integration-data.service.d.ts +7 -2
- package/dist/Integration/services/integration-data.service.d.ts.map +1 -1
- package/dist/Integration/services/integration-data.service.js +10 -2
- package/dist/Integration/services/integration-data.service.js.map +1 -1
- package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js +144 -144
- package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js.map +1 -1
- package/dist/Lists/components/lists-operations-resource.component.d.ts.map +1 -1
- package/dist/Lists/components/lists-operations-resource.component.js +12 -14
- package/dist/Lists/components/lists-operations-resource.component.js.map +1 -1
- package/dist/MCP/mcp-dashboard.component.d.ts.map +1 -1
- package/dist/MCP/mcp-dashboard.component.js +28 -57
- package/dist/MCP/mcp-dashboard.component.js.map +1 -1
- package/dist/Permissions/audit-log-resource.component.d.ts +38 -0
- package/dist/Permissions/audit-log-resource.component.d.ts.map +1 -0
- package/dist/Permissions/audit-log-resource.component.js +380 -0
- package/dist/Permissions/audit-log-resource.component.js.map +1 -0
- package/dist/Permissions/permissions-shared.d.ts +51 -0
- package/dist/Permissions/permissions-shared.d.ts.map +1 -0
- package/dist/Permissions/permissions-shared.js +91 -0
- package/dist/Permissions/permissions-shared.js.map +1 -0
- package/dist/Permissions/resource-access-resource.component.d.ts +45 -0
- package/dist/Permissions/resource-access-resource.component.d.ts.map +1 -0
- package/dist/Permissions/resource-access-resource.component.js +342 -0
- package/dist/Permissions/resource-access-resource.component.js.map +1 -0
- package/dist/Permissions/user-access-resource.component.d.ts +39 -0
- package/dist/Permissions/user-access-resource.component.d.ts.map +1 -0
- package/dist/Permissions/user-access-resource.component.js +346 -0
- package/dist/Permissions/user-access-resource.component.js.map +1 -0
- package/dist/component-studio-dashboards.module.d.ts +1 -0
- package/dist/component-studio-dashboards.module.d.ts.map +1 -1
- package/dist/component-studio-dashboards.module.js +7 -0
- package/dist/component-studio-dashboards.module.js.map +1 -1
- package/dist/core-dashboards.module.d.ts +24 -20
- package/dist/core-dashboards.module.d.ts.map +1 -1
- package/dist/core-dashboards.module.js +26 -1
- package/dist/core-dashboards.module.js.map +1 -1
- package/dist/public-api.d.ts +4 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +4 -0
- package/dist/public-api.js.map +1 -1
- package/dist/shared/pipes/highlight-search.pipe.d.ts +1 -1
- package/dist/shared/pipes/highlight-search.pipe.d.ts.map +1 -1
- package/dist/shared/pipes/highlight-search.pipe.js +14 -4
- package/dist/shared/pipes/highlight-search.pipe.js.map +1 -1
- package/package.json +51 -50
|
@@ -2971,8 +2971,8 @@ let MCPDashboardComponent = class MCPDashboardComponent extends BaseDashboard {
|
|
|
2971
2971
|
console.log(`[MCPDashboard] deleteConnectionInternal called for connectionId: ${connectionId}`);
|
|
2972
2972
|
const rv = new RunView();
|
|
2973
2973
|
const md = new Metadata();
|
|
2974
|
-
|
|
2975
|
-
|
|
2974
|
+
const tg = await md.CreateTransactionGroup();
|
|
2975
|
+
// Queue deletes for execution logs
|
|
2976
2976
|
const logsResult = await rv.RunView({
|
|
2977
2977
|
EntityName: 'MJ: MCP Tool Execution Logs',
|
|
2978
2978
|
ExtraFilter: `MCPServerConnectionID='${connectionId}'`,
|
|
@@ -2980,27 +2980,19 @@ let MCPDashboardComponent = class MCPDashboardComponent extends BaseDashboard {
|
|
|
2980
2980
|
ResultType: 'simple'
|
|
2981
2981
|
});
|
|
2982
2982
|
if (logsResult.Success && logsResult.Results) {
|
|
2983
|
-
console.log(`[MCPDashboard]
|
|
2983
|
+
console.log(`[MCPDashboard] Queueing ${logsResult.Results.length} execution logs for delete`);
|
|
2984
2984
|
for (const log of logsResult.Results) {
|
|
2985
|
-
console.log(`[MCPDashboard] Loading execution log ${log.ID}...`);
|
|
2986
2985
|
const logEntity = await md.GetEntityObject('MJ: MCP Tool Execution Logs');
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
const deleted = await logEntity.Delete();
|
|
2991
|
-
if (!deleted) {
|
|
2992
|
-
console.error(`[MCPDashboard] Failed to delete execution log ${log.ID}:`, logEntity.LatestResult);
|
|
2993
|
-
throw new Error(`Failed to delete execution log: ${logEntity.LatestResult?.Message || 'Unknown error'}`);
|
|
2994
|
-
}
|
|
2995
|
-
console.log(`[MCPDashboard] Deleted execution log ${log.ID}`);
|
|
2986
|
+
if (await logEntity.Load(log.ID)) {
|
|
2987
|
+
logEntity.TransactionGroup = tg;
|
|
2988
|
+
await logEntity.Delete();
|
|
2996
2989
|
}
|
|
2997
2990
|
else {
|
|
2998
2991
|
console.warn(`[MCPDashboard] Could not load execution log ${log.ID} - may have been already deleted`);
|
|
2999
2992
|
}
|
|
3000
2993
|
}
|
|
3001
2994
|
}
|
|
3002
|
-
//
|
|
3003
|
-
console.log('[MCPDashboard] Deleting OAuth Authorization States...');
|
|
2995
|
+
// Queue deletes for OAuth Authorization States
|
|
3004
2996
|
const authStatesResult = await rv.RunView({
|
|
3005
2997
|
EntityName: 'MJ: O Auth Authorization States',
|
|
3006
2998
|
ExtraFilter: `MCPServerConnectionID='${connectionId}'`,
|
|
@@ -3008,27 +3000,19 @@ let MCPDashboardComponent = class MCPDashboardComponent extends BaseDashboard {
|
|
|
3008
3000
|
ResultType: 'simple'
|
|
3009
3001
|
});
|
|
3010
3002
|
if (authStatesResult.Success && authStatesResult.Results) {
|
|
3011
|
-
console.log(`[MCPDashboard]
|
|
3003
|
+
console.log(`[MCPDashboard] Queueing ${authStatesResult.Results.length} OAuth Authorization States for delete`);
|
|
3012
3004
|
for (const state of authStatesResult.Results) {
|
|
3013
|
-
console.log(`[MCPDashboard] Loading OAuth Authorization State ${state.ID}...`);
|
|
3014
3005
|
const stateEntity = await md.GetEntityObject('MJ: O Auth Authorization States');
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
const deleted = await stateEntity.Delete();
|
|
3019
|
-
if (!deleted) {
|
|
3020
|
-
console.error(`[MCPDashboard] Failed to delete OAuth Authorization State ${state.ID}:`, stateEntity.LatestResult);
|
|
3021
|
-
throw new Error(`Failed to delete OAuth Authorization State: ${stateEntity.LatestResult?.Message || 'Unknown error'}`);
|
|
3022
|
-
}
|
|
3023
|
-
console.log(`[MCPDashboard] Deleted OAuth Authorization State ${state.ID}`);
|
|
3006
|
+
if (await stateEntity.Load(state.ID)) {
|
|
3007
|
+
stateEntity.TransactionGroup = tg;
|
|
3008
|
+
await stateEntity.Delete();
|
|
3024
3009
|
}
|
|
3025
3010
|
else {
|
|
3026
3011
|
console.warn(`[MCPDashboard] Could not load OAuth Authorization State ${state.ID} - may have been already deleted`);
|
|
3027
3012
|
}
|
|
3028
3013
|
}
|
|
3029
3014
|
}
|
|
3030
|
-
//
|
|
3031
|
-
console.log('[MCPDashboard] Deleting OAuth Client Registrations...');
|
|
3015
|
+
// Queue deletes for OAuth Client Registrations
|
|
3032
3016
|
const clientRegsResult = await rv.RunView({
|
|
3033
3017
|
EntityName: 'MJ: O Auth Client Registrations',
|
|
3034
3018
|
ExtraFilter: `MCPServerConnectionID='${connectionId}'`,
|
|
@@ -3036,27 +3020,19 @@ let MCPDashboardComponent = class MCPDashboardComponent extends BaseDashboard {
|
|
|
3036
3020
|
ResultType: 'simple'
|
|
3037
3021
|
});
|
|
3038
3022
|
if (clientRegsResult.Success && clientRegsResult.Results) {
|
|
3039
|
-
console.log(`[MCPDashboard]
|
|
3023
|
+
console.log(`[MCPDashboard] Queueing ${clientRegsResult.Results.length} OAuth Client Registrations for delete`);
|
|
3040
3024
|
for (const reg of clientRegsResult.Results) {
|
|
3041
|
-
console.log(`[MCPDashboard] Loading OAuth Client Registration ${reg.ID}...`);
|
|
3042
3025
|
const regEntity = await md.GetEntityObject('MJ: O Auth Client Registrations');
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
const deleted = await regEntity.Delete();
|
|
3047
|
-
if (!deleted) {
|
|
3048
|
-
console.error(`[MCPDashboard] Failed to delete OAuth Client Registration ${reg.ID}:`, regEntity.LatestResult);
|
|
3049
|
-
throw new Error(`Failed to delete OAuth Client Registration: ${regEntity.LatestResult?.Message || 'Unknown error'}`);
|
|
3050
|
-
}
|
|
3051
|
-
console.log(`[MCPDashboard] Deleted OAuth Client Registration ${reg.ID}`);
|
|
3026
|
+
if (await regEntity.Load(reg.ID)) {
|
|
3027
|
+
regEntity.TransactionGroup = tg;
|
|
3028
|
+
await regEntity.Delete();
|
|
3052
3029
|
}
|
|
3053
3030
|
else {
|
|
3054
3031
|
console.warn(`[MCPDashboard] Could not load OAuth Client Registration ${reg.ID} - may have been already deleted`);
|
|
3055
3032
|
}
|
|
3056
3033
|
}
|
|
3057
3034
|
}
|
|
3058
|
-
//
|
|
3059
|
-
console.log('[MCPDashboard] Deleting OAuth Tokens...');
|
|
3035
|
+
// Queue deletes for OAuth Tokens
|
|
3060
3036
|
const tokensResult = await rv.RunView({
|
|
3061
3037
|
EntityName: 'MJ: O Auth Tokens',
|
|
3062
3038
|
ExtraFilter: `MCPServerConnectionID='${connectionId}'`,
|
|
@@ -3064,37 +3040,32 @@ let MCPDashboardComponent = class MCPDashboardComponent extends BaseDashboard {
|
|
|
3064
3040
|
ResultType: 'simple'
|
|
3065
3041
|
});
|
|
3066
3042
|
if (tokensResult.Success && tokensResult.Results) {
|
|
3067
|
-
console.log(`[MCPDashboard]
|
|
3043
|
+
console.log(`[MCPDashboard] Queueing ${tokensResult.Results.length} OAuth Tokens for delete`);
|
|
3068
3044
|
for (const token of tokensResult.Results) {
|
|
3069
|
-
console.log(`[MCPDashboard] Loading OAuth Token ${token.ID}...`);
|
|
3070
3045
|
const tokenEntity = await md.GetEntityObject('MJ: O Auth Tokens');
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
const deleted = await tokenEntity.Delete();
|
|
3075
|
-
if (!deleted) {
|
|
3076
|
-
console.error(`[MCPDashboard] Failed to delete OAuth Token ${token.ID}:`, tokenEntity.LatestResult);
|
|
3077
|
-
throw new Error(`Failed to delete OAuth Token: ${tokenEntity.LatestResult?.Message || 'Unknown error'}`);
|
|
3078
|
-
}
|
|
3079
|
-
console.log(`[MCPDashboard] Deleted OAuth Token ${token.ID}`);
|
|
3046
|
+
if (await tokenEntity.Load(token.ID)) {
|
|
3047
|
+
tokenEntity.TransactionGroup = tg;
|
|
3048
|
+
await tokenEntity.Delete();
|
|
3080
3049
|
}
|
|
3081
3050
|
else {
|
|
3082
3051
|
console.warn(`[MCPDashboard] Could not load OAuth Token ${token.ID} - may have been already deleted`);
|
|
3083
3052
|
}
|
|
3084
3053
|
}
|
|
3085
3054
|
}
|
|
3086
|
-
//
|
|
3087
|
-
console.log('[MCPDashboard] All related records deleted. Now deleting the connection itself...');
|
|
3055
|
+
// Queue the connection delete last
|
|
3088
3056
|
const entity = await md.GetEntityObject('MJ: MCP Server Connections');
|
|
3089
3057
|
const loaded = await entity.Load(connectionId);
|
|
3090
3058
|
if (!loaded) {
|
|
3091
3059
|
throw new Error(`Connection not found`);
|
|
3092
3060
|
}
|
|
3093
|
-
|
|
3094
|
-
|
|
3061
|
+
entity.TransactionGroup = tg;
|
|
3062
|
+
await entity.Delete();
|
|
3063
|
+
// Submit everything atomically — if anything fails, the whole cascade rolls back
|
|
3064
|
+
if (!await tg.Submit()) {
|
|
3095
3065
|
const errorMsg = entity.LatestResult?.Message || entity.LatestResult?.CompleteMessage || 'Delete failed';
|
|
3096
|
-
throw new Error(errorMsg);
|
|
3066
|
+
throw new Error(`Failed to delete connection and related records: ${errorMsg}`);
|
|
3097
3067
|
}
|
|
3068
|
+
console.log('[MCPDashboard] Connection and all related records deleted atomically');
|
|
3098
3069
|
}
|
|
3099
3070
|
async onServerDialogClose(result) {
|
|
3100
3071
|
this.ShowServerDialog = false;
|