@saasicat/nest 1.0.0-rc.15 → 1.0.0-rc.16

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 (76) hide show
  1. package/README.md +15 -14
  2. package/dist/.build-stamp +1 -1
  3. package/dist/_entries.cjs +2914 -2421
  4. package/dist/admin/index.js +3 -4
  5. package/dist/billing/index.d.cts +20 -45
  6. package/dist/billing/index.d.ts +20 -45
  7. package/dist/billing/index.js +15 -13
  8. package/dist/catalog/index.js +5 -6
  9. package/dist/checkout-offer/index.d.cts +4 -3
  10. package/dist/checkout-offer/index.d.ts +4 -3
  11. package/dist/checkout-offer/index.js +7 -5
  12. package/dist/{checkout-offer.module-BOX9yAWq.d.cts → checkout-offer.module-DFhGy6JO.d.cts} +3 -1
  13. package/dist/{checkout-offer.module-B-DF2I_-.d.ts → checkout-offer.module-x7SP_dX4.d.ts} +3 -1
  14. package/dist/{checkout-offer.service-BZumQOmZ.d.ts → checkout-offer.service-848BUumI.d.ts} +30 -5
  15. package/dist/{checkout-offer.service-Dknxgj6W.d.cts → checkout-offer.service-B9ua680_.d.cts} +30 -5
  16. package/dist/{chunk-H3GVIQVK.js → chunk-2YG24MH3.js} +56 -18
  17. package/dist/chunk-323FB6TD.js +126 -0
  18. package/dist/{chunk-45B4OQOO.js → chunk-6ASDIOLH.js} +5 -5
  19. package/dist/{chunk-JVZ6B2CI.js → chunk-6UEDKLWR.js} +3 -5
  20. package/dist/{chunk-6NGMKJNI.js → chunk-CMSG6FSE.js} +14 -3
  21. package/dist/chunk-DU56UKEH.js +0 -0
  22. package/dist/{chunk-RRWFCQZQ.js → chunk-ECOQVX6Y.js} +6 -7
  23. package/dist/{chunk-DQEU4UNU.js → chunk-G4T5BBSG.js} +1 -1
  24. package/dist/{chunk-62WEP34A.js → chunk-IRD2BWHL.js} +24 -11
  25. package/dist/{chunk-SABTXESR.js → chunk-J7NJRK3K.js} +17 -1
  26. package/dist/{chunk-NQVW2R7V.js → chunk-JW6U62TJ.js} +36 -31
  27. package/dist/{chunk-GYI3E2YY.js → chunk-K4FWGILF.js} +2 -2
  28. package/dist/{chunk-2TACP6MQ.js → chunk-LRKRNWBN.js} +4 -4
  29. package/dist/{chunk-CJZPT7CR.js → chunk-LUP42DW3.js} +2 -2
  30. package/dist/{chunk-LEZ6KYQ7.js → chunk-OYWIAOYB.js} +34 -4
  31. package/dist/chunk-QBF7KLSA.js +96 -0
  32. package/dist/{chunk-RBEPKWRA.js → chunk-R56LTUNP.js} +2 -2
  33. package/dist/{chunk-FAH62CAJ.js → chunk-XWAZNKAB.js} +4 -2
  34. package/dist/{chunk-JMV6J7YP.js → chunk-Z3A2VZCS.js} +7 -5
  35. package/dist/chunk-ZQ3J3TAM.js +310 -0
  36. package/dist/{define-saasicat-OWvE7lJ1.d.ts → define-saasicat-BepiZu7b.d.ts} +1 -1
  37. package/dist/{define-saasicat-Bsa6GZKE.d.cts → define-saasicat-C2eKBssg.d.cts} +1 -1
  38. package/dist/discovery/index.js +4 -4
  39. package/dist/{enforce-quota.interceptor-Cz5z36qf.d.cts → enforce-quota.interceptor-C5X51kYC.d.cts} +2 -2
  40. package/dist/{enforce-quota.interceptor-C5kUQYit.d.ts → enforce-quota.interceptor-D2jzqOoH.d.ts} +2 -2
  41. package/dist/entitlement/index.js +5 -5
  42. package/dist/index.d.cts +11 -9
  43. package/dist/index.d.ts +11 -9
  44. package/dist/index.js +98 -89
  45. package/dist/{module-options-Cq0Lv2i0.d.cts → module-options-CMG49bE5.d.cts} +9 -5
  46. package/dist/{module-options-CCP890cz.d.ts → module-options-rBTSthar.d.ts} +9 -5
  47. package/dist/platform/index.d.cts +12 -11
  48. package/dist/platform/index.d.ts +12 -11
  49. package/dist/platform/index.js +24 -23
  50. package/dist/promo/index.js +5 -5
  51. package/dist/registration/index.d.cts +1 -1
  52. package/dist/registration/index.d.ts +1 -1
  53. package/dist/registration/index.js +2 -3
  54. package/dist/subscriber/index.cjs +4 -0
  55. package/dist/subscriber/index.d.cts +28 -0
  56. package/dist/subscriber/index.d.ts +28 -0
  57. package/dist/subscriber/index.js +14 -0
  58. package/dist/subscriber.service-BZsvHw1V.d.cts +57 -0
  59. package/dist/subscriber.service-BZsvHw1V.d.ts +57 -0
  60. package/dist/subscription-contract/index.d.cts +3 -2
  61. package/dist/subscription-contract/index.d.ts +3 -2
  62. package/dist/subscription-contract/index.js +5 -3
  63. package/dist/{subscription-contract.module-Bb_kkjgb.d.ts → subscription-contract.module-BfIRpc1o.d.ts} +7 -1
  64. package/dist/{subscription-contract.module-nhErrhmB.d.cts → subscription-contract.module-DTMuUJYd.d.cts} +7 -1
  65. package/dist/{subscription-contract.service-wMqIPFkS.d.ts → subscription-contract.service-D7Qb_Ns-.d.cts} +20 -2
  66. package/dist/{subscription-contract.service-wMqIPFkS.d.cts → subscription-contract.service-Duv_Ns1W.d.ts} +20 -2
  67. package/dist/{tenant-billing.controller-BzAYgoXd.d.cts → tenant-billing.controller-D7t8DpSz.d.cts} +1 -1
  68. package/dist/{tenant-billing.controller--qRIEP-q.d.ts → tenant-billing.controller-DxfXBg72.d.ts} +1 -1
  69. package/dist/{tenant-billing.module-BkTm_rRS.d.cts → tenant-billing.module-ByL2fXFG.d.cts} +16 -1
  70. package/dist/{tenant-billing.module-3ItkmM7J.d.ts → tenant-billing.module-m5PFwDBo.d.ts} +16 -1
  71. package/dist/testing/index.d.cts +30 -9
  72. package/dist/testing/index.d.ts +30 -9
  73. package/dist/testing/index.js +134 -16
  74. package/package.json +13 -3
  75. package/dist/chunk-57V6ZTI6.js +0 -22
  76. package/dist/chunk-UUDUEQXA.js +0 -230
package/README.md CHANGED
@@ -30,20 +30,21 @@ for why that is safe and what it costs.
30
30
  import { computeDiscountGross, buildLabel, round2 } from '@saasicat/nest/promo';
31
31
  ```
32
32
 
33
- | Entry | What is in it | When you take it |
34
- | ------------------------- | -------------------------------------------------------------------------------- | ---------------------------------------------------- |
35
- | `.` | `SaaSiCatModule`, `defineSaaSiCat` and the option types — the whole composition. | The standard integration, and existing consumers. |
36
- | `./platform` | The same composition, without the rest of the root surface. | A new application. Prefer this over `.`. |
37
- | `./discovery` | `DiscoveryModule` and the four decorators that declare capabilities and quotas. | You are annotating your controllers. |
38
- | `./entitlement` | `EntitlementModule`, `EntitlementService`, `LimitExceededError`, aggregation. | You enforce limits yourself instead of by decorator. |
39
- | `./catalog` | `CatalogModule` — plans, bundles, marketing projections, promotions. | You touch the catalogue outside the admin pages. |
40
- | `./billing` | Billing periods, plan-catalog loading and import. | You compute periods or load a catalogue yourself. |
41
- | `./promo` | Pure promo arithmetic: discounts, cycles, labels, VAT. | You price something outside a checkout. |
42
- | `./checkout-offer` | `CheckoutOfferModule` — the frozen offer between catalogue and contract. | Your own checkout writes offers. |
43
- | `./subscription-contract` | `SubscriptionContractModule` and the invoice-shaped projections of a contract. | You bill from contracts. |
44
- | `./admin` | `AdminModule`, the SuperAdmin guards, the port tokens, the manifest surface. | You extend or replace part of the admin backend. |
45
- | `./registration` | `RegistrationModule` — the only entry `SaaSiCatModule` does not compose. | You offer self-registration. |
46
- | `./testing` | Fake adapters for every repository port, plus a `TransactionRunner`. | You unit-test code that depends on the platform. |
33
+ | Entry | What is in it | When you take it |
34
+ | ------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------- |
35
+ | `.` | `SaaSiCatModule`, `defineSaaSiCat` and the option types — the whole composition. | The standard integration, and existing consumers. |
36
+ | `./platform` | The same composition, without the rest of the root surface. | A new application. Prefer this over `.`. |
37
+ | `./discovery` | `DiscoveryModule` and the four decorators that declare capabilities and quotas. | You are annotating your controllers. |
38
+ | `./entitlement` | `EntitlementModule`, `EntitlementService`, `LimitExceededError`, aggregation. | You enforce limits yourself instead of by decorator. |
39
+ | `./catalog` | `CatalogModule` — plans, bundles, marketing projections, promotions. | You touch the catalogue outside the admin pages. |
40
+ | `./billing` | Billing periods, plan-catalog loading and import. | You compute periods or load a catalogue yourself. |
41
+ | `./promo` | Pure promo arithmetic: discounts, cycles, labels, VAT. | You price something outside a checkout. |
42
+ | `./checkout-offer` | `CheckoutOfferModule` — the frozen offer between catalogue and contract. | Your own checkout writes offers. |
43
+ | `./subscription-contract` | `SubscriptionContractModule` and the invoice-shaped projections of a contract. | You bill from contracts. |
44
+ | `./subscriber` | `SubscriberService` — the party a contract is concluded with, and its corrections. | Your application creates tenants. |
45
+ | `./admin` | `AdminModule`, the SuperAdmin guards, the port tokens, the manifest surface. | You extend or replace part of the admin backend. |
46
+ | `./registration` | `RegistrationModule` — the only entry `SaaSiCatModule` does not compose. | You offer self-registration. |
47
+ | `./testing` | Fake adapters for every repository port, plus a `TransactionRunner`. | You unit-test code that depends on the platform. |
47
48
 
48
49
  ## Usage
49
50
 
package/dist/.build-stamp CHANGED
@@ -1 +1 @@
1
- 5b5c697fcb7f0f396443441223db4c63896950ff67b89351b80f193bfc738b7d
1
+ e0622061ad0f70c5c89d6ceadfe7257fb2144def576fb8a4cdf8cf6260d13b77