@autobusal/providers 1.37.2 → 1.37.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.37.3
4
+
5
+ ### Added
6
+
7
+ - **`SettingsData.currency`** - the label's ISO 4217 code, now exposed on the public `/api/settings/get` response. The same source `Facts` already trusted for its own `Offer` schema; every price elsewhere on the SPA is a pre-formatted display string with no machine-readable currency behind it, so this closes that gap for anywhere else that needs one.
8
+
3
9
  ## 1.37.2
4
10
 
5
11
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.37.2",
3
+ "version": "1.37.3",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -7,6 +7,14 @@ export interface SettingsData {
7
7
 
8
8
  url: string
9
9
 
10
+ // Edited: Ferjolt Ozuni - Date: 2026-08-11
11
+ // The label's ISO 4217 currency code, e.g. "EUR" - the same source
12
+ // Facts already trusts for its own Offer schema. null on a label that
13
+ // has none configured. Every OTHER price on the SPA is a pre-formatted
14
+ // display string with the symbol baked in - this is the only
15
+ // machine-readable currency the frontend has.
16
+ currency: string | null
17
+
10
18
  // Edited: Ferjolt Ozuni - Date: 2026-08-01
11
19
  // Present ONLY while the brand is under construction - obtapi omits it
12
20
  // entirely on a live site, so its presence is the switch itself and there
@@ -317,6 +325,16 @@ export interface LabelSettings {
317
325
  threshold?: number
318
326
  }
319
327
 
328
+ // Edited: Claude (BusMagus mobile app) - Date: 2026-08-11
329
+ // The mobile app's Home-screen promo banner (between the search form
330
+ // and Popular/Trending routes). `link` is genuinely optional - a banner
331
+ // with none is purely decorative on the client. The image itself is a
332
+ // fixed-filename upload (see Content/Banner.tsx), not stored here.
333
+ banner?: {
334
+ enabled?: boolean
335
+ link?: string
336
+ }
337
+
320
338
  // Edited: Ferjolt Ozuni - Date: 2026-08-08
321
339
  // The label's chosen theme preset, or null/absent to keep reading colors
322
340
  // straight out of settings.json exactly as before this existed - see