@noatgnu/cupcake-core 1.2.10 → 1.2.12

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
@@ -90,6 +90,7 @@ interface SiteConfig extends BaseTimestampedModel {
90
90
  showPoweredBy: boolean;
91
91
  allowUserRegistration: boolean;
92
92
  enableOrcidLogin: boolean;
93
+ bookingDeletionWindowMinutes: number;
93
94
  installedApps: {
94
95
  [appCode: string]: {
95
96
  name: string;
@@ -108,6 +109,7 @@ interface SiteConfigUpdateRequest {
108
109
  showPoweredBy?: boolean;
109
110
  allowUserRegistration?: boolean;
110
111
  enableOrcidLogin?: boolean;
112
+ bookingDeletionWindowMinutes?: number;
111
113
  }
112
114
  interface AuthConfig {
113
115
  registrationEnabled: boolean;
@@ -352,6 +354,25 @@ interface LabGroupPermissionQueryResponse {
352
354
  results: LabGroupPermission[];
353
355
  }
354
356
 
357
+ declare enum AnnotationType {
358
+ Text = "text",
359
+ File = "file",
360
+ Image = "image",
361
+ Video = "video",
362
+ Audio = "audio",
363
+ Sketch = "sketch",
364
+ Other = "other",
365
+ Checklist = "checklist",
366
+ Counter = "counter",
367
+ Table = "table",
368
+ Alignment = "alignment",
369
+ Calculator = "calculator",
370
+ MolarityCalculator = "mcalculator",
371
+ Randomization = "randomization",
372
+ Instrument = "instrument",
373
+ Metadata = "metadata",
374
+ Booking = "booking"
375
+ }
355
376
  interface AnnotationFolder extends BaseResource {
356
377
  folderName: string;
357
378
  parentFolder?: number;
@@ -397,9 +418,13 @@ interface AnnotationCreateRequest {
397
418
  annotationType?: string;
398
419
  file?: File;
399
420
  folder?: number;
421
+ transcribed?: boolean;
422
+ transcription?: string;
400
423
  language?: string;
424
+ translation?: string;
401
425
  labGroup?: number;
402
426
  visibility?: string;
427
+ autoTranscribe?: boolean;
403
428
  }
404
429
  interface AnnotationUpdateRequest {
405
430
  annotation?: string;
@@ -465,6 +490,62 @@ interface RemoteHostUpdateRequest {
465
490
  hostToken?: string;
466
491
  }
467
492
 
493
+ interface BaseNotification {
494
+ type: string;
495
+ message: string;
496
+ timestamp: string;
497
+ user_id?: number;
498
+ }
499
+ interface TranscriptionStartedNotification extends BaseNotification {
500
+ type: 'transcription.started';
501
+ annotation_id: number;
502
+ }
503
+ interface TranscriptionCompletedNotification extends BaseNotification {
504
+ type: 'transcription.completed';
505
+ annotation_id: number;
506
+ language?: string;
507
+ has_translation?: boolean;
508
+ }
509
+ interface TranscriptionFailedNotification extends BaseNotification {
510
+ type: 'transcription.failed';
511
+ annotation_id: number;
512
+ error: string;
513
+ }
514
+ interface SystemNotification extends BaseNotification {
515
+ type: 'system.notification';
516
+ level: 'info' | 'warning' | 'error' | 'success';
517
+ title: string;
518
+ }
519
+ interface AsyncTaskUpdateNotification extends BaseNotification {
520
+ type: 'async_task.update';
521
+ task_id: string;
522
+ status: string;
523
+ progress_percentage?: number;
524
+ progress_description?: string;
525
+ error_message?: string;
526
+ result?: any;
527
+ download_url?: string;
528
+ }
529
+ interface MetadataTableUpdateNotification extends BaseNotification {
530
+ type: 'metadata_table.update';
531
+ table_id: number;
532
+ action: string;
533
+ user?: number;
534
+ }
535
+ interface LabGroupUpdateNotification extends BaseNotification {
536
+ type: 'lab_group.update';
537
+ lab_group_id: number;
538
+ action: string;
539
+ }
540
+ interface ConnectionEstablishedNotification {
541
+ type: 'connection.established';
542
+ message: string;
543
+ user_id: number;
544
+ username: string;
545
+ lab_groups: number[];
546
+ }
547
+ type WebSocketNotification = TranscriptionStartedNotification | TranscriptionCompletedNotification | TranscriptionFailedNotification | SystemNotification | AsyncTaskUpdateNotification | MetadataTableUpdateNotification | LabGroupUpdateNotification | ConnectionEstablishedNotification;
548
+
468
549
  interface CupcakeCoreConfig {
469
550
  apiUrl: string;
470
551
  }
@@ -1446,5 +1527,5 @@ declare class CupcakeCoreModule {
1446
1527
  static ɵinj: _angular_core.ɵɵInjectorDeclaration<CupcakeCoreModule>;
1447
1528
  }
1448
1529
 
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 };
1530
+ 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 };
1531
+ 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.10",
3
+ "version": "1.2.12",
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",