@adonis-agora/payments 1.0.0-rc.17 → 1.0.0-rc.19

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/dist/assets/spa/assets/{index-BbiCjLRv.js → index-CRr2HNXO.js} +3 -2
  3. package/dist/assets/spa/assets/index-CRr2HNXO.js.map +1 -0
  4. package/dist/assets/spa/index.html +1 -1
  5. package/dist/configure.d.ts.map +1 -1
  6. package/dist/configure.js +2 -0
  7. package/dist/configure.js.map +1 -1
  8. package/dist/src/billing/billing_store.d.ts +30 -6
  9. package/dist/src/billing/billing_store.d.ts.map +1 -1
  10. package/dist/src/billing/index.d.ts +1 -1
  11. package/dist/src/billing/index.d.ts.map +1 -1
  12. package/dist/src/billing/index.js.map +1 -1
  13. package/dist/src/billing/lucid_billing_store.d.ts.map +1 -1
  14. package/dist/src/billing/lucid_billing_store.js +45 -24
  15. package/dist/src/billing/lucid_billing_store.js.map +1 -1
  16. package/dist/src/billing/schema.d.ts +15 -0
  17. package/dist/src/billing/schema.d.ts.map +1 -1
  18. package/dist/src/billing/schema.js +47 -0
  19. package/dist/src/billing/schema.js.map +1 -1
  20. package/dist/src/dashboard/handlers.d.ts.map +1 -1
  21. package/dist/src/dashboard/handlers.js +52 -42
  22. package/dist/src/dashboard/handlers.js.map +1 -1
  23. package/dist/src/dashboard/list_filters.d.ts +37 -2
  24. package/dist/src/dashboard/list_filters.d.ts.map +1 -1
  25. package/dist/src/dashboard/list_filters.js +59 -1
  26. package/dist/src/dashboard/list_filters.js.map +1 -1
  27. package/dist/src/index.d.ts +2 -2
  28. package/dist/src/index.d.ts.map +1 -1
  29. package/dist/src/index.js +1 -1
  30. package/dist/src/index.js.map +1 -1
  31. package/dist/src/testing/in_memory_billing_store.d.ts.map +1 -1
  32. package/dist/src/testing/in_memory_billing_store.js +17 -8
  33. package/dist/src/testing/in_memory_billing_store.js.map +1 -1
  34. package/dist/stubs/config/payments.stub +8 -8
  35. package/dist/stubs/database/migrations/add_billing_list_indexes.stub +32 -0
  36. package/dist/stubs/database/migrations/create_billing_tables.stub +9 -9
  37. package/dist/stubs/make/billable/main.stub +3 -3
  38. package/dist/stubs/make/webhook_handler/main.stub +10 -10
  39. package/package.json +2 -2
  40. package/dist/assets/spa/assets/index-BbiCjLRv.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @adonis-agora/payments
2
2
 
3
+ ## 1.0.0-rc.19
4
+
5
+ ### Minor Changes
6
+
7
+ - [#263](https://github.com/DavideCarvalho/adonis-agora-payments/pull/263) [`1b64797`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/1b647976717980423b691f45eaf224d1a8b0350a) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - The console's lists page by cursor, so a deep page costs what the first one does and no page counts the whole table.
8
+
9
+ - `GET <api>/payments`, `/subscriptions`, `/customers`, `/webhook-events`, `/audit` and `/disputes` (the log) accept `first`/`after` and answer `{ data, meta: { nextCursor, prevCursor, hasNext, hasPrev } }`. They seek past `(created_at, id)` with no `COUNT(*)`. `page`/`size` keep the offset envelope and its `meta.total`. Subscriptions sends its two status counts (`past_due`, failing renewals) on the first page only. The Disputes work list (`dueWithin`) keeps `page`/`size`.
10
+ - `BillingStore` list queries take an optional `keyset: { after }`: newest first by `(createdAt, id)`, `size + 1` rows. Both built-in stores implement it. The offset order now breaks ties on `created_at` by `id` too, so rows written in the same instant no longer repeat or go missing across pages.
11
+ - The console pages with Previous/Next and keeps the walked cursors in the URL (`#/payments?after=…`), so back/forward and shared links still work. The lists no longer show a row total.
12
+ - New migration `add_billing_list_indexes` (published by `configure`), plus `createBillingListIndexes` / `dropBillingListIndexes`. It adds `(created_at, id)` on audit events, customers, disputes and subscriptions, and `(status, created_at)` on disputes, built `CONCURRENTLY` on Postgres. Opt-in: run it once on existing installs (see Production → Indexes).
13
+ - Fix: `node ace configure @adonis-agora/payments`, `make:billable` and `make:webhook-handler` failed to render their stubs: unescaped backticks in the comments broke the stub template. A spec now renders every stub through the real engine.
14
+
15
+ ## 1.0.0-rc.18
16
+
17
+ ### Patch Changes
18
+
19
+ - [#264](https://github.com/DavideCarvalho/adonis-agora-payments/pull/264) [`ab7a74c`](https://github.com/DavideCarvalho/adonis-agora-payments/commit/ab7a74cbf4660b6dd0978b56b24120f0da578baf) Thanks [@DavideCarvalho](https://github.com/DavideCarvalho)! - Ships the console with its filters in the URL (copy the link to share a filtered view). The console is bundled into this package at build time, so it needs its own release to reach apps.
20
+
3
21
  ## 1.0.0-rc.17
4
22
 
5
23
  ### Patch Changes