@vepler/sdk 6.46.8 → 6.50.12
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/sitesGetTiles.d.ts +1 -1
- package/dist/commonjs/funcs/sitesGetTiles.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/sdk/models/operations/getsitetiles.d.ts +1 -1
- package/dist/commonjs/sdk/models/shared/building.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/building.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/building.js +1 -0
- package/dist/commonjs/sdk/models/shared/building.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/buildingaggregaterequest.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/buildingaggregaterequest.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/buildingaggregaterequest.js +1 -0
- package/dist/commonjs/sdk/models/shared/buildingaggregaterequest.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/buildingfilters.d.ts +5 -0
- package/dist/commonjs/sdk/models/shared/buildingfilters.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/buildingfilters.js +1 -0
- package/dist/commonjs/sdk/models/shared/buildingfilters.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/buildingquerycondition.d.ts +1 -0
- package/dist/commonjs/sdk/models/shared/buildingquerycondition.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/buildingquerycondition.js +1 -0
- package/dist/commonjs/sdk/models/shared/buildingquerycondition.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts +0 -1
- package/dist/commonjs/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/index.js +0 -1
- package/dist/commonjs/sdk/models/shared/index.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts +4 -0
- package/dist/commonjs/sdk/models/shared/planningapplication.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/planningapplication.js +1 -0
- package/dist/commonjs/sdk/models/shared/planningapplication.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.d.ts +70 -3
- package/dist/commonjs/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/site.js +40 -3
- package/dist/commonjs/sdk/models/shared/site.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts +30 -5
- package/dist/commonjs/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/siteplanningstats.js +13 -1
- package/dist/commonjs/sdk/models/shared/siteplanningstats.js.map +1 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts +4 -4
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js +6 -6
- package/dist/commonjs/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/commonjs/sdk/sites.d.ts +1 -1
- package/dist/commonjs/sdk/sites.js +1 -1
- package/dist/esm/funcs/sitesGetTiles.d.ts +1 -1
- package/dist/esm/funcs/sitesGetTiles.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/sdk/models/operations/getsitetiles.d.ts +1 -1
- package/dist/esm/sdk/models/shared/building.d.ts +4 -0
- package/dist/esm/sdk/models/shared/building.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/building.js +1 -0
- package/dist/esm/sdk/models/shared/building.js.map +1 -1
- package/dist/esm/sdk/models/shared/buildingaggregaterequest.d.ts +1 -0
- package/dist/esm/sdk/models/shared/buildingaggregaterequest.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/buildingaggregaterequest.js +1 -0
- package/dist/esm/sdk/models/shared/buildingaggregaterequest.js.map +1 -1
- package/dist/esm/sdk/models/shared/buildingfilters.d.ts +5 -0
- package/dist/esm/sdk/models/shared/buildingfilters.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/buildingfilters.js +1 -0
- package/dist/esm/sdk/models/shared/buildingfilters.js.map +1 -1
- package/dist/esm/sdk/models/shared/buildingquerycondition.d.ts +1 -0
- package/dist/esm/sdk/models/shared/buildingquerycondition.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/buildingquerycondition.js +1 -0
- package/dist/esm/sdk/models/shared/buildingquerycondition.js.map +1 -1
- package/dist/esm/sdk/models/shared/index.d.ts +0 -1
- package/dist/esm/sdk/models/shared/index.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/index.js +0 -1
- package/dist/esm/sdk/models/shared/index.js.map +1 -1
- package/dist/esm/sdk/models/shared/planningapplication.d.ts +4 -0
- package/dist/esm/sdk/models/shared/planningapplication.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/planningapplication.js +1 -0
- package/dist/esm/sdk/models/shared/planningapplication.js.map +1 -1
- package/dist/esm/sdk/models/shared/site.d.ts +70 -3
- package/dist/esm/sdk/models/shared/site.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/site.js +38 -2
- package/dist/esm/sdk/models/shared/site.js.map +1 -1
- package/dist/esm/sdk/models/shared/siteplanningstats.d.ts +30 -5
- package/dist/esm/sdk/models/shared/siteplanningstats.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/siteplanningstats.js +12 -0
- package/dist/esm/sdk/models/shared/siteplanningstats.js.map +1 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts +4 -4
- package/dist/esm/sdk/models/shared/titleextractionpayload.d.ts.map +1 -1
- package/dist/esm/sdk/models/shared/titleextractionpayload.js +4 -4
- package/dist/esm/sdk/models/shared/titleextractionpayload.js.map +1 -1
- package/dist/esm/sdk/sites.d.ts +1 -1
- package/dist/esm/sdk/sites.js +1 -1
- package/package.json +1 -1
- package/src/funcs/sitesGetTiles.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/sdk/models/operations/getsitetiles.ts +1 -1
- package/src/sdk/models/shared/building.ts +5 -0
- package/src/sdk/models/shared/buildingaggregaterequest.ts +1 -0
- package/src/sdk/models/shared/buildingfilters.ts +6 -0
- package/src/sdk/models/shared/buildingquerycondition.ts +1 -0
- package/src/sdk/models/shared/index.ts +0 -1
- package/src/sdk/models/shared/planningapplication.ts +5 -0
- package/src/sdk/models/shared/site.ts +109 -4
- package/src/sdk/models/shared/siteplanningstats.ts +43 -5
- package/src/sdk/models/shared/titleextractionpayload.ts +9 -9
- package/src/sdk/sites.ts +1 -1
- package/dist/commonjs/sdk/models/shared/siteownership.d.ts +0 -73
- package/dist/commonjs/sdk/models/shared/siteownership.d.ts.map +0 -1
- package/dist/commonjs/sdk/models/shared/siteownership.js +0 -81
- package/dist/commonjs/sdk/models/shared/siteownership.js.map +0 -1
- package/dist/esm/sdk/models/shared/siteownership.d.ts +0 -73
- package/dist/esm/sdk/models/shared/siteownership.d.ts.map +0 -1
- package/dist/esm/sdk/models/shared/siteownership.js +0 -44
- package/dist/esm/sdk/models/shared/siteownership.js.map +0 -1
- package/src/sdk/models/shared/siteownership.ts +0 -116
|
@@ -14,7 +14,6 @@ import {
|
|
|
14
14
|
SiteAreaMetrics,
|
|
15
15
|
SiteAreaMetrics$inboundSchema,
|
|
16
16
|
} from "./siteareametrics.js";
|
|
17
|
-
import { SiteOwnership, SiteOwnership$inboundSchema } from "./siteownership.js";
|
|
18
17
|
import {
|
|
19
18
|
SitePlanningStats,
|
|
20
19
|
SitePlanningStats$inboundSchema,
|
|
@@ -23,6 +22,10 @@ import {
|
|
|
23
22
|
SitePropertyStats,
|
|
24
23
|
SitePropertyStats$inboundSchema,
|
|
25
24
|
} from "./sitepropertystats.js";
|
|
25
|
+
import {
|
|
26
|
+
SiteProprietor,
|
|
27
|
+
SiteProprietor$inboundSchema,
|
|
28
|
+
} from "./siteproprietor.js";
|
|
26
29
|
import { SiteTags, SiteTags$inboundSchema } from "./sitetags.js";
|
|
27
30
|
|
|
28
31
|
/**
|
|
@@ -144,6 +147,69 @@ export const SiteObject = {
|
|
|
144
147
|
*/
|
|
145
148
|
export type SiteObject = ClosedEnum<typeof SiteObject>;
|
|
146
149
|
|
|
150
|
+
/**
|
|
151
|
+
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
152
|
+
*/
|
|
153
|
+
export const OwnershipCategory = {
|
|
154
|
+
Company: "company",
|
|
155
|
+
Corporate: "corporate",
|
|
156
|
+
Government: "government",
|
|
157
|
+
Individual: "individual",
|
|
158
|
+
Unknown: "unknown",
|
|
159
|
+
} as const;
|
|
160
|
+
/**
|
|
161
|
+
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
162
|
+
*/
|
|
163
|
+
export type OwnershipCategory = OpenEnum<typeof OwnershipCategory>;
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* Which HM Land Registry record the ownership was taken from.
|
|
167
|
+
*/
|
|
168
|
+
export const SiteSource = {
|
|
169
|
+
Ccod: "ccod",
|
|
170
|
+
Ocod: "ocod",
|
|
171
|
+
TitleDeed: "title_deed",
|
|
172
|
+
Manual: "manual",
|
|
173
|
+
} as const;
|
|
174
|
+
/**
|
|
175
|
+
* Which HM Land Registry record the ownership was taken from.
|
|
176
|
+
*/
|
|
177
|
+
export type SiteSource = OpenEnum<typeof SiteSource>;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Registered ownership of the title. Null when no proprietor records are held for it. Requires the `sourceData` permission on the licence, and is left out of the response without it.
|
|
181
|
+
*/
|
|
182
|
+
export type Ownership = {
|
|
183
|
+
/**
|
|
184
|
+
* Company registration number of the primary proprietor, where it is a company.
|
|
185
|
+
*/
|
|
186
|
+
companyNumber?: string | null | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* When the primary proprietor was added to the title, as an ISO 8601 date.
|
|
189
|
+
*/
|
|
190
|
+
dateProprietorAdded?: string | null | undefined;
|
|
191
|
+
/**
|
|
192
|
+
* True when the title is recorded as being held by more than one proprietor.
|
|
193
|
+
*/
|
|
194
|
+
isJointOwnership?: boolean | undefined;
|
|
195
|
+
/**
|
|
196
|
+
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
197
|
+
*/
|
|
198
|
+
ownershipCategory?: OwnershipCategory | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* Name of the primary proprietor.
|
|
201
|
+
*/
|
|
202
|
+
primaryOwnerName?: string | undefined;
|
|
203
|
+
/**
|
|
204
|
+
* Every proprietor recorded on the title, with the primary one first.
|
|
205
|
+
*/
|
|
206
|
+
proprietors?: Array<SiteProprietor> | undefined;
|
|
207
|
+
/**
|
|
208
|
+
* Which HM Land Registry record the ownership was taken from.
|
|
209
|
+
*/
|
|
210
|
+
source?: SiteSource | undefined;
|
|
211
|
+
};
|
|
212
|
+
|
|
147
213
|
/**
|
|
148
214
|
* Where the title record stands: `active` for a current registered title, `pending` for one awaiting registration or enrichment, and `closed` for one that is no longer active.
|
|
149
215
|
*/
|
|
@@ -227,9 +293,9 @@ export type Site = {
|
|
|
227
293
|
*/
|
|
228
294
|
overlays?: Array<string> | undefined;
|
|
229
295
|
/**
|
|
230
|
-
* Registered ownership of the title. Null when no proprietor records are held for it.
|
|
296
|
+
* Registered ownership of the title. Null when no proprietor records are held for it. Requires the `sourceData` permission on the licence, and is left out of the response without it.
|
|
231
297
|
*/
|
|
232
|
-
ownership?:
|
|
298
|
+
ownership?: Ownership | null | undefined;
|
|
233
299
|
/**
|
|
234
300
|
* Statistics across the planning applications whose boundary intersects this site. Null when none intersect it.
|
|
235
301
|
*/
|
|
@@ -386,6 +452,45 @@ export const LandUse$inboundSchema: z.ZodType<LandUse, z.ZodTypeDef, unknown> =
|
|
|
386
452
|
export const SiteObject$inboundSchema: z.ZodNativeEnum<typeof SiteObject> = z
|
|
387
453
|
.nativeEnum(SiteObject);
|
|
388
454
|
|
|
455
|
+
/** @internal */
|
|
456
|
+
export const OwnershipCategory$inboundSchema: z.ZodType<
|
|
457
|
+
OwnershipCategory,
|
|
458
|
+
z.ZodTypeDef,
|
|
459
|
+
unknown
|
|
460
|
+
> = openEnums.inboundSchema(OwnershipCategory);
|
|
461
|
+
|
|
462
|
+
/** @internal */
|
|
463
|
+
export const SiteSource$inboundSchema: z.ZodType<
|
|
464
|
+
SiteSource,
|
|
465
|
+
z.ZodTypeDef,
|
|
466
|
+
unknown
|
|
467
|
+
> = openEnums.inboundSchema(SiteSource);
|
|
468
|
+
|
|
469
|
+
/** @internal */
|
|
470
|
+
export const Ownership$inboundSchema: z.ZodType<
|
|
471
|
+
Ownership,
|
|
472
|
+
z.ZodTypeDef,
|
|
473
|
+
unknown
|
|
474
|
+
> = z.object({
|
|
475
|
+
companyNumber: z.nullable(z.string()).optional(),
|
|
476
|
+
dateProprietorAdded: z.nullable(z.string()).optional(),
|
|
477
|
+
isJointOwnership: z.boolean().optional(),
|
|
478
|
+
ownershipCategory: OwnershipCategory$inboundSchema.optional(),
|
|
479
|
+
primaryOwnerName: z.string().optional(),
|
|
480
|
+
proprietors: z.array(SiteProprietor$inboundSchema).optional(),
|
|
481
|
+
source: SiteSource$inboundSchema.optional(),
|
|
482
|
+
});
|
|
483
|
+
|
|
484
|
+
export function ownershipFromJSON(
|
|
485
|
+
jsonString: string,
|
|
486
|
+
): SafeParseResult<Ownership, SDKValidationError> {
|
|
487
|
+
return safeParse(
|
|
488
|
+
jsonString,
|
|
489
|
+
(x) => Ownership$inboundSchema.parse(JSON.parse(x)),
|
|
490
|
+
`Failed to parse 'Ownership' from JSON`,
|
|
491
|
+
);
|
|
492
|
+
}
|
|
493
|
+
|
|
389
494
|
/** @internal */
|
|
390
495
|
export const SiteStatus$inboundSchema: z.ZodType<
|
|
391
496
|
SiteStatus,
|
|
@@ -418,7 +523,7 @@ export const Site$inboundSchema: z.ZodType<Site, z.ZodTypeDef, unknown> = z
|
|
|
418
523
|
locationIds: z.array(z.string()).optional(),
|
|
419
524
|
object: SiteObject$inboundSchema.optional(),
|
|
420
525
|
overlays: z.array(z.string()).optional(),
|
|
421
|
-
ownership: z.nullable(
|
|
526
|
+
ownership: z.nullable(z.lazy(() => Ownership$inboundSchema)).optional(),
|
|
422
527
|
planning: z.nullable(SitePlanningStats$inboundSchema).optional(),
|
|
423
528
|
polygonIds: z.array(z.number()).optional(),
|
|
424
529
|
propertyStats: z.nullable(SitePropertyStats$inboundSchema).optional(),
|
|
@@ -4,21 +4,40 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { safeParse } from "../../../lib/schemas.js";
|
|
7
|
+
import * as openEnums from "../../types/enums.js";
|
|
8
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
7
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
11
|
|
|
12
|
+
export const SitePlanningStatsSources = {
|
|
13
|
+
SiteId: "siteId",
|
|
14
|
+
UprnLinks: "uprnLinks",
|
|
15
|
+
Spatial: "spatial",
|
|
16
|
+
} as const;
|
|
17
|
+
export type SitePlanningStatsSources = OpenEnum<
|
|
18
|
+
typeof SitePlanningStatsSources
|
|
19
|
+
>;
|
|
20
|
+
|
|
10
21
|
/**
|
|
11
22
|
* Statistics across the planning applications whose boundary intersects this site. Null when none intersect it.
|
|
12
23
|
*/
|
|
13
24
|
export type SitePlanningStats = {
|
|
14
25
|
/**
|
|
15
|
-
*
|
|
26
|
+
* Identifiers of the planning applications linked to this site, most recently received first. Pass them to GET /v1/planning/{applicationIds} to fetch the applications. The list is cut at a fixed limit; truncated says when that happened. Absent on a site whose planning data has not been rebuilt since this field was introduced.
|
|
27
|
+
*/
|
|
28
|
+
applicationIds?: Array<string> | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The distinct application types found across the applications in applicationIds.
|
|
16
31
|
*/
|
|
17
32
|
applicationTypes?: Array<string> | undefined;
|
|
18
33
|
/**
|
|
19
|
-
* How many of
|
|
34
|
+
* How many of the applications in applicationIds were approved.
|
|
20
35
|
*/
|
|
21
36
|
approvals?: number | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* When the links were last read, as an ISO 8601 timestamp. Absent when applicationIds is absent.
|
|
39
|
+
*/
|
|
40
|
+
asOf?: string | undefined;
|
|
22
41
|
/**
|
|
23
42
|
* When the most recent of those applications was received, as an ISO 8601 timestamp.
|
|
24
43
|
*/
|
|
@@ -28,32 +47,51 @@ export type SitePlanningStats = {
|
|
|
28
47
|
*/
|
|
29
48
|
latestDecision?: string | undefined;
|
|
30
49
|
/**
|
|
31
|
-
* How many of
|
|
50
|
+
* How many of the applications in applicationIds are still awaiting a decision.
|
|
32
51
|
*/
|
|
33
52
|
pending?: number | undefined;
|
|
34
53
|
/**
|
|
35
|
-
* How many of
|
|
54
|
+
* How many of the applications in applicationIds were refused.
|
|
36
55
|
*/
|
|
37
56
|
refusals?: number | undefined;
|
|
38
57
|
/**
|
|
39
|
-
*
|
|
58
|
+
* Which links were used to find the applications: 'siteId' for applications recorded against this site, 'uprnLinks' for applications on a property the title covers, and 'spatial' for applications whose boundary intersects the title boundary. 'spatial' is present only when the site has a boundary. Absent when applicationIds is absent.
|
|
59
|
+
*/
|
|
60
|
+
sources?: Array<SitePlanningStatsSources> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Number of planning applications linked to this site across every source in sources. This is the full count even when applicationIds is truncated.
|
|
40
63
|
*/
|
|
41
64
|
totalApplications?: number | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* True when applicationIds holds fewer applications than totalApplications because the list was cut at its limit. Absent when applicationIds is absent.
|
|
67
|
+
*/
|
|
68
|
+
truncated?: boolean | undefined;
|
|
42
69
|
};
|
|
43
70
|
|
|
71
|
+
/** @internal */
|
|
72
|
+
export const SitePlanningStatsSources$inboundSchema: z.ZodType<
|
|
73
|
+
SitePlanningStatsSources,
|
|
74
|
+
z.ZodTypeDef,
|
|
75
|
+
unknown
|
|
76
|
+
> = openEnums.inboundSchema(SitePlanningStatsSources);
|
|
77
|
+
|
|
44
78
|
/** @internal */
|
|
45
79
|
export const SitePlanningStats$inboundSchema: z.ZodType<
|
|
46
80
|
SitePlanningStats,
|
|
47
81
|
z.ZodTypeDef,
|
|
48
82
|
unknown
|
|
49
83
|
> = z.object({
|
|
84
|
+
applicationIds: z.array(z.string()).optional(),
|
|
50
85
|
applicationTypes: z.array(z.string()).optional(),
|
|
51
86
|
approvals: z.number().optional(),
|
|
87
|
+
asOf: z.string().optional(),
|
|
52
88
|
latestApplicationDate: z.string().optional(),
|
|
53
89
|
latestDecision: z.string().optional(),
|
|
54
90
|
pending: z.number().optional(),
|
|
55
91
|
refusals: z.number().optional(),
|
|
92
|
+
sources: z.array(SitePlanningStatsSources$inboundSchema).optional(),
|
|
56
93
|
totalApplications: z.number().optional(),
|
|
94
|
+
truncated: z.boolean().optional(),
|
|
57
95
|
});
|
|
58
96
|
|
|
59
97
|
export function sitePlanningStatsFromJSON(
|
|
@@ -59,7 +59,7 @@ export const ClassOfTitle = {
|
|
|
59
59
|
*/
|
|
60
60
|
export type ClassOfTitle = OpenEnum<typeof ClassOfTitle>;
|
|
61
61
|
|
|
62
|
-
export type
|
|
62
|
+
export type TitleExtractionPayloadOwnership = {
|
|
63
63
|
proprietors: Array<TitleProprietor>;
|
|
64
64
|
};
|
|
65
65
|
|
|
@@ -94,7 +94,7 @@ export type TitleExtractionPayload = {
|
|
|
94
94
|
*/
|
|
95
95
|
leaseTermDescription: string;
|
|
96
96
|
notices: Array<TitleNotice>;
|
|
97
|
-
ownership:
|
|
97
|
+
ownership: TitleExtractionPayloadOwnership;
|
|
98
98
|
/**
|
|
99
99
|
* The price-paid entry from the Proprietorship Register. Null when the register records none.
|
|
100
100
|
*/
|
|
@@ -131,21 +131,21 @@ export const ClassOfTitle$inboundSchema: z.ZodType<
|
|
|
131
131
|
> = openEnums.inboundSchema(ClassOfTitle);
|
|
132
132
|
|
|
133
133
|
/** @internal */
|
|
134
|
-
export const
|
|
135
|
-
|
|
134
|
+
export const TitleExtractionPayloadOwnership$inboundSchema: z.ZodType<
|
|
135
|
+
TitleExtractionPayloadOwnership,
|
|
136
136
|
z.ZodTypeDef,
|
|
137
137
|
unknown
|
|
138
138
|
> = z.object({
|
|
139
139
|
proprietors: z.array(TitleProprietor$inboundSchema),
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export function
|
|
142
|
+
export function titleExtractionPayloadOwnershipFromJSON(
|
|
143
143
|
jsonString: string,
|
|
144
|
-
): SafeParseResult<
|
|
144
|
+
): SafeParseResult<TitleExtractionPayloadOwnership, SDKValidationError> {
|
|
145
145
|
return safeParse(
|
|
146
146
|
jsonString,
|
|
147
|
-
(x) =>
|
|
148
|
-
`Failed to parse '
|
|
147
|
+
(x) => TitleExtractionPayloadOwnership$inboundSchema.parse(JSON.parse(x)),
|
|
148
|
+
`Failed to parse 'TitleExtractionPayloadOwnership' from JSON`,
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -169,7 +169,7 @@ export const TitleExtractionPayload$inboundSchema: z.ZodType<
|
|
|
169
169
|
),
|
|
170
170
|
leaseTermDescription: z.string(),
|
|
171
171
|
notices: z.array(TitleNotice$inboundSchema),
|
|
172
|
-
ownership: z.lazy(() =>
|
|
172
|
+
ownership: z.lazy(() => TitleExtractionPayloadOwnership$inboundSchema),
|
|
173
173
|
pricePaid: z.nullable(TitlePricePaid$inboundSchema),
|
|
174
174
|
promptVersion: z.string(),
|
|
175
175
|
propertyRights: z.array(TitlePropertyRight$inboundSchema),
|
package/src/sdk/sites.ts
CHANGED
|
@@ -122,7 +122,7 @@ export class Sites extends ClientSDK {
|
|
|
122
122
|
* Get site boundary tiles
|
|
123
123
|
*
|
|
124
124
|
* @remarks
|
|
125
|
-
* Draw title boundaries on a map. Each tile comes back as a Mapbox Vector Tile (`application/x-protobuf`) carrying the real boundary polygons, not simplified shapes or clustered points, ready for MapLibre GL JS, Mapbox GL JS or any renderer that reads vector tiles. Tiles are served from zoom 12 upwards; below that the polygons are too small and too densely packed to draw usefully, and the request fails. A tile carries at most 10,000 features, and the same filter, query and area parameters as the search endpoint narrow what it holds. Responses carry `Cache-Control:
|
|
125
|
+
* Draw title boundaries on a map. Each tile comes back as a Mapbox Vector Tile (`application/x-protobuf`) carrying the real boundary polygons, not simplified shapes or clustered points, ready for MapLibre GL JS, Mapbox GL JS or any renderer that reads vector tiles. Tiles are served from zoom 12 upwards; below that the polygons are too small and too densely packed to draw usefully, and the request fails. A tile carries at most 10,000 features, and the same filter, query and area parameters as the search endpoint narrow what it holds. Responses carry `Cache-Control: private, max-age=30`: a tile's contents depend on the caller's access, so only the caller's own client may reuse it.
|
|
126
126
|
*/
|
|
127
127
|
async getTiles(
|
|
128
128
|
request: operations.GetSiteTilesRequest,
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
import { SiteProprietor } from "./siteproprietor.js";
|
|
6
|
-
/**
|
|
7
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
8
|
-
*/
|
|
9
|
-
export declare const OwnershipCategory: {
|
|
10
|
-
readonly Company: "company";
|
|
11
|
-
readonly Corporate: "corporate";
|
|
12
|
-
readonly Government: "government";
|
|
13
|
-
readonly Individual: "individual";
|
|
14
|
-
readonly Unknown: "unknown";
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
18
|
-
*/
|
|
19
|
-
export type OwnershipCategory = OpenEnum<typeof OwnershipCategory>;
|
|
20
|
-
/**
|
|
21
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
22
|
-
*/
|
|
23
|
-
export declare const SiteOwnershipSource: {
|
|
24
|
-
readonly Ccod: "ccod";
|
|
25
|
-
readonly Ocod: "ocod";
|
|
26
|
-
readonly TitleDeed: "title_deed";
|
|
27
|
-
readonly Manual: "manual";
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
31
|
-
*/
|
|
32
|
-
export type SiteOwnershipSource = OpenEnum<typeof SiteOwnershipSource>;
|
|
33
|
-
/**
|
|
34
|
-
* Registered ownership of the title. Null when no proprietor records are held for it.
|
|
35
|
-
*/
|
|
36
|
-
export type SiteOwnership = {
|
|
37
|
-
/**
|
|
38
|
-
* Company registration number of the primary proprietor, where it is a company.
|
|
39
|
-
*/
|
|
40
|
-
companyNumber?: string | null | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* When the primary proprietor was added to the title, as an ISO 8601 date.
|
|
43
|
-
*/
|
|
44
|
-
dateProprietorAdded?: string | null | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* True when the title is recorded as being held by more than one proprietor.
|
|
47
|
-
*/
|
|
48
|
-
isJointOwnership?: boolean | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
51
|
-
*/
|
|
52
|
-
ownershipCategory?: OwnershipCategory | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Name of the primary proprietor.
|
|
55
|
-
*/
|
|
56
|
-
primaryOwnerName?: string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Every proprietor recorded on the title, with the primary one first.
|
|
59
|
-
*/
|
|
60
|
-
proprietors?: Array<SiteProprietor> | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
63
|
-
*/
|
|
64
|
-
source?: SiteOwnershipSource | undefined;
|
|
65
|
-
};
|
|
66
|
-
/** @internal */
|
|
67
|
-
export declare const OwnershipCategory$inboundSchema: z.ZodType<OwnershipCategory, z.ZodTypeDef, unknown>;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const SiteOwnershipSource$inboundSchema: z.ZodType<SiteOwnershipSource, z.ZodTypeDef, unknown>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const SiteOwnership$inboundSchema: z.ZodType<SiteOwnership, z.ZodTypeDef, unknown>;
|
|
72
|
-
export declare function siteOwnershipFromJSON(jsonString: string): SafeParseResult<SiteOwnership, SDKValidationError>;
|
|
73
|
-
//# sourceMappingURL=siteownership.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteownership.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/siteownership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEnE;;GAEG;AACH,eAAO,MAAM,mBAAmB;;;;;CAKtB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,iBAAiB,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAClD;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CACqC,CAAC;AAE/C,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CACuC,CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
-
var ownKeys = function(o) {
|
|
23
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
-
var ar = [];
|
|
25
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
-
return ar;
|
|
27
|
-
};
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.SiteOwnership$inboundSchema = exports.SiteOwnershipSource$inboundSchema = exports.OwnershipCategory$inboundSchema = exports.SiteOwnershipSource = exports.OwnershipCategory = void 0;
|
|
40
|
-
exports.siteOwnershipFromJSON = siteOwnershipFromJSON;
|
|
41
|
-
const z = __importStar(require("zod/v3"));
|
|
42
|
-
const schemas_js_1 = require("../../../lib/schemas.js");
|
|
43
|
-
const openEnums = __importStar(require("../../types/enums.js"));
|
|
44
|
-
const siteproprietor_js_1 = require("./siteproprietor.js");
|
|
45
|
-
/**
|
|
46
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
47
|
-
*/
|
|
48
|
-
exports.OwnershipCategory = {
|
|
49
|
-
Company: "company",
|
|
50
|
-
Corporate: "corporate",
|
|
51
|
-
Government: "government",
|
|
52
|
-
Individual: "individual",
|
|
53
|
-
Unknown: "unknown",
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
57
|
-
*/
|
|
58
|
-
exports.SiteOwnershipSource = {
|
|
59
|
-
Ccod: "ccod",
|
|
60
|
-
Ocod: "ocod",
|
|
61
|
-
TitleDeed: "title_deed",
|
|
62
|
-
Manual: "manual",
|
|
63
|
-
};
|
|
64
|
-
/** @internal */
|
|
65
|
-
exports.OwnershipCategory$inboundSchema = openEnums.inboundSchema(exports.OwnershipCategory);
|
|
66
|
-
/** @internal */
|
|
67
|
-
exports.SiteOwnershipSource$inboundSchema = openEnums.inboundSchema(exports.SiteOwnershipSource);
|
|
68
|
-
/** @internal */
|
|
69
|
-
exports.SiteOwnership$inboundSchema = z.object({
|
|
70
|
-
companyNumber: z.nullable(z.string()).optional(),
|
|
71
|
-
dateProprietorAdded: z.nullable(z.string()).optional(),
|
|
72
|
-
isJointOwnership: z.boolean().optional(),
|
|
73
|
-
ownershipCategory: exports.OwnershipCategory$inboundSchema.optional(),
|
|
74
|
-
primaryOwnerName: z.string().optional(),
|
|
75
|
-
proprietors: z.array(siteproprietor_js_1.SiteProprietor$inboundSchema).optional(),
|
|
76
|
-
source: exports.SiteOwnershipSource$inboundSchema.optional(),
|
|
77
|
-
});
|
|
78
|
-
function siteOwnershipFromJSON(jsonString) {
|
|
79
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.SiteOwnership$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SiteOwnership' from JSON`);
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=siteownership.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteownership.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/siteownership.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyGH,sDAQC;AA/GD,0CAA4B;AAC5B,wDAAoD;AACpD,gEAAkD;AAIlD,2DAG6B;AAE7B;;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D,2CAA2C,CAC5C,CAAC;AACJ,CAAC"}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import * as z from "zod/v3";
|
|
2
|
-
import { OpenEnum } from "../../types/enums.js";
|
|
3
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
-
import { SiteProprietor } from "./siteproprietor.js";
|
|
6
|
-
/**
|
|
7
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
8
|
-
*/
|
|
9
|
-
export declare const OwnershipCategory: {
|
|
10
|
-
readonly Company: "company";
|
|
11
|
-
readonly Corporate: "corporate";
|
|
12
|
-
readonly Government: "government";
|
|
13
|
-
readonly Individual: "individual";
|
|
14
|
-
readonly Unknown: "unknown";
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
18
|
-
*/
|
|
19
|
-
export type OwnershipCategory = OpenEnum<typeof OwnershipCategory>;
|
|
20
|
-
/**
|
|
21
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
22
|
-
*/
|
|
23
|
-
export declare const SiteOwnershipSource: {
|
|
24
|
-
readonly Ccod: "ccod";
|
|
25
|
-
readonly Ocod: "ocod";
|
|
26
|
-
readonly TitleDeed: "title_deed";
|
|
27
|
-
readonly Manual: "manual";
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
31
|
-
*/
|
|
32
|
-
export type SiteOwnershipSource = OpenEnum<typeof SiteOwnershipSource>;
|
|
33
|
-
/**
|
|
34
|
-
* Registered ownership of the title. Null when no proprietor records are held for it.
|
|
35
|
-
*/
|
|
36
|
-
export type SiteOwnership = {
|
|
37
|
-
/**
|
|
38
|
-
* Company registration number of the primary proprietor, where it is a company.
|
|
39
|
-
*/
|
|
40
|
-
companyNumber?: string | null | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* When the primary proprietor was added to the title, as an ISO 8601 date.
|
|
43
|
-
*/
|
|
44
|
-
dateProprietorAdded?: string | null | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* True when the title is recorded as being held by more than one proprietor.
|
|
47
|
-
*/
|
|
48
|
-
isJointOwnership?: boolean | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
51
|
-
*/
|
|
52
|
-
ownershipCategory?: OwnershipCategory | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* Name of the primary proprietor.
|
|
55
|
-
*/
|
|
56
|
-
primaryOwnerName?: string | undefined;
|
|
57
|
-
/**
|
|
58
|
-
* Every proprietor recorded on the title, with the primary one first.
|
|
59
|
-
*/
|
|
60
|
-
proprietors?: Array<SiteProprietor> | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
63
|
-
*/
|
|
64
|
-
source?: SiteOwnershipSource | undefined;
|
|
65
|
-
};
|
|
66
|
-
/** @internal */
|
|
67
|
-
export declare const OwnershipCategory$inboundSchema: z.ZodType<OwnershipCategory, z.ZodTypeDef, unknown>;
|
|
68
|
-
/** @internal */
|
|
69
|
-
export declare const SiteOwnershipSource$inboundSchema: z.ZodType<SiteOwnershipSource, z.ZodTypeDef, unknown>;
|
|
70
|
-
/** @internal */
|
|
71
|
-
export declare const SiteOwnership$inboundSchema: z.ZodType<SiteOwnership, z.ZodTypeDef, unknown>;
|
|
72
|
-
export declare function siteOwnershipFromJSON(jsonString: string): SafeParseResult<SiteOwnership, SDKValidationError>;
|
|
73
|
-
//# sourceMappingURL=siteownership.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteownership.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/siteownership.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AACh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CAAC;AAEjD,gBAAgB;AAChB,eAAO,MAAM,2BAA2B,EAAE,CAAC,CAAC,OAAO,CACjD,aAAa,EACb,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,aAAa,EAAE,kBAAkB,CAAC,CAMpD"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
import * as z from "zod/v3";
|
|
5
|
-
import { safeParse } from "../../../lib/schemas.js";
|
|
6
|
-
import * as openEnums from "../../types/enums.js";
|
|
7
|
-
import { SiteProprietor$inboundSchema, } from "./siteproprietor.js";
|
|
8
|
-
/**
|
|
9
|
-
* Broad category the primary proprietor falls into, worked out from its entity type.
|
|
10
|
-
*/
|
|
11
|
-
export const OwnershipCategory = {
|
|
12
|
-
Company: "company",
|
|
13
|
-
Corporate: "corporate",
|
|
14
|
-
Government: "government",
|
|
15
|
-
Individual: "individual",
|
|
16
|
-
Unknown: "unknown",
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Which HM Land Registry record the ownership was taken from.
|
|
20
|
-
*/
|
|
21
|
-
export const SiteOwnershipSource = {
|
|
22
|
-
Ccod: "ccod",
|
|
23
|
-
Ocod: "ocod",
|
|
24
|
-
TitleDeed: "title_deed",
|
|
25
|
-
Manual: "manual",
|
|
26
|
-
};
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const OwnershipCategory$inboundSchema = openEnums.inboundSchema(OwnershipCategory);
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const SiteOwnershipSource$inboundSchema = openEnums.inboundSchema(SiteOwnershipSource);
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const SiteOwnership$inboundSchema = z.object({
|
|
33
|
-
companyNumber: z.nullable(z.string()).optional(),
|
|
34
|
-
dateProprietorAdded: z.nullable(z.string()).optional(),
|
|
35
|
-
isJointOwnership: z.boolean().optional(),
|
|
36
|
-
ownershipCategory: OwnershipCategory$inboundSchema.optional(),
|
|
37
|
-
primaryOwnerName: z.string().optional(),
|
|
38
|
-
proprietors: z.array(SiteProprietor$inboundSchema).optional(),
|
|
39
|
-
source: SiteOwnershipSource$inboundSchema.optional(),
|
|
40
|
-
});
|
|
41
|
-
export function siteOwnershipFromJSON(jsonString) {
|
|
42
|
-
return safeParse(jsonString, (x) => SiteOwnership$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'SiteOwnership' from JSON`);
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=siteownership.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"siteownership.js","sourceRoot":"","sources":["../../../../../src/sdk/models/shared/siteownership.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAIlD,OAAO,EAEL,4BAA4B,GAC7B,MAAM,qBAAqB,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IAClB,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,YAAY;IACxB,UAAU,EAAE,YAAY;IACxB,OAAO,EAAE,SAAS;CACV,CAAC;AAMX;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,YAAY;IACvB,MAAM,EAAE,QAAQ;CACR,CAAC;AAwCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAIxC,SAAS,CAAC,aAAa,CAAC,iBAAiB,CAAC,CAAC;AAE/C,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI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