@autobusal/providers 1.16.0 → 1.18.0

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
@@ -7,6 +7,23 @@ adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
7
7
  > Note: 1.8.0 through 1.11.0 were published without changelog entries. The
8
8
  > gap is left as-is rather than reconstructed after the fact.
9
9
 
10
+ ## 1.18.0
11
+
12
+ `LabelSettings.reviews` — the per-brand review moderation setting
13
+ (`auto_publish`, `threshold`). Absent or false means every review waits for a
14
+ human, which is the default for every brand.
15
+
16
+ ## [1.17.0] - 2026-08-02
17
+
18
+ ### Changed
19
+
20
+ - **`FeatureData` gains `slug` and drops `name_sq`.** Amenity names are
21
+ resolved server-side from obtapi's `lang/{locale}/features.php` now, so
22
+ `name` already arrives in the request's language - for the SPA and the
23
+ partner API alike, from one resolution point. `slug` is the stable
24
+ machine-readable key: `id` is ours alone and `name` moves with the
25
+ language, so it is the only thing safe to map against.
26
+
10
27
  ## [1.16.0] - 2026-08-02
11
28
 
12
29
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.16.0",
3
+ "version": "1.18.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/routes.ts CHANGED
@@ -70,9 +70,21 @@ export interface TripData {
70
70
 
71
71
  export interface FeatureData {
72
72
  id: number
73
+
74
+ // Edited: Ferjolt Ozuni - Date: 2026-08-02
75
+ // Already in the request's language - resolved server-side from
76
+ // lang/{locale}/features.php, so the SPA and the partner API get the same
77
+ // answer without either translating anything itself.
73
78
  name: string
79
+
80
+ // The stable key the translation hangs off. Exposed because it is the only
81
+ // machine-readable identifier that does not change with the language -
82
+ // `id` is ours alone and `name` moves.
83
+ slug?: string
84
+
85
+ // Admin-facing label and the fallback shown until a slug is translated.
74
86
  name_en?: string
75
- name_sq?: string
87
+
76
88
  image_url: string
77
89
  image?: string[]
78
90
  }
package/types/settings.ts CHANGED
@@ -252,6 +252,14 @@ export interface LabelSettings {
252
252
  title?: string
253
253
  message?: string
254
254
  }
255
+
256
+ // Edited: Ferjolt Ozuni - Date: 2026-08-02
257
+ // Admin-managed review moderation. Absent or auto_publish=false means
258
+ // every review waits for a human, which is the default for every brand.
259
+ reviews?: {
260
+ auto_publish?: boolean
261
+ threshold?: number
262
+ }
255
263
  }
256
264
 
257
265
  // Edited: Ferjolt Ozuni - Date: 2026-07-18