@autobusal/admin-api-consumers 1.3.0 → 1.3.1

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.
@@ -111,7 +111,7 @@ const ReceivablesManage = ({ url, t }: Props): JSX.Element => {
111
111
  <tbody>
112
112
  { data?.data.map(order => (
113
113
  <tr key={ order.id }>
114
- <td>{ order.hash }</td>
114
+ <td>{ order.order_number }</td>
115
115
  <td>{ order.created_at }</td>
116
116
  <td>{ order.route?.name ?? '-' }</td>
117
117
  <td>{ order.date_travel ?? '-' }</td>
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "@autobusal/admin-api-consumers",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
- "main": "index.ts"
6
+ "main": "index.ts",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ }
7
10
  }
package/types.ts CHANGED
@@ -48,6 +48,7 @@ export interface ReceivableData {
48
48
  export interface ReceivableOrderData {
49
49
  id: number
50
50
  hash: string
51
+ order_number: string
51
52
  tickets: number
52
53
  date_travel: string
53
54
  amount: number
package/CHANGELOG.md DELETED
@@ -1,62 +0,0 @@
1
- # Changelog
2
-
3
- ## 1.3.0 (2026-08-29)
4
-
5
- - Editors offer Save & Close alongside Save & Stay, so correcting a record no longer bounces you back to its list every time (opt-in per page, editing only).
6
-
7
- ## 1.2.2 (2026-08-28)
8
-
9
- - Requests view (?type=requests): the P8 self-serve queue - agents awaiting a partner-API ruling, with Decline per row; approving stays the ordinary manage/save flow. Toggle button beside Receivables.
10
-
11
- ## 1.2.1
12
-
13
- ### Fixed
14
-
15
- - **The token panel updates without a reload** - toggle/revoke/regenerate invalidate the consumer they changed. The button also reads "Generate Token" while no token exists. (Audit ADM-04f.)
16
-
17
- ## 1.2.0
18
-
19
- ### Added
20
-
21
- - **Credit limit on the partner form, running balance on receivables.** A
22
- Mode 1 partner now sells against a running account (obtapi Payments\
23
- External\Charge): every sale debits the net they owe, cancellations
24
- credit it back, and recorded settlements raise it. `credit_limit` is the
25
- floor - 0 means prepaid (deposit before selling), a positive number means
26
- postpaid down to -that-much. The receivables table shows the live
27
- `balance` and `headroom` alongside the statement figures, deliberately
28
- from two books: when they disagree, something needs investigating.
29
-
30
- All notable changes to `@autobusal/admin-api-consumers` are documented here.
31
- This project adheres to [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
32
- and [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
33
-
34
- ## [1.1.0] - 2026-07-27
35
-
36
- ### Added
37
-
38
- - Package 3 of the external-routes plan: **receivables reports + settlements**.
39
- `Receivables.tsx` is a per-partner dashboard for a selectable period
40
- (orders/tickets/gross amount/commission/net/settled/outstanding, the
41
- last two accumulated all-time regardless of the period filter).
42
- `ReceivablesManage.tsx` is the per-partner drill-down (ticket-level order
43
- rows, doubling as the CSV/dispute document via a plain browser-download
44
- link to the backend export endpoint - no frontend CSV generation, same
45
- convention as `@autobusal/account-reports`), plus a settlements section
46
- to record/list/delete actual payments received. Backed by obtapi's
47
- `App\Http\Controllers\ApiConsumers\ReportsController`.
48
-
49
- ## [1.0.0] - 2026-07-27
50
-
51
- ### Added
52
-
53
- - Initial release. Admin GUI for third-party API Consumers (agent-type
54
- users authenticating with a Sanctum token against `/api/partners/*`),
55
- replacing the artisan-only `make:user_api` command (obtapi
56
- `App\Http\Controllers\ApiConsumers\AdminController`). Create with
57
- one-time token reveal, edit company/status/operators allowlist/external-
58
- providers allowlist/commission rates, enable-disable without touching
59
- the token, revoke, and regenerate (old token invalidated, new one
60
- revealed once). Deliberately relaxed validation vs the regular agents
61
- admin - no nipt/license/address/mobile/subscription required, since an
62
- API consumer has no storefront presence.