@d19n/youfibre-odin-sdk 2.0.192 → 2.0.193
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.
|
@@ -112,19 +112,39 @@ export interface VMO2NetworkCapability {
|
|
|
112
112
|
deployment: VMO2DeploymentDetail[];
|
|
113
113
|
products: VMO2TechnicalProduct[];
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Premise record. CORRECTED to the verified wire (2026-06-08, CP staging stub):
|
|
117
|
+
* address fields are FLAT (not nested under `address`), and networks are keyed
|
|
118
|
+
* `networkTypeList` (not `networks`). Previously authored from the docs alone.
|
|
119
|
+
*/
|
|
115
120
|
export interface VMO2PremiseRecord {
|
|
116
121
|
premiseId: VMO2PremiseId;
|
|
117
122
|
uprn?: UPRN;
|
|
118
|
-
|
|
123
|
+
subBuildingName?: string;
|
|
124
|
+
buildingName?: string;
|
|
125
|
+
streetNumber?: string;
|
|
126
|
+
streetName?: string;
|
|
127
|
+
postCode: string;
|
|
128
|
+
locality?: string;
|
|
129
|
+
city?: string;
|
|
130
|
+
country: string;
|
|
119
131
|
activeServiceAtPremise: boolean;
|
|
120
|
-
|
|
132
|
+
networkTypeList: VMO2NetworkCapability[];
|
|
121
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* CORRECTED to the verified wire (2026-06-08): a match is returned as
|
|
136
|
+
* `premiseIdList[]` (an array even for one match), not a singular `premise`.
|
|
137
|
+
* OneAddressFound + NoAddressFound are live-verified; ManyAddressesFound's
|
|
138
|
+
* element shape is still unconfirmed (no multi-match sample yet).
|
|
139
|
+
*/
|
|
122
140
|
export declare type VMO2AddressLookupResult = {
|
|
123
141
|
status: 'OneAddressFound';
|
|
124
|
-
|
|
142
|
+
premiseIdList: VMO2PremiseRecord[];
|
|
125
143
|
} | {
|
|
126
144
|
status: 'ManyAddressesFound';
|
|
127
|
-
|
|
145
|
+
premiseIdList: Array<Partial<VMO2PremiseRecord> & {
|
|
146
|
+
premiseId: VMO2PremiseId;
|
|
147
|
+
}>;
|
|
128
148
|
} | {
|
|
129
149
|
status: 'TooManyAddressesFound';
|
|
130
150
|
} | {
|