@memberjunction/ng-dashboards 5.23.0 → 5.24.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.
Files changed (78) hide show
  1. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.d.ts +677 -5
  2. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.d.ts.map +1 -1
  3. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js +6879 -1873
  4. package/dist/AI/components/autotagging/autotagging-pipeline-resource.component.js.map +1 -1
  5. package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts +46 -1
  6. package/dist/AI/components/duplicates/duplicate-detection-resource.component.d.ts.map +1 -1
  7. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js +758 -491
  8. package/dist/AI/components/duplicates/duplicate-detection-resource.component.js.map +1 -1
  9. package/dist/AI/components/vectors/vector-management-resource.component.d.ts +19 -0
  10. package/dist/AI/components/vectors/vector-management-resource.component.d.ts.map +1 -1
  11. package/dist/AI/components/vectors/vector-management-resource.component.js +410 -208
  12. package/dist/AI/components/vectors/vector-management-resource.component.js.map +1 -1
  13. package/dist/DataExplorer/data-explorer-dashboard.component.d.ts.map +1 -1
  14. package/dist/DataExplorer/data-explorer-dashboard.component.js +17 -17
  15. package/dist/DataExplorer/data-explorer-dashboard.component.js.map +1 -1
  16. package/dist/Integration/components/activity/activity.component.d.ts.map +1 -1
  17. package/dist/Integration/components/activity/activity.component.js +1 -0
  18. package/dist/Integration/components/activity/activity.component.js.map +1 -1
  19. package/dist/Integration/components/connections/connections.component.d.ts.map +1 -1
  20. package/dist/Integration/components/connections/connections.component.js +1 -0
  21. package/dist/Integration/components/connections/connections.component.js.map +1 -1
  22. package/dist/Integration/components/mapping-workspace/mapping-workspace.component.d.ts.map +1 -1
  23. package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js +1 -0
  24. package/dist/Integration/components/mapping-workspace/mapping-workspace.component.js.map +1 -1
  25. package/dist/Integration/components/overview/overview.component.d.ts.map +1 -1
  26. package/dist/Integration/components/overview/overview.component.js +1 -0
  27. package/dist/Integration/components/overview/overview.component.js.map +1 -1
  28. package/dist/Integration/components/pipelines/pipelines.component.d.ts.map +1 -1
  29. package/dist/Integration/components/pipelines/pipelines.component.js +1 -0
  30. package/dist/Integration/components/pipelines/pipelines.component.js.map +1 -1
  31. package/dist/Integration/components/schedules/schedules.component.d.ts.map +1 -1
  32. package/dist/Integration/components/schedules/schedules.component.js +1 -0
  33. package/dist/Integration/components/schedules/schedules.component.js.map +1 -1
  34. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.d.ts +411 -0
  35. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.d.ts.map +1 -0
  36. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js +4266 -0
  37. package/dist/KnowledgeHub/components/analytics/analytics-resource.component.js.map +1 -0
  38. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.d.ts +35 -1
  39. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.d.ts.map +1 -1
  40. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.js +186 -13
  41. package/dist/KnowledgeHub/components/clusters/cluster-visualization-resource.component.js.map +1 -1
  42. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.d.ts +1 -0
  43. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.d.ts.map +1 -1
  44. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.js +188 -165
  45. package/dist/KnowledgeHub/components/config/knowledge-config-resource.component.js.map +1 -1
  46. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.d.ts +75 -0
  47. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.d.ts.map +1 -0
  48. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.js +601 -0
  49. package/dist/KnowledgeHub/components/scheduling/scheduling-resource.component.js.map +1 -0
  50. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.d.ts +93 -12
  51. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.d.ts.map +1 -1
  52. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.js +637 -107
  53. package/dist/KnowledgeHub/components/search/knowledge-search-resource.component.js.map +1 -1
  54. package/dist/KnowledgeHub/index.d.ts +2 -0
  55. package/dist/KnowledgeHub/index.d.ts.map +1 -1
  56. package/dist/KnowledgeHub/index.js +2 -0
  57. package/dist/KnowledgeHub/index.js.map +1 -1
  58. package/dist/__tests__/analytics-resource.test.d.ts +2 -0
  59. package/dist/__tests__/analytics-resource.test.d.ts.map +1 -0
  60. package/dist/__tests__/analytics-resource.test.js +181 -0
  61. package/dist/__tests__/analytics-resource.test.js.map +1 -0
  62. package/dist/__tests__/scheduling.test.d.ts +2 -0
  63. package/dist/__tests__/scheduling.test.d.ts.map +1 -0
  64. package/dist/__tests__/scheduling.test.js +205 -0
  65. package/dist/__tests__/scheduling.test.js.map +1 -0
  66. package/dist/ai-dashboards.module.d.ts +18 -14
  67. package/dist/ai-dashboards.module.d.ts.map +1 -1
  68. package/dist/ai-dashboards.module.js +25 -5
  69. package/dist/ai-dashboards.module.js.map +1 -1
  70. package/dist/public-api.d.ts +1 -0
  71. package/dist/public-api.d.ts.map +1 -1
  72. package/dist/public-api.js +1 -0
  73. package/dist/public-api.js.map +1 -1
  74. package/dist/shared/entity-field-display.d.ts +44 -0
  75. package/dist/shared/entity-field-display.d.ts.map +1 -0
  76. package/dist/shared/entity-field-display.js +118 -0
  77. package/dist/shared/entity-field-display.js.map +1 -0
  78. package/package.json +47 -46
@@ -9,10 +9,11 @@
9
9
  import { OnDestroy, AfterViewInit } from '@angular/core';
10
10
  import { CompositeKey } from '@memberjunction/core';
11
11
  import { TreeBranchConfig, TreeLeafConfig } from '@memberjunction/ng-trees';
12
- import { ResourceData } from '@memberjunction/core-entities';
12
+ import { ResourceData, MJContentSourceTypeEntity_IContentSourceTypeField } from '@memberjunction/core-entities';
13
13
  import { BaseResourceComponent } from '@memberjunction/ng-shared';
14
+ import { WordCloudItem } from '@memberjunction/ng-word-cloud';
14
15
  import * as i0 from "@angular/core";
15
- type TabName = 'pipeline' | 'sources' | 'types' | 'tags' | 'history';
16
+ type TabName = 'pipeline' | 'sources' | 'types' | 'tags' | 'taxonomy' | 'history';
16
17
  interface NavItem {
17
18
  Tab: TabName;
18
19
  Icon: string;
@@ -66,6 +67,15 @@ interface SourceCard {
66
67
  ContentFileTypeID: string;
67
68
  EmbeddingModelID: string;
68
69
  VectorIndexID: string;
70
+ EntityID: string;
71
+ EntityDocumentID: string;
72
+ RequiresFileType: boolean;
73
+ /** FK to ScheduledAction entity, null if no schedule configured */
74
+ ScheduledActionID: string | null;
75
+ /** Denormalized name of the linked ScheduledAction */
76
+ ScheduledActionName: string | null;
77
+ /** Human-readable schedule description (parsed from cron) */
78
+ ScheduleDescription: string | null;
69
79
  }
70
80
  interface ContentTypeCard {
71
81
  ID: string;
@@ -115,6 +125,100 @@ interface DropdownOption {
115
125
  ID: string;
116
126
  Name: string;
117
127
  }
128
+ /** G3: Content item duplicate pair for review */
129
+ interface ContentDuplicateRow {
130
+ ID: string;
131
+ ItemAName: string;
132
+ ItemASource: string;
133
+ ItemBName: string;
134
+ ItemBSource: string;
135
+ SimilarityScore: number;
136
+ DetectionMethod: string;
137
+ Status: 'Pending' | 'Confirmed' | 'Dismissed' | 'Merged';
138
+ }
139
+ /** D2/D3/D8: Per-source detail row for a specific pipeline run */
140
+ interface RunDetailRow {
141
+ SourceName: string;
142
+ SourceType: string;
143
+ Status: string;
144
+ StatusClass: string;
145
+ ItemsProcessed: number;
146
+ ItemsTagged: number;
147
+ ItemsVectorized: number;
148
+ ErrorCount: number;
149
+ TotalTokens: number;
150
+ TotalCost: number;
151
+ Duration: string;
152
+ }
153
+ type TaxonomySubTab = 'tree' | 'duplicates' | 'orphans' | 'treemap' | 'audit';
154
+ interface TaxTreeNode {
155
+ ID: string;
156
+ Name: string;
157
+ DisplayName: string;
158
+ Description: string;
159
+ ParentID: string | null;
160
+ Depth: number;
161
+ Children: TaxTreeNode[];
162
+ ItemCount: number;
163
+ AvgWeight: number;
164
+ HealthColor: 'green' | 'yellow' | 'red';
165
+ IsExpanded: boolean;
166
+ IsSelected: boolean;
167
+ FirstSeen: string;
168
+ }
169
+ interface TaxDuplicatePair {
170
+ TagA: string;
171
+ TagB: string;
172
+ TagAID: string;
173
+ TagBID: string;
174
+ Similarity: number;
175
+ SeverityClass: 'high' | 'moderate';
176
+ /** True when multiple Tag records share the same name (case-insensitive) */
177
+ IsExactDuplicate: boolean;
178
+ /** How many Tag records share this exact name (only set when IsExactDuplicate) */
179
+ ExactDuplicateCount: number;
180
+ /** All Tag IDs sharing the exact name (only set when IsExactDuplicate) */
181
+ AllIDs: string[];
182
+ }
183
+ interface TaxOrphanCard {
184
+ ID: string;
185
+ Name: string;
186
+ UsageCount: number;
187
+ AvgWeight: number;
188
+ FirstSeen: string;
189
+ LastSeen: string;
190
+ IsSelected: boolean;
191
+ }
192
+ interface TaxTreemapCell {
193
+ ID: string;
194
+ Name: string;
195
+ ItemCount: number;
196
+ ColorClass: string;
197
+ RowSpan: number;
198
+ }
199
+ /** Supported audit action types — matches DB Action values (lowercased) */
200
+ type TaxAuditAction = 'created' | 'merged' | 'moved' | 'deleted' | 'renamed' | 'deprecated' | 'descriptionchanged' | 'reactivated' | 'split';
201
+ interface TaxAuditEvent {
202
+ Type: TaxAuditAction;
203
+ Description: string;
204
+ TagRef: string;
205
+ User: string;
206
+ Timestamp: string;
207
+ DayHeader: string;
208
+ }
209
+ interface TaxHealthStat {
210
+ Total: number;
211
+ Healthy: number;
212
+ NeedAttention: number;
213
+ Orphaned: number;
214
+ Duplicates: number;
215
+ }
216
+ interface WeightedTag {
217
+ Tag: string;
218
+ Weight: number;
219
+ }
220
+ /** Status value for embedding or tagging pipeline phases */
221
+ type ItemPipelineStatus = 'Complete' | 'Processing' | 'Failed' | 'Pending';
118
222
  interface ContentItemDetail {
119
223
  ID: string;
120
224
  Name: string;
@@ -125,12 +229,23 @@ interface ContentItemDetail {
125
229
  URL: string;
126
230
  TextContent: string;
127
231
  Checksum: string;
128
- Tags: string[];
232
+ Tags: WeightedTag[];
129
233
  CreatedAt: string;
130
234
  UpdatedAt: string;
131
235
  ContentSourceID: string;
236
+ ContentSourceTypeID: string;
132
237
  StatusDot: 'complete' | 'processing' | 'error';
133
238
  TagCount: number;
239
+ /** Whether this source type uses content/file type (false for Entity sources) */
240
+ RequiresContentType: boolean;
241
+ /** Entity record ID if source is entity type (for direct entity navigation) */
242
+ EntityRecordID: string | null;
243
+ /** Entity name if source is entity type */
244
+ EntityName: string | null;
245
+ /** Embedding pipeline status for this content item */
246
+ EmbeddingStatus: ItemPipelineStatus;
247
+ /** Tagging pipeline status for this content item */
248
+ TaggingStatus: ItemPipelineStatus;
134
249
  }
135
250
  interface SourceDetailInfo {
136
251
  ID: string;
@@ -138,6 +253,7 @@ interface SourceDetailInfo {
138
253
  SourceTypeName: string;
139
254
  FileTypeName: string;
140
255
  ContentTypeName: string;
256
+ RequiresFileType: boolean;
141
257
  StatusClass: 'active' | 'error' | 'inactive';
142
258
  StatusLabel: string;
143
259
  Icon: string;
@@ -166,22 +282,137 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
166
282
  FeedItems: FeedItem[];
167
283
  SourceMinis: SourceMini[];
168
284
  TrendingTags: TagCloudItem[];
285
+ FeedSearchQuery: string;
286
+ FeedPage: number;
287
+ readonly FeedPageSize = 20;
288
+ /** Sort order for the feed: 'newest' (default) or 'oldest' */
289
+ FeedSortOrder: 'newest' | 'oldest';
290
+ /** Feed items filtered by search query and sorted */
291
+ get FilteredFeedItems(): FeedItem[];
292
+ /** Toggle feed sort order */
293
+ ToggleFeedSort(): void;
294
+ /** Paginated feed items for the current page */
295
+ get PaginatedFeedItems(): FeedItem[];
296
+ /** Total pages for the feed */
297
+ get FeedTotalPages(): number;
298
+ /** Handle feed search input change */
299
+ OnFeedSearchChange(): void;
300
+ /** Navigate to previous feed page */
301
+ FeedPrevPage(): void;
302
+ /** Navigate to next feed page */
303
+ FeedNextPage(): void;
304
+ /** Get the index in the original FeedItems array for a paginated item */
305
+ GetFeedItemOriginalIndex(item: FeedItem): number;
169
306
  IsRunning: boolean;
307
+ IsPaused: boolean;
170
308
  RunProgress: number;
171
309
  RunStage: string;
172
310
  RunCurrentItem: string;
311
+ /** The current pipeline run ID (from GraphQL subscription) */
312
+ CurrentPipelineRunID: string | null;
313
+ /** The process run ID (server-side ContentProcessRun) for pause/cancel/resume */
314
+ CurrentProcessRunID: string | null;
315
+ ShowPipelineConfig: boolean;
316
+ PipelineConfig: {
317
+ Pipeline?: {
318
+ BatchSize?: number;
319
+ MaxConcurrentBatches?: number;
320
+ DelayBetweenBatchesMs?: number;
321
+ ResumeFromLastBatch?: boolean;
322
+ ErrorThresholdPercent?: number;
323
+ };
324
+ RateLimits?: {
325
+ LLM?: {
326
+ RequestsPerMinute?: number;
327
+ TokensPerMinute?: number;
328
+ };
329
+ Embedding?: {
330
+ RequestsPerMinute?: number;
331
+ TokensPerMinute?: number;
332
+ };
333
+ VectorDB?: {
334
+ RequestsPerMinute?: number;
335
+ };
336
+ };
337
+ };
338
+ TogglePipelineConfig(): void;
339
+ private persistClassifyPreferences;
340
+ private loadClassifyPreferences;
341
+ FormatTokenCount(tokens: number): string;
173
342
  SourceCards: SourceCard[];
343
+ ContentDuplicates: ContentDuplicateRow[];
344
+ IsLoadingDuplicates: boolean;
174
345
  ContentTypeCards: ContentTypeCard[];
175
346
  TagRows: TagRow[];
176
347
  TagCloud: TagCloudItem[];
348
+ TagCloudWordItems: WordCloudItem[];
177
349
  TagsBySource: TagBySource[];
178
350
  TagSearchQuery: string;
179
351
  FilteredTagRows: TagRow[];
352
+ SelectedDrillDownTag: string | null;
353
+ TagDrillDownItems: {
354
+ ID: string;
355
+ Name: string;
356
+ SourceName: string;
357
+ Weight: number;
358
+ UpdatedAt: string;
359
+ FeedIndex: number;
360
+ }[];
180
361
  RunHistoryRows: RunHistoryRow[];
181
362
  HistorySourceFilter: string;
182
363
  HistoryStatusFilter: string;
183
364
  FilteredRunRows: RunHistoryRow[];
184
365
  HistorySourceOptions: string[];
366
+ SelectedRunID: string | null;
367
+ RunDetailRows: RunDetailRow[];
368
+ IsLoadingRunDetail: boolean;
369
+ LiveRunDetailRows: RunDetailRow[];
370
+ IsLoadingLiveDetails: boolean;
371
+ TaxSubTab: TaxonomySubTab;
372
+ TaxTreeNodes: TaxTreeNode[];
373
+ TaxFlatNodes: TaxTreeNode[];
374
+ TaxFilteredNodes: TaxTreeNode[];
375
+ TaxSelectedNode: TaxTreeNode | null;
376
+ TaxTreeSearch: string;
377
+ TaxDuplicates: TaxDuplicatePair[];
378
+ TaxOrphans: TaxOrphanCard[];
379
+ TaxAllOrphansSelected: boolean;
380
+ TaxTreemapCells: TaxTreemapCell[];
381
+ TaxAuditEvents: TaxAuditEvent[];
382
+ TaxAuditFilterTypes: Set<string>;
383
+ TaxHealth: TaxHealthStat;
384
+ TaxRecentItems: {
385
+ Name: string;
386
+ Weight: number;
387
+ Date: string;
388
+ Icon: string;
389
+ }[];
390
+ TaxTreemapKPIs: {
391
+ Label: string;
392
+ Value: string;
393
+ }[];
394
+ TaxIsEditing: boolean;
395
+ ShowCreateTagDialog: boolean;
396
+ CreateTagName: string;
397
+ CreateTagDescription: string;
398
+ CreateTagParentID: string | null;
399
+ /** Label shown in the create dialog to indicate context (e.g., "under AI Agent") */
400
+ CreateTagParentLabel: string;
401
+ TaxMultiSelectMode: boolean;
402
+ TaxSelectedIDs: Set<string>;
403
+ /** The node currently being dragged over (drop target highlight) */
404
+ TaxDragOverNodeID: string | null;
405
+ /** True while a drag-reparent operation is saving */
406
+ TaxTreeSaving: boolean;
407
+ /** Count of high-confidence duplicate pairs (>85% similarity) */
408
+ get TaxHighConfidenceDupeCount(): number;
409
+ /** Count of moderate-confidence duplicate pairs (70-85% similarity) */
410
+ get TaxModerateDupeCount(): number;
411
+ TaxEditName: string;
412
+ TaxEditDescription: string;
413
+ private tagsRaw;
414
+ private taggedItemsRaw;
415
+ private tagAuditLogsRaw;
185
416
  FormMode: FormMode;
186
417
  FormSaving: boolean;
187
418
  FormSourceName: string;
@@ -198,13 +429,122 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
198
429
  EditingTypeID: string;
199
430
  FormTypeEmbeddingModelID: string;
200
431
  FormTypeVectorIndexID: string;
432
+ FormSourceEntityID: string;
433
+ FormSourceEntityDocID: string;
201
434
  FormSourceEmbeddingModelID: string;
202
435
  FormSourceVectorIndexID: string;
436
+ /** Whether the schedule creation dialog is visible */
437
+ ShowScheduleDialog: boolean;
438
+ /** Whether a schedule save operation is in progress */
439
+ ScheduleSaving: boolean;
440
+ /** Source card currently being scheduled */
441
+ SchedulingSourceCard: SourceCard | null;
442
+ /** Cron expression for the schedule form */
443
+ ScheduleCron: string;
444
+ /** Whether the schedule should be active immediately */
445
+ ScheduleEnabled: boolean;
446
+ /** Whether a generic confirmation overlay is visible */
447
+ ShowConfirmDialog: boolean;
448
+ /** Title text for the confirmation dialog */
449
+ ConfirmDialogTitle: string;
450
+ /** Body message for the confirmation dialog */
451
+ ConfirmDialogMessage: string;
452
+ /** Callback invoked when user confirms */
453
+ private confirmDialogAction;
454
+ /** Whether the split-tag dialog is visible */
455
+ ShowSplitDialog: boolean;
456
+ /** Comma-separated new child tag names for the split operation */
457
+ SplitChildNames: string;
458
+ /** The node currently being split */
459
+ private splitTargetNode;
460
+ /** Whether the move-tag dialog is visible */
461
+ ShowMoveDialog: boolean;
462
+ /** Selected new parent tag ID for the move operation */
463
+ MoveNewParentID: string | null;
464
+ /** The node currently being moved */
465
+ private moveTargetNode;
466
+ /** Whether the treemap drill-in panel is visible */
467
+ ShowTreemapDrillIn: boolean;
468
+ /** Tag node currently displayed in treemap drill-in */
469
+ TreemapDrillInNode: TaxTreeNode | null;
470
+ /** Cached ScheduledAction entities, keyed by normalized ID */
471
+ private scheduledActionsCache;
472
+ /**
473
+ * Whether the currently selected source type is "Entity", which switches
474
+ * the URL field to Entity/EntityDocument pickers.
475
+ */
476
+ /** Whether the selected source type is the Entity type (name-based check) */
477
+ get IsEntitySourceTypeSelected(): boolean;
478
+ /** Whether the selected source type requires Content Type / File Type selection */
479
+ get SelectedSourceTypeRequiresContentType(): boolean;
480
+ /** Entities that have at least one EntityDocument configured */
481
+ get EntitiesWithDocuments(): {
482
+ ID: string;
483
+ Name: string;
484
+ }[];
485
+ /** Entity documents for the selected entity */
486
+ get EntityDocOptionsForSelectedEntity(): {
487
+ ID: string;
488
+ Name: string;
489
+ }[];
490
+ /** Stores source-type-specific config values keyed by RequiredFields[].Key */
491
+ FormSourceSpecificConfig: Record<string, string>;
492
+ /** Available MJ Storage provider keys for the storage-provider-picker widget */
493
+ StorageProviderOptions: string[];
494
+ /**
495
+ * The RequiredFields array from the selected source type's ConfigurationObject.
496
+ * Drives dynamic form rendering — each field becomes a widget.
497
+ */
498
+ get SelectedSourceTypeFields(): MJContentSourceTypeEntity_IContentSourceTypeField[];
499
+ /**
500
+ * Get dependent options for a field (e.g., entity-doc-picker depends on entity-picker).
501
+ * Returns entity documents for the entity selected in the dependent field.
502
+ */
503
+ GetDependentOptions(field: MJContentSourceTypeEntity_IContentSourceTypeField): {
504
+ ID: string;
505
+ Name: string;
506
+ }[];
507
+ /**
508
+ * Handle a source-specific field value change.
509
+ * For entity-picker: auto-select the first entity doc if only one exists.
510
+ */
511
+ OnSourceFieldChanged(fieldKey: string): void;
203
512
  SelectedFeedItem: ContentItemDetail | null;
204
513
  ShowItemDetail: boolean;
205
514
  SelectedSource: SourceDetailInfo | null;
206
515
  ShowSourceDetail: boolean;
207
516
  SourceDetailLoading: boolean;
517
+ /** Filter content items in source detail by pipeline status */
518
+ SourceDetailStatusFilter: ItemPipelineStatus | 'All';
519
+ /** Available status options for the filter dropdown */
520
+ readonly SourceDetailStatusOptions: (ItemPipelineStatus | 'All')[];
521
+ /** Current page index (0-based) for source detail content list */
522
+ SourceDetailPage: number;
523
+ /** Number of content items per page in source detail */
524
+ readonly SourceDetailPageSize = 10;
525
+ /**
526
+ * Returns source detail content items filtered by SourceDetailStatusFilter,
527
+ * then sliced to the current page.
528
+ */
529
+ get FilteredSourceDetailItems(): ContentItemDetail[];
530
+ /** Total number of filtered items (before pagination) */
531
+ get FilteredSourceDetailTotal(): number;
532
+ /** Total pages for source detail pagination */
533
+ get SourceDetailTotalPages(): number;
534
+ /** Navigate to the previous page in source detail content list */
535
+ SourceDetailPrevPage(): void;
536
+ /** Navigate to the next page in source detail content list */
537
+ SourceDetailNextPage(): void;
538
+ /** Handle change of the source detail status filter dropdown */
539
+ OnSourceDetailStatusFilterChange(): void;
540
+ /**
541
+ * D4: Placeholder handler for retrying failed items in source detail.
542
+ * Re-runs the pipeline for the current source. In the future this could
543
+ * target only Failed items.
544
+ */
545
+ RetryFailedItems(): void;
546
+ /** Returns the CSS class for a pipeline status badge color */
547
+ GetStatusBadgeClass(status: ItemPipelineStatus): string;
208
548
  SourceTypeOptions: DropdownOption[];
209
549
  ContentTypeOptions: DropdownOption[];
210
550
  FileTypeOptions: DropdownOption[];
@@ -222,8 +562,23 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
222
562
  private contentTypesRaw;
223
563
  private contentFileTypesRaw;
224
564
  private aiModelsRaw;
565
+ private static readonly PREFS_KEY;
225
566
  ngAfterViewInit(): Promise<void>;
567
+ /**
568
+ * D9: Read incoming configuration from ResourceData (e.g. from Analytics tag navigation).
569
+ * Sets the initial tab and tag search query if provided.
570
+ */
571
+ private applyIncomingConfiguration;
572
+ /**
573
+ * D9: If a tagSearch parameter was provided via configuration, switch to the tags tab
574
+ * and apply the search filter after tag data loads.
575
+ */
576
+ private handleInitialTagSearch;
226
577
  ngOnDestroy(): void;
578
+ /** Report current classify dashboard state to the agent */
579
+ private emitAgentContext;
580
+ /** Register client tools the agent can invoke on the Classify dashboard */
581
+ private registerAgentTools;
227
582
  GetResourceDisplayName(_data: ResourceData): Promise<string>;
228
583
  GetResourceIconClass(_data: ResourceData): Promise<string>;
229
584
  SwitchTab(tab: TabName): Promise<void>;
@@ -234,9 +589,25 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
234
589
  private buildPipelineStages;
235
590
  private buildFeedItems;
236
591
  private buildSourceMinis;
592
+ /**
593
+ * D6: Build trending tags weighted by recency (last 7 days).
594
+ * Counts tags from ContentItemTag records created in the last 7 days
595
+ * and weights by frequency. Falls back to all-time data if no recent tags.
596
+ */
237
597
  private buildTrendingTags;
598
+ /**
599
+ * Compute scored trending tags from a given set of tag records.
600
+ * Returns top 12 tags sorted by score (frequency x avg weight).
601
+ */
602
+ private computeTrendingFromTags;
238
603
  private loadSourcesData;
239
604
  private buildSourceCards;
605
+ /** Resolve the entity record ID from the EntityRecordDocument for entity-sourced content items */
606
+ private resolveEntityRecordID;
607
+ /** Resolve the entity name for an entity-sourced content source */
608
+ private resolveEntityName;
609
+ /** Check if a source type's Configuration says RequiresFileType !== false */
610
+ private sourceTypeRequiresFileType;
240
611
  private loadContentTypesData;
241
612
  private buildContentTypeCards;
242
613
  private loadTagLibraryData;
@@ -248,19 +619,104 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
248
619
  /** Extract the ID string from a CompositeKey (from tree-dropdown ValueChange) */
249
620
  FromCompositeKey(key: CompositeKey | CompositeKey[] | null): string;
250
621
  FilterTags(): void;
622
+ /** Drill down into content items matching a specific tag */
623
+ DrillDownTag(tagName: string): void;
624
+ CloseDrillDownTag(): void;
251
625
  private loadRunHistoryData;
252
626
  private buildRunHistoryRows;
253
627
  private buildHistorySourceOptions;
254
628
  FilterRunHistory(): void;
629
+ /**
630
+ * D3/D8: Open the detail view for a specific run, loading ContentProcessRunDetail records.
631
+ */
632
+ OpenRunDetail(runID: string): Promise<void>;
633
+ /** D3/D8: Close the run detail slide-in */
634
+ CloseRunDetail(): void;
635
+ /**
636
+ * D2/D3/D8: Load ContentProcessRunDetail records for a given run and map to RunDetailRow[].
637
+ */
638
+ private loadRunDetailRows;
639
+ /**
640
+ * D2: Load live per-source progress for the currently running pipeline.
641
+ * Called when the pipeline is actively running.
642
+ */
643
+ LoadLiveRunDetails(): Promise<void>;
644
+ /** Map raw ContentProcessRunDetail records to RunDetailRow[] */
645
+ private mapRunDetailRecords;
255
646
  OpenAddSourceForm(): Promise<void>;
256
647
  OpenEditSourceForm(card: SourceCard): Promise<void>;
257
648
  SaveSource(): Promise<void>;
258
649
  DeleteSource(card: SourceCard): Promise<void>;
650
+ /**
651
+ * Opens the schedule dialog pre-filled for the given source card.
652
+ * Defaults to a daily 2 AM cron expression.
653
+ * @param card The source card to create a schedule for
654
+ */
655
+ OpenScheduleDialog(card: SourceCard): void;
656
+ /** Closes the schedule dialog without saving */
657
+ CloseScheduleDialog(): void;
658
+ /**
659
+ * Saves a new ScheduledAction for the current source, links it
660
+ * via ContentSource.ScheduledActionID, and creates the default
661
+ * action params for the Autotag and Vectorize action.
662
+ */
663
+ SaveSchedule(): Promise<void>;
664
+ /**
665
+ * Removes the schedule from a source card by unlinking the ScheduledActionID.
666
+ * @param card The source card to remove the schedule from
667
+ */
668
+ RemoveSchedule(card: SourceCard): Promise<void>;
669
+ /**
670
+ * Returns the human-readable schedule description for a source card.
671
+ * Used in the template to display schedule indicators.
672
+ */
673
+ GetScheduleLabel(card: SourceCard): string;
674
+ /**
675
+ * Returns a human-readable preview of a cron expression for the schedule dialog.
676
+ * @param cron The cron expression to preview
677
+ */
678
+ GetCronPreview(cron: string): string;
679
+ /** Looks up the cron expression for a cached ScheduledAction by ID */
680
+ private getScheduledActionCron;
681
+ /**
682
+ * Loads ScheduledAction entities referenced by content sources into the local cache.
683
+ * Called during initial data load so cron descriptions are available for card rendering.
684
+ */
685
+ private loadScheduledActionsForSources;
686
+ /** Finds the Action ID for "Autotag and Vectorize Content" by querying actions */
687
+ private findAutotagActionID;
688
+ /**
689
+ * Creates a ScheduledActionParam that passes the source ID to the action.
690
+ * Looks up the "EntityNames" action param and sets the source ID as its value.
691
+ */
692
+ private createSourceIDParam;
693
+ /**
694
+ * Links (or unlinks) a ScheduledAction to a ContentSource by updating
695
+ * the ContentSource.ScheduledActionID field.
696
+ */
697
+ private linkScheduleToSource;
259
698
  OpenAddTypeForm(): Promise<void>;
260
699
  OpenEditTypeForm(card: ContentTypeCard): Promise<void>;
261
700
  SaveContentType(): Promise<void>;
262
701
  CloseForm(): void;
263
- RunPipeline(): Promise<void>;
702
+ /**
703
+ * Run the pipeline for a specific content source only.
704
+ */
705
+ RunPipelineForSource(contentSourceID: string): Promise<void>;
706
+ RunPipeline(contentSourceIDs?: string[]): Promise<void>;
707
+ /**
708
+ * Pause a running classification pipeline. The server sets CancellationRequested
709
+ * on the process run so the engine pauses gracefully after the current batch.
710
+ */
711
+ PausePipeline(): Promise<void>;
712
+ /**
713
+ * Resume a paused classification pipeline from its last completed offset.
714
+ */
715
+ ResumePipeline(): Promise<void>;
716
+ /**
717
+ * Cancel a running or paused pipeline. Uses pause mechanism and resets UI state.
718
+ */
719
+ CancelPipeline(): Promise<void>;
264
720
  private subscribeToPipelineProgress;
265
721
  private updateStagesForActiveRun;
266
722
  private formatStageName;
@@ -279,6 +735,10 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
279
735
  private inferItemStatus;
280
736
  formatRelativeTime(dateStr: string | null | undefined): string;
281
737
  formatNumber(n: number): string;
738
+ /** Returns font size in rem for a tag based on its weight (0.0-1.0). Range: 0.7rem to 1.0rem */
739
+ TagFontSize(weight: number): string;
740
+ /** Format weight as percentage for display in tag chip */
741
+ FormatWeight(weight: number): string;
282
742
  private formatShortDate;
283
743
  private formatDate;
284
744
  private computeDuration;
@@ -292,9 +752,23 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
292
752
  private refreshContentTypesTab;
293
753
  OpenFeedItemDetail(index: number): void;
294
754
  OpenContentItemDetail(item: ContentItemDetail): void;
755
+ /** Open content item detail slide-in by content item ID (used from tag drill-down) */
756
+ OpenItemDetailByID(contentItemID: string): void;
295
757
  CloseItemDetail(): void;
296
758
  OpenRecordFromItem(item: ContentItemDetail): void;
297
- private getAllTagsForItem;
759
+ /** Cache: EntityRecordDocument ID → RecordID */
760
+ private entityRecordDocCache;
761
+ /** Load ERD RecordIDs for entity-sourced content items */
762
+ private loadEntityRecordDocCache;
763
+ private getAllWeightedTagsForItem;
764
+ /**
765
+ * D4: Infer embedding and tagging pipeline statuses for a content item.
766
+ * Uses tag count and run history heuristics since dedicated status columns
767
+ * are not yet available on the ContentItem entity.
768
+ */
769
+ private inferPipelineStatuses;
770
+ /** Map a raw status string to the ItemPipelineStatus union */
771
+ private mapStatusString;
298
772
  OpenSourceDetail(card: SourceCard): Promise<void>;
299
773
  CloseSourceDetail(): void;
300
774
  OpenRecordFromSource(source: SourceDetailInfo): void;
@@ -305,9 +779,207 @@ export declare class AutotaggingPipelineResourceComponent extends BaseResourceCo
305
779
  private loadRunHistoryForSource;
306
780
  private resolveEmbeddingModelName;
307
781
  private resolveVectorIndexName;
782
+ SwitchTaxSubTab(sub: TaxonomySubTab): void;
783
+ /**
784
+ * Loads all data needed by the Taxonomy Governance sub-tabs:
785
+ * Tags, Tagged Items, Tag Audit Logs, and cross-references content item tags.
786
+ */
787
+ private loadTaxonomyData;
788
+ /**
789
+ * Builds the taxonomy tree from raw tag data, wiring up parent-child
790
+ * relationships and attaching item counts and average weights.
791
+ */
792
+ private buildTaxTree;
793
+ private computeTreeDepths;
794
+ private propagateItemCounts;
795
+ private sortTreeNodes;
796
+ private flattenTree;
797
+ private computeTagHealth;
798
+ /**
799
+ * Counts the number of items referencing each tag, combining both
800
+ * Tagged Items and Content Item Tags. Uses NormalizeUUID for
801
+ * cross-platform UUID case consistency.
802
+ */
803
+ private countItemsByTag;
804
+ /**
805
+ * Computes the average weight per tag from Content Item Tags.
806
+ * Uses NormalizeUUID for cross-platform UUID case consistency.
807
+ */
808
+ private computeTagAvgWeights;
809
+ ToggleTaxNode(node: TaxTreeNode): void;
810
+ SelectTaxNode(node: TaxTreeNode): void;
811
+ FilterTaxTree(): void;
812
+ private applyTaxTreeFilter;
813
+ GetTaxBreadcrumb(node: TaxTreeNode): {
814
+ ID: string;
815
+ Name: string;
816
+ }[];
817
+ NavigateToBreadcrumb(tagId: string): void;
818
+ private loadRecentItemsForTag;
819
+ StartEditTag(): void;
820
+ CancelEditTag(): void;
821
+ SaveEditTag(): Promise<void>;
822
+ MoveTag(node: TaxTreeNode, newParentId: string | null): Promise<void>;
823
+ DeleteTag(node: TaxTreeNode): void;
824
+ /** Open create tag dialog for a root-level tag */
825
+ OpenCreateRootTag(): void;
826
+ /** Open create tag dialog as child of the selected node */
827
+ OpenCreateChildTag(): void;
828
+ /** Open create tag dialog as child of a specific node */
829
+ OpenCreateChildTagFor(node: TaxTreeNode): void;
830
+ /** Close create tag dialog */
831
+ CloseCreateTagDialog(): void;
832
+ /** Save the new tag */
833
+ SaveNewTag(): Promise<void>;
834
+ /** Toggle multi-select mode on/off */
835
+ ToggleMultiSelectMode(): void;
836
+ /** Toggle a node's selection in multi-select mode */
837
+ ToggleNodeSelection(node: TaxTreeNode, event: Event): void;
838
+ /** Check if a node is selected in multi-select mode */
839
+ IsNodeMultiSelected(nodeID: string): boolean;
840
+ /** Handle drag start on a tree node */
841
+ OnTreeNodeDragStart(event: DragEvent, node: TaxTreeNode): void;
842
+ /** Handle drag over a tree node (drop target) */
843
+ OnTreeNodeDragOver(event: DragEvent, node: TaxTreeNode): void;
844
+ /** Handle drag leave */
845
+ OnTreeNodeDragLeave(): void;
846
+ /** Handle drop — reparent dragged node(s) under the drop target */
847
+ OnTreeNodeDrop(event: DragEvent, targetNode: TaxTreeNode): Promise<void>;
848
+ /** Handle drop on the "Root" drop zone (make root-level) */
849
+ OnDropToRoot(event: DragEvent): Promise<void>;
850
+ MergeTags(sourceTagId: string, targetTagId: string, sourceName: string, targetName: string): Promise<void>;
851
+ MakeChildTag(childTagId: string, parentTagId: string): Promise<void>;
852
+ DismissDuplicate(pair: TaxDuplicatePair): void;
853
+ private buildTaxDuplicates;
854
+ /** Group tags by case-insensitive name, returning only groups with 2+ members */
855
+ private groupExactNameDuplicates;
856
+ /**
857
+ * Enhanced string similarity: separator normalization, abbreviation,
858
+ * pluralization, token-overlap Jaccard, containment, and Levenshtein.
859
+ * Returns the highest score among all heuristics.
860
+ */
861
+ private computeStringSimilarity;
862
+ /** Scores simple English pluralization differences */
863
+ private computePluralizationScore;
864
+ /** Jaccard similarity on word tokens */
865
+ private computeTokenJaccardSimilarity;
866
+ private isAbbreviationOf;
867
+ private levenshteinDistance;
868
+ /**
869
+ * Finds orphan tags: no parent, no children, and zero usage.
870
+ * A tag with even 1 connection is not orphaned — it's just a leaf.
871
+ * Uses NormalizeUUID for consistent cross-platform UUID comparisons.
872
+ */
873
+ private buildTaxOrphans;
874
+ ToggleOrphanSelection(orphan: TaxOrphanCard): void;
875
+ ToggleAllOrphans(): void;
876
+ DeleteOrphan(orphan: TaxOrphanCard): void;
877
+ BulkDeleteOrphans(): void;
878
+ /** Delete all orphan tags at once with a styled confirmation dialog */
879
+ DeleteAllOrphans(): void;
880
+ private buildTaxTreemap;
881
+ /**
882
+ * Builds the audit timeline from the MJ: Tag Audit Logs entity.
883
+ * Falls back to synthesizing "created" events from tag creation dates
884
+ * if no real audit log records exist yet.
885
+ */
886
+ private buildTaxAuditLog;
887
+ /**
888
+ * Maps real Tag Audit Log records into TaxAuditEvent objects.
889
+ * Uses the view's denormalized Tag, PerformedByUser, and RelatedTag fields.
890
+ */
891
+ private buildAuditEventsFromLogs;
892
+ /**
893
+ * Synthesizes audit events from tag __mj_CreatedAt dates when no
894
+ * real audit log records exist. Used as a fallback only.
895
+ */
896
+ private synthesizeAuditEventsFromTags;
897
+ /**
898
+ * Maps a PascalCase DB Action value (e.g. "Renamed") to the lowercase
899
+ * TaxAuditAction type used in the UI. Returns null for unrecognized values.
900
+ */
901
+ private mapAuditActionToType;
902
+ /**
903
+ * Safely parses the JSON Details column from a Tag Audit Log record.
904
+ * Returns an empty object on parse failure.
905
+ */
906
+ private parseAuditDetails;
907
+ /**
908
+ * Builds a human-readable description for an audit event based on the
909
+ * action type and any additional context from the related tag or details JSON.
910
+ */
911
+ private buildAuditDescription;
912
+ /**
913
+ * Adds a local-only audit entry to the top of the timeline for
914
+ * immediate UI feedback after a user action (merge, delete, etc.).
915
+ */
916
+ private addTaxAuditEntry;
917
+ ToggleTaxAuditFilter(type: string): void;
918
+ GetFilteredAuditEvents(): TaxAuditEvent[];
919
+ private formatDayHeader;
920
+ private buildTaxHealth;
921
+ /** Returns the Font Awesome icon class for an audit event action type. */
922
+ GetTaxAuditIcon(type: string): string;
923
+ /** Opens a styled confirmation dialog, replacing browser `confirm()`. */
924
+ OpenConfirmDialog(title: string, message: string, action: () => Promise<void>): void;
925
+ /** User confirmed the dialog action */
926
+ ConfirmDialogAccept(): Promise<void>;
927
+ /** User cancelled the confirmation dialog */
928
+ ConfirmDialogCancel(): void;
929
+ /** Opens the split-tag dialog for a given tree node */
930
+ OpenSplitDialog(node: TaxTreeNode): void;
931
+ /** Closes the split-tag dialog without action */
932
+ CloseSplitDialog(): void;
933
+ /** Executes the split operation, creating child tags from comma-separated names */
934
+ ExecuteSplit(): Promise<void>;
935
+ /** Opens the move-tag dialog for a given tree node */
936
+ OpenMoveDialog(node: TaxTreeNode): void;
937
+ /** Closes the move-tag dialog without action */
938
+ CloseMoveDialog(): void;
939
+ /** Returns flat list of tags eligible as move targets (excludes the node being moved and its descendants) */
940
+ GetMoveTargetOptions(): {
941
+ ID: string;
942
+ Name: string;
943
+ Depth: number;
944
+ }[];
945
+ /** Collects IDs of all descendants of a node */
946
+ private collectDescendantIds;
947
+ /** Executes the move operation */
948
+ ExecuteMove(): Promise<void>;
949
+ /** Opens treemap drill-in panel for the given cell */
950
+ OpenTreemapDrillIn(cell: TaxTreemapCell): void;
951
+ /** Closes treemap drill-in panel */
952
+ CloseTreemapDrillIn(): void;
953
+ /** Navigate from treemap drill-in to the tag in the tree view */
954
+ DrillInToTreeView(node: TaxTreeNode): void;
955
+ RefreshTaxonomyData(): Promise<void>;
956
+ /** Load pending content item duplicates for review */
957
+ LoadContentDuplicates(): Promise<void>;
958
+ /** Resolve content source names for a list of content item IDs */
959
+ private resolveItemSourceNames;
960
+ /** Confirm a content duplicate pair */
961
+ ConfirmContentDuplicate(dupRow: ContentDuplicateRow): Promise<void>;
962
+ /** Dismiss a content duplicate pair */
963
+ DismissContentDuplicate(dupRow: ContentDuplicateRow): Promise<void>;
308
964
  static ɵfac: i0.ɵɵFactoryDeclaration<AutotaggingPipelineResourceComponent, never>;
309
965
  static ɵcmp: i0.ɵɵComponentDeclaration<AutotaggingPipelineResourceComponent, "app-autotagging-pipeline-resource", never, {}, {}, never, never, false, never>;
310
966
  }
311
967
  export declare function LoadAutotaggingPipelineResource(): void;
968
+ /**
969
+ * Converts a 5-part or 6-part cron expression to a human-readable English string.
970
+ *
971
+ * Handles common patterns:
972
+ * `0 * * * *` -> "Every hour"
973
+ * `0 2 * * *` -> "Daily at 2:00 AM"
974
+ * `0 2 * * 1` -> "Weekly on Monday at 2:00 AM"
975
+ * `star/15 * * * *` -> "Every 15 minutes" (where star = asterisk)
976
+ * `0 0 1 * *` -> "Monthly on day 1 at 12:00 AM"
977
+ *
978
+ * Falls back to returning the raw cron string for unrecognized patterns.
979
+ *
980
+ * @param cron A cron expression string (5 or 6 parts)
981
+ * @returns A human-readable description or the raw cron if unrecognized
982
+ */
983
+ export declare function CronToHumanReadable(cron: string): string;
312
984
  export {};
313
985
  //# sourceMappingURL=autotagging-pipeline-resource.component.d.ts.map