@bahmni/services 0.0.1-dev.68 → 0.0.1-dev.69

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.
@@ -352,7 +352,7 @@ declare const _default: {
352
352
  "type": "object",
353
353
  "description": "Extension configuration",
354
354
  "additionalProperties": false,
355
- "required": ["id", "extensionPointId", "type", "translationKey"],
355
+ "required": ["id", "extensionPointId", "type", "requiredPrivilege"],
356
356
  "properties": {
357
357
  "id": {
358
358
  "type": "string",
package/dist/index.js CHANGED
@@ -11748,7 +11748,7 @@ const Jm = /* @__PURE__ */ Fp(Ym), xn = "/bahmni_config/openmrs/apps/clinical/v2
11748
11748
  type: vg,
11749
11749
  additionalProperties: Eg,
11750
11750
  properties: _g
11751
- }, $g = "http://json-schema.org/draft-07/schema#", Rg = "Registration Configuration Schema", Pg = "Schema for validating registration app configuration", Tg = "object", Og = !1, Ag = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } }, extensionPoints: { type: "array", description: "Array of extension point definitions that extensions can attach to", items: { type: "object", required: ["id"], additionalProperties: !1, properties: { id: { type: "string", description: "Unique identifier for the extension point (e.g., 'org.bahmni.registration.navigation')" }, description: { type: "string", description: "Human-readable description of what this extension point is for" } } } }, registrationAppExtensions: { type: "array", description: "Array of app extension configurations for registration", items: { type: "object", description: "Extension configuration", additionalProperties: !1, required: ["id", "extensionPointId", "type", "translationKey"], properties: { id: { type: "string", description: "Unique identifier for the extension" }, extensionPointId: { type: "string", description: "Extension point identifier this extension attaches to" }, type: { type: "string", enum: ["link", "startVisit"], description: "Type of extension (e.g., 'link', 'startVisit')" }, translationKey: { type: "string", description: "Translation key for the extension label" }, url: { type: "string", description: "URL path for the extension" }, shortcutKey: { type: "string", description: "Keyboard shortcut key for the extension" }, icon: { type: "string", description: "Icon class name (e.g., FontAwesome class like 'fa-search')" }, order: { type: "number", description: "Display order of the extension" }, kind: { type: "string", enum: ["primary", "secondary", "tertiary", "ghost", "danger"], description: "Button kind/variant (defaults to 'primary' if not specified)" }, requiredPrivilege: { type: "string", description: "Required privilege to access this extension" } } } } }, Ng = {
11751
+ }, $g = "http://json-schema.org/draft-07/schema#", Rg = "Registration Configuration Schema", Pg = "Schema for validating registration app configuration", Tg = "object", Og = !1, Ag = { id: { type: "string", description: "Unique identifier for the registration configuration" }, contextModel: { type: "array", description: "Array of context model configurations", items: { type: "string" } }, patientSearch: { type: "object", description: "Patient search configuration", additionalProperties: !1, properties: { customAttributes: { type: "array", description: "Array of available search fields", items: { type: "object", additionalProperties: !1, properties: { translationKey: { type: "string", description: "Translation key for the dropdown label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of fields configurations with translation keys to display on table headers", items: { type: "object", additionalProperties: !1, properties: { field: { type: "string", description: "field corresponding to table header" }, translationKey: { type: "string", description: "Translation key for the table header" } } } }, type: { type: "string", enum: ["person", "address", "program", "appointment"], description: "Type of the search field (person, address, program, appointment)" } } } }, appointment: { type: "array", description: "Array of available search fields for appointments", items: { type: "object", additionalProperties: !0, required: ["translationKey", "fields"], properties: { translationKey: { type: "string", description: "Translation key for the field label" }, fields: { type: "array", description: "Array of field names to search against", items: { type: "string" } }, expectedFields: { type: "array", description: "Array of expected fields with optional types", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "The field name (e.g., apptNumber, apptDate)" }, translationKey: { type: "string", description: "Translation key for the field's display label" }, type: { type: "string", description: "Optional field type (e.g., date, string)" } } } }, type: { type: "string", enum: ["appointment"], description: "Type of the search field (appointment)" }, actions: { type: "array", description: "Array of actions allowed on this search field", items: { type: "object", required: ["translationKey", "type", "enabledRule", "onAction"], properties: { translationKey: { type: "string", description: "Translation key for the action button label" }, type: { type: "string", enum: ["changeStatus", "navigate"], description: "Type of action to perform" }, enabledRule: { type: "array", description: "Conditions to enable this action (rules)", items: { type: "object", properties: { type: { type: "string", enum: ["privilegeCheck", "statusCheck", "appDateCheck"], description: "Type of rule to evaluate" }, values: { type: "array", items: { type: "string" }, description: "Values to check against for the rule" } } } }, onAction: { type: "object", description: "What happens when action is triggered", additionalProperties: !0, properties: { status: { type: "string", description: "Status to set (for changeStatus type)" }, navigation: { type: "string", description: "URL path to navigate to (for navigate type)" } } }, onSuccess: { type: "object", description: "Notification or other success response", additionalProperties: !0, properties: { notification: { type: "string", description: "Translation key for success notification message" } } } } } } } } } } }, defaultVisitType: { type: "string", description: "Default visit type for patient registration" }, patientInformation: { type: "object", description: "Patient name related fields configuration", additionalProperties: !0, properties: { defaultIdentifierPrefix: { type: "string", description: "Default prefix for patient identifiers" }, showEnterManually: { type: "boolean" }, showMiddleName: { type: "boolean" }, showLastName: { type: "boolean" }, isFirstNameMandatory: { type: "boolean" }, isMiddleNameMandatory: { type: "boolean" }, isGenderMandatory: { type: "boolean" }, isDateOfBirthMandatory: { type: "boolean" }, isLastNameMandatory: { type: "boolean" }, patientNameDisplayOrder: { type: "array", description: "Order in which patient name fields should be displayed", items: { type: "string" } }, showBirthTime: { type: "boolean" }, showDOBEstimated: { type: "boolean" }, addressHierarchy: { type: "object", description: "Address hierarchy levels to be displayed", additionalProperties: !1, properties: { showAddressFieldsTopDown: { type: "boolean" }, strictAutocompleteFromLevel: { type: "string" }, expectedFields: { type: "array", description: "Array of expected fields with translation keys", items: { type: "object", properties: { addressField: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, additionalPatientInformation: { type: "object", description: "Additional patient information configuration", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, contactInformation: { type: "object", additionalProperties: !0, properties: { translationKey: { type: "string", description: "Translation key for the section title" }, attributes: { type: "array", description: "Array of attribute fields with translation keys", items: { type: "object", required: ["field", "translationKey"], properties: { field: { type: "string", description: "Field name" }, translationKey: { type: "string", description: "Translation key for the field label" } } } } } }, showExtraPatientIdentifiersSection: { type: "boolean", description: "Whether to show extra patient identifiers section" } } }, fieldValidation: { type: "object", description: "Field validation rules with regex patterns and error messages", additionalProperties: !0, patternProperties: { "^.*$": { type: "object", properties: { pattern: { type: "string", description: "Regular expression pattern for field validation" }, errorMessage: { type: "string", description: "Error message to display when validation fails" } } } } }, extensionPoints: { type: "array", description: "Array of extension point definitions that extensions can attach to", items: { type: "object", required: ["id"], additionalProperties: !1, properties: { id: { type: "string", description: "Unique identifier for the extension point (e.g., 'org.bahmni.registration.navigation')" }, description: { type: "string", description: "Human-readable description of what this extension point is for" } } } }, registrationAppExtensions: { type: "array", description: "Array of app extension configurations for registration", items: { type: "object", description: "Extension configuration", additionalProperties: !1, required: ["id", "extensionPointId", "type", "requiredPrivilege"], properties: { id: { type: "string", description: "Unique identifier for the extension" }, extensionPointId: { type: "string", description: "Extension point identifier this extension attaches to" }, type: { type: "string", enum: ["link", "startVisit"], description: "Type of extension (e.g., 'link', 'startVisit')" }, translationKey: { type: "string", description: "Translation key for the extension label" }, url: { type: "string", description: "URL path for the extension" }, shortcutKey: { type: "string", description: "Keyboard shortcut key for the extension" }, icon: { type: "string", description: "Icon class name (e.g., FontAwesome class like 'fa-search')" }, order: { type: "number", description: "Display order of the extension" }, kind: { type: "string", enum: ["primary", "secondary", "tertiary", "ghost", "danger"], description: "Button kind/variant (defaults to 'primary' if not specified)" }, requiredPrivilege: { type: "string", description: "Required privilege to access this extension" } } } } }, Ng = {
11752
11752
  $schema: $g,
11753
11753
  title: Rg,
11754
11754
  description: Pg,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/services",
3
- "version": "0.0.1-dev.68",
3
+ "version": "0.0.1-dev.69",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",