@vepler/sdk 7.10.0 → 7.18.0

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 (199) hide show
  1. package/README.md +468 -443
  2. package/dist/commonjs/funcs/placesAttributes.d.ts +18 -0
  3. package/dist/commonjs/funcs/placesAttributes.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/placesAttributes.js +109 -0
  5. package/dist/commonjs/funcs/placesAttributes.js.map +1 -0
  6. package/dist/commonjs/funcs/placesGet.d.ts +19 -0
  7. package/dist/commonjs/funcs/placesGet.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/placesGet.js +125 -0
  9. package/dist/commonjs/funcs/placesGet.js.map +1 -0
  10. package/dist/commonjs/funcs/placesNearest.d.ts +19 -0
  11. package/dist/commonjs/funcs/placesNearest.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/placesNearest.js +127 -0
  13. package/dist/commonjs/funcs/placesNearest.js.map +1 -0
  14. package/dist/commonjs/lib/config.d.ts +3 -3
  15. package/dist/commonjs/lib/config.js +3 -3
  16. package/dist/commonjs/sdk/models/errors/getnearestplaces.d.ts +396 -0
  17. package/dist/commonjs/sdk/models/errors/getnearestplaces.d.ts.map +1 -0
  18. package/dist/commonjs/sdk/models/errors/getnearestplaces.js +381 -0
  19. package/dist/commonjs/sdk/models/errors/getnearestplaces.js.map +1 -0
  20. package/dist/commonjs/sdk/models/errors/getplace.d.ts +461 -0
  21. package/dist/commonjs/sdk/models/errors/getplace.d.ts.map +1 -0
  22. package/dist/commonjs/sdk/models/errors/getplace.js +437 -0
  23. package/dist/commonjs/sdk/models/errors/getplace.js.map +1 -0
  24. package/dist/commonjs/sdk/models/errors/getplaceattributes.d.ts +201 -0
  25. package/dist/commonjs/sdk/models/errors/getplaceattributes.d.ts.map +1 -0
  26. package/dist/commonjs/sdk/models/errors/getplaceattributes.js +213 -0
  27. package/dist/commonjs/sdk/models/errors/getplaceattributes.js.map +1 -0
  28. package/dist/commonjs/sdk/models/errors/index.d.ts +3 -0
  29. package/dist/commonjs/sdk/models/errors/index.d.ts.map +1 -1
  30. package/dist/commonjs/sdk/models/errors/index.js +3 -0
  31. package/dist/commonjs/sdk/models/errors/index.js.map +1 -1
  32. package/dist/commonjs/sdk/models/operations/getnearestplaces.d.ts +35 -0
  33. package/dist/commonjs/sdk/models/operations/getnearestplaces.d.ts.map +1 -0
  34. package/dist/commonjs/sdk/models/operations/getnearestplaces.js +53 -0
  35. package/dist/commonjs/sdk/models/operations/getnearestplaces.js.map +1 -0
  36. package/dist/commonjs/sdk/models/operations/getplace.d.ts +15 -0
  37. package/dist/commonjs/sdk/models/operations/getplace.d.ts.map +1 -0
  38. package/dist/commonjs/sdk/models/operations/getplace.js +49 -0
  39. package/dist/commonjs/sdk/models/operations/getplace.js.map +1 -0
  40. package/dist/commonjs/sdk/models/operations/index.d.ts +2 -0
  41. package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
  42. package/dist/commonjs/sdk/models/operations/index.js +2 -0
  43. package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
  44. package/dist/commonjs/sdk/models/shared/index.d.ts +7 -0
  45. package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
  46. package/dist/commonjs/sdk/models/shared/index.js +7 -0
  47. package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
  48. package/dist/commonjs/sdk/models/shared/marketstatus.d.ts +1 -1
  49. package/dist/commonjs/sdk/models/shared/poiattribute.d.ts +37 -0
  50. package/dist/commonjs/sdk/models/shared/poiattribute.d.ts.map +1 -0
  51. package/dist/commonjs/sdk/models/shared/poiattribute.js +56 -0
  52. package/dist/commonjs/sdk/models/shared/poiattribute.js.map +1 -0
  53. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.d.ts +17 -0
  54. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.d.ts.map +1 -0
  55. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.js +51 -0
  56. package/dist/commonjs/sdk/models/shared/poiattributecatalogue.js.map +1 -0
  57. package/dist/commonjs/sdk/models/shared/poifieldprovenance.d.ts +35 -0
  58. package/dist/commonjs/sdk/models/shared/poifieldprovenance.d.ts.map +1 -0
  59. package/dist/commonjs/sdk/models/shared/poifieldprovenance.js +62 -0
  60. package/dist/commonjs/sdk/models/shared/poifieldprovenance.js.map +1 -0
  61. package/dist/commonjs/sdk/models/shared/poinearestresponse.d.ts +217 -0
  62. package/dist/commonjs/sdk/models/shared/poinearestresponse.d.ts.map +1 -0
  63. package/dist/commonjs/sdk/models/shared/poinearestresponse.js +140 -0
  64. package/dist/commonjs/sdk/models/shared/poinearestresponse.js.map +1 -0
  65. package/dist/commonjs/sdk/models/shared/poiplace.d.ts +253 -0
  66. package/dist/commonjs/sdk/models/shared/poiplace.d.ts.map +1 -0
  67. package/dist/commonjs/sdk/models/shared/poiplace.js +151 -0
  68. package/dist/commonjs/sdk/models/shared/poiplace.js.map +1 -0
  69. package/dist/commonjs/sdk/models/shared/poiprovenance.d.ts +81 -0
  70. package/dist/commonjs/sdk/models/shared/poiprovenance.d.ts.map +1 -0
  71. package/dist/commonjs/sdk/models/shared/poiprovenance.js +67 -0
  72. package/dist/commonjs/sdk/models/shared/poiprovenance.js.map +1 -0
  73. package/dist/commonjs/sdk/models/shared/poiregistermatch.d.ts +48 -0
  74. package/dist/commonjs/sdk/models/shared/poiregistermatch.d.ts.map +1 -0
  75. package/dist/commonjs/sdk/models/shared/poiregistermatch.js +71 -0
  76. package/dist/commonjs/sdk/models/shared/poiregistermatch.js.map +1 -0
  77. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts +4 -4
  78. package/dist/commonjs/sdk/models/shared/pscexemption.d.ts.map +1 -1
  79. package/dist/commonjs/sdk/models/shared/pscexemption.js +6 -7
  80. package/dist/commonjs/sdk/models/shared/pscexemption.js.map +1 -1
  81. package/dist/commonjs/sdk/places.d.ts +27 -0
  82. package/dist/commonjs/sdk/places.d.ts.map +1 -0
  83. package/dist/commonjs/sdk/places.js +42 -0
  84. package/dist/commonjs/sdk/places.js.map +1 -0
  85. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  86. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  87. package/dist/commonjs/sdk/sdk.js +4 -0
  88. package/dist/commonjs/sdk/sdk.js.map +1 -1
  89. package/dist/esm/funcs/placesAttributes.d.ts +18 -0
  90. package/dist/esm/funcs/placesAttributes.d.ts.map +1 -0
  91. package/dist/esm/funcs/placesAttributes.js +73 -0
  92. package/dist/esm/funcs/placesAttributes.js.map +1 -0
  93. package/dist/esm/funcs/placesGet.d.ts +19 -0
  94. package/dist/esm/funcs/placesGet.d.ts.map +1 -0
  95. package/dist/esm/funcs/placesGet.js +89 -0
  96. package/dist/esm/funcs/placesGet.js.map +1 -0
  97. package/dist/esm/funcs/placesNearest.d.ts +19 -0
  98. package/dist/esm/funcs/placesNearest.d.ts.map +1 -0
  99. package/dist/esm/funcs/placesNearest.js +91 -0
  100. package/dist/esm/funcs/placesNearest.js.map +1 -0
  101. package/dist/esm/lib/config.d.ts +3 -3
  102. package/dist/esm/lib/config.js +3 -3
  103. package/dist/esm/sdk/models/errors/getnearestplaces.d.ts +396 -0
  104. package/dist/esm/sdk/models/errors/getnearestplaces.d.ts.map +1 -0
  105. package/dist/esm/sdk/models/errors/getnearestplaces.js +333 -0
  106. package/dist/esm/sdk/models/errors/getnearestplaces.js.map +1 -0
  107. package/dist/esm/sdk/models/errors/getplace.d.ts +461 -0
  108. package/dist/esm/sdk/models/errors/getplace.d.ts.map +1 -0
  109. package/dist/esm/sdk/models/errors/getplace.js +387 -0
  110. package/dist/esm/sdk/models/errors/getplace.js.map +1 -0
  111. package/dist/esm/sdk/models/errors/getplaceattributes.d.ts +201 -0
  112. package/dist/esm/sdk/models/errors/getplaceattributes.d.ts.map +1 -0
  113. package/dist/esm/sdk/models/errors/getplaceattributes.js +171 -0
  114. package/dist/esm/sdk/models/errors/getplaceattributes.js.map +1 -0
  115. package/dist/esm/sdk/models/errors/index.d.ts +3 -0
  116. package/dist/esm/sdk/models/errors/index.d.ts.map +1 -1
  117. package/dist/esm/sdk/models/errors/index.js +3 -0
  118. package/dist/esm/sdk/models/errors/index.js.map +1 -1
  119. package/dist/esm/sdk/models/operations/getnearestplaces.d.ts +35 -0
  120. package/dist/esm/sdk/models/operations/getnearestplaces.d.ts.map +1 -0
  121. package/dist/esm/sdk/models/operations/getnearestplaces.js +16 -0
  122. package/dist/esm/sdk/models/operations/getnearestplaces.js.map +1 -0
  123. package/dist/esm/sdk/models/operations/getplace.d.ts +15 -0
  124. package/dist/esm/sdk/models/operations/getplace.d.ts.map +1 -0
  125. package/dist/esm/sdk/models/operations/getplace.js +12 -0
  126. package/dist/esm/sdk/models/operations/getplace.js.map +1 -0
  127. package/dist/esm/sdk/models/operations/index.d.ts +2 -0
  128. package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
  129. package/dist/esm/sdk/models/operations/index.js +2 -0
  130. package/dist/esm/sdk/models/operations/index.js.map +1 -1
  131. package/dist/esm/sdk/models/shared/index.d.ts +7 -0
  132. package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
  133. package/dist/esm/sdk/models/shared/index.js +7 -0
  134. package/dist/esm/sdk/models/shared/index.js.map +1 -1
  135. package/dist/esm/sdk/models/shared/marketstatus.d.ts +1 -1
  136. package/dist/esm/sdk/models/shared/poiattribute.d.ts +37 -0
  137. package/dist/esm/sdk/models/shared/poiattribute.d.ts.map +1 -0
  138. package/dist/esm/sdk/models/shared/poiattribute.js +19 -0
  139. package/dist/esm/sdk/models/shared/poiattribute.js.map +1 -0
  140. package/dist/esm/sdk/models/shared/poiattributecatalogue.d.ts +17 -0
  141. package/dist/esm/sdk/models/shared/poiattributecatalogue.d.ts.map +1 -0
  142. package/dist/esm/sdk/models/shared/poiattributecatalogue.js +14 -0
  143. package/dist/esm/sdk/models/shared/poiattributecatalogue.js.map +1 -0
  144. package/dist/esm/sdk/models/shared/poifieldprovenance.d.ts +35 -0
  145. package/dist/esm/sdk/models/shared/poifieldprovenance.d.ts.map +1 -0
  146. package/dist/esm/sdk/models/shared/poifieldprovenance.js +25 -0
  147. package/dist/esm/sdk/models/shared/poifieldprovenance.js.map +1 -0
  148. package/dist/esm/sdk/models/shared/poinearestresponse.d.ts +217 -0
  149. package/dist/esm/sdk/models/shared/poinearestresponse.d.ts.map +1 -0
  150. package/dist/esm/sdk/models/shared/poinearestresponse.js +98 -0
  151. package/dist/esm/sdk/models/shared/poinearestresponse.js.map +1 -0
  152. package/dist/esm/sdk/models/shared/poiplace.d.ts +253 -0
  153. package/dist/esm/sdk/models/shared/poiplace.d.ts.map +1 -0
  154. package/dist/esm/sdk/models/shared/poiplace.js +110 -0
  155. package/dist/esm/sdk/models/shared/poiplace.js.map +1 -0
  156. package/dist/esm/sdk/models/shared/poiprovenance.d.ts +81 -0
  157. package/dist/esm/sdk/models/shared/poiprovenance.d.ts.map +1 -0
  158. package/dist/esm/sdk/models/shared/poiprovenance.js +30 -0
  159. package/dist/esm/sdk/models/shared/poiprovenance.js.map +1 -0
  160. package/dist/esm/sdk/models/shared/poiregistermatch.d.ts +48 -0
  161. package/dist/esm/sdk/models/shared/poiregistermatch.d.ts.map +1 -0
  162. package/dist/esm/sdk/models/shared/poiregistermatch.js +34 -0
  163. package/dist/esm/sdk/models/shared/poiregistermatch.js.map +1 -0
  164. package/dist/esm/sdk/models/shared/pscexemption.d.ts +4 -4
  165. package/dist/esm/sdk/models/shared/pscexemption.d.ts.map +1 -1
  166. package/dist/esm/sdk/models/shared/pscexemption.js +4 -5
  167. package/dist/esm/sdk/models/shared/pscexemption.js.map +1 -1
  168. package/dist/esm/sdk/places.d.ts +27 -0
  169. package/dist/esm/sdk/places.d.ts.map +1 -0
  170. package/dist/esm/sdk/places.js +38 -0
  171. package/dist/esm/sdk/places.js.map +1 -0
  172. package/dist/esm/sdk/sdk.d.ts +3 -0
  173. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  174. package/dist/esm/sdk/sdk.js +4 -0
  175. package/dist/esm/sdk/sdk.js.map +1 -1
  176. package/package.json +2 -2
  177. package/src/funcs/placesAttributes.ts +164 -0
  178. package/src/funcs/placesGet.ts +201 -0
  179. package/src/funcs/placesNearest.ts +212 -0
  180. package/src/lib/config.ts +3 -3
  181. package/src/sdk/models/errors/getnearestplaces.ts +783 -0
  182. package/src/sdk/models/errors/getplace.ts +897 -0
  183. package/src/sdk/models/errors/getplaceattributes.ts +393 -0
  184. package/src/sdk/models/errors/index.ts +3 -0
  185. package/src/sdk/models/operations/getnearestplaces.ts +58 -0
  186. package/src/sdk/models/operations/getplace.ts +32 -0
  187. package/src/sdk/models/operations/index.ts +2 -0
  188. package/src/sdk/models/shared/index.ts +7 -0
  189. package/src/sdk/models/shared/marketstatus.ts +1 -1
  190. package/src/sdk/models/shared/poiattribute.ts +64 -0
  191. package/src/sdk/models/shared/poiattributecatalogue.ts +38 -0
  192. package/src/sdk/models/shared/poifieldprovenance.ts +62 -0
  193. package/src/sdk/models/shared/poinearestresponse.ts +372 -0
  194. package/src/sdk/models/shared/poiplace.ts +397 -0
  195. package/src/sdk/models/shared/poiprovenance.ts +121 -0
  196. package/src/sdk/models/shared/poiregistermatch.ts +84 -0
  197. package/src/sdk/models/shared/pscexemption.ts +15 -12
  198. package/src/sdk/places.ts +62 -0
  199. package/src/sdk/sdk.ts +6 -0
@@ -0,0 +1,393 @@
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 * as openEnums from "../../types/enums.js";
9
+ import { OpenEnum } from "../../types/enums.js";
10
+ import { Result as SafeParseResult } from "../../types/fp.js";
11
+ import { SDKBaseError } from "./sdkbaseerror.js";
12
+ import { SDKValidationError } from "./sdkvalidationerror.js";
13
+
14
+ /**
15
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
16
+ */
17
+ export const GetPlaceAttributesPlacesResponseType = {
18
+ ApiError: "api_error",
19
+ InvalidRequestError: "invalid_request_error",
20
+ AuthenticationError: "authentication_error",
21
+ RateLimitError: "rate_limit_error",
22
+ } as const;
23
+ /**
24
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
25
+ */
26
+ export type GetPlaceAttributesPlacesResponseType = OpenEnum<
27
+ typeof GetPlaceAttributesPlacesResponseType
28
+ >;
29
+
30
+ export type GetPlaceAttributesPlacesResponseError = {
31
+ /**
32
+ * Stable code identifying the specific failure, safe to branch on.
33
+ */
34
+ code?: string | undefined;
35
+ /**
36
+ * Link to the documentation for this error.
37
+ */
38
+ docUrl?: string | undefined;
39
+ /**
40
+ * Human-readable explanation of what went wrong.
41
+ */
42
+ message: string;
43
+ /**
44
+ * Name of the request parameter at fault, where the failure can be traced to one.
45
+ */
46
+ param?: string | undefined;
47
+ /**
48
+ * Alternative values worth retrying when the supplied one could not be matched.
49
+ */
50
+ suggestions?: Array<string> | undefined;
51
+ /**
52
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
53
+ */
54
+ type: GetPlaceAttributesPlacesResponseType;
55
+ };
56
+
57
+ /**
58
+ * Returned in place of the normal payload whenever a request fails.
59
+ */
60
+ export type GetPlaceAttributesPlacesResponseResponseBodyData = {
61
+ error: GetPlaceAttributesPlacesResponseError;
62
+ };
63
+
64
+ /**
65
+ * Returned in place of the normal payload whenever a request fails.
66
+ */
67
+ export class GetPlaceAttributesPlacesResponseResponseBody extends SDKBaseError {
68
+ error: GetPlaceAttributesPlacesResponseError;
69
+
70
+ /** The original data that was passed to this error instance. */
71
+ data$: GetPlaceAttributesPlacesResponseResponseBodyData;
72
+
73
+ constructor(
74
+ err: GetPlaceAttributesPlacesResponseResponseBodyData,
75
+ httpMeta: { response: Response; request: Request; body: string },
76
+ ) {
77
+ const message = err.error?.message
78
+ || `API error occurred: ${JSON.stringify(err)}`;
79
+ super(message, httpMeta);
80
+ this.data$ = err;
81
+ this.error = err.error;
82
+
83
+ this.name = "GetPlaceAttributesPlacesResponseResponseBody";
84
+ }
85
+ }
86
+
87
+ /**
88
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
89
+ */
90
+ export const GetPlaceAttributesPlacesType = {
91
+ ApiError: "api_error",
92
+ InvalidRequestError: "invalid_request_error",
93
+ AuthenticationError: "authentication_error",
94
+ RateLimitError: "rate_limit_error",
95
+ } as const;
96
+ /**
97
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
98
+ */
99
+ export type GetPlaceAttributesPlacesType = OpenEnum<
100
+ typeof GetPlaceAttributesPlacesType
101
+ >;
102
+
103
+ export type GetPlaceAttributesPlacesError = {
104
+ /**
105
+ * Stable code identifying the specific failure, safe to branch on.
106
+ */
107
+ code?: string | undefined;
108
+ /**
109
+ * Link to the documentation for this error.
110
+ */
111
+ docUrl?: string | undefined;
112
+ /**
113
+ * Human-readable explanation of what went wrong.
114
+ */
115
+ message: string;
116
+ /**
117
+ * Name of the request parameter at fault, where the failure can be traced to one.
118
+ */
119
+ param?: string | undefined;
120
+ /**
121
+ * Alternative values worth retrying when the supplied one could not be matched.
122
+ */
123
+ suggestions?: Array<string> | undefined;
124
+ /**
125
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
126
+ */
127
+ type: GetPlaceAttributesPlacesType;
128
+ };
129
+
130
+ /**
131
+ * Returned in place of the normal payload whenever a request fails.
132
+ */
133
+ export type GetPlaceAttributesPlacesResponseBodyData = {
134
+ error: GetPlaceAttributesPlacesError;
135
+ };
136
+
137
+ /**
138
+ * Returned in place of the normal payload whenever a request fails.
139
+ */
140
+ export class GetPlaceAttributesPlacesResponseBody extends SDKBaseError {
141
+ error: GetPlaceAttributesPlacesError;
142
+
143
+ /** The original data that was passed to this error instance. */
144
+ data$: GetPlaceAttributesPlacesResponseBodyData;
145
+
146
+ constructor(
147
+ err: GetPlaceAttributesPlacesResponseBodyData,
148
+ httpMeta: { response: Response; request: Request; body: string },
149
+ ) {
150
+ const message = err.error?.message
151
+ || `API error occurred: ${JSON.stringify(err)}`;
152
+ super(message, httpMeta);
153
+ this.data$ = err;
154
+ this.error = err.error;
155
+
156
+ this.name = "GetPlaceAttributesPlacesResponseBody";
157
+ }
158
+ }
159
+
160
+ /**
161
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
162
+ */
163
+ export const GetPlaceAttributesType = {
164
+ ApiError: "api_error",
165
+ InvalidRequestError: "invalid_request_error",
166
+ AuthenticationError: "authentication_error",
167
+ RateLimitError: "rate_limit_error",
168
+ } as const;
169
+ /**
170
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
171
+ */
172
+ export type GetPlaceAttributesType = OpenEnum<typeof GetPlaceAttributesType>;
173
+
174
+ export type GetPlaceAttributesError = {
175
+ /**
176
+ * Stable code identifying the specific failure, safe to branch on.
177
+ */
178
+ code?: string | undefined;
179
+ /**
180
+ * Link to the documentation for this error.
181
+ */
182
+ docUrl?: string | undefined;
183
+ /**
184
+ * Human-readable explanation of what went wrong.
185
+ */
186
+ message: string;
187
+ /**
188
+ * Name of the request parameter at fault, where the failure can be traced to one.
189
+ */
190
+ param?: string | undefined;
191
+ /**
192
+ * Alternative values worth retrying when the supplied one could not be matched.
193
+ */
194
+ suggestions?: Array<string> | undefined;
195
+ /**
196
+ * Broad category of the failure: a malformed request, an authentication problem, a rate limit, or a fault on the server side.
197
+ */
198
+ type: GetPlaceAttributesType;
199
+ };
200
+
201
+ /**
202
+ * Returned in place of the normal payload whenever a request fails.
203
+ */
204
+ export type GetPlaceAttributesResponseBodyData = {
205
+ error: GetPlaceAttributesError;
206
+ };
207
+
208
+ /**
209
+ * Returned in place of the normal payload whenever a request fails.
210
+ */
211
+ export class GetPlaceAttributesResponseBody extends SDKBaseError {
212
+ error: GetPlaceAttributesError;
213
+
214
+ /** The original data that was passed to this error instance. */
215
+ data$: GetPlaceAttributesResponseBodyData;
216
+
217
+ constructor(
218
+ err: GetPlaceAttributesResponseBodyData,
219
+ httpMeta: { response: Response; request: Request; body: string },
220
+ ) {
221
+ const message = err.error?.message
222
+ || `API error occurred: ${JSON.stringify(err)}`;
223
+ super(message, httpMeta);
224
+ this.data$ = err;
225
+ this.error = err.error;
226
+
227
+ this.name = "GetPlaceAttributesResponseBody";
228
+ }
229
+ }
230
+
231
+ /** @internal */
232
+ export const GetPlaceAttributesPlacesResponseType$inboundSchema: z.ZodType<
233
+ GetPlaceAttributesPlacesResponseType,
234
+ z.ZodTypeDef,
235
+ unknown
236
+ > = openEnums.inboundSchema(GetPlaceAttributesPlacesResponseType);
237
+
238
+ /** @internal */
239
+ export const GetPlaceAttributesPlacesResponseError$inboundSchema: z.ZodType<
240
+ GetPlaceAttributesPlacesResponseError,
241
+ z.ZodTypeDef,
242
+ unknown
243
+ > = z.object({
244
+ code: z.string().optional(),
245
+ doc_url: z.string().optional(),
246
+ message: z.string(),
247
+ param: z.string().optional(),
248
+ suggestions: z.array(z.string()).optional(),
249
+ type: GetPlaceAttributesPlacesResponseType$inboundSchema,
250
+ }).transform((v) => {
251
+ return remap$(v, {
252
+ "doc_url": "docUrl",
253
+ });
254
+ });
255
+
256
+ export function getPlaceAttributesPlacesResponseErrorFromJSON(
257
+ jsonString: string,
258
+ ): SafeParseResult<GetPlaceAttributesPlacesResponseError, SDKValidationError> {
259
+ return safeParse(
260
+ jsonString,
261
+ (x) =>
262
+ GetPlaceAttributesPlacesResponseError$inboundSchema.parse(JSON.parse(x)),
263
+ `Failed to parse 'GetPlaceAttributesPlacesResponseError' from JSON`,
264
+ );
265
+ }
266
+
267
+ /** @internal */
268
+ export const GetPlaceAttributesPlacesResponseResponseBody$inboundSchema:
269
+ z.ZodType<
270
+ GetPlaceAttributesPlacesResponseResponseBody,
271
+ z.ZodTypeDef,
272
+ unknown
273
+ > = z.object({
274
+ error: z.lazy(() => GetPlaceAttributesPlacesResponseError$inboundSchema),
275
+ request$: z.instanceof(Request),
276
+ response$: z.instanceof(Response),
277
+ body$: z.string(),
278
+ })
279
+ .transform((v) => {
280
+ return new GetPlaceAttributesPlacesResponseResponseBody(v, {
281
+ request: v.request$,
282
+ response: v.response$,
283
+ body: v.body$,
284
+ });
285
+ });
286
+
287
+ /** @internal */
288
+ export const GetPlaceAttributesPlacesType$inboundSchema: z.ZodType<
289
+ GetPlaceAttributesPlacesType,
290
+ z.ZodTypeDef,
291
+ unknown
292
+ > = openEnums.inboundSchema(GetPlaceAttributesPlacesType);
293
+
294
+ /** @internal */
295
+ export const GetPlaceAttributesPlacesError$inboundSchema: z.ZodType<
296
+ GetPlaceAttributesPlacesError,
297
+ z.ZodTypeDef,
298
+ unknown
299
+ > = z.object({
300
+ code: z.string().optional(),
301
+ doc_url: z.string().optional(),
302
+ message: z.string(),
303
+ param: z.string().optional(),
304
+ suggestions: z.array(z.string()).optional(),
305
+ type: GetPlaceAttributesPlacesType$inboundSchema,
306
+ }).transform((v) => {
307
+ return remap$(v, {
308
+ "doc_url": "docUrl",
309
+ });
310
+ });
311
+
312
+ export function getPlaceAttributesPlacesErrorFromJSON(
313
+ jsonString: string,
314
+ ): SafeParseResult<GetPlaceAttributesPlacesError, SDKValidationError> {
315
+ return safeParse(
316
+ jsonString,
317
+ (x) => GetPlaceAttributesPlacesError$inboundSchema.parse(JSON.parse(x)),
318
+ `Failed to parse 'GetPlaceAttributesPlacesError' from JSON`,
319
+ );
320
+ }
321
+
322
+ /** @internal */
323
+ export const GetPlaceAttributesPlacesResponseBody$inboundSchema: z.ZodType<
324
+ GetPlaceAttributesPlacesResponseBody,
325
+ z.ZodTypeDef,
326
+ unknown
327
+ > = z.object({
328
+ error: z.lazy(() => GetPlaceAttributesPlacesError$inboundSchema),
329
+ request$: z.instanceof(Request),
330
+ response$: z.instanceof(Response),
331
+ body$: z.string(),
332
+ })
333
+ .transform((v) => {
334
+ return new GetPlaceAttributesPlacesResponseBody(v, {
335
+ request: v.request$,
336
+ response: v.response$,
337
+ body: v.body$,
338
+ });
339
+ });
340
+
341
+ /** @internal */
342
+ export const GetPlaceAttributesType$inboundSchema: z.ZodType<
343
+ GetPlaceAttributesType,
344
+ z.ZodTypeDef,
345
+ unknown
346
+ > = openEnums.inboundSchema(GetPlaceAttributesType);
347
+
348
+ /** @internal */
349
+ export const GetPlaceAttributesError$inboundSchema: z.ZodType<
350
+ GetPlaceAttributesError,
351
+ z.ZodTypeDef,
352
+ unknown
353
+ > = z.object({
354
+ code: z.string().optional(),
355
+ doc_url: z.string().optional(),
356
+ message: z.string(),
357
+ param: z.string().optional(),
358
+ suggestions: z.array(z.string()).optional(),
359
+ type: GetPlaceAttributesType$inboundSchema,
360
+ }).transform((v) => {
361
+ return remap$(v, {
362
+ "doc_url": "docUrl",
363
+ });
364
+ });
365
+
366
+ export function getPlaceAttributesErrorFromJSON(
367
+ jsonString: string,
368
+ ): SafeParseResult<GetPlaceAttributesError, SDKValidationError> {
369
+ return safeParse(
370
+ jsonString,
371
+ (x) => GetPlaceAttributesError$inboundSchema.parse(JSON.parse(x)),
372
+ `Failed to parse 'GetPlaceAttributesError' from JSON`,
373
+ );
374
+ }
375
+
376
+ /** @internal */
377
+ export const GetPlaceAttributesResponseBody$inboundSchema: z.ZodType<
378
+ GetPlaceAttributesResponseBody,
379
+ z.ZodTypeDef,
380
+ unknown
381
+ > = z.object({
382
+ error: z.lazy(() => GetPlaceAttributesError$inboundSchema),
383
+ request$: z.instanceof(Request),
384
+ response$: z.instanceof(Response),
385
+ body$: z.string(),
386
+ })
387
+ .transform((v) => {
388
+ return new GetPlaceAttributesResponseBody(v, {
389
+ request: v.request$,
390
+ response: v.response$,
391
+ body: v.body$,
392
+ });
393
+ });
@@ -59,12 +59,15 @@ export * from "./getlistingbysource.js";
59
59
  export * from "./getlistingsbylocation.js";
60
60
  export * from "./getmetricvalues.js";
61
61
  export * from "./getnearesthistoriclandfill.js";
62
+ export * from "./getnearestplaces.js";
62
63
  export * from "./getnearestpoi.js";
63
64
  export * from "./getnearestpostcodes.js";
64
65
  export * from "./getofficer.js";
65
66
  export * from "./getperson.js";
66
67
  export * from "./getpersonappointments.js";
67
68
  export * from "./getpersoncluster.js";
69
+ export * from "./getplace.js";
70
+ export * from "./getplaceattributes.js";
68
71
  export * from "./getplanningapplications.js";
69
72
  export * from "./getplanningapplicationsbysource.js";
70
73
  export * from "./getpoimultipletiles.js";
@@ -0,0 +1,58 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type GetNearestPlacesRequest = {
8
+ /**
9
+ * Comma-separated category names. A place matches when any level of its `categoryPath` is one of them. Places with no corroborated category never match a category filter.
10
+ */
11
+ categories?: string | undefined;
12
+ /**
13
+ * Latitude of the point to search from, in decimal degrees (WGS84).
14
+ */
15
+ lat: number;
16
+ /**
17
+ * Most places to return. Defaults to 10. Maximum 100.
18
+ */
19
+ limit?: number | undefined;
20
+ /**
21
+ * Longitude of the point to search from, in decimal degrees (WGS84).
22
+ */
23
+ lng: number;
24
+ /**
25
+ * Search radius in metres, measured in a straight line. Maximum 10,000.
26
+ */
27
+ radius: number;
28
+ };
29
+
30
+ /** @internal */
31
+ export type GetNearestPlacesRequest$Outbound = {
32
+ categories?: string | undefined;
33
+ lat: number;
34
+ limit: number;
35
+ lng: number;
36
+ radius: number;
37
+ };
38
+
39
+ /** @internal */
40
+ export const GetNearestPlacesRequest$outboundSchema: z.ZodType<
41
+ GetNearestPlacesRequest$Outbound,
42
+ z.ZodTypeDef,
43
+ GetNearestPlacesRequest
44
+ > = z.object({
45
+ categories: z.string().optional(),
46
+ lat: z.number(),
47
+ limit: z.number().int().default(10),
48
+ lng: z.number(),
49
+ radius: z.number(),
50
+ });
51
+
52
+ export function getNearestPlacesRequestToJSON(
53
+ getNearestPlacesRequest: GetNearestPlacesRequest,
54
+ ): string {
55
+ return JSON.stringify(
56
+ GetNearestPlacesRequest$outboundSchema.parse(getNearestPlacesRequest),
57
+ );
58
+ }
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+
7
+ export type GetPlaceRequest = {
8
+ /**
9
+ * Identifier of the place.
10
+ */
11
+ poiId: string;
12
+ };
13
+
14
+ /** @internal */
15
+ export type GetPlaceRequest$Outbound = {
16
+ poiId: string;
17
+ };
18
+
19
+ /** @internal */
20
+ export const GetPlaceRequest$outboundSchema: z.ZodType<
21
+ GetPlaceRequest$Outbound,
22
+ z.ZodTypeDef,
23
+ GetPlaceRequest
24
+ > = z.object({
25
+ poiId: z.string(),
26
+ });
27
+
28
+ export function getPlaceRequestToJSON(
29
+ getPlaceRequest: GetPlaceRequest,
30
+ ): string {
31
+ return JSON.stringify(GetPlaceRequest$outboundSchema.parse(getPlaceRequest));
32
+ }
@@ -64,12 +64,14 @@ export * from "./getlistingsbylocation.js";
64
64
  export * from "./getmetricprofiles.js";
65
65
  export * from "./getmetricvalues.js";
66
66
  export * from "./getnearesthistoriclandfill.js";
67
+ export * from "./getnearestplaces.js";
67
68
  export * from "./getnearestpoi.js";
68
69
  export * from "./getnearestpostcodes.js";
69
70
  export * from "./getofficer.js";
70
71
  export * from "./getperson.js";
71
72
  export * from "./getpersonappointments.js";
72
73
  export * from "./getpersoncluster.js";
74
+ export * from "./getplace.js";
73
75
  export * from "./getplanningapplications.js";
74
76
  export * from "./getplanningapplicationsbysource.js";
75
77
  export * from "./getpoimultipletiles.js";
@@ -322,8 +322,15 @@ export * from "./plannings106nonfinancialobligation.js";
322
322
  export * from "./plannings106party.js";
323
323
  export * from "./planningsemanticchunk.js";
324
324
  export * from "./planningstatushistory.js";
325
+ export * from "./poiattribute.js";
326
+ export * from "./poiattributecatalogue.js";
327
+ export * from "./poifieldprovenance.js";
328
+ export * from "./poinearestresponse.js";
325
329
  export * from "./pointcategorystats.js";
326
330
  export * from "./pointcategorystatslistresponse.js";
331
+ export * from "./poiplace.js";
332
+ export * from "./poiprovenance.js";
333
+ export * from "./poiregistermatch.js";
327
334
  export * from "./postcodeaddress.js";
328
335
  export * from "./postcodelookupresponse.js";
329
336
  export * from "./postcodevalidationresponse.js";
@@ -120,7 +120,7 @@ export type MarketStatus = {
120
120
  */
121
121
  pricePerSqft?: number | null | undefined;
122
122
  /**
123
- * Price per square metre of floor area.
123
+ * Sale price per square metre of floor area.
124
124
  */
125
125
  pricePerSqm?: number | null | undefined;
126
126
  /**
@@ -0,0 +1,64 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+
10
+ export type PoiAttribute = {
11
+ /**
12
+ * What the attribute is.
13
+ */
14
+ description: string | null;
15
+ /**
16
+ * The values the attribute can take, when it is a closed list.
17
+ */
18
+ enumValues: Array<string> | null;
19
+ /**
20
+ * True when the attribute is also returned by the nearest endpoint.
21
+ */
22
+ inSummary: boolean;
23
+ /**
24
+ * True when the value can be null.
25
+ */
26
+ nullable: boolean;
27
+ /**
28
+ * Dotted path of the attribute in a place.
29
+ */
30
+ path: string;
31
+ /**
32
+ * The account permission the attribute needs, or null when every account receives it.
33
+ */
34
+ requiresPermission: string | null;
35
+ /**
36
+ * JSON type of the value.
37
+ */
38
+ type: string;
39
+ };
40
+
41
+ /** @internal */
42
+ export const PoiAttribute$inboundSchema: z.ZodType<
43
+ PoiAttribute,
44
+ z.ZodTypeDef,
45
+ unknown
46
+ > = z.object({
47
+ description: z.nullable(z.string()),
48
+ enumValues: z.nullable(z.array(z.string())),
49
+ inSummary: z.boolean(),
50
+ nullable: z.boolean(),
51
+ path: z.string(),
52
+ requiresPermission: z.nullable(z.string()),
53
+ type: z.string(),
54
+ });
55
+
56
+ export function poiAttributeFromJSON(
57
+ jsonString: string,
58
+ ): SafeParseResult<PoiAttribute, SDKValidationError> {
59
+ return safeParse(
60
+ jsonString,
61
+ (x) => PoiAttribute$inboundSchema.parse(JSON.parse(x)),
62
+ `Failed to parse 'PoiAttribute' from JSON`,
63
+ );
64
+ }
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+
5
+ import * as z from "zod/v3";
6
+ import { safeParse } from "../../../lib/schemas.js";
7
+ import { Result as SafeParseResult } from "../../types/fp.js";
8
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
+ import { PoiAttribute, PoiAttribute$inboundSchema } from "./poiattribute.js";
10
+
11
+ /**
12
+ * The attributes of a point of interest, with their types and access requirements.
13
+ */
14
+ export type PoiAttributeCatalogue = {
15
+ /**
16
+ * Every attribute a place can carry, in document order.
17
+ */
18
+ attributes: Array<PoiAttribute>;
19
+ };
20
+
21
+ /** @internal */
22
+ export const PoiAttributeCatalogue$inboundSchema: z.ZodType<
23
+ PoiAttributeCatalogue,
24
+ z.ZodTypeDef,
25
+ unknown
26
+ > = z.object({
27
+ attributes: z.array(PoiAttribute$inboundSchema),
28
+ });
29
+
30
+ export function poiAttributeCatalogueFromJSON(
31
+ jsonString: string,
32
+ ): SafeParseResult<PoiAttributeCatalogue, SDKValidationError> {
33
+ return safeParse(
34
+ jsonString,
35
+ (x) => PoiAttributeCatalogue$inboundSchema.parse(JSON.parse(x)),
36
+ `Failed to parse 'PoiAttributeCatalogue' from JSON`,
37
+ );
38
+ }