@vepler/sdk 2.12.0 → 2.20.2

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.
Files changed (236) hide show
  1. package/README.md +26 -14
  2. package/dist/commonjs/funcs/councilsGet.d.ts +17 -0
  3. package/dist/commonjs/funcs/councilsGet.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/councilsGet.js +119 -0
  5. package/dist/commonjs/funcs/councilsGet.js.map +1 -0
  6. package/dist/commonjs/funcs/councilsList.d.ts +17 -0
  7. package/dist/commonjs/funcs/councilsList.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/councilsList.js +119 -0
  9. package/dist/commonjs/funcs/councilsList.js.map +1 -0
  10. package/dist/commonjs/funcs/epcGetByLocationId.d.ts +17 -0
  11. package/dist/commonjs/funcs/epcGetByLocationId.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/epcGetByLocationId.js +124 -0
  13. package/dist/commonjs/funcs/epcGetByLocationId.js.map +1 -0
  14. package/dist/commonjs/lib/config.d.ts +4 -4
  15. package/dist/commonjs/lib/config.js +4 -4
  16. package/dist/commonjs/sdk/councils.d.ts +19 -0
  17. package/dist/commonjs/sdk/councils.d.ts.map +1 -0
  18. package/dist/commonjs/sdk/councils.js +32 -0
  19. package/dist/commonjs/sdk/councils.js.map +1 -0
  20. package/dist/commonjs/sdk/epc.d.ts +12 -0
  21. package/dist/commonjs/sdk/epc.d.ts.map +1 -0
  22. package/dist/commonjs/sdk/epc.js +22 -0
  23. package/dist/commonjs/sdk/epc.js.map +1 -0
  24. package/dist/commonjs/sdk/models/operations/getcouncilbyproviderid.d.ts +19 -0
  25. package/dist/commonjs/sdk/models/operations/getcouncilbyproviderid.d.ts.map +1 -0
  26. package/dist/commonjs/sdk/models/operations/getcouncilbyproviderid.js +60 -0
  27. package/dist/commonjs/sdk/models/operations/getcouncilbyproviderid.js.map +1 -0
  28. package/dist/commonjs/sdk/models/operations/getepcbylocationid.d.ts +562 -0
  29. package/dist/commonjs/sdk/models/operations/getepcbylocationid.d.ts.map +1 -0
  30. package/dist/commonjs/sdk/models/operations/getepcbylocationid.js +276 -0
  31. package/dist/commonjs/sdk/models/operations/getepcbylocationid.js.map +1 -0
  32. package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts +2 -2
  33. package/dist/commonjs/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
  34. package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts +2 -2
  35. package/dist/commonjs/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
  36. package/dist/commonjs/sdk/models/operations/getnearestpoi.d.ts +4 -4
  37. package/dist/commonjs/sdk/models/operations/getnearestpoi.d.ts.map +1 -1
  38. package/dist/commonjs/sdk/models/operations/getnearestpoi.js +6 -6
  39. package/dist/commonjs/sdk/models/operations/getnearestpoi.js.map +1 -1
  40. package/dist/commonjs/sdk/models/operations/index.d.ts +3 -0
  41. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  42. package/dist/commonjs/sdk/models/operations/index.js +3 -0
  43. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  44. package/dist/commonjs/sdk/models/operations/listcouncils.d.ts +78 -0
  45. package/dist/commonjs/sdk/models/operations/listcouncils.d.ts.map +1 -0
  46. package/dist/commonjs/sdk/models/operations/listcouncils.js +96 -0
  47. package/dist/commonjs/sdk/models/operations/listcouncils.js.map +1 -0
  48. package/dist/commonjs/sdk/models/operations/querylistings.d.ts +2 -2
  49. package/dist/commonjs/sdk/models/operations/querylistings.d.ts.map +1 -1
  50. package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts +2 -2
  51. package/dist/commonjs/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
  52. package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts +154 -4
  53. package/dist/commonjs/sdk/models/operations/resolveaddress.d.ts.map +1 -1
  54. package/dist/commonjs/sdk/models/operations/resolveaddress.js +83 -2
  55. package/dist/commonjs/sdk/models/operations/resolveaddress.js.map +1 -1
  56. package/dist/commonjs/sdk/models/shared/council.d.ts +131 -0
  57. package/dist/commonjs/sdk/models/shared/council.d.ts.map +1 -0
  58. package/dist/commonjs/sdk/models/shared/council.js +115 -0
  59. package/dist/commonjs/sdk/models/shared/council.js.map +1 -0
  60. package/dist/commonjs/sdk/models/shared/councilbranding.d.ts +32 -0
  61. package/dist/commonjs/sdk/models/shared/councilbranding.d.ts.map +1 -0
  62. package/dist/commonjs/sdk/models/shared/councilbranding.js +65 -0
  63. package/dist/commonjs/sdk/models/shared/councilbranding.js.map +1 -0
  64. package/dist/commonjs/sdk/models/shared/councilcontactdetails.d.ts +47 -0
  65. package/dist/commonjs/sdk/models/shared/councilcontactdetails.d.ts.map +1 -0
  66. package/dist/commonjs/sdk/models/shared/councilcontactdetails.js +79 -0
  67. package/dist/commonjs/sdk/models/shared/councilcontactdetails.js.map +1 -0
  68. package/dist/commonjs/sdk/models/shared/councilerrorresponse.d.ts +29 -0
  69. package/dist/commonjs/sdk/models/shared/councilerrorresponse.d.ts.map +1 -0
  70. package/dist/commonjs/sdk/models/shared/councilerrorresponse.js +70 -0
  71. package/dist/commonjs/sdk/models/shared/councilerrorresponse.js.map +1 -0
  72. package/dist/commonjs/sdk/models/shared/councillistresponse.d.ts +43 -0
  73. package/dist/commonjs/sdk/models/shared/councillistresponse.d.ts.map +1 -0
  74. package/dist/commonjs/sdk/models/shared/councillistresponse.js +69 -0
  75. package/dist/commonjs/sdk/models/shared/councillistresponse.js.map +1 -0
  76. package/dist/commonjs/sdk/models/shared/councilmetadata.d.ts +34 -0
  77. package/dist/commonjs/sdk/models/shared/councilmetadata.d.ts.map +1 -0
  78. package/dist/commonjs/sdk/models/shared/councilmetadata.js +59 -0
  79. package/dist/commonjs/sdk/models/shared/councilmetadata.js.map +1 -0
  80. package/dist/commonjs/sdk/models/shared/councilserviceurls.d.ts +26 -0
  81. package/dist/commonjs/sdk/models/shared/councilserviceurls.d.ts.map +1 -0
  82. package/dist/commonjs/sdk/models/shared/councilserviceurls.js +60 -0
  83. package/dist/commonjs/sdk/models/shared/councilserviceurls.js.map +1 -0
  84. package/dist/commonjs/sdk/models/shared/index.d.ts +7 -0
  85. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  86. package/dist/commonjs/sdk/models/shared/index.js +7 -0
  87. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  88. package/dist/commonjs/sdk/models/shared/listing.d.ts +8 -8
  89. package/dist/commonjs/sdk/models/shared/listing.d.ts.map +1 -1
  90. package/dist/commonjs/sdk/models/shared/listing.js +8 -8
  91. package/dist/commonjs/sdk/models/shared/listing.js.map +1 -1
  92. package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts +1 -1
  93. package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts.map +1 -1
  94. package/dist/commonjs/sdk/models/shared/school.d.ts +8 -8
  95. package/dist/commonjs/sdk/models/shared/school.d.ts.map +1 -1
  96. package/dist/commonjs/sdk/models/shared/school.js +9 -10
  97. package/dist/commonjs/sdk/models/shared/school.js.map +1 -1
  98. package/dist/commonjs/sdk/models/shared/streetdescriptor.d.ts +1 -1
  99. package/dist/commonjs/sdk/models/shared/streetdescriptor.d.ts.map +1 -1
  100. package/dist/commonjs/sdk/sdk.d.ts +6 -0
  101. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  102. package/dist/commonjs/sdk/sdk.js +8 -0
  103. package/dist/commonjs/sdk/sdk.js.map +1 -1
  104. package/dist/esm/funcs/councilsGet.d.ts +17 -0
  105. package/dist/esm/funcs/councilsGet.d.ts.map +1 -0
  106. package/dist/esm/funcs/councilsGet.js +83 -0
  107. package/dist/esm/funcs/councilsGet.js.map +1 -0
  108. package/dist/esm/funcs/councilsList.d.ts +17 -0
  109. package/dist/esm/funcs/councilsList.d.ts.map +1 -0
  110. package/dist/esm/funcs/councilsList.js +83 -0
  111. package/dist/esm/funcs/councilsList.js.map +1 -0
  112. package/dist/esm/funcs/epcGetByLocationId.d.ts +17 -0
  113. package/dist/esm/funcs/epcGetByLocationId.d.ts.map +1 -0
  114. package/dist/esm/funcs/epcGetByLocationId.js +88 -0
  115. package/dist/esm/funcs/epcGetByLocationId.js.map +1 -0
  116. package/dist/esm/lib/config.d.ts +4 -4
  117. package/dist/esm/lib/config.js +4 -4
  118. package/dist/esm/sdk/councils.d.ts +19 -0
  119. package/dist/esm/sdk/councils.d.ts.map +1 -0
  120. package/dist/esm/sdk/councils.js +28 -0
  121. package/dist/esm/sdk/councils.js.map +1 -0
  122. package/dist/esm/sdk/epc.d.ts +12 -0
  123. package/dist/esm/sdk/epc.d.ts.map +1 -0
  124. package/dist/esm/sdk/epc.js +18 -0
  125. package/dist/esm/sdk/epc.js.map +1 -0
  126. package/dist/esm/sdk/models/operations/getcouncilbyproviderid.d.ts +19 -0
  127. package/dist/esm/sdk/models/operations/getcouncilbyproviderid.d.ts.map +1 -0
  128. package/dist/esm/sdk/models/operations/getcouncilbyproviderid.js +22 -0
  129. package/dist/esm/sdk/models/operations/getcouncilbyproviderid.js.map +1 -0
  130. package/dist/esm/sdk/models/operations/getepcbylocationid.d.ts +562 -0
  131. package/dist/esm/sdk/models/operations/getepcbylocationid.d.ts.map +1 -0
  132. package/dist/esm/sdk/models/operations/getepcbylocationid.js +229 -0
  133. package/dist/esm/sdk/models/operations/getepcbylocationid.js.map +1 -0
  134. package/dist/esm/sdk/models/operations/getlistingbyid.d.ts +2 -2
  135. package/dist/esm/sdk/models/operations/getlistingbyid.d.ts.map +1 -1
  136. package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts +2 -2
  137. package/dist/esm/sdk/models/operations/getlistingsbylocation.d.ts.map +1 -1
  138. package/dist/esm/sdk/models/operations/getnearestpoi.d.ts +4 -4
  139. package/dist/esm/sdk/models/operations/getnearestpoi.d.ts.map +1 -1
  140. package/dist/esm/sdk/models/operations/getnearestpoi.js +4 -4
  141. package/dist/esm/sdk/models/operations/getnearestpoi.js.map +1 -1
  142. package/dist/esm/sdk/models/operations/index.d.ts +3 -0
  143. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  144. package/dist/esm/sdk/models/operations/index.js +3 -0
  145. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  146. package/dist/esm/sdk/models/operations/listcouncils.d.ts +78 -0
  147. package/dist/esm/sdk/models/operations/listcouncils.d.ts.map +1 -0
  148. package/dist/esm/sdk/models/operations/listcouncils.js +58 -0
  149. package/dist/esm/sdk/models/operations/listcouncils.js.map +1 -0
  150. package/dist/esm/sdk/models/operations/querylistings.d.ts +2 -2
  151. package/dist/esm/sdk/models/operations/querylistings.d.ts.map +1 -1
  152. package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts +2 -2
  153. package/dist/esm/sdk/models/operations/querylistingsbysource.d.ts.map +1 -1
  154. package/dist/esm/sdk/models/operations/resolveaddress.d.ts +154 -4
  155. package/dist/esm/sdk/models/operations/resolveaddress.d.ts.map +1 -1
  156. package/dist/esm/sdk/models/operations/resolveaddress.js +79 -1
  157. package/dist/esm/sdk/models/operations/resolveaddress.js.map +1 -1
  158. package/dist/esm/sdk/models/shared/council.d.ts +131 -0
  159. package/dist/esm/sdk/models/shared/council.d.ts.map +1 -0
  160. package/dist/esm/sdk/models/shared/council.js +78 -0
  161. package/dist/esm/sdk/models/shared/council.js.map +1 -0
  162. package/dist/esm/sdk/models/shared/councilbranding.d.ts +32 -0
  163. package/dist/esm/sdk/models/shared/councilbranding.d.ts.map +1 -0
  164. package/dist/esm/sdk/models/shared/councilbranding.js +27 -0
  165. package/dist/esm/sdk/models/shared/councilbranding.js.map +1 -0
  166. package/dist/esm/sdk/models/shared/councilcontactdetails.d.ts +47 -0
  167. package/dist/esm/sdk/models/shared/councilcontactdetails.d.ts.map +1 -0
  168. package/dist/esm/sdk/models/shared/councilcontactdetails.js +40 -0
  169. package/dist/esm/sdk/models/shared/councilcontactdetails.js.map +1 -0
  170. package/dist/esm/sdk/models/shared/councilerrorresponse.d.ts +29 -0
  171. package/dist/esm/sdk/models/shared/councilerrorresponse.d.ts.map +1 -0
  172. package/dist/esm/sdk/models/shared/councilerrorresponse.js +32 -0
  173. package/dist/esm/sdk/models/shared/councilerrorresponse.js.map +1 -0
  174. package/dist/esm/sdk/models/shared/councillistresponse.d.ts +43 -0
  175. package/dist/esm/sdk/models/shared/councillistresponse.d.ts.map +1 -0
  176. package/dist/esm/sdk/models/shared/councillistresponse.js +32 -0
  177. package/dist/esm/sdk/models/shared/councillistresponse.js.map +1 -0
  178. package/dist/esm/sdk/models/shared/councilmetadata.d.ts +34 -0
  179. package/dist/esm/sdk/models/shared/councilmetadata.d.ts.map +1 -0
  180. package/dist/esm/sdk/models/shared/councilmetadata.js +22 -0
  181. package/dist/esm/sdk/models/shared/councilmetadata.js.map +1 -0
  182. package/dist/esm/sdk/models/shared/councilserviceurls.d.ts +26 -0
  183. package/dist/esm/sdk/models/shared/councilserviceurls.d.ts.map +1 -0
  184. package/dist/esm/sdk/models/shared/councilserviceurls.js +23 -0
  185. package/dist/esm/sdk/models/shared/councilserviceurls.js.map +1 -0
  186. package/dist/esm/sdk/models/shared/index.d.ts +7 -0
  187. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  188. package/dist/esm/sdk/models/shared/index.js +7 -0
  189. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  190. package/dist/esm/sdk/models/shared/listing.d.ts +8 -8
  191. package/dist/esm/sdk/models/shared/listing.d.ts.map +1 -1
  192. package/dist/esm/sdk/models/shared/listing.js +7 -7
  193. package/dist/esm/sdk/models/shared/listing.js.map +1 -1
  194. package/dist/esm/sdk/models/shared/propertyaddress.d.ts +1 -1
  195. package/dist/esm/sdk/models/shared/propertyaddress.d.ts.map +1 -1
  196. package/dist/esm/sdk/models/shared/school.d.ts +8 -8
  197. package/dist/esm/sdk/models/shared/school.d.ts.map +1 -1
  198. package/dist/esm/sdk/models/shared/school.js +7 -8
  199. package/dist/esm/sdk/models/shared/school.js.map +1 -1
  200. package/dist/esm/sdk/models/shared/streetdescriptor.d.ts +1 -1
  201. package/dist/esm/sdk/models/shared/streetdescriptor.d.ts.map +1 -1
  202. package/dist/esm/sdk/sdk.d.ts +6 -0
  203. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  204. package/dist/esm/sdk/sdk.js +8 -0
  205. package/dist/esm/sdk/sdk.js.map +1 -1
  206. package/jsr.json +1 -1
  207. package/package.json +1 -1
  208. package/src/funcs/councilsGet.ts +167 -0
  209. package/src/funcs/councilsList.ts +167 -0
  210. package/src/funcs/epcGetByLocationId.ts +172 -0
  211. package/src/lib/config.ts +4 -4
  212. package/src/sdk/councils.ts +45 -0
  213. package/src/sdk/epc.ts +27 -0
  214. package/src/sdk/models/operations/getcouncilbyproviderid.ts +61 -0
  215. package/src/sdk/models/operations/getepcbylocationid.ts +895 -0
  216. package/src/sdk/models/operations/getlistingbyid.ts +2 -2
  217. package/src/sdk/models/operations/getlistingsbylocation.ts +2 -2
  218. package/src/sdk/models/operations/getnearestpoi.ts +9 -9
  219. package/src/sdk/models/operations/index.ts +3 -0
  220. package/src/sdk/models/operations/listcouncils.ts +131 -0
  221. package/src/sdk/models/operations/querylistings.ts +2 -2
  222. package/src/sdk/models/operations/querylistingsbysource.ts +2 -2
  223. package/src/sdk/models/operations/resolveaddress.ts +232 -5
  224. package/src/sdk/models/shared/council.ts +191 -0
  225. package/src/sdk/models/shared/councilbranding.ts +77 -0
  226. package/src/sdk/models/shared/councilcontactdetails.ts +112 -0
  227. package/src/sdk/models/shared/councilerrorresponse.ts +73 -0
  228. package/src/sdk/models/shared/councillistresponse.ts +80 -0
  229. package/src/sdk/models/shared/councilmetadata.ts +64 -0
  230. package/src/sdk/models/shared/councilserviceurls.ts +57 -0
  231. package/src/sdk/models/shared/index.ts +7 -0
  232. package/src/sdk/models/shared/listing.ts +13 -13
  233. package/src/sdk/models/shared/propertyaddress.ts +1 -1
  234. package/src/sdk/models/shared/school.ts +24 -21
  235. package/src/sdk/models/shared/streetdescriptor.ts +1 -1
  236. package/src/sdk/sdk.ts +12 -0
@@ -0,0 +1,895 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { remap as remap$ } from "../../../lib/primitives.js";
7
+ import { safeParse } from "../../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
9
+ import { Result as SafeParseResult } from "../../types/fp.js";
10
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
+
12
+ export type GetEpcByLocationIdRequest = {
13
+ /**
14
+ * Maximum records to return (default: 100, max: 1000)
15
+ */
16
+ limit?: string | undefined;
17
+ /**
18
+ * Unique location identifier (UPRN)
19
+ */
20
+ locationId: string;
21
+ /**
22
+ * Pagination offset (default: 0)
23
+ */
24
+ offset?: string | undefined;
25
+ };
26
+
27
+ /**
28
+ * Error type category
29
+ */
30
+ export const GetEPCByLocationIdEPCType = {
31
+ ApiError: "api_error",
32
+ InvalidRequestError: "invalid_request_error",
33
+ AuthenticationError: "authentication_error",
34
+ RateLimitError: "rate_limit_error",
35
+ } as const;
36
+ /**
37
+ * Error type category
38
+ */
39
+ export type GetEPCByLocationIdEPCType = ClosedEnum<
40
+ typeof GetEPCByLocationIdEPCType
41
+ >;
42
+
43
+ export type GetEPCByLocationIdEPCError = {
44
+ /**
45
+ * Machine-readable error code
46
+ */
47
+ code?: string | undefined;
48
+ /**
49
+ * URL to relevant documentation
50
+ */
51
+ docUrl?: string | undefined;
52
+ /**
53
+ * Human-readable error message
54
+ */
55
+ message: string;
56
+ /**
57
+ * Parameter that caused the error
58
+ */
59
+ param?: string | undefined;
60
+ /**
61
+ * Error type category
62
+ */
63
+ type: GetEPCByLocationIdEPCType;
64
+ };
65
+
66
+ /**
67
+ * Error response
68
+ */
69
+ export type GetEPCByLocationIdEPCResponseResponseBody = {
70
+ error: GetEPCByLocationIdEPCError;
71
+ };
72
+
73
+ /**
74
+ * Error type category
75
+ */
76
+ export const GetEpcByLocationIdType = {
77
+ ApiError: "api_error",
78
+ InvalidRequestError: "invalid_request_error",
79
+ AuthenticationError: "authentication_error",
80
+ RateLimitError: "rate_limit_error",
81
+ } as const;
82
+ /**
83
+ * Error type category
84
+ */
85
+ export type GetEpcByLocationIdType = ClosedEnum<typeof GetEpcByLocationIdType>;
86
+
87
+ export type GetEpcByLocationIdError = {
88
+ /**
89
+ * Machine-readable error code
90
+ */
91
+ code?: string | undefined;
92
+ /**
93
+ * URL to relevant documentation
94
+ */
95
+ docUrl?: string | undefined;
96
+ /**
97
+ * Human-readable error message
98
+ */
99
+ message: string;
100
+ /**
101
+ * Parameter that caused the error
102
+ */
103
+ param?: string | undefined;
104
+ /**
105
+ * Error type category
106
+ */
107
+ type: GetEpcByLocationIdType;
108
+ };
109
+
110
+ /**
111
+ * Error response
112
+ */
113
+ export type GetEPCByLocationIdEPCResponseBody = {
114
+ error: GetEpcByLocationIdError;
115
+ };
116
+
117
+ /**
118
+ * Property construction age information
119
+ */
120
+ export type ConstructionAge = {
121
+ band?: string | undefined;
122
+ description?: string | undefined;
123
+ yearFrom?: number | undefined;
124
+ yearTo?: number | undefined;
125
+ };
126
+
127
+ /**
128
+ * Location attributes
129
+ */
130
+ export type Location = {
131
+ latitude?: number | undefined;
132
+ longitude?: number | undefined;
133
+ postcode?: string | undefined;
134
+ };
135
+
136
+ /**
137
+ * Raw address attributes from EPC data
138
+ */
139
+ export type RawAddress = {
140
+ address1?: string | undefined;
141
+ address2?: string | null | undefined;
142
+ address3?: string | null | undefined;
143
+ };
144
+
145
+ /**
146
+ * EPC (Energy Performance Certificate) record
147
+ */
148
+ export type GetEpcByLocationIdResult = {
149
+ /**
150
+ * Building reference number
151
+ */
152
+ buildingReferenceNumber: string | null;
153
+ /**
154
+ * Built form (e.g., Detached, Semi-Detached)
155
+ */
156
+ builtForm: string | null;
157
+ /**
158
+ * Current CO2 per floor area
159
+ */
160
+ co2EmissCurrPerFloorArea: number | null;
161
+ /**
162
+ * Current CO2 emissions (tonnes/year)
163
+ */
164
+ co2EmissionsCurrent: number | null;
165
+ /**
166
+ * Potential CO2 emissions (tonnes/year)
167
+ */
168
+ co2EmissionsPotential: number | null;
169
+ /**
170
+ * Constituency code
171
+ */
172
+ constituency: string | null;
173
+ /**
174
+ * Constituency name
175
+ */
176
+ constituencyLabel: string | null;
177
+ /**
178
+ * Property construction age information
179
+ */
180
+ constructionAge?: ConstructionAge | null | undefined;
181
+ /**
182
+ * Geographic coordinates
183
+ */
184
+ coordinates?: any | null | undefined;
185
+ /**
186
+ * County
187
+ */
188
+ county: string | null;
189
+ /**
190
+ * Record creation timestamp
191
+ */
192
+ createdAt: string;
193
+ /**
194
+ * Current energy efficiency score (1-100)
195
+ */
196
+ currentEnergyEfficiency: number | null;
197
+ /**
198
+ * Current energy rating (A-G)
199
+ */
200
+ currentEnergyRating: string | null;
201
+ /**
202
+ * Formatted display address
203
+ */
204
+ displayAddress: string | null;
205
+ /**
206
+ * Current energy consumption (kWh/year)
207
+ */
208
+ energyConsumptionCurrent: number | null;
209
+ /**
210
+ * Potential energy consumption (kWh/year)
211
+ */
212
+ energyConsumptionPotential: number | null;
213
+ /**
214
+ * Energy tariff
215
+ */
216
+ energyTariff: string | null;
217
+ /**
218
+ * Current environmental impact rating
219
+ */
220
+ environmentImpactCurrent: number | null;
221
+ /**
222
+ * Potential environmental impact rating
223
+ */
224
+ environmentImpactPotential: number | null;
225
+ /**
226
+ * Number of extensions
227
+ */
228
+ extensionCount: number | null;
229
+ /**
230
+ * Number of storeys in flat
231
+ */
232
+ flatStoreyCount: string | null;
233
+ /**
234
+ * Whether flat is on top storey
235
+ */
236
+ flatTopStorey: string | null;
237
+ /**
238
+ * Floor description
239
+ */
240
+ floorDescription: string | null;
241
+ /**
242
+ * Floor energy efficiency
243
+ */
244
+ floorEnergyEff: string | null;
245
+ /**
246
+ * Floor environmental efficiency
247
+ */
248
+ floorEnvEff: string | null;
249
+ /**
250
+ * Floor height
251
+ */
252
+ floorHeight: number | null;
253
+ /**
254
+ * Floor level
255
+ */
256
+ floorLevel: string | null;
257
+ /**
258
+ * Glazed area
259
+ */
260
+ glazedArea: string | null;
261
+ /**
262
+ * Glazed type
263
+ */
264
+ glazedType: string | null;
265
+ /**
266
+ * Heat loss corridor
267
+ */
268
+ heatLossCorridoor: string | null;
269
+ /**
270
+ * Current annual heating cost (£)
271
+ */
272
+ heatingCostCurrent: number | null;
273
+ /**
274
+ * Potential annual heating cost (£)
275
+ */
276
+ heatingCostPotential: number | null;
277
+ /**
278
+ * Current annual hot water cost (£)
279
+ */
280
+ hotWaterCostCurrent: number | null;
281
+ /**
282
+ * Potential annual hot water cost (£)
283
+ */
284
+ hotWaterCostPotential: number | null;
285
+ /**
286
+ * Hot water energy efficiency
287
+ */
288
+ hotWaterEnergyEff: string | null;
289
+ /**
290
+ * Hot water environmental efficiency
291
+ */
292
+ hotWaterEnvEff: string | null;
293
+ /**
294
+ * Hot water description
295
+ */
296
+ hotwaterDescription: string | null;
297
+ /**
298
+ * Internal record ID
299
+ */
300
+ id: number;
301
+ /**
302
+ * Date of EPC inspection
303
+ */
304
+ inspectionDate: string | null;
305
+ /**
306
+ * EPC inspection reference
307
+ */
308
+ inspectionId: string;
309
+ /**
310
+ * Current annual lighting cost (£)
311
+ */
312
+ lightingCostCurrent: number | null;
313
+ /**
314
+ * Potential annual lighting cost (£)
315
+ */
316
+ lightingCostPotential: number | null;
317
+ /**
318
+ * Lighting description
319
+ */
320
+ lightingDescription: string | null;
321
+ /**
322
+ * Lighting energy efficiency
323
+ */
324
+ lightingEnergyEff: string | null;
325
+ /**
326
+ * Lighting environmental efficiency
327
+ */
328
+ lightingEnvEff: string | null;
329
+ /**
330
+ * Local authority code
331
+ */
332
+ localAuthority: string | null;
333
+ /**
334
+ * Local authority name
335
+ */
336
+ localAuthorityLabel: string | null;
337
+ /**
338
+ * Location attributes
339
+ */
340
+ location: Location;
341
+ /**
342
+ * Location identifier (UPRN)
343
+ */
344
+ locationId: number | null;
345
+ /**
346
+ * Date EPC was lodged
347
+ */
348
+ lodgementDate: string | null;
349
+ /**
350
+ * Percentage of low energy lighting
351
+ */
352
+ lowEnergyLighting: number | null;
353
+ /**
354
+ * Main fuel type
355
+ */
356
+ mainFuel: string | null;
357
+ /**
358
+ * Main heating controls
359
+ */
360
+ mainHeatingControls: string | null;
361
+ /**
362
+ * Main heating description
363
+ */
364
+ mainheatDescription: string | null;
365
+ /**
366
+ * Main heating energy efficiency
367
+ */
368
+ mainheatEnergyEff: string | null;
369
+ /**
370
+ * Main heating environmental efficiency
371
+ */
372
+ mainheatEnvEff: string | null;
373
+ /**
374
+ * Heating controls energy efficiency
375
+ */
376
+ mainheatcEnergyEff: string | null;
377
+ /**
378
+ * Heating controls environmental efficiency
379
+ */
380
+ mainheatcEnvEff: string | null;
381
+ /**
382
+ * Heating controls description
383
+ */
384
+ mainheatcontDescription: string | null;
385
+ /**
386
+ * Mains gas availability
387
+ */
388
+ mainsGasFlag: string | null;
389
+ /**
390
+ * Mechanical ventilation type
391
+ */
392
+ mechanicalVentilation: string | null;
393
+ /**
394
+ * Proportion of multi-glazing (%)
395
+ */
396
+ multiGlazeProportion: number | null;
397
+ /**
398
+ * Number of habitable rooms
399
+ */
400
+ numberHabitableRooms: number | null;
401
+ /**
402
+ * Number of heated rooms
403
+ */
404
+ numberHeatedRooms: number | null;
405
+ /**
406
+ * Number of open fireplaces
407
+ */
408
+ numberOpenFireplaces: number | null;
409
+ /**
410
+ * Photo supply
411
+ */
412
+ photoSupply: string | null;
413
+ /**
414
+ * Postcode without spaces
415
+ */
416
+ postcodeNoSpace: string;
417
+ /**
418
+ * Potential energy efficiency score (1-100)
419
+ */
420
+ potentialEnergyEfficiency: number | null;
421
+ /**
422
+ * Potential energy rating (A-G)
423
+ */
424
+ potentialEnergyRating: string | null;
425
+ /**
426
+ * Property type (e.g., House, Flat)
427
+ */
428
+ propertyType: string | null;
429
+ /**
430
+ * Raw address attributes from EPC data
431
+ */
432
+ rawAddress: RawAddress;
433
+ /**
434
+ * Roof description
435
+ */
436
+ roofDescription: string | null;
437
+ /**
438
+ * Roof energy efficiency
439
+ */
440
+ roofEnergyEff: string | null;
441
+ /**
442
+ * Roof environmental efficiency
443
+ */
444
+ roofEnvEff: string | null;
445
+ /**
446
+ * Secondary heating description
447
+ */
448
+ secondheatDescription: string | null;
449
+ /**
450
+ * Secondary heating energy efficiency
451
+ */
452
+ sheatingEnergyEff: string | null;
453
+ /**
454
+ * Secondary heating environmental efficiency
455
+ */
456
+ sheatingEnvEff: string | null;
457
+ /**
458
+ * Solar water heating flag
459
+ */
460
+ solarWaterHeatingFlag: string | null;
461
+ /**
462
+ * Data source identifier
463
+ */
464
+ source: string;
465
+ /**
466
+ * Tenure type (e.g., Owner-occupied)
467
+ */
468
+ tenure: string | null;
469
+ /**
470
+ * Total floor area in sq m
471
+ */
472
+ totalFloorArea: number | null;
473
+ /**
474
+ * Transaction type (e.g., marketed sale)
475
+ */
476
+ transactionType: string | null;
477
+ /**
478
+ * Unheated corridor length
479
+ */
480
+ unheatedCorridorLength: number | null;
481
+ /**
482
+ * Record last update timestamp
483
+ */
484
+ updatedAt: string;
485
+ /**
486
+ * Walls description
487
+ */
488
+ wallsDescription: string | null;
489
+ /**
490
+ * Walls energy efficiency
491
+ */
492
+ wallsEnergyEff: string | null;
493
+ /**
494
+ * Walls environmental efficiency
495
+ */
496
+ wallsEnvEff: string | null;
497
+ /**
498
+ * Number of wind turbines
499
+ */
500
+ windTurbineCount: number | null;
501
+ /**
502
+ * Windows description
503
+ */
504
+ windowsDescription: string | null;
505
+ /**
506
+ * Windows energy efficiency
507
+ */
508
+ windowsEnergyEff: string | null;
509
+ /**
510
+ * Windows environmental efficiency
511
+ */
512
+ windowsEnvEff: string | null;
513
+ };
514
+
515
+ /**
516
+ * EPC records retrieved successfully
517
+ */
518
+ export type GetEpcByLocationIdResponseBody = {
519
+ /**
520
+ * Whether more records are available
521
+ */
522
+ hasMore: boolean;
523
+ /**
524
+ * Offset for next page of results
525
+ */
526
+ nextOffset?: number | undefined;
527
+ result: Array<GetEpcByLocationIdResult>;
528
+ /**
529
+ * Number of records in this response
530
+ */
531
+ size: number;
532
+ success: boolean;
533
+ /**
534
+ * Total number of EPC records for this location
535
+ */
536
+ totalSize: number;
537
+ };
538
+
539
+ export type GetEpcByLocationIdResponse =
540
+ | GetEpcByLocationIdResponseBody
541
+ | GetEPCByLocationIdEPCResponseBody
542
+ | GetEPCByLocationIdEPCResponseResponseBody;
543
+
544
+ /** @internal */
545
+ export type GetEpcByLocationIdRequest$Outbound = {
546
+ limit?: string | undefined;
547
+ locationId: string;
548
+ offset?: string | undefined;
549
+ };
550
+
551
+ /** @internal */
552
+ export const GetEpcByLocationIdRequest$outboundSchema: z.ZodType<
553
+ GetEpcByLocationIdRequest$Outbound,
554
+ z.ZodTypeDef,
555
+ GetEpcByLocationIdRequest
556
+ > = z.object({
557
+ limit: z.string().optional(),
558
+ locationId: z.string(),
559
+ offset: z.string().optional(),
560
+ });
561
+
562
+ export function getEpcByLocationIdRequestToJSON(
563
+ getEpcByLocationIdRequest: GetEpcByLocationIdRequest,
564
+ ): string {
565
+ return JSON.stringify(
566
+ GetEpcByLocationIdRequest$outboundSchema.parse(getEpcByLocationIdRequest),
567
+ );
568
+ }
569
+
570
+ /** @internal */
571
+ export const GetEPCByLocationIdEPCType$inboundSchema: z.ZodNativeEnum<
572
+ typeof GetEPCByLocationIdEPCType
573
+ > = z.nativeEnum(GetEPCByLocationIdEPCType);
574
+
575
+ /** @internal */
576
+ export const GetEPCByLocationIdEPCError$inboundSchema: z.ZodType<
577
+ GetEPCByLocationIdEPCError,
578
+ z.ZodTypeDef,
579
+ unknown
580
+ > = z.object({
581
+ code: z.string().optional(),
582
+ doc_url: z.string().optional(),
583
+ message: z.string(),
584
+ param: z.string().optional(),
585
+ type: GetEPCByLocationIdEPCType$inboundSchema,
586
+ }).transform((v) => {
587
+ return remap$(v, {
588
+ "doc_url": "docUrl",
589
+ });
590
+ });
591
+
592
+ export function getEPCByLocationIdEPCErrorFromJSON(
593
+ jsonString: string,
594
+ ): SafeParseResult<GetEPCByLocationIdEPCError, SDKValidationError> {
595
+ return safeParse(
596
+ jsonString,
597
+ (x) => GetEPCByLocationIdEPCError$inboundSchema.parse(JSON.parse(x)),
598
+ `Failed to parse 'GetEPCByLocationIdEPCError' from JSON`,
599
+ );
600
+ }
601
+
602
+ /** @internal */
603
+ export const GetEPCByLocationIdEPCResponseResponseBody$inboundSchema: z.ZodType<
604
+ GetEPCByLocationIdEPCResponseResponseBody,
605
+ z.ZodTypeDef,
606
+ unknown
607
+ > = z.object({
608
+ error: z.lazy(() => GetEPCByLocationIdEPCError$inboundSchema),
609
+ });
610
+
611
+ export function getEPCByLocationIdEPCResponseResponseBodyFromJSON(
612
+ jsonString: string,
613
+ ): SafeParseResult<
614
+ GetEPCByLocationIdEPCResponseResponseBody,
615
+ SDKValidationError
616
+ > {
617
+ return safeParse(
618
+ jsonString,
619
+ (x) =>
620
+ GetEPCByLocationIdEPCResponseResponseBody$inboundSchema.parse(
621
+ JSON.parse(x),
622
+ ),
623
+ `Failed to parse 'GetEPCByLocationIdEPCResponseResponseBody' from JSON`,
624
+ );
625
+ }
626
+
627
+ /** @internal */
628
+ export const GetEpcByLocationIdType$inboundSchema: z.ZodNativeEnum<
629
+ typeof GetEpcByLocationIdType
630
+ > = z.nativeEnum(GetEpcByLocationIdType);
631
+
632
+ /** @internal */
633
+ export const GetEpcByLocationIdError$inboundSchema: z.ZodType<
634
+ GetEpcByLocationIdError,
635
+ z.ZodTypeDef,
636
+ unknown
637
+ > = z.object({
638
+ code: z.string().optional(),
639
+ doc_url: z.string().optional(),
640
+ message: z.string(),
641
+ param: z.string().optional(),
642
+ type: GetEpcByLocationIdType$inboundSchema,
643
+ }).transform((v) => {
644
+ return remap$(v, {
645
+ "doc_url": "docUrl",
646
+ });
647
+ });
648
+
649
+ export function getEpcByLocationIdErrorFromJSON(
650
+ jsonString: string,
651
+ ): SafeParseResult<GetEpcByLocationIdError, SDKValidationError> {
652
+ return safeParse(
653
+ jsonString,
654
+ (x) => GetEpcByLocationIdError$inboundSchema.parse(JSON.parse(x)),
655
+ `Failed to parse 'GetEpcByLocationIdError' from JSON`,
656
+ );
657
+ }
658
+
659
+ /** @internal */
660
+ export const GetEPCByLocationIdEPCResponseBody$inboundSchema: z.ZodType<
661
+ GetEPCByLocationIdEPCResponseBody,
662
+ z.ZodTypeDef,
663
+ unknown
664
+ > = z.object({
665
+ error: z.lazy(() => GetEpcByLocationIdError$inboundSchema),
666
+ });
667
+
668
+ export function getEPCByLocationIdEPCResponseBodyFromJSON(
669
+ jsonString: string,
670
+ ): SafeParseResult<GetEPCByLocationIdEPCResponseBody, SDKValidationError> {
671
+ return safeParse(
672
+ jsonString,
673
+ (x) => GetEPCByLocationIdEPCResponseBody$inboundSchema.parse(JSON.parse(x)),
674
+ `Failed to parse 'GetEPCByLocationIdEPCResponseBody' from JSON`,
675
+ );
676
+ }
677
+
678
+ /** @internal */
679
+ export const ConstructionAge$inboundSchema: z.ZodType<
680
+ ConstructionAge,
681
+ z.ZodTypeDef,
682
+ unknown
683
+ > = z.object({
684
+ band: z.string().optional(),
685
+ description: z.string().optional(),
686
+ yearFrom: z.number().optional(),
687
+ yearTo: z.number().optional(),
688
+ });
689
+
690
+ export function constructionAgeFromJSON(
691
+ jsonString: string,
692
+ ): SafeParseResult<ConstructionAge, SDKValidationError> {
693
+ return safeParse(
694
+ jsonString,
695
+ (x) => ConstructionAge$inboundSchema.parse(JSON.parse(x)),
696
+ `Failed to parse 'ConstructionAge' from JSON`,
697
+ );
698
+ }
699
+
700
+ /** @internal */
701
+ export const Location$inboundSchema: z.ZodType<
702
+ Location,
703
+ z.ZodTypeDef,
704
+ unknown
705
+ > = z.object({
706
+ latitude: z.number().optional(),
707
+ longitude: z.number().optional(),
708
+ postcode: z.string().optional(),
709
+ });
710
+
711
+ export function locationFromJSON(
712
+ jsonString: string,
713
+ ): SafeParseResult<Location, SDKValidationError> {
714
+ return safeParse(
715
+ jsonString,
716
+ (x) => Location$inboundSchema.parse(JSON.parse(x)),
717
+ `Failed to parse 'Location' from JSON`,
718
+ );
719
+ }
720
+
721
+ /** @internal */
722
+ export const RawAddress$inboundSchema: z.ZodType<
723
+ RawAddress,
724
+ z.ZodTypeDef,
725
+ unknown
726
+ > = z.object({
727
+ address1: z.string().optional(),
728
+ address2: z.nullable(z.string()).optional(),
729
+ address3: z.nullable(z.string()).optional(),
730
+ });
731
+
732
+ export function rawAddressFromJSON(
733
+ jsonString: string,
734
+ ): SafeParseResult<RawAddress, SDKValidationError> {
735
+ return safeParse(
736
+ jsonString,
737
+ (x) => RawAddress$inboundSchema.parse(JSON.parse(x)),
738
+ `Failed to parse 'RawAddress' from JSON`,
739
+ );
740
+ }
741
+
742
+ /** @internal */
743
+ export const GetEpcByLocationIdResult$inboundSchema: z.ZodType<
744
+ GetEpcByLocationIdResult,
745
+ z.ZodTypeDef,
746
+ unknown
747
+ > = z.object({
748
+ buildingReferenceNumber: z.nullable(z.string()),
749
+ builtForm: z.nullable(z.string()),
750
+ co2EmissCurrPerFloorArea: z.nullable(z.number()),
751
+ co2EmissionsCurrent: z.nullable(z.number()),
752
+ co2EmissionsPotential: z.nullable(z.number()),
753
+ constituency: z.nullable(z.string()),
754
+ constituencyLabel: z.nullable(z.string()),
755
+ constructionAge: z.nullable(z.lazy(() => ConstructionAge$inboundSchema))
756
+ .optional(),
757
+ coordinates: z.nullable(z.any()).optional(),
758
+ county: z.nullable(z.string()),
759
+ createdAt: z.string(),
760
+ currentEnergyEfficiency: z.nullable(z.number()),
761
+ currentEnergyRating: z.nullable(z.string()),
762
+ displayAddress: z.nullable(z.string()),
763
+ energyConsumptionCurrent: z.nullable(z.number()),
764
+ energyConsumptionPotential: z.nullable(z.number()),
765
+ energyTariff: z.nullable(z.string()),
766
+ environmentImpactCurrent: z.nullable(z.number()),
767
+ environmentImpactPotential: z.nullable(z.number()),
768
+ extensionCount: z.nullable(z.number()),
769
+ flatStoreyCount: z.nullable(z.string()),
770
+ flatTopStorey: z.nullable(z.string()),
771
+ floorDescription: z.nullable(z.string()),
772
+ floorEnergyEff: z.nullable(z.string()),
773
+ floorEnvEff: z.nullable(z.string()),
774
+ floorHeight: z.nullable(z.number()),
775
+ floorLevel: z.nullable(z.string()),
776
+ glazedArea: z.nullable(z.string()),
777
+ glazedType: z.nullable(z.string()),
778
+ heatLossCorridoor: z.nullable(z.string()),
779
+ heatingCostCurrent: z.nullable(z.number()),
780
+ heatingCostPotential: z.nullable(z.number()),
781
+ hotWaterCostCurrent: z.nullable(z.number()),
782
+ hotWaterCostPotential: z.nullable(z.number()),
783
+ hotWaterEnergyEff: z.nullable(z.string()),
784
+ hotWaterEnvEff: z.nullable(z.string()),
785
+ hotwaterDescription: z.nullable(z.string()),
786
+ id: z.number(),
787
+ inspectionDate: z.nullable(z.string()),
788
+ inspectionId: z.string(),
789
+ lightingCostCurrent: z.nullable(z.number()),
790
+ lightingCostPotential: z.nullable(z.number()),
791
+ lightingDescription: z.nullable(z.string()),
792
+ lightingEnergyEff: z.nullable(z.string()),
793
+ lightingEnvEff: z.nullable(z.string()),
794
+ localAuthority: z.nullable(z.string()),
795
+ localAuthorityLabel: z.nullable(z.string()),
796
+ location: z.lazy(() => Location$inboundSchema),
797
+ locationId: z.nullable(z.number()),
798
+ lodgementDate: z.nullable(z.string()),
799
+ lowEnergyLighting: z.nullable(z.number()),
800
+ mainFuel: z.nullable(z.string()),
801
+ mainHeatingControls: z.nullable(z.string()),
802
+ mainheatDescription: z.nullable(z.string()),
803
+ mainheatEnergyEff: z.nullable(z.string()),
804
+ mainheatEnvEff: z.nullable(z.string()),
805
+ mainheatcEnergyEff: z.nullable(z.string()),
806
+ mainheatcEnvEff: z.nullable(z.string()),
807
+ mainheatcontDescription: z.nullable(z.string()),
808
+ mainsGasFlag: z.nullable(z.string()),
809
+ mechanicalVentilation: z.nullable(z.string()),
810
+ multiGlazeProportion: z.nullable(z.number()),
811
+ numberHabitableRooms: z.nullable(z.number()),
812
+ numberHeatedRooms: z.nullable(z.number()),
813
+ numberOpenFireplaces: z.nullable(z.number()),
814
+ photoSupply: z.nullable(z.string()),
815
+ postcodeNoSpace: z.string(),
816
+ potentialEnergyEfficiency: z.nullable(z.number()),
817
+ potentialEnergyRating: z.nullable(z.string()),
818
+ propertyType: z.nullable(z.string()),
819
+ rawAddress: z.lazy(() => RawAddress$inboundSchema),
820
+ roofDescription: z.nullable(z.string()),
821
+ roofEnergyEff: z.nullable(z.string()),
822
+ roofEnvEff: z.nullable(z.string()),
823
+ secondheatDescription: z.nullable(z.string()),
824
+ sheatingEnergyEff: z.nullable(z.string()),
825
+ sheatingEnvEff: z.nullable(z.string()),
826
+ solarWaterHeatingFlag: z.nullable(z.string()),
827
+ source: z.string(),
828
+ tenure: z.nullable(z.string()),
829
+ totalFloorArea: z.nullable(z.number()),
830
+ transactionType: z.nullable(z.string()),
831
+ unheatedCorridorLength: z.nullable(z.number()),
832
+ updatedAt: z.string(),
833
+ wallsDescription: z.nullable(z.string()),
834
+ wallsEnergyEff: z.nullable(z.string()),
835
+ wallsEnvEff: z.nullable(z.string()),
836
+ windTurbineCount: z.nullable(z.number()),
837
+ windowsDescription: z.nullable(z.string()),
838
+ windowsEnergyEff: z.nullable(z.string()),
839
+ windowsEnvEff: z.nullable(z.string()),
840
+ });
841
+
842
+ export function getEpcByLocationIdResultFromJSON(
843
+ jsonString: string,
844
+ ): SafeParseResult<GetEpcByLocationIdResult, SDKValidationError> {
845
+ return safeParse(
846
+ jsonString,
847
+ (x) => GetEpcByLocationIdResult$inboundSchema.parse(JSON.parse(x)),
848
+ `Failed to parse 'GetEpcByLocationIdResult' from JSON`,
849
+ );
850
+ }
851
+
852
+ /** @internal */
853
+ export const GetEpcByLocationIdResponseBody$inboundSchema: z.ZodType<
854
+ GetEpcByLocationIdResponseBody,
855
+ z.ZodTypeDef,
856
+ unknown
857
+ > = z.object({
858
+ hasMore: z.boolean(),
859
+ nextOffset: z.number().optional(),
860
+ result: z.array(z.lazy(() => GetEpcByLocationIdResult$inboundSchema)),
861
+ size: z.number(),
862
+ success: z.boolean(),
863
+ totalSize: z.number(),
864
+ });
865
+
866
+ export function getEpcByLocationIdResponseBodyFromJSON(
867
+ jsonString: string,
868
+ ): SafeParseResult<GetEpcByLocationIdResponseBody, SDKValidationError> {
869
+ return safeParse(
870
+ jsonString,
871
+ (x) => GetEpcByLocationIdResponseBody$inboundSchema.parse(JSON.parse(x)),
872
+ `Failed to parse 'GetEpcByLocationIdResponseBody' from JSON`,
873
+ );
874
+ }
875
+
876
+ /** @internal */
877
+ export const GetEpcByLocationIdResponse$inboundSchema: z.ZodType<
878
+ GetEpcByLocationIdResponse,
879
+ z.ZodTypeDef,
880
+ unknown
881
+ > = z.union([
882
+ z.lazy(() => GetEpcByLocationIdResponseBody$inboundSchema),
883
+ z.lazy(() => GetEPCByLocationIdEPCResponseBody$inboundSchema),
884
+ z.lazy(() => GetEPCByLocationIdEPCResponseResponseBody$inboundSchema),
885
+ ]);
886
+
887
+ export function getEpcByLocationIdResponseFromJSON(
888
+ jsonString: string,
889
+ ): SafeParseResult<GetEpcByLocationIdResponse, SDKValidationError> {
890
+ return safeParse(
891
+ jsonString,
892
+ (x) => GetEpcByLocationIdResponse$inboundSchema.parse(JSON.parse(x)),
893
+ `Failed to parse 'GetEpcByLocationIdResponse' from JSON`,
894
+ );
895
+ }