@sage-bionetworks/synapse-types 0.0.12 → 0.0.14
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/JsonSchemaAccessRequirement.d.ts +2 -1
- package/dist/AccessRequirement/JsonSchemaAccessRequirement.js.map +1 -1
- package/dist/AccessRequirement/ManagedACTAccessRequirement.d.ts +2 -0
- package/dist/AccessRequirement/ManagedACTAccessRequirement.js.map +1 -1
- package/dist/AccessRequirement/Submission.d.ts +3 -0
- package/dist/Annotations.d.ts +4 -4
- package/dist/Annotations.js.map +1 -1
- package/dist/DownloadListV2/ActionRequired.d.ts +7 -1
- package/dist/DownloadListV2/ActionRequired.js +0 -1
- package/dist/DownloadListV2/ActionRequired.js.map +1 -1
- package/dist/FileHandleAssociation.d.ts +2 -1
- package/dist/FileHandleAssociation.js +1 -0
- package/dist/FileHandleAssociation.js.map +1 -1
- package/dist/Table/DownloadFromTableRequest.d.ts +2 -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 +3 -0
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormTemplateReference } from '@sage-bionetworks/synapse-client';
|
|
1
|
+
import { FormTemplateReference, IdentityProviderName } from '@sage-bionetworks/synapse-client';
|
|
2
2
|
import ACCESS_TYPE from '../ACCESS_TYPE';
|
|
3
3
|
import { RestrictableObjectDescriptor } from './RestrictableObjectDescriptor';
|
|
4
4
|
export declare const JSON_SCHEMA_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE = "JSON Schema";
|
|
@@ -28,5 +28,6 @@ export type JsonSchemaAccessRequirement = {
|
|
|
28
28
|
expirationPeriod: number;
|
|
29
29
|
isTwoFaRequired: boolean;
|
|
30
30
|
eDucTemplateId?: string;
|
|
31
|
+
identityProviders?: IdentityProviderName[];
|
|
31
32
|
formTemplateRef: FormTemplateReference;
|
|
32
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonSchemaAccessRequirement.js","sourceRoot":"","sources":["../../src/AccessRequirement/JsonSchemaAccessRequirement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JsonSchemaAccessRequirement.js","sourceRoot":"","sources":["../../src/AccessRequirement/JsonSchemaAccessRequirement.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,0DAA0D,GACrE,aAAa,CAAA;AACf,MAAM,CAAC,MAAM,kDAAkD,GAC7D,4DAA4D,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { IdentityProviderName } from '@sage-bionetworks/synapse-client';
|
|
1
2
|
import { RestrictableObjectDescriptor } from './RestrictableObjectDescriptor';
|
|
2
3
|
import ACCESS_TYPE from '../ACCESS_TYPE';
|
|
3
4
|
export declare const MANAGED_ACT_ACCESS_REQUIREMENT_CONCRETE_TYPE_DISPLAY_VALUE = "Managed";
|
|
@@ -27,4 +28,5 @@ export type ManagedACTAccessRequirement = {
|
|
|
27
28
|
isIDURequired: boolean;
|
|
28
29
|
isTwoFaRequired: boolean;
|
|
29
30
|
eDucTemplateId?: string;
|
|
31
|
+
identityProviders?: IdentityProviderName[];
|
|
30
32
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedACTAccessRequirement.js","sourceRoot":"","sources":["../../src/AccessRequirement/ManagedACTAccessRequirement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ManagedACTAccessRequirement.js","sourceRoot":"","sources":["../../src/AccessRequirement/ManagedACTAccessRequirement.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,0DAA0D,GACrE,SAAS,CAAA;AACX,MAAM,CAAC,MAAM,kDAAkD,GAC7D,4DAA4D,CAAA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FormTemplateReference } from '@sage-bionetworks/synapse-client';
|
|
1
2
|
import { ResearchProject } from '../ResearchProject';
|
|
2
3
|
import { RestrictableObjectType } from '../RestrictionInformation';
|
|
3
4
|
import { AccessorChange } from './AccessorChange';
|
|
@@ -41,6 +42,8 @@ export type Submission = {
|
|
|
41
42
|
rejectedReason?: string;
|
|
42
43
|
/** Additional data provided by the submitter, validated against the JSON Schema referenced by the Access Requirement's form template. */
|
|
43
44
|
schemaData?: Record<string, unknown>;
|
|
45
|
+
/** The FormTemplate id and version that the Access Requirement referenced at `accessRequirementVersion`: the template `schemaData` was validated against and should be rendered with. Snapshotted when the submission is created. Absent when the Access Requirement has no form template. */
|
|
46
|
+
formTemplateRef?: FormTemplateReference;
|
|
44
47
|
/** 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. */
|
|
45
48
|
etag: string;
|
|
46
49
|
/** 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,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { IdentityProviderName } from '@sage-bionetworks/synapse-client';
|
|
2
|
+
export type Action = RequestDownload | MeetAccessRequirement | EnableTwoFa | AuthenticateWithIdentityProvider;
|
|
2
3
|
export type ActionRequiredCount = {
|
|
3
4
|
action: Action;
|
|
4
5
|
count: number;
|
|
@@ -18,3 +19,8 @@ export type EnableTwoFa = {
|
|
|
18
19
|
concreteType: 'org.sagebionetworks.repo.model.download.EnableTwoFa';
|
|
19
20
|
accessRequirementId: number;
|
|
20
21
|
};
|
|
22
|
+
export type AuthenticateWithIdentityProvider = {
|
|
23
|
+
concreteType: 'org.sagebionetworks.repo.model.download.AuthenticateWithIdentityProvider';
|
|
24
|
+
accessRequirementId: number;
|
|
25
|
+
identityProviders?: IdentityProviderName[];
|
|
26
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionRequired.js","sourceRoot":"","sources":["../../src/DownloadListV2/ActionRequired.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ActionRequired.js","sourceRoot":"","sources":["../../src/DownloadListV2/ActionRequired.ts"],"names":[],"mappings":""}
|
|
@@ -10,7 +10,8 @@ export declare enum FileHandleAssociateType {
|
|
|
10
10
|
VerificationSubmission = "VerificationSubmission",
|
|
11
11
|
AccessRequirementAttachment = "AccessRequirementAttachment",
|
|
12
12
|
DataAccessRequestAttachment = "DataAccessRequestAttachment",
|
|
13
|
-
DataAccessSubmissionAttachment = "DataAccessSubmissionAttachment"
|
|
13
|
+
DataAccessSubmissionAttachment = "DataAccessSubmissionAttachment",
|
|
14
|
+
FormTemplateAttachment = "FormTemplateAttachment"
|
|
14
15
|
}
|
|
15
16
|
export type FileHandleAssociation = {
|
|
16
17
|
fileHandleId: string;
|
|
@@ -13,5 +13,6 @@ export var FileHandleAssociateType;
|
|
|
13
13
|
FileHandleAssociateType["AccessRequirementAttachment"] = "AccessRequirementAttachment";
|
|
14
14
|
FileHandleAssociateType["DataAccessRequestAttachment"] = "DataAccessRequestAttachment";
|
|
15
15
|
FileHandleAssociateType["DataAccessSubmissionAttachment"] = "DataAccessSubmissionAttachment";
|
|
16
|
+
FileHandleAssociateType["FormTemplateAttachment"] = "FormTemplateAttachment";
|
|
16
17
|
})(FileHandleAssociateType || (FileHandleAssociateType = {}));
|
|
17
18
|
//# sourceMappingURL=FileHandleAssociation.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileHandleAssociation.js","sourceRoot":"","sources":["../src/FileHandleAssociation.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,MAAM,CAAN,IAAY,
|
|
1
|
+
{"version":3,"file":"FileHandleAssociation.js","sourceRoot":"","sources":["../src/FileHandleAssociation.ts"],"names":[],"mappings":"AAAA,qGAAqG;AACrG,MAAM,CAAN,IAAY,uBAcX;AAdD,WAAY,uBAAuB;IACjC,oDAAyB,CAAA;IACzB,sDAA2B,CAAA;IAC3B,4DAAiC,CAAA;IACjC,wDAA6B,CAAA;IAC7B,0EAA+C,CAAA;IAC/C,kEAAuC,CAAA;IACvC,4DAAiC,CAAA;IACjC,wEAA6C,CAAA;IAC7C,4EAAiD,CAAA;IACjD,sFAA2D,CAAA;IAC3D,sFAA2D,CAAA;IAC3D,4FAAiE,CAAA;IACjE,4EAAiD,CAAA;AACnD,CAAC,EAdW,uBAAuB,KAAvB,uBAAuB,QAclC"}
|
|
@@ -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
|
};
|
|
@@ -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,8DAA2B,CAAA;IAC3B,sFAAsF;IACtF,sDAAmB,CAAA;AACrB,CAAC,EAvBW,+BAA+B,KAA/B,+BAA+B,QAuB1C;AACD,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,qFAAqF;IACrF,uCAAW,CAAA;IACX,mJAAmJ;IACnJ,iDAAqB,CAAA;AACvB,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAED,MAAM,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"}
|
|
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,8DAA2B,CAAA;IAC3B,sFAAsF;IACtF,sDAAmB,CAAA;AACrB,CAAC,EAvBW,+BAA+B,KAA/B,+BAA+B,QAuB1C;AACD,MAAM,CAAN,IAAY,wBAKX;AALD,WAAY,wBAAwB;IAClC,qFAAqF;IACrF,uCAAW,CAAA;IACX,mJAAmJ;IACnJ,iDAAqB,CAAA;AACvB,CAAC,EALW,wBAAwB,KAAxB,wBAAwB,QAKnC;AAED,MAAM,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"}
|
|
@@ -12,6 +12,9 @@ export interface QueryResultBundle {
|
|
|
12
12
|
maxRowsPerPage?: number;
|
|
13
13
|
columnModels?: ColumnModel[];
|
|
14
14
|
facets?: FacetColumnResult[];
|
|
15
|
+
facetPostProcessingApplied?: boolean;
|
|
16
|
+
queryCountPostProcessingApplied?: boolean;
|
|
17
|
+
suppressionThreshold?: number;
|
|
15
18
|
sumFileSizes?: SumFileSizes;
|
|
16
19
|
lastUpdatedOn?: string;
|
|
17
20
|
combinedSql?: string;
|
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.14",
|
|
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.27"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@types/node": "^22.19.20",
|
|
27
|
-
"rimraf": "^6.1.
|
|
27
|
+
"rimraf": "^6.1.4",
|
|
28
28
|
"typescript": "6.0.3"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|