@shipstatic/types 0.3.12 → 0.3.14
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 +14 -21
- package/package.json +1 -1
- package/src/index.ts +15 -23
package/dist/index.d.ts
CHANGED
|
@@ -178,8 +178,10 @@ export interface Account {
|
|
|
178
178
|
* Allows per-account customization of limits without changing plan
|
|
179
179
|
*/
|
|
180
180
|
export interface AccountOverrides {
|
|
181
|
-
/** Override for maximum
|
|
182
|
-
|
|
181
|
+
/** Override for maximum number of domains */
|
|
182
|
+
domains?: number;
|
|
183
|
+
/** Override for maximum number of deployments */
|
|
184
|
+
deployments?: number;
|
|
183
185
|
/** Override for maximum individual file size in bytes */
|
|
184
186
|
fileSize?: number;
|
|
185
187
|
/** Override for maximum number of files per deployment */
|
|
@@ -442,31 +444,30 @@ export interface TokenResource {
|
|
|
442
444
|
}
|
|
443
445
|
/**
|
|
444
446
|
* Billing status response from GET /billing/status
|
|
447
|
+
*
|
|
448
|
+
* Note: The user's `plan` comes from Account, not here.
|
|
449
|
+
* This endpoint only returns billing-specific data (usage, portal, etc.)
|
|
450
|
+
*
|
|
451
|
+
* If `billing` is null, the user has no active billing.
|
|
445
452
|
*/
|
|
446
453
|
export interface BillingStatus {
|
|
447
|
-
/**
|
|
448
|
-
|
|
449
|
-
/** Current account plan */
|
|
450
|
-
plan: AccountPlanType;
|
|
451
|
-
/** Creem billing ID (if subscribed) */
|
|
452
|
-
billing?: string;
|
|
454
|
+
/** Creem billing ID, or null if no active billing */
|
|
455
|
+
billing: string | null;
|
|
453
456
|
/** Number of billing units (1 unit = 1 custom domain) */
|
|
454
457
|
units?: number;
|
|
455
458
|
/** Number of custom domains currently in use */
|
|
456
|
-
|
|
459
|
+
usage?: number;
|
|
457
460
|
/** Billing status from Creem (active, trialing, canceled, etc.) */
|
|
458
461
|
status?: string;
|
|
459
462
|
/** Link to Creem customer portal for billing management */
|
|
460
|
-
|
|
463
|
+
portal?: string | null;
|
|
461
464
|
}
|
|
462
465
|
/**
|
|
463
466
|
* Checkout session response from POST /billing/checkout
|
|
464
467
|
*/
|
|
465
468
|
export interface CheckoutSession {
|
|
466
469
|
/** URL to redirect user to Creem checkout page */
|
|
467
|
-
|
|
468
|
-
/** Creem checkout session ID */
|
|
469
|
-
checkoutId: string;
|
|
470
|
+
url: string;
|
|
470
471
|
}
|
|
471
472
|
/**
|
|
472
473
|
* Billing resource interface - the contract all implementations must follow
|
|
@@ -486,14 +487,6 @@ export interface BillingResource {
|
|
|
486
487
|
*/
|
|
487
488
|
status: () => Promise<BillingStatus>;
|
|
488
489
|
}
|
|
489
|
-
/**
|
|
490
|
-
* @deprecated Use BillingStatus instead. Kept for backward compatibility.
|
|
491
|
-
*/
|
|
492
|
-
export type SubscriptionStatus = BillingStatus;
|
|
493
|
-
/**
|
|
494
|
-
* @deprecated Use BillingResource instead. Kept for backward compatibility.
|
|
495
|
-
*/
|
|
496
|
-
export type SubscriptionResource = BillingResource;
|
|
497
490
|
/**
|
|
498
491
|
* Keys resource interface - the contract all implementations must follow
|
|
499
492
|
*/
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -211,8 +211,10 @@ export interface Account {
|
|
|
211
211
|
* Allows per-account customization of limits without changing plan
|
|
212
212
|
*/
|
|
213
213
|
export interface AccountOverrides {
|
|
214
|
-
/** Override for maximum
|
|
215
|
-
|
|
214
|
+
/** Override for maximum number of domains */
|
|
215
|
+
domains?: number;
|
|
216
|
+
/** Override for maximum number of deployments */
|
|
217
|
+
deployments?: number;
|
|
216
218
|
/** Override for maximum individual file size in bytes */
|
|
217
219
|
fileSize?: number;
|
|
218
220
|
/** Override for maximum number of files per deployment */
|
|
@@ -692,32 +694,32 @@ export interface TokenResource {
|
|
|
692
694
|
|
|
693
695
|
/**
|
|
694
696
|
* Billing status response from GET /billing/status
|
|
697
|
+
*
|
|
698
|
+
* Note: The user's `plan` comes from Account, not here.
|
|
699
|
+
* This endpoint only returns billing-specific data (usage, portal, etc.)
|
|
700
|
+
*
|
|
701
|
+
* If `billing` is null, the user has no active billing.
|
|
695
702
|
*/
|
|
696
703
|
export interface BillingStatus {
|
|
697
|
-
/**
|
|
698
|
-
|
|
699
|
-
/** Current account plan */
|
|
700
|
-
plan: AccountPlanType;
|
|
701
|
-
/** Creem billing ID (if subscribed) */
|
|
702
|
-
billing?: string;
|
|
704
|
+
/** Creem billing ID, or null if no active billing */
|
|
705
|
+
billing: string | null;
|
|
703
706
|
/** Number of billing units (1 unit = 1 custom domain) */
|
|
704
707
|
units?: number;
|
|
705
708
|
/** Number of custom domains currently in use */
|
|
706
|
-
|
|
709
|
+
usage?: number;
|
|
707
710
|
/** Billing status from Creem (active, trialing, canceled, etc.) */
|
|
708
711
|
status?: string;
|
|
709
712
|
/** Link to Creem customer portal for billing management */
|
|
710
|
-
|
|
713
|
+
portal?: string | null;
|
|
711
714
|
}
|
|
712
715
|
|
|
716
|
+
|
|
713
717
|
/**
|
|
714
718
|
* Checkout session response from POST /billing/checkout
|
|
715
719
|
*/
|
|
716
720
|
export interface CheckoutSession {
|
|
717
721
|
/** URL to redirect user to Creem checkout page */
|
|
718
|
-
|
|
719
|
-
/** Creem checkout session ID */
|
|
720
|
-
checkoutId: string;
|
|
722
|
+
url: string;
|
|
721
723
|
}
|
|
722
724
|
|
|
723
725
|
/**
|
|
@@ -740,16 +742,6 @@ export interface BillingResource {
|
|
|
740
742
|
status: () => Promise<BillingStatus>;
|
|
741
743
|
}
|
|
742
744
|
|
|
743
|
-
/**
|
|
744
|
-
* @deprecated Use BillingStatus instead. Kept for backward compatibility.
|
|
745
|
-
*/
|
|
746
|
-
export type SubscriptionStatus = BillingStatus;
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* @deprecated Use BillingResource instead. Kept for backward compatibility.
|
|
750
|
-
*/
|
|
751
|
-
export type SubscriptionResource = BillingResource;
|
|
752
|
-
|
|
753
745
|
|
|
754
746
|
/**
|
|
755
747
|
* Keys resource interface - the contract all implementations must follow
|