@shipstatic/types 2.5.0-beta.7 → 2.5.0-beta.8
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.ts +24 -0
- package/package.json +1 -1
- package/src/index.ts +24 -0
package/dist/index.d.ts
CHANGED
|
@@ -228,10 +228,34 @@ export declare const AccountPlan: {
|
|
|
228
228
|
export type AccountPlanType = (typeof AccountPlan)[keyof typeof AccountPlan];
|
|
229
229
|
/**
|
|
230
230
|
* Account usage metrics — always available regardless of billing provider.
|
|
231
|
+
*
|
|
232
|
+
* This is where a caller's own totals live. Lists answer pages and carry no
|
|
233
|
+
* `total` (see {@link ListOptions}); a count is an aggregate over a
|
|
234
|
+
* collection, so it belongs to the summary resource that owns the
|
|
235
|
+
* collection. `GET /account` is that resource for one caller, `GET
|
|
236
|
+
* /admin/stats` for the platform.
|
|
237
|
+
*
|
|
238
|
+
* The counted dimensions are the ones the plan caps — deployments and
|
|
239
|
+
* domains (`PlatformLimits`) — plus the billable custom-domain subset, so a
|
|
240
|
+
* surface can render "3 of 10" without a second request.
|
|
231
241
|
*/
|
|
232
242
|
export interface AccountUsage {
|
|
233
243
|
/** Number of active custom domains (excludes paused) */
|
|
234
244
|
customDomains: number;
|
|
245
|
+
/**
|
|
246
|
+
* Deployments counted against the plan's deployment cap — every row
|
|
247
|
+
* whatever its status, because that is what the cap counts, so a surface
|
|
248
|
+
* renders "3 of 10" against the denominator the 403 divides by. (`GET
|
|
249
|
+
* /deployments` lists successful ones only; that is a different question
|
|
250
|
+
* asked of a different resource.) Optional by the additive-evolution law:
|
|
251
|
+
* an API predating this field omits it.
|
|
252
|
+
*/
|
|
253
|
+
deployments?: number;
|
|
254
|
+
/**
|
|
255
|
+
* Domains counted against the plan's domain cap — every domain, platform
|
|
256
|
+
* and custom alike, unlike `customDomains`. Optional for the same reason.
|
|
257
|
+
*/
|
|
258
|
+
domains?: number;
|
|
235
259
|
}
|
|
236
260
|
/**
|
|
237
261
|
* Core account object - used in both API responses and SDK
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -264,10 +264,34 @@ export type AccountPlanType = (typeof AccountPlan)[keyof typeof AccountPlan];
|
|
|
264
264
|
|
|
265
265
|
/**
|
|
266
266
|
* Account usage metrics — always available regardless of billing provider.
|
|
267
|
+
*
|
|
268
|
+
* This is where a caller's own totals live. Lists answer pages and carry no
|
|
269
|
+
* `total` (see {@link ListOptions}); a count is an aggregate over a
|
|
270
|
+
* collection, so it belongs to the summary resource that owns the
|
|
271
|
+
* collection. `GET /account` is that resource for one caller, `GET
|
|
272
|
+
* /admin/stats` for the platform.
|
|
273
|
+
*
|
|
274
|
+
* The counted dimensions are the ones the plan caps — deployments and
|
|
275
|
+
* domains (`PlatformLimits`) — plus the billable custom-domain subset, so a
|
|
276
|
+
* surface can render "3 of 10" without a second request.
|
|
267
277
|
*/
|
|
268
278
|
export interface AccountUsage {
|
|
269
279
|
/** Number of active custom domains (excludes paused) */
|
|
270
280
|
customDomains: number;
|
|
281
|
+
/**
|
|
282
|
+
* Deployments counted against the plan's deployment cap — every row
|
|
283
|
+
* whatever its status, because that is what the cap counts, so a surface
|
|
284
|
+
* renders "3 of 10" against the denominator the 403 divides by. (`GET
|
|
285
|
+
* /deployments` lists successful ones only; that is a different question
|
|
286
|
+
* asked of a different resource.) Optional by the additive-evolution law:
|
|
287
|
+
* an API predating this field omits it.
|
|
288
|
+
*/
|
|
289
|
+
deployments?: number;
|
|
290
|
+
/**
|
|
291
|
+
* Domains counted against the plan's domain cap — every domain, platform
|
|
292
|
+
* and custom alike, unlike `customDomains`. Optional for the same reason.
|
|
293
|
+
*/
|
|
294
|
+
domains?: number;
|
|
271
295
|
}
|
|
272
296
|
|
|
273
297
|
/**
|