@opencrvs/toolkit 1.9.12-rc.eae3bc3 → 1.9.12-rc.eec1bae
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/build.sh +8 -0
- package/dist/application-config/index.js +47 -36
- package/dist/cli.d.ts +2 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +2422 -0
- package/dist/commons/api/router.d.ts +320 -108
- package/dist/commons/application-config/index.d.ts +7 -12
- package/dist/commons/conditionals/conditionals.d.ts +8 -8
- package/dist/commons/events/ActionDocument.d.ts +196 -196
- package/dist/commons/events/ActionInput.d.ts +113 -113
- package/dist/commons/events/AdvancedSearchConfig.d.ts +16 -10
- package/dist/commons/events/AuditLog.d.ts +345 -163
- package/dist/commons/events/CompositeFieldValue.d.ts +4 -4
- package/dist/commons/events/CountryConfigQueryInput.d.ts +331 -60
- package/dist/commons/events/Draft.d.ts +13 -13
- package/dist/commons/events/DynamicFieldValue.d.ts +37 -19
- package/dist/commons/events/EventConfig.d.ts +1 -1
- package/dist/commons/events/EventDocument.d.ts +80 -80
- package/dist/commons/events/EventIndex.d.ts +20 -12
- package/dist/commons/events/EventInput.d.ts +1 -1
- package/dist/commons/events/EventMetadata.d.ts +18 -18
- package/dist/commons/events/FieldConfig.d.ts +267 -47
- package/dist/commons/events/FieldType.d.ts +2 -1
- package/dist/commons/events/FieldTypeMapping.d.ts +96 -70
- package/dist/commons/events/FieldValue.d.ts +54 -26
- package/dist/commons/events/PlainDate.d.ts +1 -1
- package/dist/commons/events/WorkqueueColumnConfig.d.ts +16 -16
- package/dist/commons/events/WorkqueueConfig.d.ts +340 -96
- package/dist/commons/events/defineConfig.d.ts +0 -4
- package/dist/commons/events/locations.d.ts +4 -4
- package/dist/commons/events/scopes.d.ts +3 -2
- package/dist/commons/events/state/utils.d.ts +2 -2
- package/dist/commons/events/test.utils.d.ts +2 -2
- package/dist/commons/events/utils.d.ts +4 -176
- package/dist/commons/notification/UserNotifications.d.ts +6 -1
- package/dist/conditionals/index.js +74 -359
- package/dist/events/index.js +1197 -1260
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts +3 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/add-birth-certificate-issuance-flag.js +405 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts +2 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-config-files-to-ts.js +753 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts +3 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.d.ts.map +1 -0
- package/dist/migrations/v2.0/convert-paragraph-to-heading.js +159 -0
- package/dist/migrations/v2.0/index.d.ts +7 -0
- package/dist/migrations/v2.0/index.d.ts.map +1 -0
- package/dist/migrations/v2.0/index.js +2361 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts +3 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.d.ts.map +1 -0
- package/dist/migrations/v2.0/make-built-in-validate-actions-custom.js +344 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-scopes.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-scopes.js +281 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts +3 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/migrate-validated-workqueue-status-to-flag.js +268 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts +3 -0
- package/dist/migrations/v2.0/remove-delete-actions.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-delete-actions.js +157 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts +3 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-deprecated-imports.js +97 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts +3 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-pending-certification-flag.js +110 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts +3 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.d.ts.map +1 -0
- package/dist/migrations/v2.0/remove-review-from-register-action.js +164 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts +3 -0
- package/dist/migrations/v2.0/rename-api-paths.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-api-paths.js +188 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts +3 -0
- package/dist/migrations/v2.0/rename-location-parent-id.d.ts.map +1 -0
- package/dist/migrations/v2.0/rename-location-parent-id.js +181 -0
- package/dist/notification/index.js +1001 -1128
- package/dist/scopes/index.d.ts +389 -152
- package/dist/scopes/index.js +128 -322
- package/opencrvs-toolkit-1.9.12-rc.eec1bae.tgz +0 -0
- package/package.json +11 -7
- package/tsconfig.tsbuildinfo +1 -1
- package/opencrvs-toolkit-1.9.12-rc.eae3bc3.tgz +0 -0
|
@@ -144,8 +144,8 @@ export declare const TextField: z.ZodObject<{
|
|
|
144
144
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
145
145
|
$userField: z.ZodEnum<{
|
|
146
146
|
id: "id";
|
|
147
|
-
role: "role";
|
|
148
147
|
name: "name";
|
|
148
|
+
role: "role";
|
|
149
149
|
primaryOfficeId: "primaryOfficeId";
|
|
150
150
|
firstname: "firstname";
|
|
151
151
|
surname: "surname";
|
|
@@ -440,7 +440,7 @@ declare const DateField: z.ZodObject<{
|
|
|
440
440
|
type: z.ZodLiteral<"DATE">;
|
|
441
441
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
442
442
|
$$now: z.ZodLiteral<true>;
|
|
443
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>>;
|
|
443
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>>;
|
|
444
444
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
445
445
|
notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
446
446
|
}, z.core.$strip>>;
|
|
@@ -590,9 +590,9 @@ declare const DateRangeField: z.ZodObject<{
|
|
|
590
590
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
591
591
|
type: z.ZodLiteral<"DATE_RANGE">;
|
|
592
592
|
defaultValue: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
593
|
-
start: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
594
|
-
end: z.core.$ZodBranded<z.ZodString, "PlainDate">;
|
|
595
|
-
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate">]>>;
|
|
593
|
+
start: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
594
|
+
end: z.core.$ZodBranded<z.ZodString, "PlainDate", "out">;
|
|
595
|
+
}, z.core.$strip>, z.core.$ZodBranded<z.ZodString, "PlainDate", "out">]>>;
|
|
596
596
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
597
597
|
notice: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
598
598
|
}, z.core.$strip>>;
|
|
@@ -930,7 +930,7 @@ declare const File: z.ZodObject<{
|
|
|
930
930
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
931
931
|
type: z.ZodLiteral<"FILE">;
|
|
932
932
|
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
933
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
933
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
934
934
|
originalFilename: z.ZodString;
|
|
935
935
|
type: z.ZodString;
|
|
936
936
|
}, z.core.$strip>>;
|
|
@@ -1349,8 +1349,8 @@ declare const NameField: z.ZodObject<{
|
|
|
1349
1349
|
firstname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1350
1350
|
$userField: z.ZodEnum<{
|
|
1351
1351
|
id: "id";
|
|
1352
|
-
role: "role";
|
|
1353
1352
|
name: "name";
|
|
1353
|
+
role: "role";
|
|
1354
1354
|
primaryOfficeId: "primaryOfficeId";
|
|
1355
1355
|
firstname: "firstname";
|
|
1356
1356
|
surname: "surname";
|
|
@@ -1366,8 +1366,8 @@ declare const NameField: z.ZodObject<{
|
|
|
1366
1366
|
middlename: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1367
1367
|
$userField: z.ZodEnum<{
|
|
1368
1368
|
id: "id";
|
|
1369
|
-
role: "role";
|
|
1370
1369
|
name: "name";
|
|
1370
|
+
role: "role";
|
|
1371
1371
|
primaryOfficeId: "primaryOfficeId";
|
|
1372
1372
|
firstname: "firstname";
|
|
1373
1373
|
surname: "surname";
|
|
@@ -1383,8 +1383,8 @@ declare const NameField: z.ZodObject<{
|
|
|
1383
1383
|
surname: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1384
1384
|
$userField: z.ZodEnum<{
|
|
1385
1385
|
id: "id";
|
|
1386
|
-
role: "role";
|
|
1387
1386
|
name: "name";
|
|
1387
|
+
role: "role";
|
|
1388
1388
|
primaryOfficeId: "primaryOfficeId";
|
|
1389
1389
|
firstname: "firstname";
|
|
1390
1390
|
surname: "surname";
|
|
@@ -1663,8 +1663,8 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1663
1663
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1664
1664
|
$userField: z.ZodEnum<{
|
|
1665
1665
|
id: "id";
|
|
1666
|
-
role: "role";
|
|
1667
1666
|
name: "name";
|
|
1667
|
+
role: "role";
|
|
1668
1668
|
primaryOfficeId: "primaryOfficeId";
|
|
1669
1669
|
firstname: "firstname";
|
|
1670
1670
|
surname: "surname";
|
|
@@ -1689,26 +1689,46 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1689
1689
|
}>;
|
|
1690
1690
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
1691
1691
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
1692
|
-
all: "all";
|
|
1693
1692
|
administrativeArea: "administrativeArea";
|
|
1694
1693
|
location: "location";
|
|
1694
|
+
all: "all";
|
|
1695
1695
|
}>, z.ZodObject<{
|
|
1696
1696
|
$scope: z.ZodEnum<{
|
|
1697
|
+
"record.search": "record.search";
|
|
1697
1698
|
"record.create": "record.create";
|
|
1698
1699
|
"record.read": "record.read";
|
|
1699
1700
|
"record.declare": "record.declare";
|
|
1700
1701
|
"record.notify": "record.notify";
|
|
1701
|
-
"record.register": "record.register";
|
|
1702
|
-
"record.unassign-others": "record.unassign-others";
|
|
1703
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
1704
|
-
"record.search": "record.search";
|
|
1705
1702
|
"record.edit": "record.edit";
|
|
1706
1703
|
"record.reject": "record.reject";
|
|
1707
1704
|
"record.archive": "record.archive";
|
|
1705
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
1706
|
+
"record.register": "record.register";
|
|
1708
1707
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
1709
1708
|
"record.request-correction": "record.request-correction";
|
|
1710
1709
|
"record.correct": "record.correct";
|
|
1710
|
+
"record.unassign-others": "record.unassign-others";
|
|
1711
1711
|
"record.custom-action": "record.custom-action";
|
|
1712
|
+
bypassratelimit: "bypassratelimit";
|
|
1713
|
+
"record.reindex": "record.reindex";
|
|
1714
|
+
"user.data-seeding": "user.data-seeding";
|
|
1715
|
+
"integration.create": "integration.create";
|
|
1716
|
+
"record.import": "record.import";
|
|
1717
|
+
"config.update-all": "config.update-all";
|
|
1718
|
+
"attachment.upload": "attachment.upload";
|
|
1719
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
1720
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
1721
|
+
"performance.read": "performance.read";
|
|
1722
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
1723
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
1724
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
1725
|
+
"record.reject-registration": "record.reject-registration";
|
|
1726
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
1727
|
+
"user.read": "user.read";
|
|
1728
|
+
"user.create": "user.create";
|
|
1729
|
+
"user.edit": "user.edit";
|
|
1730
|
+
workqueue: "workqueue";
|
|
1731
|
+
"dashboard.view": "dashboard.view";
|
|
1712
1732
|
}>;
|
|
1713
1733
|
$option: z.ZodEnum<{
|
|
1714
1734
|
event: "event";
|
|
@@ -1717,6 +1737,8 @@ declare const AdministrativeAreaField: z.ZodObject<{
|
|
|
1717
1737
|
declaredBy: "declaredBy";
|
|
1718
1738
|
registeredIn: "registeredIn";
|
|
1719
1739
|
registeredBy: "registeredBy";
|
|
1740
|
+
accessLevel: "accessLevel";
|
|
1741
|
+
ids: "ids";
|
|
1720
1742
|
}>;
|
|
1721
1743
|
}, z.core.$strip>]>;
|
|
1722
1744
|
}, z.core.$strip>>;
|
|
@@ -1767,8 +1789,8 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1767
1789
|
defaultValue: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
1768
1790
|
$userField: z.ZodEnum<{
|
|
1769
1791
|
id: "id";
|
|
1770
|
-
role: "role";
|
|
1771
1792
|
name: "name";
|
|
1793
|
+
role: "role";
|
|
1772
1794
|
primaryOfficeId: "primaryOfficeId";
|
|
1773
1795
|
firstname: "firstname";
|
|
1774
1796
|
surname: "surname";
|
|
@@ -1785,26 +1807,46 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1785
1807
|
locationTypes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1786
1808
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
1787
1809
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
1788
|
-
all: "all";
|
|
1789
1810
|
administrativeArea: "administrativeArea";
|
|
1790
1811
|
location: "location";
|
|
1812
|
+
all: "all";
|
|
1791
1813
|
}>, z.ZodObject<{
|
|
1792
1814
|
$scope: z.ZodEnum<{
|
|
1815
|
+
"record.search": "record.search";
|
|
1793
1816
|
"record.create": "record.create";
|
|
1794
1817
|
"record.read": "record.read";
|
|
1795
1818
|
"record.declare": "record.declare";
|
|
1796
1819
|
"record.notify": "record.notify";
|
|
1797
|
-
"record.register": "record.register";
|
|
1798
|
-
"record.unassign-others": "record.unassign-others";
|
|
1799
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
1800
|
-
"record.search": "record.search";
|
|
1801
1820
|
"record.edit": "record.edit";
|
|
1802
1821
|
"record.reject": "record.reject";
|
|
1803
1822
|
"record.archive": "record.archive";
|
|
1823
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
1824
|
+
"record.register": "record.register";
|
|
1804
1825
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
1805
1826
|
"record.request-correction": "record.request-correction";
|
|
1806
1827
|
"record.correct": "record.correct";
|
|
1828
|
+
"record.unassign-others": "record.unassign-others";
|
|
1807
1829
|
"record.custom-action": "record.custom-action";
|
|
1830
|
+
bypassratelimit: "bypassratelimit";
|
|
1831
|
+
"record.reindex": "record.reindex";
|
|
1832
|
+
"user.data-seeding": "user.data-seeding";
|
|
1833
|
+
"integration.create": "integration.create";
|
|
1834
|
+
"record.import": "record.import";
|
|
1835
|
+
"config.update-all": "config.update-all";
|
|
1836
|
+
"attachment.upload": "attachment.upload";
|
|
1837
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
1838
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
1839
|
+
"performance.read": "performance.read";
|
|
1840
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
1841
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
1842
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
1843
|
+
"record.reject-registration": "record.reject-registration";
|
|
1844
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
1845
|
+
"user.read": "user.read";
|
|
1846
|
+
"user.create": "user.create";
|
|
1847
|
+
"user.edit": "user.edit";
|
|
1848
|
+
workqueue: "workqueue";
|
|
1849
|
+
"dashboard.view": "dashboard.view";
|
|
1808
1850
|
}>;
|
|
1809
1851
|
$option: z.ZodEnum<{
|
|
1810
1852
|
event: "event";
|
|
@@ -1813,6 +1855,8 @@ declare const LocationInput: z.ZodObject<{
|
|
|
1813
1855
|
declaredBy: "declaredBy";
|
|
1814
1856
|
registeredIn: "registeredIn";
|
|
1815
1857
|
registeredBy: "registeredBy";
|
|
1858
|
+
accessLevel: "accessLevel";
|
|
1859
|
+
ids: "ids";
|
|
1816
1860
|
}>;
|
|
1817
1861
|
}, z.core.$strip>]>;
|
|
1818
1862
|
}, z.core.$strip>>;
|
|
@@ -1872,7 +1916,7 @@ declare const FileUploadWithOptions: z.ZodObject<{
|
|
|
1872
1916
|
}, z.core.$strip>], "type">>>>;
|
|
1873
1917
|
}, z.core.$strip>>;
|
|
1874
1918
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1875
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
1919
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
1876
1920
|
originalFilename: z.ZodString;
|
|
1877
1921
|
type: z.ZodString;
|
|
1878
1922
|
option: z.ZodString;
|
|
@@ -1946,26 +1990,46 @@ declare const Facility: z.ZodObject<{
|
|
|
1946
1990
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
1947
1991
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
1948
1992
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
1949
|
-
all: "all";
|
|
1950
1993
|
administrativeArea: "administrativeArea";
|
|
1951
1994
|
location: "location";
|
|
1995
|
+
all: "all";
|
|
1952
1996
|
}>, z.ZodObject<{
|
|
1953
1997
|
$scope: z.ZodEnum<{
|
|
1998
|
+
"record.search": "record.search";
|
|
1954
1999
|
"record.create": "record.create";
|
|
1955
2000
|
"record.read": "record.read";
|
|
1956
2001
|
"record.declare": "record.declare";
|
|
1957
2002
|
"record.notify": "record.notify";
|
|
1958
|
-
"record.register": "record.register";
|
|
1959
|
-
"record.unassign-others": "record.unassign-others";
|
|
1960
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
1961
|
-
"record.search": "record.search";
|
|
1962
2003
|
"record.edit": "record.edit";
|
|
1963
2004
|
"record.reject": "record.reject";
|
|
1964
2005
|
"record.archive": "record.archive";
|
|
2006
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
2007
|
+
"record.register": "record.register";
|
|
1965
2008
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
1966
2009
|
"record.request-correction": "record.request-correction";
|
|
1967
2010
|
"record.correct": "record.correct";
|
|
2011
|
+
"record.unassign-others": "record.unassign-others";
|
|
1968
2012
|
"record.custom-action": "record.custom-action";
|
|
2013
|
+
bypassratelimit: "bypassratelimit";
|
|
2014
|
+
"record.reindex": "record.reindex";
|
|
2015
|
+
"user.data-seeding": "user.data-seeding";
|
|
2016
|
+
"integration.create": "integration.create";
|
|
2017
|
+
"record.import": "record.import";
|
|
2018
|
+
"config.update-all": "config.update-all";
|
|
2019
|
+
"attachment.upload": "attachment.upload";
|
|
2020
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
2021
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
2022
|
+
"performance.read": "performance.read";
|
|
2023
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
2024
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
2025
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
2026
|
+
"record.reject-registration": "record.reject-registration";
|
|
2027
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
2028
|
+
"user.read": "user.read";
|
|
2029
|
+
"user.create": "user.create";
|
|
2030
|
+
"user.edit": "user.edit";
|
|
2031
|
+
workqueue: "workqueue";
|
|
2032
|
+
"dashboard.view": "dashboard.view";
|
|
1969
2033
|
}>;
|
|
1970
2034
|
$option: z.ZodEnum<{
|
|
1971
2035
|
event: "event";
|
|
@@ -1974,6 +2038,8 @@ declare const Facility: z.ZodObject<{
|
|
|
1974
2038
|
declaredBy: "declaredBy";
|
|
1975
2039
|
registeredIn: "registeredIn";
|
|
1976
2040
|
registeredBy: "registeredBy";
|
|
2041
|
+
accessLevel: "accessLevel";
|
|
2042
|
+
ids: "ids";
|
|
1977
2043
|
}>;
|
|
1978
2044
|
}, z.core.$strip>]>;
|
|
1979
2045
|
}, z.core.$strip>>;
|
|
@@ -2028,26 +2094,46 @@ declare const Office: z.ZodObject<{
|
|
|
2028
2094
|
configuration: z.ZodOptional<z.ZodObject<{
|
|
2029
2095
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
2030
2096
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
2031
|
-
all: "all";
|
|
2032
2097
|
administrativeArea: "administrativeArea";
|
|
2033
2098
|
location: "location";
|
|
2099
|
+
all: "all";
|
|
2034
2100
|
}>, z.ZodObject<{
|
|
2035
2101
|
$scope: z.ZodEnum<{
|
|
2102
|
+
"record.search": "record.search";
|
|
2036
2103
|
"record.create": "record.create";
|
|
2037
2104
|
"record.read": "record.read";
|
|
2038
2105
|
"record.declare": "record.declare";
|
|
2039
2106
|
"record.notify": "record.notify";
|
|
2040
|
-
"record.register": "record.register";
|
|
2041
|
-
"record.unassign-others": "record.unassign-others";
|
|
2042
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
2043
|
-
"record.search": "record.search";
|
|
2044
2107
|
"record.edit": "record.edit";
|
|
2045
2108
|
"record.reject": "record.reject";
|
|
2046
2109
|
"record.archive": "record.archive";
|
|
2110
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
2111
|
+
"record.register": "record.register";
|
|
2047
2112
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
2048
2113
|
"record.request-correction": "record.request-correction";
|
|
2049
2114
|
"record.correct": "record.correct";
|
|
2115
|
+
"record.unassign-others": "record.unassign-others";
|
|
2050
2116
|
"record.custom-action": "record.custom-action";
|
|
2117
|
+
bypassratelimit: "bypassratelimit";
|
|
2118
|
+
"record.reindex": "record.reindex";
|
|
2119
|
+
"user.data-seeding": "user.data-seeding";
|
|
2120
|
+
"integration.create": "integration.create";
|
|
2121
|
+
"record.import": "record.import";
|
|
2122
|
+
"config.update-all": "config.update-all";
|
|
2123
|
+
"attachment.upload": "attachment.upload";
|
|
2124
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
2125
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
2126
|
+
"performance.read": "performance.read";
|
|
2127
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
2128
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
2129
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
2130
|
+
"record.reject-registration": "record.reject-registration";
|
|
2131
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
2132
|
+
"user.read": "user.read";
|
|
2133
|
+
"user.create": "user.create";
|
|
2134
|
+
"user.edit": "user.edit";
|
|
2135
|
+
workqueue: "workqueue";
|
|
2136
|
+
"dashboard.view": "dashboard.view";
|
|
2051
2137
|
}>;
|
|
2052
2138
|
$option: z.ZodEnum<{
|
|
2053
2139
|
event: "event";
|
|
@@ -2056,6 +2142,8 @@ declare const Office: z.ZodObject<{
|
|
|
2056
2142
|
declaredBy: "declaredBy";
|
|
2057
2143
|
registeredIn: "registeredIn";
|
|
2058
2144
|
registeredBy: "registeredBy";
|
|
2145
|
+
accessLevel: "accessLevel";
|
|
2146
|
+
ids: "ids";
|
|
2059
2147
|
}>;
|
|
2060
2148
|
}, z.core.$strip>]>;
|
|
2061
2149
|
}, z.core.$strip>>;
|
|
@@ -2066,11 +2154,11 @@ export declare const DefaultAddressFieldValue: z.ZodObject<{
|
|
|
2066
2154
|
country: z.ZodString;
|
|
2067
2155
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2068
2156
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
2069
|
-
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID">, z.ZodObject<{
|
|
2157
|
+
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
|
|
2070
2158
|
$userField: z.ZodEnum<{
|
|
2071
2159
|
id: "id";
|
|
2072
|
-
role: "role";
|
|
2073
2160
|
name: "name";
|
|
2161
|
+
role: "role";
|
|
2074
2162
|
primaryOfficeId: "primaryOfficeId";
|
|
2075
2163
|
firstname: "firstname";
|
|
2076
2164
|
surname: "surname";
|
|
@@ -2197,26 +2285,46 @@ declare const Address: z.ZodObject<{
|
|
|
2197
2285
|
}, z.core.$strip>>>;
|
|
2198
2286
|
allowedLocations: z.ZodOptional<z.ZodObject<{
|
|
2199
2287
|
$jurisdiction: z.ZodUnion<[z.ZodEnum<{
|
|
2200
|
-
all: "all";
|
|
2201
2288
|
administrativeArea: "administrativeArea";
|
|
2202
2289
|
location: "location";
|
|
2290
|
+
all: "all";
|
|
2203
2291
|
}>, z.ZodObject<{
|
|
2204
2292
|
$scope: z.ZodEnum<{
|
|
2293
|
+
"record.search": "record.search";
|
|
2205
2294
|
"record.create": "record.create";
|
|
2206
2295
|
"record.read": "record.read";
|
|
2207
2296
|
"record.declare": "record.declare";
|
|
2208
2297
|
"record.notify": "record.notify";
|
|
2209
|
-
"record.register": "record.register";
|
|
2210
|
-
"record.unassign-others": "record.unassign-others";
|
|
2211
|
-
"record.review-duplicates": "record.review-duplicates";
|
|
2212
|
-
"record.search": "record.search";
|
|
2213
2298
|
"record.edit": "record.edit";
|
|
2214
2299
|
"record.reject": "record.reject";
|
|
2215
2300
|
"record.archive": "record.archive";
|
|
2301
|
+
"record.review-duplicates": "record.review-duplicates";
|
|
2302
|
+
"record.register": "record.register";
|
|
2216
2303
|
"record.print-certified-copies": "record.print-certified-copies";
|
|
2217
2304
|
"record.request-correction": "record.request-correction";
|
|
2218
2305
|
"record.correct": "record.correct";
|
|
2306
|
+
"record.unassign-others": "record.unassign-others";
|
|
2219
2307
|
"record.custom-action": "record.custom-action";
|
|
2308
|
+
bypassratelimit: "bypassratelimit";
|
|
2309
|
+
"record.reindex": "record.reindex";
|
|
2310
|
+
"user.data-seeding": "user.data-seeding";
|
|
2311
|
+
"integration.create": "integration.create";
|
|
2312
|
+
"record.import": "record.import";
|
|
2313
|
+
"config.update-all": "config.update-all";
|
|
2314
|
+
"attachment.upload": "attachment.upload";
|
|
2315
|
+
"profile.electronic-signature": "profile.electronic-signature";
|
|
2316
|
+
"user.read-only-my-audit": "user.read-only-my-audit";
|
|
2317
|
+
"performance.read": "performance.read";
|
|
2318
|
+
"performance.read-dashboards": "performance.read-dashboards";
|
|
2319
|
+
"performance.vital-statistics-export": "performance.vital-statistics-export";
|
|
2320
|
+
"record.confirm-registration": "record.confirm-registration";
|
|
2321
|
+
"record.reject-registration": "record.reject-registration";
|
|
2322
|
+
"organisation.read-locations": "organisation.read-locations";
|
|
2323
|
+
"user.read": "user.read";
|
|
2324
|
+
"user.create": "user.create";
|
|
2325
|
+
"user.edit": "user.edit";
|
|
2326
|
+
workqueue: "workqueue";
|
|
2327
|
+
"dashboard.view": "dashboard.view";
|
|
2220
2328
|
}>;
|
|
2221
2329
|
$option: z.ZodEnum<{
|
|
2222
2330
|
event: "event";
|
|
@@ -2225,6 +2333,8 @@ declare const Address: z.ZodObject<{
|
|
|
2225
2333
|
declaredBy: "declaredBy";
|
|
2226
2334
|
registeredIn: "registeredIn";
|
|
2227
2335
|
registeredBy: "registeredBy";
|
|
2336
|
+
accessLevel: "accessLevel";
|
|
2337
|
+
ids: "ids";
|
|
2228
2338
|
}>;
|
|
2229
2339
|
}, z.core.$strip>]>;
|
|
2230
2340
|
}, z.core.$strip>>;
|
|
@@ -2233,11 +2343,11 @@ declare const Address: z.ZodObject<{
|
|
|
2233
2343
|
country: z.ZodString;
|
|
2234
2344
|
streetLevelDetails: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
2235
2345
|
addressType: z.ZodLiteral<"DOMESTIC">;
|
|
2236
|
-
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID">, z.ZodObject<{
|
|
2346
|
+
administrativeArea: z.ZodOptional<z.ZodUnion<readonly [z.core.$ZodBranded<z.ZodUUID, "UUID", "out">, z.ZodObject<{
|
|
2237
2347
|
$userField: z.ZodEnum<{
|
|
2238
2348
|
id: "id";
|
|
2239
|
-
role: "role";
|
|
2240
2349
|
name: "name";
|
|
2350
|
+
role: "role";
|
|
2241
2351
|
primaryOfficeId: "primaryOfficeId";
|
|
2242
2352
|
firstname: "firstname";
|
|
2243
2353
|
surname: "surname";
|
|
@@ -2328,6 +2438,35 @@ declare const DataField: z.ZodObject<{
|
|
|
2328
2438
|
}, z.core.$strip>;
|
|
2329
2439
|
}, z.core.$strip>;
|
|
2330
2440
|
export type DataField = z.infer<typeof DataField>;
|
|
2441
|
+
declare const ButtonConfiguration: z.ZodObject<{
|
|
2442
|
+
icon: z.ZodOptional<z.ZodString>;
|
|
2443
|
+
loading: z.ZodOptional<z.ZodBoolean>;
|
|
2444
|
+
buttonSize: z.ZodOptional<z.ZodEnum<{
|
|
2445
|
+
small: "small";
|
|
2446
|
+
medium: "medium";
|
|
2447
|
+
large: "large";
|
|
2448
|
+
}>>;
|
|
2449
|
+
buttonType: z.ZodOptional<z.ZodEnum<{
|
|
2450
|
+
primary: "primary";
|
|
2451
|
+
secondary: "secondary";
|
|
2452
|
+
tertiary: "tertiary";
|
|
2453
|
+
positive: "positive";
|
|
2454
|
+
negative: "negative";
|
|
2455
|
+
secondaryNegative: "secondaryNegative";
|
|
2456
|
+
icon: "icon";
|
|
2457
|
+
iconPrimary: "iconPrimary";
|
|
2458
|
+
}>>;
|
|
2459
|
+
textColor: z.ZodOptional<z.ZodEnum<{
|
|
2460
|
+
primary: "primary";
|
|
2461
|
+
copy: "copy";
|
|
2462
|
+
}>>;
|
|
2463
|
+
textVariant: z.ZodOptional<z.ZodEnum<{
|
|
2464
|
+
reg14: "reg14";
|
|
2465
|
+
bold14: "bold14";
|
|
2466
|
+
}>>;
|
|
2467
|
+
text: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2468
|
+
}, z.core.$strip>;
|
|
2469
|
+
export type ButtonConfiguration = z.infer<typeof ButtonConfiguration>;
|
|
2331
2470
|
declare const ButtonField: z.ZodObject<{
|
|
2332
2471
|
id: z.ZodString;
|
|
2333
2472
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
@@ -2373,6 +2512,29 @@ declare const ButtonField: z.ZodObject<{
|
|
|
2373
2512
|
configuration: z.ZodObject<{
|
|
2374
2513
|
icon: z.ZodOptional<z.ZodString>;
|
|
2375
2514
|
loading: z.ZodOptional<z.ZodBoolean>;
|
|
2515
|
+
buttonSize: z.ZodOptional<z.ZodEnum<{
|
|
2516
|
+
small: "small";
|
|
2517
|
+
medium: "medium";
|
|
2518
|
+
large: "large";
|
|
2519
|
+
}>>;
|
|
2520
|
+
buttonType: z.ZodOptional<z.ZodEnum<{
|
|
2521
|
+
primary: "primary";
|
|
2522
|
+
secondary: "secondary";
|
|
2523
|
+
tertiary: "tertiary";
|
|
2524
|
+
positive: "positive";
|
|
2525
|
+
negative: "negative";
|
|
2526
|
+
secondaryNegative: "secondaryNegative";
|
|
2527
|
+
icon: "icon";
|
|
2528
|
+
iconPrimary: "iconPrimary";
|
|
2529
|
+
}>>;
|
|
2530
|
+
textColor: z.ZodOptional<z.ZodEnum<{
|
|
2531
|
+
primary: "primary";
|
|
2532
|
+
copy: "copy";
|
|
2533
|
+
}>>;
|
|
2534
|
+
textVariant: z.ZodOptional<z.ZodEnum<{
|
|
2535
|
+
reg14: "reg14";
|
|
2536
|
+
bold14: "bold14";
|
|
2537
|
+
}>>;
|
|
2376
2538
|
text: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2377
2539
|
}, z.core.$strip>;
|
|
2378
2540
|
}, z.core.$strip>;
|
|
@@ -2504,6 +2666,60 @@ declare const HttpField: z.ZodObject<{
|
|
|
2504
2666
|
}, z.core.$strip>;
|
|
2505
2667
|
}, z.core.$strip>;
|
|
2506
2668
|
export type HttpField = z.infer<typeof HttpField>;
|
|
2669
|
+
declare const AutocompleteField: z.ZodObject<{
|
|
2670
|
+
id: z.ZodString;
|
|
2671
|
+
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2672
|
+
parent: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2673
|
+
$$field: z.ZodString;
|
|
2674
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2675
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2676
|
+
$$field: z.ZodString;
|
|
2677
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2678
|
+
}, z.core.$strip>>]>>;
|
|
2679
|
+
required: z.ZodOptional<z.ZodDefault<z.ZodUnion<readonly [z.ZodBoolean, z.ZodObject<{
|
|
2680
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2681
|
+
}, z.core.$strip>]>>>;
|
|
2682
|
+
conditionals: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2683
|
+
type: z.ZodLiteral<"SHOW">;
|
|
2684
|
+
conditional: z.ZodAny;
|
|
2685
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2686
|
+
type: z.ZodLiteral<"ENABLE">;
|
|
2687
|
+
conditional: z.ZodAny;
|
|
2688
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2689
|
+
type: z.ZodLiteral<"DISPLAY_ON_REVIEW">;
|
|
2690
|
+
conditional: z.ZodAny;
|
|
2691
|
+
}, z.core.$strip>], "type">>>>;
|
|
2692
|
+
secured: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2693
|
+
placeholder: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2694
|
+
validation: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
2695
|
+
validator: z.ZodAny;
|
|
2696
|
+
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2697
|
+
}, z.core.$strip>>>>;
|
|
2698
|
+
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2699
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2700
|
+
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2701
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2702
|
+
$$field: z.ZodString;
|
|
2703
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2704
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2705
|
+
$$field: z.ZodString;
|
|
2706
|
+
$$subfield: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString>>>;
|
|
2707
|
+
}, z.core.$strip>>]>>;
|
|
2708
|
+
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2709
|
+
type: z.ZodLiteral<"AUTOCOMPLETE">;
|
|
2710
|
+
configuration: z.ZodObject<{
|
|
2711
|
+
url: z.ZodOptional<z.ZodString>;
|
|
2712
|
+
method: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
2713
|
+
GET: "GET";
|
|
2714
|
+
POST: "POST";
|
|
2715
|
+
}>>>;
|
|
2716
|
+
defaultOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
2717
|
+
label: z.ZodString;
|
|
2718
|
+
value: z.ZodString;
|
|
2719
|
+
}, z.core.$strip>>>;
|
|
2720
|
+
}, z.core.$strip>;
|
|
2721
|
+
}, z.core.$strip>;
|
|
2722
|
+
export type AutocompleteField = z.infer<typeof AutocompleteField>;
|
|
2507
2723
|
declare const SearchField: z.ZodObject<{
|
|
2508
2724
|
id: z.ZodString;
|
|
2509
2725
|
label: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
@@ -2956,7 +3172,7 @@ declare const CustomField: z.ZodObject<{
|
|
|
2956
3172
|
}, z.core.$strip>>]>>;
|
|
2957
3173
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2958
3174
|
type: z.ZodLiteral<"CUSTOM">;
|
|
2959
|
-
defaultValue: z.ZodOptional<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue">>;
|
|
3175
|
+
defaultValue: z.ZodOptional<z.core.$ZodBranded<z.ZodUnknown, "CustomFieldValue", "out">>;
|
|
2960
3176
|
src: z.ZodString;
|
|
2961
3177
|
configuration: z.ZodOptional<z.ZodUnknown>;
|
|
2962
3178
|
}, z.core.$strip>;
|
|
@@ -2991,7 +3207,6 @@ declare const LoaderField: z.ZodObject<{
|
|
|
2991
3207
|
message: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
2992
3208
|
}, z.core.$strip>>>>;
|
|
2993
3209
|
helperText: z.ZodOptional<z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>>;
|
|
2994
|
-
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2995
3210
|
uncorrectable: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
2996
3211
|
value: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2997
3212
|
$$field: z.ZodString;
|
|
@@ -3002,6 +3217,11 @@ declare const LoaderField: z.ZodObject<{
|
|
|
3002
3217
|
}, z.core.$strip>>]>>;
|
|
3003
3218
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3004
3219
|
type: z.ZodLiteral<"LOADER">;
|
|
3220
|
+
variant: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
|
|
3221
|
+
default: "default";
|
|
3222
|
+
highlighted: "highlighted";
|
|
3223
|
+
}>>>;
|
|
3224
|
+
hideLabel: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3005
3225
|
configuration: z.ZodObject<{
|
|
3006
3226
|
text: z.ZodObject<import("./TranslationConfig").MessageDescriptorZod, z.core.$strip>;
|
|
3007
3227
|
}, z.core.$strip>;
|
|
@@ -3094,12 +3314,12 @@ declare const UserRoleField: z.ZodObject<{
|
|
|
3094
3314
|
}, z.core.$strip>;
|
|
3095
3315
|
export type UserRoleField = z.infer<typeof UserRoleField>;
|
|
3096
3316
|
/** @knipignore */
|
|
3097
|
-
export type FieldConfig = FieldGroup | z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof NumberWithUnitField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof AgeField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof ImageViewField> | z.infer<typeof Paragraph> | z.infer<typeof Heading> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeAreaField> | z.infer<typeof Divider> | z.infer<typeof LocationInput> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField> | z.infer<typeof ButtonField> | z.infer<typeof AlphaPrintButton> | z.infer<typeof HttpField> | z.infer<typeof SearchField> | z.infer<typeof LinkButtonField> | z.infer<typeof VerificationStatus> | z.infer<typeof QueryParamReaderField> | z.infer<typeof QrReaderField> | z.infer<typeof IdReaderField> | z.infer<typeof LoaderField> | z.infer<typeof CustomField> | z.infer<typeof HiddenField> | z.infer<typeof UserRoleField>;
|
|
3317
|
+
export type FieldConfig = FieldGroup | z.infer<typeof Address> | z.infer<typeof TextField> | z.infer<typeof NumberField> | z.infer<typeof NumberWithUnitField> | z.infer<typeof TextAreaField> | z.infer<typeof DateField> | z.infer<typeof AgeField> | z.infer<typeof TimeField> | z.infer<typeof DateRangeField> | z.infer<typeof SelectDateRangeField> | z.infer<typeof ImageViewField> | z.infer<typeof Paragraph> | z.infer<typeof Heading> | z.infer<typeof RadioGroup> | z.infer<typeof BulletList> | z.infer<typeof PageHeader> | z.infer<typeof Select> | z.infer<typeof NameField> | z.infer<typeof PhoneField> | z.infer<typeof IdField> | z.infer<typeof Checkbox> | z.infer<typeof File> | z.infer<typeof FileUploadWithOptions> | z.infer<typeof Country> | z.infer<typeof AdministrativeAreaField> | z.infer<typeof Divider> | z.infer<typeof LocationInput> | z.infer<typeof Facility> | z.infer<typeof Office> | z.infer<typeof SignatureField> | z.infer<typeof EmailField> | z.infer<typeof DataField> | z.infer<typeof ButtonField> | z.infer<typeof AlphaPrintButton> | z.infer<typeof HttpField> | z.infer<typeof SearchField> | z.infer<typeof AutocompleteField> | z.infer<typeof LinkButtonField> | z.infer<typeof VerificationStatus> | z.infer<typeof QueryParamReaderField> | z.infer<typeof QrReaderField> | z.infer<typeof IdReaderField> | z.infer<typeof LoaderField> | z.infer<typeof CustomField> | z.infer<typeof HiddenField> | z.infer<typeof UserRoleField>;
|
|
3098
3318
|
/** @knipignore */
|
|
3099
3319
|
/**
|
|
3100
3320
|
* This is the type that should be used for the input of the FieldConfig. Useful when config uses zod defaults.
|
|
3101
3321
|
*/
|
|
3102
|
-
export type FieldConfigInput = FieldGroupInput | z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof TimeField> | z.input<typeof SelectDateRangeField> | z.input<typeof ImageViewField> | z.input<typeof ButtonField> | z.input<typeof AlphaPrintButton> | z.input<typeof NumberField> | z.input<typeof NumberWithUnitField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof AgeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof Heading> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeAreaField> | z.input<typeof Divider> | z.input<typeof LocationInput> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField> | z.input<typeof HttpField> | z.input<typeof SearchField> | z.input<typeof LinkButtonField> | z.input<typeof VerificationStatus> | z.input<typeof QueryParamReaderField> | z.input<typeof QrReaderField> | z.input<typeof IdReaderField> | z.input<typeof LoaderField> | z.input<typeof CustomField> | z.input<typeof HiddenField> | z.input<typeof UserRoleField>;
|
|
3322
|
+
export type FieldConfigInput = FieldGroupInput | z.input<typeof Address> | z.input<typeof TextField> | z.input<typeof TimeField> | z.input<typeof SelectDateRangeField> | z.input<typeof ImageViewField> | z.input<typeof ButtonField> | z.input<typeof AlphaPrintButton> | z.input<typeof NumberField> | z.input<typeof NumberWithUnitField> | z.input<typeof TextAreaField> | z.input<typeof DateField> | z.input<typeof AgeField> | z.input<typeof DateRangeField> | z.input<typeof Paragraph> | z.input<typeof Heading> | z.input<typeof RadioGroup> | z.input<typeof BulletList> | z.input<typeof PageHeader> | z.input<typeof Select> | z.input<typeof NameField> | z.input<typeof PhoneField> | z.input<typeof IdField> | z.input<typeof Checkbox> | z.input<typeof File> | z.input<typeof FileUploadWithOptions> | z.input<typeof Country> | z.input<typeof AdministrativeAreaField> | z.input<typeof Divider> | z.input<typeof LocationInput> | z.input<typeof Facility> | z.input<typeof Office> | z.input<typeof SignatureField> | z.input<typeof EmailField> | z.input<typeof DataField> | z.input<typeof HttpField> | z.input<typeof SearchField> | z.input<typeof AutocompleteField> | z.input<typeof LinkButtonField> | z.input<typeof VerificationStatus> | z.input<typeof QueryParamReaderField> | z.input<typeof QrReaderField> | z.input<typeof IdReaderField> | z.input<typeof LoaderField> | z.input<typeof CustomField> | z.input<typeof HiddenField> | z.input<typeof UserRoleField>;
|
|
3103
3323
|
export declare const FieldConfig: z.ZodType<FieldConfig, FieldConfigInput>;
|
|
3104
3324
|
export type SelectField = z.infer<typeof Select>;
|
|
3105
3325
|
export type NameField = z.infer<typeof NameField>;
|
|
@@ -3218,7 +3438,7 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3218
3438
|
analytics: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
3219
3439
|
type: z.ZodLiteral<"FILE">;
|
|
3220
3440
|
defaultValue: z.ZodOptional<z.ZodObject<{
|
|
3221
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
3441
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
3222
3442
|
originalFilename: z.ZodString;
|
|
3223
3443
|
type: z.ZodString;
|
|
3224
3444
|
}, z.core.$strip>>;
|
|
@@ -3301,7 +3521,7 @@ export declare const AnyFileField: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3301
3521
|
}, z.core.$strip>], "type">>>>;
|
|
3302
3522
|
}, z.core.$strip>>;
|
|
3303
3523
|
defaultValue: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3304
|
-
path: z.core.$ZodBranded<z.ZodString, "DocumentPath">;
|
|
3524
|
+
path: z.core.$ZodBranded<z.ZodString, "DocumentPath", "out">;
|
|
3305
3525
|
originalFilename: z.ZodString;
|
|
3306
3526
|
type: z.ZodString;
|
|
3307
3527
|
option: z.ZodString;
|
|
@@ -36,6 +36,7 @@ export declare const FieldType: {
|
|
|
36
36
|
readonly SIGNATURE: "SIGNATURE";
|
|
37
37
|
readonly DATA: "DATA";
|
|
38
38
|
readonly BUTTON: "BUTTON";
|
|
39
|
+
readonly AUTOCOMPLETE: "AUTOCOMPLETE";
|
|
39
40
|
readonly SEARCH: "SEARCH";
|
|
40
41
|
readonly ALPHA_PRINT_BUTTON: "ALPHA_PRINT_BUTTON";
|
|
41
42
|
readonly HTTP: "HTTP";
|
|
@@ -67,7 +68,7 @@ export declare const FileFieldType: z.ZodEnum<{
|
|
|
67
68
|
FILE_WITH_OPTIONS: "FILE_WITH_OPTIONS";
|
|
68
69
|
SIGNATURE: "SIGNATURE";
|
|
69
70
|
}>;
|
|
70
|
-
export declare const fieldTypes: ("NAME" | "EMAIL" | "COUNTRY" | "CUSTOM" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "IMAGE_VIEW" | "PARAGRAPH" | "HEADING" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN" | "USER_ROLE")[];
|
|
71
|
+
export declare const fieldTypes: ("NAME" | "EMAIL" | "COUNTRY" | "CUSTOM" | "PHONE" | "ID" | "ADDRESS" | "TEXT" | "NUMBER" | "NUMBER_WITH_UNIT" | "TEXTAREA" | "DATE" | "AGE" | "DATE_RANGE" | "SELECT_DATE_RANGE" | "TIME" | "IMAGE_VIEW" | "PARAGRAPH" | "HEADING" | "PAGE_HEADER" | "RADIO_GROUP" | "FIELD_GROUP" | "FILE" | "FILE_WITH_OPTIONS" | "BULLET_LIST" | "CHECKBOX" | "SELECT" | "LOCATION" | "DIVIDER" | "ADMINISTRATIVE_AREA" | "FACILITY" | "OFFICE" | "SIGNATURE" | "DATA" | "BUTTON" | "AUTOCOMPLETE" | "SEARCH" | "ALPHA_PRINT_BUTTON" | "HTTP" | "LINK_BUTTON" | "VERIFICATION_STATUS" | "QUERY_PARAM_READER" | "QR_READER" | "ID_READER" | "LOADER" | "ALPHA_HIDDEN" | "USER_ROLE")[];
|
|
71
72
|
export type FieldType = (typeof fieldTypes)[number];
|
|
72
73
|
/**
|
|
73
74
|
* Composite field types are field types that consist of multiple field values.
|