@vepler/sdk 2.145.1 → 2.151.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/dist/commonjs/funcs/censusGetBreaks.js +1 -1
- package/dist/commonjs/funcs/censusGetBreaks.js.map +1 -1
- package/dist/commonjs/funcs/censusGetTile.js +1 -1
- package/dist/commonjs/funcs/censusGetTile.js.map +1 -1
- package/dist/commonjs/funcs/censusGetWholeLevel.js +1 -1
- package/dist/commonjs/funcs/censusGetWholeLevel.js.map +1 -1
- package/dist/commonjs/funcs/planningGetPlanningApplications.d.ts +1 -1
- package/dist/commonjs/funcs/planningGetPlanningApplications.js +1 -1
- package/dist/commonjs/funcs/planningGetPlanningApplicationsBySource.d.ts +1 -1
- package/dist/commonjs/funcs/planningGetPlanningApplicationsBySource.js +1 -1
- package/dist/commonjs/funcs/planningSearchPlanningApplications.d.ts +1 -1
- package/dist/commonjs/funcs/planningSearchPlanningApplications.js +1 -1
- package/dist/commonjs/funcs/schoolsGetSchoolById.js +4 -0
- package/dist/commonjs/funcs/schoolsGetSchoolById.js.map +1 -1
- package/dist/commonjs/funcs/schoolsGetSchoolBySource.js +4 -0
- package/dist/commonjs/funcs/schoolsGetSchoolBySource.js.map +1 -1
- package/dist/commonjs/funcs/searchSearchSuggest.d.ts +6 -0
- package/dist/commonjs/funcs/searchSearchSuggest.d.ts.map +1 -1
- package/dist/commonjs/funcs/searchSearchSuggest.js +10 -0
- package/dist/commonjs/funcs/searchSearchSuggest.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/sdk/models/operations/getplanningapplications.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/getplanningapplicationsbysource.d.ts +1 -1
- package/dist/commonjs/sdk/models/operations/getschoolbyid.d.ts +69 -0
- package/dist/commonjs/sdk/models/operations/getschoolbyid.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getschoolbyid.js +35 -1
- package/dist/commonjs/sdk/models/operations/getschoolbyid.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getschoolbysource.d.ts +69 -0
- package/dist/commonjs/sdk/models/operations/getschoolbysource.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/getschoolbysource.js +35 -1
- package/dist/commonjs/sdk/models/operations/getschoolbysource.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/queryschools.d.ts +78 -0
- package/dist/commonjs/sdk/models/operations/queryschools.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/queryschools.js +42 -1
- package/dist/commonjs/sdk/models/operations/queryschools.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/queryschoolsbysource.d.ts +78 -0
- package/dist/commonjs/sdk/models/operations/queryschoolsbysource.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/queryschoolsbysource.js +41 -1
- package/dist/commonjs/sdk/models/operations/queryschoolsbysource.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/searchsuggest.d.ts +51 -3
- package/dist/commonjs/sdk/models/operations/searchsuggest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/operations/searchsuggest.js +27 -2
- package/dist/commonjs/sdk/models/operations/searchsuggest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/chargeentry.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/chargehistory.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts +9 -0
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +9 -0
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/listing.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/listingpricechange.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts +27 -0
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningapplication.js +15 -1
- package/dist/commonjs/sdk/models/shared/planningapplication.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningclassificationreasoning.d.ts +45 -0
- package/dist/commonjs/sdk/models/shared/planningclassificationreasoning.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningclassificationreasoning.js +57 -0
- package/dist/commonjs/sdk/models/shared/planningclassificationreasoning.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningdocument.d.ts +8 -0
- package/dist/commonjs/sdk/models/shared/planningdocument.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningdocument.js +2 -0
- package/dist/commonjs/sdk/models/shared/planningdocument.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningimage.d.ts +49 -0
- package/dist/commonjs/sdk/models/shared/planningimage.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningimage.js +59 -0
- package/dist/commonjs/sdk/models/shared/planningimage.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.d.ts +4 -1
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.js +3 -0
- package/dist/commonjs/sdk/models/shared/planningqueryrequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningsemanticchunk.d.ts +37 -0
- package/dist/commonjs/sdk/models/shared/planningsemanticchunk.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/planningsemanticchunk.js +56 -0
- package/dist/commonjs/sdk/models/shared/planningsemanticchunk.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/pricechange.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/pricingdata.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/salerecord.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/schoolinspectionevaluationarea.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionevaluationarea.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionevaluationarea.js +51 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionevaluationarea.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionevent.d.ts +103 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionevent.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionevent.js +112 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionevent.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectiongrade.d.ts +17 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectiongrade.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectiongrade.js +51 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectiongrade.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionpredecessor.d.ts +13 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionpredecessor.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionpredecessor.js +53 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectionpredecessor.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectorbody.d.ts +19 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectorbody.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectorbody.js +53 -0
- package/dist/commonjs/sdk/models/shared/schoolinspectorbody.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/schooltrustmembership.d.ts +45 -0
- package/dist/commonjs/sdk/models/shared/schooltrustmembership.d.ts.map +1 -0
- package/dist/commonjs/sdk/models/shared/schooltrustmembership.js +58 -0
- package/dist/commonjs/sdk/models/shared/schooltrustmembership.js.map +1 -0
- package/dist/commonjs/sdk/models/shared/searchresult.d.ts +2 -2
- package/dist/commonjs/sdk/models/shared/sitepropertystats.d.ts +2 -2
- package/dist/commonjs/sdk/planning.d.ts +3 -3
- package/dist/commonjs/sdk/planning.js +3 -3
- package/dist/commonjs/sdk/search.d.ts +6 -0
- package/dist/commonjs/sdk/search.d.ts.map +1 -1
- package/dist/commonjs/sdk/search.js +6 -0
- package/dist/commonjs/sdk/search.js.map +1 -1
- package/dist/esm/funcs/censusGetBreaks.js +1 -1
- package/dist/esm/funcs/censusGetBreaks.js.map +1 -1
- package/dist/esm/funcs/censusGetTile.js +1 -1
- package/dist/esm/funcs/censusGetTile.js.map +1 -1
- package/dist/esm/funcs/censusGetWholeLevel.js +1 -1
- package/dist/esm/funcs/censusGetWholeLevel.js.map +1 -1
- package/dist/esm/funcs/planningGetPlanningApplications.d.ts +1 -1
- package/dist/esm/funcs/planningGetPlanningApplications.js +1 -1
- package/dist/esm/funcs/planningGetPlanningApplicationsBySource.d.ts +1 -1
- package/dist/esm/funcs/planningGetPlanningApplicationsBySource.js +1 -1
- package/dist/esm/funcs/planningSearchPlanningApplications.d.ts +1 -1
- package/dist/esm/funcs/planningSearchPlanningApplications.js +1 -1
- package/dist/esm/funcs/schoolsGetSchoolById.js +5 -1
- package/dist/esm/funcs/schoolsGetSchoolById.js.map +1 -1
- package/dist/esm/funcs/schoolsGetSchoolBySource.js +5 -1
- package/dist/esm/funcs/schoolsGetSchoolBySource.js.map +1 -1
- package/dist/esm/funcs/searchSearchSuggest.d.ts +6 -0
- package/dist/esm/funcs/searchSearchSuggest.d.ts.map +1 -1
- package/dist/esm/funcs/searchSearchSuggest.js +10 -0
- package/dist/esm/funcs/searchSearchSuggest.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/sdk/models/operations/getplanningapplications.d.ts +1 -1
- package/dist/esm/sdk/models/operations/getplanningapplicationsbysource.d.ts +1 -1
- package/dist/esm/sdk/models/operations/getschoolbyid.d.ts +69 -0
- package/dist/esm/sdk/models/operations/getschoolbyid.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getschoolbyid.js +31 -0
- package/dist/esm/sdk/models/operations/getschoolbyid.js.map +1 -1
- package/dist/esm/sdk/models/operations/getschoolbysource.d.ts +69 -0
- package/dist/esm/sdk/models/operations/getschoolbysource.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/getschoolbysource.js +31 -0
- package/dist/esm/sdk/models/operations/getschoolbysource.js.map +1 -1
- package/dist/esm/sdk/models/operations/queryschools.d.ts +78 -0
- package/dist/esm/sdk/models/operations/queryschools.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/queryschools.js +37 -0
- package/dist/esm/sdk/models/operations/queryschools.js.map +1 -1
- package/dist/esm/sdk/models/operations/queryschoolsbysource.d.ts +78 -0
- package/dist/esm/sdk/models/operations/queryschoolsbysource.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/queryschoolsbysource.js +36 -0
- package/dist/esm/sdk/models/operations/queryschoolsbysource.js.map +1 -1
- package/dist/esm/sdk/models/operations/searchsuggest.d.ts +51 -3
- package/dist/esm/sdk/models/operations/searchsuggest.d.ts.map +1 -1
- package/dist/esm/sdk/models/operations/searchsuggest.js +26 -1
- package/dist/esm/sdk/models/operations/searchsuggest.js.map +1 -1
- package/dist/esm/sdk/models/shared/chargeentry.d.ts +1 -1
- package/dist/esm/sdk/models/shared/chargehistory.d.ts +1 -1
- package/dist/esm/sdk/models/shared/index.d.ts +9 -0
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +9 -0
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/listing.d.ts +2 -2
- package/dist/esm/sdk/models/shared/listingpricechange.d.ts +2 -2
- package/dist/esm/sdk/models/shared/planningapplication.d.ts +27 -0
- package/dist/esm/sdk/models/shared/planningapplication.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/planningapplication.js +13 -0
- package/dist/esm/sdk/models/shared/planningapplication.js.map +1 -1
- package/dist/esm/sdk/models/shared/planningclassificationreasoning.d.ts +45 -0
- package/dist/esm/sdk/models/shared/planningclassificationreasoning.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/planningclassificationreasoning.js +20 -0
- package/dist/esm/sdk/models/shared/planningclassificationreasoning.js.map +1 -0
- package/dist/esm/sdk/models/shared/planningdocument.d.ts +8 -0
- package/dist/esm/sdk/models/shared/planningdocument.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/planningdocument.js +2 -0
- package/dist/esm/sdk/models/shared/planningdocument.js.map +1 -1
- package/dist/esm/sdk/models/shared/planningimage.d.ts +49 -0
- package/dist/esm/sdk/models/shared/planningimage.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/planningimage.js +22 -0
- package/dist/esm/sdk/models/shared/planningimage.js.map +1 -0
- package/dist/esm/sdk/models/shared/planningqueryrequest.d.ts +4 -1
- package/dist/esm/sdk/models/shared/planningqueryrequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/planningqueryrequest.js +3 -0
- package/dist/esm/sdk/models/shared/planningqueryrequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/planningsemanticchunk.d.ts +37 -0
- package/dist/esm/sdk/models/shared/planningsemanticchunk.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/planningsemanticchunk.js +19 -0
- package/dist/esm/sdk/models/shared/planningsemanticchunk.js.map +1 -0
- package/dist/esm/sdk/models/shared/pricechange.d.ts +2 -2
- package/dist/esm/sdk/models/shared/pricingdata.d.ts +4 -4
- package/dist/esm/sdk/models/shared/salerecord.d.ts +1 -1
- package/dist/esm/sdk/models/shared/schoolinspectionevaluationarea.d.ts +17 -0
- package/dist/esm/sdk/models/shared/schoolinspectionevaluationarea.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectionevaluationarea.js +14 -0
- package/dist/esm/sdk/models/shared/schoolinspectionevaluationarea.js.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectionevent.d.ts +103 -0
- package/dist/esm/sdk/models/shared/schoolinspectionevent.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectionevent.js +74 -0
- package/dist/esm/sdk/models/shared/schoolinspectionevent.js.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectiongrade.d.ts +17 -0
- package/dist/esm/sdk/models/shared/schoolinspectiongrade.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectiongrade.js +14 -0
- package/dist/esm/sdk/models/shared/schoolinspectiongrade.js.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectionpredecessor.d.ts +13 -0
- package/dist/esm/sdk/models/shared/schoolinspectionpredecessor.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectionpredecessor.js +16 -0
- package/dist/esm/sdk/models/shared/schoolinspectionpredecessor.js.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectorbody.d.ts +19 -0
- package/dist/esm/sdk/models/shared/schoolinspectorbody.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/schoolinspectorbody.js +17 -0
- package/dist/esm/sdk/models/shared/schoolinspectorbody.js.map +1 -0
- package/dist/esm/sdk/models/shared/schooltrustmembership.d.ts +45 -0
- package/dist/esm/sdk/models/shared/schooltrustmembership.d.ts.map +1 -0
- package/dist/esm/sdk/models/shared/schooltrustmembership.js +21 -0
- package/dist/esm/sdk/models/shared/schooltrustmembership.js.map +1 -0
- package/dist/esm/sdk/models/shared/searchresult.d.ts +2 -2
- package/dist/esm/sdk/models/shared/sitepropertystats.d.ts +2 -2
- package/dist/esm/sdk/planning.d.ts +3 -3
- package/dist/esm/sdk/planning.js +3 -3
- package/dist/esm/sdk/search.d.ts +6 -0
- package/dist/esm/sdk/search.d.ts.map +1 -1
- package/dist/esm/sdk/search.js +6 -0
- package/dist/esm/sdk/search.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/censusGetBreaks.ts +1 -1
- package/src/funcs/censusGetTile.ts +1 -1
- package/src/funcs/censusGetWholeLevel.ts +1 -1
- package/src/funcs/planningGetPlanningApplications.ts +1 -1
- package/src/funcs/planningGetPlanningApplicationsBySource.ts +1 -1
- package/src/funcs/planningSearchPlanningApplications.ts +1 -1
- package/src/funcs/schoolsGetSchoolById.ts +6 -1
- package/src/funcs/schoolsGetSchoolBySource.ts +6 -1
- package/src/funcs/searchSearchSuggest.ts +10 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/operations/getplanningapplications.ts +1 -1
- package/src/sdk/models/operations/getplanningapplicationsbysource.ts +1 -1
- package/src/sdk/models/operations/getschoolbyid.ts +126 -0
- package/src/sdk/models/operations/getschoolbysource.ts +134 -0
- package/src/sdk/models/operations/queryschools.ts +154 -0
- package/src/sdk/models/operations/queryschoolsbysource.ts +153 -0
- package/src/sdk/models/operations/searchsuggest.ts +64 -3
- package/src/sdk/models/shared/chargeentry.ts +1 -1
- package/src/sdk/models/shared/chargehistory.ts +1 -1
- package/src/sdk/models/shared/index.ts +9 -0
- package/src/sdk/models/shared/listing.ts +2 -2
- package/src/sdk/models/shared/listingpricechange.ts +2 -2
- package/src/sdk/models/shared/planningapplication.ts +53 -0
- package/src/sdk/models/shared/planningclassificationreasoning.ts +69 -0
- package/src/sdk/models/shared/planningdocument.ts +10 -0
- package/src/sdk/models/shared/planningimage.ts +79 -0
- package/src/sdk/models/shared/planningqueryrequest.ts +4 -1
- package/src/sdk/models/shared/planningsemanticchunk.ts +64 -0
- package/src/sdk/models/shared/pricechange.ts +2 -2
- package/src/sdk/models/shared/pricingdata.ts +4 -4
- package/src/sdk/models/shared/salerecord.ts +1 -1
- package/src/sdk/models/shared/schoolinspectionevaluationarea.ts +39 -0
- package/src/sdk/models/shared/schoolinspectionevent.ts +184 -0
- package/src/sdk/models/shared/schoolinspectiongrade.ts +39 -0
- package/src/sdk/models/shared/schoolinspectionpredecessor.ts +37 -0
- package/src/sdk/models/shared/schoolinspectorbody.ts +29 -0
- package/src/sdk/models/shared/schooltrustmembership.ts +74 -0
- package/src/sdk/models/shared/searchresult.ts +2 -2
- package/src/sdk/models/shared/sitepropertystats.ts +2 -2
- package/src/sdk/planning.ts +3 -3
- package/src/sdk/search.ts +6 -0
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -101,6 +101,10 @@ async function $do(
|
|
|
101
101
|
};
|
|
102
102
|
const path = pathToFunc("/v1/schools/{id}")(pathParams);
|
|
103
103
|
|
|
104
|
+
const query = encodeFormQuery({
|
|
105
|
+
"attributes": payload.attributes,
|
|
106
|
+
});
|
|
107
|
+
|
|
104
108
|
const headers = new Headers(compactMap({
|
|
105
109
|
Accept: "application/json",
|
|
106
110
|
}));
|
|
@@ -130,6 +134,7 @@ async function $do(
|
|
|
130
134
|
baseURL: options?.serverURL,
|
|
131
135
|
path: path,
|
|
132
136
|
headers: headers,
|
|
137
|
+
query: query,
|
|
133
138
|
body: body,
|
|
134
139
|
userAgent: client._options.userAgent,
|
|
135
140
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { SDKCore } from "../core.js";
|
|
6
|
-
import { encodeSimple } from "../lib/encodings.js";
|
|
6
|
+
import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
|
|
7
7
|
import { matchStatusCode } from "../lib/http.js";
|
|
8
8
|
import * as M from "../lib/matchers.js";
|
|
9
9
|
import { compactMap } from "../lib/primitives.js";
|
|
@@ -105,6 +105,10 @@ async function $do(
|
|
|
105
105
|
};
|
|
106
106
|
const path = pathToFunc("/v1/schools/source/{provider}/{key}")(pathParams);
|
|
107
107
|
|
|
108
|
+
const query = encodeFormQuery({
|
|
109
|
+
"attributes": payload.attributes,
|
|
110
|
+
});
|
|
111
|
+
|
|
108
112
|
const headers = new Headers(compactMap({
|
|
109
113
|
Accept: "application/json",
|
|
110
114
|
}));
|
|
@@ -134,6 +138,7 @@ async function $do(
|
|
|
134
138
|
baseURL: options?.serverURL,
|
|
135
139
|
path: path,
|
|
136
140
|
headers: headers,
|
|
141
|
+
query: query,
|
|
137
142
|
body: body,
|
|
138
143
|
userAgent: client._options.userAgent,
|
|
139
144
|
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
@@ -32,6 +32,12 @@ import { Result } from "../sdk/types/fp.js";
|
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
34
|
* Simple autocomplete for UK properties and locations. Searches across Address and Location sources with fuzzy matching. Automatically detects query type (postcode, address, place name) and returns suggestions.
|
|
35
|
+
*
|
|
36
|
+
* Optionally accepts a geographic centre point (`lat`, `lng`) to make results proximity-aware:
|
|
37
|
+
* - `geo_mode=bias` (default): soft preference. The best textual matches near the point rank higher, but distant matches are still returned.
|
|
38
|
+
* - `geo_mode=restrict`: hard cutoff. Only address results within `radius_meters` of the point are returned.
|
|
39
|
+
*
|
|
40
|
+
* When a centre point is supplied, address results include a `distance` (metres from the point). Geographic ranking applies to the address source, so pair it with `source=address` for the most predictable proximity results.
|
|
35
41
|
*/
|
|
36
42
|
export function searchSearchSuggest(
|
|
37
43
|
client: SDKCore,
|
|
@@ -96,9 +102,13 @@ async function $do(
|
|
|
96
102
|
|
|
97
103
|
const query = encodeFormQuery({
|
|
98
104
|
"classification": payload.classification,
|
|
105
|
+
"geo_mode": payload.geo_mode,
|
|
106
|
+
"lat": payload.lat,
|
|
99
107
|
"limit": payload.limit,
|
|
108
|
+
"lng": payload.lng,
|
|
100
109
|
"offset": payload.offset,
|
|
101
110
|
"q": payload.q,
|
|
111
|
+
"radius_meters": payload.radius_meters,
|
|
102
112
|
"source": payload.source,
|
|
103
113
|
});
|
|
104
114
|
|
package/src/lib/config.ts
CHANGED
|
@@ -60,8 +60,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
60
60
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
|
-
openapiDocVersion: "2.
|
|
63
|
+
openapiDocVersion: "2.151.0",
|
|
64
64
|
sdkVersion: "0.10.0",
|
|
65
65
|
genVersion: "2.893.0",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 0.10.0 2.893.0 2.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 0.10.0 2.893.0 2.151.0 @vepler/sdk",
|
|
67
67
|
} as const;
|
|
@@ -10,7 +10,7 @@ export type GetPlanningApplicationsRequest = {
|
|
|
10
10
|
*/
|
|
11
11
|
applicationIds: string;
|
|
12
12
|
/**
|
|
13
|
-
* Comma-separated list of optional expansions to attach to each application.
|
|
13
|
+
* Comma-separated list of optional expansions to attach to each application. Supported: 'extractions' (structured, citation-backed extractions — decision, development, s106, officer assessment, consultee responses); 'images' (a deduplicated image gallery with directly-renderable CDN URLs); 'content' (adds fileUrl + ocrUrl to each document so it can be rendered/searched in-browser); 'enrichment' (AI classification reasoning and document segmentation summaries). Omitted by default; these expansions can be large, so request only what you need. Example: 'extractions,images,content'.
|
|
14
14
|
*/
|
|
15
15
|
include?: string | undefined;
|
|
16
16
|
};
|
|
@@ -6,7 +6,7 @@ import * as z from "zod/v3";
|
|
|
6
6
|
|
|
7
7
|
export type GetPlanningApplicationsBySourceRequest = {
|
|
8
8
|
/**
|
|
9
|
-
* Comma-separated list of optional expansions to attach to each application.
|
|
9
|
+
* Comma-separated list of optional expansions to attach to each application. Supported: 'extractions' (structured, citation-backed extractions — decision, development, s106, officer assessment, consultee responses); 'images' (a deduplicated image gallery with directly-renderable CDN URLs); 'content' (adds fileUrl + ocrUrl to each document so it can be rendered/searched in-browser); 'enrichment' (AI classification reasoning and document segmentation summaries). Omitted by default; these expansions can be large, so request only what you need. Example: 'extractions,images,content'.
|
|
10
10
|
*/
|
|
11
11
|
include?: string | undefined;
|
|
12
12
|
/**
|
|
@@ -11,6 +11,10 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
11
11
|
import * as shared from "../shared/index.js";
|
|
12
12
|
|
|
13
13
|
export type GetSchoolByIdRequest = {
|
|
14
|
+
/**
|
|
15
|
+
* Comma-separated fields/blocks to return. Default: the full flat record with no aggregate blocks. Aggregate blocks are opt-in: `inspections`. Performance/census/finance live on `/v1/schools/metrics`.
|
|
16
|
+
*/
|
|
17
|
+
attributes?: string | undefined;
|
|
14
18
|
/**
|
|
15
19
|
* Internal school identifier
|
|
16
20
|
*/
|
|
@@ -72,6 +76,42 @@ export const CurrentRating = {
|
|
|
72
76
|
*/
|
|
73
77
|
export type CurrentRating = OpenEnum<typeof CurrentRating>;
|
|
74
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Cross-register identifiers. Present only when requested via `attributes=identifiers`.
|
|
81
|
+
*/
|
|
82
|
+
export type Identifiers = {
|
|
83
|
+
/**
|
|
84
|
+
* Estyn provider id (Wales).
|
|
85
|
+
*/
|
|
86
|
+
estynId?: string | null | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Ofsted provider id (England).
|
|
89
|
+
*/
|
|
90
|
+
ofstedProviderId?: string | null | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Predecessor URNs this school was previously known by (re-identification lineage).
|
|
93
|
+
*/
|
|
94
|
+
oldUrns?: Array<string> | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* UK Provider Reference Number (UKPRN).
|
|
97
|
+
*/
|
|
98
|
+
ukprn?: string | null | undefined;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Inspection history. Present only when requested via `attributes=inspections`.
|
|
103
|
+
*/
|
|
104
|
+
export type Inspections = {
|
|
105
|
+
/**
|
|
106
|
+
* Most recent inspection event, or null if never inspected.
|
|
107
|
+
*/
|
|
108
|
+
current: shared.SchoolInspectionEvent | null;
|
|
109
|
+
/**
|
|
110
|
+
* Every inspection event, newest first (includes `current`).
|
|
111
|
+
*/
|
|
112
|
+
history?: Array<shared.SchoolInspectionEvent | null> | undefined;
|
|
113
|
+
};
|
|
114
|
+
|
|
75
115
|
/**
|
|
76
116
|
* Geographic coordinates of the school
|
|
77
117
|
*/
|
|
@@ -125,6 +165,16 @@ export const GetSchoolByIdStatus = {
|
|
|
125
165
|
*/
|
|
126
166
|
export type GetSchoolByIdStatus = OpenEnum<typeof GetSchoolByIdStatus>;
|
|
127
167
|
|
|
168
|
+
/**
|
|
169
|
+
* Trust / organisation memberships. Present only when requested via `attributes=trust`.
|
|
170
|
+
*/
|
|
171
|
+
export type Trust = {
|
|
172
|
+
/**
|
|
173
|
+
* Active organisation memberships, lead/trust roles first.
|
|
174
|
+
*/
|
|
175
|
+
memberships?: Array<shared.SchoolTrustMembership> | undefined;
|
|
176
|
+
};
|
|
177
|
+
|
|
128
178
|
/**
|
|
129
179
|
* Educational institution type. 'nursery': early years. 'primary': key stages 1-2 / ISCED 1. 'secondary': key stages 3-4 / ISCED 2-3. 'all-through': combined primary + secondary. 'sixth-form': post-16. 'special': special educational needs. 'independent': fee-paying. 'academy': state-funded, independently run. 'other': alternative provision / pupil referral / unclassified.
|
|
130
180
|
*/
|
|
@@ -182,6 +232,14 @@ export type GetSchoolByIdResponseBody = {
|
|
|
182
232
|
* System-generated identifier. Stable across updates.
|
|
183
233
|
*/
|
|
184
234
|
id: number;
|
|
235
|
+
/**
|
|
236
|
+
* Cross-register identifiers. Present only when requested via `attributes=identifiers`.
|
|
237
|
+
*/
|
|
238
|
+
identifiers?: Identifiers | null | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* Inspection history. Present only when requested via `attributes=inspections`.
|
|
241
|
+
*/
|
|
242
|
+
inspections?: Inspections | null | undefined;
|
|
185
243
|
/**
|
|
186
244
|
* Provider-scoped identifier. URN for `dfe`, SEED for `seed`, etc. Combined with `provider` this is a globally unique alternate key for the school.
|
|
187
245
|
*/
|
|
@@ -238,6 +296,10 @@ export type GetSchoolByIdResponseBody = {
|
|
|
238
296
|
*/
|
|
239
297
|
subType?: string | undefined;
|
|
240
298
|
telephone?: string | undefined;
|
|
299
|
+
/**
|
|
300
|
+
* Trust / organisation memberships. Present only when requested via `attributes=trust`.
|
|
301
|
+
*/
|
|
302
|
+
trust?: Trust | null | undefined;
|
|
241
303
|
trustId?: string | undefined;
|
|
242
304
|
trustName?: string | undefined;
|
|
243
305
|
/**
|
|
@@ -253,6 +315,7 @@ export type GetSchoolByIdResponseBody = {
|
|
|
253
315
|
|
|
254
316
|
/** @internal */
|
|
255
317
|
export type GetSchoolByIdRequest$Outbound = {
|
|
318
|
+
attributes?: string | undefined;
|
|
256
319
|
id: string;
|
|
257
320
|
};
|
|
258
321
|
|
|
@@ -262,6 +325,7 @@ export const GetSchoolByIdRequest$outboundSchema: z.ZodType<
|
|
|
262
325
|
z.ZodTypeDef,
|
|
263
326
|
GetSchoolByIdRequest
|
|
264
327
|
> = z.object({
|
|
328
|
+
attributes: z.string().optional(),
|
|
265
329
|
id: z.string(),
|
|
266
330
|
});
|
|
267
331
|
|
|
@@ -303,6 +367,49 @@ export const CurrentRating$inboundSchema: z.ZodType<
|
|
|
303
367
|
unknown
|
|
304
368
|
> = openEnums.inboundSchema(CurrentRating);
|
|
305
369
|
|
|
370
|
+
/** @internal */
|
|
371
|
+
export const Identifiers$inboundSchema: z.ZodType<
|
|
372
|
+
Identifiers,
|
|
373
|
+
z.ZodTypeDef,
|
|
374
|
+
unknown
|
|
375
|
+
> = z.object({
|
|
376
|
+
estynId: z.nullable(z.string()).optional(),
|
|
377
|
+
ofstedProviderId: z.nullable(z.string()).optional(),
|
|
378
|
+
oldUrns: z.array(z.string()).optional(),
|
|
379
|
+
ukprn: z.nullable(z.string()).optional(),
|
|
380
|
+
});
|
|
381
|
+
|
|
382
|
+
export function identifiersFromJSON(
|
|
383
|
+
jsonString: string,
|
|
384
|
+
): SafeParseResult<Identifiers, SDKValidationError> {
|
|
385
|
+
return safeParse(
|
|
386
|
+
jsonString,
|
|
387
|
+
(x) => Identifiers$inboundSchema.parse(JSON.parse(x)),
|
|
388
|
+
`Failed to parse 'Identifiers' from JSON`,
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/** @internal */
|
|
393
|
+
export const Inspections$inboundSchema: z.ZodType<
|
|
394
|
+
Inspections,
|
|
395
|
+
z.ZodTypeDef,
|
|
396
|
+
unknown
|
|
397
|
+
> = z.object({
|
|
398
|
+
current: z.nullable(shared.SchoolInspectionEvent$inboundSchema),
|
|
399
|
+
history: z.array(z.nullable(shared.SchoolInspectionEvent$inboundSchema))
|
|
400
|
+
.optional(),
|
|
401
|
+
});
|
|
402
|
+
|
|
403
|
+
export function inspectionsFromJSON(
|
|
404
|
+
jsonString: string,
|
|
405
|
+
): SafeParseResult<Inspections, SDKValidationError> {
|
|
406
|
+
return safeParse(
|
|
407
|
+
jsonString,
|
|
408
|
+
(x) => Inspections$inboundSchema.parse(JSON.parse(x)),
|
|
409
|
+
`Failed to parse 'Inspections' from JSON`,
|
|
410
|
+
);
|
|
411
|
+
}
|
|
412
|
+
|
|
306
413
|
/** @internal */
|
|
307
414
|
export const Location$inboundSchema: z.ZodType<
|
|
308
415
|
Location,
|
|
@@ -342,6 +449,22 @@ export const GetSchoolByIdStatus$inboundSchema: z.ZodType<
|
|
|
342
449
|
unknown
|
|
343
450
|
> = openEnums.inboundSchema(GetSchoolByIdStatus);
|
|
344
451
|
|
|
452
|
+
/** @internal */
|
|
453
|
+
export const Trust$inboundSchema: z.ZodType<Trust, z.ZodTypeDef, unknown> = z
|
|
454
|
+
.object({
|
|
455
|
+
memberships: z.array(shared.SchoolTrustMembership$inboundSchema).optional(),
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
export function trustFromJSON(
|
|
459
|
+
jsonString: string,
|
|
460
|
+
): SafeParseResult<Trust, SDKValidationError> {
|
|
461
|
+
return safeParse(
|
|
462
|
+
jsonString,
|
|
463
|
+
(x) => Trust$inboundSchema.parse(JSON.parse(x)),
|
|
464
|
+
`Failed to parse 'Trust' from JSON`,
|
|
465
|
+
);
|
|
466
|
+
}
|
|
467
|
+
|
|
345
468
|
/** @internal */
|
|
346
469
|
export const GetSchoolByIdType$inboundSchema: z.ZodType<
|
|
347
470
|
GetSchoolByIdType,
|
|
@@ -368,6 +491,8 @@ export const GetSchoolByIdResponseBody$inboundSchema: z.ZodType<
|
|
|
368
491
|
gender: z.string().optional(),
|
|
369
492
|
headteacher: z.string().optional(),
|
|
370
493
|
id: z.number().int(),
|
|
494
|
+
identifiers: z.nullable(z.lazy(() => Identifiers$inboundSchema)).optional(),
|
|
495
|
+
inspections: z.nullable(z.lazy(() => Inspections$inboundSchema)).optional(),
|
|
371
496
|
key: z.string(),
|
|
372
497
|
laCode: z.string().optional(),
|
|
373
498
|
laName: z.string().optional(),
|
|
@@ -388,6 +513,7 @@ export const GetSchoolByIdResponseBody$inboundSchema: z.ZodType<
|
|
|
388
513
|
status: GetSchoolByIdStatus$inboundSchema,
|
|
389
514
|
subType: z.string().optional(),
|
|
390
515
|
telephone: z.string().optional(),
|
|
516
|
+
trust: z.nullable(z.lazy(() => Trust$inboundSchema)).optional(),
|
|
391
517
|
trustId: z.string().optional(),
|
|
392
518
|
trustName: z.string().optional(),
|
|
393
519
|
type: GetSchoolByIdType$inboundSchema,
|
|
@@ -26,6 +26,10 @@ export const PathParamProvider = {
|
|
|
26
26
|
export type PathParamProvider = ClosedEnum<typeof PathParamProvider>;
|
|
27
27
|
|
|
28
28
|
export type GetSchoolBySourceRequest = {
|
|
29
|
+
/**
|
|
30
|
+
* Comma-separated fields/blocks to return. Default: the full flat record with no aggregate blocks. Aggregate blocks are opt-in: `inspections`. Performance/census/finance live on `/v1/schools/metrics`.
|
|
31
|
+
*/
|
|
32
|
+
attributes?: string | undefined;
|
|
29
33
|
/**
|
|
30
34
|
* Provider-scoped identifier (URN for dfe, SEED for seed, …)
|
|
31
35
|
*/
|
|
@@ -93,6 +97,42 @@ export type GetSchoolBySourceCurrentRating = OpenEnum<
|
|
|
93
97
|
typeof GetSchoolBySourceCurrentRating
|
|
94
98
|
>;
|
|
95
99
|
|
|
100
|
+
/**
|
|
101
|
+
* Cross-register identifiers. Present only when requested via `attributes=identifiers`.
|
|
102
|
+
*/
|
|
103
|
+
export type GetSchoolBySourceIdentifiers = {
|
|
104
|
+
/**
|
|
105
|
+
* Estyn provider id (Wales).
|
|
106
|
+
*/
|
|
107
|
+
estynId?: string | null | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* Ofsted provider id (England).
|
|
110
|
+
*/
|
|
111
|
+
ofstedProviderId?: string | null | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* Predecessor URNs this school was previously known by (re-identification lineage).
|
|
114
|
+
*/
|
|
115
|
+
oldUrns?: Array<string> | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* UK Provider Reference Number (UKPRN).
|
|
118
|
+
*/
|
|
119
|
+
ukprn?: string | null | undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Inspection history. Present only when requested via `attributes=inspections`.
|
|
124
|
+
*/
|
|
125
|
+
export type GetSchoolBySourceInspections = {
|
|
126
|
+
/**
|
|
127
|
+
* Most recent inspection event, or null if never inspected.
|
|
128
|
+
*/
|
|
129
|
+
current: shared.SchoolInspectionEvent | null;
|
|
130
|
+
/**
|
|
131
|
+
* Every inspection event, newest first (includes `current`).
|
|
132
|
+
*/
|
|
133
|
+
history?: Array<shared.SchoolInspectionEvent | null> | undefined;
|
|
134
|
+
};
|
|
135
|
+
|
|
96
136
|
/**
|
|
97
137
|
* Geographic coordinates of the school
|
|
98
138
|
*/
|
|
@@ -150,6 +190,16 @@ export const GetSchoolBySourceStatus = {
|
|
|
150
190
|
*/
|
|
151
191
|
export type GetSchoolBySourceStatus = OpenEnum<typeof GetSchoolBySourceStatus>;
|
|
152
192
|
|
|
193
|
+
/**
|
|
194
|
+
* Trust / organisation memberships. Present only when requested via `attributes=trust`.
|
|
195
|
+
*/
|
|
196
|
+
export type GetSchoolBySourceTrust = {
|
|
197
|
+
/**
|
|
198
|
+
* Active organisation memberships, lead/trust roles first.
|
|
199
|
+
*/
|
|
200
|
+
memberships?: Array<shared.SchoolTrustMembership> | undefined;
|
|
201
|
+
};
|
|
202
|
+
|
|
153
203
|
/**
|
|
154
204
|
* Educational institution type. 'nursery': early years. 'primary': key stages 1-2 / ISCED 1. 'secondary': key stages 3-4 / ISCED 2-3. 'all-through': combined primary + secondary. 'sixth-form': post-16. 'special': special educational needs. 'independent': fee-paying. 'academy': state-funded, independently run. 'other': alternative provision / pupil referral / unclassified.
|
|
155
205
|
*/
|
|
@@ -207,6 +257,14 @@ export type GetSchoolBySourceResponseBody = {
|
|
|
207
257
|
* System-generated identifier. Stable across updates.
|
|
208
258
|
*/
|
|
209
259
|
id: number;
|
|
260
|
+
/**
|
|
261
|
+
* Cross-register identifiers. Present only when requested via `attributes=identifiers`.
|
|
262
|
+
*/
|
|
263
|
+
identifiers?: GetSchoolBySourceIdentifiers | null | undefined;
|
|
264
|
+
/**
|
|
265
|
+
* Inspection history. Present only when requested via `attributes=inspections`.
|
|
266
|
+
*/
|
|
267
|
+
inspections?: GetSchoolBySourceInspections | null | undefined;
|
|
210
268
|
/**
|
|
211
269
|
* Provider-scoped identifier. URN for `dfe`, SEED for `seed`, etc. Combined with `provider` this is a globally unique alternate key for the school.
|
|
212
270
|
*/
|
|
@@ -263,6 +321,10 @@ export type GetSchoolBySourceResponseBody = {
|
|
|
263
321
|
*/
|
|
264
322
|
subType?: string | undefined;
|
|
265
323
|
telephone?: string | undefined;
|
|
324
|
+
/**
|
|
325
|
+
* Trust / organisation memberships. Present only when requested via `attributes=trust`.
|
|
326
|
+
*/
|
|
327
|
+
trust?: GetSchoolBySourceTrust | null | undefined;
|
|
266
328
|
trustId?: string | undefined;
|
|
267
329
|
trustName?: string | undefined;
|
|
268
330
|
/**
|
|
@@ -283,6 +345,7 @@ export const PathParamProvider$outboundSchema: z.ZodNativeEnum<
|
|
|
283
345
|
|
|
284
346
|
/** @internal */
|
|
285
347
|
export type GetSchoolBySourceRequest$Outbound = {
|
|
348
|
+
attributes?: string | undefined;
|
|
286
349
|
key: string;
|
|
287
350
|
provider: string;
|
|
288
351
|
};
|
|
@@ -293,6 +356,7 @@ export const GetSchoolBySourceRequest$outboundSchema: z.ZodType<
|
|
|
293
356
|
z.ZodTypeDef,
|
|
294
357
|
GetSchoolBySourceRequest
|
|
295
358
|
> = z.object({
|
|
359
|
+
attributes: z.string().optional(),
|
|
296
360
|
key: z.string(),
|
|
297
361
|
provider: PathParamProvider$outboundSchema,
|
|
298
362
|
});
|
|
@@ -335,6 +399,49 @@ export const GetSchoolBySourceCurrentRating$inboundSchema: z.ZodType<
|
|
|
335
399
|
unknown
|
|
336
400
|
> = openEnums.inboundSchema(GetSchoolBySourceCurrentRating);
|
|
337
401
|
|
|
402
|
+
/** @internal */
|
|
403
|
+
export const GetSchoolBySourceIdentifiers$inboundSchema: z.ZodType<
|
|
404
|
+
GetSchoolBySourceIdentifiers,
|
|
405
|
+
z.ZodTypeDef,
|
|
406
|
+
unknown
|
|
407
|
+
> = z.object({
|
|
408
|
+
estynId: z.nullable(z.string()).optional(),
|
|
409
|
+
ofstedProviderId: z.nullable(z.string()).optional(),
|
|
410
|
+
oldUrns: z.array(z.string()).optional(),
|
|
411
|
+
ukprn: z.nullable(z.string()).optional(),
|
|
412
|
+
});
|
|
413
|
+
|
|
414
|
+
export function getSchoolBySourceIdentifiersFromJSON(
|
|
415
|
+
jsonString: string,
|
|
416
|
+
): SafeParseResult<GetSchoolBySourceIdentifiers, SDKValidationError> {
|
|
417
|
+
return safeParse(
|
|
418
|
+
jsonString,
|
|
419
|
+
(x) => GetSchoolBySourceIdentifiers$inboundSchema.parse(JSON.parse(x)),
|
|
420
|
+
`Failed to parse 'GetSchoolBySourceIdentifiers' from JSON`,
|
|
421
|
+
);
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
/** @internal */
|
|
425
|
+
export const GetSchoolBySourceInspections$inboundSchema: z.ZodType<
|
|
426
|
+
GetSchoolBySourceInspections,
|
|
427
|
+
z.ZodTypeDef,
|
|
428
|
+
unknown
|
|
429
|
+
> = z.object({
|
|
430
|
+
current: z.nullable(shared.SchoolInspectionEvent$inboundSchema),
|
|
431
|
+
history: z.array(z.nullable(shared.SchoolInspectionEvent$inboundSchema))
|
|
432
|
+
.optional(),
|
|
433
|
+
});
|
|
434
|
+
|
|
435
|
+
export function getSchoolBySourceInspectionsFromJSON(
|
|
436
|
+
jsonString: string,
|
|
437
|
+
): SafeParseResult<GetSchoolBySourceInspections, SDKValidationError> {
|
|
438
|
+
return safeParse(
|
|
439
|
+
jsonString,
|
|
440
|
+
(x) => GetSchoolBySourceInspections$inboundSchema.parse(JSON.parse(x)),
|
|
441
|
+
`Failed to parse 'GetSchoolBySourceInspections' from JSON`,
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
|
|
338
445
|
/** @internal */
|
|
339
446
|
export const GetSchoolBySourceLocation$inboundSchema: z.ZodType<
|
|
340
447
|
GetSchoolBySourceLocation,
|
|
@@ -374,6 +481,25 @@ export const GetSchoolBySourceStatus$inboundSchema: z.ZodType<
|
|
|
374
481
|
unknown
|
|
375
482
|
> = openEnums.inboundSchema(GetSchoolBySourceStatus);
|
|
376
483
|
|
|
484
|
+
/** @internal */
|
|
485
|
+
export const GetSchoolBySourceTrust$inboundSchema: z.ZodType<
|
|
486
|
+
GetSchoolBySourceTrust,
|
|
487
|
+
z.ZodTypeDef,
|
|
488
|
+
unknown
|
|
489
|
+
> = z.object({
|
|
490
|
+
memberships: z.array(shared.SchoolTrustMembership$inboundSchema).optional(),
|
|
491
|
+
});
|
|
492
|
+
|
|
493
|
+
export function getSchoolBySourceTrustFromJSON(
|
|
494
|
+
jsonString: string,
|
|
495
|
+
): SafeParseResult<GetSchoolBySourceTrust, SDKValidationError> {
|
|
496
|
+
return safeParse(
|
|
497
|
+
jsonString,
|
|
498
|
+
(x) => GetSchoolBySourceTrust$inboundSchema.parse(JSON.parse(x)),
|
|
499
|
+
`Failed to parse 'GetSchoolBySourceTrust' from JSON`,
|
|
500
|
+
);
|
|
501
|
+
}
|
|
502
|
+
|
|
377
503
|
/** @internal */
|
|
378
504
|
export const GetSchoolBySourceType$inboundSchema: z.ZodType<
|
|
379
505
|
GetSchoolBySourceType,
|
|
@@ -401,6 +527,12 @@ export const GetSchoolBySourceResponseBody$inboundSchema: z.ZodType<
|
|
|
401
527
|
gender: z.string().optional(),
|
|
402
528
|
headteacher: z.string().optional(),
|
|
403
529
|
id: z.number().int(),
|
|
530
|
+
identifiers: z.nullable(
|
|
531
|
+
z.lazy(() => GetSchoolBySourceIdentifiers$inboundSchema),
|
|
532
|
+
).optional(),
|
|
533
|
+
inspections: z.nullable(
|
|
534
|
+
z.lazy(() => GetSchoolBySourceInspections$inboundSchema),
|
|
535
|
+
).optional(),
|
|
404
536
|
key: z.string(),
|
|
405
537
|
laCode: z.string().optional(),
|
|
406
538
|
laName: z.string().optional(),
|
|
@@ -422,6 +554,8 @@ export const GetSchoolBySourceResponseBody$inboundSchema: z.ZodType<
|
|
|
422
554
|
status: GetSchoolBySourceStatus$inboundSchema,
|
|
423
555
|
subType: z.string().optional(),
|
|
424
556
|
telephone: z.string().optional(),
|
|
557
|
+
trust: z.nullable(z.lazy(() => GetSchoolBySourceTrust$inboundSchema))
|
|
558
|
+
.optional(),
|
|
425
559
|
trustId: z.string().optional(),
|
|
426
560
|
trustName: z.string().optional(),
|
|
427
561
|
type: GetSchoolBySourceType$inboundSchema,
|