@managemint-solutions/sdk 0.44.0 → 0.45.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.
@@ -15,12 +15,13 @@ const PRICEBOOK_SELECT = `
15
15
  unit_amount_minor,
16
16
  currency,
17
17
  billing_modules (
18
- module_key
18
+ module_key,
19
+ name
19
20
  )
20
21
  )
21
22
  `;
22
- // A pricebook_modules row whose catalog entry did not come back leaves `module_key` undefined -
23
- // the cast keeps the mapping honest about that rather than inventing a key.
23
+ // A pricebook_modules row whose catalog entry did not come back leaves `module_key` and `name`
24
+ // undefined - the cast keeps the mapping honest about that rather than inventing them.
24
25
  const toPricebookWithModules = (row) => ({
25
26
  mms_id: row.mms_id,
26
27
  name: row.name,
@@ -29,6 +30,7 @@ const toPricebookWithModules = (row) => ({
29
30
  modules: (row.pricebook_modules || []).map((pricedModule) => ({
30
31
  module_id: pricedModule.module_id,
31
32
  module_key: pricedModule.billing_modules?.module_key,
33
+ name: pricedModule.billing_modules?.name,
32
34
  unit_amount_minor: pricedModule.unit_amount_minor,
33
35
  currency: pricedModule.currency,
34
36
  })),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@managemint-solutions/sdk",
3
- "version": "0.44.0",
3
+ "version": "0.45.0",
4
4
  "description": "Typed Supabase data-access SDK for ManageMint Solutions",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Scott Bebington <scottbebington@gmail.com>",
@@ -51,7 +51,7 @@
51
51
  "testEnvironment": "node"
52
52
  },
53
53
  "dependencies": {
54
- "@managemint-solutions/entities": "^1.27.0"
54
+ "@managemint-solutions/entities": "^1.28.0"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@nestjs/common": "^11.0.0",