@sage-bionetworks/synapse-types 0.0.8 → 0.0.10

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.
@@ -26,4 +26,5 @@ export type ManagedACTAccessRequirement = {
26
26
  isIDUPublic: boolean;
27
27
  isIDURequired: boolean;
28
28
  isTwoFaRequired: boolean;
29
+ eDucTemplateId?: string;
29
30
  };
@@ -3,6 +3,17 @@
3
3
  * http://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/dataaccess/RequestInterface.html
4
4
  */
5
5
  import { AccessorChange } from './AccessorChange';
6
+ export interface PrincipalInvestigator {
7
+ userId?: string;
8
+ name?: string;
9
+ title?: string;
10
+ institutionalEmail?: string;
11
+ }
12
+ export interface SigningOfficial {
13
+ name?: string;
14
+ title?: string;
15
+ institutionalEmail?: string;
16
+ }
6
17
  export interface RequestInterface {
7
18
  id: string;
8
19
  accessRequirementId: string;
@@ -11,12 +22,16 @@ export interface RequestInterface {
11
22
  modifiedOn: string;
12
23
  createdBy: string;
13
24
  modifiedBy: string;
14
- ducFileHandleId: string;
25
+ ducFileHandleId?: string;
15
26
  irbFileHandleId: string;
16
27
  attachments?: string[];
17
28
  accessorChanges: AccessorChange[];
18
29
  etag: string;
19
30
  concreteType: string;
31
+ institution?: string;
32
+ principalInvestigator?: PrincipalInvestigator;
33
+ signingOfficial?: SigningOfficial;
34
+ eDucSignatureEnvelopeId?: string;
20
35
  }
21
36
  export interface Request extends RequestInterface {
22
37
  concreteType: 'org.sagebionetworks.repo.model.dataaccess.Request';
@@ -1,7 +1,15 @@
1
1
  export declare enum ColumnSingleValueFilterOperator {
2
2
  LIKE = "LIKE",
3
3
  EQUAL = "EQUAL",
4
- IN = "IN"
4
+ IN = "IN",
5
+ GREATER_THAN = "GREATER_THAN",
6
+ LESS_THAN = "LESS_THAN",
7
+ GREATER_THAN_OR_EQUAL = "GREATER_THAN_OR_EQUAL",
8
+ LESS_THAN_OR_EQUAL = "LESS_THAN_OR_EQUAL",
9
+ NOT_EQUAL = "NOT_EQUAL",
10
+ IS_NULL = "IS_NULL",
11
+ IS_NOT_NULL = "IS_NOT_NULL",
12
+ BETWEEN = "BETWEEN"
5
13
  }
6
14
  export declare enum ColumnMultiValueFunction {
7
15
  HAS = "HAS",
@@ -35,4 +43,14 @@ export interface TextMatchesQueryFilter {
35
43
  searchExpression: string;
36
44
  searchMode?: TextMatchesMode;
37
45
  }
38
- export type QueryFilter = TextMatchesQueryFilter | ColumnSingleValueQueryFilter | ColumnMultiValueFunctionQueryFilter;
46
+ export type BooleanOperator = 'AND' | 'OR';
47
+ export declare const FILTER_GROUP_CONCRETE_TYPE_VALUE = "org.sagebionetworks.repo.model.table.FilterGroup";
48
+ export type FILTER_GROUP_CONCRETE_TYPE = typeof FILTER_GROUP_CONCRETE_TYPE_VALUE;
49
+ export interface FilterGroup {
50
+ concreteType: FILTER_GROUP_CONCRETE_TYPE;
51
+ isDefiningCondition?: boolean;
52
+ operator?: BooleanOperator;
53
+ not?: boolean;
54
+ children?: QueryFilter[];
55
+ }
56
+ export type QueryFilter = TextMatchesQueryFilter | ColumnSingleValueQueryFilter | ColumnMultiValueFunctionQueryFilter | FilterGroup;
@@ -6,6 +6,22 @@ export var ColumnSingleValueFilterOperator;
6
6
  ColumnSingleValueFilterOperator["EQUAL"] = "EQUAL";
7
7
  /* The IN operation */
8
8
  ColumnSingleValueFilterOperator["IN"] = "IN";
9
+ /* '>' */
10
+ ColumnSingleValueFilterOperator["GREATER_THAN"] = "GREATER_THAN";
11
+ /* '<' */
12
+ ColumnSingleValueFilterOperator["LESS_THAN"] = "LESS_THAN";
13
+ /* '>=' */
14
+ ColumnSingleValueFilterOperator["GREATER_THAN_OR_EQUAL"] = "GREATER_THAN_OR_EQUAL";
15
+ /* '<=' */
16
+ ColumnSingleValueFilterOperator["LESS_THAN_OR_EQUAL"] = "LESS_THAN_OR_EQUAL";
17
+ /* '<>' */
18
+ ColumnSingleValueFilterOperator["NOT_EQUAL"] = "NOT_EQUAL";
19
+ /* IS NULL */
20
+ ColumnSingleValueFilterOperator["IS_NULL"] = "IS_NULL";
21
+ /* IS NOT NULL */
22
+ ColumnSingleValueFilterOperator["IS_NOT_NULL"] = "IS_NOT_NULL";
23
+ /* BETWEEN: values[0] is the lower bound, values[1] is the upper bound (inclusive). */
24
+ ColumnSingleValueFilterOperator["BETWEEN"] = "BETWEEN";
9
25
  })(ColumnSingleValueFilterOperator || (ColumnSingleValueFilterOperator = {}));
10
26
  export var ColumnMultiValueFunction;
11
27
  (function (ColumnMultiValueFunction) {
@@ -18,4 +34,5 @@ export const COLUMN_SINGLE_VALUE_QUERY_FILTER_CONCRETE_TYPE_VALUE = 'org.sagebio
18
34
  export const COLUMN_MULTI_VALUE_FUNCTION_QUERY_FILTER_CONCRETE_TYPE_VALUE = 'org.sagebionetworks.repo.model.table.ColumnMultiValueFunctionQueryFilter';
19
35
  // https://rest-docs.synapse.org/rest/org/sagebionetworks/repo/model/table/TextMatchesQueryFilter.html
20
36
  export const TEXT_MATCHES_QUERY_FILTER_CONCRETE_TYPE_VALUE = 'org.sagebionetworks.repo.model.table.TextMatchesQueryFilter';
37
+ export const FILTER_GROUP_CONCRETE_TYPE_VALUE = 'org.sagebionetworks.repo.model.table.FilterGroup';
21
38
  //# sourceMappingURL=QueryFilter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QueryFilter.js","sourceRoot":"","sources":["../../src/Table/QueryFilter.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,+BAOX;AAPD,WAAY,+BAA+B;IACzC,qFAAqF;IACrF,gDAAa,CAAA;IACb,0BAA0B;IAC1B,kDAAe,CAAA;IACf,sBAAsB;IACtB,4CAAS,CAAA;AACX,CAAC,EAPW,+BAA+B,KAA/B,+BAA+B,QAO1C;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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sage-bionetworks/synapse-types",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
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.22"
15
+ "@sage-bionetworks/synapse-client": "0.0.24"
16
16
  },
17
17
  "repository": {
18
18
  "type": "git",