@autobusal/providers 1.37.6 → 1.37.8

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,21 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.37.8
4
+
5
+ ### Added
6
+
7
+ - **`SettingsData.map.tile_url`** - the basemap route maps draw on, from `/settings/get`. `null` until a commercial tile provider is configured server-side, which every client reads as "keep your built-in OpenStreetMap default". Served rather than built in because the mobile app shares this switch, and a compiled-in tile URL there could only be changed by shipping a store release.
8
+
9
+ ## 1.37.7
10
+
11
+ ### Added
12
+
13
+ - **`OrderData.owner_category`** - `'agency' | 'operator' | 'individual'`, who actually owns an order, collapsed to what a viewer outside the account needs to know: who to contact if it needs to change. See `Libraries\Orders\View::ownerCategory()` (obtapi).
14
+
15
+ ### Changed
16
+
17
+ - **`OrderData.comission_affiliate_display` is now optional.** obtapi's `View::get()` hides every `comission_*_display` field on a restricted (public lookup) response - see that method's own `$restricted` parameter for why.
18
+
3
19
  ## 1.37.6
4
20
 
5
21
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.37.6",
3
+ "version": "1.37.8",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/orders.ts CHANGED
@@ -42,7 +42,17 @@ export interface OrderData {
42
42
  note_cancel: string
43
43
  actions: string[]
44
44
  created_at: string
45
- comission_affiliate_display: string
45
+ /*
46
+ * Edited: Ferjolt Ozuni - Date: 2026-08-11
47
+ * Who owns this order, collapsed to what a viewer outside the account
48
+ * needs to know: who to contact if it needs to change. See
49
+ * Libraries\Orders\View::ownerCategory() (obtapi) for the mapping.
50
+ */
51
+ owner_category: 'agency' | 'operator' | 'individual'
52
+ // Edited: Ferjolt Ozuni - Date: 2026-08-11
53
+ // Optional now: hidden on a restricted response (the public order lookup
54
+ // and any other non-self-service view) - see View::get()'s $restricted.
55
+ comission_affiliate_display?: string
46
56
  name_display?: string
47
57
  occupied: string
48
58
  reference?: OrderData
package/types/settings.ts CHANGED
@@ -7,6 +7,16 @@ export interface SettingsData {
7
7
 
8
8
  url: string
9
9
 
10
+ // Edited: Claude (audit) - Date: 2026-08-17
11
+ // The basemap route maps draw on (common's Map/Tiles.tsx). null until a
12
+ // commercial tile provider is configured server-side, which every client
13
+ // reads as "keep your built-in OpenStreetMap default". Served rather than
14
+ // built in because the mobile app shares this one switch, and a compiled-in
15
+ // tile URL there could only be changed by shipping a store release.
16
+ map?: {
17
+ tile_url: string | null
18
+ }
19
+
10
20
  // Edited: Ferjolt Ozuni - Date: 2026-08-11
11
21
  // The label's ISO 4217 currency code, e.g. "EUR" - the same source
12
22
  // Facts already trusts for its own Offer schema. null on a label that