@vepler/sdk 2.24.1 → 2.28.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 +4 -0
- package/dist/commonjs/funcs/avmGetValuationAnalysis.d.ts +18 -0
- package/dist/commonjs/funcs/avmGetValuationAnalysis.d.ts.map +1 -0
- package/dist/commonjs/funcs/avmGetValuationAnalysis.js +115 -0
- package/dist/commonjs/funcs/avmGetValuationAnalysis.js.map +1 -0
- package/dist/commonjs/funcs/propertyAggregateProperties.d.ts +18 -0
- package/dist/commonjs/funcs/propertyAggregateProperties.d.ts.map +1 -0
- package/dist/commonjs/funcs/propertyAggregateProperties.js +117 -0
- package/dist/commonjs/funcs/propertyAggregateProperties.js.map +1 -0
- package/dist/commonjs/hooks/registration.d.ts +2 -2
- package/dist/commonjs/hooks/registration.d.ts.map +1 -1
- package/dist/commonjs/hooks/registration.js +1 -2
- package/dist/commonjs/hooks/registration.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/sdk/avm.d.ts +7 -0
- package/dist/commonjs/sdk/avm.d.ts.map +1 -1
- package/dist/commonjs/sdk/avm.js +10 -0
- package/dist/commonjs/sdk/avm.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/aggregateproperties.d.ts +108 -0
- package/dist/commonjs/sdk/models/operations/aggregateproperties.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/aggregateproperties.js +124 -0
- package/dist/commonjs/sdk/models/operations/aggregateproperties.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getvaluationanalysis.d.ts +206 -0
- package/dist/commonjs/sdk/models/operations/getvaluationanalysis.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getvaluationanalysis.js +197 -0
- package/dist/commonjs/sdk/models/operations/getvaluationanalysis.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +2 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +2 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/predictpropertyvalue.d.ts +24 -24
- package/dist/commonjs/sdk/models/operations/predictpropertyvalue.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/predictpropertyvalue.js +25 -26
- package/dist/commonjs/sdk/models/operations/predictpropertyvalue.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/aggregationinput.d.ts +118 -0
- package/dist/commonjs/sdk/models/shared/aggregationinput.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/aggregationinput.js +90 -0
- package/dist/commonjs/sdk/models/shared/aggregationinput.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/analysiscomparable.d.ts +72 -0
- package/dist/commonjs/sdk/models/shared/analysiscomparable.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/analysiscomparable.js +71 -0
- package/dist/commonjs/sdk/models/shared/analysiscomparable.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisrequest.d.ts +47 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisrequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisrequest.js +61 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisrequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.d.ts +234 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.js +209 -0
- package/dist/commonjs/sdk/models/shared/avmanalysisresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.js +6 -4
- package/dist/commonjs/sdk/models/shared/avmpredictbylocationrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/council.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/council.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/council.js +5 -4
- package/dist/commonjs/sdk/models/shared/council.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/historicalvaluation.d.ts +42 -0
- package/dist/commonjs/sdk/models/shared/historicalvaluation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/historicalvaluation.js +63 -0
- package/dist/commonjs/sdk/models/shared/historicalvaluation.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts +10 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +10 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/leafaggregation.d.ts +112 -0
- package/dist/commonjs/sdk/models/shared/leafaggregation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/leafaggregation.js +88 -0
- package/dist/commonjs/sdk/models/shared/leafaggregation.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/nestedaggregation.d.ts +118 -0
- package/dist/commonjs/sdk/models/shared/nestedaggregation.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/nestedaggregation.js +90 -0
- package/dist/commonjs/sdk/models/shared/nestedaggregation.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.d.ts +28 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.js +54 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregaterequest.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.d.ts +24 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.js +53 -0
- package/dist/commonjs/sdk/models/shared/propertyaggregateresponse.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js +4 -4
- package/dist/commonjs/sdk/models/shared/propertyqueryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/rangedefinition.d.ts +25 -0
- package/dist/commonjs/sdk/models/shared/rangedefinition.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/rangedefinition.js +51 -0
- package/dist/commonjs/sdk/models/shared/rangedefinition.js.map +1 -0
- package/dist/commonjs/sdk/property.d.ts +7 -0
- package/dist/commonjs/sdk/property.d.ts.map +1 -1
- package/dist/commonjs/sdk/property.js +10 -0
- package/dist/commonjs/sdk/property.js.map +1 -1
- package/dist/esm/funcs/avmGetValuationAnalysis.d.ts +18 -0
- package/dist/esm/funcs/avmGetValuationAnalysis.d.ts.map +1 -0
- package/dist/esm/funcs/avmGetValuationAnalysis.js +79 -0
- package/dist/esm/funcs/avmGetValuationAnalysis.js.map +1 -0
- package/dist/esm/funcs/propertyAggregateProperties.d.ts +18 -0
- package/dist/esm/funcs/propertyAggregateProperties.d.ts.map +1 -0
- package/dist/esm/funcs/propertyAggregateProperties.js +81 -0
- package/dist/esm/funcs/propertyAggregateProperties.js.map +1 -0
- package/dist/esm/hooks/registration.d.ts +2 -2
- package/dist/esm/hooks/registration.d.ts.map +1 -1
- package/dist/esm/hooks/registration.js +1 -2
- package/dist/esm/hooks/registration.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/sdk/avm.d.ts +7 -0
- package/dist/esm/sdk/avm.d.ts.map +1 -1
- package/dist/esm/sdk/avm.js +10 -0
- package/dist/esm/sdk/avm.js.map +1 -1
- package/dist/esm/sdk/models/operations/aggregateproperties.d.ts +108 -0
- package/dist/esm/sdk/models/operations/aggregateproperties.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/aggregateproperties.js +83 -0
- package/dist/esm/sdk/models/operations/aggregateproperties.js.map +1 -0
- package/dist/esm/sdk/models/operations/getvaluationanalysis.d.ts +206 -0
- package/dist/esm/sdk/models/operations/getvaluationanalysis.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getvaluationanalysis.js +152 -0
- package/dist/esm/sdk/models/operations/getvaluationanalysis.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +2 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +2 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/predictpropertyvalue.d.ts +24 -24
- package/dist/esm/sdk/models/operations/predictpropertyvalue.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/predictpropertyvalue.js +21 -22
- package/dist/esm/sdk/models/operations/predictpropertyvalue.js.map +1 -1
- package/dist/esm/sdk/models/shared/aggregationinput.d.ts +118 -0
- package/dist/esm/sdk/models/shared/aggregationinput.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/aggregationinput.js +53 -0
- package/dist/esm/sdk/models/shared/aggregationinput.js.map +1 -0
- package/dist/esm/sdk/models/shared/analysiscomparable.d.ts +72 -0
- package/dist/esm/sdk/models/shared/analysiscomparable.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/analysiscomparable.js +34 -0
- package/dist/esm/sdk/models/shared/analysiscomparable.js.map +1 -0
- package/dist/esm/sdk/models/shared/avmanalysisrequest.d.ts +47 -0
- package/dist/esm/sdk/models/shared/avmanalysisrequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/avmanalysisrequest.js +24 -0
- package/dist/esm/sdk/models/shared/avmanalysisrequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/avmanalysisresponse.d.ts +234 -0
- package/dist/esm/sdk/models/shared/avmanalysisresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/avmanalysisresponse.js +159 -0
- package/dist/esm/sdk/models/shared/avmanalysisresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.d.ts +4 -4
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.js +5 -3
- package/dist/esm/sdk/models/shared/avmpredictbylocationrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/council.d.ts +4 -4
- package/dist/esm/sdk/models/shared/council.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/council.js +4 -3
- package/dist/esm/sdk/models/shared/council.js.map +1 -1
- package/dist/esm/sdk/models/shared/historicalvaluation.d.ts +42 -0
- package/dist/esm/sdk/models/shared/historicalvaluation.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/historicalvaluation.js +25 -0
- package/dist/esm/sdk/models/shared/historicalvaluation.js.map +1 -0
- package/dist/esm/sdk/models/shared/index.d.ts +10 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +10 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/leafaggregation.d.ts +112 -0
- package/dist/esm/sdk/models/shared/leafaggregation.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/leafaggregation.js +51 -0
- package/dist/esm/sdk/models/shared/leafaggregation.js.map +1 -0
- package/dist/esm/sdk/models/shared/nestedaggregation.d.ts +118 -0
- package/dist/esm/sdk/models/shared/nestedaggregation.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/nestedaggregation.js +53 -0
- package/dist/esm/sdk/models/shared/nestedaggregation.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertyaggregaterequest.d.ts +28 -0
- package/dist/esm/sdk/models/shared/propertyaggregaterequest.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertyaggregaterequest.js +17 -0
- package/dist/esm/sdk/models/shared/propertyaggregaterequest.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertyaggregateresponse.d.ts +24 -0
- package/dist/esm/sdk/models/shared/propertyaggregateresponse.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/propertyaggregateresponse.js +16 -0
- package/dist/esm/sdk/models/shared/propertyaggregateresponse.js.map +1 -0
- package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts +4 -4
- package/dist/esm/sdk/models/shared/propertyqueryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js +3 -3
- package/dist/esm/sdk/models/shared/propertyqueryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/rangedefinition.d.ts +25 -0
- package/dist/esm/sdk/models/shared/rangedefinition.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/rangedefinition.js +14 -0
- package/dist/esm/sdk/models/shared/rangedefinition.js.map +1 -0
- package/dist/esm/sdk/property.d.ts +7 -0
- package/dist/esm/sdk/property.d.ts.map +1 -1
- package/dist/esm/sdk/property.js +10 -0
- package/dist/esm/sdk/property.js.map +1 -1
- package/openapi.json +12446 -1
- package/package.json +1 -1
- package/src/funcs/avmGetValuationAnalysis.ts +163 -0
- package/src/funcs/propertyAggregateProperties.ts +164 -0
- package/src/hooks/registration.ts +2 -3
- package/src/lib/config.ts +3 -3
- package/src/sdk/avm.ts +18 -0
- package/src/sdk/models/operations/aggregateproperties.ts +237 -0
- package/src/sdk/models/operations/getvaluationanalysis.ts +443 -0
- package/src/sdk/models/operations/index.ts +2 -0
- package/src/sdk/models/operations/predictpropertyvalue.ts +63 -59
- package/src/sdk/models/shared/aggregationinput.ts +162 -0
- package/src/sdk/models/shared/analysiscomparable.ts +107 -0
- package/src/sdk/models/shared/avmanalysisrequest.ts +73 -0
- package/src/sdk/models/shared/avmanalysisresponse.ts +519 -0
- package/src/sdk/models/shared/avmpredictbylocationrequest.ts +10 -7
- package/src/sdk/models/shared/council.ts +6 -7
- package/src/sdk/models/shared/historicalvaluation.ts +85 -0
- package/src/sdk/models/shared/index.ts +10 -0
- package/src/sdk/models/shared/leafaggregation.ts +149 -0
- package/src/sdk/models/shared/nestedaggregation.ts +162 -0
- package/src/sdk/models/shared/propertyaggregaterequest.ts +61 -0
- package/src/sdk/models/shared/propertyaggregateresponse.ts +46 -0
- package/src/sdk/models/shared/propertyqueryrequest.ts +9 -7
- package/src/sdk/models/shared/rangedefinition.ts +44 -0
- package/src/sdk/property.ts +18 -0
|
@@ -13,7 +13,7 @@ import * as shared from "../shared/index.js";
|
|
|
13
13
|
/**
|
|
14
14
|
* Error type category
|
|
15
15
|
*/
|
|
16
|
-
export const
|
|
16
|
+
export const PredictPropertyValueAVMResponseType = {
|
|
17
17
|
ApiError: "api_error",
|
|
18
18
|
InvalidRequestError: "invalid_request_error",
|
|
19
19
|
AuthenticationError: "authentication_error",
|
|
@@ -22,11 +22,11 @@ export const PredictPropertyValueAVMType = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Error type category
|
|
24
24
|
*/
|
|
25
|
-
export type
|
|
26
|
-
typeof
|
|
25
|
+
export type PredictPropertyValueAVMResponseType = ClosedEnum<
|
|
26
|
+
typeof PredictPropertyValueAVMResponseType
|
|
27
27
|
>;
|
|
28
28
|
|
|
29
|
-
export type
|
|
29
|
+
export type PredictPropertyValueAVMResponseError = {
|
|
30
30
|
/**
|
|
31
31
|
* Machine-readable error code
|
|
32
32
|
*/
|
|
@@ -46,20 +46,20 @@ export type PredictPropertyValueAVMError = {
|
|
|
46
46
|
/**
|
|
47
47
|
* Error type category
|
|
48
48
|
*/
|
|
49
|
-
type:
|
|
49
|
+
type: PredictPropertyValueAVMResponseType;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Error response
|
|
54
54
|
*/
|
|
55
55
|
export type PredictPropertyValueAVMResponseResponseBody = {
|
|
56
|
-
error:
|
|
56
|
+
error: PredictPropertyValueAVMResponseError;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* Error type category
|
|
61
61
|
*/
|
|
62
|
-
export const
|
|
62
|
+
export const PredictPropertyValueAVMType = {
|
|
63
63
|
ApiError: "api_error",
|
|
64
64
|
InvalidRequestError: "invalid_request_error",
|
|
65
65
|
AuthenticationError: "authentication_error",
|
|
@@ -68,11 +68,11 @@ export const PredictPropertyValueType = {
|
|
|
68
68
|
/**
|
|
69
69
|
* Error type category
|
|
70
70
|
*/
|
|
71
|
-
export type
|
|
72
|
-
typeof
|
|
71
|
+
export type PredictPropertyValueAVMType = ClosedEnum<
|
|
72
|
+
typeof PredictPropertyValueAVMType
|
|
73
73
|
>;
|
|
74
74
|
|
|
75
|
-
export type
|
|
75
|
+
export type PredictPropertyValueAVMError = {
|
|
76
76
|
/**
|
|
77
77
|
* Machine-readable error code
|
|
78
78
|
*/
|
|
@@ -92,20 +92,20 @@ export type PredictPropertyValueError = {
|
|
|
92
92
|
/**
|
|
93
93
|
* Error type category
|
|
94
94
|
*/
|
|
95
|
-
type:
|
|
95
|
+
type: PredictPropertyValueAVMType;
|
|
96
96
|
};
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
99
|
* Error response
|
|
100
100
|
*/
|
|
101
101
|
export type PredictPropertyValueAVMResponseBody = {
|
|
102
|
-
error:
|
|
102
|
+
error: PredictPropertyValueAVMError;
|
|
103
103
|
};
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
106
|
* Error type category
|
|
107
107
|
*/
|
|
108
|
-
export const
|
|
108
|
+
export const PredictPropertyValueType = {
|
|
109
109
|
ApiError: "api_error",
|
|
110
110
|
InvalidRequestError: "invalid_request_error",
|
|
111
111
|
AuthenticationError: "authentication_error",
|
|
@@ -114,11 +114,11 @@ export const PredictPropertyValueAVMResponseType = {
|
|
|
114
114
|
/**
|
|
115
115
|
* Error type category
|
|
116
116
|
*/
|
|
117
|
-
export type
|
|
118
|
-
typeof
|
|
117
|
+
export type PredictPropertyValueType = ClosedEnum<
|
|
118
|
+
typeof PredictPropertyValueType
|
|
119
119
|
>;
|
|
120
120
|
|
|
121
|
-
export type
|
|
121
|
+
export type PredictPropertyValueError = {
|
|
122
122
|
/**
|
|
123
123
|
* Machine-readable error code
|
|
124
124
|
*/
|
|
@@ -138,14 +138,14 @@ export type ErrorT = {
|
|
|
138
138
|
/**
|
|
139
139
|
* Error type category
|
|
140
140
|
*/
|
|
141
|
-
type:
|
|
141
|
+
type: PredictPropertyValueType;
|
|
142
142
|
};
|
|
143
143
|
|
|
144
144
|
/**
|
|
145
145
|
* Error response
|
|
146
146
|
*/
|
|
147
147
|
export type PredictPropertyValueResponseBody = {
|
|
148
|
-
error:
|
|
148
|
+
error: PredictPropertyValueError;
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
export type PredictPropertyValueResponse =
|
|
@@ -155,13 +155,13 @@ export type PredictPropertyValueResponse =
|
|
|
155
155
|
| PredictPropertyValueAVMResponseResponseBody;
|
|
156
156
|
|
|
157
157
|
/** @internal */
|
|
158
|
-
export const
|
|
159
|
-
typeof
|
|
160
|
-
> = z.nativeEnum(
|
|
158
|
+
export const PredictPropertyValueAVMResponseType$inboundSchema: z.ZodNativeEnum<
|
|
159
|
+
typeof PredictPropertyValueAVMResponseType
|
|
160
|
+
> = z.nativeEnum(PredictPropertyValueAVMResponseType);
|
|
161
161
|
|
|
162
162
|
/** @internal */
|
|
163
|
-
export const
|
|
164
|
-
|
|
163
|
+
export const PredictPropertyValueAVMResponseError$inboundSchema: z.ZodType<
|
|
164
|
+
PredictPropertyValueAVMResponseError,
|
|
165
165
|
z.ZodTypeDef,
|
|
166
166
|
unknown
|
|
167
167
|
> = z.object({
|
|
@@ -169,20 +169,21 @@ export const PredictPropertyValueAVMError$inboundSchema: z.ZodType<
|
|
|
169
169
|
doc_url: z.string().optional(),
|
|
170
170
|
message: z.string(),
|
|
171
171
|
param: z.string().optional(),
|
|
172
|
-
type:
|
|
172
|
+
type: PredictPropertyValueAVMResponseType$inboundSchema,
|
|
173
173
|
}).transform((v) => {
|
|
174
174
|
return remap$(v, {
|
|
175
175
|
"doc_url": "docUrl",
|
|
176
176
|
});
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
export function
|
|
179
|
+
export function predictPropertyValueAVMResponseErrorFromJSON(
|
|
180
180
|
jsonString: string,
|
|
181
|
-
): SafeParseResult<
|
|
181
|
+
): SafeParseResult<PredictPropertyValueAVMResponseError, SDKValidationError> {
|
|
182
182
|
return safeParse(
|
|
183
183
|
jsonString,
|
|
184
|
-
(x) =>
|
|
185
|
-
|
|
184
|
+
(x) =>
|
|
185
|
+
PredictPropertyValueAVMResponseError$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
+
`Failed to parse 'PredictPropertyValueAVMResponseError' from JSON`,
|
|
186
187
|
);
|
|
187
188
|
}
|
|
188
189
|
|
|
@@ -193,7 +194,7 @@ export const PredictPropertyValueAVMResponseResponseBody$inboundSchema:
|
|
|
193
194
|
z.ZodTypeDef,
|
|
194
195
|
unknown
|
|
195
196
|
> = z.object({
|
|
196
|
-
error: z.lazy(() =>
|
|
197
|
+
error: z.lazy(() => PredictPropertyValueAVMResponseError$inboundSchema),
|
|
197
198
|
});
|
|
198
199
|
|
|
199
200
|
export function predictPropertyValueAVMResponseResponseBodyFromJSON(
|
|
@@ -213,13 +214,13 @@ export function predictPropertyValueAVMResponseResponseBodyFromJSON(
|
|
|
213
214
|
}
|
|
214
215
|
|
|
215
216
|
/** @internal */
|
|
216
|
-
export const
|
|
217
|
-
typeof
|
|
218
|
-
> = z.nativeEnum(
|
|
217
|
+
export const PredictPropertyValueAVMType$inboundSchema: z.ZodNativeEnum<
|
|
218
|
+
typeof PredictPropertyValueAVMType
|
|
219
|
+
> = z.nativeEnum(PredictPropertyValueAVMType);
|
|
219
220
|
|
|
220
221
|
/** @internal */
|
|
221
|
-
export const
|
|
222
|
-
|
|
222
|
+
export const PredictPropertyValueAVMError$inboundSchema: z.ZodType<
|
|
223
|
+
PredictPropertyValueAVMError,
|
|
223
224
|
z.ZodTypeDef,
|
|
224
225
|
unknown
|
|
225
226
|
> = z.object({
|
|
@@ -227,20 +228,20 @@ export const PredictPropertyValueError$inboundSchema: z.ZodType<
|
|
|
227
228
|
doc_url: z.string().optional(),
|
|
228
229
|
message: z.string(),
|
|
229
230
|
param: z.string().optional(),
|
|
230
|
-
type:
|
|
231
|
+
type: PredictPropertyValueAVMType$inboundSchema,
|
|
231
232
|
}).transform((v) => {
|
|
232
233
|
return remap$(v, {
|
|
233
234
|
"doc_url": "docUrl",
|
|
234
235
|
});
|
|
235
236
|
});
|
|
236
237
|
|
|
237
|
-
export function
|
|
238
|
+
export function predictPropertyValueAVMErrorFromJSON(
|
|
238
239
|
jsonString: string,
|
|
239
|
-
): SafeParseResult<
|
|
240
|
+
): SafeParseResult<PredictPropertyValueAVMError, SDKValidationError> {
|
|
240
241
|
return safeParse(
|
|
241
242
|
jsonString,
|
|
242
|
-
(x) =>
|
|
243
|
-
`Failed to parse '
|
|
243
|
+
(x) => PredictPropertyValueAVMError$inboundSchema.parse(JSON.parse(x)),
|
|
244
|
+
`Failed to parse 'PredictPropertyValueAVMError' from JSON`,
|
|
244
245
|
);
|
|
245
246
|
}
|
|
246
247
|
|
|
@@ -250,7 +251,7 @@ export const PredictPropertyValueAVMResponseBody$inboundSchema: z.ZodType<
|
|
|
250
251
|
z.ZodTypeDef,
|
|
251
252
|
unknown
|
|
252
253
|
> = z.object({
|
|
253
|
-
error: z.lazy(() =>
|
|
254
|
+
error: z.lazy(() => PredictPropertyValueAVMError$inboundSchema),
|
|
254
255
|
});
|
|
255
256
|
|
|
256
257
|
export function predictPropertyValueAVMResponseBodyFromJSON(
|
|
@@ -265,31 +266,34 @@ export function predictPropertyValueAVMResponseBodyFromJSON(
|
|
|
265
266
|
}
|
|
266
267
|
|
|
267
268
|
/** @internal */
|
|
268
|
-
export const
|
|
269
|
-
typeof
|
|
270
|
-
> = z.nativeEnum(
|
|
269
|
+
export const PredictPropertyValueType$inboundSchema: z.ZodNativeEnum<
|
|
270
|
+
typeof PredictPropertyValueType
|
|
271
|
+
> = z.nativeEnum(PredictPropertyValueType);
|
|
271
272
|
|
|
272
273
|
/** @internal */
|
|
273
|
-
export const
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
274
|
+
export const PredictPropertyValueError$inboundSchema: z.ZodType<
|
|
275
|
+
PredictPropertyValueError,
|
|
276
|
+
z.ZodTypeDef,
|
|
277
|
+
unknown
|
|
278
|
+
> = z.object({
|
|
279
|
+
code: z.string().optional(),
|
|
280
|
+
doc_url: z.string().optional(),
|
|
281
|
+
message: z.string(),
|
|
282
|
+
param: z.string().optional(),
|
|
283
|
+
type: PredictPropertyValueType$inboundSchema,
|
|
284
|
+
}).transform((v) => {
|
|
285
|
+
return remap$(v, {
|
|
286
|
+
"doc_url": "docUrl",
|
|
284
287
|
});
|
|
288
|
+
});
|
|
285
289
|
|
|
286
|
-
export function
|
|
290
|
+
export function predictPropertyValueErrorFromJSON(
|
|
287
291
|
jsonString: string,
|
|
288
|
-
): SafeParseResult<
|
|
292
|
+
): SafeParseResult<PredictPropertyValueError, SDKValidationError> {
|
|
289
293
|
return safeParse(
|
|
290
294
|
jsonString,
|
|
291
|
-
(x) =>
|
|
292
|
-
`Failed to parse '
|
|
295
|
+
(x) => PredictPropertyValueError$inboundSchema.parse(JSON.parse(x)),
|
|
296
|
+
`Failed to parse 'PredictPropertyValueError' from JSON`,
|
|
293
297
|
);
|
|
294
298
|
}
|
|
295
299
|
|
|
@@ -299,7 +303,7 @@ export const PredictPropertyValueResponseBody$inboundSchema: z.ZodType<
|
|
|
299
303
|
z.ZodTypeDef,
|
|
300
304
|
unknown
|
|
301
305
|
> = z.object({
|
|
302
|
-
error: z.lazy(() =>
|
|
306
|
+
error: z.lazy(() => PredictPropertyValueError$inboundSchema),
|
|
303
307
|
});
|
|
304
308
|
|
|
305
309
|
export function predictPropertyValueResponseBodyFromJSON(
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
import {
|
|
8
|
+
NestedAggregation,
|
|
9
|
+
NestedAggregation$Outbound,
|
|
10
|
+
NestedAggregation$outboundSchema,
|
|
11
|
+
} from "./nestedaggregation.js";
|
|
12
|
+
import {
|
|
13
|
+
RangeDefinition,
|
|
14
|
+
RangeDefinition$Outbound,
|
|
15
|
+
RangeDefinition$outboundSchema,
|
|
16
|
+
} from "./rangedefinition.js";
|
|
17
|
+
|
|
18
|
+
export const Order = {
|
|
19
|
+
Asc: "asc",
|
|
20
|
+
Desc: "desc",
|
|
21
|
+
} as const;
|
|
22
|
+
export type Order = ClosedEnum<typeof Order>;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Type of aggregation
|
|
26
|
+
*/
|
|
27
|
+
export const Type = {
|
|
28
|
+
Terms: "terms",
|
|
29
|
+
Range: "range",
|
|
30
|
+
Histogram: "histogram",
|
|
31
|
+
DateHistogram: "date_histogram",
|
|
32
|
+
Stats: "stats",
|
|
33
|
+
ExtendedStats: "extended_stats",
|
|
34
|
+
Min: "min",
|
|
35
|
+
Max: "max",
|
|
36
|
+
Avg: "avg",
|
|
37
|
+
Sum: "sum",
|
|
38
|
+
Count: "count",
|
|
39
|
+
Cardinality: "cardinality",
|
|
40
|
+
Percentiles: "percentiles",
|
|
41
|
+
} as const;
|
|
42
|
+
/**
|
|
43
|
+
* Type of aggregation
|
|
44
|
+
*/
|
|
45
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
46
|
+
|
|
47
|
+
export type AggregationInput = {
|
|
48
|
+
/**
|
|
49
|
+
* Nested sub-aggregations (max 10, up to 2 levels deep)
|
|
50
|
+
*/
|
|
51
|
+
aggs?: Array<NestedAggregation> | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Calendar interval for date_histogram (1d, 1w, 1M, etc.)
|
|
54
|
+
*/
|
|
55
|
+
calendarInterval?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Field to aggregate on (must be in allowed field list)
|
|
58
|
+
*/
|
|
59
|
+
field: string;
|
|
60
|
+
/**
|
|
61
|
+
* Fixed interval for date_histogram (1h, 90m, etc.)
|
|
62
|
+
*/
|
|
63
|
+
fixedInterval?: string | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Date format for date_histogram
|
|
66
|
+
*/
|
|
67
|
+
format?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Interval for histogram aggregation
|
|
70
|
+
*/
|
|
71
|
+
interval?: number | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Minimum document count for bucket to be returned
|
|
74
|
+
*/
|
|
75
|
+
minDocCount?: number | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Unique name for this aggregation
|
|
78
|
+
*/
|
|
79
|
+
name: string;
|
|
80
|
+
/**
|
|
81
|
+
* Sort order for terms buckets
|
|
82
|
+
*/
|
|
83
|
+
order?: { [k: string]: Order } | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* Percentiles to calculate
|
|
86
|
+
*/
|
|
87
|
+
percents?: Array<number> | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Custom ranges for range aggregation
|
|
90
|
+
*/
|
|
91
|
+
ranges?: Array<RangeDefinition> | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* Max buckets for terms aggregation
|
|
94
|
+
*/
|
|
95
|
+
size?: number | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* Timezone for date_histogram
|
|
98
|
+
*/
|
|
99
|
+
timeZone?: string | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* Type of aggregation
|
|
102
|
+
*/
|
|
103
|
+
type: Type;
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const Order$outboundSchema: z.ZodNativeEnum<typeof Order> = z.nativeEnum(
|
|
108
|
+
Order,
|
|
109
|
+
);
|
|
110
|
+
|
|
111
|
+
/** @internal */
|
|
112
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
113
|
+
Type,
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type AggregationInput$Outbound = {
|
|
118
|
+
aggs?: Array<NestedAggregation$Outbound> | undefined;
|
|
119
|
+
calendarInterval?: string | undefined;
|
|
120
|
+
field: string;
|
|
121
|
+
fixedInterval?: string | undefined;
|
|
122
|
+
format?: string | undefined;
|
|
123
|
+
interval?: number | undefined;
|
|
124
|
+
minDocCount?: number | undefined;
|
|
125
|
+
name: string;
|
|
126
|
+
order?: { [k: string]: string } | undefined;
|
|
127
|
+
percents?: Array<number> | undefined;
|
|
128
|
+
ranges?: Array<RangeDefinition$Outbound> | undefined;
|
|
129
|
+
size?: number | undefined;
|
|
130
|
+
timeZone?: string | undefined;
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
/** @internal */
|
|
135
|
+
export const AggregationInput$outboundSchema: z.ZodType<
|
|
136
|
+
AggregationInput$Outbound,
|
|
137
|
+
z.ZodTypeDef,
|
|
138
|
+
AggregationInput
|
|
139
|
+
> = z.object({
|
|
140
|
+
aggs: z.array(NestedAggregation$outboundSchema).optional(),
|
|
141
|
+
calendarInterval: z.string().optional(),
|
|
142
|
+
field: z.string(),
|
|
143
|
+
fixedInterval: z.string().optional(),
|
|
144
|
+
format: z.string().optional(),
|
|
145
|
+
interval: z.number().optional(),
|
|
146
|
+
minDocCount: z.number().int().optional(),
|
|
147
|
+
name: z.string(),
|
|
148
|
+
order: z.record(Order$outboundSchema).optional(),
|
|
149
|
+
percents: z.array(z.number()).optional(),
|
|
150
|
+
ranges: z.array(RangeDefinition$outboundSchema).optional(),
|
|
151
|
+
size: z.number().int().optional(),
|
|
152
|
+
timeZone: z.string().optional(),
|
|
153
|
+
type: Type$outboundSchema,
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export function aggregationInputToJSON(
|
|
157
|
+
aggregationInput: AggregationInput,
|
|
158
|
+
): string {
|
|
159
|
+
return JSON.stringify(
|
|
160
|
+
AggregationInput$outboundSchema.parse(aggregationInput),
|
|
161
|
+
);
|
|
162
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Quality tier based on similarity to subject
|
|
13
|
+
*/
|
|
14
|
+
export const Tier = {
|
|
15
|
+
Excellent: "excellent",
|
|
16
|
+
Good: "good",
|
|
17
|
+
Acceptable: "acceptable",
|
|
18
|
+
Excluded: "excluded",
|
|
19
|
+
} as const;
|
|
20
|
+
/**
|
|
21
|
+
* Quality tier based on similarity to subject
|
|
22
|
+
*/
|
|
23
|
+
export type Tier = ClosedEnum<typeof Tier>;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Comparable property with tier assessment
|
|
27
|
+
*/
|
|
28
|
+
export type AnalysisComparable = {
|
|
29
|
+
/**
|
|
30
|
+
* Number of bathrooms
|
|
31
|
+
*/
|
|
32
|
+
baths?: number | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Number of bedrooms
|
|
35
|
+
*/
|
|
36
|
+
beds?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Distance from subject property in metres
|
|
39
|
+
*/
|
|
40
|
+
distanceMeters?: number | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Floor area in square metres
|
|
43
|
+
*/
|
|
44
|
+
floorArea?: number | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Transaction price in GBP
|
|
47
|
+
*/
|
|
48
|
+
price: number;
|
|
49
|
+
/**
|
|
50
|
+
* Unique property identifier
|
|
51
|
+
*/
|
|
52
|
+
propertyId: string;
|
|
53
|
+
/**
|
|
54
|
+
* Property type
|
|
55
|
+
*/
|
|
56
|
+
propertyType?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Quality tier based on similarity to subject
|
|
59
|
+
*/
|
|
60
|
+
tier: Tier;
|
|
61
|
+
/**
|
|
62
|
+
* Reasons for tier assignment
|
|
63
|
+
*/
|
|
64
|
+
tierReasons: Array<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Days since transaction
|
|
67
|
+
*/
|
|
68
|
+
transactionAge?: number | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* Weighting factor used in valuation
|
|
71
|
+
*/
|
|
72
|
+
weight?: number | undefined;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const Tier$inboundSchema: z.ZodNativeEnum<typeof Tier> = z.nativeEnum(
|
|
77
|
+
Tier,
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
/** @internal */
|
|
81
|
+
export const AnalysisComparable$inboundSchema: z.ZodType<
|
|
82
|
+
AnalysisComparable,
|
|
83
|
+
z.ZodTypeDef,
|
|
84
|
+
unknown
|
|
85
|
+
> = z.object({
|
|
86
|
+
baths: z.number().int().optional(),
|
|
87
|
+
beds: z.number().int().optional(),
|
|
88
|
+
distanceMeters: z.number().optional(),
|
|
89
|
+
floorArea: z.number().optional(),
|
|
90
|
+
price: z.number(),
|
|
91
|
+
propertyId: z.string(),
|
|
92
|
+
propertyType: z.string().optional(),
|
|
93
|
+
tier: Tier$inboundSchema,
|
|
94
|
+
tierReasons: z.array(z.string()),
|
|
95
|
+
transactionAge: z.number().optional(),
|
|
96
|
+
weight: z.number().optional(),
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export function analysisComparableFromJSON(
|
|
100
|
+
jsonString: string,
|
|
101
|
+
): SafeParseResult<AnalysisComparable, SDKValidationError> {
|
|
102
|
+
return safeParse(
|
|
103
|
+
jsonString,
|
|
104
|
+
(x) => AnalysisComparable$inboundSchema.parse(JSON.parse(x)),
|
|
105
|
+
`Failed to parse 'AnalysisComparable' from JSON`,
|
|
106
|
+
);
|
|
107
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Type of transaction - sale or rental valuation
|
|
10
|
+
*/
|
|
11
|
+
export const TransactionType = {
|
|
12
|
+
Sale: "sale",
|
|
13
|
+
Rent: "rent",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Type of transaction - sale or rental valuation
|
|
17
|
+
*/
|
|
18
|
+
export type TransactionType = ClosedEnum<typeof TransactionType>;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Request for detailed AVM analysis with comparables and history
|
|
22
|
+
*/
|
|
23
|
+
export type AVMAnalysisRequest = {
|
|
24
|
+
/**
|
|
25
|
+
* Number of months of historical data to include
|
|
26
|
+
*/
|
|
27
|
+
historyMonths?: number | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to include historical valuations
|
|
30
|
+
*/
|
|
31
|
+
includeHistory?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Property location identifier
|
|
34
|
+
*/
|
|
35
|
+
locationId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Type of transaction - sale or rental valuation
|
|
38
|
+
*/
|
|
39
|
+
transactionType?: TransactionType | undefined;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
/** @internal */
|
|
43
|
+
export const TransactionType$outboundSchema: z.ZodNativeEnum<
|
|
44
|
+
typeof TransactionType
|
|
45
|
+
> = z.nativeEnum(TransactionType);
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export type AVMAnalysisRequest$Outbound = {
|
|
49
|
+
historyMonths: number;
|
|
50
|
+
includeHistory: boolean;
|
|
51
|
+
locationId: string;
|
|
52
|
+
transactionType: string;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const AVMAnalysisRequest$outboundSchema: z.ZodType<
|
|
57
|
+
AVMAnalysisRequest$Outbound,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
AVMAnalysisRequest
|
|
60
|
+
> = z.object({
|
|
61
|
+
historyMonths: z.number().int().default(12),
|
|
62
|
+
includeHistory: z.boolean().default(true),
|
|
63
|
+
locationId: z.string(),
|
|
64
|
+
transactionType: TransactionType$outboundSchema.default("sale"),
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
export function avmAnalysisRequestToJSON(
|
|
68
|
+
avmAnalysisRequest: AVMAnalysisRequest,
|
|
69
|
+
): string {
|
|
70
|
+
return JSON.stringify(
|
|
71
|
+
AVMAnalysisRequest$outboundSchema.parse(avmAnalysisRequest),
|
|
72
|
+
);
|
|
73
|
+
}
|