@noatgnu/cupcake-vanilla 1.2.22 → 1.3.1
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,145 +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
|
-
declare enum TaskStatus {
|
|
665
|
-
QUEUED = "QUEUED",
|
|
666
|
-
STARTED = "STARTED",
|
|
667
|
-
SUCCESS = "SUCCESS",
|
|
668
|
-
FAILURE = "FAILURE",
|
|
669
|
-
CANCELLED = "CANCELLED"
|
|
670
|
-
}
|
|
671
|
-
declare enum TaskType {
|
|
672
|
-
EXPORT_EXCEL = "EXPORT_EXCEL",
|
|
673
|
-
EXPORT_SDRF = "EXPORT_SDRF",
|
|
674
|
-
IMPORT_SDRF = "IMPORT_SDRF",
|
|
675
|
-
IMPORT_EXCEL = "IMPORT_EXCEL",
|
|
676
|
-
EXPORT_MULTIPLE_SDRF = "EXPORT_MULTIPLE_SDRF",
|
|
677
|
-
EXPORT_MULTIPLE_EXCEL = "EXPORT_MULTIPLE_EXCEL",
|
|
678
|
-
VALIDATE_TABLE = "VALIDATE_TABLE",
|
|
679
|
-
REORDER_TABLE_COLUMNS = "REORDER_TABLE_COLUMNS",
|
|
680
|
-
REORDER_TEMPLATE_COLUMNS = "REORDER_TEMPLATE_COLUMNS",
|
|
681
|
-
TRANSCRIBE_AUDIO = "TRANSCRIBE_AUDIO",
|
|
682
|
-
TRANSCRIBE_VIDEO = "TRANSCRIBE_VIDEO"
|
|
683
|
-
}
|
|
684
|
-
interface AsyncTaskStatus {
|
|
685
|
-
id: string;
|
|
686
|
-
taskType: TaskType;
|
|
687
|
-
status: TaskStatus;
|
|
688
|
-
user: number;
|
|
689
|
-
userUsername?: string;
|
|
690
|
-
metadataTable?: number;
|
|
691
|
-
metadataTableName?: string;
|
|
692
|
-
taskTypeDisplay?: string;
|
|
693
|
-
statusDisplay?: string;
|
|
694
|
-
parameters?: any;
|
|
695
|
-
result?: any;
|
|
696
|
-
errorMessage?: string;
|
|
697
|
-
traceback?: string;
|
|
698
|
-
createdAt: string;
|
|
699
|
-
startedAt?: string;
|
|
700
|
-
completedAt?: string;
|
|
701
|
-
rqJobId?: string;
|
|
702
|
-
queueName?: string;
|
|
703
|
-
progressCurrent?: number;
|
|
704
|
-
progressTotal?: number;
|
|
705
|
-
progressDescription?: string;
|
|
706
|
-
duration?: number;
|
|
707
|
-
progressPercentage?: number;
|
|
708
|
-
}
|
|
709
|
-
interface TaskListItem {
|
|
710
|
-
id: string;
|
|
711
|
-
taskType: TaskType;
|
|
712
|
-
taskTypeDisplay: string;
|
|
713
|
-
status: TaskStatus;
|
|
714
|
-
statusDisplay: string;
|
|
715
|
-
user: number;
|
|
716
|
-
userUsername: string;
|
|
717
|
-
metadataTable: number | null;
|
|
718
|
-
metadataTableName: string | null;
|
|
719
|
-
progressPercentage: number;
|
|
720
|
-
progressDescription: string;
|
|
721
|
-
createdAt: string;
|
|
722
|
-
startedAt: string | null;
|
|
723
|
-
completedAt: string | null;
|
|
724
|
-
duration: number | null;
|
|
725
|
-
errorMessage: string | null;
|
|
726
|
-
}
|
|
727
|
-
interface TaskResult {
|
|
728
|
-
id: number;
|
|
729
|
-
task: string;
|
|
730
|
-
file?: string;
|
|
731
|
-
fileName?: string;
|
|
732
|
-
contentType?: string;
|
|
733
|
-
fileSize?: number;
|
|
734
|
-
expiresAt: string;
|
|
735
|
-
downloadCount?: number;
|
|
736
|
-
lastDownloadedAt?: string;
|
|
737
|
-
createdAt: string;
|
|
738
|
-
}
|
|
739
|
-
interface MetadataExportRequest {
|
|
740
|
-
metadataTableId: number;
|
|
741
|
-
includePools?: boolean;
|
|
742
|
-
metadataColumnIds?: number[];
|
|
743
|
-
sampleNumber?: number;
|
|
744
|
-
exportFormat?: string;
|
|
745
|
-
labGroupIds?: number[];
|
|
746
|
-
}
|
|
747
|
-
interface BulkExportRequest {
|
|
748
|
-
metadataTableIds: number[];
|
|
749
|
-
includePools?: boolean;
|
|
750
|
-
validateSdrf?: boolean;
|
|
751
|
-
}
|
|
752
|
-
interface BulkExcelExportRequest extends BulkExportRequest {
|
|
753
|
-
metadataColumnIds?: number[];
|
|
754
|
-
labGroupIds?: number[];
|
|
755
|
-
}
|
|
756
|
-
interface MetadataImportRequest {
|
|
757
|
-
metadataTableId: number;
|
|
758
|
-
file: File;
|
|
759
|
-
replaceExisting?: boolean;
|
|
760
|
-
validateOntologies?: boolean;
|
|
761
|
-
}
|
|
762
|
-
interface ChunkedImportRequest {
|
|
763
|
-
metadataTableId: number;
|
|
764
|
-
chunkedUploadId: string;
|
|
765
|
-
replaceExisting?: boolean;
|
|
766
|
-
validateOntologies?: boolean;
|
|
767
|
-
createPools?: boolean;
|
|
768
|
-
}
|
|
769
|
-
interface MetadataValidationRequest {
|
|
770
|
-
metadataTableId: number;
|
|
771
|
-
validateSdrfFormat?: boolean;
|
|
772
|
-
includePools?: boolean;
|
|
773
|
-
}
|
|
774
|
-
interface MetadataValidationConfig {
|
|
775
|
-
metadataTableId: number;
|
|
776
|
-
metadataTableName: string;
|
|
777
|
-
}
|
|
778
|
-
interface AsyncTaskCreateResponse {
|
|
779
|
-
taskId: string;
|
|
780
|
-
message: string;
|
|
781
|
-
}
|
|
782
|
-
interface DownloadUrlResponse {
|
|
783
|
-
downloadUrl: string;
|
|
784
|
-
filename: string;
|
|
785
|
-
contentType: string;
|
|
786
|
-
fileSize: number;
|
|
787
|
-
expiresAt: string;
|
|
788
|
-
expiresInHours: number;
|
|
789
|
-
}
|
|
790
|
-
interface AsyncTaskQueryParams {
|
|
791
|
-
taskType?: string;
|
|
792
|
-
status?: string;
|
|
793
|
-
metadataTable?: number;
|
|
794
|
-
search?: string;
|
|
795
|
-
limit?: number;
|
|
796
|
-
offset?: number;
|
|
797
|
-
ordering?: string;
|
|
798
|
-
}
|
|
799
|
-
declare const TASK_TYPE_LABELS: Record<TaskType, string>;
|
|
800
|
-
declare const TASK_STATUS_LABELS: Record<TaskStatus, string>;
|
|
801
|
-
declare const TASK_STATUS_COLORS: Record<TaskStatus, string>;
|
|
802
|
-
|
|
803
664
|
interface ChunkedUploadStatus {
|
|
804
665
|
id: string;
|
|
805
666
|
file?: File;
|
|
@@ -1822,7 +1683,7 @@ declare class AsyncTaskService extends BaseApiService {
|
|
|
1822
1683
|
/**
|
|
1823
1684
|
* Get all async tasks for the current user with optional filtering
|
|
1824
1685
|
*/
|
|
1825
|
-
getAsyncTasks(params?: AsyncTaskQueryParams): Observable<PaginatedResponse<AsyncTaskStatus>>;
|
|
1686
|
+
getAsyncTasks(params?: AsyncTaskQueryParams): Observable<PaginatedResponse$1<AsyncTaskStatus>>;
|
|
1826
1687
|
/**
|
|
1827
1688
|
* Get a specific async task by ID
|
|
1828
1689
|
*/
|
|
@@ -2409,7 +2270,6 @@ declare class AsyncTaskUIService implements OnDestroy {
|
|
|
2409
2270
|
exportTaskCompleted$: Observable<AsyncTaskStatus>;
|
|
2410
2271
|
constructor();
|
|
2411
2272
|
ngOnDestroy(): void;
|
|
2412
|
-
private initializeService;
|
|
2413
2273
|
startRealtimeUpdates(): void;
|
|
2414
2274
|
stopRealtimeUpdates(): void;
|
|
2415
2275
|
getTasks(): Observable<AsyncTaskStatus[]>;
|
|
@@ -3242,5 +3102,5 @@ declare class CupcakeVanilla {
|
|
|
3242
3102
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CupcakeVanilla, "ccv-cupcake-vanilla", never, {}, {}, never, never, true, never>;
|
|
3243
3103
|
}
|
|
3244
3104
|
|
|
3245
|
-
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,
|
|
3246
|
-
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.1",
|
|
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",
|