@noatgnu/cupcake-core 1.3.2 → 1.3.5
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
|
@@ -115,6 +115,16 @@ interface AuthConfig {
|
|
|
115
115
|
registrationEnabled: boolean;
|
|
116
116
|
orcidLoginEnabled: boolean;
|
|
117
117
|
regularLoginEnabled: boolean;
|
|
118
|
+
jwtTokenLifetimes?: {
|
|
119
|
+
default: {
|
|
120
|
+
accessTokenMinutes: number;
|
|
121
|
+
refreshTokenDays: number;
|
|
122
|
+
};
|
|
123
|
+
rememberMe: {
|
|
124
|
+
accessTokenHours: number;
|
|
125
|
+
refreshTokenDays: number;
|
|
126
|
+
};
|
|
127
|
+
};
|
|
118
128
|
}
|
|
119
129
|
interface RegistrationStatus {
|
|
120
130
|
registrationEnabled: boolean;
|
|
@@ -715,9 +725,9 @@ declare class AuthService {
|
|
|
715
725
|
authorizationUrl: string;
|
|
716
726
|
state: string;
|
|
717
727
|
}>;
|
|
718
|
-
handleORCIDCallback(code: string, state: string): Observable<AuthResponse>;
|
|
719
|
-
exchangeORCIDToken(accessToken: string, orcidId: string): Observable<AuthResponse>;
|
|
720
|
-
login(username: string, password: string): Observable<AuthResponse>;
|
|
728
|
+
handleORCIDCallback(code: string, state: string, rememberMe?: boolean): Observable<AuthResponse>;
|
|
729
|
+
exchangeORCIDToken(accessToken: string, orcidId: string, rememberMe?: boolean): Observable<AuthResponse>;
|
|
730
|
+
login(username: string, password: string, rememberMe?: boolean): Observable<AuthResponse>;
|
|
721
731
|
logout(): Observable<any>;
|
|
722
732
|
checkAuthStatus(): Observable<AuthStatus>;
|
|
723
733
|
fetchUserProfile(): Observable<User>;
|
|
@@ -995,6 +1005,7 @@ declare class AsyncTaskMonitorService extends BaseApiService implements OnDestro
|
|
|
995
1005
|
private tasksSubject;
|
|
996
1006
|
private isSubscribed;
|
|
997
1007
|
private websocket;
|
|
1008
|
+
constructor();
|
|
998
1009
|
tasks$: Observable<AsyncTaskStatus[]>;
|
|
999
1010
|
activeTasks$: Observable<AsyncTaskStatus[]>;
|
|
1000
1011
|
ngOnDestroy(): void;
|
|
@@ -1005,6 +1016,7 @@ declare class AsyncTaskMonitorService extends BaseApiService implements OnDestro
|
|
|
1005
1016
|
message: string;
|
|
1006
1017
|
}>;
|
|
1007
1018
|
private handleTaskUpdate;
|
|
1019
|
+
loadSingleTask(taskId: string): void;
|
|
1008
1020
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AsyncTaskMonitorService, never>;
|
|
1009
1021
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AsyncTaskMonitorService>;
|
|
1010
1022
|
}
|
|
@@ -1237,8 +1249,8 @@ interface WebSocketEndpointConfig {
|
|
|
1237
1249
|
}
|
|
1238
1250
|
declare const WEBSOCKET_ENDPOINTS: InjectionToken<WebSocketEndpointConfig[]>;
|
|
1239
1251
|
declare class WebSocketEndpoints {
|
|
1240
|
-
static readonly CORE_NOTIFICATIONS = "notifications";
|
|
1241
|
-
static readonly CORE_ADMIN = "admin";
|
|
1252
|
+
static readonly CORE_NOTIFICATIONS = "ccc/notifications";
|
|
1253
|
+
static readonly CORE_ADMIN = "ccc/admin";
|
|
1242
1254
|
}
|
|
1243
1255
|
declare class WebSocketConfigService {
|
|
1244
1256
|
private readonly endpoints;
|
|
@@ -1254,6 +1266,14 @@ declare class WebSocketConfigService {
|
|
|
1254
1266
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<WebSocketConfigService>;
|
|
1255
1267
|
}
|
|
1256
1268
|
|
|
1269
|
+
declare class AdminWebSocketService extends WebSocketService {
|
|
1270
|
+
constructor(authService: AuthService);
|
|
1271
|
+
getAdminNotifications(): Observable<WebSocketMessage>;
|
|
1272
|
+
getSystemNotifications(): Observable<WebSocketMessage>;
|
|
1273
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AdminWebSocketService, never>;
|
|
1274
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AdminWebSocketService>;
|
|
1275
|
+
}
|
|
1276
|
+
|
|
1257
1277
|
interface LabGroupQueryParams {
|
|
1258
1278
|
search?: string;
|
|
1259
1279
|
parentGroup?: number;
|
|
@@ -1401,6 +1421,7 @@ declare class LoginComponent implements OnInit {
|
|
|
1401
1421
|
shouldShowRegistration: _angular_core.Signal<boolean>;
|
|
1402
1422
|
shouldShowRegularLogin: _angular_core.Signal<boolean>;
|
|
1403
1423
|
registrationMessage: _angular_core.Signal<string>;
|
|
1424
|
+
rememberMeDuration: _angular_core.Signal<number>;
|
|
1404
1425
|
/**
|
|
1405
1426
|
* Navigate to registration page
|
|
1406
1427
|
*/
|
|
@@ -1697,5 +1718,5 @@ declare class CupcakeCoreModule {
|
|
|
1697
1718
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<CupcakeCoreModule>;
|
|
1698
1719
|
}
|
|
1699
1720
|
|
|
1700
|
-
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 };
|
|
1721
|
+
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 };
|
|
1701
1722
|
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