@noatgnu/cupcake-vanilla 1.2.21 → 1.3.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/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, EventEmitter, OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import { Observable, OperatorFunction } from 'rxjs';
|
|
4
|
-
import { BaseApiService, WebSocketService, AuthService, WebSocketMessage, NotificationService as NotificationService$1, ToastService, User, LabGroupService, LabGroup, LabGroupQueryResponse, ResourceVisibility } from '@noatgnu/cupcake-core';
|
|
4
|
+
import { BaseApiService, WebSocketService, AuthService, WebSocketMessage, NotificationService as NotificationService$1, ToastService, AsyncTaskQueryParams, PaginatedResponse as PaginatedResponse$1, AsyncTaskStatus, DownloadUrlResponse, MetadataExportRequest, AsyncTaskCreateResponse, BulkExportRequest, BulkExcelExportRequest, MetadataImportRequest, MetadataValidationRequest, ChunkedImportRequest, User, LabGroupService, LabGroup, MetadataValidationConfig, TaskType, TaskStatus, LabGroupQueryResponse, ResourceVisibility } from '@noatgnu/cupcake-core';
|
|
5
5
|
export { WebSocketMessage } from '@noatgnu/cupcake-core';
|
|
6
6
|
import * as _angular_forms from '@angular/forms';
|
|
7
7
|
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
@@ -661,127 +661,6 @@ declare function getRequiredSdrfColumns(): SdrfColumnConfig[];
|
|
|
661
661
|
declare function getSdrfColumnByName(name: string): SdrfColumnConfig | undefined;
|
|
662
662
|
declare function isSdrfColumnRequired(name: string): boolean;
|
|
663
663
|
|
|
664
|
-
type TaskStatus = 'QUEUED' | 'STARTED' | 'SUCCESS' | 'FAILURE' | 'CANCELLED';
|
|
665
|
-
type TaskType = 'EXPORT_EXCEL' | 'EXPORT_SDRF' | 'IMPORT_SDRF' | 'IMPORT_EXCEL' | 'EXPORT_MULTIPLE_SDRF' | 'EXPORT_MULTIPLE_EXCEL' | 'VALIDATE_TABLE' | 'REORDER_TABLE_COLUMNS' | 'REORDER_TEMPLATE_COLUMNS' | 'TRANSCRIBE_AUDIO' | 'TRANSCRIBE_VIDEO';
|
|
666
|
-
interface AsyncTaskStatus {
|
|
667
|
-
id: string;
|
|
668
|
-
taskType: TaskType;
|
|
669
|
-
status: TaskStatus;
|
|
670
|
-
user: number;
|
|
671
|
-
userUsername?: string;
|
|
672
|
-
metadataTable?: number;
|
|
673
|
-
metadataTableName?: string;
|
|
674
|
-
taskTypeDisplay?: string;
|
|
675
|
-
statusDisplay?: string;
|
|
676
|
-
parameters?: any;
|
|
677
|
-
result?: any;
|
|
678
|
-
errorMessage?: string;
|
|
679
|
-
traceback?: string;
|
|
680
|
-
createdAt: string;
|
|
681
|
-
startedAt?: string;
|
|
682
|
-
completedAt?: string;
|
|
683
|
-
rqJobId?: string;
|
|
684
|
-
queueName?: string;
|
|
685
|
-
progressCurrent?: number;
|
|
686
|
-
progressTotal?: number;
|
|
687
|
-
progressDescription?: string;
|
|
688
|
-
duration?: number;
|
|
689
|
-
progressPercentage?: number;
|
|
690
|
-
}
|
|
691
|
-
interface TaskListItem {
|
|
692
|
-
id: string;
|
|
693
|
-
taskType: TaskType;
|
|
694
|
-
taskTypeDisplay: string;
|
|
695
|
-
status: TaskStatus;
|
|
696
|
-
statusDisplay: string;
|
|
697
|
-
user: number;
|
|
698
|
-
userUsername: string;
|
|
699
|
-
metadataTable: number | null;
|
|
700
|
-
metadataTableName: string | null;
|
|
701
|
-
progressPercentage: number;
|
|
702
|
-
progressDescription: string;
|
|
703
|
-
createdAt: string;
|
|
704
|
-
startedAt: string | null;
|
|
705
|
-
completedAt: string | null;
|
|
706
|
-
duration: number | null;
|
|
707
|
-
errorMessage: string | null;
|
|
708
|
-
}
|
|
709
|
-
interface TaskResult {
|
|
710
|
-
id: number;
|
|
711
|
-
task: string;
|
|
712
|
-
file?: string;
|
|
713
|
-
fileName?: string;
|
|
714
|
-
contentType?: string;
|
|
715
|
-
fileSize?: number;
|
|
716
|
-
expiresAt: string;
|
|
717
|
-
downloadCount?: number;
|
|
718
|
-
lastDownloadedAt?: string;
|
|
719
|
-
createdAt: string;
|
|
720
|
-
}
|
|
721
|
-
interface MetadataExportRequest {
|
|
722
|
-
metadataTableId: number;
|
|
723
|
-
includePools?: boolean;
|
|
724
|
-
metadataColumnIds?: number[];
|
|
725
|
-
sampleNumber?: number;
|
|
726
|
-
exportFormat?: string;
|
|
727
|
-
labGroupIds?: number[];
|
|
728
|
-
}
|
|
729
|
-
interface BulkExportRequest {
|
|
730
|
-
metadataTableIds: number[];
|
|
731
|
-
includePools?: boolean;
|
|
732
|
-
validateSdrf?: boolean;
|
|
733
|
-
}
|
|
734
|
-
interface BulkExcelExportRequest extends BulkExportRequest {
|
|
735
|
-
metadataColumnIds?: number[];
|
|
736
|
-
labGroupIds?: number[];
|
|
737
|
-
}
|
|
738
|
-
interface MetadataImportRequest {
|
|
739
|
-
metadataTableId: number;
|
|
740
|
-
file: File;
|
|
741
|
-
replaceExisting?: boolean;
|
|
742
|
-
validateOntologies?: boolean;
|
|
743
|
-
}
|
|
744
|
-
interface ChunkedImportRequest {
|
|
745
|
-
metadataTableId: number;
|
|
746
|
-
chunkedUploadId: string;
|
|
747
|
-
replaceExisting?: boolean;
|
|
748
|
-
validateOntologies?: boolean;
|
|
749
|
-
createPools?: boolean;
|
|
750
|
-
}
|
|
751
|
-
interface MetadataValidationRequest {
|
|
752
|
-
metadataTableId: number;
|
|
753
|
-
validateSdrfFormat?: boolean;
|
|
754
|
-
includePools?: boolean;
|
|
755
|
-
}
|
|
756
|
-
interface MetadataValidationConfig {
|
|
757
|
-
metadataTableId: number;
|
|
758
|
-
metadataTableName: string;
|
|
759
|
-
}
|
|
760
|
-
interface AsyncTaskCreateResponse {
|
|
761
|
-
taskId: string;
|
|
762
|
-
message: string;
|
|
763
|
-
}
|
|
764
|
-
interface DownloadUrlResponse {
|
|
765
|
-
downloadUrl: string;
|
|
766
|
-
filename: string;
|
|
767
|
-
contentType: string;
|
|
768
|
-
fileSize: number;
|
|
769
|
-
expiresAt: string;
|
|
770
|
-
expiresInHours: number;
|
|
771
|
-
}
|
|
772
|
-
interface AsyncTaskQueryParams {
|
|
773
|
-
taskType?: string;
|
|
774
|
-
status?: string;
|
|
775
|
-
metadataTable?: number;
|
|
776
|
-
search?: string;
|
|
777
|
-
limit?: number;
|
|
778
|
-
offset?: number;
|
|
779
|
-
ordering?: string;
|
|
780
|
-
}
|
|
781
|
-
declare const TASK_TYPE_LABELS: Record<TaskType, string>;
|
|
782
|
-
declare const TASK_STATUS_LABELS: Record<TaskStatus, string>;
|
|
783
|
-
declare const TASK_STATUS_COLORS: Record<TaskStatus, string>;
|
|
784
|
-
|
|
785
664
|
interface ChunkedUploadStatus {
|
|
786
665
|
id: string;
|
|
787
666
|
file?: File;
|
|
@@ -1804,7 +1683,7 @@ declare class AsyncTaskService extends BaseApiService {
|
|
|
1804
1683
|
/**
|
|
1805
1684
|
* Get all async tasks for the current user with optional filtering
|
|
1806
1685
|
*/
|
|
1807
|
-
getAsyncTasks(params?: AsyncTaskQueryParams): Observable<PaginatedResponse<AsyncTaskStatus>>;
|
|
1686
|
+
getAsyncTasks(params?: AsyncTaskQueryParams): Observable<PaginatedResponse$1<AsyncTaskStatus>>;
|
|
1808
1687
|
/**
|
|
1809
1688
|
* Get a specific async task by ID
|
|
1810
1689
|
*/
|
|
@@ -2391,7 +2270,6 @@ declare class AsyncTaskUIService implements OnDestroy {
|
|
|
2391
2270
|
exportTaskCompleted$: Observable<AsyncTaskStatus>;
|
|
2392
2271
|
constructor();
|
|
2393
2272
|
ngOnDestroy(): void;
|
|
2394
|
-
private initializeService;
|
|
2395
2273
|
startRealtimeUpdates(): void;
|
|
2396
2274
|
stopRealtimeUpdates(): void;
|
|
2397
2275
|
getTasks(): Observable<AsyncTaskStatus[]>;
|
|
@@ -2416,10 +2294,10 @@ declare class AsyncTaskUIService implements OnDestroy {
|
|
|
2416
2294
|
private handleTaskUpdate;
|
|
2417
2295
|
private showTaskProgressNotification;
|
|
2418
2296
|
private showTaskCompletionNotification;
|
|
2419
|
-
getTaskDisplayName(taskType:
|
|
2420
|
-
getTaskStatusClass(status:
|
|
2297
|
+
getTaskDisplayName(taskType: TaskType): string;
|
|
2298
|
+
getTaskStatusClass(status: TaskStatus): string;
|
|
2421
2299
|
formatDuration(duration: number | null): string;
|
|
2422
|
-
canCancelTask(status:
|
|
2300
|
+
canCancelTask(status: TaskStatus): boolean;
|
|
2423
2301
|
canDownloadResult(task: AsyncTaskStatus): boolean;
|
|
2424
2302
|
private isImportTask;
|
|
2425
2303
|
private isExportTask;
|
|
@@ -3179,7 +3057,7 @@ interface MetadataColumnAutofillConfig {
|
|
|
3179
3057
|
declare class MetadataColumnAutofillModal implements OnInit {
|
|
3180
3058
|
private activeModal;
|
|
3181
3059
|
config: MetadataColumnAutofillConfig;
|
|
3182
|
-
activeTab: _angular_core.WritableSignal<
|
|
3060
|
+
activeTab: _angular_core.WritableSignal<1 | 2>;
|
|
3183
3061
|
basicConfig: _angular_core.WritableSignal<BasicAutofillConfig | null>;
|
|
3184
3062
|
advancedConfig: _angular_core.WritableSignal<AdvancedAutofillConfig | null>;
|
|
3185
3063
|
constructor(activeModal: NgbActiveModal);
|
|
@@ -3224,5 +3102,5 @@ declare class CupcakeVanilla {
|
|
|
3224
3102
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CupcakeVanilla, "ccv-cupcake-vanilla", never, {}, {}, never, never, true, never>;
|
|
3225
3103
|
}
|
|
3226
3104
|
|
|
3227
|
-
export { AdminWebSocketService, AsyncExportService, AsyncImportService, AsyncTaskService, AsyncTaskUIService, AsyncValidationService, COLUMN_TYPE_CONFIGS, ChunkedImportService, ChunkedUploadService, ColumnEditModal, ColumnTemplateEditModal, ColumnTemplates, ColumnType, CupcakeVanilla, ElectronService, ExcelExportModalComponent, FavoriteManagement, FavouriteMetadataOptionService, MSTermType, MetadataColumnAutofillModal, MetadataColumnHistoryModal, MetadataColumnService, MetadataColumnTemplateService, MetadataColumnTemplateShareService, MetadataManagementService, MetadataTableDetails, MetadataTableEditModal, MetadataTableService, MetadataTableTemplateEditModal, MetadataTableTemplateService, MetadataTableTemplates, MetadataValidationModal, MetadataValueEditModal, NotificationService, NotificationType, OFFICIAL_SDRF_COLUMNS, ONTOLOGY_TYPE_CONFIGS, OntologySearchService, OntologyType, OntologyTypeLabels, OntologyUtils, SDRFDefaultsService, SamplePoolCreateModal, SamplePoolDetailsModal, SamplePoolEditModal, SamplePoolService, SchemaSelectionModal, SchemaService, SdrfAgeInput, SdrfCleavageInput, SdrfColumnCategory, SdrfModificationInput, SdrfSpikedCompoundInput, SdrfSyntaxService, SearchReplaceModal,
|
|
3228
|
-
export type { AdvancedAutofillRequest, AdvancedAutofillResponse, AgeFormat, ApiResponse,
|
|
3105
|
+
export { AdminWebSocketService, AsyncExportService, AsyncImportService, AsyncTaskService, AsyncTaskUIService, AsyncValidationService, COLUMN_TYPE_CONFIGS, ChunkedImportService, ChunkedUploadService, ColumnEditModal, ColumnTemplateEditModal, ColumnTemplates, ColumnType, CupcakeVanilla, ElectronService, ExcelExportModalComponent, FavoriteManagement, FavouriteMetadataOptionService, MSTermType, MetadataColumnAutofillModal, MetadataColumnHistoryModal, MetadataColumnService, MetadataColumnTemplateService, MetadataColumnTemplateShareService, MetadataManagementService, MetadataTableDetails, MetadataTableEditModal, MetadataTableService, MetadataTableTemplateEditModal, MetadataTableTemplateService, MetadataTableTemplates, MetadataValidationModal, MetadataValueEditModal, NotificationService, NotificationType, OFFICIAL_SDRF_COLUMNS, ONTOLOGY_TYPE_CONFIGS, OntologySearchService, OntologyType, OntologyTypeLabels, OntologyUtils, SDRFDefaultsService, SamplePoolCreateModal, SamplePoolDetailsModal, SamplePoolEditModal, SamplePoolService, SchemaSelectionModal, SchemaService, SdrfAgeInput, SdrfCleavageInput, SdrfColumnCategory, SdrfModificationInput, SdrfSpikedCompoundInput, SdrfSyntaxService, SearchReplaceModal, TableCreationModalComponent, TemplatePermissionLabels, TemplatePermissionLevel, TemplateSchemaSelectionModal, ValidationResultsModal, Websocket, getRequiredSdrfColumns, getSdrfColumnByName, getSdrfColumnsByCategory, isSdrfColumnRequired, isUnimodFullData };
|
|
3106
|
+
export type { AdvancedAutofillRequest, AdvancedAutofillResponse, AgeFormat, ApiResponse, BaseTimestampedModel, CellOntology, ChEBICompound, ChunkedFileImportRequest, ChunkedImportProgress, ChunkedUploadCompletionRequest, ChunkedUploadCompletionResponse, ChunkedUploadRequest, ChunkedUploadResponse, ChunkedUploadStatus, CleavageAgentDetails, ColumnHistoryModalConfig, ColumnTypeConfig, ElectronAPI, ExcelExportOptions, FavouriteMetadataOption, FavouriteMetadataOptionCreateRequest, FavouriteMetadataOptionQueryParams, FavouriteMetadataOptionUpdateRequest, HumanDisease, MSUniqueVocabularies, MetadataColumn, MetadataColumnAutofillConfig, MetadataColumnCreateRequest, MetadataColumnHistoryChange, MetadataColumnHistoryRecord, MetadataColumnHistoryResponse, MetadataColumnHistorySnapshot, MetadataColumnModifier, MetadataColumnQueryParams, MetadataColumnTemplate, MetadataColumnTemplateCreateRequest, MetadataColumnTemplateQueryParams, MetadataColumnTemplateShare, MetadataColumnTemplateShareCreateRequest, MetadataColumnTemplateShareQueryParams, MetadataColumnTemplateUpdateRequest, MetadataColumnUpdateRequest, MetadataQueryParams, MetadataTable, MetadataTableCreateRequest, MetadataTableQueryParams, MetadataTableQueryResponse, MetadataTableTemplate, MetadataTableTemplateCreateRequest, MetadataTableTemplateQueryParams, MetadataTableTemplateQueryResponse, MetadataTableTemplateUpdateRequest, MetadataTableUpdateRequest, MetadataValueEditConfig, ModificationParameters, MondoDisease, NCBITaxonomy, OntologyCustomFilter, OntologySuggestParams, OntologySuggestResponse, OntologySuggestion, OntologyTypeConfig, PSIMSOntology, PaginatedResponse, PooledSample, SampleCountConfirmationError, SampleCountValidationRequest, SampleCountValidationResponse, SampleCountValidationResult, SamplePool, SamplePoolCreateRequest, SamplePoolQueryParams, SamplePoolUpdateRequest, Schema, SchemaQueryParams, SchemaSelectionResult, SdrfColumnConfig, SearchReplaceConfig, Species, SpikedCompound, SubcellularLocation, SyntaxType, SyntheticPeptide, TableCreationData, TemplateSchemaSelectionResult, Tissue, UberonAnatomy, Unimod, UnimodFullData, UnimodSpecification, ValidationResult, ValidationResults, VariationSpec, VariationSpecList, VariationSpecPattern, VariationSpecRange };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noatgnu/cupcake-vanilla",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "An extension for cupcake-core that provides additional api and interfaces for facility to manage and compose metadata.",
|
|
5
5
|
"author": "Toan Phung",
|
|
6
6
|
"license": "MIT",
|