@bahmni/registration-app 0.0.1-dev.318 → 0.0.1-dev.320

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { av as s, at as t, au as E } from "./index-YTRw6D2t.js";
1
+ import { av as s, at as t, au as E } from "./index-pNCRgyjy.js";
2
2
  export {
3
3
  s as IDENTIFIER_TYPES_QUERY_KEY,
4
4
  t as RegistrationApp,
@@ -159,6 +159,7 @@
159
159
  "NOTIFICATION_UNABLE_TO_GET_CONTACT_DATA": "Unable to get patient contact data",
160
160
  "NOTIFICATION_UNABLE_TO_GET_ADDITIONAL_DATA": "Unable to get patient additional data",
161
161
  "REGISTRATION_PATIENT_SEARCH_APPOINTMENT": "Search by Appointment",
162
+ "REGISTRATION_ACTION_BUTTON_GENERIC_ERROR": "Something went wrong. Please try again.",
162
163
  "SUCCESS": "Success",
163
164
  "VIEWED_REGISTRATION_PATIENT_SEARCH_MESSAGE": "User {{username}} accessed patient search screen in registration app",
164
165
  "YEARS_one": " year",
@@ -159,6 +159,7 @@
159
159
  "NOTIFICATION_UNABLE_TO_GET_CONTACT_DATA": "No se pueden obtener los datos de contacto del paciente",
160
160
  "NOTIFICATION_UNABLE_TO_GET_ADDITIONAL_DATA": "No se pueden obtener los datos adicionales del paciente",
161
161
  "REGISTRATION_PATIENT_SEARCH_APPOINTMENT": "Búsqueda por cita",
162
+ "REGISTRATION_ACTION_BUTTON_GENERIC_ERROR": "Algo salió mal. Por favor, inténtelo de nuevo.",
162
163
  "SUCCESS": "Éxito",
163
164
  "VIEWED_REGISTRATION_PATIENT_SEARCH_MESSAGE": "El usuario {{username}} accedió a la pantalla de búsqueda de pacientes en la aplicación de registro",
164
165
  "YEARS_one": " año",
@@ -1,10 +1,10 @@
1
- import { AppointmentSearchResult, SearchActionConfig, UserPrivilege, PatientSearchResultBundle } from '@bahmni/services';
1
+ import { AppointmentSearchResult, SearchActionConfig, UserPrivilege, PatientSearchResultBundle, Notification } from '@bahmni/services';
2
2
  import { NavigateFunction } from 'react-router-dom';
3
3
  import { PatientSearchViewModel } from './utils';
4
4
  export declare const getAppointmentStatusClassName: (status: string) => string;
5
5
  export declare const updateAppointmentStatusInResults: (appointmentPatientData: AppointmentSearchResult[], responseUuid: string, responseStatus: string) => AppointmentSearchResult[];
6
6
  export declare const handleActionNavigation: (navigationUrl: string, options: Record<string, string>, navigate: NavigateFunction) => void;
7
- export declare const handleActionButtonClick: (action: SearchActionConfig, row: PatientSearchViewModel<AppointmentSearchResult>, patientSearchData: PatientSearchResultBundle, setPatientSearchData: (data: PatientSearchResultBundle) => void, navigate: NavigateFunction) => Promise<void>;
7
+ export declare const handleActionButtonClick: (action: SearchActionConfig, row: PatientSearchViewModel<AppointmentSearchResult>, patientSearchData: PatientSearchResultBundle, setPatientSearchData: (data: PatientSearchResultBundle) => void, navigate: NavigateFunction, addNotification: (notification: Omit<Notification, "id">) => void, t: (key: string) => string) => Promise<void>;
8
8
  export declare const shouldRenderActionButton: (action: SearchActionConfig, userPrivileges: UserPrivilege[], row: PatientSearchViewModel<AppointmentSearchResult>) => boolean;
9
9
  export declare const appointmentServiceValidator: (values: string[] | undefined, excludeValues: string[] | undefined, row: PatientSearchViewModel<AppointmentSearchResult>) => boolean;
10
10
  export declare const privilegeValidator: (userPrivileges: UserPrivilege[]) => (rules: string[]) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"appointmentSearchResultActionHandler.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/appointmentSearchResultActionHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,kBAAkB,EAGlB,aAAa,EAEb,yBAAyB,EAE1B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,6BAA6B,GAAI,QAAQ,MAAM,KAAG,MAkB9D,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAC3C,wBAAwB,uBAAuB,EAAE,EACjD,cAAc,MAAM,EACpB,gBAAgB,MAAM,KACrB,uBAAuB,EAOzB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GACjC,eAAe,MAAM,EACrB,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,EAC/B,UAAU,gBAAgB,SAU3B,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,QAAQ,kBAAkB,EAC1B,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,EACpD,mBAAmB,yBAAyB,EAC5C,sBAAsB,CAAC,IAAI,EAAE,yBAAyB,KAAK,IAAI,EAC/D,UAAU,gBAAgB,kBAsC3B,CAAC;AAQF,eAAO,MAAM,wBAAwB,GACnC,QAAQ,kBAAkB,EAC1B,gBAAgB,aAAa,EAAE,EAC/B,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,KACnD,OAcF,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACtC,QAAQ,MAAM,EAAE,GAAG,SAAS,EAC5B,eAAe,MAAM,EAAE,GAAG,SAAS,EACnC,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,KACnD,OASF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC5B,gBAAgB,aAAa,EAAE,MAAM,OAAO,MAAM,EAAE,YAEpD,CAAC;AAEJ,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAIrD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAkBrD,CAAC"}
1
+ {"version":3,"file":"appointmentSearchResultActionHandler.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/appointmentSearchResultActionHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EAC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J,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAIrD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,MAAM,EAAE,EACf,KAAK,sBAAsB,CAAC,uBAAuB,CAAC,YAkBrD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/index.tsx"],"names":[],"mappings":"AA4CA;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EA6T9B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/pages/patientSearchPage/index.tsx"],"names":[],"mappings":"AAgDA;;;;GAIG;AACH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAgU9B,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/registration-app",
3
- "version": "0.0.1-dev.318",
3
+ "version": "0.0.1-dev.320",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",