@autobusal/providers 1.37.2 → 1.37.4
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 +12 -0
- package/package.json +1 -1
- package/types/articles.ts +7 -2
- package/types/settings.ts +18 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.37.4
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
|
|
7
|
+
- **`CategoryData.name` dropped its dead `name_en`/`name_sq` fields** - `articles_categories.name` is JSON keyed by locale now (obtapi's categories_name_to_json migration); `CategoryData` is the resolved-string shape an article's own `category` and the admin browse list use, the admin Manage form works with the raw per-locale shape directly (see magus Admin/Categories/services.ts).
|
|
8
|
+
|
|
9
|
+
## 1.37.3
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`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.
|
|
14
|
+
|
|
3
15
|
## 1.37.2
|
|
4
16
|
|
|
5
17
|
### Added
|
package/package.json
CHANGED
package/types/articles.ts
CHANGED
|
@@ -15,11 +15,16 @@ export interface ArticleData {
|
|
|
15
15
|
created_at: string
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
/**
|
|
19
|
+
* A category resolved to one language - what an article's own `category`
|
|
20
|
+
* carries, and what the admin browse list shows. `name` is JSON keyed by
|
|
21
|
+
* locale in the database (see the categories_name_to_json migration) -
|
|
22
|
+
* the admin's own Manage form works with that raw shape directly instead
|
|
23
|
+
* of this resolved-string one, see Admin/Categories/services.ts.
|
|
24
|
+
*/
|
|
18
25
|
export interface CategoryData {
|
|
19
26
|
id: number
|
|
20
27
|
name: string
|
|
21
|
-
name_en?: string
|
|
22
|
-
name_sq?: string
|
|
23
28
|
}
|
|
24
29
|
|
|
25
30
|
export interface MoreData {
|
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
|