@noatgnu/cupcake-core 1.2.10 → 1.2.11
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
|
@@ -352,6 +352,25 @@ interface LabGroupPermissionQueryResponse {
|
|
|
352
352
|
results: LabGroupPermission[];
|
|
353
353
|
}
|
|
354
354
|
|
|
355
|
+
declare enum AnnotationType {
|
|
356
|
+
Text = "text",
|
|
357
|
+
File = "file",
|
|
358
|
+
Image = "image",
|
|
359
|
+
Video = "video",
|
|
360
|
+
Audio = "audio",
|
|
361
|
+
Sketch = "sketch",
|
|
362
|
+
Other = "other",
|
|
363
|
+
Checklist = "checklist",
|
|
364
|
+
Counter = "counter",
|
|
365
|
+
Table = "table",
|
|
366
|
+
Alignment = "alignment",
|
|
367
|
+
Calculator = "calculator",
|
|
368
|
+
MolarityCalculator = "mcalculator",
|
|
369
|
+
Randomization = "randomization",
|
|
370
|
+
Instrument = "instrument",
|
|
371
|
+
Metadata = "metadata",
|
|
372
|
+
Booking = "booking"
|
|
373
|
+
}
|
|
355
374
|
interface AnnotationFolder extends BaseResource {
|
|
356
375
|
folderName: string;
|
|
357
376
|
parentFolder?: number;
|
|
@@ -397,9 +416,13 @@ interface AnnotationCreateRequest {
|
|
|
397
416
|
annotationType?: string;
|
|
398
417
|
file?: File;
|
|
399
418
|
folder?: number;
|
|
419
|
+
transcribed?: boolean;
|
|
420
|
+
transcription?: string;
|
|
400
421
|
language?: string;
|
|
422
|
+
translation?: string;
|
|
401
423
|
labGroup?: number;
|
|
402
424
|
visibility?: string;
|
|
425
|
+
autoTranscribe?: boolean;
|
|
403
426
|
}
|
|
404
427
|
interface AnnotationUpdateRequest {
|
|
405
428
|
annotation?: string;
|
|
@@ -465,6 +488,62 @@ interface RemoteHostUpdateRequest {
|
|
|
465
488
|
hostToken?: string;
|
|
466
489
|
}
|
|
467
490
|
|
|
491
|
+
interface BaseNotification {
|
|
492
|
+
type: string;
|
|
493
|
+
message: string;
|
|
494
|
+
timestamp: string;
|
|
495
|
+
user_id?: number;
|
|
496
|
+
}
|
|
497
|
+
interface TranscriptionStartedNotification extends BaseNotification {
|
|
498
|
+
type: 'transcription.started';
|
|
499
|
+
annotation_id: number;
|
|
500
|
+
}
|
|
501
|
+
interface TranscriptionCompletedNotification extends BaseNotification {
|
|
502
|
+
type: 'transcription.completed';
|
|
503
|
+
annotation_id: number;
|
|
504
|
+
language?: string;
|
|
505
|
+
has_translation?: boolean;
|
|
506
|
+
}
|
|
507
|
+
interface TranscriptionFailedNotification extends BaseNotification {
|
|
508
|
+
type: 'transcription.failed';
|
|
509
|
+
annotation_id: number;
|
|
510
|
+
error: string;
|
|
511
|
+
}
|
|
512
|
+
interface SystemNotification extends BaseNotification {
|
|
513
|
+
type: 'system.notification';
|
|
514
|
+
level: 'info' | 'warning' | 'error' | 'success';
|
|
515
|
+
title: string;
|
|
516
|
+
}
|
|
517
|
+
interface AsyncTaskUpdateNotification extends BaseNotification {
|
|
518
|
+
type: 'async_task.update';
|
|
519
|
+
task_id: string;
|
|
520
|
+
status: string;
|
|
521
|
+
progress_percentage?: number;
|
|
522
|
+
progress_description?: string;
|
|
523
|
+
error_message?: string;
|
|
524
|
+
result?: any;
|
|
525
|
+
download_url?: string;
|
|
526
|
+
}
|
|
527
|
+
interface MetadataTableUpdateNotification extends BaseNotification {
|
|
528
|
+
type: 'metadata_table.update';
|
|
529
|
+
table_id: number;
|
|
530
|
+
action: string;
|
|
531
|
+
user?: number;
|
|
532
|
+
}
|
|
533
|
+
interface LabGroupUpdateNotification extends BaseNotification {
|
|
534
|
+
type: 'lab_group.update';
|
|
535
|
+
lab_group_id: number;
|
|
536
|
+
action: string;
|
|
537
|
+
}
|
|
538
|
+
interface ConnectionEstablishedNotification {
|
|
539
|
+
type: 'connection.established';
|
|
540
|
+
message: string;
|
|
541
|
+
user_id: number;
|
|
542
|
+
username: string;
|
|
543
|
+
lab_groups: number[];
|
|
544
|
+
}
|
|
545
|
+
type WebSocketNotification = TranscriptionStartedNotification | TranscriptionCompletedNotification | TranscriptionFailedNotification | SystemNotification | AsyncTaskUpdateNotification | MetadataTableUpdateNotification | LabGroupUpdateNotification | ConnectionEstablishedNotification;
|
|
546
|
+
|
|
468
547
|
interface CupcakeCoreConfig {
|
|
469
548
|
apiUrl: string;
|
|
470
549
|
}
|
|
@@ -1446,5 +1525,5 @@ declare class CupcakeCoreModule {
|
|
|
1446
1525
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<CupcakeCoreModule>;
|
|
1447
1526
|
}
|
|
1448
1527
|
|
|
1449
|
-
export { ApiService, AuthService, BaseApiService, CUPCAKE_CORE_CONFIG, CupcakeCoreModule, InvitationStatus, InvitationStatusLabels, LabGroupService, LabGroupsComponent, LoginComponent, NotificationService, PoweredByFooterComponent, RegisterComponent, ResourceRole, ResourceRoleLabels, ResourceService, ResourceType, ResourceTypeLabels, ResourceVisibility, ResourceVisibilityLabels, SiteConfigComponent, SiteConfigService, ThemeService, ToastContainerComponent, ToastService, UserManagementComponent, UserManagementService, UserProfileComponent, WEBSOCKET_ENDPOINT, WEBSOCKET_ENDPOINTS, WebSocketConfigService, WebSocketEndpoints, WebSocketService, adminGuard, authGuard, authInterceptor, resetRefreshState };
|
|
1450
|
-
export type { AccountMergeRequest, AdminPasswordResetRequest, Annotation, AnnotationCreateRequest, AnnotationFolder, AnnotationFolderCreateRequest, AnnotationFolderUpdateRequest, AnnotationUpdateRequest, ApiResponse, AuthConfig, AuthResponse, AuthStatus, BaseResource, BaseTimestampedModel, BulkPermissionRequest, CupcakeCoreConfig, EmailChangeConfirmRequest, EmailChangeConfirmResponse, EmailChangeRequest, InvitationResponseRequest, LabGroup, LabGroupCreateRequest, LabGroupInvitation, LabGroupInvitationCreateRequest, LabGroupInvitationQueryParams, LabGroupInvitationQueryResponse, LabGroupInviteRequest, LabGroupMember, LabGroupPathItem, LabGroupPermission, LabGroupPermissionCreateRequest, LabGroupPermissionQueryParams, LabGroupPermissionQueryResponse, LabGroupPermissionUpdateRequest, LabGroupQueryParams, LabGroupQueryResponse, LabGroupUpdateRequest, NotificationAction, NotificationItem, PaginatedResponse, PasswordChangeRequest, PasswordChangeResponse, PasswordResetConfirmRequest, PasswordResetRequest, RegistrationStatus, RemoteHost, RemoteHostCreateRequest, RemoteHostUpdateRequest, ResourcePermission, ResourcePermissionCreateRequest, ResourcePermissionUpdateRequest, ResourceQueryParams, SiteConfig, SiteConfigUpdateRequest, Theme, ToastMessage, User, UserCreateRequest, UserListResponse, UserOrcidProfile, UserProfileUpdateRequest, UserRegistrationRequest, UserResponse, WebSocketConfig, WebSocketEndpointConfig, WebSocketMessage };
|
|
1528
|
+
export { AnnotationType, ApiService, AuthService, BaseApiService, CUPCAKE_CORE_CONFIG, CupcakeCoreModule, InvitationStatus, InvitationStatusLabels, LabGroupService, LabGroupsComponent, LoginComponent, NotificationService, PoweredByFooterComponent, RegisterComponent, ResourceRole, ResourceRoleLabels, ResourceService, ResourceType, ResourceTypeLabels, ResourceVisibility, ResourceVisibilityLabels, SiteConfigComponent, SiteConfigService, ThemeService, ToastContainerComponent, ToastService, UserManagementComponent, UserManagementService, UserProfileComponent, WEBSOCKET_ENDPOINT, WEBSOCKET_ENDPOINTS, WebSocketConfigService, WebSocketEndpoints, WebSocketService, adminGuard, authGuard, authInterceptor, resetRefreshState };
|
|
1529
|
+
export type { AccountMergeRequest, AdminPasswordResetRequest, Annotation, AnnotationCreateRequest, AnnotationFolder, AnnotationFolderCreateRequest, AnnotationFolderUpdateRequest, AnnotationUpdateRequest, ApiResponse, AsyncTaskUpdateNotification, AuthConfig, AuthResponse, AuthStatus, BaseNotification, BaseResource, BaseTimestampedModel, BulkPermissionRequest, ConnectionEstablishedNotification, CupcakeCoreConfig, EmailChangeConfirmRequest, EmailChangeConfirmResponse, EmailChangeRequest, InvitationResponseRequest, LabGroup, LabGroupCreateRequest, LabGroupInvitation, LabGroupInvitationCreateRequest, LabGroupInvitationQueryParams, LabGroupInvitationQueryResponse, LabGroupInviteRequest, LabGroupMember, LabGroupPathItem, LabGroupPermission, LabGroupPermissionCreateRequest, LabGroupPermissionQueryParams, LabGroupPermissionQueryResponse, LabGroupPermissionUpdateRequest, LabGroupQueryParams, LabGroupQueryResponse, LabGroupUpdateNotification, LabGroupUpdateRequest, MetadataTableUpdateNotification, NotificationAction, NotificationItem, PaginatedResponse, PasswordChangeRequest, PasswordChangeResponse, PasswordResetConfirmRequest, PasswordResetRequest, RegistrationStatus, RemoteHost, RemoteHostCreateRequest, RemoteHostUpdateRequest, ResourcePermission, ResourcePermissionCreateRequest, ResourcePermissionUpdateRequest, ResourceQueryParams, SiteConfig, SiteConfigUpdateRequest, SystemNotification, 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.2.
|
|
3
|
+
"version": "1.2.11",
|
|
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",
|