@vepler/sdk 2.8.0 → 2.12.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.
- package/README.md +2 -7
- package/dist/commonjs/funcs/avmPredictPropertyValue.d.ts +1 -1
- package/dist/commonjs/funcs/avmPredictPropertyValue.js +1 -1
- package/dist/commonjs/funcs/avmPredictPropertyValueByLocation.d.ts +18 -0
- package/dist/commonjs/funcs/avmPredictPropertyValueByLocation.d.ts.map +1 -0
- package/dist/commonjs/funcs/{epcGetEPCByPostcode.js → avmPredictPropertyValueByLocation.js} +13 -17
- package/dist/commonjs/funcs/avmPredictPropertyValueByLocation.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/lib/encodings.d.ts +1 -0
- package/dist/commonjs/lib/encodings.d.ts.map +1 -1
- package/dist/commonjs/lib/encodings.js +12 -1
- package/dist/commonjs/lib/encodings.js.map +1 -1
- package/dist/commonjs/sdk/avm.d.ts +8 -1
- package/dist/commonjs/sdk/avm.d.ts.map +1 -1
- package/dist/commonjs/sdk/avm.js +11 -1
- package/dist/commonjs/sdk/avm.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getareasbyfieldandids.d.ts +48 -6
- package/dist/commonjs/sdk/models/operations/getareasbyfieldandids.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getareasbyfieldandids.js +46 -4
- package/dist/commonjs/sdk/models/operations/getareasbyfieldandids.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getareaswithinradius.d.ts +95 -11
- package/dist/commonjs/sdk/models/operations/getareaswithinradius.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getareaswithinradius.js +92 -8
- package/dist/commonjs/sdk/models/operations/getareaswithinradius.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getborderingareas.d.ts +96 -12
- package/dist/commonjs/sdk/models/operations/getborderingareas.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getborderingareas.js +92 -8
- package/dist/commonjs/sdk/models/operations/getborderingareas.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getchildareas.d.ts +96 -12
- package/dist/commonjs/sdk/models/operations/getchildareas.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getchildareas.js +92 -8
- package/dist/commonjs/sdk/models/operations/getchildareas.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getmetricvalues.d.ts +144 -18
- package/dist/commonjs/sdk/models/operations/getmetricvalues.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getmetricvalues.js +138 -12
- package/dist/commonjs/sdk/models/operations/getmetricvalues.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.d.ts +1 -2
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +1 -2
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/predictpropertyvaluebylocation.d.ts +206 -0
- package/dist/commonjs/sdk/models/operations/predictpropertyvaluebylocation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/predictpropertyvaluebylocation.js +199 -0
- package/dist/commonjs/sdk/models/operations/predictpropertyvaluebylocation.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.d.ts +148 -0
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.js +119 -0
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmpredictrequest.d.ts +16 -16
- package/dist/commonjs/sdk/models/shared/avmpredictrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/avmpredictrequest.js +13 -14
- package/dist/commonjs/sdk/models/shared/avmpredictrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/builddata.d.ts +57 -1
- package/dist/commonjs/sdk/models/shared/builddata.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/builddata.js +56 -2
- package/dist/commonjs/sdk/models/shared/builddata.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +1 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts +3 -257
- package/dist/commonjs/sdk/models/shared/propertydataapi.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertydataapi.js +4 -255
- package/dist/commonjs/sdk/models/shared/propertydataapi.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertytags.d.ts +8 -4
- package/dist/commonjs/sdk/models/shared/propertytags.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertytags.js +2 -1
- package/dist/commonjs/sdk/models/shared/propertytags.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.d.ts +2 -9
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.js +2 -7
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyname.d.ts +2 -9
- package/dist/commonjs/sdk/models/shared/streetquerybyname.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyname.js +2 -7
- package/dist/commonjs/sdk/models/shared/streetquerybyname.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.d.ts +2 -9
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.js +2 -7
- package/dist/commonjs/sdk/models/shared/streetquerybypostcode.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyuprn.d.ts +2 -9
- package/dist/commonjs/sdk/models/shared/streetquerybyuprn.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyuprn.js +2 -7
- package/dist/commonjs/sdk/models/shared/streetquerybyuprn.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyusrn.d.ts +2 -9
- package/dist/commonjs/sdk/models/shared/streetquerybyusrn.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetquerybyusrn.js +2 -7
- package/dist/commonjs/sdk/models/shared/streetquerybyusrn.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.d.ts +4 -44
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.js +10 -24
- package/dist/commonjs/sdk/models/shared/streetqueryrequest.js.map +1 -1
- package/dist/commonjs/sdk/sdk.d.ts +0 -3
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +0 -4
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/commonjs/sdk/types/enums.d.ts +1 -8
- package/dist/commonjs/sdk/types/enums.d.ts.map +1 -1
- package/dist/commonjs/sdk/types/enums.js +3 -21
- package/dist/commonjs/sdk/types/enums.js.map +1 -1
- package/dist/commonjs/sdk/types/index.d.ts +2 -1
- package/dist/commonjs/sdk/types/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/types/index.js +15 -0
- package/dist/commonjs/sdk/types/index.js.map +1 -1
- package/dist/commonjs/sdk/types/unrecognized.d.ts +16 -0
- package/dist/commonjs/sdk/types/unrecognized.d.ts.map +1 -0
- package/dist/commonjs/sdk/types/unrecognized.js +34 -0
- package/dist/commonjs/sdk/types/unrecognized.js.map +1 -0
- package/dist/esm/funcs/avmPredictPropertyValue.d.ts +1 -1
- package/dist/esm/funcs/avmPredictPropertyValue.js +1 -1
- package/dist/esm/funcs/avmPredictPropertyValueByLocation.d.ts +18 -0
- package/dist/esm/funcs/avmPredictPropertyValueByLocation.d.ts.map +1 -0
- package/dist/esm/funcs/{epcGetEPCByPostcode.js → avmPredictPropertyValueByLocation.js} +13 -17
- package/dist/esm/funcs/avmPredictPropertyValueByLocation.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/lib/encodings.d.ts +1 -0
- package/dist/esm/lib/encodings.d.ts.map +1 -1
- package/dist/esm/lib/encodings.js +12 -1
- package/dist/esm/lib/encodings.js.map +1 -1
- package/dist/esm/sdk/avm.d.ts +8 -1
- package/dist/esm/sdk/avm.d.ts.map +1 -1
- package/dist/esm/sdk/avm.js +11 -1
- package/dist/esm/sdk/avm.js.map +1 -1
- package/dist/esm/sdk/models/operations/getareasbyfieldandids.d.ts +48 -6
- package/dist/esm/sdk/models/operations/getareasbyfieldandids.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getareasbyfieldandids.js +46 -4
- package/dist/esm/sdk/models/operations/getareasbyfieldandids.js.map +1 -1
- package/dist/esm/sdk/models/operations/getareaswithinradius.d.ts +95 -11
- package/dist/esm/sdk/models/operations/getareaswithinradius.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getareaswithinradius.js +92 -8
- package/dist/esm/sdk/models/operations/getareaswithinradius.js.map +1 -1
- package/dist/esm/sdk/models/operations/getborderingareas.d.ts +96 -12
- package/dist/esm/sdk/models/operations/getborderingareas.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getborderingareas.js +92 -8
- package/dist/esm/sdk/models/operations/getborderingareas.js.map +1 -1
- package/dist/esm/sdk/models/operations/getchildareas.d.ts +96 -12
- package/dist/esm/sdk/models/operations/getchildareas.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getchildareas.js +92 -8
- package/dist/esm/sdk/models/operations/getchildareas.js.map +1 -1
- package/dist/esm/sdk/models/operations/getmetricvalues.d.ts +144 -18
- package/dist/esm/sdk/models/operations/getmetricvalues.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getmetricvalues.js +138 -12
- package/dist/esm/sdk/models/operations/getmetricvalues.js.map +1 -1
- package/dist/esm/sdk/models/operations/index.d.ts +1 -2
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +1 -2
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/predictpropertyvaluebylocation.d.ts +206 -0
- package/dist/esm/sdk/models/operations/predictpropertyvaluebylocation.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/predictpropertyvaluebylocation.js +154 -0
- package/dist/esm/sdk/models/operations/predictpropertyvaluebylocation.js.map +1 -0
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.d.ts +148 -0
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.js +82 -0
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/avmpredictrequest.d.ts +16 -16
- package/dist/esm/sdk/models/shared/avmpredictrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/avmpredictrequest.js +12 -13
- package/dist/esm/sdk/models/shared/avmpredictrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/builddata.d.ts +57 -1
- package/dist/esm/sdk/models/shared/builddata.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/builddata.js +55 -1
- package/dist/esm/sdk/models/shared/builddata.js.map +1 -1
- package/dist/esm/sdk/models/shared/index.d.ts +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +1 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertydataapi.d.ts +3 -257
- package/dist/esm/sdk/models/shared/propertydataapi.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertydataapi.js +3 -254
- package/dist/esm/sdk/models/shared/propertydataapi.js.map +1 -1
- package/dist/esm/sdk/models/shared/propertytags.d.ts +8 -4
- package/dist/esm/sdk/models/shared/propertytags.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertytags.js +2 -1
- package/dist/esm/sdk/models/shared/propertytags.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.d.ts +2 -9
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.js +1 -6
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyname.d.ts +2 -9
- package/dist/esm/sdk/models/shared/streetquerybyname.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyname.js +1 -6
- package/dist/esm/sdk/models/shared/streetquerybyname.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybypostcode.d.ts +2 -9
- package/dist/esm/sdk/models/shared/streetquerybypostcode.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybypostcode.js +1 -6
- package/dist/esm/sdk/models/shared/streetquerybypostcode.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyuprn.d.ts +2 -9
- package/dist/esm/sdk/models/shared/streetquerybyuprn.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyuprn.js +1 -6
- package/dist/esm/sdk/models/shared/streetquerybyuprn.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyusrn.d.ts +2 -9
- package/dist/esm/sdk/models/shared/streetquerybyusrn.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetquerybyusrn.js +1 -6
- package/dist/esm/sdk/models/shared/streetquerybyusrn.js.map +1 -1
- package/dist/esm/sdk/models/shared/streetqueryrequest.d.ts +4 -44
- package/dist/esm/sdk/models/shared/streetqueryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/streetqueryrequest.js +10 -24
- package/dist/esm/sdk/models/shared/streetqueryrequest.js.map +1 -1
- package/dist/esm/sdk/sdk.d.ts +0 -3
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +0 -4
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/dist/esm/sdk/types/enums.d.ts +1 -8
- package/dist/esm/sdk/types/enums.d.ts.map +1 -1
- package/dist/esm/sdk/types/enums.js +1 -18
- package/dist/esm/sdk/types/enums.js.map +1 -1
- package/dist/esm/sdk/types/index.d.ts +2 -1
- package/dist/esm/sdk/types/index.d.ts.map +1 -1
- package/dist/esm/sdk/types/index.js +1 -0
- package/dist/esm/sdk/types/index.js.map +1 -1
- package/dist/esm/sdk/types/unrecognized.d.ts +16 -0
- package/dist/esm/sdk/types/unrecognized.d.ts.map +1 -0
- package/dist/esm/sdk/types/unrecognized.js +31 -0
- package/dist/esm/sdk/types/unrecognized.js.map +1 -0
- package/package.json +1 -1
- package/src/funcs/avmPredictPropertyValue.ts +1 -1
- package/src/funcs/{epcGetEPCByPostcode.ts → avmPredictPropertyValueByLocation.ts} +36 -23
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +17 -3
- package/src/sdk/avm.ts +19 -1
- package/src/sdk/models/operations/getareasbyfieldandids.ts +48 -6
- package/src/sdk/models/operations/getareaswithinradius.ts +95 -11
- package/src/sdk/models/operations/getborderingareas.ts +96 -12
- package/src/sdk/models/operations/getchildareas.ts +96 -12
- package/src/sdk/models/operations/getmetricvalues.ts +144 -18
- package/src/sdk/models/operations/index.ts +1 -2
- package/src/sdk/models/operations/predictpropertyvaluebylocation.ts +479 -0
- package/src/sdk/models/shared/avmpredictbylocationrequest.ts +194 -0
- package/src/sdk/models/shared/avmpredictrequest.ts +36 -26
- package/src/sdk/models/shared/builddata.ts +62 -2
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/propertydataapi.ts +6 -276
- package/src/sdk/models/shared/propertytags.ts +10 -5
- package/src/sdk/models/shared/streetquerybycoordinates.ts +3 -16
- package/src/sdk/models/shared/streetquerybyname.ts +3 -14
- package/src/sdk/models/shared/streetquerybypostcode.ts +3 -16
- package/src/sdk/models/shared/streetquerybyuprn.ts +3 -14
- package/src/sdk/models/shared/streetquerybyusrn.ts +3 -14
- package/src/sdk/models/shared/streetqueryrequest.ts +30 -64
- package/src/sdk/sdk.ts +0 -6
- package/src/sdk/types/enums.ts +1 -21
- package/src/sdk/types/index.ts +2 -1
- package/src/sdk/types/unrecognized.ts +35 -0
- package/tsconfig.json +1 -2
- package/dist/commonjs/funcs/epcGetEPC.d.ts +0 -17
- package/dist/commonjs/funcs/epcGetEPC.d.ts.map +0 -1
- package/dist/commonjs/funcs/epcGetEPC.js +0 -119
- package/dist/commonjs/funcs/epcGetEPC.js.map +0 -1
- package/dist/commonjs/funcs/epcGetEPCByPostcode.d.ts +0 -17
- package/dist/commonjs/funcs/epcGetEPCByPostcode.d.ts.map +0 -1
- package/dist/commonjs/funcs/epcGetEPCByPostcode.js.map +0 -1
- package/dist/commonjs/sdk/epc.d.ts +0 -19
- package/dist/commonjs/sdk/epc.d.ts.map +0 -1
- package/dist/commonjs/sdk/epc.js +0 -32
- package/dist/commonjs/sdk/epc.js.map +0 -1
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.d.ts +0 -130
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.d.ts.map +0 -1
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.js +0 -140
- package/dist/commonjs/sdk/models/operations/getepcbylocationid.js.map +0 -1
- package/dist/commonjs/sdk/models/operations/getepcbypostcode.d.ts +0 -82
- package/dist/commonjs/sdk/models/operations/getepcbypostcode.d.ts.map +0 -1
- package/dist/commonjs/sdk/models/operations/getepcbypostcode.js +0 -105
- package/dist/commonjs/sdk/models/operations/getepcbypostcode.js.map +0 -1
- package/dist/esm/funcs/epcGetEPC.d.ts +0 -17
- package/dist/esm/funcs/epcGetEPC.d.ts.map +0 -1
- package/dist/esm/funcs/epcGetEPC.js +0 -83
- package/dist/esm/funcs/epcGetEPC.js.map +0 -1
- package/dist/esm/funcs/epcGetEPCByPostcode.d.ts +0 -17
- package/dist/esm/funcs/epcGetEPCByPostcode.d.ts.map +0 -1
- package/dist/esm/funcs/epcGetEPCByPostcode.js.map +0 -1
- package/dist/esm/sdk/epc.d.ts +0 -19
- package/dist/esm/sdk/epc.d.ts.map +0 -1
- package/dist/esm/sdk/epc.js +0 -28
- package/dist/esm/sdk/epc.js.map +0 -1
- package/dist/esm/sdk/models/operations/getepcbylocationid.d.ts +0 -130
- package/dist/esm/sdk/models/operations/getepcbylocationid.d.ts.map +0 -1
- package/dist/esm/sdk/models/operations/getepcbylocationid.js +0 -97
- package/dist/esm/sdk/models/operations/getepcbylocationid.js.map +0 -1
- package/dist/esm/sdk/models/operations/getepcbypostcode.d.ts +0 -82
- package/dist/esm/sdk/models/operations/getepcbypostcode.d.ts.map +0 -1
- package/dist/esm/sdk/models/operations/getepcbypostcode.js +0 -64
- package/dist/esm/sdk/models/operations/getepcbypostcode.js.map +0 -1
- package/src/funcs/epcGetEPC.ts +0 -166
- package/src/sdk/epc.ts +0 -45
- package/src/sdk/models/operations/getepcbylocationid.ts +0 -291
- package/src/sdk/models/operations/getepcbypostcode.ts +0 -188
package/src/sdk/epc.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { epcGetEPC } from "../funcs/epcGetEPC.js";
|
|
6
|
-
import { epcGetEPCByPostcode } from "../funcs/epcGetEPCByPostcode.js";
|
|
7
|
-
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
8
|
-
import * as operations from "./models/operations/index.js";
|
|
9
|
-
import { unwrapAsync } from "./types/fp.js";
|
|
10
|
-
|
|
11
|
-
export class Epc extends ClientSDK {
|
|
12
|
-
/**
|
|
13
|
-
* Get EPC certificate by location ID
|
|
14
|
-
*
|
|
15
|
-
* @remarks
|
|
16
|
-
* Retrieve Energy Performance Certificate data for a property by its location ID (UPRN). Coming soon - currently returns 501 Not Implemented.
|
|
17
|
-
*/
|
|
18
|
-
async getEPC(
|
|
19
|
-
request: operations.GetEPCByLocationIdRequest,
|
|
20
|
-
options?: RequestOptions,
|
|
21
|
-
): Promise<operations.GetEPCByLocationIdResponse> {
|
|
22
|
-
return unwrapAsync(epcGetEPC(
|
|
23
|
-
this,
|
|
24
|
-
request,
|
|
25
|
-
options,
|
|
26
|
-
));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Get EPC certificates by postcode
|
|
31
|
-
*
|
|
32
|
-
* @remarks
|
|
33
|
-
* Retrieve Energy Performance Certificates for all properties in a specific postcode. Coming soon - currently returns 501 Not Implemented.
|
|
34
|
-
*/
|
|
35
|
-
async getEPCByPostcode(
|
|
36
|
-
request: operations.GetEPCByPostcodeRequest,
|
|
37
|
-
options?: RequestOptions,
|
|
38
|
-
): Promise<operations.GetEPCByPostcodeResponse> {
|
|
39
|
-
return unwrapAsync(epcGetEPCByPostcode(
|
|
40
|
-
this,
|
|
41
|
-
request,
|
|
42
|
-
options,
|
|
43
|
-
));
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,291 +0,0 @@
|
|
|
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
|
-
* Location identifier (UPRN)
|
|
15
|
-
*/
|
|
16
|
-
locationId: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Error type category
|
|
21
|
-
*/
|
|
22
|
-
export const GetEPCByLocationIdEPCType = {
|
|
23
|
-
ApiError: "api_error",
|
|
24
|
-
InvalidRequestError: "invalid_request_error",
|
|
25
|
-
AuthenticationError: "authentication_error",
|
|
26
|
-
RateLimitError: "rate_limit_error",
|
|
27
|
-
} as const;
|
|
28
|
-
/**
|
|
29
|
-
* Error type category
|
|
30
|
-
*/
|
|
31
|
-
export type GetEPCByLocationIdEPCType = ClosedEnum<
|
|
32
|
-
typeof GetEPCByLocationIdEPCType
|
|
33
|
-
>;
|
|
34
|
-
|
|
35
|
-
export type GetEPCByLocationIdEPCError = {
|
|
36
|
-
/**
|
|
37
|
-
* Machine-readable error code
|
|
38
|
-
*/
|
|
39
|
-
code?: string | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* URL to relevant documentation
|
|
42
|
-
*/
|
|
43
|
-
docUrl?: string | undefined;
|
|
44
|
-
/**
|
|
45
|
-
* Human-readable error message
|
|
46
|
-
*/
|
|
47
|
-
message: string;
|
|
48
|
-
/**
|
|
49
|
-
* Parameter that caused the error
|
|
50
|
-
*/
|
|
51
|
-
param?: string | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Error type category
|
|
54
|
-
*/
|
|
55
|
-
type: GetEPCByLocationIdEPCType;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* Error response
|
|
60
|
-
*/
|
|
61
|
-
export type GetEPCByLocationIdEPCResponseResponseBody = {
|
|
62
|
-
error: GetEPCByLocationIdEPCError;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Error type category
|
|
67
|
-
*/
|
|
68
|
-
export const GetEPCByLocationIdType = {
|
|
69
|
-
ApiError: "api_error",
|
|
70
|
-
InvalidRequestError: "invalid_request_error",
|
|
71
|
-
AuthenticationError: "authentication_error",
|
|
72
|
-
RateLimitError: "rate_limit_error",
|
|
73
|
-
} as const;
|
|
74
|
-
/**
|
|
75
|
-
* Error type category
|
|
76
|
-
*/
|
|
77
|
-
export type GetEPCByLocationIdType = ClosedEnum<typeof GetEPCByLocationIdType>;
|
|
78
|
-
|
|
79
|
-
export type GetEPCByLocationIdError = {
|
|
80
|
-
/**
|
|
81
|
-
* Machine-readable error code
|
|
82
|
-
*/
|
|
83
|
-
code?: string | undefined;
|
|
84
|
-
/**
|
|
85
|
-
* URL to relevant documentation
|
|
86
|
-
*/
|
|
87
|
-
docUrl?: string | undefined;
|
|
88
|
-
/**
|
|
89
|
-
* Human-readable error message
|
|
90
|
-
*/
|
|
91
|
-
message: string;
|
|
92
|
-
/**
|
|
93
|
-
* Parameter that caused the error
|
|
94
|
-
*/
|
|
95
|
-
param?: string | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Error type category
|
|
98
|
-
*/
|
|
99
|
-
type: GetEPCByLocationIdType;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/**
|
|
103
|
-
* Error response
|
|
104
|
-
*/
|
|
105
|
-
export type GetEPCByLocationIdEPCResponseBody = {
|
|
106
|
-
error: GetEPCByLocationIdError;
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* EPC data successfully retrieved
|
|
111
|
-
*/
|
|
112
|
-
export type GetEPCByLocationIdResponseBody = {
|
|
113
|
-
data?: any | null | undefined;
|
|
114
|
-
success: boolean;
|
|
115
|
-
};
|
|
116
|
-
|
|
117
|
-
export type GetEPCByLocationIdResponse =
|
|
118
|
-
| GetEPCByLocationIdResponseBody
|
|
119
|
-
| GetEPCByLocationIdEPCResponseBody
|
|
120
|
-
| GetEPCByLocationIdEPCResponseResponseBody;
|
|
121
|
-
|
|
122
|
-
/** @internal */
|
|
123
|
-
export type GetEPCByLocationIdRequest$Outbound = {
|
|
124
|
-
locationId: string;
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const GetEPCByLocationIdRequest$outboundSchema: z.ZodType<
|
|
129
|
-
GetEPCByLocationIdRequest$Outbound,
|
|
130
|
-
z.ZodTypeDef,
|
|
131
|
-
GetEPCByLocationIdRequest
|
|
132
|
-
> = z.object({
|
|
133
|
-
locationId: z.string(),
|
|
134
|
-
});
|
|
135
|
-
|
|
136
|
-
export function getEPCByLocationIdRequestToJSON(
|
|
137
|
-
getEPCByLocationIdRequest: GetEPCByLocationIdRequest,
|
|
138
|
-
): string {
|
|
139
|
-
return JSON.stringify(
|
|
140
|
-
GetEPCByLocationIdRequest$outboundSchema.parse(getEPCByLocationIdRequest),
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
/** @internal */
|
|
145
|
-
export const GetEPCByLocationIdEPCType$inboundSchema: z.ZodNativeEnum<
|
|
146
|
-
typeof GetEPCByLocationIdEPCType
|
|
147
|
-
> = z.nativeEnum(GetEPCByLocationIdEPCType);
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const GetEPCByLocationIdEPCError$inboundSchema: z.ZodType<
|
|
151
|
-
GetEPCByLocationIdEPCError,
|
|
152
|
-
z.ZodTypeDef,
|
|
153
|
-
unknown
|
|
154
|
-
> = z.object({
|
|
155
|
-
code: z.string().optional(),
|
|
156
|
-
doc_url: z.string().optional(),
|
|
157
|
-
message: z.string(),
|
|
158
|
-
param: z.string().optional(),
|
|
159
|
-
type: GetEPCByLocationIdEPCType$inboundSchema,
|
|
160
|
-
}).transform((v) => {
|
|
161
|
-
return remap$(v, {
|
|
162
|
-
"doc_url": "docUrl",
|
|
163
|
-
});
|
|
164
|
-
});
|
|
165
|
-
|
|
166
|
-
export function getEPCByLocationIdEPCErrorFromJSON(
|
|
167
|
-
jsonString: string,
|
|
168
|
-
): SafeParseResult<GetEPCByLocationIdEPCError, SDKValidationError> {
|
|
169
|
-
return safeParse(
|
|
170
|
-
jsonString,
|
|
171
|
-
(x) => GetEPCByLocationIdEPCError$inboundSchema.parse(JSON.parse(x)),
|
|
172
|
-
`Failed to parse 'GetEPCByLocationIdEPCError' from JSON`,
|
|
173
|
-
);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
/** @internal */
|
|
177
|
-
export const GetEPCByLocationIdEPCResponseResponseBody$inboundSchema: z.ZodType<
|
|
178
|
-
GetEPCByLocationIdEPCResponseResponseBody,
|
|
179
|
-
z.ZodTypeDef,
|
|
180
|
-
unknown
|
|
181
|
-
> = z.object({
|
|
182
|
-
error: z.lazy(() => GetEPCByLocationIdEPCError$inboundSchema),
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
export function getEPCByLocationIdEPCResponseResponseBodyFromJSON(
|
|
186
|
-
jsonString: string,
|
|
187
|
-
): SafeParseResult<
|
|
188
|
-
GetEPCByLocationIdEPCResponseResponseBody,
|
|
189
|
-
SDKValidationError
|
|
190
|
-
> {
|
|
191
|
-
return safeParse(
|
|
192
|
-
jsonString,
|
|
193
|
-
(x) =>
|
|
194
|
-
GetEPCByLocationIdEPCResponseResponseBody$inboundSchema.parse(
|
|
195
|
-
JSON.parse(x),
|
|
196
|
-
),
|
|
197
|
-
`Failed to parse 'GetEPCByLocationIdEPCResponseResponseBody' from JSON`,
|
|
198
|
-
);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/** @internal */
|
|
202
|
-
export const GetEPCByLocationIdType$inboundSchema: z.ZodNativeEnum<
|
|
203
|
-
typeof GetEPCByLocationIdType
|
|
204
|
-
> = z.nativeEnum(GetEPCByLocationIdType);
|
|
205
|
-
|
|
206
|
-
/** @internal */
|
|
207
|
-
export const GetEPCByLocationIdError$inboundSchema: z.ZodType<
|
|
208
|
-
GetEPCByLocationIdError,
|
|
209
|
-
z.ZodTypeDef,
|
|
210
|
-
unknown
|
|
211
|
-
> = z.object({
|
|
212
|
-
code: z.string().optional(),
|
|
213
|
-
doc_url: z.string().optional(),
|
|
214
|
-
message: z.string(),
|
|
215
|
-
param: z.string().optional(),
|
|
216
|
-
type: GetEPCByLocationIdType$inboundSchema,
|
|
217
|
-
}).transform((v) => {
|
|
218
|
-
return remap$(v, {
|
|
219
|
-
"doc_url": "docUrl",
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
|
|
223
|
-
export function getEPCByLocationIdErrorFromJSON(
|
|
224
|
-
jsonString: string,
|
|
225
|
-
): SafeParseResult<GetEPCByLocationIdError, SDKValidationError> {
|
|
226
|
-
return safeParse(
|
|
227
|
-
jsonString,
|
|
228
|
-
(x) => GetEPCByLocationIdError$inboundSchema.parse(JSON.parse(x)),
|
|
229
|
-
`Failed to parse 'GetEPCByLocationIdError' from JSON`,
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
/** @internal */
|
|
234
|
-
export const GetEPCByLocationIdEPCResponseBody$inboundSchema: z.ZodType<
|
|
235
|
-
GetEPCByLocationIdEPCResponseBody,
|
|
236
|
-
z.ZodTypeDef,
|
|
237
|
-
unknown
|
|
238
|
-
> = z.object({
|
|
239
|
-
error: z.lazy(() => GetEPCByLocationIdError$inboundSchema),
|
|
240
|
-
});
|
|
241
|
-
|
|
242
|
-
export function getEPCByLocationIdEPCResponseBodyFromJSON(
|
|
243
|
-
jsonString: string,
|
|
244
|
-
): SafeParseResult<GetEPCByLocationIdEPCResponseBody, SDKValidationError> {
|
|
245
|
-
return safeParse(
|
|
246
|
-
jsonString,
|
|
247
|
-
(x) => GetEPCByLocationIdEPCResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
248
|
-
`Failed to parse 'GetEPCByLocationIdEPCResponseBody' from JSON`,
|
|
249
|
-
);
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/** @internal */
|
|
253
|
-
export const GetEPCByLocationIdResponseBody$inboundSchema: z.ZodType<
|
|
254
|
-
GetEPCByLocationIdResponseBody,
|
|
255
|
-
z.ZodTypeDef,
|
|
256
|
-
unknown
|
|
257
|
-
> = z.object({
|
|
258
|
-
data: z.nullable(z.any()).optional(),
|
|
259
|
-
success: z.boolean(),
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
export function getEPCByLocationIdResponseBodyFromJSON(
|
|
263
|
-
jsonString: string,
|
|
264
|
-
): SafeParseResult<GetEPCByLocationIdResponseBody, SDKValidationError> {
|
|
265
|
-
return safeParse(
|
|
266
|
-
jsonString,
|
|
267
|
-
(x) => GetEPCByLocationIdResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
268
|
-
`Failed to parse 'GetEPCByLocationIdResponseBody' from JSON`,
|
|
269
|
-
);
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
/** @internal */
|
|
273
|
-
export const GetEPCByLocationIdResponse$inboundSchema: z.ZodType<
|
|
274
|
-
GetEPCByLocationIdResponse,
|
|
275
|
-
z.ZodTypeDef,
|
|
276
|
-
unknown
|
|
277
|
-
> = z.union([
|
|
278
|
-
z.lazy(() => GetEPCByLocationIdResponseBody$inboundSchema),
|
|
279
|
-
z.lazy(() => GetEPCByLocationIdEPCResponseBody$inboundSchema),
|
|
280
|
-
z.lazy(() => GetEPCByLocationIdEPCResponseResponseBody$inboundSchema),
|
|
281
|
-
]);
|
|
282
|
-
|
|
283
|
-
export function getEPCByLocationIdResponseFromJSON(
|
|
284
|
-
jsonString: string,
|
|
285
|
-
): SafeParseResult<GetEPCByLocationIdResponse, SDKValidationError> {
|
|
286
|
-
return safeParse(
|
|
287
|
-
jsonString,
|
|
288
|
-
(x) => GetEPCByLocationIdResponse$inboundSchema.parse(JSON.parse(x)),
|
|
289
|
-
`Failed to parse 'GetEPCByLocationIdResponse' from JSON`,
|
|
290
|
-
);
|
|
291
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
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 GetEPCByPostcodeRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* UK postcode
|
|
15
|
-
*/
|
|
16
|
-
postcode: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Error type category
|
|
21
|
-
*/
|
|
22
|
-
export const GetEPCByPostcodeType = {
|
|
23
|
-
ApiError: "api_error",
|
|
24
|
-
InvalidRequestError: "invalid_request_error",
|
|
25
|
-
AuthenticationError: "authentication_error",
|
|
26
|
-
RateLimitError: "rate_limit_error",
|
|
27
|
-
} as const;
|
|
28
|
-
/**
|
|
29
|
-
* Error type category
|
|
30
|
-
*/
|
|
31
|
-
export type GetEPCByPostcodeType = ClosedEnum<typeof GetEPCByPostcodeType>;
|
|
32
|
-
|
|
33
|
-
export type GetEPCByPostcodeError = {
|
|
34
|
-
/**
|
|
35
|
-
* Machine-readable error code
|
|
36
|
-
*/
|
|
37
|
-
code?: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* URL to relevant documentation
|
|
40
|
-
*/
|
|
41
|
-
docUrl?: string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Human-readable error message
|
|
44
|
-
*/
|
|
45
|
-
message: string;
|
|
46
|
-
/**
|
|
47
|
-
* Parameter that caused the error
|
|
48
|
-
*/
|
|
49
|
-
param?: string | undefined;
|
|
50
|
-
/**
|
|
51
|
-
* Error type category
|
|
52
|
-
*/
|
|
53
|
-
type: GetEPCByPostcodeType;
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Error response
|
|
58
|
-
*/
|
|
59
|
-
export type GetEPCByPostcodeEPCResponseBody = {
|
|
60
|
-
error: GetEPCByPostcodeError;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* EPC records successfully retrieved
|
|
65
|
-
*/
|
|
66
|
-
export type GetEPCByPostcodeResponseBody = {
|
|
67
|
-
count: number;
|
|
68
|
-
data: Array<any | null>;
|
|
69
|
-
success: boolean;
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
export type GetEPCByPostcodeResponse =
|
|
73
|
-
| GetEPCByPostcodeResponseBody
|
|
74
|
-
| GetEPCByPostcodeEPCResponseBody;
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export type GetEPCByPostcodeRequest$Outbound = {
|
|
78
|
-
postcode: string;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const GetEPCByPostcodeRequest$outboundSchema: z.ZodType<
|
|
83
|
-
GetEPCByPostcodeRequest$Outbound,
|
|
84
|
-
z.ZodTypeDef,
|
|
85
|
-
GetEPCByPostcodeRequest
|
|
86
|
-
> = z.object({
|
|
87
|
-
postcode: z.string(),
|
|
88
|
-
});
|
|
89
|
-
|
|
90
|
-
export function getEPCByPostcodeRequestToJSON(
|
|
91
|
-
getEPCByPostcodeRequest: GetEPCByPostcodeRequest,
|
|
92
|
-
): string {
|
|
93
|
-
return JSON.stringify(
|
|
94
|
-
GetEPCByPostcodeRequest$outboundSchema.parse(getEPCByPostcodeRequest),
|
|
95
|
-
);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
/** @internal */
|
|
99
|
-
export const GetEPCByPostcodeType$inboundSchema: z.ZodNativeEnum<
|
|
100
|
-
typeof GetEPCByPostcodeType
|
|
101
|
-
> = z.nativeEnum(GetEPCByPostcodeType);
|
|
102
|
-
|
|
103
|
-
/** @internal */
|
|
104
|
-
export const GetEPCByPostcodeError$inboundSchema: z.ZodType<
|
|
105
|
-
GetEPCByPostcodeError,
|
|
106
|
-
z.ZodTypeDef,
|
|
107
|
-
unknown
|
|
108
|
-
> = z.object({
|
|
109
|
-
code: z.string().optional(),
|
|
110
|
-
doc_url: z.string().optional(),
|
|
111
|
-
message: z.string(),
|
|
112
|
-
param: z.string().optional(),
|
|
113
|
-
type: GetEPCByPostcodeType$inboundSchema,
|
|
114
|
-
}).transform((v) => {
|
|
115
|
-
return remap$(v, {
|
|
116
|
-
"doc_url": "docUrl",
|
|
117
|
-
});
|
|
118
|
-
});
|
|
119
|
-
|
|
120
|
-
export function getEPCByPostcodeErrorFromJSON(
|
|
121
|
-
jsonString: string,
|
|
122
|
-
): SafeParseResult<GetEPCByPostcodeError, SDKValidationError> {
|
|
123
|
-
return safeParse(
|
|
124
|
-
jsonString,
|
|
125
|
-
(x) => GetEPCByPostcodeError$inboundSchema.parse(JSON.parse(x)),
|
|
126
|
-
`Failed to parse 'GetEPCByPostcodeError' from JSON`,
|
|
127
|
-
);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/** @internal */
|
|
131
|
-
export const GetEPCByPostcodeEPCResponseBody$inboundSchema: z.ZodType<
|
|
132
|
-
GetEPCByPostcodeEPCResponseBody,
|
|
133
|
-
z.ZodTypeDef,
|
|
134
|
-
unknown
|
|
135
|
-
> = z.object({
|
|
136
|
-
error: z.lazy(() => GetEPCByPostcodeError$inboundSchema),
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
export function getEPCByPostcodeEPCResponseBodyFromJSON(
|
|
140
|
-
jsonString: string,
|
|
141
|
-
): SafeParseResult<GetEPCByPostcodeEPCResponseBody, SDKValidationError> {
|
|
142
|
-
return safeParse(
|
|
143
|
-
jsonString,
|
|
144
|
-
(x) => GetEPCByPostcodeEPCResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
145
|
-
`Failed to parse 'GetEPCByPostcodeEPCResponseBody' from JSON`,
|
|
146
|
-
);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** @internal */
|
|
150
|
-
export const GetEPCByPostcodeResponseBody$inboundSchema: z.ZodType<
|
|
151
|
-
GetEPCByPostcodeResponseBody,
|
|
152
|
-
z.ZodTypeDef,
|
|
153
|
-
unknown
|
|
154
|
-
> = z.object({
|
|
155
|
-
count: z.number(),
|
|
156
|
-
data: z.array(z.nullable(z.any())),
|
|
157
|
-
success: z.boolean(),
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
export function getEPCByPostcodeResponseBodyFromJSON(
|
|
161
|
-
jsonString: string,
|
|
162
|
-
): SafeParseResult<GetEPCByPostcodeResponseBody, SDKValidationError> {
|
|
163
|
-
return safeParse(
|
|
164
|
-
jsonString,
|
|
165
|
-
(x) => GetEPCByPostcodeResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
-
`Failed to parse 'GetEPCByPostcodeResponseBody' from JSON`,
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/** @internal */
|
|
171
|
-
export const GetEPCByPostcodeResponse$inboundSchema: z.ZodType<
|
|
172
|
-
GetEPCByPostcodeResponse,
|
|
173
|
-
z.ZodTypeDef,
|
|
174
|
-
unknown
|
|
175
|
-
> = z.union([
|
|
176
|
-
z.lazy(() => GetEPCByPostcodeResponseBody$inboundSchema),
|
|
177
|
-
z.lazy(() => GetEPCByPostcodeEPCResponseBody$inboundSchema),
|
|
178
|
-
]);
|
|
179
|
-
|
|
180
|
-
export function getEPCByPostcodeResponseFromJSON(
|
|
181
|
-
jsonString: string,
|
|
182
|
-
): SafeParseResult<GetEPCByPostcodeResponse, SDKValidationError> {
|
|
183
|
-
return safeParse(
|
|
184
|
-
jsonString,
|
|
185
|
-
(x) => GetEPCByPostcodeResponse$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
-
`Failed to parse 'GetEPCByPostcodeResponse' from JSON`,
|
|
187
|
-
);
|
|
188
|
-
}
|