@persei/perseed-api 4.34.2 → 4.34.3

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.
@@ -479,6 +479,31 @@
479
479
  },
480
480
  "prevAdherenceDays": {
481
481
  "type": ["number", "null"]
482
+ },
483
+ "filter": {
484
+ "$ref": "#/definitions/FilterParams"
485
+ }
486
+ },
487
+ "additionalProperties": false
488
+ },
489
+ "FilterParams": {
490
+ "type": "object",
491
+ "properties": {
492
+ "conditions": {
493
+ "type": "object",
494
+ "additionalProperties": {}
495
+ },
496
+ "relatedData": {
497
+ "type": "object",
498
+ "properties": {
499
+ "join": {
500
+ "type": "array",
501
+ "items": {
502
+ "type": "string"
503
+ }
504
+ }
505
+ },
506
+ "additionalProperties": false
482
507
  }
483
508
  },
484
509
  "additionalProperties": false
@@ -478,6 +478,31 @@
478
478
  },
479
479
  "prevAdherenceDays": {
480
480
  "type": ["number", "null"]
481
+ },
482
+ "filter": {
483
+ "$ref": "#/definitions/FilterParams"
484
+ }
485
+ },
486
+ "additionalProperties": false
487
+ },
488
+ "FilterParams": {
489
+ "type": "object",
490
+ "properties": {
491
+ "conditions": {
492
+ "type": "object",
493
+ "additionalProperties": {}
494
+ },
495
+ "relatedData": {
496
+ "type": "object",
497
+ "properties": {
498
+ "join": {
499
+ "type": "array",
500
+ "items": {
501
+ "type": "string"
502
+ }
503
+ }
504
+ },
505
+ "additionalProperties": false
481
506
  }
482
507
  },
483
508
  "additionalProperties": false
@@ -6,4 +6,11 @@ export interface PatientListProps {
6
6
  loadUserAccessData?: boolean;
7
7
  programId?: number | null;
8
8
  prevAdherenceDays?: number | null;
9
+ filter?: FilterParams;
10
+ }
11
+ export interface FilterParams {
12
+ conditions?: Record<string, unknown>;
13
+ relatedData?: {
14
+ join?: string[];
15
+ };
9
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@persei/perseed-api",
3
- "version": "4.34.2",
3
+ "version": "4.34.3",
4
4
  "private": false,
5
5
  "main": "./dist/perseed-api.umd.cjs",
6
6
  "module": "./dist/perseed-api.js",
@@ -13,6 +13,7 @@
13
13
  },
14
14
  "files": ["dist"],
15
15
  "scripts": {
16
+ "publish": "npm run precommit && npm run build && npm publish",
16
17
  "build": "tsc && vite build",
17
18
  "start": "ts-node src/server.ts",
18
19
  "lint": "npm run test:lint",