@commet/node 9.1.0 → 9.2.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/dist/index.d.mts +277 -14
- package/dist/index.d.ts +277 -14
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/docs/api-reference/customers.md +7 -7
- package/docs/api-reference/generated-webhooks.md +2 -2
- package/docs/documentation/choose-a-billing-model.md +2 -2
- package/docs/documentation/subscriptions/manage-subscriptions.md +2 -2
- package/docs/documentation/subscriptions/plan-grants.md +53 -61
- package/docs/documentation/subscriptions/upgrade-and-downgrade-plans.md +3 -1
- package/docs/knowledge-base/how-do-credits-credit-packs-and-customer-credits-differ.md +2 -2
- package/docs/manifest.json +9 -1
- package/docs/platform-documentation.md +4 -0
- package/docs/schemas.md +22 -8
- package/docs/webhooks/customer-state-changed.md +3 -3
- package/docs/webhooks/meta.json +5 -0
- package/docs/webhooks/plan-grant-created.md +74 -0
- package/docs/webhooks/plan-grant-expired.md +86 -0
- package/docs/webhooks/plan-grant-revoked.md +86 -0
- package/docs/webhooks/plan-grant-updated.md +86 -0
- package/docs/webhooks.md +96 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -101,7 +101,7 @@ var CustomersResource = class {
|
|
|
101
101
|
const { id, ...rest } = params;
|
|
102
102
|
return this.httpClient.post(`/customers/${id}/credits`, rest, options);
|
|
103
103
|
}
|
|
104
|
-
/** End
|
|
104
|
+
/** End expanded access immediately and restore the base plan's limits. The subscription, billing cycle, invoices, and payment state remain unchanged. */
|
|
105
105
|
async revokePlanGrant(params, options) {
|
|
106
106
|
const { id, grantId, ...rest } = params;
|
|
107
107
|
return this.httpClient.post(
|
|
@@ -110,7 +110,7 @@ var CustomersResource = class {
|
|
|
110
110
|
options
|
|
111
111
|
);
|
|
112
112
|
}
|
|
113
|
-
/**
|
|
113
|
+
/** Keep the overlay for a number of the subscription's existing billing cycles, set an exact deadline, or leave it active until revoked. The billing anchor is never reset. */
|
|
114
114
|
async updatePlanGrant(params, options) {
|
|
115
115
|
const { id, grantId, ...rest } = params;
|
|
116
116
|
return this.httpClient.patch(
|
|
@@ -128,7 +128,7 @@ var CustomersResource = class {
|
|
|
128
128
|
options
|
|
129
129
|
);
|
|
130
130
|
}
|
|
131
|
-
/**
|
|
131
|
+
/** Temporarily expand an active subscription's feature access using a higher plan in the same plan group. Billing, prices, periods, invoices, and the base subscription remain unchanged. */
|
|
132
132
|
async createPlanGrant(params, options) {
|
|
133
133
|
const { id, ...rest } = params;
|
|
134
134
|
return this.httpClient.post(`/customers/${id}/plan-grants`, rest, options);
|
|
@@ -991,7 +991,7 @@ var CommetValidationError = class extends CommetAPIError {
|
|
|
991
991
|
|
|
992
992
|
// src/version.ts
|
|
993
993
|
var API_VERSION = "2026-07-31";
|
|
994
|
-
var SDK_VERSION = "9.
|
|
994
|
+
var SDK_VERSION = "9.2.0";
|
|
995
995
|
|
|
996
996
|
// src/utils/telemetry.ts
|
|
997
997
|
var registeredIntegrations = /* @__PURE__ */ new Set();
|