@eka-care/ekascribe-ts-sdk 1.5.50 → 1.5.52

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.
@@ -30,7 +30,6 @@ const setEnv = ({ env, clientId, auth_token, }) => {
30
30
  auth = auth_token;
31
31
  }
32
32
  };
33
- console.log(envVar, 'dev');
34
33
  export const GET_S3_BUCKET_NAME = () => envVar.S3_BUCKET_NAME;
35
34
  export const GET_CLIENT_ID = () => client_id;
36
35
  export const GET_AUTH_TOKEN = () => auth;
@@ -9,8 +9,8 @@ export type TSearchSessionsRequest = {
9
9
  };
10
10
  export type TSearchSessionsByPatientRequest = {
11
11
  sessions: TSessionHistoryData[];
12
- patientName: string;
13
- sessionId: string;
12
+ patientName?: string;
13
+ sessionId?: string;
14
14
  };
15
15
  declare const searchSessions: ({ sessions, searchCriteria, }: TSearchSessionsRequest) => Promise<TSessionHistoryData[]>;
16
16
  declare const searchSessionsByPatient: ({ sessions, patientName, }: TSearchSessionsByPatientRequest) => Promise<TSessionHistoryData[]>;
@@ -34,13 +34,16 @@ const searchBySessionId = (sessions, sessionId) => {
34
34
  // Combined search function that applies multiple criteria
35
35
  const performSearch = (sessions, searchCriteria) => {
36
36
  let filteredSessions = sessions;
37
+ console.log(sessions, searchCriteria, 'searchCriteria');
37
38
  // Apply patient name filter if provided
38
39
  if (searchCriteria.patientName) {
39
40
  filteredSessions = searchByPatientName(filteredSessions, searchCriteria.patientName);
41
+ console.log(filteredSessions, 'filteredSessions - patientName');
40
42
  }
41
43
  // Apply session ID filter if provided
42
44
  if (searchCriteria.sessionId) {
43
45
  filteredSessions = searchBySessionId(filteredSessions, searchCriteria.sessionId);
46
+ console.log(filteredSessions, 'filteredSessions - sessionId');
44
47
  }
45
48
  // If no search criteria provided, return all sessions
46
49
  if (!searchCriteria.patientName && !searchCriteria.sessionId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eka-care/ekascribe-ts-sdk",
3
- "version": "1.5.50",
3
+ "version": "1.5.52",
4
4
  "main": "dist/index.js",
5
5
  "repository": "git@github.com:eka-care/eka-js-sdk.git",
6
6
  "author": "Sanikagoyal28 <sanikagoyal9@gmail.com>",