@squonk/data-manager-client 0.6.28-rc.5 → 0.7.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/accounting/accounting.cjs +30 -0
- package/accounting/accounting.cjs.map +1 -0
- package/accounting/accounting.d.ts +31 -0
- package/accounting/accounting.js +30 -0
- package/accounting/accounting.js.map +1 -0
- package/accounting/package.json +7 -0
- package/admin/admin.cjs +40 -111
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.ts +1 -1
- package/admin/admin.js +4 -33
- package/admin/admin.js.map +1 -1
- package/annotation/annotation.cjs +64 -0
- package/annotation/annotation.cjs.map +1 -0
- package/annotation/annotation.d.ts +58 -0
- package/annotation/annotation.js +64 -0
- package/annotation/annotation.js.map +1 -0
- package/annotation/package.json +7 -0
- package/application/application.cjs +21 -84
- package/application/application.cjs.map +1 -1
- package/application/application.d.ts +2 -2
- package/application/application.js +4 -33
- package/application/application.js.map +1 -1
- package/chunk-3DXYUDZH.cjs +46 -0
- package/chunk-3DXYUDZH.cjs.map +1 -0
- package/chunk-JR7F532L.js +46 -0
- package/chunk-JR7F532L.js.map +1 -0
- package/{custom-instance-3c2397cc.d.ts → custom-instance-9873bed3.d.ts} +51 -59
- package/dataset/dataset.cjs +70 -213
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.ts +4 -54
- package/dataset/dataset.js +10 -94
- package/dataset/dataset.js.map +1 -1
- package/file/file.cjs +35 -103
- package/file/file.cjs.map +1 -1
- package/file/file.d.ts +1 -1
- package/file/file.js +4 -33
- package/file/file.js.map +1 -1
- package/index.cjs +31 -117
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +11 -45
- package/index.js.map +1 -1
- package/instance/instance.cjs +41 -107
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.ts +4 -4
- package/instance/instance.js +12 -39
- package/instance/instance.js.map +1 -1
- package/job/job.cjs +21 -84
- package/job/job.cjs.map +1 -1
- package/job/job.d.ts +2 -2
- package/job/job.js +4 -33
- package/job/job.js.map +1 -1
- package/package.json +1 -1
- package/project/project.cjs +55 -132
- package/project/project.cjs.map +1 -1
- package/project/project.d.ts +1 -1
- package/project/project.js +4 -33
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +87 -0
- package/src/admin/admin.ts +1 -1
- package/src/annotation/annotation.ts +217 -0
- package/src/application/application.ts +1 -1
- package/src/data-manager-api.schemas.ts +57 -69
- package/src/dataset/dataset.ts +9 -196
- package/src/file/file.ts +1 -1
- package/src/instance/instance.ts +7 -12
- package/src/job/job.ts +1 -1
- package/src/project/project.ts +1 -1
- package/src/task/task.ts +1 -1
- package/src/type/type.ts +1 -1
- package/src/user/user.ts +1 -1
- package/task/task.cjs +26 -90
- package/task/task.cjs.map +1 -1
- package/task/task.d.ts +1 -1
- package/task/task.js +4 -33
- package/task/task.js.map +1 -1
- package/type/type.cjs +14 -74
- package/type/type.cjs.map +1 -1
- package/type/type.d.ts +2 -2
- package/type/type.js +4 -33
- package/type/type.js.map +1 -1
- package/user/user.cjs +34 -101
- package/user/user.cjs.map +1 -1
- package/user/user.d.ts +1 -1
- package/user/user.js +4 -33
- package/user/user.js.map +1 -1
|
@@ -9,7 +9,7 @@ import { AxiosRequestConfig, AxiosError } from 'axios';
|
|
|
9
9
|
|
|
10
10
|
A service that allows *registered* users to make **Datasets** and associated **Metadata** available to **Applications** and **Jobs** using **Projects** and **Files**.
|
|
11
11
|
|
|
12
|
-
* OpenAPI spec version: 0.
|
|
12
|
+
* OpenAPI spec version: 0.7
|
|
13
13
|
*/
|
|
14
14
|
declare type AdminGetServiceErrorsParams = {
|
|
15
15
|
include_acknowleged?: QIncludeAcknowlegedParameter;
|
|
@@ -41,6 +41,11 @@ declare type DeleteUnmanagedFileParams = {
|
|
|
41
41
|
path?: QFilePathParameter;
|
|
42
42
|
project_id: QFileProjectIdParameter;
|
|
43
43
|
};
|
|
44
|
+
declare type GetFilesParams = {
|
|
45
|
+
project_id: QFileProjectIdParameter;
|
|
46
|
+
path?: QFilePathParameter;
|
|
47
|
+
include_hidden?: QIncludeHiddenParameter;
|
|
48
|
+
};
|
|
44
49
|
declare type DeleteDatasetParams = {
|
|
45
50
|
keep_project_files?: QKeepProjectFilesParameter;
|
|
46
51
|
};
|
|
@@ -66,14 +71,6 @@ declare type QOwnersParameter = string;
|
|
|
66
71
|
|
|
67
72
|
*/
|
|
68
73
|
declare type QUsernameParameter = string;
|
|
69
|
-
declare type GetDatasetsParams = {
|
|
70
|
-
include_deleted?: QIncludeDeletedParameter;
|
|
71
|
-
username?: QUsernameParameter;
|
|
72
|
-
dataset_mime_type?: QDatasetMimeTypeParameter;
|
|
73
|
-
owners?: QOwnersParameter;
|
|
74
|
-
editors?: QEditorsParameter;
|
|
75
|
-
labels?: QLabelsParameter;
|
|
76
|
-
};
|
|
77
74
|
/**
|
|
78
75
|
* An until (exclusive) date-time. If provided only API calls made before this will be returned. UTC is assumed if no timezone is provided
|
|
79
76
|
|
|
@@ -88,6 +85,14 @@ declare type QProjectIdParameter = string;
|
|
|
88
85
|
|
|
89
86
|
*/
|
|
90
87
|
declare type QLabelsParameter = string;
|
|
88
|
+
declare type GetDatasetsParams = {
|
|
89
|
+
include_deleted?: QIncludeDeletedParameter;
|
|
90
|
+
username?: QUsernameParameter;
|
|
91
|
+
dataset_mime_type?: QDatasetMimeTypeParameter;
|
|
92
|
+
owners?: QOwnersParameter;
|
|
93
|
+
editors?: QEditorsParameter;
|
|
94
|
+
labels?: QLabelsParameter;
|
|
95
|
+
};
|
|
91
96
|
/**
|
|
92
97
|
* Whether to convert Project managed file instances to unmanged files
|
|
93
98
|
|
|
@@ -124,11 +129,6 @@ declare type QFileProjectIdParameter = string;
|
|
|
124
129
|
|
|
125
130
|
*/
|
|
126
131
|
declare type QFilePathParameter = string;
|
|
127
|
-
declare type GetFilesParams = {
|
|
128
|
-
project_id: QFileProjectIdParameter;
|
|
129
|
-
path?: QFilePathParameter;
|
|
130
|
-
include_hidden?: QIncludeHiddenParameter;
|
|
131
|
-
};
|
|
132
132
|
/**
|
|
133
133
|
* A project file.
|
|
134
134
|
|
|
@@ -154,10 +154,6 @@ declare type QEventPriorOrdinalParameter = number;
|
|
|
154
154
|
|
|
155
155
|
*/
|
|
156
156
|
declare type QEventLimitParameter = number;
|
|
157
|
-
declare type GetInstanceParams = {
|
|
158
|
-
event_limit?: QEventLimitParameter;
|
|
159
|
-
event_prior_ordinal?: QEventPriorOrdinalParameter;
|
|
160
|
-
};
|
|
161
157
|
/**
|
|
162
158
|
* Filter the datasets by the supplied mime_type.
|
|
163
159
|
|
|
@@ -289,12 +285,9 @@ declare type DatasetPutBodyBody = {
|
|
|
289
285
|
/** The file name of the file in the Project path to load as a new Dataset.
|
|
290
286
|
*/
|
|
291
287
|
file_name: string;
|
|
292
|
-
/**
|
|
288
|
+
/** If provided the File becomes a new version of the Dataset named. If not provided this File becomes the first version of a new Dataset, whose ID is returned to you on success.
|
|
293
289
|
*/
|
|
294
|
-
|
|
295
|
-
/** Used along with the **parent_id** to provide a reference to the Dataset parent. It can only be used when a **parent_id** is specified and must be specified if a **parent_id** is provided. If used it must be '1' or higher and must represent a valid version of the given Dataset.
|
|
296
|
-
*/
|
|
297
|
-
parent_version?: number;
|
|
290
|
+
dataset_id?: string;
|
|
298
291
|
/** The Organisation you want the Dataset to belong to. If not supplied the Project Organisation is used
|
|
299
292
|
*/
|
|
300
293
|
organisation_id?: string;
|
|
@@ -318,15 +311,12 @@ declare type DatasetPostBodyBody = {
|
|
|
318
311
|
/** If set the post-format database load action is skipped. This means the dataset is uploaded but its molecules are not entered into the Data Manager database. This can save significant time if you're just experimenting with the dataset and do not need the molecules in the database
|
|
319
312
|
*/
|
|
320
313
|
skip_molecule_load?: boolean;
|
|
321
|
-
/**
|
|
314
|
+
/** An optional new filename to use for the uploaded Dataset. The Dataset will be stored using this name.
|
|
322
315
|
*/
|
|
323
|
-
as_filename
|
|
324
|
-
/**
|
|
325
|
-
*/
|
|
326
|
-
parent_id?: string;
|
|
327
|
-
/** Used along with the **parent_id** to provide a reference to the Dataset parent. It can only be used when a **parent_id** is specified.
|
|
316
|
+
as_filename?: string;
|
|
317
|
+
/** If provided the Dataset becomes a new version of the Dataset named. If not provided this Dataset becomes the first version of a new Dataset, whose ID is returned to you on success.
|
|
328
318
|
*/
|
|
329
|
-
|
|
319
|
+
dataset_id?: string;
|
|
330
320
|
/** The Organisation you want the Dataset to belong to
|
|
331
321
|
*/
|
|
332
322
|
organisation_id: string;
|
|
@@ -652,18 +642,6 @@ declare const InstanceSummaryJobImageType: {
|
|
|
652
642
|
SIMPLE: InstanceSummaryJobImageType;
|
|
653
643
|
NEXTFLOW: InstanceSummaryJobImageType;
|
|
654
644
|
};
|
|
655
|
-
/**
|
|
656
|
-
* The state of the application. This is a string, one of a limited number of values that are defined internally within the Data Manager. Key states are `PENDING` for an instance that is starting (but has not started), `STARTED` for an instance that has started, `SUCCESS` for an instance that has finished (and started and finished successfully) and `FAILURE` for an instance that has finished but failed in some way
|
|
657
|
-
|
|
658
|
-
*/
|
|
659
|
-
declare type InstanceSummaryState = "FAILURE" | "PENDING" | "STARTED" | "SUCCESS" | "UNKNOWN";
|
|
660
|
-
declare const InstanceSummaryState: {
|
|
661
|
-
FAILURE: InstanceSummaryState;
|
|
662
|
-
PENDING: InstanceSummaryState;
|
|
663
|
-
STARTED: InstanceSummaryState;
|
|
664
|
-
SUCCESS: InstanceSummaryState;
|
|
665
|
-
UNKNOWN: InstanceSummaryState;
|
|
666
|
-
};
|
|
667
645
|
/**
|
|
668
646
|
* The type of Application, which can be a `job` or an `application`
|
|
669
647
|
|
|
@@ -692,9 +670,9 @@ interface InstanceSummary {
|
|
|
692
670
|
/** The code obtained from the Account Server
|
|
693
671
|
*/
|
|
694
672
|
authorisation_code?: number;
|
|
695
|
-
/** The
|
|
673
|
+
/** The phase of the application. This is a string, one of a limited number of values that are defined internally within the Data Manager.
|
|
696
674
|
*/
|
|
697
|
-
|
|
675
|
+
phase: string;
|
|
698
676
|
/** The data and time (UTC) the instance was laucnhed
|
|
699
677
|
*/
|
|
700
678
|
launched: string;
|
|
@@ -786,6 +764,9 @@ declare const DatasetVersionSummaryProcessingStage: {
|
|
|
786
764
|
DONE: DatasetVersionSummaryProcessingStage;
|
|
787
765
|
};
|
|
788
766
|
interface DatasetVersionSummary {
|
|
767
|
+
/** The owner of the Dataset version
|
|
768
|
+
*/
|
|
769
|
+
owner?: string;
|
|
789
770
|
/** The source of the Dataset - typically the name of the Dataset that was uploaded or a URL reference
|
|
790
771
|
*/
|
|
791
772
|
source_ref: string;
|
|
@@ -810,9 +791,6 @@ interface DatasetVersionSummary {
|
|
|
810
791
|
/** The processign stage. When loading a Dataset it typically passes through `COPYING`, `FORMATTING` and `LOADING` stages before reaching `DONE` (or `FAILED`). A Dataset can be used (and deleted) as long as it's passed the `FORMATTING` stage
|
|
811
792
|
*/
|
|
812
793
|
processing_stage: DatasetVersionSummaryProcessingStage;
|
|
813
|
-
/** For a Dataset that has a parent, or is related to or derived from a pre-existing Dataset version this will be the parent version (of a dataset that shares the same ID)
|
|
814
|
-
*/
|
|
815
|
-
parent_version?: number;
|
|
816
794
|
/** If this is a Deleted dataset this is the date and time the dataset was deleted (an ISO-8601 formatted string in UTC)
|
|
817
795
|
*/
|
|
818
796
|
deleted?: string;
|
|
@@ -853,6 +831,9 @@ declare const DatasetVersionDetailProcessingStage: {
|
|
|
853
831
|
DONE: DatasetVersionDetailProcessingStage;
|
|
854
832
|
};
|
|
855
833
|
interface DatasetVersionDetail {
|
|
834
|
+
/** The owner of the Dataset version
|
|
835
|
+
*/
|
|
836
|
+
owner: string;
|
|
856
837
|
/** The source of the Dataset - typically the name of the Dataset that was uploaded or a URL reference
|
|
857
838
|
*/
|
|
858
839
|
source_ref: string;
|
|
@@ -880,9 +861,6 @@ interface DatasetVersionDetail {
|
|
|
880
861
|
/** The processign stage. When loading a Dataset it typically passes through `COPYING`, `FORMATTING` and `LOADING` stages before reaching `DONE` (or `FAILED`). A Dataset can be used (and deleted) as long as it's passed the `FORMATTING` stage
|
|
881
862
|
*/
|
|
882
863
|
processing_stage: DatasetVersionDetailProcessingStage;
|
|
883
|
-
/** For a Dataset that has a parent, or is related to or derived from a pre-existing Dataset version this will be the parent version (of a dataset that shares the same ID)
|
|
884
|
-
*/
|
|
885
|
-
parent_version?: number;
|
|
886
864
|
/** If this is a Deleted dataset this is the date and time the dataset was deleted (an ISO-8601 formatted string in UTC)
|
|
887
865
|
*/
|
|
888
866
|
deleted?: string;
|
|
@@ -906,9 +884,6 @@ interface DatasetSummary {
|
|
|
906
884
|
/** The list of editors
|
|
907
885
|
*/
|
|
908
886
|
editors: string[];
|
|
909
|
-
/** The owner of the Dataset
|
|
910
|
-
*/
|
|
911
|
-
owner: string;
|
|
912
887
|
/** The set of separate versions of the Dataset
|
|
913
888
|
*/
|
|
914
889
|
versions: DatasetVersionSummary[];
|
|
@@ -1121,6 +1096,15 @@ interface JobGetResponse {
|
|
|
1121
1096
|
keywords?: string[];
|
|
1122
1097
|
variables?: JobVariables;
|
|
1123
1098
|
}
|
|
1099
|
+
declare type InstanceTaskPurpose = "CREATE" | "DELETE";
|
|
1100
|
+
declare const InstanceTaskPurpose: {
|
|
1101
|
+
CREATE: InstanceTaskPurpose;
|
|
1102
|
+
DELETE: InstanceTaskPurpose;
|
|
1103
|
+
};
|
|
1104
|
+
interface InstanceTask {
|
|
1105
|
+
id: string;
|
|
1106
|
+
purpose: InstanceTaskPurpose;
|
|
1107
|
+
}
|
|
1124
1108
|
interface InstancesGetResponse {
|
|
1125
1109
|
instances: InstanceSummary[];
|
|
1126
1110
|
}
|
|
@@ -1161,18 +1145,18 @@ interface InstanceGetResponse {
|
|
|
1161
1145
|
/** The application unique reference
|
|
1162
1146
|
*/
|
|
1163
1147
|
launched: string;
|
|
1148
|
+
/** The phase of the application. This is a string, one of a limited number of values that are defined internally within the Data Manager.
|
|
1149
|
+
*/
|
|
1150
|
+
phase: string;
|
|
1164
1151
|
/** The application endpoint
|
|
1165
1152
|
*/
|
|
1166
1153
|
url?: string;
|
|
1167
1154
|
/** The JSON string representation of the JobDefintion's outputs
|
|
1168
1155
|
*/
|
|
1169
1156
|
outputs?: string;
|
|
1170
|
-
/** A
|
|
1171
|
-
*/
|
|
1172
|
-
states: TaskState[];
|
|
1173
|
-
/** A (possibly empty) list of application events. The oldest event occupies the first position in the list.
|
|
1157
|
+
/** A list of Tasks related to the application. Tasks are responsible for creating and deleteing the instance. You should fins at least one, assuming the corresponding task has not been deleted.
|
|
1174
1158
|
*/
|
|
1175
|
-
|
|
1159
|
+
tasks: InstanceTask[];
|
|
1176
1160
|
}
|
|
1177
1161
|
interface FilesGetResponse {
|
|
1178
1162
|
/** The project
|
|
@@ -1329,6 +1313,14 @@ interface AdminJobManifestLoadPutResponse {
|
|
|
1329
1313
|
*/
|
|
1330
1314
|
jobs_inspected: number;
|
|
1331
1315
|
}
|
|
1316
|
+
interface AccountServerGetHostanmeResponse {
|
|
1317
|
+
/** The configured Account Server hostname, which will be an empty string if one is not configured
|
|
1318
|
+
*/
|
|
1319
|
+
hostname: string;
|
|
1320
|
+
/** The name of this Data Manager instance, used to distinguish itself on calls to the Account Server. Every Data Manager is deployed with a unique name, regardless of the Account Server that's being used.
|
|
1321
|
+
*/
|
|
1322
|
+
data_manager_name: string;
|
|
1323
|
+
}
|
|
1332
1324
|
interface DmError {
|
|
1333
1325
|
/** Brief error text that can be presented to the user
|
|
1334
1326
|
*/
|
|
@@ -1350,4 +1342,4 @@ declare const setBaseUrl: (baseUrl: string) => void;
|
|
|
1350
1342
|
declare const customInstance: <TReturn>(config: AxiosRequestConfig, options?: AxiosRequestConfig<any> | undefined) => Promise<TReturn>;
|
|
1351
1343
|
declare type ErrorType<TError> = AxiosError<TError>;
|
|
1352
1344
|
|
|
1353
|
-
export {
|
|
1345
|
+
export { TaskState as $, AdminGetServiceErrorsParams as A, QEventLimitParameter as B, QDatasetMimeTypeParameter as C, DeleteUnmanagedFileParams as D, QDoNotImpersonateParameter as E, UserAccountPatchBodyBody as F, GetUserApiLogParams as G, ProjectPostBodyBody as H, ProjectPatchBodyBody as I, ProjectFilePutBodyBody as J, InstancePostBodyBody as K, FilePostBodyBody as L, DatasetPutBodyBody as M, DatasetAnnotationsPostBodyBody as N, DatasetPostBodyBody as O, PatchInstanceParams as P, QEditorsParameter as Q, UserSummary as R, UserDetail as S, UserAccountDetail as T, UserPatchBodyBody as U, TypeSummaryFormatterOptionsType as V, TypeSummaryFormatterOptions as W, TypeSummary as X, TaskSummaryProcessingStage as Y, TaskSummary as Z, TaskStateState as _, GetUserAccountParams as a, ApplicationGetResponse as a$, TaskIdentity as a0, TaskEventLevel as a1, TaskEvent as a2, ServiceErrorSummarySeverity as a3, ServiceErrorSummary as a4, ProjectFileDetail as a5, ProjectDetail as a6, JobOrderDetail as a7, JobVariables as a8, JobSummaryImageType as a9, ServiceErrorsGetResponse as aA, ProjectsGetResponse as aB, ProjectPostResponse as aC, ProjectGetResponse as aD, ProjectDeleteResponse as aE, JobsGetResponse as aF, JobGetResponseImageType as aG, JobGetResponse as aH, InstanceTaskPurpose as aI, InstanceTask as aJ, InstancesGetResponse as aK, InstanceGetResponseApplicationType as aL, InstanceGetResponse as aM, FilesGetResponse as aN, FilePostResponse as aO, InstancePostResponse as aP, InstanceDeleteResponse as aQ, DatasetsGetResponse as aR, DatasetVersionsGetResponse as aS, DatasetVersionDeleteResponse as aT, DatasetSchemaGetResponseType as aU, DatasetSchemaGetResponse as aV, DatasetMetaGetResponse as aW, DatasetDigestGetResponse as aX, DatasetPutPostResponse as aY, DatasetAnnotationsPostResponse as aZ, ApplicationsGetResponse as a_, JobSummary as aa, JobApplication as ab, InstanceSummaryJobImageType as ac, InstanceSummaryApplicationType as ad, InstanceSummary as ae, FileStat as af, FilePathFile as ag, DatasetVersionSummaryLabels as ah, DatasetVersionSummaryProcessingStage as ai, DatasetVersionSummary as aj, DatasetVersionProjectFile as ak, DatasetVersionDetailLabels as al, DatasetVersionDetailProcessingStage as am, DatasetVersionDetail as an, DatasetSummary as ao, DatasetDetail as ap, ApplicationSummary as aq, ApiLogDetailMethod as ar, ApiLogDetail as as, UsersGetResponse as at, UserApiLogGetResponse as au, UserAccountGetResponse as av, TypesGetResponse as aw, TasksGetResponse as ax, TaskGetResponsePurpose as ay, TaskGetResponse as az, GetInstancesParams as b, AdminUserPutResponse as b0, AdminJobManifestLoadPutResponse as b1, AccountServerGetHostanmeResponse as b2, DmError as b3, AXIOS_INSTANCE as b4, setAuthToken as b5, setBaseUrl as b6, customInstance as b7, ErrorType as b8, GetTaskParams as c, GetTasksParams as d, GetFilesParams as e, DeleteDatasetParams as f, GetVersionsParams as g, GetProjectFileParams as h, QOwnersParameter as i, QUsernameParameter as j, QUntilParameter as k, QProjectIdParameter as l, QLabelsParameter as m, GetDatasetsParams as n, QKeepProjectFilesParameter as o, QInstanceArchiveParameter as p, QIncludeHiddenParameter as q, QIncludeDeletedParameter as r, QIncludeAcknowlegedParameter as s, QFromParameter as t, QFileProjectIdParameter as u, QFilePathParameter as v, QFileParameter as w, QExcludePurposeParameter as x, QExcludeDoneParameter as y, QEventPriorOrdinalParameter as z };
|