@bahmni/services 0.0.1-dev.70 → 0.0.1-dev.71
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/constants/app.d.ts +0 -2
- package/dist/constants/app.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +1 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +710 -691
- package/dist/observationFormsService/constants.d.ts +4 -0
- package/dist/observationFormsService/constants.d.ts.map +1 -0
- package/dist/observationFormsService/index.d.ts +2 -2
- package/dist/observationFormsService/index.d.ts.map +1 -1
- package/dist/observationFormsService/models.d.ts +18 -0
- package/dist/observationFormsService/models.d.ts.map +1 -1
- package/dist/observationFormsService/observationFormsService.d.ts +7 -1
- package/dist/observationFormsService/observationFormsService.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,GAAI,UAAU,MAAM,WACkB,CAAC;AACrE,eAAO,MAAM,qBAAqB,QACuB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,GAAI,UAAU,MAAM,WACb,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { fetchObservationForms } from './observationFormsService';
|
|
2
|
-
export { type ObservationForm, type FormApiResponse, type ApiNameTranslation, type FormPrivilege, type ApiFormPrivilege, } from './models';
|
|
1
|
+
export { fetchObservationForms, fetchFormMetadata, } from './observationFormsService';
|
|
2
|
+
export { type ObservationForm, type FormApiResponse, type ApiNameTranslation, type FormPrivilege, type ApiFormPrivilege, type FormMetadata, type FormMetadataApiResponse, type FormResource, } from './models';
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,uBAAuB,EAC5B,KAAK,YAAY,GAClB,MAAM,UAAU,CAAC"}
|
|
@@ -23,4 +23,22 @@ export interface FormApiResponse {
|
|
|
23
23
|
privileges: ApiFormPrivilege[];
|
|
24
24
|
nameTranslation: string;
|
|
25
25
|
}
|
|
26
|
+
export interface FormResource {
|
|
27
|
+
uuid: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}
|
|
30
|
+
export interface FormMetadataApiResponse {
|
|
31
|
+
uuid: string;
|
|
32
|
+
name: string;
|
|
33
|
+
version: string;
|
|
34
|
+
published: boolean;
|
|
35
|
+
resources: FormResource[];
|
|
36
|
+
}
|
|
37
|
+
export interface FormMetadata {
|
|
38
|
+
uuid: string;
|
|
39
|
+
name: string;
|
|
40
|
+
version: string;
|
|
41
|
+
published: boolean;
|
|
42
|
+
schema: unknown;
|
|
43
|
+
}
|
|
26
44
|
//# sourceMappingURL=models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/models.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAGD,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAA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EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,YAAY,EAAE,CAAC;CAC3B;AAGD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,OAAO,CAAC;CACjB"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
|
-
import { ObservationForm } from './models';
|
|
1
|
+
import { ObservationForm, FormMetadata } from './models';
|
|
2
2
|
/**
|
|
3
3
|
* Function to fetch and process observation forms
|
|
4
4
|
*/
|
|
5
5
|
export declare const fetchObservationForms: () => Promise<ObservationForm[]>;
|
|
6
|
+
/**
|
|
7
|
+
* Fetches form metadata including the form schema/definition
|
|
8
|
+
* @param formUuid - The UUID of the form to fetch
|
|
9
|
+
* @returns Promise resolving to parsed form metadata
|
|
10
|
+
*/
|
|
11
|
+
export declare const fetchFormMetadata: (formUuid: string) => Promise<FormMetadata>;
|
|
6
12
|
//# sourceMappingURL=observationFormsService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observationFormsService.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/observationFormsService.ts"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"observationFormsService.d.ts","sourceRoot":"","sources":["../../src/observationFormsService/observationFormsService.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,eAAe,EAGf,YAAY,EAEb,MAAM,UAAU,CAAC;AA6DlB;;GAEG;AACH,eAAO,MAAM,qBAAqB,QAAa,OAAO,CAAC,eAAe,EAAE,CAOvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,UAAU,MAAM,KACf,OAAO,CAAC,YAAY,CAwBtB,CAAC"}
|