@vepler/sdk 1.9.11 → 1.10.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 +23 -1
- package/dist/commonjs/funcs/schoolMetricsGetMetrics.d.ts +17 -0
- package/dist/commonjs/funcs/schoolMetricsGetMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolMetricsGetMetrics.js +130 -0
- package/dist/commonjs/funcs/schoolMetricsGetMetrics.js.map +1 -0
- package/dist/commonjs/funcs/schoolMetricsListProfiles.d.ts +17 -0
- package/dist/commonjs/funcs/schoolMetricsListProfiles.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolMetricsListProfiles.js +104 -0
- package/dist/commonjs/funcs/schoolMetricsListProfiles.js.map +1 -0
- package/dist/commonjs/funcs/schoolsGet.d.ts +17 -0
- package/dist/commonjs/funcs/schoolsGet.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolsGet.js +124 -0
- package/dist/commonjs/funcs/schoolsGet.js.map +1 -0
- package/dist/commonjs/funcs/schoolsGetBySlug.d.ts +17 -0
- package/dist/commonjs/funcs/schoolsGetBySlug.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolsGetBySlug.js +124 -0
- package/dist/commonjs/funcs/schoolsGetBySlug.js.map +1 -0
- package/dist/commonjs/funcs/schoolsGetByUrn.d.ts +17 -0
- package/dist/commonjs/funcs/schoolsGetByUrn.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolsGetByUrn.js +124 -0
- package/dist/commonjs/funcs/schoolsGetByUrn.js.map +1 -0
- package/dist/commonjs/funcs/schoolsList.d.ts +17 -0
- package/dist/commonjs/funcs/schoolsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolsList.js +126 -0
- package/dist/commonjs/funcs/schoolsList.js.map +1 -0
- package/dist/commonjs/funcs/schoolsSearchNearby.d.ts +17 -0
- package/dist/commonjs/funcs/schoolsSearchNearby.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolsSearchNearby.js +125 -0
- package/dist/commonjs/funcs/schoolsSearchNearby.js.map +1 -0
- package/dist/commonjs/funcs/schoolsSearchWithin.d.ts +17 -0
- package/dist/commonjs/funcs/schoolsSearchWithin.d.ts.map +1 -0
- package/dist/commonjs/funcs/schoolsSearchWithin.js +125 -0
- package/dist/commonjs/funcs/schoolsSearchWithin.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.d.ts.map +1 -1
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getmetricprofiles.d.ts +89 -0
- package/dist/commonjs/sdk/models/operations/getmetricprofiles.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getmetricprofiles.js +122 -0
- package/dist/commonjs/sdk/models/operations/getmetricprofiles.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyid.d.ts +245 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyid.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyid.js +267 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyid.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyslug.d.ts +245 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyslug.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyslug.js +267 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyslug.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyurn.d.ts +245 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyurn.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyurn.js +267 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyurn.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.d.ts +901 -0
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.js +844 -0
- package/dist/commonjs/sdk/models/operations/getschoolmetrics.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts +8 -0
- package/dist/commonjs/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/index.js +8 -0
- package/dist/commonjs/sdk/models/operations/index.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/listschools.d.ts +248 -0
- package/dist/commonjs/sdk/models/operations/listschools.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/listschools.js +262 -0
- package/dist/commonjs/sdk/models/operations/listschools.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/searchschoolsnearby.d.ts +274 -0
- package/dist/commonjs/sdk/models/operations/searchschoolsnearby.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/searchschoolsnearby.js +282 -0
- package/dist/commonjs/sdk/models/operations/searchschoolsnearby.js.map +1 -0
- package/dist/commonjs/sdk/models/operations/searchschoolswithin.d.ts +243 -0
- package/dist/commonjs/sdk/models/operations/searchschoolswithin.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/operations/searchschoolswithin.js +260 -0
- package/dist/commonjs/sdk/models/operations/searchschoolswithin.js.map +1 -0
- 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/postcodeareafilter.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/propertyaddress.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/school.d.ts +441 -0
- package/dist/commonjs/sdk/models/shared/school.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/school.js +301 -0
- package/dist/commonjs/sdk/models/shared/school.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/streetquerybycoordinates.d.ts +2 -2
- package/dist/commonjs/sdk/schoolmetrics.d.ts +19 -0
- package/dist/commonjs/sdk/schoolmetrics.d.ts.map +1 -0
- package/dist/commonjs/sdk/schoolmetrics.js +32 -0
- package/dist/commonjs/sdk/schoolmetrics.js.map +1 -0
- package/dist/commonjs/sdk/schools.d.ts +47 -0
- package/dist/commonjs/sdk/schools.d.ts.map +1 -0
- package/dist/commonjs/sdk/schools.js +72 -0
- package/dist/commonjs/sdk/schools.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +6 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +8 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/schoolMetricsGetMetrics.d.ts +17 -0
- package/dist/esm/funcs/schoolMetricsGetMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/schoolMetricsGetMetrics.js +94 -0
- package/dist/esm/funcs/schoolMetricsGetMetrics.js.map +1 -0
- package/dist/esm/funcs/schoolMetricsListProfiles.d.ts +17 -0
- package/dist/esm/funcs/schoolMetricsListProfiles.d.ts.map +1 -0
- package/dist/esm/funcs/schoolMetricsListProfiles.js +68 -0
- package/dist/esm/funcs/schoolMetricsListProfiles.js.map +1 -0
- package/dist/esm/funcs/schoolsGet.d.ts +17 -0
- package/dist/esm/funcs/schoolsGet.d.ts.map +1 -0
- package/dist/esm/funcs/schoolsGet.js +88 -0
- package/dist/esm/funcs/schoolsGet.js.map +1 -0
- package/dist/esm/funcs/schoolsGetBySlug.d.ts +17 -0
- package/dist/esm/funcs/schoolsGetBySlug.d.ts.map +1 -0
- package/dist/esm/funcs/schoolsGetBySlug.js +88 -0
- package/dist/esm/funcs/schoolsGetBySlug.js.map +1 -0
- package/dist/esm/funcs/schoolsGetByUrn.d.ts +17 -0
- package/dist/esm/funcs/schoolsGetByUrn.d.ts.map +1 -0
- package/dist/esm/funcs/schoolsGetByUrn.js +88 -0
- package/dist/esm/funcs/schoolsGetByUrn.js.map +1 -0
- package/dist/esm/funcs/schoolsList.d.ts +17 -0
- package/dist/esm/funcs/schoolsList.d.ts.map +1 -0
- package/dist/esm/funcs/schoolsList.js +90 -0
- package/dist/esm/funcs/schoolsList.js.map +1 -0
- package/dist/esm/funcs/schoolsSearchNearby.d.ts +17 -0
- package/dist/esm/funcs/schoolsSearchNearby.d.ts.map +1 -0
- package/dist/esm/funcs/schoolsSearchNearby.js +89 -0
- package/dist/esm/funcs/schoolsSearchNearby.js.map +1 -0
- package/dist/esm/funcs/schoolsSearchWithin.d.ts +17 -0
- package/dist/esm/funcs/schoolsSearchWithin.d.ts.map +1 -0
- package/dist/esm/funcs/schoolsSearchWithin.js +89 -0
- package/dist/esm/funcs/schoolsSearchWithin.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.d.ts.map +1 -1
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/models/operations/getmetricprofiles.d.ts +89 -0
- package/dist/esm/sdk/models/operations/getmetricprofiles.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getmetricprofiles.js +82 -0
- package/dist/esm/sdk/models/operations/getmetricprofiles.js.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolbyid.d.ts +245 -0
- package/dist/esm/sdk/models/operations/getschoolbyid.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolbyid.js +219 -0
- package/dist/esm/sdk/models/operations/getschoolbyid.js.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolbyslug.d.ts +245 -0
- package/dist/esm/sdk/models/operations/getschoolbyslug.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolbyslug.js +219 -0
- package/dist/esm/sdk/models/operations/getschoolbyslug.js.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolbyurn.d.ts +245 -0
- package/dist/esm/sdk/models/operations/getschoolbyurn.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolbyurn.js +219 -0
- package/dist/esm/sdk/models/operations/getschoolbyurn.js.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolmetrics.d.ts +901 -0
- package/dist/esm/sdk/models/operations/getschoolmetrics.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/getschoolmetrics.js +771 -0
- package/dist/esm/sdk/models/operations/getschoolmetrics.js.map +1 -0
- package/dist/esm/sdk/models/operations/index.d.ts +8 -0
- package/dist/esm/sdk/models/operations/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/index.js +8 -0
- package/dist/esm/sdk/models/operations/index.js.map +1 -1
- package/dist/esm/sdk/models/operations/listschools.d.ts +248 -0
- package/dist/esm/sdk/models/operations/listschools.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/listschools.js +216 -0
- package/dist/esm/sdk/models/operations/listschools.js.map +1 -0
- package/dist/esm/sdk/models/operations/searchschoolsnearby.d.ts +274 -0
- package/dist/esm/sdk/models/operations/searchschoolsnearby.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/searchschoolsnearby.js +236 -0
- package/dist/esm/sdk/models/operations/searchschoolsnearby.js.map +1 -0
- package/dist/esm/sdk/models/operations/searchschoolswithin.d.ts +243 -0
- package/dist/esm/sdk/models/operations/searchschoolswithin.d.ts.map +1 -0
- package/dist/esm/sdk/models/operations/searchschoolswithin.js +214 -0
- package/dist/esm/sdk/models/operations/searchschoolswithin.js.map +1 -0
- 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/postcodeareafilter.d.ts +1 -1
- package/dist/esm/sdk/models/shared/propertyaddress.d.ts +1 -1
- package/dist/esm/sdk/models/shared/school.d.ts +441 -0
- package/dist/esm/sdk/models/shared/school.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/school.js +259 -0
- package/dist/esm/sdk/models/shared/school.js.map +1 -0
- package/dist/esm/sdk/models/shared/streetquerybycoordinates.d.ts +2 -2
- package/dist/esm/sdk/schoolmetrics.d.ts +19 -0
- package/dist/esm/sdk/schoolmetrics.d.ts.map +1 -0
- package/dist/esm/sdk/schoolmetrics.js +28 -0
- package/dist/esm/sdk/schoolmetrics.js.map +1 -0
- package/dist/esm/sdk/schools.d.ts +47 -0
- package/dist/esm/sdk/schools.d.ts.map +1 -0
- package/dist/esm/sdk/schools.js +68 -0
- package/dist/esm/sdk/schools.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +6 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +8 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/openapi.json +908 -1
- package/package.json +1 -1
- package/src/funcs/schoolMetricsGetMetrics.ts +177 -0
- package/src/funcs/schoolMetricsListProfiles.ts +140 -0
- package/src/funcs/schoolsGet.ts +172 -0
- package/src/funcs/schoolsGetBySlug.ts +172 -0
- package/src/funcs/schoolsGetByUrn.ts +172 -0
- package/src/funcs/schoolsList.ts +173 -0
- package/src/funcs/schoolsSearchNearby.ts +172 -0
- package/src/funcs/schoolsSearchWithin.ts +172 -0
- package/src/lib/config.ts +3 -3
- package/src/sdk/models/operations/getmetricprofiles.ts +159 -0
- package/src/sdk/models/operations/getschoolbyid.ts +473 -0
- package/src/sdk/models/operations/getschoolbyslug.ts +479 -0
- package/src/sdk/models/operations/getschoolbyurn.ts +474 -0
- package/src/sdk/models/operations/getschoolmetrics.ts +1552 -0
- package/src/sdk/models/operations/index.ts +8 -0
- package/src/sdk/models/operations/listschools.ts +470 -0
- package/src/sdk/models/operations/searchschoolsnearby.ts +507 -0
- package/src/sdk/models/operations/searchschoolswithin.ts +475 -0
- package/src/sdk/models/shared/index.ts +1 -0
- package/src/sdk/models/shared/postcodeareafilter.ts +1 -1
- package/src/sdk/models/shared/propertyaddress.ts +1 -1
- package/src/sdk/models/shared/school.ts +588 -0
- package/src/sdk/models/shared/streetquerybycoordinates.ts +2 -2
- package/src/sdk/schoolmetrics.ts +43 -0
- package/src/sdk/schools.ts +117 -0
- package/src/sdk/sdk.ts +12 -0
- package/test-local.ts +4 -4
|
@@ -2,12 +2,20 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
export * from "./getmetricprofiles.js";
|
|
5
6
|
export * from "./getplanningapplications.js";
|
|
6
7
|
export * from "./getplanningapplicationsbysource.js";
|
|
7
8
|
export * from "./getproperties.js";
|
|
8
9
|
export * from "./getpropertiesbylocation.js";
|
|
9
10
|
export * from "./getpropertiesbyslugs.js";
|
|
10
11
|
export * from "./getpropertiesbysource.js";
|
|
12
|
+
export * from "./getschoolbyid.js";
|
|
13
|
+
export * from "./getschoolbyslug.js";
|
|
14
|
+
export * from "./getschoolbyurn.js";
|
|
15
|
+
export * from "./getschoolmetrics.js";
|
|
16
|
+
export * from "./listschools.js";
|
|
11
17
|
export * from "./searchplanningapplications.js";
|
|
12
18
|
export * from "./searchproperties.js";
|
|
19
|
+
export * from "./searchschoolsnearby.js";
|
|
20
|
+
export * from "./searchschoolswithin.js";
|
|
13
21
|
export * from "./searchstreets.js";
|
|
@@ -0,0 +1,470 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
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
|
+
import * as shared from "../shared/index.js";
|
|
12
|
+
|
|
13
|
+
export type ListSchoolsRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* Filter by local authority
|
|
16
|
+
*/
|
|
17
|
+
authority?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Comma-separated list of related data to include (currently supports: ratings)
|
|
20
|
+
*/
|
|
21
|
+
expand?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Comma-separated list of fields to include
|
|
24
|
+
*/
|
|
25
|
+
fields?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Maximum number of results to return
|
|
28
|
+
*/
|
|
29
|
+
limit?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Number of results to skip
|
|
32
|
+
*/
|
|
33
|
+
offset?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Filter by postcode area
|
|
36
|
+
*/
|
|
37
|
+
postcode?: string | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* Search query for school name or URN
|
|
40
|
+
*/
|
|
41
|
+
query?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Filter by Ofsted rating
|
|
44
|
+
*/
|
|
45
|
+
rating?: string | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* Filter by school status
|
|
48
|
+
*/
|
|
49
|
+
status?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Filter by school type
|
|
52
|
+
*/
|
|
53
|
+
type?: string | undefined;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export const ListSchoolsType = {
|
|
57
|
+
ApiError: "api_error",
|
|
58
|
+
InvalidRequestError: "invalid_request_error",
|
|
59
|
+
AuthenticationError: "authentication_error",
|
|
60
|
+
RateLimitError: "rate_limit_error",
|
|
61
|
+
} as const;
|
|
62
|
+
export type ListSchoolsType = ClosedEnum<typeof ListSchoolsType>;
|
|
63
|
+
|
|
64
|
+
export type ListSchoolsError = {
|
|
65
|
+
code?: string | undefined;
|
|
66
|
+
message: string;
|
|
67
|
+
param?: string | undefined;
|
|
68
|
+
type: ListSchoolsType;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Error response
|
|
73
|
+
*/
|
|
74
|
+
export type ListSchoolsSchoolsResponseBody = {
|
|
75
|
+
error: ListSchoolsError;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
export const ListSchoolsObject = {
|
|
79
|
+
List: "list",
|
|
80
|
+
} as const;
|
|
81
|
+
export type ListSchoolsObject = ClosedEnum<typeof ListSchoolsObject>;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Paginated list of schools
|
|
85
|
+
*/
|
|
86
|
+
export type ListSchoolsResponseBody = {
|
|
87
|
+
data: Array<shared.School>;
|
|
88
|
+
hasMore: boolean;
|
|
89
|
+
object: ListSchoolsObject;
|
|
90
|
+
totalCount?: number | undefined;
|
|
91
|
+
url: string;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
export type ListSchoolsResponse =
|
|
95
|
+
| ListSchoolsResponseBody
|
|
96
|
+
| ListSchoolsSchoolsResponseBody;
|
|
97
|
+
|
|
98
|
+
/** @internal */
|
|
99
|
+
export const ListSchoolsRequest$inboundSchema: z.ZodType<
|
|
100
|
+
ListSchoolsRequest,
|
|
101
|
+
z.ZodTypeDef,
|
|
102
|
+
unknown
|
|
103
|
+
> = z.object({
|
|
104
|
+
authority: z.string().optional(),
|
|
105
|
+
expand: z.string().optional(),
|
|
106
|
+
fields: z.string().optional(),
|
|
107
|
+
limit: z.string().optional(),
|
|
108
|
+
offset: z.string().optional(),
|
|
109
|
+
postcode: z.string().optional(),
|
|
110
|
+
query: z.string().optional(),
|
|
111
|
+
rating: z.string().optional(),
|
|
112
|
+
status: z.string().optional(),
|
|
113
|
+
type: z.string().optional(),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export type ListSchoolsRequest$Outbound = {
|
|
118
|
+
authority?: string | undefined;
|
|
119
|
+
expand?: string | undefined;
|
|
120
|
+
fields?: string | undefined;
|
|
121
|
+
limit?: string | undefined;
|
|
122
|
+
offset?: string | undefined;
|
|
123
|
+
postcode?: string | undefined;
|
|
124
|
+
query?: string | undefined;
|
|
125
|
+
rating?: string | undefined;
|
|
126
|
+
status?: string | undefined;
|
|
127
|
+
type?: string | undefined;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/** @internal */
|
|
131
|
+
export const ListSchoolsRequest$outboundSchema: z.ZodType<
|
|
132
|
+
ListSchoolsRequest$Outbound,
|
|
133
|
+
z.ZodTypeDef,
|
|
134
|
+
ListSchoolsRequest
|
|
135
|
+
> = z.object({
|
|
136
|
+
authority: z.string().optional(),
|
|
137
|
+
expand: z.string().optional(),
|
|
138
|
+
fields: z.string().optional(),
|
|
139
|
+
limit: z.string().optional(),
|
|
140
|
+
offset: z.string().optional(),
|
|
141
|
+
postcode: z.string().optional(),
|
|
142
|
+
query: z.string().optional(),
|
|
143
|
+
rating: z.string().optional(),
|
|
144
|
+
status: z.string().optional(),
|
|
145
|
+
type: z.string().optional(),
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @internal
|
|
150
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
151
|
+
*/
|
|
152
|
+
export namespace ListSchoolsRequest$ {
|
|
153
|
+
/** @deprecated use `ListSchoolsRequest$inboundSchema` instead. */
|
|
154
|
+
export const inboundSchema = ListSchoolsRequest$inboundSchema;
|
|
155
|
+
/** @deprecated use `ListSchoolsRequest$outboundSchema` instead. */
|
|
156
|
+
export const outboundSchema = ListSchoolsRequest$outboundSchema;
|
|
157
|
+
/** @deprecated use `ListSchoolsRequest$Outbound` instead. */
|
|
158
|
+
export type Outbound = ListSchoolsRequest$Outbound;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function listSchoolsRequestToJSON(
|
|
162
|
+
listSchoolsRequest: ListSchoolsRequest,
|
|
163
|
+
): string {
|
|
164
|
+
return JSON.stringify(
|
|
165
|
+
ListSchoolsRequest$outboundSchema.parse(listSchoolsRequest),
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function listSchoolsRequestFromJSON(
|
|
170
|
+
jsonString: string,
|
|
171
|
+
): SafeParseResult<ListSchoolsRequest, SDKValidationError> {
|
|
172
|
+
return safeParse(
|
|
173
|
+
jsonString,
|
|
174
|
+
(x) => ListSchoolsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
175
|
+
`Failed to parse 'ListSchoolsRequest' from JSON`,
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** @internal */
|
|
180
|
+
export const ListSchoolsType$inboundSchema: z.ZodNativeEnum<
|
|
181
|
+
typeof ListSchoolsType
|
|
182
|
+
> = z.nativeEnum(ListSchoolsType);
|
|
183
|
+
|
|
184
|
+
/** @internal */
|
|
185
|
+
export const ListSchoolsType$outboundSchema: z.ZodNativeEnum<
|
|
186
|
+
typeof ListSchoolsType
|
|
187
|
+
> = ListSchoolsType$inboundSchema;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* @internal
|
|
191
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
192
|
+
*/
|
|
193
|
+
export namespace ListSchoolsType$ {
|
|
194
|
+
/** @deprecated use `ListSchoolsType$inboundSchema` instead. */
|
|
195
|
+
export const inboundSchema = ListSchoolsType$inboundSchema;
|
|
196
|
+
/** @deprecated use `ListSchoolsType$outboundSchema` instead. */
|
|
197
|
+
export const outboundSchema = ListSchoolsType$outboundSchema;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/** @internal */
|
|
201
|
+
export const ListSchoolsError$inboundSchema: z.ZodType<
|
|
202
|
+
ListSchoolsError,
|
|
203
|
+
z.ZodTypeDef,
|
|
204
|
+
unknown
|
|
205
|
+
> = z.object({
|
|
206
|
+
code: z.string().optional(),
|
|
207
|
+
message: z.string(),
|
|
208
|
+
param: z.string().optional(),
|
|
209
|
+
type: ListSchoolsType$inboundSchema,
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
/** @internal */
|
|
213
|
+
export type ListSchoolsError$Outbound = {
|
|
214
|
+
code?: string | undefined;
|
|
215
|
+
message: string;
|
|
216
|
+
param?: string | undefined;
|
|
217
|
+
type: string;
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
/** @internal */
|
|
221
|
+
export const ListSchoolsError$outboundSchema: z.ZodType<
|
|
222
|
+
ListSchoolsError$Outbound,
|
|
223
|
+
z.ZodTypeDef,
|
|
224
|
+
ListSchoolsError
|
|
225
|
+
> = z.object({
|
|
226
|
+
code: z.string().optional(),
|
|
227
|
+
message: z.string(),
|
|
228
|
+
param: z.string().optional(),
|
|
229
|
+
type: ListSchoolsType$outboundSchema,
|
|
230
|
+
});
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* @internal
|
|
234
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
235
|
+
*/
|
|
236
|
+
export namespace ListSchoolsError$ {
|
|
237
|
+
/** @deprecated use `ListSchoolsError$inboundSchema` instead. */
|
|
238
|
+
export const inboundSchema = ListSchoolsError$inboundSchema;
|
|
239
|
+
/** @deprecated use `ListSchoolsError$outboundSchema` instead. */
|
|
240
|
+
export const outboundSchema = ListSchoolsError$outboundSchema;
|
|
241
|
+
/** @deprecated use `ListSchoolsError$Outbound` instead. */
|
|
242
|
+
export type Outbound = ListSchoolsError$Outbound;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
export function listSchoolsErrorToJSON(
|
|
246
|
+
listSchoolsError: ListSchoolsError,
|
|
247
|
+
): string {
|
|
248
|
+
return JSON.stringify(
|
|
249
|
+
ListSchoolsError$outboundSchema.parse(listSchoolsError),
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export function listSchoolsErrorFromJSON(
|
|
254
|
+
jsonString: string,
|
|
255
|
+
): SafeParseResult<ListSchoolsError, SDKValidationError> {
|
|
256
|
+
return safeParse(
|
|
257
|
+
jsonString,
|
|
258
|
+
(x) => ListSchoolsError$inboundSchema.parse(JSON.parse(x)),
|
|
259
|
+
`Failed to parse 'ListSchoolsError' from JSON`,
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/** @internal */
|
|
264
|
+
export const ListSchoolsSchoolsResponseBody$inboundSchema: z.ZodType<
|
|
265
|
+
ListSchoolsSchoolsResponseBody,
|
|
266
|
+
z.ZodTypeDef,
|
|
267
|
+
unknown
|
|
268
|
+
> = z.object({
|
|
269
|
+
error: z.lazy(() => ListSchoolsError$inboundSchema),
|
|
270
|
+
});
|
|
271
|
+
|
|
272
|
+
/** @internal */
|
|
273
|
+
export type ListSchoolsSchoolsResponseBody$Outbound = {
|
|
274
|
+
error: ListSchoolsError$Outbound;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
/** @internal */
|
|
278
|
+
export const ListSchoolsSchoolsResponseBody$outboundSchema: z.ZodType<
|
|
279
|
+
ListSchoolsSchoolsResponseBody$Outbound,
|
|
280
|
+
z.ZodTypeDef,
|
|
281
|
+
ListSchoolsSchoolsResponseBody
|
|
282
|
+
> = z.object({
|
|
283
|
+
error: z.lazy(() => ListSchoolsError$outboundSchema),
|
|
284
|
+
});
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* @internal
|
|
288
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
289
|
+
*/
|
|
290
|
+
export namespace ListSchoolsSchoolsResponseBody$ {
|
|
291
|
+
/** @deprecated use `ListSchoolsSchoolsResponseBody$inboundSchema` instead. */
|
|
292
|
+
export const inboundSchema = ListSchoolsSchoolsResponseBody$inboundSchema;
|
|
293
|
+
/** @deprecated use `ListSchoolsSchoolsResponseBody$outboundSchema` instead. */
|
|
294
|
+
export const outboundSchema = ListSchoolsSchoolsResponseBody$outboundSchema;
|
|
295
|
+
/** @deprecated use `ListSchoolsSchoolsResponseBody$Outbound` instead. */
|
|
296
|
+
export type Outbound = ListSchoolsSchoolsResponseBody$Outbound;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export function listSchoolsSchoolsResponseBodyToJSON(
|
|
300
|
+
listSchoolsSchoolsResponseBody: ListSchoolsSchoolsResponseBody,
|
|
301
|
+
): string {
|
|
302
|
+
return JSON.stringify(
|
|
303
|
+
ListSchoolsSchoolsResponseBody$outboundSchema.parse(
|
|
304
|
+
listSchoolsSchoolsResponseBody,
|
|
305
|
+
),
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
export function listSchoolsSchoolsResponseBodyFromJSON(
|
|
310
|
+
jsonString: string,
|
|
311
|
+
): SafeParseResult<ListSchoolsSchoolsResponseBody, SDKValidationError> {
|
|
312
|
+
return safeParse(
|
|
313
|
+
jsonString,
|
|
314
|
+
(x) => ListSchoolsSchoolsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
315
|
+
`Failed to parse 'ListSchoolsSchoolsResponseBody' from JSON`,
|
|
316
|
+
);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/** @internal */
|
|
320
|
+
export const ListSchoolsObject$inboundSchema: z.ZodNativeEnum<
|
|
321
|
+
typeof ListSchoolsObject
|
|
322
|
+
> = z.nativeEnum(ListSchoolsObject);
|
|
323
|
+
|
|
324
|
+
/** @internal */
|
|
325
|
+
export const ListSchoolsObject$outboundSchema: z.ZodNativeEnum<
|
|
326
|
+
typeof ListSchoolsObject
|
|
327
|
+
> = ListSchoolsObject$inboundSchema;
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @internal
|
|
331
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
332
|
+
*/
|
|
333
|
+
export namespace ListSchoolsObject$ {
|
|
334
|
+
/** @deprecated use `ListSchoolsObject$inboundSchema` instead. */
|
|
335
|
+
export const inboundSchema = ListSchoolsObject$inboundSchema;
|
|
336
|
+
/** @deprecated use `ListSchoolsObject$outboundSchema` instead. */
|
|
337
|
+
export const outboundSchema = ListSchoolsObject$outboundSchema;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/** @internal */
|
|
341
|
+
export const ListSchoolsResponseBody$inboundSchema: z.ZodType<
|
|
342
|
+
ListSchoolsResponseBody,
|
|
343
|
+
z.ZodTypeDef,
|
|
344
|
+
unknown
|
|
345
|
+
> = z.object({
|
|
346
|
+
data: z.array(shared.School$inboundSchema),
|
|
347
|
+
has_more: z.boolean(),
|
|
348
|
+
object: ListSchoolsObject$inboundSchema,
|
|
349
|
+
total_count: z.number().optional(),
|
|
350
|
+
url: z.string(),
|
|
351
|
+
}).transform((v) => {
|
|
352
|
+
return remap$(v, {
|
|
353
|
+
"has_more": "hasMore",
|
|
354
|
+
"total_count": "totalCount",
|
|
355
|
+
});
|
|
356
|
+
});
|
|
357
|
+
|
|
358
|
+
/** @internal */
|
|
359
|
+
export type ListSchoolsResponseBody$Outbound = {
|
|
360
|
+
data: Array<shared.School$Outbound>;
|
|
361
|
+
has_more: boolean;
|
|
362
|
+
object: string;
|
|
363
|
+
total_count?: number | undefined;
|
|
364
|
+
url: string;
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
/** @internal */
|
|
368
|
+
export const ListSchoolsResponseBody$outboundSchema: z.ZodType<
|
|
369
|
+
ListSchoolsResponseBody$Outbound,
|
|
370
|
+
z.ZodTypeDef,
|
|
371
|
+
ListSchoolsResponseBody
|
|
372
|
+
> = z.object({
|
|
373
|
+
data: z.array(shared.School$outboundSchema),
|
|
374
|
+
hasMore: z.boolean(),
|
|
375
|
+
object: ListSchoolsObject$outboundSchema,
|
|
376
|
+
totalCount: z.number().optional(),
|
|
377
|
+
url: z.string(),
|
|
378
|
+
}).transform((v) => {
|
|
379
|
+
return remap$(v, {
|
|
380
|
+
hasMore: "has_more",
|
|
381
|
+
totalCount: "total_count",
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @internal
|
|
387
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
388
|
+
*/
|
|
389
|
+
export namespace ListSchoolsResponseBody$ {
|
|
390
|
+
/** @deprecated use `ListSchoolsResponseBody$inboundSchema` instead. */
|
|
391
|
+
export const inboundSchema = ListSchoolsResponseBody$inboundSchema;
|
|
392
|
+
/** @deprecated use `ListSchoolsResponseBody$outboundSchema` instead. */
|
|
393
|
+
export const outboundSchema = ListSchoolsResponseBody$outboundSchema;
|
|
394
|
+
/** @deprecated use `ListSchoolsResponseBody$Outbound` instead. */
|
|
395
|
+
export type Outbound = ListSchoolsResponseBody$Outbound;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
export function listSchoolsResponseBodyToJSON(
|
|
399
|
+
listSchoolsResponseBody: ListSchoolsResponseBody,
|
|
400
|
+
): string {
|
|
401
|
+
return JSON.stringify(
|
|
402
|
+
ListSchoolsResponseBody$outboundSchema.parse(listSchoolsResponseBody),
|
|
403
|
+
);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export function listSchoolsResponseBodyFromJSON(
|
|
407
|
+
jsonString: string,
|
|
408
|
+
): SafeParseResult<ListSchoolsResponseBody, SDKValidationError> {
|
|
409
|
+
return safeParse(
|
|
410
|
+
jsonString,
|
|
411
|
+
(x) => ListSchoolsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
412
|
+
`Failed to parse 'ListSchoolsResponseBody' from JSON`,
|
|
413
|
+
);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
/** @internal */
|
|
417
|
+
export const ListSchoolsResponse$inboundSchema: z.ZodType<
|
|
418
|
+
ListSchoolsResponse,
|
|
419
|
+
z.ZodTypeDef,
|
|
420
|
+
unknown
|
|
421
|
+
> = z.union([
|
|
422
|
+
z.lazy(() => ListSchoolsResponseBody$inboundSchema),
|
|
423
|
+
z.lazy(() => ListSchoolsSchoolsResponseBody$inboundSchema),
|
|
424
|
+
]);
|
|
425
|
+
|
|
426
|
+
/** @internal */
|
|
427
|
+
export type ListSchoolsResponse$Outbound =
|
|
428
|
+
| ListSchoolsResponseBody$Outbound
|
|
429
|
+
| ListSchoolsSchoolsResponseBody$Outbound;
|
|
430
|
+
|
|
431
|
+
/** @internal */
|
|
432
|
+
export const ListSchoolsResponse$outboundSchema: z.ZodType<
|
|
433
|
+
ListSchoolsResponse$Outbound,
|
|
434
|
+
z.ZodTypeDef,
|
|
435
|
+
ListSchoolsResponse
|
|
436
|
+
> = z.union([
|
|
437
|
+
z.lazy(() => ListSchoolsResponseBody$outboundSchema),
|
|
438
|
+
z.lazy(() => ListSchoolsSchoolsResponseBody$outboundSchema),
|
|
439
|
+
]);
|
|
440
|
+
|
|
441
|
+
/**
|
|
442
|
+
* @internal
|
|
443
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
444
|
+
*/
|
|
445
|
+
export namespace ListSchoolsResponse$ {
|
|
446
|
+
/** @deprecated use `ListSchoolsResponse$inboundSchema` instead. */
|
|
447
|
+
export const inboundSchema = ListSchoolsResponse$inboundSchema;
|
|
448
|
+
/** @deprecated use `ListSchoolsResponse$outboundSchema` instead. */
|
|
449
|
+
export const outboundSchema = ListSchoolsResponse$outboundSchema;
|
|
450
|
+
/** @deprecated use `ListSchoolsResponse$Outbound` instead. */
|
|
451
|
+
export type Outbound = ListSchoolsResponse$Outbound;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
export function listSchoolsResponseToJSON(
|
|
455
|
+
listSchoolsResponse: ListSchoolsResponse,
|
|
456
|
+
): string {
|
|
457
|
+
return JSON.stringify(
|
|
458
|
+
ListSchoolsResponse$outboundSchema.parse(listSchoolsResponse),
|
|
459
|
+
);
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
export function listSchoolsResponseFromJSON(
|
|
463
|
+
jsonString: string,
|
|
464
|
+
): SafeParseResult<ListSchoolsResponse, SDKValidationError> {
|
|
465
|
+
return safeParse(
|
|
466
|
+
jsonString,
|
|
467
|
+
(x) => ListSchoolsResponse$inboundSchema.parse(JSON.parse(x)),
|
|
468
|
+
`Failed to parse 'ListSchoolsResponse' from JSON`,
|
|
469
|
+
);
|
|
470
|
+
}
|