@d19n/youfibre-odin-sdk 2.0.192-beta.1 → 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.
@@ -244,6 +244,7 @@ export declare enum OrderBillingTerms {
244
244
  * - `NETOMNIA_LEGACY` - Netomnia legacy
245
245
  * - `OPENREACH` - Openreach
246
246
  * - `PYOMNI` - PyOmni
247
+ * - `VMO2`
247
248
  */
248
249
  export declare enum OrderProvider {
249
250
  BRSK = "BRSK",
@@ -251,7 +252,8 @@ export declare enum OrderProvider {
251
252
  NETOMNIA = "NETOMNIA",
252
253
  NETOMNIA_LEGACY = "NETOMNIA_LEGACY",
253
254
  OPENREACH = "OPENREACH",
254
- PY_OMNI = "PYOMNI"
255
+ PY_OMNI = "PYOMNI",
256
+ VMO2 = "VMO2"
255
257
  }
256
258
  /**
257
259
  * Valid values for Order.ActivationStatus
@@ -223,6 +223,7 @@ var OrderBillingTerms;
223
223
  * - `NETOMNIA_LEGACY` - Netomnia legacy
224
224
  * - `OPENREACH` - Openreach
225
225
  * - `PYOMNI` - PyOmni
226
+ * - `VMO2`
226
227
  */
227
228
  var OrderProvider;
228
229
  (function (OrderProvider) {
@@ -232,6 +233,7 @@ var OrderProvider;
232
233
  OrderProvider["NETOMNIA_LEGACY"] = "NETOMNIA_LEGACY";
233
234
  OrderProvider["OPENREACH"] = "OPENREACH";
234
235
  OrderProvider["PY_OMNI"] = "PYOMNI";
236
+ OrderProvider["VMO2"] = "VMO2";
235
237
  })(OrderProvider = exports.OrderProvider || (exports.OrderProvider = {}));
236
238
  /**
237
239
  * Valid values for Order.ActivationStatus
@@ -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
- address: VMO2AddressFields;
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
- networks: VMO2NetworkCapability[];
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
- premise: VMO2PremiseRecord;
142
+ premiseIdList: VMO2PremiseRecord[];
125
143
  } | {
126
144
  status: 'ManyAddressesFound';
127
- premises: Array<Pick<VMO2PremiseRecord, 'premiseId' | 'uprn' | 'address'>>;
145
+ premiseIdList: Array<Partial<VMO2PremiseRecord> & {
146
+ premiseId: VMO2PremiseId;
147
+ }>;
128
148
  } | {
129
149
  status: 'TooManyAddressesFound';
130
150
  } | {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.192-beta.1",
3
+ "version": "2.0.193",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",