@memberjunction/ng-conversations 2.106.0 → 2.108.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/lib/components/collection/artifact-collection-picker-modal.component.d.ts +67 -0
- package/dist/lib/components/collection/artifact-collection-picker-modal.component.d.ts.map +1 -0
- package/dist/lib/components/collection/artifact-collection-picker-modal.component.js +725 -0
- package/dist/lib/components/collection/artifact-collection-picker-modal.component.js.map +1 -0
- package/dist/lib/components/collection/artifact-create-modal.component.d.ts +39 -0
- package/dist/lib/components/collection/artifact-create-modal.component.d.ts.map +1 -0
- package/dist/lib/components/collection/artifact-create-modal.component.js +351 -0
- package/dist/lib/components/collection/artifact-create-modal.component.js.map +1 -0
- package/dist/lib/components/collection/collection-form-modal.component.d.ts +3 -1
- package/dist/lib/components/collection/collection-form-modal.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-form-modal.component.js +60 -10
- package/dist/lib/components/collection/collection-form-modal.component.js.map +1 -1
- package/dist/lib/components/collection/collection-share-modal.component.d.ts +43 -0
- package/dist/lib/components/collection/collection-share-modal.component.d.ts.map +1 -0
- package/dist/lib/components/collection/collection-share-modal.component.js +728 -0
- package/dist/lib/components/collection/collection-share-modal.component.js.map +1 -0
- package/dist/lib/components/collection/collection-tree.component.d.ts +8 -1
- package/dist/lib/components/collection/collection-tree.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-tree.component.js +217 -115
- package/dist/lib/components/collection/collection-tree.component.js.map +1 -1
- package/dist/lib/components/collection/collection-view.component.d.ts +2 -1
- package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collection-view.component.js +52 -34
- package/dist/lib/components/collection/collection-view.component.js.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.d.ts +45 -9
- package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -1
- package/dist/lib/components/collection/collections-full-view.component.js +586 -220
- package/dist/lib/components/collection/collections-full-view.component.js.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +53 -20
- package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
- package/dist/lib/components/conversation/conversation-chat-area.component.js +365 -250
- package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
- package/dist/lib/components/message/message-input.component.d.ts +71 -1
- package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-input.component.js +303 -104
- package/dist/lib/components/message/message-input.component.js.map +1 -1
- package/dist/lib/components/message/message-item.component.d.ts +39 -5
- package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-item.component.js +259 -137
- package/dist/lib/components/message/message-item.component.js.map +1 -1
- package/dist/lib/components/message/message-list.component.d.ts +8 -6
- package/dist/lib/components/message/message-list.component.d.ts.map +1 -1
- package/dist/lib/components/message/message-list.component.js +52 -9
- package/dist/lib/components/message/message-list.component.js.map +1 -1
- package/dist/lib/components/message/suggested-responses.component.d.ts +55 -0
- package/dist/lib/components/message/suggested-responses.component.d.ts.map +1 -0
- package/dist/lib/components/message/suggested-responses.component.js +207 -0
- package/dist/lib/components/message/suggested-responses.component.js.map +1 -0
- package/dist/lib/components/search/search-panel.component.d.ts.map +1 -1
- package/dist/lib/components/search/search-panel.component.js +245 -113
- package/dist/lib/components/search/search-panel.component.js.map +1 -1
- package/dist/lib/components/shared/user-picker.component.d.ts +29 -0
- package/dist/lib/components/shared/user-picker.component.d.ts.map +1 -0
- package/dist/lib/components/shared/user-picker.component.js +229 -0
- package/dist/lib/components/shared/user-picker.component.js.map +1 -0
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts +7 -1
- package/dist/lib/components/tasks/tasks-dropdown.component.d.ts.map +1 -1
- package/dist/lib/components/tasks/tasks-dropdown.component.js +36 -6
- package/dist/lib/components/tasks/tasks-dropdown.component.js.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts +19 -2
- package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -1
- package/dist/lib/components/workspace/conversation-workspace.component.js +167 -58
- package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -1
- package/dist/lib/conversations.module.d.ts +52 -47
- package/dist/lib/conversations.module.d.ts.map +1 -1
- package/dist/lib/conversations.module.js +27 -4
- package/dist/lib/conversations.module.js.map +1 -1
- package/dist/lib/models/conversation-complete-query.model.d.ts +75 -0
- package/dist/lib/models/conversation-complete-query.model.d.ts.map +1 -0
- package/dist/lib/models/conversation-complete-query.model.js +19 -0
- package/dist/lib/models/conversation-complete-query.model.js.map +1 -0
- package/dist/lib/models/conversation-state.model.d.ts +27 -0
- package/dist/lib/models/conversation-state.model.d.ts.map +1 -1
- package/dist/lib/models/lazy-artifact-info.d.ts +68 -0
- package/dist/lib/models/lazy-artifact-info.d.ts.map +1 -0
- package/dist/lib/models/lazy-artifact-info.js +150 -0
- package/dist/lib/models/lazy-artifact-info.js.map +1 -0
- package/dist/lib/services/agent-state.service.d.ts.map +1 -1
- package/dist/lib/services/agent-state.service.js +5 -0
- package/dist/lib/services/agent-state.service.js.map +1 -1
- package/dist/lib/services/artifact-state.service.d.ts.map +1 -1
- package/dist/lib/services/artifact-state.service.js +14 -9
- package/dist/lib/services/artifact-state.service.js.map +1 -1
- package/dist/lib/services/collection-permission.service.d.ts +96 -0
- package/dist/lib/services/collection-permission.service.d.ts.map +1 -0
- package/dist/lib/services/collection-permission.service.js +303 -0
- package/dist/lib/services/collection-permission.service.js.map +1 -0
- package/dist/lib/services/collection-state.service.d.ts +34 -0
- package/dist/lib/services/collection-state.service.d.ts.map +1 -0
- package/dist/lib/services/collection-state.service.js +50 -0
- package/dist/lib/services/collection-state.service.js.map +1 -0
- package/dist/lib/services/conversation-agent.service.d.ts +20 -4
- package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
- package/dist/lib/services/conversation-agent.service.js +179 -17
- package/dist/lib/services/conversation-agent.service.js.map +1 -1
- package/dist/lib/services/data-cache.service.d.ts.map +1 -1
- package/dist/lib/services/data-cache.service.js +5 -0
- package/dist/lib/services/data-cache.service.js.map +1 -1
- package/dist/lib/services/mention-autocomplete.service.js +1 -1
- package/dist/lib/services/mention-autocomplete.service.js.map +1 -1
- package/dist/lib/services/mention-parser.service.d.ts.map +1 -1
- package/dist/lib/services/mention-parser.service.js +0 -5
- package/dist/lib/services/mention-parser.service.js.map +1 -1
- package/dist/lib/services/search.service.d.ts +26 -3
- package/dist/lib/services/search.service.d.ts.map +1 -1
- package/dist/lib/services/search.service.js +172 -12
- package/dist/lib/services/search.service.js.map +1 -1
- package/dist/public-api.d.ts +4 -0
- 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/package.json +12 -12
|
@@ -2,55 +2,60 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./components/message/message-item.component";
|
|
3
3
|
import * as i2 from "./components/message/message-list.component";
|
|
4
4
|
import * as i3 from "./components/message/message-input.component";
|
|
5
|
-
import * as i4 from "./components/
|
|
6
|
-
import * as i5 from "./components/
|
|
7
|
-
import * as i6 from "./components/
|
|
8
|
-
import * as i7 from "./components/
|
|
9
|
-
import * as i8 from "./components/
|
|
10
|
-
import * as i9 from "./components/conversation/conversation-
|
|
11
|
-
import * as i10 from "./components/
|
|
12
|
-
import * as i11 from "./components/
|
|
13
|
-
import * as i12 from "./components/collection/collection-
|
|
14
|
-
import * as i13 from "./components/collection/collection-
|
|
15
|
-
import * as i14 from "./components/
|
|
16
|
-
import * as i15 from "./components/
|
|
17
|
-
import * as i16 from "./components/collection/
|
|
18
|
-
import * as i17 from "./components/
|
|
19
|
-
import * as i18 from "./components/
|
|
20
|
-
import * as i19 from "./components/
|
|
21
|
-
import * as i20 from "./components/
|
|
22
|
-
import * as i21 from "./components/
|
|
23
|
-
import * as i22 from "./components/
|
|
24
|
-
import * as i23 from "./components/
|
|
25
|
-
import * as i24 from "./components/
|
|
26
|
-
import * as i25 from "./components/
|
|
27
|
-
import * as i26 from "./components/
|
|
28
|
-
import * as i27 from "./components/
|
|
29
|
-
import * as i28 from "./components/
|
|
30
|
-
import * as i29 from "./components/
|
|
31
|
-
import * as i30 from "./components/
|
|
32
|
-
import * as i31 from "./components/
|
|
33
|
-
import * as i32 from "./
|
|
34
|
-
import * as i33 from "
|
|
35
|
-
import * as i34 from "
|
|
36
|
-
import * as i35 from "@angular/
|
|
37
|
-
import * as i36 from "@
|
|
38
|
-
import * as i37 from "@
|
|
39
|
-
import * as i38 from "@progress/kendo-angular-
|
|
40
|
-
import * as i39 from "@progress/kendo-angular-
|
|
41
|
-
import * as i40 from "@progress/kendo-angular-
|
|
42
|
-
import * as i41 from "@progress/kendo-angular-
|
|
43
|
-
import * as i42 from "@progress/kendo-angular-
|
|
44
|
-
import * as i43 from "@progress/kendo-angular-
|
|
45
|
-
import * as i44 from "@progress/kendo-angular-
|
|
46
|
-
import * as i45 from "@
|
|
47
|
-
import * as i46 from "@
|
|
48
|
-
import * as i47 from "@memberjunction/ng-
|
|
49
|
-
import * as i48 from "
|
|
50
|
-
import * as i49 from "
|
|
5
|
+
import * as i4 from "./components/message/suggested-responses.component";
|
|
6
|
+
import * as i5 from "./components/mention/mention-dropdown.component";
|
|
7
|
+
import * as i6 from "./components/workspace/conversation-workspace.component";
|
|
8
|
+
import * as i7 from "./components/navigation/conversation-navigation.component";
|
|
9
|
+
import * as i8 from "./components/sidebar/conversation-sidebar.component";
|
|
10
|
+
import * as i9 from "./components/conversation/conversation-list.component";
|
|
11
|
+
import * as i10 from "./components/conversation/conversation-chat-area.component";
|
|
12
|
+
import * as i11 from "./components/thread/thread-panel.component";
|
|
13
|
+
import * as i12 from "./components/collection/collection-tree.component";
|
|
14
|
+
import * as i13 from "./components/collection/collection-view.component";
|
|
15
|
+
import * as i14 from "./components/collection/collection-artifact-card.component";
|
|
16
|
+
import * as i15 from "./components/library/library-full-view.component";
|
|
17
|
+
import * as i16 from "./components/collection/collection-form-modal.component";
|
|
18
|
+
import * as i17 from "./components/collection/artifact-create-modal.component";
|
|
19
|
+
import * as i18 from "./components/collection/collections-full-view.component";
|
|
20
|
+
import * as i19 from "./components/project/project-selector.component";
|
|
21
|
+
import * as i20 from "./components/project/project-form-modal.component";
|
|
22
|
+
import * as i21 from "./components/tasks/tasks-dropdown.component";
|
|
23
|
+
import * as i22 from "./components/tasks/task-widget.component";
|
|
24
|
+
import * as i23 from "./components/agent/agent-process-panel.component";
|
|
25
|
+
import * as i24 from "./components/agent/active-agent-indicator.component";
|
|
26
|
+
import * as i25 from "./components/active-tasks/active-tasks-panel.component";
|
|
27
|
+
import * as i26 from "./components/share/share-modal.component";
|
|
28
|
+
import * as i27 from "./components/members/members-modal.component";
|
|
29
|
+
import * as i28 from "./components/export/export-modal.component";
|
|
30
|
+
import * as i29 from "./components/search/search-panel.component";
|
|
31
|
+
import * as i30 from "./components/notification/notification-badge.component";
|
|
32
|
+
import * as i31 from "./components/notification/activity-indicator.component";
|
|
33
|
+
import * as i32 from "./components/toast/toast.component";
|
|
34
|
+
import * as i33 from "./components/dialogs/input-dialog.component";
|
|
35
|
+
import * as i34 from "./directives/search-shortcut.directive";
|
|
36
|
+
import * as i35 from "@angular/common";
|
|
37
|
+
import * as i36 from "@angular/forms";
|
|
38
|
+
import * as i37 from "@angular/router";
|
|
39
|
+
import * as i38 from "@progress/kendo-angular-dialog";
|
|
40
|
+
import * as i39 from "@progress/kendo-angular-buttons";
|
|
41
|
+
import * as i40 from "@progress/kendo-angular-inputs";
|
|
42
|
+
import * as i41 from "@progress/kendo-angular-layout";
|
|
43
|
+
import * as i42 from "@progress/kendo-angular-indicators";
|
|
44
|
+
import * as i43 from "@progress/kendo-angular-dropdowns";
|
|
45
|
+
import * as i44 from "@progress/kendo-angular-notification";
|
|
46
|
+
import * as i45 from "@progress/kendo-angular-upload";
|
|
47
|
+
import * as i46 from "@progress/kendo-angular-dateinputs";
|
|
48
|
+
import * as i47 from "@memberjunction/ng-container-directives";
|
|
49
|
+
import * as i48 from "@memberjunction/ng-code-editor";
|
|
50
|
+
import * as i49 from "@memberjunction/ng-artifacts";
|
|
51
|
+
import * as i50 from "ngx-markdown";
|
|
52
|
+
import * as i51 from "./components/task/tasks-full-view.component";
|
|
53
|
+
import * as i52 from "./components/collection/collection-share-modal.component";
|
|
54
|
+
import * as i53 from "./components/shared/user-picker.component";
|
|
55
|
+
import * as i54 from "./components/collection/artifact-collection-picker-modal.component";
|
|
51
56
|
export declare class ConversationsModule {
|
|
52
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConversationsModule, never>;
|
|
53
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationsModule, [typeof i1.MessageItemComponent, typeof i2.MessageListComponent, typeof i3.MessageInputComponent, typeof i4.
|
|
58
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ConversationsModule, [typeof i1.MessageItemComponent, typeof i2.MessageListComponent, typeof i3.MessageInputComponent, typeof i4.SuggestedResponsesComponent, typeof i5.MentionDropdownComponent, typeof i6.ConversationWorkspaceComponent, typeof i7.ConversationNavigationComponent, typeof i8.ConversationSidebarComponent, typeof i9.ConversationListComponent, typeof i10.ConversationChatAreaComponent, typeof i11.ThreadPanelComponent, typeof i12.CollectionTreeComponent, typeof i13.CollectionViewComponent, typeof i14.CollectionArtifactCardComponent, typeof i15.LibraryFullViewComponent, typeof i16.CollectionFormModalComponent, typeof i17.ArtifactCreateModalComponent, typeof i18.CollectionsFullViewComponent, typeof i19.ProjectSelectorComponent, typeof i20.ProjectFormModalComponent, typeof i21.TasksDropdownComponent, typeof i22.TaskWidgetComponent, typeof i23.AgentProcessPanelComponent, typeof i24.ActiveAgentIndicatorComponent, typeof i25.ActiveTasksPanelComponent, typeof i26.ShareModalComponent, typeof i27.MembersModalComponent, typeof i28.ExportModalComponent, typeof i29.SearchPanelComponent, typeof i30.NotificationBadgeComponent, typeof i31.ActivityIndicatorComponent, typeof i32.ToastComponent, typeof i33.InputDialogComponent, typeof i34.SearchShortcutDirective], [typeof i35.CommonModule, typeof i36.FormsModule, typeof i36.ReactiveFormsModule, typeof i37.RouterModule, typeof i38.DialogModule, typeof i38.WindowModule, typeof i39.ButtonsModule, typeof i40.InputsModule, typeof i41.LayoutModule, typeof i42.IndicatorsModule, typeof i43.DropDownsModule, typeof i44.NotificationModule, typeof i45.UploadsModule, typeof i46.DateInputsModule, typeof i47.ContainerDirectivesModule, typeof i48.CodeEditorModule, typeof i49.ArtifactsModule, typeof i50.MarkdownModule, typeof i51.TasksFullViewComponent, typeof i52.CollectionShareModalComponent, typeof i53.UserPickerComponent, typeof i54.ArtifactCollectionPickerModalComponent], [typeof i1.MessageItemComponent, typeof i2.MessageListComponent, typeof i3.MessageInputComponent, typeof i4.SuggestedResponsesComponent, typeof i5.MentionDropdownComponent, typeof i6.ConversationWorkspaceComponent, typeof i7.ConversationNavigationComponent, typeof i8.ConversationSidebarComponent, typeof i9.ConversationListComponent, typeof i10.ConversationChatAreaComponent, typeof i11.ThreadPanelComponent, typeof i12.CollectionTreeComponent, typeof i13.CollectionViewComponent, typeof i14.CollectionArtifactCardComponent, typeof i15.LibraryFullViewComponent, typeof i16.CollectionFormModalComponent, typeof i17.ArtifactCreateModalComponent, typeof i18.CollectionsFullViewComponent, typeof i19.ProjectSelectorComponent, typeof i20.ProjectFormModalComponent, typeof i21.TasksDropdownComponent, typeof i22.TaskWidgetComponent, typeof i23.AgentProcessPanelComponent, typeof i24.ActiveAgentIndicatorComponent, typeof i25.ActiveTasksPanelComponent, typeof i26.ShareModalComponent, typeof i27.MembersModalComponent, typeof i28.ExportModalComponent, typeof i29.SearchPanelComponent, typeof i30.NotificationBadgeComponent, typeof i31.ActivityIndicatorComponent, typeof i32.ToastComponent, typeof i33.InputDialogComponent, typeof i34.SearchShortcutDirective, typeof i51.TasksFullViewComponent]>;
|
|
54
59
|
static ɵinj: i0.ɵɵInjectorDeclaration<ConversationsModule>;
|
|
55
60
|
}
|
|
56
61
|
//# sourceMappingURL=conversations.module.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.module.d.ts","sourceRoot":"","sources":["../../src/lib/conversations.module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conversations.module.d.ts","sourceRoot":"","sources":["../../src/lib/conversations.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGA,qBAqCa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAI"}
|
|
@@ -3,7 +3,7 @@ import { CommonModule } from '@angular/common';
|
|
|
3
3
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
4
|
import { RouterModule } from '@angular/router';
|
|
5
5
|
// Kendo UI modules
|
|
6
|
-
import { DialogModule } from '@progress/kendo-angular-dialog';
|
|
6
|
+
import { DialogModule, WindowModule } from '@progress/kendo-angular-dialog';
|
|
7
7
|
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
8
8
|
import { InputsModule } from '@progress/kendo-angular-inputs';
|
|
9
9
|
import { LayoutModule } from '@progress/kendo-angular-layout';
|
|
@@ -22,6 +22,7 @@ import { MarkdownModule } from 'ngx-markdown';
|
|
|
22
22
|
import { MessageItemComponent } from './components/message/message-item.component';
|
|
23
23
|
import { MessageListComponent } from './components/message/message-list.component';
|
|
24
24
|
import { MessageInputComponent } from './components/message/message-input.component';
|
|
25
|
+
import { SuggestedResponsesComponent } from './components/message/suggested-responses.component';
|
|
25
26
|
import { MentionDropdownComponent } from './components/mention/mention-dropdown.component';
|
|
26
27
|
import { ConversationWorkspaceComponent } from './components/workspace/conversation-workspace.component';
|
|
27
28
|
import { ConversationNavigationComponent } from './components/navigation/conversation-navigation.component';
|
|
@@ -34,6 +35,7 @@ import { CollectionViewComponent } from './components/collection/collection-view
|
|
|
34
35
|
import { CollectionArtifactCardComponent } from './components/collection/collection-artifact-card.component';
|
|
35
36
|
import { LibraryFullViewComponent } from './components/library/library-full-view.component';
|
|
36
37
|
import { CollectionFormModalComponent } from './components/collection/collection-form-modal.component';
|
|
38
|
+
import { ArtifactCreateModalComponent } from './components/collection/artifact-create-modal.component';
|
|
37
39
|
import { CollectionsFullViewComponent } from './components/collection/collections-full-view.component';
|
|
38
40
|
import { ProjectSelectorComponent } from './components/project/project-selector.component';
|
|
39
41
|
import { ProjectFormModalComponent } from './components/project/project-form-modal.component';
|
|
@@ -51,6 +53,9 @@ import { NotificationBadgeComponent } from './components/notification/notificati
|
|
|
51
53
|
import { ActivityIndicatorComponent } from './components/notification/activity-indicator.component';
|
|
52
54
|
import { ToastComponent } from './components/toast/toast.component';
|
|
53
55
|
import { InputDialogComponent } from './components/dialogs/input-dialog.component';
|
|
56
|
+
import { CollectionShareModalComponent } from './components/collection/collection-share-modal.component';
|
|
57
|
+
import { UserPickerComponent } from './components/shared/user-picker.component';
|
|
58
|
+
import { ArtifactCollectionPickerModalComponent } from './components/collection/artifact-collection-picker-modal.component';
|
|
54
59
|
// Directives
|
|
55
60
|
import { SearchShortcutDirective } from './directives/search-shortcut.directive';
|
|
56
61
|
import * as i0 from "@angular/core";
|
|
@@ -60,6 +65,7 @@ const COMPONENTS = [
|
|
|
60
65
|
MessageItemComponent,
|
|
61
66
|
MessageListComponent,
|
|
62
67
|
MessageInputComponent,
|
|
68
|
+
SuggestedResponsesComponent,
|
|
63
69
|
MentionDropdownComponent,
|
|
64
70
|
ConversationWorkspaceComponent,
|
|
65
71
|
ConversationNavigationComponent,
|
|
@@ -72,6 +78,7 @@ const COMPONENTS = [
|
|
|
72
78
|
CollectionArtifactCardComponent,
|
|
73
79
|
LibraryFullViewComponent,
|
|
74
80
|
CollectionFormModalComponent,
|
|
81
|
+
ArtifactCreateModalComponent,
|
|
75
82
|
CollectionsFullViewComponent,
|
|
76
83
|
ProjectSelectorComponent,
|
|
77
84
|
ProjectFormModalComponent,
|
|
@@ -98,6 +105,7 @@ export class ConversationsModule {
|
|
|
98
105
|
ReactiveFormsModule,
|
|
99
106
|
RouterModule,
|
|
100
107
|
DialogModule,
|
|
108
|
+
WindowModule,
|
|
101
109
|
ButtonsModule,
|
|
102
110
|
InputsModule,
|
|
103
111
|
LayoutModule,
|
|
@@ -111,7 +119,10 @@ export class ConversationsModule {
|
|
|
111
119
|
ArtifactsModule,
|
|
112
120
|
MarkdownModule.forRoot(),
|
|
113
121
|
// Standalone components
|
|
114
|
-
TasksFullViewComponent
|
|
122
|
+
TasksFullViewComponent,
|
|
123
|
+
CollectionShareModalComponent,
|
|
124
|
+
UserPickerComponent,
|
|
125
|
+
ArtifactCollectionPickerModalComponent] });
|
|
115
126
|
}
|
|
116
127
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConversationsModule, [{
|
|
117
128
|
type: NgModule,
|
|
@@ -126,6 +137,7 @@ export class ConversationsModule {
|
|
|
126
137
|
ReactiveFormsModule,
|
|
127
138
|
RouterModule,
|
|
128
139
|
DialogModule,
|
|
140
|
+
WindowModule,
|
|
129
141
|
ButtonsModule,
|
|
130
142
|
InputsModule,
|
|
131
143
|
LayoutModule,
|
|
@@ -139,7 +151,10 @@ export class ConversationsModule {
|
|
|
139
151
|
ArtifactsModule,
|
|
140
152
|
MarkdownModule.forRoot(),
|
|
141
153
|
// Standalone components
|
|
142
|
-
TasksFullViewComponent
|
|
154
|
+
TasksFullViewComponent,
|
|
155
|
+
CollectionShareModalComponent,
|
|
156
|
+
UserPickerComponent,
|
|
157
|
+
ArtifactCollectionPickerModalComponent
|
|
143
158
|
],
|
|
144
159
|
exports: [
|
|
145
160
|
...COMPONENTS,
|
|
@@ -152,6 +167,7 @@ export class ConversationsModule {
|
|
|
152
167
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(ConversationsModule, { declarations: [MessageItemComponent,
|
|
153
168
|
MessageListComponent,
|
|
154
169
|
MessageInputComponent,
|
|
170
|
+
SuggestedResponsesComponent,
|
|
155
171
|
MentionDropdownComponent,
|
|
156
172
|
ConversationWorkspaceComponent,
|
|
157
173
|
ConversationNavigationComponent,
|
|
@@ -164,6 +180,7 @@ export class ConversationsModule {
|
|
|
164
180
|
CollectionArtifactCardComponent,
|
|
165
181
|
LibraryFullViewComponent,
|
|
166
182
|
CollectionFormModalComponent,
|
|
183
|
+
ArtifactCreateModalComponent,
|
|
167
184
|
CollectionsFullViewComponent,
|
|
168
185
|
ProjectSelectorComponent,
|
|
169
186
|
ProjectFormModalComponent,
|
|
@@ -185,6 +202,7 @@ export class ConversationsModule {
|
|
|
185
202
|
ReactiveFormsModule,
|
|
186
203
|
RouterModule,
|
|
187
204
|
DialogModule,
|
|
205
|
+
WindowModule,
|
|
188
206
|
ButtonsModule,
|
|
189
207
|
InputsModule,
|
|
190
208
|
LayoutModule,
|
|
@@ -197,9 +215,13 @@ export class ConversationsModule {
|
|
|
197
215
|
CodeEditorModule,
|
|
198
216
|
ArtifactsModule, i1.MarkdownModule,
|
|
199
217
|
// Standalone components
|
|
200
|
-
TasksFullViewComponent
|
|
218
|
+
TasksFullViewComponent,
|
|
219
|
+
CollectionShareModalComponent,
|
|
220
|
+
UserPickerComponent,
|
|
221
|
+
ArtifactCollectionPickerModalComponent], exports: [MessageItemComponent,
|
|
201
222
|
MessageListComponent,
|
|
202
223
|
MessageInputComponent,
|
|
224
|
+
SuggestedResponsesComponent,
|
|
203
225
|
MentionDropdownComponent,
|
|
204
226
|
ConversationWorkspaceComponent,
|
|
205
227
|
ConversationNavigationComponent,
|
|
@@ -212,6 +234,7 @@ export class ConversationsModule {
|
|
|
212
234
|
CollectionArtifactCardComponent,
|
|
213
235
|
LibraryFullViewComponent,
|
|
214
236
|
CollectionFormModalComponent,
|
|
237
|
+
ArtifactCreateModalComponent,
|
|
215
238
|
CollectionsFullViewComponent,
|
|
216
239
|
ProjectSelectorComponent,
|
|
217
240
|
ProjectFormModalComponent,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversations.module.js","sourceRoot":"","sources":["../../src/lib/conversations.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,mBAAmB;AACnB,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"conversations.module.js","sourceRoot":"","sources":["../../src/lib/conversations.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,mBAAmB;AACnB,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAEtE,yBAAyB;AACzB,OAAO,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACpF,OAAO,EAAE,gBAAg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B,qBAAqB;QACrB,oBAAoB;QACpB,oBAAoB;QACpB,0BAA0B;QAC1B,0BAA0B;QAC1B,cAAc;QACd,oBAAoB,EAmClB,uBAAuB;QACvB,wBAAwB;QACxB,sBAAsB"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ConversationDetailEntityType } from '@memberjunction/core-entities';
|
|
2
|
+
/**
|
|
3
|
+
* Agent Run data returned in JSON format from GetConversationComplete query
|
|
4
|
+
* Contains only the fields needed for display in the gear icon
|
|
5
|
+
*/
|
|
6
|
+
export interface AgentRunJSON {
|
|
7
|
+
ID: string;
|
|
8
|
+
AgentID: string | null;
|
|
9
|
+
Agent: string | null;
|
|
10
|
+
Status: string;
|
|
11
|
+
__mj_CreatedAt: string;
|
|
12
|
+
__mj_UpdatedAt: string;
|
|
13
|
+
TotalPromptTokensUsed: number | null;
|
|
14
|
+
TotalCompletionTokensUsed: number | null;
|
|
15
|
+
TotalCost: number | null;
|
|
16
|
+
ConversationDetailID: string | null;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Artifact data returned in JSON format from GetConversationComplete query
|
|
20
|
+
* Contains only the fields needed for display in artifact cards (excludes Content field)
|
|
21
|
+
*/
|
|
22
|
+
export interface ArtifactJSON {
|
|
23
|
+
ConversationDetailID: string;
|
|
24
|
+
Direction: string;
|
|
25
|
+
ArtifactVersionID: string;
|
|
26
|
+
VersionNumber: number;
|
|
27
|
+
ArtifactID: string;
|
|
28
|
+
ArtifactName: string;
|
|
29
|
+
ArtifactType: string;
|
|
30
|
+
ArtifactDescription: string | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Complete conversation detail data returned from GetConversationComplete query
|
|
34
|
+
* Extends the base ConversationDetailEntityType with JSON-aggregated related data
|
|
35
|
+
*
|
|
36
|
+
* This type represents the raw query result BEFORE parsing JSON columns.
|
|
37
|
+
* AgentRunsJSON and ArtifactsJSON are JSON strings that need to be parsed.
|
|
38
|
+
*/
|
|
39
|
+
export type ConversationDetailComplete = ConversationDetailEntityType & {
|
|
40
|
+
/**
|
|
41
|
+
* JSON string containing array of agent runs for this conversation detail
|
|
42
|
+
* Parse with JSON.parse() to get AgentRunJSON[]
|
|
43
|
+
* Will be null if no agent runs exist
|
|
44
|
+
*/
|
|
45
|
+
AgentRunsJSON: string | null;
|
|
46
|
+
/**
|
|
47
|
+
* JSON string containing array of artifacts for this conversation detail
|
|
48
|
+
* Parse with JSON.parse() to get ArtifactJSON[]
|
|
49
|
+
* Will be null if no artifacts exist
|
|
50
|
+
*/
|
|
51
|
+
ArtifactsJSON: string | null;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Parsed conversation detail with typed related data
|
|
55
|
+
* This is what you get AFTER parsing the JSON columns
|
|
56
|
+
*/
|
|
57
|
+
export interface ConversationDetailParsed extends ConversationDetailEntityType {
|
|
58
|
+
/**
|
|
59
|
+
* Parsed array of agent runs (empty array if none exist)
|
|
60
|
+
*/
|
|
61
|
+
agentRuns: AgentRunJSON[];
|
|
62
|
+
/**
|
|
63
|
+
* Parsed array of artifacts (empty array if none exist)
|
|
64
|
+
*/
|
|
65
|
+
artifacts: ArtifactJSON[];
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Helper function to parse ConversationDetailComplete query result into typed objects
|
|
69
|
+
* Handles JSON parsing and provides typed arrays for agent runs and artifacts
|
|
70
|
+
*
|
|
71
|
+
* @param queryResult - Raw result from GetConversationComplete query
|
|
72
|
+
* @returns Parsed conversation detail with typed agent runs and artifacts
|
|
73
|
+
*/
|
|
74
|
+
export declare function parseConversationDetailComplete(queryResult: ConversationDetailComplete): ConversationDetailParsed;
|
|
75
|
+
//# sourceMappingURL=conversation-complete-query.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-complete-query.model.d.ts","sourceRoot":"","sources":["../../../src/lib/models/conversation-complete-query.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,E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+
/**
|
|
2
|
+
* Helper function to parse ConversationDetailComplete query result into typed objects
|
|
3
|
+
* Handles JSON parsing and provides typed arrays for agent runs and artifacts
|
|
4
|
+
*
|
|
5
|
+
* @param queryResult - Raw result from GetConversationComplete query
|
|
6
|
+
* @returns Parsed conversation detail with typed agent runs and artifacts
|
|
7
|
+
*/
|
|
8
|
+
export function parseConversationDetailComplete(queryResult) {
|
|
9
|
+
return {
|
|
10
|
+
...queryResult,
|
|
11
|
+
agentRuns: queryResult.AgentRunsJSON
|
|
12
|
+
? JSON.parse(queryResult.AgentRunsJSON)
|
|
13
|
+
: [],
|
|
14
|
+
artifacts: queryResult.ArtifactsJSON
|
|
15
|
+
? JSON.parse(queryResult.ArtifactsJSON)
|
|
16
|
+
: []
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=conversation-complete-query.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversation-complete-query.model.js","sourceRoot":"","sources":["../../../src/lib/models/conversation-complete-query.model.ts"],"names":[],"mappings":"AAyEA;;;;;;GAMG;AACH,MAAM,UAAU,+BAA+B,CAC7C,WAAuC;IAEvC,OAAO;QACL,GAAG,WAAW;QACd,SAAS,EAAE,WAAW,CAAC,aAAa;YAClC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,aAAa,CAAmB;YACzD,CAAC,CAAC,EAAE;QACN,SAAS,EAAE,WAAW,CAAC,aAAa;YAClC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,aAAa,CAAmB;YACzD,CAAC,CAAC,EAAE;KACP,CAAC;AACJ,CAAC"}
|
|
@@ -97,4 +97,31 @@ export interface MentionParseResult {
|
|
|
97
97
|
agentMention: Mention | null;
|
|
98
98
|
userMentions: Mention[];
|
|
99
99
|
}
|
|
100
|
+
/**
|
|
101
|
+
* Suggested response option for quick user replies
|
|
102
|
+
* These are displayed as interactive buttons below AI messages to streamline conversation flow
|
|
103
|
+
*/
|
|
104
|
+
export interface SuggestedResponse {
|
|
105
|
+
/** Display text for the button or input placeholder */
|
|
106
|
+
text: string;
|
|
107
|
+
/** Whether to show an input field (uses text as placeholder) instead of a button */
|
|
108
|
+
allowInput: boolean;
|
|
109
|
+
/** Optional Font Awesome icon class (e.g., "fa fa-leaf", "fa fa-pencil") */
|
|
110
|
+
iconClass?: string;
|
|
111
|
+
/** Optional data payload to include when response is selected */
|
|
112
|
+
data?: Record<string, any>;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* Parse result for suggested responses from a conversation detail
|
|
116
|
+
*/
|
|
117
|
+
export interface ParsedSuggestedResponses {
|
|
118
|
+
/** Array of suggested response objects */
|
|
119
|
+
responses: SuggestedResponse[];
|
|
120
|
+
/** Whether any response allows input */
|
|
121
|
+
hasInputOption: boolean;
|
|
122
|
+
/** The specific response that allows input (if any) */
|
|
123
|
+
inputResponse: SuggestedResponse | null;
|
|
124
|
+
/** All responses that are regular buttons (no input) */
|
|
125
|
+
regularResponses: SuggestedResponse[];
|
|
126
|
+
}
|
|
100
127
|
//# sourceMappingURL=conversation-state.model.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conversation-state.model.d.ts","sourceRoot":"","sources":["../../../src/lib/models/conversation-state.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EAIzB,MAAM,+BAA+B,CAAC;AAEvC;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,sEAAsE;IACtE,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,kEAAkE;IAClE,QAAQ,CAAC,EAAE;QACT,0BAA0B;QAC1B,QAAQ,EAAE,cAAc,CAAC;QACzB,2CAA2C;QAC3C,OAAO,EAAE,qBAAqB,CAAC;KAChC,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,gDAAgD;IAChD,mBAAmB,EAAE,GAA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;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;AAE9D;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,OAAO,EAAE,CAAC;CACzB"}
|
|
1
|
+
{"version":3,"file":"conversation-state.model.d.ts","sourceRoot":"","sources":["../../../src/lib/models/conversation-state.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EACd,qBAAqB,EACrB,wBAAwB,EAIzB,MAAM,+BAA+B,CAAC;AAEvC;;;GAGG;AACH,MAAM,WAAW,gCAAgC;IAC/C,sEAAsE;IACtE,QAAQ,CAAC,EAAE,wBAAwB,CAAC;IACpC,kEAAkE;IAClE,QAAQ,CAAC,EAAE;QACT,0BAA0B;QAC1B,QAAQ,EAAE,cAAc,CAAC;QACzB,2CAA2C;QAC3C,OAAO,EAAE,qBAAqB,CAAC;KAChC,CAAC;CACH;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,gDAAgD;IAChD,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE,wBAAwB,CAAC,CAAC;IAC3D,yDAAyD;IACzD,mBAAmB,EAAE,GAAG,CAAC,MAAM,EAAE;QAC/B,QAAQ,EAAE,cAAc,CAAC;QACzB,OAAO,EAAE,qBAAqB,CAAC;KAChC,CAAC,CAAC;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EA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W,kBAAkB;IACjC,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,YAAY,EAAE,OAAO,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,OAAO,EAAE,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,uDAAuD;IACvD,IAAI,EAAE,MAAM,CAAC;IAEb,oFAAoF;IACpF,UAAU,EAAE,OAAO,CAAC;IAEpB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,iEAAiE;IACjE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,0CAA0C;IAC1C,SAAS,EAAE,iBAAiB,EAAE,CAAC;IAE/B,wCAAwC;IACxC,cAAc,EAAE,OAAO,CAAC;IAExB,uDAAuD;IACvD,aAAa,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAExC,wDAAwD;IACxD,gBAAgB,EAAE,iBAAiB,EAAE,CAAC;CACvC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ArtifactEntity, ArtifactVersionEntity } from '@memberjunction/core-entities';
|
|
2
|
+
import { UserInfo } from '@memberjunction/core';
|
|
3
|
+
/**
|
|
4
|
+
* Represents artifact information with lazy-loading capabilities.
|
|
5
|
+
* Stores minimal display data initially (from query) and loads full entities on-demand.
|
|
6
|
+
*
|
|
7
|
+
* This class enables performance optimization by:
|
|
8
|
+
* - Loading only basic metadata initially (name, type, version)
|
|
9
|
+
* - Deferring full entity load (with Content field) until user clicks
|
|
10
|
+
* - Sharing a single load promise across multiple concurrent requests
|
|
11
|
+
* - Caching loaded entities to prevent redundant database queries
|
|
12
|
+
*/
|
|
13
|
+
export declare class LazyArtifactInfo {
|
|
14
|
+
private currentUser;
|
|
15
|
+
readonly conversationDetailId: string;
|
|
16
|
+
readonly direction: string;
|
|
17
|
+
readonly artifactVersionId: string;
|
|
18
|
+
readonly versionNumber: number;
|
|
19
|
+
readonly artifactId: string;
|
|
20
|
+
readonly artifactName: string;
|
|
21
|
+
readonly artifactType: string;
|
|
22
|
+
readonly artifactDescription: string;
|
|
23
|
+
private _artifact;
|
|
24
|
+
private _version;
|
|
25
|
+
private _isLoading;
|
|
26
|
+
private _loadPromise;
|
|
27
|
+
constructor(queryResult: any, currentUser: UserInfo, preloadedArtifact?: ArtifactEntity, preloadedVersion?: ArtifactVersionEntity);
|
|
28
|
+
/**
|
|
29
|
+
* Gets the full Artifact entity, loading it if needed.
|
|
30
|
+
* Multiple concurrent calls share the same loading promise for efficiency.
|
|
31
|
+
* @returns The full ArtifactEntity with all fields including relationships
|
|
32
|
+
*/
|
|
33
|
+
getArtifact(): Promise<ArtifactEntity>;
|
|
34
|
+
/**
|
|
35
|
+
* Gets the full ArtifactVersion entity, loading it if needed.
|
|
36
|
+
* Multiple concurrent calls share the same loading promise for efficiency.
|
|
37
|
+
* @returns The full ArtifactVersionEntity including Content field
|
|
38
|
+
*/
|
|
39
|
+
getVersion(): Promise<ArtifactVersionEntity>;
|
|
40
|
+
/**
|
|
41
|
+
* Checks if full entities are already loaded (without triggering load).
|
|
42
|
+
* Useful for conditional logic that wants to avoid triggering a database query.
|
|
43
|
+
*/
|
|
44
|
+
get isLoaded(): boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Checks if entities are currently being loaded.
|
|
47
|
+
* Useful for displaying loading indicators.
|
|
48
|
+
*/
|
|
49
|
+
get isLoading(): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Loads the full Artifact and ArtifactVersion entities from the database.
|
|
52
|
+
* This method is called automatically when getArtifact() or getVersion() is invoked
|
|
53
|
+
* for the first time. Both entities are loaded in parallel for efficiency.
|
|
54
|
+
* @private
|
|
55
|
+
*/
|
|
56
|
+
private loadEntities;
|
|
57
|
+
/**
|
|
58
|
+
* Loads a single Artifact entity by ID
|
|
59
|
+
* @private
|
|
60
|
+
*/
|
|
61
|
+
private loadArtifact;
|
|
62
|
+
/**
|
|
63
|
+
* Loads a single ArtifactVersion entity by ID
|
|
64
|
+
* @private
|
|
65
|
+
*/
|
|
66
|
+
private loadVersion;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=lazy-artifact-info.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lazy-artifact-info.d.ts","sourceRoot":"","sources":["../../../src/lib/models/lazy-artifact-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtF,OAAO,EAAY,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAE1D;;;;;;;;;GASG;AACH,qBAAa,gBAAgB;IAmBzB,OAAO,CAAC,WAAW;IAjBrB,SAAgB,oBAAoB,EAAE,MAAM,CAAC;IAC7C,SAAgB,SAAS,EAAE,MAAM,CAAC;IAClC,SAAgB,iBAAiB,EAAE,MAAM,CAAC;IAC1C,SAAgB,aAAa,EAAE,MAAM,CAAC;IACtC,SAAgB,UAAU,EAAE,MAAM,CAAC;IACnC,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,YAAY,EAAE,MAAM,CAAC;IACrC,SAAgB,mBAAmB,EAAE,MAAM,CAAC;IAG5C,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,QAAQ,CAAsC;IACtD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,YAAY,CAA8B;gBAGhD,WAAW,EAAE,GAAG,EACR,WAAW,EAAE,QAAQ,EAC7B,iBAAiB,CAAC,EAAE,cAAc,EAClC,gBAAgB,CAAC,EAAE,qBAAqB;IAsB1C;;;;OAIG;IACG,WAAW,IAAI,OAAO,CAAC,cAAc,CAAC;IAiB5C;;;;OAIG;IACG,UAAU,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAiBlD;;;OAGG;IACH,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED;;;OAGG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;;;OAKG;YACW,YAAY;IA4B1B;;;OAGG;YACW,YAAY;IAM1B;;;OAGG;YACW,WAAW;CAK1B"}
|