@dainamite/cpq-billing-connector 0.1.0 → 1.0.0

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 (2) hide show
  1. package/CHANGELOG.md +36 -2
  2. package/package.json +9 -9
package/CHANGELOG.md CHANGED
@@ -1,10 +1,44 @@
1
1
  # @dainamite/cpq-billing-connector
2
2
 
3
+ ## 1.0.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 8834b8b: Require Open Mercato `0.6.7`. Peer ranges move from `^0.6.0` to `^0.6.7` for
8
+ `@open-mercato/core`, `shared`, `ui`, `events` and `queue`, and the MikroORM
9
+ peers from `^7.0.0` to `^7.1.5` (7.1 split the SQL layer into
10
+ `@mikro-orm/sql`, so a shared 7.1 instance is required).
11
+
12
+ No package source changes — this only narrows the supported framework range.
13
+ Consumers on Open Mercato `0.6.0`–`0.6.6` must upgrade before taking these
14
+ versions.
15
+
16
+ Note for consumers running commands with a system identity (`ctx.auth: null`):
17
+ `0.6.7` hardened `ensureTenantScope` / `ensureOrganizationScope`. Those calls
18
+ are still no-ops with `auth: null`, but an unscoped organization command now
19
+ logs a warning and will throw `403` if `OM_ENFORCE_ORG_SCOPE_STRICT=true`.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies [8834b8b]
24
+ - @dainamite/cpq@0.4.0
25
+ - @dainamite/billing@0.19.0
26
+
27
+ ## 0.1.1
28
+
29
+ ### Patch Changes
30
+
31
+ - f8210ac: Bump `@dainamite/billing` peer dependency to `^0.18.0` (prepaid billing,
32
+ SPEC-002 / XD-304). No connector code changes — the connector keeps emitting
33
+ the same command-bus calls; this only widens the supported billing range.
34
+ - Updated dependencies [f8210ac]
35
+ - @dainamite/billing@0.18.0
36
+
3
37
  ## 0.1.0 — Initial release (unreleased)
4
38
 
5
39
  - 6 subscribers translating CPQ subscription lifecycle events to
6
40
  `@dainamite/billing` command-bus calls:
7
- - `cpq.subscription.activated` *(awaits CPQ upstream PR)* → create
41
+ - `cpq.subscription.activated` _(awaits CPQ upstream PR)_ → create
8
42
  Billing Account if missing, bulk-create Billing Items per charge.
9
43
  - `cpq.subscription.amended` → bulk-add new items (including the
10
44
  proration `one_time` Item the connector computes here), set
@@ -19,7 +53,7 @@
19
53
  item for the superseded subscription.
20
54
  - Pure helpers:
21
55
  - `lib/prorationHelper.ts` — `unitPrice × quantity × daysRemaining
22
- / daysInPeriod` with half-up 2dp rounding, matching the spec's
56
+ / daysInPeriod` with half-up 2dp rounding, matching the spec's
23
57
  invoice-amount rounding policy. Proration math lives here (not
24
58
  in CPQ) so CPQ stays neutral on billing calendar semantics.
25
59
  - `lib/chargeMapper.ts` — CPQ charge → billing item create payload.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dainamite/cpq-billing-connector",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "Wires @dainamite/cpq subscription lifecycle events to @dainamite/billing API calls (activated / amended / renewed / cancelled / merged / superseded).",
5
5
  "type": "module",
6
6
  "main": "./dist/modules/cpq_billing_connector/index.js",
@@ -93,14 +93,14 @@
93
93
  }
94
94
  },
95
95
  "peerDependencies": {
96
- "@dainamite/billing": "^0.17.0",
97
- "@dainamite/cpq": "^0.3.0",
98
- "@mikro-orm/core": "^7.0.0",
99
- "@mikro-orm/decorators": "^7.0.0",
100
- "@mikro-orm/postgresql": "^7.0.0",
101
- "@open-mercato/core": "^0.6.0",
102
- "@open-mercato/events": "^0.6.0",
103
- "@open-mercato/shared": "^0.6.0",
96
+ "@dainamite/billing": "^0.19.0",
97
+ "@dainamite/cpq": "^0.4.0",
98
+ "@mikro-orm/core": "^7.1.5",
99
+ "@mikro-orm/decorators": "^7.1.5",
100
+ "@mikro-orm/postgresql": "^7.1.5",
101
+ "@open-mercato/core": "^0.6.7",
102
+ "@open-mercato/events": "^0.6.7",
103
+ "@open-mercato/shared": "^0.6.7",
104
104
  "awilix": "^12.0.0",
105
105
  "zod": "^4.0.0"
106
106
  },