@autobusal/providers 1.37.6 → 1.37.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.37.7
4
+
5
+ ### Added
6
+
7
+ - **`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).
8
+
9
+ ### Changed
10
+
11
+ - **`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.
12
+
3
13
  ## 1.37.6
4
14
 
5
15
  ### 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.7",
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