@commet/node 7.10.0 → 8.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.
- package/README.md +3 -3
- package/dist/index.d.mts +2029 -940
- package/dist/index.d.ts +2029 -940
- package/dist/index.js +396 -342
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +396 -342
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ await commet.subscriptions.create({
|
|
|
60
60
|
|
|
61
61
|
// Track usage events
|
|
62
62
|
await commet.usage.track({
|
|
63
|
-
|
|
63
|
+
featureCode: 'api_call',
|
|
64
64
|
value: 1,
|
|
65
65
|
customerId: 'cus_123'
|
|
66
66
|
});
|
|
@@ -86,9 +86,9 @@ const projects = await commet.quota.get({
|
|
|
86
86
|
});
|
|
87
87
|
|
|
88
88
|
// Check feature access
|
|
89
|
-
const access = await commet.
|
|
89
|
+
const access = await commet.usage.check({
|
|
90
90
|
customerId: 'cus_123',
|
|
91
|
-
|
|
91
|
+
featureCode: 'api_calls'
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
// Generate customer portal link
|