@hello-bill/node 2.1.1-beta.6 → 2.1.1-beta.7

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +21 -24
  2. package/dist/express/index.d.cts +2 -2
  3. package/dist/express/index.d.ts +2 -2
  4. package/dist/express/index.js +1 -20
  5. package/dist/express/index.js.map +1 -1
  6. package/dist/express/index.mjs +1 -20
  7. package/dist/express/index.mjs.map +1 -1
  8. package/dist/hono/index.d.cts +2 -2
  9. package/dist/hono/index.d.ts +2 -2
  10. package/dist/hono/index.js +1 -20
  11. package/dist/hono/index.js.map +1 -1
  12. package/dist/hono/index.mjs +1 -20
  13. package/dist/hono/index.mjs.map +1 -1
  14. package/dist/{index-BAETgMms.d.ts → index-D5WlUYVZ.d.cts} +1 -7
  15. package/dist/{index-9PkSdjVq.d.cts → index-jK9cEnEY.d.ts} +1 -7
  16. package/dist/index.d.cts +4 -4
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +1 -17
  19. package/dist/index.js.map +1 -1
  20. package/dist/index.mjs +1 -17
  21. package/dist/index.mjs.map +1 -1
  22. package/dist/koa/index.d.cts +2 -2
  23. package/dist/koa/index.d.ts +2 -2
  24. package/dist/koa/index.js +1 -20
  25. package/dist/koa/index.js.map +1 -1
  26. package/dist/koa/index.mjs +1 -20
  27. package/dist/koa/index.mjs.map +1 -1
  28. package/dist/next/index.d.cts +2 -2
  29. package/dist/next/index.d.ts +2 -2
  30. package/dist/next/index.js +1 -23
  31. package/dist/next/index.js.map +1 -1
  32. package/dist/next/index.mjs +1 -23
  33. package/dist/next/index.mjs.map +1 -1
  34. package/dist/types/index.d.cts +2 -2
  35. package/dist/types/index.d.ts +2 -2
  36. package/dist/webhook/index.d.cts +2 -2
  37. package/dist/webhook/index.d.ts +2 -2
  38. package/dist/{webhooks-Cv4e8oXp.d.cts → webhooks-DePW-Bjp.d.cts} +16 -1
  39. package/dist/{webhooks-Cv4e8oXp.d.ts → webhooks-DePW-Bjp.d.ts} +16 -1
  40. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
- import { V as IsoDateTime, R as RequestId } from '../webhooks-Cv4e8oXp.cjs';
2
- export { A as Address, i as AddressObject, j as AddressesObject, k as ApiVersion, l as AppDeeplinks, m as BankDetailsCollected, n as BankDetailsConsent, o as BankDetailsObject, B as BankDetailsRequest, h as BankDetailsResponse, p as BankDetailsStatus, q as BillType, r as BreakdownCoverProduct, s as BroadbandProduct, t as BuildingStyle, u as BuildingType, v as CacheStatus, w as ClientMode, x as Consent, y as ContextEntry, z as CouncilTaxProduct, C as CreateCustomerInput, D as Customer, e as CustomerCreateResponse, f as CustomerId, g as CustomerStatusResponse, E as CustomerType, F as DataCompleteness, G as DiscoveryStatus, H as Email, I as EnergyProduct, J as Environment, K as EpcRating, M as FinalRead, N as FuelType, O as HeatingType, Q as HomeInsuranceProduct, T as IdempotencyKey, U as IsoDate, W as LoASignature, X as LoaId, L as LoaListResponse, Y as LoaRecord, Z as LocationRole, _ as MaskedSortCode, $ as Meters, a0 as MobileProduct, a1 as MoveIn, a2 as MoveObject, a3 as MoveOut, a4 as MoveOutNotificationFailed, a5 as MoveOutNotificationSent, a6 as MoveOutNotifyFlags, a7 as MoveOutReason, a8 as MoveOutStatus, a9 as NearbyPoi, aa as OccupantObject, ab as OccupantType, ac as OnboardingInfo, ad as OverallStatus, ae as Paginated, af as Person, ag as PhoneNumber, ah as Postcode, ai as Product, aj as ProductBase, ak as ProductCategory, al as ProductConfidence, am as ProductId, an as ProductSetup, P as ProductsQuery, c as ProductsResponse, ao as PropertyDetailObject, d as PropertyDetailResponse, ap as PropertyLocation, aq as PropertyObject, ar as PropertyType, as as PropertyTypeCode, at as PropertyTypeSubcode, au as ProvidedFieldPath, av as SESSION_IDEMPOTENCY_TTL_MS, aw as SavingsSummaryResponse, ax as SelectedProduct, ay as SessionAccountCreated, az as SessionAppDeferred, aA as SessionAppInstalled, aB as SessionDetailsConfirmed, aC as SessionEmbedOpened, b as SessionGetResponse, aD as SessionLoaSigned, S as SessionPayload, aE as SessionProductsSelected, a as SessionResponse, aF as SetupStatus, aG as SetupStatusChanged, aH as SignatureImage, aI as StoredBankDetails, aJ as SubscriptionChanged, aK as SubscriptionStatus, aL as TvLicenceProduct, aM as Url, aN as WaterProduct, aO as WebhookEvent, aP as WebhookEventBase, aQ as WebhookEventId, aR as WebhookEventType } from '../webhooks-Cv4e8oXp.cjs';
1
+ import { X as IsoDateTime, R as RequestId } from '../webhooks-DePW-Bjp.cjs';
2
+ export { A as Address, i as AddressObject, j as AddressesObject, k as ApiVersion, l as AppDeeplinks, m as BankDetailsCollected, n as BankDetailsConsent, o as BankDetailsObject, B as BankDetailsRequest, h as BankDetailsResponse, p as BankDetailsStatus, q as BillType, r as BreakdownCoverProduct, s as BroadbandProduct, t as BuildingStyle, u as BuildingType, v as CacheStatus, w as ClientMode, x as Consent, y as ContextEntry, z as CouncilTaxProduct, C as CreateCustomerInput, D as CreditCheckAddress, E as CreditCheckObject, F as Customer, e as CustomerCreateResponse, f as CustomerId, g as CustomerStatusResponse, G as CustomerType, H as DataCompleteness, I as DiscoveryStatus, J as Email, K as EnergyProduct, M as Environment, N as EpcRating, O as FinalRead, Q as FuelType, T as HeatingType, U as HomeInsuranceProduct, V as IdempotencyKey, W as IsoDate, Y as LoASignature, Z as LoaId, L as LoaListResponse, _ as LoaRecord, $ as LocationRole, a0 as MaskedSortCode, a1 as Meters, a2 as MobileProduct, a3 as MoveIn, a4 as MoveObject, a5 as MoveOut, a6 as MoveOutNotificationFailed, a7 as MoveOutNotificationSent, a8 as MoveOutNotifyFlags, a9 as MoveOutReason, aa as MoveOutStatus, ab as NearbyPoi, ac as OccupantObject, ad as OccupantType, ae as OnboardingInfo, af as OverallStatus, ag as Paginated, ah as Person, ai as PhoneNumber, aj as Postcode, ak as Product, al as ProductBase, am as ProductCategory, an as ProductConfidence, ao as ProductId, ap as ProductSetup, P as ProductsQuery, c as ProductsResponse, aq as PropertyDetailObject, d as PropertyDetailResponse, ar as PropertyLocation, as as PropertyObject, at as PropertyType, au as PropertyTypeCode, av as PropertyTypeSubcode, aw as ProvidedFieldPath, ax as SESSION_IDEMPOTENCY_TTL_MS, ay as SavingsSummaryResponse, az as SelectedProduct, aA as SessionAccountCreated, aB as SessionAppDeferred, aC as SessionAppInstalled, aD as SessionDetailsConfirmed, aE as SessionEmbedOpened, b as SessionGetResponse, aF as SessionLoaSigned, S as SessionPayload, aG as SessionProductsSelected, a as SessionResponse, aH as SetupStatus, aI as SetupStatusChanged, aJ as SignatureImage, aK as StoredBankDetails, aL as SubscriptionChanged, aM as SubscriptionStatus, aN as Title, aO as TvLicenceProduct, aP as Url, aQ as WaterProduct, aR as WebhookEvent, aS as WebhookEventBase, aT as WebhookEventId, aU as WebhookEventType } from '../webhooks-DePW-Bjp.cjs';
3
3
 
4
4
  /**
5
5
  * AnyVan move slot types.
@@ -1,5 +1,5 @@
1
- import { V as IsoDateTime, R as RequestId } from '../webhooks-Cv4e8oXp.js';
2
- export { A as Address, i as AddressObject, j as AddressesObject, k as ApiVersion, l as AppDeeplinks, m as BankDetailsCollected, n as BankDetailsConsent, o as BankDetailsObject, B as BankDetailsRequest, h as BankDetailsResponse, p as BankDetailsStatus, q as BillType, r as BreakdownCoverProduct, s as BroadbandProduct, t as BuildingStyle, u as BuildingType, v as CacheStatus, w as ClientMode, x as Consent, y as ContextEntry, z as CouncilTaxProduct, C as CreateCustomerInput, D as Customer, e as CustomerCreateResponse, f as CustomerId, g as CustomerStatusResponse, E as CustomerType, F as DataCompleteness, G as DiscoveryStatus, H as Email, I as EnergyProduct, J as Environment, K as EpcRating, M as FinalRead, N as FuelType, O as HeatingType, Q as HomeInsuranceProduct, T as IdempotencyKey, U as IsoDate, W as LoASignature, X as LoaId, L as LoaListResponse, Y as LoaRecord, Z as LocationRole, _ as MaskedSortCode, $ as Meters, a0 as MobileProduct, a1 as MoveIn, a2 as MoveObject, a3 as MoveOut, a4 as MoveOutNotificationFailed, a5 as MoveOutNotificationSent, a6 as MoveOutNotifyFlags, a7 as MoveOutReason, a8 as MoveOutStatus, a9 as NearbyPoi, aa as OccupantObject, ab as OccupantType, ac as OnboardingInfo, ad as OverallStatus, ae as Paginated, af as Person, ag as PhoneNumber, ah as Postcode, ai as Product, aj as ProductBase, ak as ProductCategory, al as ProductConfidence, am as ProductId, an as ProductSetup, P as ProductsQuery, c as ProductsResponse, ao as PropertyDetailObject, d as PropertyDetailResponse, ap as PropertyLocation, aq as PropertyObject, ar as PropertyType, as as PropertyTypeCode, at as PropertyTypeSubcode, au as ProvidedFieldPath, av as SESSION_IDEMPOTENCY_TTL_MS, aw as SavingsSummaryResponse, ax as SelectedProduct, ay as SessionAccountCreated, az as SessionAppDeferred, aA as SessionAppInstalled, aB as SessionDetailsConfirmed, aC as SessionEmbedOpened, b as SessionGetResponse, aD as SessionLoaSigned, S as SessionPayload, aE as SessionProductsSelected, a as SessionResponse, aF as SetupStatus, aG as SetupStatusChanged, aH as SignatureImage, aI as StoredBankDetails, aJ as SubscriptionChanged, aK as SubscriptionStatus, aL as TvLicenceProduct, aM as Url, aN as WaterProduct, aO as WebhookEvent, aP as WebhookEventBase, aQ as WebhookEventId, aR as WebhookEventType } from '../webhooks-Cv4e8oXp.js';
1
+ import { X as IsoDateTime, R as RequestId } from '../webhooks-DePW-Bjp.js';
2
+ export { A as Address, i as AddressObject, j as AddressesObject, k as ApiVersion, l as AppDeeplinks, m as BankDetailsCollected, n as BankDetailsConsent, o as BankDetailsObject, B as BankDetailsRequest, h as BankDetailsResponse, p as BankDetailsStatus, q as BillType, r as BreakdownCoverProduct, s as BroadbandProduct, t as BuildingStyle, u as BuildingType, v as CacheStatus, w as ClientMode, x as Consent, y as ContextEntry, z as CouncilTaxProduct, C as CreateCustomerInput, D as CreditCheckAddress, E as CreditCheckObject, F as Customer, e as CustomerCreateResponse, f as CustomerId, g as CustomerStatusResponse, G as CustomerType, H as DataCompleteness, I as DiscoveryStatus, J as Email, K as EnergyProduct, M as Environment, N as EpcRating, O as FinalRead, Q as FuelType, T as HeatingType, U as HomeInsuranceProduct, V as IdempotencyKey, W as IsoDate, Y as LoASignature, Z as LoaId, L as LoaListResponse, _ as LoaRecord, $ as LocationRole, a0 as MaskedSortCode, a1 as Meters, a2 as MobileProduct, a3 as MoveIn, a4 as MoveObject, a5 as MoveOut, a6 as MoveOutNotificationFailed, a7 as MoveOutNotificationSent, a8 as MoveOutNotifyFlags, a9 as MoveOutReason, aa as MoveOutStatus, ab as NearbyPoi, ac as OccupantObject, ad as OccupantType, ae as OnboardingInfo, af as OverallStatus, ag as Paginated, ah as Person, ai as PhoneNumber, aj as Postcode, ak as Product, al as ProductBase, am as ProductCategory, an as ProductConfidence, ao as ProductId, ap as ProductSetup, P as ProductsQuery, c as ProductsResponse, aq as PropertyDetailObject, d as PropertyDetailResponse, ar as PropertyLocation, as as PropertyObject, at as PropertyType, au as PropertyTypeCode, av as PropertyTypeSubcode, aw as ProvidedFieldPath, ax as SESSION_IDEMPOTENCY_TTL_MS, ay as SavingsSummaryResponse, az as SelectedProduct, aA as SessionAccountCreated, aB as SessionAppDeferred, aC as SessionAppInstalled, aD as SessionDetailsConfirmed, aE as SessionEmbedOpened, b as SessionGetResponse, aF as SessionLoaSigned, S as SessionPayload, aG as SessionProductsSelected, a as SessionResponse, aH as SetupStatus, aI as SetupStatusChanged, aJ as SignatureImage, aK as StoredBankDetails, aL as SubscriptionChanged, aM as SubscriptionStatus, aN as Title, aO as TvLicenceProduct, aP as Url, aQ as WaterProduct, aR as WebhookEvent, aS as WebhookEventBase, aT as WebhookEventId, aU as WebhookEventType } from '../webhooks-DePW-Bjp.js';
3
3
 
4
4
  /**
5
5
  * AnyVan move slot types.
@@ -1,2 +1,2 @@
1
- export { c as InMemoryWebhookDedupeStore, U as UnknownWebhookEventError, V as VerifyWebhookOptions, W as WebhookDedupeStore, f as WebhookHandlerContext, g as WebhookHandlerOptions, h as WebhookHandlers, i as WebhookVerificationError, k as createWebhookHandler, v as verifyWebhook, l as verifyWebhookSignature } from '../index-9PkSdjVq.cjs';
2
- import '../webhooks-Cv4e8oXp.cjs';
1
+ export { c as InMemoryWebhookDedupeStore, U as UnknownWebhookEventError, V as VerifyWebhookOptions, W as WebhookDedupeStore, f as WebhookHandlerContext, g as WebhookHandlerOptions, h as WebhookHandlers, i as WebhookVerificationError, k as createWebhookHandler, v as verifyWebhook, l as verifyWebhookSignature } from '../index-D5WlUYVZ.cjs';
2
+ import '../webhooks-DePW-Bjp.cjs';
@@ -1,2 +1,2 @@
1
- export { c as InMemoryWebhookDedupeStore, U as UnknownWebhookEventError, V as VerifyWebhookOptions, W as WebhookDedupeStore, f as WebhookHandlerContext, g as WebhookHandlerOptions, h as WebhookHandlers, i as WebhookVerificationError, k as createWebhookHandler, v as verifyWebhook, l as verifyWebhookSignature } from '../index-BAETgMms.js';
2
- import '../webhooks-Cv4e8oXp.js';
1
+ export { c as InMemoryWebhookDedupeStore, U as UnknownWebhookEventError, V as VerifyWebhookOptions, W as WebhookDedupeStore, f as WebhookHandlerContext, g as WebhookHandlerOptions, h as WebhookHandlers, i as WebhookVerificationError, k as createWebhookHandler, v as verifyWebhook, l as verifyWebhookSignature } from '../index-jK9cEnEY.js';
2
+ import '../webhooks-DePW-Bjp.js';
@@ -66,12 +66,16 @@ interface PropertyObject extends AddressObject {
66
66
  heating_type?: HeatingType;
67
67
  }
68
68
  type CustomerType = 'owner_occupier' | 'tenant' | 'licensee' | 'lodger' | 'management_company' | 'other';
69
+ type Title = 'mr' | 'mrs' | 'miss' | 'ms' | 'mx' | 'dr' | 'other';
69
70
  type OccupantType = 'owner' | 'tenant' | 'licensee' | 'lodger' | 'guarantor' | 'other';
70
71
  interface Customer {
71
72
  type: CustomerType;
73
+ title: Title;
72
74
  email: Email;
73
75
  first_name?: string;
74
76
  last_name?: string;
77
+ other_title?: string;
78
+ full_legal_name?: string;
75
79
  phone?: PhoneNumber;
76
80
  /** YYYY-MM-DD. Required at POST /customers. Never log. */
77
81
  date_of_birth?: IsoDate;
@@ -79,17 +83,28 @@ interface Customer {
79
83
  on_psr?: boolean;
80
84
  /** Optional B2B billing/contact address; server defaults to addresses.current. */
81
85
  address?: AddressObject;
86
+ credit_check?: CreditCheckObject;
82
87
  }
83
88
  /** @deprecated Use Customer. */
84
89
  type Person = Customer;
85
90
  interface OccupantObject {
86
91
  type: OccupantType;
92
+ title?: Title;
87
93
  first_name?: string;
88
94
  last_name?: string;
95
+ other_title?: string;
96
+ full_legal_name?: string;
89
97
  email?: Email;
90
98
  phone?: PhoneNumber;
91
99
  is_primary_occupant?: boolean;
92
100
  }
101
+ interface CreditCheckAddress extends AddressObject {
102
+ move_in_date: IsoDate;
103
+ move_out_date?: IsoDate;
104
+ }
105
+ interface CreditCheckObject {
106
+ previous_addresses?: CreditCheckAddress[];
107
+ }
93
108
  type BillType = 'single' | 'split';
94
109
  /** Customer-supplied move-in details for the new property. */
95
110
  interface MoveIn {
@@ -749,4 +764,4 @@ type BankDetailsCollected = WebhookEventBase<'bank_details.collected', {
749
764
  type WebhookEvent = SessionEmbedOpened | SessionDetailsConfirmed | SessionProductsSelected | SessionLoaSigned | SessionAccountCreated | SessionAppInstalled | SessionAppDeferred | SubscriptionChanged | SetupStatusChanged | MoveOutNotificationSent | MoveOutNotificationFailed | BankDetailsCollected;
750
765
  type WebhookEventType = WebhookEvent['event'];
751
766
 
752
- export { type Meters as $, type Address as A, type BankDetailsRequest as B, type CreateCustomerInput as C, type Customer as D, type CustomerType as E, type DataCompleteness as F, type DiscoveryStatus as G, type Email as H, type EnergyProduct as I, type Environment as J, type EpcRating as K, type LoaListResponse as L, type FinalRead as M, type FuelType as N, type HeatingType as O, type ProductsQuery as P, type HomeInsuranceProduct as Q, type RequestId as R, type SessionPayload as S, type IdempotencyKey as T, type IsoDate as U, type IsoDateTime as V, type LoASignature as W, type LoaId as X, type LoaRecord as Y, type LocationRole as Z, type MaskedSortCode as _, type SessionResponse as a, type MobileProduct as a0, type MoveIn as a1, type MoveObject as a2, type MoveOut as a3, type MoveOutNotificationFailed as a4, type MoveOutNotificationSent as a5, type MoveOutNotifyFlags as a6, type MoveOutReason as a7, type MoveOutStatus as a8, type NearbyPoi as a9, type SessionAppInstalled as aA, type SessionDetailsConfirmed as aB, type SessionEmbedOpened as aC, type SessionLoaSigned as aD, type SessionProductsSelected as aE, type SetupStatus as aF, type SetupStatusChanged as aG, type SignatureImage as aH, type StoredBankDetails as aI, type SubscriptionChanged as aJ, type SubscriptionStatus as aK, type TvLicenceProduct as aL, type Url as aM, type WaterProduct as aN, type WebhookEvent as aO, type WebhookEventBase as aP, type WebhookEventId as aQ, type WebhookEventType as aR, type OccupantObject as aa, type OccupantType as ab, type OnboardingInfo as ac, type OverallStatus as ad, type Paginated as ae, type Person as af, type PhoneNumber as ag, type Postcode as ah, type Product as ai, type ProductBase as aj, type ProductCategory as ak, type ProductConfidence as al, type ProductId as am, type ProductSetup as an, type PropertyDetailObject as ao, type PropertyLocation as ap, type PropertyObject as aq, type PropertyType as ar, type PropertyTypeCode as as, type PropertyTypeSubcode as at, type ProvidedFieldPath as au, SESSION_IDEMPOTENCY_TTL_MS as av, type SavingsSummaryResponse as aw, type SelectedProduct as ax, type SessionAccountCreated as ay, type SessionAppDeferred as az, type SessionGetResponse as b, type ProductsResponse as c, type PropertyDetailResponse as d, type CustomerCreateResponse as e, type CustomerId as f, type CustomerStatusResponse as g, type BankDetailsResponse as h, type AddressObject as i, type AddressesObject as j, type ApiVersion as k, type AppDeeplinks as l, type BankDetailsCollected as m, type BankDetailsConsent as n, type BankDetailsObject as o, type BankDetailsStatus as p, type BillType as q, type BreakdownCoverProduct as r, type BroadbandProduct as s, type BuildingStyle as t, type BuildingType as u, type CacheStatus as v, type ClientMode as w, type Consent as x, type ContextEntry as y, type CouncilTaxProduct as z };
767
+ export { type LocationRole as $, type Address as A, type BankDetailsRequest as B, type CreateCustomerInput as C, type CreditCheckAddress as D, type CreditCheckObject as E, type Customer as F, type CustomerType as G, type DataCompleteness as H, type DiscoveryStatus as I, type Email as J, type EnergyProduct as K, type LoaListResponse as L, type Environment as M, type EpcRating as N, type FinalRead as O, type ProductsQuery as P, type FuelType as Q, type RequestId as R, type SessionPayload as S, type HeatingType as T, type HomeInsuranceProduct as U, type IdempotencyKey as V, type IsoDate as W, type IsoDateTime as X, type LoASignature as Y, type LoaId as Z, type LoaRecord as _, type SessionResponse as a, type MaskedSortCode as a0, type Meters as a1, type MobileProduct as a2, type MoveIn as a3, type MoveObject as a4, type MoveOut as a5, type MoveOutNotificationFailed as a6, type MoveOutNotificationSent as a7, type MoveOutNotifyFlags as a8, type MoveOutReason as a9, type SessionAccountCreated as aA, type SessionAppDeferred as aB, type SessionAppInstalled as aC, type SessionDetailsConfirmed as aD, type SessionEmbedOpened as aE, type SessionLoaSigned as aF, type SessionProductsSelected as aG, type SetupStatus as aH, type SetupStatusChanged as aI, type SignatureImage as aJ, type StoredBankDetails as aK, type SubscriptionChanged as aL, type SubscriptionStatus as aM, type Title as aN, type TvLicenceProduct as aO, type Url as aP, type WaterProduct as aQ, type WebhookEvent as aR, type WebhookEventBase as aS, type WebhookEventId as aT, type WebhookEventType as aU, type MoveOutStatus as aa, type NearbyPoi as ab, type OccupantObject as ac, type OccupantType as ad, type OnboardingInfo as ae, type OverallStatus as af, type Paginated as ag, type Person as ah, type PhoneNumber as ai, type Postcode as aj, type Product as ak, type ProductBase as al, type ProductCategory as am, type ProductConfidence as an, type ProductId as ao, type ProductSetup as ap, type PropertyDetailObject as aq, type PropertyLocation as ar, type PropertyObject as as, type PropertyType as at, type PropertyTypeCode as au, type PropertyTypeSubcode as av, type ProvidedFieldPath as aw, SESSION_IDEMPOTENCY_TTL_MS as ax, type SavingsSummaryResponse as ay, type SelectedProduct as az, type SessionGetResponse as b, type ProductsResponse as c, type PropertyDetailResponse as d, type CustomerCreateResponse as e, type CustomerId as f, type CustomerStatusResponse as g, type BankDetailsResponse as h, type AddressObject as i, type AddressesObject as j, type ApiVersion as k, type AppDeeplinks as l, type BankDetailsCollected as m, type BankDetailsConsent as n, type BankDetailsObject as o, type BankDetailsStatus as p, type BillType as q, type BreakdownCoverProduct as r, type BroadbandProduct as s, type BuildingStyle as t, type BuildingType as u, type CacheStatus as v, type ClientMode as w, type Consent as x, type ContextEntry as y, type CouncilTaxProduct as z };
@@ -66,12 +66,16 @@ interface PropertyObject extends AddressObject {
66
66
  heating_type?: HeatingType;
67
67
  }
68
68
  type CustomerType = 'owner_occupier' | 'tenant' | 'licensee' | 'lodger' | 'management_company' | 'other';
69
+ type Title = 'mr' | 'mrs' | 'miss' | 'ms' | 'mx' | 'dr' | 'other';
69
70
  type OccupantType = 'owner' | 'tenant' | 'licensee' | 'lodger' | 'guarantor' | 'other';
70
71
  interface Customer {
71
72
  type: CustomerType;
73
+ title: Title;
72
74
  email: Email;
73
75
  first_name?: string;
74
76
  last_name?: string;
77
+ other_title?: string;
78
+ full_legal_name?: string;
75
79
  phone?: PhoneNumber;
76
80
  /** YYYY-MM-DD. Required at POST /customers. Never log. */
77
81
  date_of_birth?: IsoDate;
@@ -79,17 +83,28 @@ interface Customer {
79
83
  on_psr?: boolean;
80
84
  /** Optional B2B billing/contact address; server defaults to addresses.current. */
81
85
  address?: AddressObject;
86
+ credit_check?: CreditCheckObject;
82
87
  }
83
88
  /** @deprecated Use Customer. */
84
89
  type Person = Customer;
85
90
  interface OccupantObject {
86
91
  type: OccupantType;
92
+ title?: Title;
87
93
  first_name?: string;
88
94
  last_name?: string;
95
+ other_title?: string;
96
+ full_legal_name?: string;
89
97
  email?: Email;
90
98
  phone?: PhoneNumber;
91
99
  is_primary_occupant?: boolean;
92
100
  }
101
+ interface CreditCheckAddress extends AddressObject {
102
+ move_in_date: IsoDate;
103
+ move_out_date?: IsoDate;
104
+ }
105
+ interface CreditCheckObject {
106
+ previous_addresses?: CreditCheckAddress[];
107
+ }
93
108
  type BillType = 'single' | 'split';
94
109
  /** Customer-supplied move-in details for the new property. */
95
110
  interface MoveIn {
@@ -749,4 +764,4 @@ type BankDetailsCollected = WebhookEventBase<'bank_details.collected', {
749
764
  type WebhookEvent = SessionEmbedOpened | SessionDetailsConfirmed | SessionProductsSelected | SessionLoaSigned | SessionAccountCreated | SessionAppInstalled | SessionAppDeferred | SubscriptionChanged | SetupStatusChanged | MoveOutNotificationSent | MoveOutNotificationFailed | BankDetailsCollected;
750
765
  type WebhookEventType = WebhookEvent['event'];
751
766
 
752
- export { type Meters as $, type Address as A, type BankDetailsRequest as B, type CreateCustomerInput as C, type Customer as D, type CustomerType as E, type DataCompleteness as F, type DiscoveryStatus as G, type Email as H, type EnergyProduct as I, type Environment as J, type EpcRating as K, type LoaListResponse as L, type FinalRead as M, type FuelType as N, type HeatingType as O, type ProductsQuery as P, type HomeInsuranceProduct as Q, type RequestId as R, type SessionPayload as S, type IdempotencyKey as T, type IsoDate as U, type IsoDateTime as V, type LoASignature as W, type LoaId as X, type LoaRecord as Y, type LocationRole as Z, type MaskedSortCode as _, type SessionResponse as a, type MobileProduct as a0, type MoveIn as a1, type MoveObject as a2, type MoveOut as a3, type MoveOutNotificationFailed as a4, type MoveOutNotificationSent as a5, type MoveOutNotifyFlags as a6, type MoveOutReason as a7, type MoveOutStatus as a8, type NearbyPoi as a9, type SessionAppInstalled as aA, type SessionDetailsConfirmed as aB, type SessionEmbedOpened as aC, type SessionLoaSigned as aD, type SessionProductsSelected as aE, type SetupStatus as aF, type SetupStatusChanged as aG, type SignatureImage as aH, type StoredBankDetails as aI, type SubscriptionChanged as aJ, type SubscriptionStatus as aK, type TvLicenceProduct as aL, type Url as aM, type WaterProduct as aN, type WebhookEvent as aO, type WebhookEventBase as aP, type WebhookEventId as aQ, type WebhookEventType as aR, type OccupantObject as aa, type OccupantType as ab, type OnboardingInfo as ac, type OverallStatus as ad, type Paginated as ae, type Person as af, type PhoneNumber as ag, type Postcode as ah, type Product as ai, type ProductBase as aj, type ProductCategory as ak, type ProductConfidence as al, type ProductId as am, type ProductSetup as an, type PropertyDetailObject as ao, type PropertyLocation as ap, type PropertyObject as aq, type PropertyType as ar, type PropertyTypeCode as as, type PropertyTypeSubcode as at, type ProvidedFieldPath as au, SESSION_IDEMPOTENCY_TTL_MS as av, type SavingsSummaryResponse as aw, type SelectedProduct as ax, type SessionAccountCreated as ay, type SessionAppDeferred as az, type SessionGetResponse as b, type ProductsResponse as c, type PropertyDetailResponse as d, type CustomerCreateResponse as e, type CustomerId as f, type CustomerStatusResponse as g, type BankDetailsResponse as h, type AddressObject as i, type AddressesObject as j, type ApiVersion as k, type AppDeeplinks as l, type BankDetailsCollected as m, type BankDetailsConsent as n, type BankDetailsObject as o, type BankDetailsStatus as p, type BillType as q, type BreakdownCoverProduct as r, type BroadbandProduct as s, type BuildingStyle as t, type BuildingType as u, type CacheStatus as v, type ClientMode as w, type Consent as x, type ContextEntry as y, type CouncilTaxProduct as z };
767
+ export { type LocationRole as $, type Address as A, type BankDetailsRequest as B, type CreateCustomerInput as C, type CreditCheckAddress as D, type CreditCheckObject as E, type Customer as F, type CustomerType as G, type DataCompleteness as H, type DiscoveryStatus as I, type Email as J, type EnergyProduct as K, type LoaListResponse as L, type Environment as M, type EpcRating as N, type FinalRead as O, type ProductsQuery as P, type FuelType as Q, type RequestId as R, type SessionPayload as S, type HeatingType as T, type HomeInsuranceProduct as U, type IdempotencyKey as V, type IsoDate as W, type IsoDateTime as X, type LoASignature as Y, type LoaId as Z, type LoaRecord as _, type SessionResponse as a, type MaskedSortCode as a0, type Meters as a1, type MobileProduct as a2, type MoveIn as a3, type MoveObject as a4, type MoveOut as a5, type MoveOutNotificationFailed as a6, type MoveOutNotificationSent as a7, type MoveOutNotifyFlags as a8, type MoveOutReason as a9, type SessionAccountCreated as aA, type SessionAppDeferred as aB, type SessionAppInstalled as aC, type SessionDetailsConfirmed as aD, type SessionEmbedOpened as aE, type SessionLoaSigned as aF, type SessionProductsSelected as aG, type SetupStatus as aH, type SetupStatusChanged as aI, type SignatureImage as aJ, type StoredBankDetails as aK, type SubscriptionChanged as aL, type SubscriptionStatus as aM, type Title as aN, type TvLicenceProduct as aO, type Url as aP, type WaterProduct as aQ, type WebhookEvent as aR, type WebhookEventBase as aS, type WebhookEventId as aT, type WebhookEventType as aU, type MoveOutStatus as aa, type NearbyPoi as ab, type OccupantObject as ac, type OccupantType as ad, type OnboardingInfo as ae, type OverallStatus as af, type Paginated as ag, type Person as ah, type PhoneNumber as ai, type Postcode as aj, type Product as ak, type ProductBase as al, type ProductCategory as am, type ProductConfidence as an, type ProductId as ao, type ProductSetup as ap, type PropertyDetailObject as aq, type PropertyLocation as ar, type PropertyObject as as, type PropertyType as at, type PropertyTypeCode as au, type PropertyTypeSubcode as av, type ProvidedFieldPath as aw, SESSION_IDEMPOTENCY_TTL_MS as ax, type SavingsSummaryResponse as ay, type SelectedProduct as az, type SessionGetResponse as b, type ProductsResponse as c, type PropertyDetailResponse as d, type CustomerCreateResponse as e, type CustomerId as f, type CustomerStatusResponse as g, type BankDetailsResponse as h, type AddressObject as i, type AddressesObject as j, type ApiVersion as k, type AppDeeplinks as l, type BankDetailsCollected as m, type BankDetailsConsent as n, type BankDetailsObject as o, type BankDetailsStatus as p, type BillType as q, type BreakdownCoverProduct as r, type BroadbandProduct as s, type BuildingStyle as t, type BuildingType as u, type CacheStatus as v, type ClientMode as w, type Consent as x, type ContextEntry as y, type CouncilTaxProduct as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hello-bill/node",
3
- "version": "2.1.1-beta.6",
3
+ "version": "2.1.1-beta.7",
4
4
  "description": "Server-side SDK for the HelloBill Partner API. Framework-agnostic core with an Express adapter; ships a webhook verifier and the spec-derived TypeScript types.",
5
5
  "license": "MIT",
6
6
  "type": "module",