@opencrvs/toolkit 1.8.1-rc.b849abb → 1.8.1-rc.b8eea90
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/commons/api/router.d.ts +19 -1
- package/dist/commons/events/ActionConfig.d.ts +13593 -4629
- package/dist/commons/events/ActionDocument.d.ts +536 -0
- package/dist/commons/events/ActionInput.d.ts +26 -0
- package/dist/commons/events/AdvancedSearchConfig.d.ts +34 -34
- package/dist/commons/events/EventConfig.d.ts +7463 -3521
- package/dist/commons/events/EventDocument.d.ts +19 -0
- package/dist/commons/events/EventIndex.d.ts +122 -0
- package/dist/commons/events/FieldConfig.d.ts +1050 -362
- package/dist/commons/events/FieldType.d.ts +3 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +15 -1
- package/dist/commons/events/FieldValue.d.ts +4 -0
- package/dist/commons/events/FormConfig.d.ts +6350 -2138
- package/dist/commons/events/PageConfig.d.ts +2058 -1014
- package/dist/commons/events/WorkqueueConfig.d.ts +97 -8
- package/dist/commons/events/defineConfig.d.ts +640 -10
- package/dist/commons/events/event.d.ts +8 -0
- package/dist/commons/events/field.d.ts +14 -0
- package/dist/commons/events/utils.d.ts +1138 -18
- package/dist/events/index.js +86 -7
- package/package.json +1 -1
@@ -27,8 +27,10 @@ export declare const FieldType: {
|
|
27
27
|
readonly OFFICE: "OFFICE";
|
28
28
|
readonly SIGNATURE: "SIGNATURE";
|
29
29
|
readonly DATA: "DATA";
|
30
|
+
readonly BUTTON: "BUTTON";
|
31
|
+
readonly HTTP: "HTTP";
|
30
32
|
};
|
31
|
-
export declare const fieldTypes: ("ID" | "NAME" | "PHONE" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA")[];
|
33
|
+
export declare const fieldTypes: ("ID" | "NAME" | "PHONE" | "ADDRESS" | "TEXT" | "NUMBER" | "TEXTAREA" | "EMAIL" | "DATE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "PARAGRAPH" | "PAGE_HEADER" | "RADIO_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "COUNTRY" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "HTTP")[];
|
32
34
|
export type FieldType = (typeof fieldTypes)[number];
|
33
35
|
/**
|
34
36
|
* Composite field types are field types that consist of multiple field values.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField } from './FieldConfig';
|
2
|
+
import { AddressField, AdministrativeArea, BulletList, Checkbox, Country, DateField, Divider, Facility, EmailField, FieldConfig, File, FileUploadWithOptions, Location, Office, PageHeader, Paragraph, RadioGroup, SelectField, SignatureField, TextAreaField, TextField, NumberField, DataField, NameField, PhoneField, IdField, DateRangeField, SelectDateRangeField, TimeField, ButtonField, HttpField } from './FieldConfig';
|
3
3
|
import { FieldType } from './FieldType';
|
4
4
|
import { FieldValue, FieldUpdateValueSchema, DateRangeFieldValue, SelectDateRangeValue } from './FieldValue';
|
5
5
|
import { FullDocumentPath } from '../documents';
|
@@ -641,6 +641,20 @@ export declare const isDataFieldType: (field: {
|
|
641
641
|
value: undefined;
|
642
642
|
config: DataField;
|
643
643
|
};
|
644
|
+
export declare const isButtonFieldType: (field: {
|
645
|
+
config: FieldConfig;
|
646
|
+
value: FieldValue;
|
647
|
+
}) => field is {
|
648
|
+
value: undefined;
|
649
|
+
config: ButtonField;
|
650
|
+
};
|
651
|
+
export declare const isHttpFieldType: (field: {
|
652
|
+
config: FieldConfig;
|
653
|
+
value: FieldValue;
|
654
|
+
}) => field is {
|
655
|
+
value: undefined;
|
656
|
+
config: HttpField;
|
657
|
+
};
|
644
658
|
export type NonInteractiveFieldType = Divider | PageHeader | Paragraph | BulletList | DataField;
|
645
659
|
export type InteractiveFieldType = Exclude<FieldConfig, NonInteractiveFieldType>;
|
646
660
|
export declare const isNonInteractiveFieldType: (field: FieldConfig) => field is NonInteractiveFieldType;
|
@@ -39,6 +39,10 @@ export declare const DataFieldValue: z.ZodUndefined;
|
|
39
39
|
export type DataFieldValue = z.infer<typeof DataFieldValue>;
|
40
40
|
export declare const SignatureFieldValue: z.ZodString;
|
41
41
|
export type SignatureFieldValue = z.infer<typeof SignatureFieldValue>;
|
42
|
+
export declare const ButtonFieldValue: z.ZodUndefined;
|
43
|
+
export type ButtonFieldValue = z.infer<typeof ButtonFieldValue>;
|
44
|
+
export declare const HttpFieldValue: z.ZodUndefined;
|
45
|
+
export type HttpFieldValue = z.infer<typeof HttpFieldValue>;
|
42
46
|
export declare const FieldValue: z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
|
43
47
|
start: z.ZodString;
|
44
48
|
end: z.ZodString;
|