@noatgnu/cupcake-core 1.3.1 → 1.3.4

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/index.d.ts CHANGED
@@ -995,13 +995,18 @@ declare class AsyncTaskMonitorService extends BaseApiService implements OnDestro
995
995
  private tasksSubject;
996
996
  private isSubscribed;
997
997
  private websocket;
998
+ constructor();
998
999
  tasks$: Observable<AsyncTaskStatus[]>;
999
1000
  activeTasks$: Observable<AsyncTaskStatus[]>;
1000
1001
  ngOnDestroy(): void;
1001
1002
  startRealtimeUpdates(): void;
1002
1003
  stopRealtimeUpdates(): void;
1003
1004
  loadAllTasks(): void;
1005
+ cancelTask(taskId: string): Observable<{
1006
+ message: string;
1007
+ }>;
1004
1008
  private handleTaskUpdate;
1009
+ loadSingleTask(taskId: string): void;
1005
1010
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsyncTaskMonitorService, never>;
1006
1011
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<AsyncTaskMonitorService>;
1007
1012
  }
@@ -1234,8 +1239,8 @@ interface WebSocketEndpointConfig {
1234
1239
  }
1235
1240
  declare const WEBSOCKET_ENDPOINTS: InjectionToken<WebSocketEndpointConfig[]>;
1236
1241
  declare class WebSocketEndpoints {
1237
- static readonly CORE_NOTIFICATIONS = "notifications";
1238
- static readonly CORE_ADMIN = "admin";
1242
+ static readonly CORE_NOTIFICATIONS = "ccc/notifications";
1243
+ static readonly CORE_ADMIN = "ccc/admin";
1239
1244
  }
1240
1245
  declare class WebSocketConfigService {
1241
1246
  private readonly endpoints;
@@ -1251,6 +1256,14 @@ declare class WebSocketConfigService {
1251
1256
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<WebSocketConfigService>;
1252
1257
  }
1253
1258
 
1259
+ declare class AdminWebSocketService extends WebSocketService {
1260
+ constructor(authService: AuthService);
1261
+ getAdminNotifications(): Observable<WebSocketMessage>;
1262
+ getSystemNotifications(): Observable<WebSocketMessage>;
1263
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<AdminWebSocketService, never>;
1264
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<AdminWebSocketService>;
1265
+ }
1266
+
1254
1267
  interface LabGroupQueryParams {
1255
1268
  search?: string;
1256
1269
  parentGroup?: number;
@@ -1694,5 +1707,5 @@ declare class CupcakeCoreModule {
1694
1707
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<CupcakeCoreModule>;
1695
1708
  }
1696
1709
 
1697
- export { AnnotationType, ApiService, AsyncTaskMonitorService, AuthService, BaseApiService, CUPCAKE_CORE_CONFIG, CupcakeCoreModule, InvitationStatus, InvitationStatusLabels, LabGroupService, LabGroupsComponent, LoginComponent, NotificationService, PoweredByFooterComponent, RegisterComponent, ResourceRole, ResourceRoleLabels, ResourceService, ResourceType, ResourceTypeLabels, ResourceVisibility, ResourceVisibilityLabels, SiteConfigComponent, SiteConfigService, TASK_STATUS_COLORS, TASK_STATUS_LABELS, TASK_TYPE_LABELS, TaskStatus, TaskType, ThemeService, ToastContainerComponent, ToastService, UserManagementComponent, UserManagementService, UserProfileComponent, WEBSOCKET_ENDPOINT, WEBSOCKET_ENDPOINTS, WebSocketConfigService, WebSocketEndpoints, WebSocketService, adminGuard, authGuard, authInterceptor, resetRefreshState };
1710
+ export { AdminWebSocketService, AnnotationType, ApiService, AsyncTaskMonitorService, AuthService, BaseApiService, CUPCAKE_CORE_CONFIG, CupcakeCoreModule, InvitationStatus, InvitationStatusLabels, LabGroupService, LabGroupsComponent, LoginComponent, NotificationService, PoweredByFooterComponent, RegisterComponent, ResourceRole, ResourceRoleLabels, ResourceService, ResourceType, ResourceTypeLabels, ResourceVisibility, ResourceVisibilityLabels, SiteConfigComponent, SiteConfigService, TASK_STATUS_COLORS, TASK_STATUS_LABELS, TASK_TYPE_LABELS, TaskStatus, TaskType, ThemeService, ToastContainerComponent, ToastService, UserManagementComponent, UserManagementService, UserProfileComponent, WEBSOCKET_ENDPOINT, WEBSOCKET_ENDPOINTS, WebSocketConfigService, WebSocketEndpoints, WebSocketService, adminGuard, authGuard, authInterceptor, resetRefreshState };
1698
1711
  export type { AccountMergeRequest, AdminPasswordResetRequest, Annotation, AnnotationCreateRequest, AnnotationFolder, AnnotationFolderCreateRequest, AnnotationFolderUpdateRequest, AnnotationUpdateRequest, ApiResponse, AsyncTaskCreateResponse, AsyncTaskQueryParams, AsyncTaskStatus, AsyncTaskUpdateNotification, AuthConfig, AuthResponse, AuthStatus, BaseNotification, BaseResource, BaseTimestampedModel, BulkExcelExportRequest, BulkExportRequest, BulkPermissionRequest, ChunkedImportRequest, ConnectionEstablishedNotification, CupcakeCoreConfig, DownloadUrlResponse, EmailChangeConfirmRequest, EmailChangeConfirmResponse, EmailChangeRequest, InvitationResponseRequest, LabGroup, LabGroupCreateRequest, LabGroupInvitation, LabGroupInvitationCreateRequest, LabGroupInvitationQueryParams, LabGroupInvitationQueryResponse, LabGroupInviteRequest, LabGroupMember, LabGroupPathItem, LabGroupPermission, LabGroupPermissionCreateRequest, LabGroupPermissionQueryParams, LabGroupPermissionQueryResponse, LabGroupPermissionUpdateRequest, LabGroupQueryParams, LabGroupQueryResponse, LabGroupUpdateNotification, LabGroupUpdateRequest, MetadataExportRequest, MetadataImportRequest, MetadataTableUpdateNotification, MetadataValidationConfig, MetadataValidationRequest, NotificationAction, NotificationItem, PaginatedResponse, PasswordChangeRequest, PasswordChangeResponse, PasswordResetConfirmRequest, PasswordResetRequest, RegistrationStatus, RemoteHost, RemoteHostCreateRequest, RemoteHostUpdateRequest, ResourcePermission, ResourcePermissionCreateRequest, ResourcePermissionUpdateRequest, ResourceQueryParams, SiteConfig, SiteConfigUpdateRequest, SystemNotification, TaskListItem, TaskResult, Theme, ToastMessage, TranscriptionCompletedNotification, TranscriptionFailedNotification, TranscriptionStartedNotification, User, UserCreateRequest, UserListResponse, UserOrcidProfile, UserProfileUpdateRequest, UserRegistrationRequest, UserResponse, WebSocketConfig, WebSocketEndpointConfig, WebSocketMessage, WebSocketNotification };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noatgnu/cupcake-core",
3
- "version": "1.3.1",
3
+ "version": "1.3.4",
4
4
  "description": "A reusable Angular library that provides user management, authentication, and site configuration functionality for cupcake applications.",
5
5
  "keywords": [
6
6
  "angular",