@opencrvs/toolkit 1.8.1-rc.facd84c → 1.8.1-rc.fc9dd47

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.
@@ -1209,6 +1209,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1209
1209
  end: string;
1210
1210
  } | null | undefined> | null | undefined;
1211
1211
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
1212
+ actionDetails?: {
1213
+ templateId?: string | undefined;
1214
+ } | null | undefined;
1212
1215
  } | {
1213
1216
  type: "REQUEST_CORRECTION";
1214
1217
  id: string & import("zod").BRAND<"UUID">;
@@ -1418,10 +1421,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
1418
1421
  type: "REJECT_CORRECTION";
1419
1422
  id: string & import("zod").BRAND<"UUID">;
1420
1423
  status: "Rejected" | "Requested" | "Accepted";
1421
- reason: {
1422
- message: string;
1423
- isDuplicate?: boolean | undefined;
1424
- };
1425
1424
  transactionId: string;
1426
1425
  createdByUserType: "system" | "user";
1427
1426
  createdAt: string;
@@ -2779,6 +2778,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2779
2778
  end: string;
2780
2779
  } | null | undefined> | null | undefined;
2781
2780
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
2781
+ actionDetails?: {
2782
+ templateId?: string | undefined;
2783
+ } | null | undefined;
2782
2784
  } | {
2783
2785
  type: "REQUEST_CORRECTION";
2784
2786
  id: string & import("zod").BRAND<"UUID">;
@@ -2988,10 +2990,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
2988
2990
  type: "REJECT_CORRECTION";
2989
2991
  id: string & import("zod").BRAND<"UUID">;
2990
2992
  status: "Rejected" | "Requested" | "Accepted";
2991
- reason: {
2992
- message: string;
2993
- isDuplicate?: boolean | undefined;
2994
- };
2995
2993
  transactionId: string;
2996
2994
  createdByUserType: "system" | "user";
2997
2995
  createdAt: string;
@@ -5141,6 +5139,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5141
5139
  end: string;
5142
5140
  } | null | undefined> | null | undefined;
5143
5141
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
5142
+ actionDetails?: {
5143
+ templateId?: string | undefined;
5144
+ } | null | undefined;
5144
5145
  } | {
5145
5146
  type: "REQUEST_CORRECTION";
5146
5147
  id: string & import("zod").BRAND<"UUID">;
@@ -5350,10 +5351,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
5350
5351
  type: "REJECT_CORRECTION";
5351
5352
  id: string & import("zod").BRAND<"UUID">;
5352
5353
  status: "Rejected" | "Requested" | "Accepted";
5353
- reason: {
5354
- message: string;
5355
- isDuplicate?: boolean | undefined;
5356
- };
5357
5354
  transactionId: string;
5358
5355
  createdByUserType: "system" | "user";
5359
5356
  createdAt: string;
@@ -6808,6 +6805,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
6808
6805
  end: string;
6809
6806
  } | null | undefined> | null | undefined;
6810
6807
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
6808
+ actionDetails?: {
6809
+ templateId?: string | undefined;
6810
+ } | null | undefined;
6811
6811
  } | {
6812
6812
  type: "REQUEST_CORRECTION";
6813
6813
  id: string & import("zod").BRAND<"UUID">;
@@ -7017,10 +7017,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
7017
7017
  type: "REJECT_CORRECTION";
7018
7018
  id: string & import("zod").BRAND<"UUID">;
7019
7019
  status: "Rejected" | "Requested" | "Accepted";
7020
- reason: {
7021
- message: string;
7022
- isDuplicate?: boolean | undefined;
7023
- };
7024
7020
  transactionId: string;
7025
7021
  createdByUserType: "system" | "user";
7026
7022
  createdAt: string;
@@ -8717,6 +8713,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8717
8713
  end: string;
8718
8714
  } | null | undefined> | null | undefined;
8719
8715
  originalActionId?: string | null | undefined;
8716
+ actionDetails?: {
8717
+ templateId?: string | undefined;
8718
+ } | null | undefined;
8720
8719
  } | {
8721
8720
  type: "REQUEST_CORRECTION";
8722
8721
  id: string;
@@ -8926,10 +8925,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
8926
8925
  type: "REJECT_CORRECTION";
8927
8926
  id: string;
8928
8927
  status: "Rejected" | "Requested" | "Accepted";
8929
- reason: {
8930
- message: string;
8931
- isDuplicate?: boolean | undefined;
8932
- };
8933
8928
  transactionId: string;
8934
8929
  createdByUserType: "system" | "user";
8935
8930
  createdAt: string;
@@ -10283,6 +10278,9 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10283
10278
  end: string;
10284
10279
  } | null | undefined> | null | undefined;
10285
10280
  originalActionId?: (string & import("zod").BRAND<"UUID">) | null | undefined;
10281
+ actionDetails?: {
10282
+ templateId?: string | undefined;
10283
+ } | null | undefined;
10286
10284
  } | {
10287
10285
  type: "REQUEST_CORRECTION";
10288
10286
  id: string & import("zod").BRAND<"UUID">;
@@ -10492,10 +10490,6 @@ export declare const appRouter: import("@trpc/server").TRPCBuiltRouter<{
10492
10490
  type: "REJECT_CORRECTION";
10493
10491
  id: string & import("zod").BRAND<"UUID">;
10494
10492
  status: "Rejected" | "Requested" | "Accepted";
10495
- reason: {
10496
- message: string;
10497
- isDuplicate?: boolean | undefined;
10498
- };
10499
10493
  transactionId: string;
10500
10494
  createdByUserType: "system" | "user";
10501
10495
  createdAt: string;
@@ -1770,6 +1770,516 @@ declare const CreatedAction: z.ZodObject<z.objectUtil.extendShape<{
1770
1770
  } | null | undefined> | null | undefined;
1771
1771
  originalActionId?: string | null | undefined;
1772
1772
  }>;
1773
+ export declare const PrintDetails: z.ZodObject<{
1774
+ templateId: z.ZodOptional<z.ZodString>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ templateId?: string | undefined;
1777
+ }, {
1778
+ templateId?: string | undefined;
1779
+ }>;
1780
+ export type PrintDetails = z.infer<typeof PrintDetails>;
1781
+ declare const PrintCertificateAction: z.ZodObject<z.objectUtil.extendShape<{
1782
+ id: z.ZodBranded<z.ZodString, "UUID">;
1783
+ transactionId: z.ZodString;
1784
+ createdByUserType: z.ZodEnum<["user", "system"]>;
1785
+ createdAt: z.ZodString;
1786
+ createdBy: z.ZodString;
1787
+ createdByRole: z.ZodString;
1788
+ createdBySignature: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1789
+ createdAtLocation: z.ZodOptional<z.ZodNullable<z.ZodBranded<z.ZodString, "UUID">>>;
1790
+ declaration: z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
1791
+ start: z.ZodString;
1792
+ end: z.ZodString;
1793
+ }, "strip", z.ZodTypeAny, {
1794
+ start: string;
1795
+ end: string;
1796
+ }, {
1797
+ start: string;
1798
+ end: string;
1799
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1800
+ path: z.ZodEffects<z.ZodString, string, string>;
1801
+ originalFilename: z.ZodString;
1802
+ type: z.ZodString;
1803
+ }, "strip", z.ZodTypeAny, {
1804
+ type: string;
1805
+ path: string;
1806
+ originalFilename: string;
1807
+ }, {
1808
+ type: string;
1809
+ path: string;
1810
+ originalFilename: string;
1811
+ }>, z.ZodArray<z.ZodObject<{
1812
+ path: z.ZodEffects<z.ZodString, string, string>;
1813
+ originalFilename: z.ZodString;
1814
+ type: z.ZodString;
1815
+ option: z.ZodString;
1816
+ }, "strip", z.ZodTypeAny, {
1817
+ type: string;
1818
+ option: string;
1819
+ path: string;
1820
+ originalFilename: string;
1821
+ }, {
1822
+ type: string;
1823
+ option: string;
1824
+ path: string;
1825
+ originalFilename: string;
1826
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
1827
+ country: z.ZodString;
1828
+ addressType: z.ZodLiteral<"DOMESTIC">;
1829
+ province: z.ZodString;
1830
+ district: z.ZodString;
1831
+ }, {
1832
+ urbanOrRural: z.ZodLiteral<"URBAN">;
1833
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1834
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1835
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1836
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1837
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1838
+ }>, "strip", z.ZodTypeAny, {
1839
+ country: string;
1840
+ district: string;
1841
+ addressType: "DOMESTIC";
1842
+ province: string;
1843
+ urbanOrRural: "URBAN";
1844
+ number?: string | null | undefined;
1845
+ town?: string | null | undefined;
1846
+ residentialArea?: string | null | undefined;
1847
+ street?: string | null | undefined;
1848
+ zipCode?: string | null | undefined;
1849
+ }, {
1850
+ country: string;
1851
+ district: string;
1852
+ addressType: "DOMESTIC";
1853
+ province: string;
1854
+ urbanOrRural: "URBAN";
1855
+ number?: string | null | undefined;
1856
+ town?: string | null | undefined;
1857
+ residentialArea?: string | null | undefined;
1858
+ street?: string | null | undefined;
1859
+ zipCode?: string | null | undefined;
1860
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1861
+ country: z.ZodString;
1862
+ addressType: z.ZodLiteral<"DOMESTIC">;
1863
+ province: z.ZodString;
1864
+ district: z.ZodString;
1865
+ }, {
1866
+ urbanOrRural: z.ZodLiteral<"RURAL">;
1867
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1868
+ }>, "strip", z.ZodTypeAny, {
1869
+ country: string;
1870
+ district: string;
1871
+ addressType: "DOMESTIC";
1872
+ province: string;
1873
+ urbanOrRural: "RURAL";
1874
+ village?: string | null | undefined;
1875
+ }, {
1876
+ country: string;
1877
+ district: string;
1878
+ addressType: "DOMESTIC";
1879
+ province: string;
1880
+ urbanOrRural: "RURAL";
1881
+ village?: string | null | undefined;
1882
+ }>, z.ZodUndefined, z.ZodObject<{
1883
+ country: z.ZodString;
1884
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
1885
+ state: z.ZodString;
1886
+ district2: z.ZodString;
1887
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1888
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1889
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1890
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1891
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1892
+ }, "strip", z.ZodTypeAny, {
1893
+ country: string;
1894
+ state: string;
1895
+ addressType: "INTERNATIONAL";
1896
+ district2: string;
1897
+ cityOrTown?: string | null | undefined;
1898
+ addressLine1?: string | null | undefined;
1899
+ addressLine2?: string | null | undefined;
1900
+ addressLine3?: string | null | undefined;
1901
+ postcodeOrZip?: string | null | undefined;
1902
+ }, {
1903
+ country: string;
1904
+ state: string;
1905
+ addressType: "INTERNATIONAL";
1906
+ district2: string;
1907
+ cityOrTown?: string | null | undefined;
1908
+ addressLine1?: string | null | undefined;
1909
+ addressLine2?: string | null | undefined;
1910
+ addressLine3?: string | null | undefined;
1911
+ postcodeOrZip?: string | null | undefined;
1912
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
1913
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1914
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1915
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1916
+ }, "strip", z.ZodTypeAny, {
1917
+ firstname?: string | null | undefined;
1918
+ surname?: string | null | undefined;
1919
+ middlename?: string | null | undefined;
1920
+ }, {
1921
+ firstname?: string | null | undefined;
1922
+ surname?: string | null | undefined;
1923
+ middlename?: string | null | undefined;
1924
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>;
1925
+ annotation: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodString, z.ZodString, z.ZodString, z.ZodUnion<[z.ZodObject<{
1926
+ start: z.ZodString;
1927
+ end: z.ZodString;
1928
+ }, "strip", z.ZodTypeAny, {
1929
+ start: string;
1930
+ end: string;
1931
+ }, {
1932
+ start: string;
1933
+ end: string;
1934
+ }>, z.ZodString]>, z.ZodEnum<["last7Days", "last30Days", "last90Days", "last365Days"]>, z.ZodBoolean, z.ZodNumber, z.ZodObject<{
1935
+ path: z.ZodEffects<z.ZodString, string, string>;
1936
+ originalFilename: z.ZodString;
1937
+ type: z.ZodString;
1938
+ }, "strip", z.ZodTypeAny, {
1939
+ type: string;
1940
+ path: string;
1941
+ originalFilename: string;
1942
+ }, {
1943
+ type: string;
1944
+ path: string;
1945
+ originalFilename: string;
1946
+ }>, z.ZodArray<z.ZodObject<{
1947
+ path: z.ZodEffects<z.ZodString, string, string>;
1948
+ originalFilename: z.ZodString;
1949
+ type: z.ZodString;
1950
+ option: z.ZodString;
1951
+ }, "strip", z.ZodTypeAny, {
1952
+ type: string;
1953
+ option: string;
1954
+ path: string;
1955
+ originalFilename: string;
1956
+ }, {
1957
+ type: string;
1958
+ option: string;
1959
+ path: string;
1960
+ originalFilename: string;
1961
+ }>, "many">, z.ZodObject<z.objectUtil.extendShape<{
1962
+ country: z.ZodString;
1963
+ addressType: z.ZodLiteral<"DOMESTIC">;
1964
+ province: z.ZodString;
1965
+ district: z.ZodString;
1966
+ }, {
1967
+ urbanOrRural: z.ZodLiteral<"URBAN">;
1968
+ town: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1969
+ residentialArea: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1970
+ street: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1971
+ number: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1972
+ zipCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1973
+ }>, "strip", z.ZodTypeAny, {
1974
+ country: string;
1975
+ district: string;
1976
+ addressType: "DOMESTIC";
1977
+ province: string;
1978
+ urbanOrRural: "URBAN";
1979
+ number?: string | null | undefined;
1980
+ town?: string | null | undefined;
1981
+ residentialArea?: string | null | undefined;
1982
+ street?: string | null | undefined;
1983
+ zipCode?: string | null | undefined;
1984
+ }, {
1985
+ country: string;
1986
+ district: string;
1987
+ addressType: "DOMESTIC";
1988
+ province: string;
1989
+ urbanOrRural: "URBAN";
1990
+ number?: string | null | undefined;
1991
+ town?: string | null | undefined;
1992
+ residentialArea?: string | null | undefined;
1993
+ street?: string | null | undefined;
1994
+ zipCode?: string | null | undefined;
1995
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1996
+ country: z.ZodString;
1997
+ addressType: z.ZodLiteral<"DOMESTIC">;
1998
+ province: z.ZodString;
1999
+ district: z.ZodString;
2000
+ }, {
2001
+ urbanOrRural: z.ZodLiteral<"RURAL">;
2002
+ village: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2003
+ }>, "strip", z.ZodTypeAny, {
2004
+ country: string;
2005
+ district: string;
2006
+ addressType: "DOMESTIC";
2007
+ province: string;
2008
+ urbanOrRural: "RURAL";
2009
+ village?: string | null | undefined;
2010
+ }, {
2011
+ country: string;
2012
+ district: string;
2013
+ addressType: "DOMESTIC";
2014
+ province: string;
2015
+ urbanOrRural: "RURAL";
2016
+ village?: string | null | undefined;
2017
+ }>, z.ZodUndefined, z.ZodObject<{
2018
+ country: z.ZodString;
2019
+ addressType: z.ZodLiteral<"INTERNATIONAL">;
2020
+ state: z.ZodString;
2021
+ district2: z.ZodString;
2022
+ cityOrTown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2023
+ addressLine1: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2024
+ addressLine2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2025
+ addressLine3: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2026
+ postcodeOrZip: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2027
+ }, "strip", z.ZodTypeAny, {
2028
+ country: string;
2029
+ state: string;
2030
+ addressType: "INTERNATIONAL";
2031
+ district2: string;
2032
+ cityOrTown?: string | null | undefined;
2033
+ addressLine1?: string | null | undefined;
2034
+ addressLine2?: string | null | undefined;
2035
+ addressLine3?: string | null | undefined;
2036
+ postcodeOrZip?: string | null | undefined;
2037
+ }, {
2038
+ country: string;
2039
+ state: string;
2040
+ addressType: "INTERNATIONAL";
2041
+ district2: string;
2042
+ cityOrTown?: string | null | undefined;
2043
+ addressLine1?: string | null | undefined;
2044
+ addressLine2?: string | null | undefined;
2045
+ addressLine3?: string | null | undefined;
2046
+ postcodeOrZip?: string | null | undefined;
2047
+ }>, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
2048
+ firstname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2049
+ surname: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2050
+ middlename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2051
+ }, "strip", z.ZodTypeAny, {
2052
+ firstname?: string | null | undefined;
2053
+ surname?: string | null | undefined;
2054
+ middlename?: string | null | undefined;
2055
+ }, {
2056
+ firstname?: string | null | undefined;
2057
+ surname?: string | null | undefined;
2058
+ middlename?: string | null | undefined;
2059
+ }>, z.ZodNull]>, z.ZodUndefined]>]>>>>;
2060
+ status: z.ZodEnum<["Requested", "Accepted", "Rejected"]>;
2061
+ originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
2062
+ }, {
2063
+ type: z.ZodLiteral<"PRINT_CERTIFICATE">;
2064
+ actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
2065
+ templateId: z.ZodOptional<z.ZodString>;
2066
+ }, "strip", z.ZodTypeAny, {
2067
+ templateId?: string | undefined;
2068
+ }, {
2069
+ templateId?: string | undefined;
2070
+ }>>>;
2071
+ }>, "strip", z.ZodTypeAny, {
2072
+ type: "PRINT_CERTIFICATE";
2073
+ id: string & z.BRAND<"UUID">;
2074
+ status: "Rejected" | "Requested" | "Accepted";
2075
+ transactionId: string;
2076
+ createdByUserType: "system" | "user";
2077
+ createdAt: string;
2078
+ createdBy: string;
2079
+ createdByRole: string;
2080
+ declaration: Record<string, string | number | boolean | {
2081
+ type: string;
2082
+ path: string;
2083
+ originalFilename: string;
2084
+ } | {
2085
+ country: string;
2086
+ district: string;
2087
+ addressType: "DOMESTIC";
2088
+ province: string;
2089
+ urbanOrRural: "URBAN";
2090
+ number?: string | null | undefined;
2091
+ town?: string | null | undefined;
2092
+ residentialArea?: string | null | undefined;
2093
+ street?: string | null | undefined;
2094
+ zipCode?: string | null | undefined;
2095
+ } | {
2096
+ firstname?: string | null | undefined;
2097
+ surname?: string | null | undefined;
2098
+ middlename?: string | null | undefined;
2099
+ } | {
2100
+ country: string;
2101
+ district: string;
2102
+ addressType: "DOMESTIC";
2103
+ province: string;
2104
+ urbanOrRural: "RURAL";
2105
+ village?: string | null | undefined;
2106
+ } | {
2107
+ country: string;
2108
+ state: string;
2109
+ addressType: "INTERNATIONAL";
2110
+ district2: string;
2111
+ cityOrTown?: string | null | undefined;
2112
+ addressLine1?: string | null | undefined;
2113
+ addressLine2?: string | null | undefined;
2114
+ addressLine3?: string | null | undefined;
2115
+ postcodeOrZip?: string | null | undefined;
2116
+ } | {
2117
+ type: string;
2118
+ option: string;
2119
+ path: string;
2120
+ originalFilename: string;
2121
+ }[] | {
2122
+ start: string;
2123
+ end: string;
2124
+ } | null | undefined>;
2125
+ createdBySignature?: string | null | undefined;
2126
+ createdAtLocation?: (string & z.BRAND<"UUID">) | null | undefined;
2127
+ annotation?: Record<string, string | number | boolean | {
2128
+ type: string;
2129
+ path: string;
2130
+ originalFilename: string;
2131
+ } | {
2132
+ country: string;
2133
+ district: string;
2134
+ addressType: "DOMESTIC";
2135
+ province: string;
2136
+ urbanOrRural: "URBAN";
2137
+ number?: string | null | undefined;
2138
+ town?: string | null | undefined;
2139
+ residentialArea?: string | null | undefined;
2140
+ street?: string | null | undefined;
2141
+ zipCode?: string | null | undefined;
2142
+ } | {
2143
+ firstname?: string | null | undefined;
2144
+ surname?: string | null | undefined;
2145
+ middlename?: string | null | undefined;
2146
+ } | {
2147
+ country: string;
2148
+ district: string;
2149
+ addressType: "DOMESTIC";
2150
+ province: string;
2151
+ urbanOrRural: "RURAL";
2152
+ village?: string | null | undefined;
2153
+ } | {
2154
+ country: string;
2155
+ state: string;
2156
+ addressType: "INTERNATIONAL";
2157
+ district2: string;
2158
+ cityOrTown?: string | null | undefined;
2159
+ addressLine1?: string | null | undefined;
2160
+ addressLine2?: string | null | undefined;
2161
+ addressLine3?: string | null | undefined;
2162
+ postcodeOrZip?: string | null | undefined;
2163
+ } | {
2164
+ type: string;
2165
+ option: string;
2166
+ path: string;
2167
+ originalFilename: string;
2168
+ }[] | {
2169
+ start: string;
2170
+ end: string;
2171
+ } | null | undefined> | null | undefined;
2172
+ originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
2173
+ actionDetails?: {
2174
+ templateId?: string | undefined;
2175
+ } | null | undefined;
2176
+ }, {
2177
+ type: "PRINT_CERTIFICATE";
2178
+ id: string;
2179
+ status: "Rejected" | "Requested" | "Accepted";
2180
+ transactionId: string;
2181
+ createdByUserType: "system" | "user";
2182
+ createdAt: string;
2183
+ createdBy: string;
2184
+ createdByRole: string;
2185
+ declaration: Record<string, string | number | boolean | {
2186
+ type: string;
2187
+ path: string;
2188
+ originalFilename: string;
2189
+ } | {
2190
+ country: string;
2191
+ district: string;
2192
+ addressType: "DOMESTIC";
2193
+ province: string;
2194
+ urbanOrRural: "URBAN";
2195
+ number?: string | null | undefined;
2196
+ town?: string | null | undefined;
2197
+ residentialArea?: string | null | undefined;
2198
+ street?: string | null | undefined;
2199
+ zipCode?: string | null | undefined;
2200
+ } | {
2201
+ firstname?: string | null | undefined;
2202
+ surname?: string | null | undefined;
2203
+ middlename?: string | null | undefined;
2204
+ } | {
2205
+ country: string;
2206
+ district: string;
2207
+ addressType: "DOMESTIC";
2208
+ province: string;
2209
+ urbanOrRural: "RURAL";
2210
+ village?: string | null | undefined;
2211
+ } | {
2212
+ country: string;
2213
+ state: string;
2214
+ addressType: "INTERNATIONAL";
2215
+ district2: string;
2216
+ cityOrTown?: string | null | undefined;
2217
+ addressLine1?: string | null | undefined;
2218
+ addressLine2?: string | null | undefined;
2219
+ addressLine3?: string | null | undefined;
2220
+ postcodeOrZip?: string | null | undefined;
2221
+ } | {
2222
+ type: string;
2223
+ option: string;
2224
+ path: string;
2225
+ originalFilename: string;
2226
+ }[] | {
2227
+ start: string;
2228
+ end: string;
2229
+ } | null | undefined>;
2230
+ createdBySignature?: string | null | undefined;
2231
+ createdAtLocation?: string | null | undefined;
2232
+ annotation?: Record<string, string | number | boolean | {
2233
+ type: string;
2234
+ path: string;
2235
+ originalFilename: string;
2236
+ } | {
2237
+ country: string;
2238
+ district: string;
2239
+ addressType: "DOMESTIC";
2240
+ province: string;
2241
+ urbanOrRural: "URBAN";
2242
+ number?: string | null | undefined;
2243
+ town?: string | null | undefined;
2244
+ residentialArea?: string | null | undefined;
2245
+ street?: string | null | undefined;
2246
+ zipCode?: string | null | undefined;
2247
+ } | {
2248
+ firstname?: string | null | undefined;
2249
+ surname?: string | null | undefined;
2250
+ middlename?: string | null | undefined;
2251
+ } | {
2252
+ country: string;
2253
+ district: string;
2254
+ addressType: "DOMESTIC";
2255
+ province: string;
2256
+ urbanOrRural: "RURAL";
2257
+ village?: string | null | undefined;
2258
+ } | {
2259
+ country: string;
2260
+ state: string;
2261
+ addressType: "INTERNATIONAL";
2262
+ district2: string;
2263
+ cityOrTown?: string | null | undefined;
2264
+ addressLine1?: string | null | undefined;
2265
+ addressLine2?: string | null | undefined;
2266
+ addressLine3?: string | null | undefined;
2267
+ postcodeOrZip?: string | null | undefined;
2268
+ } | {
2269
+ type: string;
2270
+ option: string;
2271
+ path: string;
2272
+ originalFilename: string;
2273
+ }[] | {
2274
+ start: string;
2275
+ end: string;
2276
+ } | null | undefined> | null | undefined;
2277
+ originalActionId?: string | null | undefined;
2278
+ actionDetails?: {
2279
+ templateId?: string | undefined;
2280
+ } | null | undefined;
2281
+ }>;
2282
+ export type PrintCertificateAction = z.infer<typeof PrintCertificateAction>;
1773
2283
  declare const RequestedCorrectionAction: z.ZodObject<z.objectUtil.extendShape<{
1774
2284
  id: z.ZodBranded<z.ZodString, "UUID">;
1775
2285
  transactionId: z.ZodString;
@@ -7945,24 +8455,10 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7945
8455
  }, {
7946
8456
  type: z.ZodLiteral<"REJECT_CORRECTION">;
7947
8457
  requestId: z.ZodString;
7948
- reason: z.ZodObject<{
7949
- message: z.ZodString;
7950
- isDuplicate: z.ZodOptional<z.ZodBoolean>;
7951
- }, "strip", z.ZodTypeAny, {
7952
- message: string;
7953
- isDuplicate?: boolean | undefined;
7954
- }, {
7955
- message: string;
7956
- isDuplicate?: boolean | undefined;
7957
- }>;
7958
8458
  }>, "strip", z.ZodTypeAny, {
7959
8459
  type: "REJECT_CORRECTION";
7960
8460
  id: string & z.BRAND<"UUID">;
7961
8461
  status: "Rejected" | "Requested" | "Accepted";
7962
- reason: {
7963
- message: string;
7964
- isDuplicate?: boolean | undefined;
7965
- };
7966
8462
  transactionId: string;
7967
8463
  createdByUserType: "system" | "user";
7968
8464
  createdAt: string;
@@ -8066,10 +8562,6 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8066
8562
  type: "REJECT_CORRECTION";
8067
8563
  id: string;
8068
8564
  status: "Rejected" | "Requested" | "Accepted";
8069
- reason: {
8070
- message: string;
8071
- isDuplicate?: boolean | undefined;
8072
- };
8073
8565
  transactionId: string;
8074
8566
  createdByUserType: "system" | "user";
8075
8567
  createdAt: string;
@@ -8939,6 +9431,13 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
8939
9431
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
8940
9432
  }, {
8941
9433
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
9434
+ actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
9435
+ templateId: z.ZodOptional<z.ZodString>;
9436
+ }, "strip", z.ZodTypeAny, {
9437
+ templateId?: string | undefined;
9438
+ }, {
9439
+ templateId?: string | undefined;
9440
+ }>>>;
8942
9441
  }>, "strip", z.ZodTypeAny, {
8943
9442
  type: "PRINT_CERTIFICATE";
8944
9443
  id: string & z.BRAND<"UUID">;
@@ -9041,6 +9540,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9041
9540
  end: string;
9042
9541
  } | null | undefined> | null | undefined;
9043
9542
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
9543
+ actionDetails?: {
9544
+ templateId?: string | undefined;
9545
+ } | null | undefined;
9044
9546
  }, {
9045
9547
  type: "PRINT_CERTIFICATE";
9046
9548
  id: string;
@@ -9143,6 +9645,9 @@ export declare const ActionDocument: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
9143
9645
  end: string;
9144
9646
  } | null | undefined> | null | undefined;
9145
9647
  originalActionId?: string | null | undefined;
9648
+ actionDetails?: {
9649
+ templateId?: string | undefined;
9650
+ } | null | undefined;
9146
9651
  }>, z.ZodObject<z.objectUtil.extendShape<{
9147
9652
  id: z.ZodBranded<z.ZodString, "UUID">;
9148
9653
  transactionId: z.ZodString;
@@ -15628,24 +16133,10 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15628
16133
  }, {
15629
16134
  type: z.ZodLiteral<"REJECT_CORRECTION">;
15630
16135
  requestId: z.ZodString;
15631
- reason: z.ZodObject<{
15632
- message: z.ZodString;
15633
- isDuplicate: z.ZodOptional<z.ZodBoolean>;
15634
- }, "strip", z.ZodTypeAny, {
15635
- message: string;
15636
- isDuplicate?: boolean | undefined;
15637
- }, {
15638
- message: string;
15639
- isDuplicate?: boolean | undefined;
15640
- }>;
15641
16136
  }>, "strip", z.ZodTypeAny, {
15642
16137
  type: "REJECT_CORRECTION";
15643
16138
  id: string & z.BRAND<"UUID">;
15644
16139
  status: "Rejected" | "Requested" | "Accepted";
15645
- reason: {
15646
- message: string;
15647
- isDuplicate?: boolean | undefined;
15648
- };
15649
16140
  transactionId: string;
15650
16141
  createdByUserType: "system" | "user";
15651
16142
  createdAt: string;
@@ -15749,10 +16240,6 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
15749
16240
  type: "REJECT_CORRECTION";
15750
16241
  id: string;
15751
16242
  status: "Rejected" | "Requested" | "Accepted";
15752
- reason: {
15753
- message: string;
15754
- isDuplicate?: boolean | undefined;
15755
- };
15756
16243
  transactionId: string;
15757
16244
  createdByUserType: "system" | "user";
15758
16245
  createdAt: string;
@@ -16622,6 +17109,13 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16622
17109
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
16623
17110
  }, {
16624
17111
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
17112
+ actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17113
+ templateId: z.ZodOptional<z.ZodString>;
17114
+ }, "strip", z.ZodTypeAny, {
17115
+ templateId?: string | undefined;
17116
+ }, {
17117
+ templateId?: string | undefined;
17118
+ }>>>;
16625
17119
  }>, "strip", z.ZodTypeAny, {
16626
17120
  type: "PRINT_CERTIFICATE";
16627
17121
  id: string & z.BRAND<"UUID">;
@@ -16724,6 +17218,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16724
17218
  end: string;
16725
17219
  } | null | undefined> | null | undefined;
16726
17220
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
17221
+ actionDetails?: {
17222
+ templateId?: string | undefined;
17223
+ } | null | undefined;
16727
17224
  }, {
16728
17225
  type: "PRINT_CERTIFICATE";
16729
17226
  id: string;
@@ -16826,6 +17323,9 @@ export declare const Action: z.ZodUnion<[z.ZodDiscriminatedUnion<"type", [z.ZodO
16826
17323
  end: string;
16827
17324
  } | null | undefined> | null | undefined;
16828
17325
  originalActionId?: string | null | undefined;
17326
+ actionDetails?: {
17327
+ templateId?: string | undefined;
17328
+ } | null | undefined;
16829
17329
  }>, z.ZodObject<z.objectUtil.extendShape<{
16830
17330
  id: z.ZodBranded<z.ZodString, "UUID">;
16831
17331
  transactionId: z.ZodString;
@@ -2631,6 +2631,13 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2631
2631
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
2632
2632
  }, {
2633
2633
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
2634
+ actionDetails: z.ZodOptional<z.ZodObject<{
2635
+ templateId: z.ZodOptional<z.ZodString>;
2636
+ }, "strip", z.ZodTypeAny, {
2637
+ templateId?: string | undefined;
2638
+ }, {
2639
+ templateId?: string | undefined;
2640
+ }>>;
2634
2641
  }>, "strip", z.ZodTypeAny, {
2635
2642
  type: "PRINT_CERTIFICATE";
2636
2643
  transactionId: string;
@@ -2726,6 +2733,9 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2726
2733
  end: string;
2727
2734
  } | null | undefined> | undefined;
2728
2735
  originalActionId?: (string & z.BRAND<"UUID">) | undefined;
2736
+ actionDetails?: {
2737
+ templateId?: string | undefined;
2738
+ } | undefined;
2729
2739
  keepAssignment?: boolean | undefined;
2730
2740
  }, {
2731
2741
  transactionId: string;
@@ -2822,6 +2832,9 @@ export declare const PrintCertificateActionInput: z.ZodObject<z.objectUtil.exten
2822
2832
  end: string;
2823
2833
  } | null | undefined> | undefined;
2824
2834
  originalActionId?: string | undefined;
2835
+ actionDetails?: {
2836
+ templateId?: string | undefined;
2837
+ } | undefined;
2825
2838
  keepAssignment?: boolean | undefined;
2826
2839
  }>;
2827
2840
  export type DeclareActionInput = z.infer<typeof DeclareActionInput>;
@@ -5971,22 +5984,8 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
5971
5984
  }, {
5972
5985
  requestId: z.ZodString;
5973
5986
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
5974
- reason: z.ZodObject<{
5975
- message: z.ZodString;
5976
- isDuplicate: z.ZodOptional<z.ZodBoolean>;
5977
- }, "strip", z.ZodTypeAny, {
5978
- message: string;
5979
- isDuplicate?: boolean | undefined;
5980
- }, {
5981
- message: string;
5982
- isDuplicate?: boolean | undefined;
5983
- }>;
5984
5987
  }>, "strip", z.ZodTypeAny, {
5985
5988
  type: "REJECT_CORRECTION";
5986
- reason: {
5987
- message: string;
5988
- isDuplicate?: boolean | undefined;
5989
- };
5990
5989
  transactionId: string;
5991
5990
  declaration: Record<string, string | number | boolean | {
5992
5991
  type: string;
@@ -6083,10 +6082,6 @@ export declare const RejectCorrectionActionInput: z.ZodObject<z.objectUtil.exten
6083
6082
  originalActionId?: (string & z.BRAND<"UUID">) | undefined;
6084
6083
  keepAssignment?: boolean | undefined;
6085
6084
  }, {
6086
- reason: {
6087
- message: string;
6088
- isDuplicate?: boolean | undefined;
6089
- };
6090
6085
  transactionId: string;
6091
6086
  requestId: string;
6092
6087
  eventId: string;
@@ -12164,6 +12159,13 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
12164
12159
  keepAssignment: z.ZodOptional<z.ZodBoolean>;
12165
12160
  }, {
12166
12161
  type: z.ZodDefault<z.ZodLiteral<"PRINT_CERTIFICATE">>;
12162
+ actionDetails: z.ZodOptional<z.ZodObject<{
12163
+ templateId: z.ZodOptional<z.ZodString>;
12164
+ }, "strip", z.ZodTypeAny, {
12165
+ templateId?: string | undefined;
12166
+ }, {
12167
+ templateId?: string | undefined;
12168
+ }>>;
12167
12169
  }>, "strip", z.ZodTypeAny, {
12168
12170
  type: "PRINT_CERTIFICATE";
12169
12171
  transactionId: string;
@@ -12259,6 +12261,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
12259
12261
  end: string;
12260
12262
  } | null | undefined> | undefined;
12261
12263
  originalActionId?: (string & z.BRAND<"UUID">) | undefined;
12264
+ actionDetails?: {
12265
+ templateId?: string | undefined;
12266
+ } | undefined;
12262
12267
  keepAssignment?: boolean | undefined;
12263
12268
  }, {
12264
12269
  transactionId: string;
@@ -12355,6 +12360,9 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
12355
12360
  end: string;
12356
12361
  } | null | undefined> | undefined;
12357
12362
  originalActionId?: string | undefined;
12363
+ actionDetails?: {
12364
+ templateId?: string | undefined;
12365
+ } | undefined;
12358
12366
  keepAssignment?: boolean | undefined;
12359
12367
  }>, z.ZodObject<z.objectUtil.extendShape<{
12360
12368
  eventId: z.ZodBranded<z.ZodString, "UUID">;
@@ -13103,22 +13111,8 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
13103
13111
  }, {
13104
13112
  requestId: z.ZodString;
13105
13113
  type: z.ZodDefault<z.ZodLiteral<"REJECT_CORRECTION">>;
13106
- reason: z.ZodObject<{
13107
- message: z.ZodString;
13108
- isDuplicate: z.ZodOptional<z.ZodBoolean>;
13109
- }, "strip", z.ZodTypeAny, {
13110
- message: string;
13111
- isDuplicate?: boolean | undefined;
13112
- }, {
13113
- message: string;
13114
- isDuplicate?: boolean | undefined;
13115
- }>;
13116
13114
  }>, "strip", z.ZodTypeAny, {
13117
13115
  type: "REJECT_CORRECTION";
13118
- reason: {
13119
- message: string;
13120
- isDuplicate?: boolean | undefined;
13121
- };
13122
13116
  transactionId: string;
13123
13117
  declaration: Record<string, string | number | boolean | {
13124
13118
  type: string;
@@ -13215,10 +13209,6 @@ export declare const ActionInput: z.ZodDiscriminatedUnion<"type", [z.ZodObject<z
13215
13209
  originalActionId?: (string & z.BRAND<"UUID">) | undefined;
13216
13210
  keepAssignment?: boolean | undefined;
13217
13211
  }, {
13218
- reason: {
13219
- message: string;
13220
- isDuplicate?: boolean | undefined;
13221
- };
13222
13212
  transactionId: string;
13223
13213
  requestId: string;
13224
13214
  eventId: string;
@@ -5690,24 +5690,10 @@ export declare const EventDocument: z.ZodObject<{
5690
5690
  }, {
5691
5691
  type: z.ZodLiteral<"REJECT_CORRECTION">;
5692
5692
  requestId: z.ZodString;
5693
- reason: z.ZodObject<{
5694
- message: z.ZodString;
5695
- isDuplicate: z.ZodOptional<z.ZodBoolean>;
5696
- }, "strip", z.ZodTypeAny, {
5697
- message: string;
5698
- isDuplicate?: boolean | undefined;
5699
- }, {
5700
- message: string;
5701
- isDuplicate?: boolean | undefined;
5702
- }>;
5703
5693
  }>, "strip", z.ZodTypeAny, {
5704
5694
  type: "REJECT_CORRECTION";
5705
5695
  id: string & z.BRAND<"UUID">;
5706
5696
  status: "Rejected" | "Requested" | "Accepted";
5707
- reason: {
5708
- message: string;
5709
- isDuplicate?: boolean | undefined;
5710
- };
5711
5697
  transactionId: string;
5712
5698
  createdByUserType: "system" | "user";
5713
5699
  createdAt: string;
@@ -5811,10 +5797,6 @@ export declare const EventDocument: z.ZodObject<{
5811
5797
  type: "REJECT_CORRECTION";
5812
5798
  id: string;
5813
5799
  status: "Rejected" | "Requested" | "Accepted";
5814
- reason: {
5815
- message: string;
5816
- isDuplicate?: boolean | undefined;
5817
- };
5818
5800
  transactionId: string;
5819
5801
  createdByUserType: "system" | "user";
5820
5802
  createdAt: string;
@@ -6684,6 +6666,13 @@ export declare const EventDocument: z.ZodObject<{
6684
6666
  originalActionId: z.ZodNullable<z.ZodOptional<z.ZodBranded<z.ZodString, "UUID">>>;
6685
6667
  }, {
6686
6668
  type: z.ZodLiteral<"PRINT_CERTIFICATE">;
6669
+ actionDetails: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6670
+ templateId: z.ZodOptional<z.ZodString>;
6671
+ }, "strip", z.ZodTypeAny, {
6672
+ templateId?: string | undefined;
6673
+ }, {
6674
+ templateId?: string | undefined;
6675
+ }>>>;
6687
6676
  }>, "strip", z.ZodTypeAny, {
6688
6677
  type: "PRINT_CERTIFICATE";
6689
6678
  id: string & z.BRAND<"UUID">;
@@ -6786,6 +6775,9 @@ export declare const EventDocument: z.ZodObject<{
6786
6775
  end: string;
6787
6776
  } | null | undefined> | null | undefined;
6788
6777
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
6778
+ actionDetails?: {
6779
+ templateId?: string | undefined;
6780
+ } | null | undefined;
6789
6781
  }, {
6790
6782
  type: "PRINT_CERTIFICATE";
6791
6783
  id: string;
@@ -6888,6 +6880,9 @@ export declare const EventDocument: z.ZodObject<{
6888
6880
  end: string;
6889
6881
  } | null | undefined> | null | undefined;
6890
6882
  originalActionId?: string | null | undefined;
6883
+ actionDetails?: {
6884
+ templateId?: string | undefined;
6885
+ } | null | undefined;
6891
6886
  }>, z.ZodObject<z.objectUtil.extendShape<{
6892
6887
  id: z.ZodBranded<z.ZodString, "UUID">;
6893
6888
  transactionId: z.ZodString;
@@ -8822,6 +8817,9 @@ export declare const EventDocument: z.ZodObject<{
8822
8817
  end: string;
8823
8818
  } | null | undefined> | null | undefined;
8824
8819
  originalActionId?: (string & z.BRAND<"UUID">) | null | undefined;
8820
+ actionDetails?: {
8821
+ templateId?: string | undefined;
8822
+ } | null | undefined;
8825
8823
  } | {
8826
8824
  type: "REQUEST_CORRECTION";
8827
8825
  id: string & z.BRAND<"UUID">;
@@ -9031,10 +9029,6 @@ export declare const EventDocument: z.ZodObject<{
9031
9029
  type: "REJECT_CORRECTION";
9032
9030
  id: string & z.BRAND<"UUID">;
9033
9031
  status: "Rejected" | "Requested" | "Accepted";
9034
- reason: {
9035
- message: string;
9036
- isDuplicate?: boolean | undefined;
9037
- };
9038
9032
  transactionId: string;
9039
9033
  createdByUserType: "system" | "user";
9040
9034
  createdAt: string;
@@ -10387,6 +10381,9 @@ export declare const EventDocument: z.ZodObject<{
10387
10381
  end: string;
10388
10382
  } | null | undefined> | null | undefined;
10389
10383
  originalActionId?: string | null | undefined;
10384
+ actionDetails?: {
10385
+ templateId?: string | undefined;
10386
+ } | null | undefined;
10390
10387
  } | {
10391
10388
  type: "REQUEST_CORRECTION";
10392
10389
  id: string;
@@ -10596,10 +10593,6 @@ export declare const EventDocument: z.ZodObject<{
10596
10593
  type: "REJECT_CORRECTION";
10597
10594
  id: string;
10598
10595
  status: "Rejected" | "Requested" | "Accepted";
10599
- reason: {
10600
- message: string;
10601
- isDuplicate?: boolean | undefined;
10602
- };
10603
10596
  transactionId: string;
10604
10597
  createdByUserType: "system" | "user";
10605
10598
  createdAt: string;
@@ -414,7 +414,7 @@ export declare function eventPayloadGenerator(rng: () => number): {
414
414
  requestId: string;
415
415
  keepAssignment: boolean | undefined;
416
416
  };
417
- reject: (eventId: string, requestId: string, input: Partial<Pick<RejectCorrectionActionInput, "transactionId" | "annotation" | "keepAssignment" | "reason">>) => {
417
+ reject: (eventId: string, requestId: string, input?: Partial<Pick<RejectCorrectionActionInput, "transactionId" | "annotation" | "keepAssignment">>) => {
418
418
  type: "REJECT_CORRECTION";
419
419
  transactionId: string;
420
420
  declaration: {};
@@ -422,10 +422,6 @@ export declare function eventPayloadGenerator(rng: () => number): {
422
422
  eventId: string;
423
423
  requestId: string;
424
424
  keepAssignment: boolean | undefined;
425
- reason: {
426
- message: string;
427
- isDuplicate?: boolean | undefined;
428
- };
429
425
  };
430
426
  };
431
427
  };
@@ -139,6 +139,7 @@ __export(events_exports, {
139
139
  PageConfig: () => PageConfig,
140
140
  PageTypes: () => PageTypes,
141
141
  PrintCertificateActionInput: () => PrintCertificateActionInput,
142
+ PrintDetails: () => PrintDetails,
142
143
  QueryExpression: () => QueryExpression,
143
144
  QueryInput: () => QueryInput,
144
145
  QueryType: () => QueryType,
@@ -606,8 +607,8 @@ var UrbanAddressUpdateValue = AdminStructure.extend({
606
607
  zipCode: import_zod5.z.string().nullish()
607
608
  });
608
609
  var NameFieldValue = import_zod5.z.object({
609
- firstname: import_zod5.z.string().min(1),
610
- surname: import_zod5.z.string().min(1),
610
+ firstname: import_zod5.z.string(),
611
+ surname: import_zod5.z.string(),
611
612
  middlename: import_zod5.z.string().optional()
612
613
  });
613
614
  var NameFieldUpdateValue = import_zod5.z.object({
@@ -1902,6 +1903,9 @@ var ActionBase = import_zod19.z.object({
1902
1903
  originalActionId: UUID.optional().nullable().describe(
1903
1904
  "Reference to the original action that was asynchronously rejected or accepted by 3rd party integration."
1904
1905
  )
1906
+ // 'actionDetails' field reserved for additional metadata
1907
+ // Each action can define its own action details specifc to the action
1908
+ // See PrintCertificateAction
1905
1909
  });
1906
1910
  var AssignedAction = ActionBase.merge(
1907
1911
  import_zod19.z.object({
@@ -1961,9 +1965,13 @@ var NotifiedAction = ActionBase.merge(
1961
1965
  type: import_zod19.z.literal(ActionType.NOTIFY)
1962
1966
  })
1963
1967
  );
1968
+ var PrintDetails = import_zod19.z.object({
1969
+ templateId: import_zod19.z.string().optional()
1970
+ });
1964
1971
  var PrintCertificateAction = ActionBase.merge(
1965
1972
  import_zod19.z.object({
1966
- type: import_zod19.z.literal(ActionType.PRINT_CERTIFICATE)
1973
+ type: import_zod19.z.literal(ActionType.PRINT_CERTIFICATE),
1974
+ actionDetails: PrintDetails.optional().nullable()
1967
1975
  })
1968
1976
  );
1969
1977
  var RequestedCorrectionAction = ActionBase.merge(
@@ -1980,8 +1988,7 @@ var ApprovedCorrectionAction = ActionBase.merge(
1980
1988
  var RejectedCorrectionAction = ActionBase.merge(
1981
1989
  import_zod19.z.object({
1982
1990
  type: import_zod19.z.literal(ActionType.REJECT_CORRECTION),
1983
- requestId: import_zod19.z.string(),
1984
- reason: RejectionReason
1991
+ requestId: import_zod19.z.string()
1985
1992
  })
1986
1993
  );
1987
1994
  var ReadAction = ActionBase.merge(
@@ -3877,7 +3884,8 @@ var DeclareActionInput = BaseActionInput.merge(
3877
3884
  );
3878
3885
  var PrintCertificateActionInput = BaseActionInput.merge(
3879
3886
  import_zod29.z.object({
3880
- type: import_zod29.z.literal(ActionType.PRINT_CERTIFICATE).default(ActionType.PRINT_CERTIFICATE)
3887
+ type: import_zod29.z.literal(ActionType.PRINT_CERTIFICATE).default(ActionType.PRINT_CERTIFICATE),
3888
+ actionDetails: PrintDetails.optional()
3881
3889
  })
3882
3890
  );
3883
3891
  var RejectDeclarationActionInput = BaseActionInput.merge(
@@ -3917,8 +3925,7 @@ var RequestCorrectionActionInput = BaseActionInput.merge(
3917
3925
  var RejectCorrectionActionInput = BaseActionInput.merge(
3918
3926
  import_zod29.z.object({
3919
3927
  requestId: import_zod29.z.string(),
3920
- type: import_zod29.z.literal(ActionType.REJECT_CORRECTION).default(ActionType.REJECT_CORRECTION),
3921
- reason: RejectionReason
3928
+ type: import_zod29.z.literal(ActionType.REJECT_CORRECTION).default(ActionType.REJECT_CORRECTION)
3922
3929
  })
3923
3930
  );
3924
3931
  var ApproveCorrectionActionInput = BaseActionInput.merge(
@@ -6757,7 +6764,7 @@ function eventPayloadGenerator(rng) {
6757
6764
  requestId,
6758
6765
  keepAssignment: input.keepAssignment
6759
6766
  }),
6760
- reject: (eventId, requestId, input) => ({
6767
+ reject: (eventId, requestId, input = {}) => ({
6761
6768
  type: ActionType.REJECT_CORRECTION,
6762
6769
  transactionId: input.transactionId ?? getUUID(),
6763
6770
  declaration: {},
@@ -6768,8 +6775,7 @@ function eventPayloadGenerator(rng) {
6768
6775
  ),
6769
6776
  eventId,
6770
6777
  requestId,
6771
- keepAssignment: input.keepAssignment,
6772
- reason: input.reason ?? { message: "" }
6778
+ keepAssignment: input.keepAssignment
6773
6779
  })
6774
6780
  }
6775
6781
  }
@@ -6828,8 +6834,7 @@ function generateActionDocument({
6828
6834
  return {
6829
6835
  ...actionBase,
6830
6836
  requestId: getUUID(),
6831
- type: action,
6832
- reason: { message: "Correction rejection" }
6837
+ type: action
6833
6838
  };
6834
6839
  case ActionType.REGISTER:
6835
6840
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opencrvs/toolkit",
3
- "version": "1.8.1-rc.facd84c",
3
+ "version": "1.8.1-rc.fc9dd47",
4
4
  "description": "OpenCRVS toolkit for building country configurations",
5
5
  "license": "MPL-2.0",
6
6
  "exports": {