@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.
- package/ReceivablesManage.tsx +1 -1
- package/package.json +5 -2
- package/types.ts +1 -0
- package/CHANGELOG.md +0 -62
package/ReceivablesManage.tsx
CHANGED
|
@@ -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.
|
|
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
package/types.ts
CHANGED
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.
|