@sage-bionetworks/synapse-types 0.0.11 → 0.0.13
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/dist/AccessRequirement/Submission.d.ts +4 -2
- package/dist/Annotations.d.ts +4 -4
- package/dist/Annotations.js.map +1 -1
- package/dist/Table/DownloadFromTableRequest.d.ts +2 -1
- package/dist/Table/EntityView.d.ts +1 -0
- package/dist/Table/EntityView.js +1 -0
- package/dist/Table/EntityView.js.map +1 -1
- package/dist/Table/FacetColumnResult.d.ts +14 -1
- package/dist/Table/Query.d.ts +5 -0
- package/dist/Table/QueryBundleRequest.d.ts +2 -0
- package/dist/Table/QueryFilter.d.ts +9 -1
- package/dist/Table/QueryFilter.js +1 -0
- package/dist/Table/QueryFilter.js.map +1 -1
- package/dist/Table/QueryResultBundle.d.ts +1 -0
- package/package.json +2 -2
|
@@ -19,8 +19,8 @@ export type Submission = {
|
|
|
19
19
|
attachments?: Array<string>;
|
|
20
20
|
/** List of user changes. A user can gain access, renew access or have access revoked. */
|
|
21
21
|
accessorChanges: Array<AccessorChange>;
|
|
22
|
-
/** A research project describes a project at an institution that used a controlled data set for the purposes that are stated in the Intended Data Use Statement. */
|
|
23
|
-
researchProjectSnapshot
|
|
22
|
+
/** A research project describes a project at an institution that used a controlled data set for the purposes that are stated in the Intended Data Use Statement. Absent for submissions that collect no first-class research project fields. */
|
|
23
|
+
researchProjectSnapshot?: ResearchProject;
|
|
24
24
|
/** True if this submission is a renewal submission. */
|
|
25
25
|
isRenewalSubmission: boolean;
|
|
26
26
|
/** Link(s) to publication that used the controlled data. */
|
|
@@ -39,6 +39,8 @@ export type Submission = {
|
|
|
39
39
|
state: SubmissionState;
|
|
40
40
|
/** The reason this submission is rejected, if it's rejected. */
|
|
41
41
|
rejectedReason?: string;
|
|
42
|
+
/** Additional data provided by the submitter, validated against the JSON Schema referenced by the Access Requirement's form template. */
|
|
43
|
+
schemaData?: Record<string, unknown>;
|
|
42
44
|
/** Synapse employs an Optimistic Concurrency Control (OCC) scheme to handle concurrent updates. Since the E-Tag changes every time a request is updated it is used to detect when a client's current representation of a request is out-of-date. */
|
|
43
45
|
etag: string;
|
|
44
46
|
/** The ID of the subject user interested in. This information will be used to help user navigate back to where they were to continue their work. */
|
package/dist/Annotations.d.ts
CHANGED
|
@@ -10,8 +10,8 @@ export type AnnotationsValue = {
|
|
|
10
10
|
value: string[] | number[];
|
|
11
11
|
};
|
|
12
12
|
export declare enum AnnotationsValueType {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
STRING = 0,
|
|
14
|
+
DOUBLE = 1,
|
|
15
|
+
LONG = 2,
|
|
16
|
+
TIMESTAMP_MS = 3
|
|
17
17
|
}
|
package/dist/Annotations.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Annotations.js","sourceRoot":"","sources":["../src/Annotations.ts"],"names":[],"mappings":"AAcA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,
|
|
1
|
+
{"version":3,"file":"Annotations.js","sourceRoot":"","sources":["../src/Annotations.ts"],"names":[],"mappings":"AAcA,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,mEAAM,CAAA;IACN,mEAAM,CAAA;IACN,+DAAI,CAAA;IACJ,+EAAY,CAAA;AACd,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CsvTableDescriptor } from './CsvTableDescription';
|
|
2
|
-
import { SortItem } from './Query';
|
|
2
|
+
import { CohortDefinition, SortItem } from './Query';
|
|
3
3
|
import { FacetColumnRequest } from './FacetColumnRequest';
|
|
4
4
|
import { QueryFilter } from './QueryFilter';
|
|
5
5
|
export type DownloadFromTableRequest = {
|
|
@@ -16,4 +16,5 @@ export type DownloadFromTableRequest = {
|
|
|
16
16
|
limit?: number;
|
|
17
17
|
sort?: SortItem[];
|
|
18
18
|
additionalFilters?: QueryFilter[];
|
|
19
|
+
cohorts?: CohortDefinition[];
|
|
19
20
|
};
|
|
@@ -7,6 +7,7 @@ export declare const ENTITY_VIEW_TYPE_MASK_VIEW = 16;
|
|
|
7
7
|
export declare const ENTITY_VIEW_TYPE_MASK_DOCKER = 32;
|
|
8
8
|
export declare const ENTITY_VIEW_TYPE_MASK_SUBMISSIONVIEW = 64;
|
|
9
9
|
export declare const ENTITY_VIEW_TYPE_MASK_DATASET = 128;
|
|
10
|
+
export declare const ENTITY_VIEW_TYPE_MASK_RECORDSET = 1024;
|
|
10
11
|
export declare const ENTITY_VIEW_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.EntityView";
|
|
11
12
|
export type ENTITY_VIEW_CONCRETE_TYPE = typeof ENTITY_VIEW_CONCRETE_TYPE_VALUE;
|
|
12
13
|
export interface EntityView extends View {
|
package/dist/Table/EntityView.js
CHANGED
|
@@ -6,5 +6,6 @@ export const ENTITY_VIEW_TYPE_MASK_VIEW = 0x10;
|
|
|
6
6
|
export const ENTITY_VIEW_TYPE_MASK_DOCKER = 0x20;
|
|
7
7
|
export const ENTITY_VIEW_TYPE_MASK_SUBMISSIONVIEW = 0x40;
|
|
8
8
|
export const ENTITY_VIEW_TYPE_MASK_DATASET = 0x80;
|
|
9
|
+
export const ENTITY_VIEW_TYPE_MASK_RECORDSET = 0x400;
|
|
9
10
|
export const ENTITY_VIEW_CONCRETE_TYPE_VALUE = 'org.sagebionetworks.repo.model.table.EntityView';
|
|
10
11
|
//# sourceMappingURL=EntityView.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EntityView.js","sourceRoot":"","sources":["../../src/Table/EntityView.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAA;AAC9C,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAA;AACjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAA;AAC/C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAA;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAA;AAC9C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAA;AAChD,MAAM,CAAC,MAAM,oCAAoC,GAAG,IAAI,CAAA;AACxD,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAA;
|
|
1
|
+
{"version":3,"file":"EntityView.js","sourceRoot":"","sources":["../../src/Table/EntityView.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAA;AAC9C,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAA;AACjD,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,CAAA;AAC/C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAA;AAChD,MAAM,CAAC,MAAM,0BAA0B,GAAG,IAAI,CAAA;AAC9C,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAA;AAChD,MAAM,CAAC,MAAM,oCAAoC,GAAG,IAAI,CAAA;AACxD,MAAM,CAAC,MAAM,6BAA6B,GAAG,IAAI,CAAA;AACjD,MAAM,CAAC,MAAM,+BAA+B,GAAG,KAAK,CAAA;AAEpD,MAAM,CAAC,MAAM,+BAA+B,GAC1C,iDAAiD,CAAA"}
|
|
@@ -20,4 +20,17 @@ export type FacetColumnResultRange = {
|
|
|
20
20
|
selectedMax?: string;
|
|
21
21
|
jsonPath?: string;
|
|
22
22
|
};
|
|
23
|
-
export type
|
|
23
|
+
export type FacetColumnResultBinnedValues = {
|
|
24
|
+
concreteType: 'org.sagebionetworks.repo.model.table.FacetColumnResultBinnedValues';
|
|
25
|
+
columnName: string;
|
|
26
|
+
facetType: 'enumeration';
|
|
27
|
+
binSize: number;
|
|
28
|
+
binnedValues: FacetColumnResultBinnedValueCount[];
|
|
29
|
+
jsonPath?: string;
|
|
30
|
+
};
|
|
31
|
+
export type FacetColumnResultBinnedValueCount = {
|
|
32
|
+
value: string;
|
|
33
|
+
binMin: number;
|
|
34
|
+
isSelected: boolean;
|
|
35
|
+
};
|
|
36
|
+
export type FacetColumnResult = FacetColumnResultValues | FacetColumnResultRange | FacetColumnResultBinnedValues;
|
package/dist/Table/Query.d.ts
CHANGED
|
@@ -4,6 +4,10 @@ export type SortItem = {
|
|
|
4
4
|
column: string;
|
|
5
5
|
direction: '' | 'ASC' | 'DESC';
|
|
6
6
|
};
|
|
7
|
+
export type CohortDefinition = {
|
|
8
|
+
name: string;
|
|
9
|
+
query: Query;
|
|
10
|
+
};
|
|
7
11
|
export type Query = {
|
|
8
12
|
sql: string;
|
|
9
13
|
selectedFacets?: FacetColumnRequest[];
|
|
@@ -14,4 +18,5 @@ export type Query = {
|
|
|
14
18
|
additionalFilters?: QueryFilter[];
|
|
15
19
|
selectFileColumn?: number;
|
|
16
20
|
selectFileVersionColumn?: number;
|
|
21
|
+
cohorts?: CohortDefinition[];
|
|
17
22
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { AggregateDataConfiguration } from '@sage-bionetworks/synapse-client';
|
|
1
2
|
import { Query } from './Query';
|
|
2
3
|
export type QueryBundleRequest = {
|
|
3
4
|
concreteType: 'org.sagebionetworks.repo.model.table.QueryBundleRequest';
|
|
4
5
|
entityId: string;
|
|
5
6
|
query: Query;
|
|
6
7
|
partMask: number;
|
|
8
|
+
aggregateDataPreview?: AggregateDataConfiguration;
|
|
7
9
|
};
|
|
@@ -53,4 +53,12 @@ export interface FilterGroup {
|
|
|
53
53
|
not?: boolean;
|
|
54
54
|
children?: QueryFilter[];
|
|
55
55
|
}
|
|
56
|
-
export
|
|
56
|
+
export declare const COLUMN_COHORT_FILTER_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.ColumnCohortFilter";
|
|
57
|
+
export type COLUMN_COHORT_FILTER_CONCRETE_TYPE = typeof COLUMN_COHORT_FILTER_CONCRETE_TYPE_VALUE;
|
|
58
|
+
export interface ColumnCohortFilter {
|
|
59
|
+
concreteType: COLUMN_COHORT_FILTER_CONCRETE_TYPE;
|
|
60
|
+
isDefiningCondition?: boolean;
|
|
61
|
+
columnName: string;
|
|
62
|
+
cohortName: string;
|
|
63
|
+
}
|
|
64
|
+
export type QueryFilter = TextMatchesQueryFilter | ColumnSingleValueQueryFilter | ColumnMultiValueFunctionQueryFilter | FilterGroup | ColumnCohortFilter;
|
|
@@ -35,4 +35,5 @@ export const COLUMN_MULTI_VALUE_FUNCTION_QUERY_FILTER_CONCRETE_TYPE_VALUE = 'org
|
|
|
35
35
|
// https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/table/TextMatchesQueryFilter.html
|
|
36
36
|
export const TEXT_MATCHES_QUERY_FILTER_CONCRETE_TYPE_VALUE = 'org.sagebionetworks.repo.model.table.TextMatchesQueryFilter';
|
|
37
37
|
export const FILTER_GROUP_CONCRETE_TYPE_VALUE = 'org.sagebionetworks.repo.model.table.FilterGroup';
|
|
38
|
+
export const COLUMN_COHORT_FILTER_CONCRETE_TYPE_VALUE = 'org.sagebionetworks.repo.model.table.ColumnCohortFilter';
|
|
38
39
|
//# sourceMappingURL=QueryFilter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QueryFilter.js","sourceRoot":"","sources":["../../src/Table/QueryFilter.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,+BAuBX;AAvBD,WAAY,+BAA+B;IACzC,qFAAqF;IACrF,gDAAa,CAAA;IACb,0BAA0B;IAC1B,kDAAe,CAAA;IACf,sBAAsB;IACtB,4CAAS,CAAA;IACT,SAAS;IACT,gEAA6B,CAAA;IAC7B,SAAS;IACT,0DAAuB,CAAA;IACvB,UAAU;IACV,kFAA+C,CAAA;IAC/C,UAAU;IACV,4EAAyC,CAAA;IACzC,UAAU;IACV,0DAAuB,CAAA;IACvB,aAAa;IACb,sDAAmB,CAAA;IACnB,iBAAiB;IACjB,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CAAC,MAAM,oDAAoD,GAC/D,mEAAmE,CAAA;AAarE,MAAM,CAAC,MAAM,4DAA4D,GACvE,0EAA0E,CAAA;AAgB5E,sGAAsG;AACtG,MAAM,CAAC,MAAM,6CAA6C,GACxD,6DAA6D,CAAA;AAa/D,MAAM,CAAC,MAAM,gCAAgC,GAC3C,kDAAkD,CAAA;AAYpD,MAAM,CAAC,MAAM,wCAAwC,GACnD,yDAAyD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sage-bionetworks/synapse-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.13",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@sage-bionetworks/synapse-client": "0.0.
|
|
15
|
+
"@sage-bionetworks/synapse-client": "0.0.25"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|