@shipstatic/types 0.3.6 → 0.3.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 +5 -22
- package/package.json +1 -1
- package/src/index.ts +5 -25
package/dist/index.d.ts
CHANGED
|
@@ -177,6 +177,8 @@ export interface Account {
|
|
|
177
177
|
* Allows per-account customization of limits without changing plan
|
|
178
178
|
*/
|
|
179
179
|
export interface AccountOverrides {
|
|
180
|
+
/** Override for maximum resources (deployments + domains) */
|
|
181
|
+
resources?: number;
|
|
180
182
|
/** Override for maximum individual file size in bytes */
|
|
181
183
|
fileSize?: number;
|
|
182
184
|
/** Override for maximum number of files per deployment */
|
|
@@ -464,24 +466,11 @@ export interface CheckoutSession {
|
|
|
464
466
|
/** Creem checkout session ID */
|
|
465
467
|
checkoutId: string;
|
|
466
468
|
}
|
|
467
|
-
/**
|
|
468
|
-
* Subscription sync request body for POST /subscriptions/sync
|
|
469
|
-
*/
|
|
470
|
-
export interface SubscriptionSyncRequest {
|
|
471
|
-
/** Creem subscription ID received after checkout */
|
|
472
|
-
subscriptionId: string;
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* Subscription sync response from POST /subscriptions/sync
|
|
476
|
-
*/
|
|
477
|
-
export interface SubscriptionSyncResponse {
|
|
478
|
-
/** Whether sync was successful */
|
|
479
|
-
success: boolean;
|
|
480
|
-
/** The synced subscription ID */
|
|
481
|
-
subscriptionId: string;
|
|
482
|
-
}
|
|
483
469
|
/**
|
|
484
470
|
* Subscription resource interface - the contract all implementations must follow
|
|
471
|
+
*
|
|
472
|
+
* IMPOSSIBLE SIMPLICITY: No sync() method needed!
|
|
473
|
+
* Webhooks are the single source of truth. Frontend just polls status().
|
|
485
474
|
*/
|
|
486
475
|
export interface SubscriptionResource {
|
|
487
476
|
/**
|
|
@@ -494,12 +483,6 @@ export interface SubscriptionResource {
|
|
|
494
483
|
* @returns Subscription status and usage information
|
|
495
484
|
*/
|
|
496
485
|
status: () => Promise<SubscriptionStatus>;
|
|
497
|
-
/**
|
|
498
|
-
* Sync subscription ID after checkout redirect
|
|
499
|
-
* @param subscriptionId - Subscription ID from Creem redirect
|
|
500
|
-
* @returns Sync confirmation
|
|
501
|
-
*/
|
|
502
|
-
sync: (subscriptionId: string) => Promise<SubscriptionSyncResponse>;
|
|
503
486
|
}
|
|
504
487
|
/**
|
|
505
488
|
* Keys resource interface - the contract all implementations must follow
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -210,6 +210,8 @@ export interface Account {
|
|
|
210
210
|
* Allows per-account customization of limits without changing plan
|
|
211
211
|
*/
|
|
212
212
|
export interface AccountOverrides {
|
|
213
|
+
/** Override for maximum resources (deployments + domains) */
|
|
214
|
+
resources?: number;
|
|
213
215
|
/** Override for maximum individual file size in bytes */
|
|
214
216
|
fileSize?: number;
|
|
215
217
|
/** Override for maximum number of files per deployment */
|
|
@@ -716,26 +718,11 @@ export interface CheckoutSession {
|
|
|
716
718
|
checkoutId: string;
|
|
717
719
|
}
|
|
718
720
|
|
|
719
|
-
/**
|
|
720
|
-
* Subscription sync request body for POST /subscriptions/sync
|
|
721
|
-
*/
|
|
722
|
-
export interface SubscriptionSyncRequest {
|
|
723
|
-
/** Creem subscription ID received after checkout */
|
|
724
|
-
subscriptionId: string;
|
|
725
|
-
}
|
|
726
|
-
|
|
727
|
-
/**
|
|
728
|
-
* Subscription sync response from POST /subscriptions/sync
|
|
729
|
-
*/
|
|
730
|
-
export interface SubscriptionSyncResponse {
|
|
731
|
-
/** Whether sync was successful */
|
|
732
|
-
success: boolean;
|
|
733
|
-
/** The synced subscription ID */
|
|
734
|
-
subscriptionId: string;
|
|
735
|
-
}
|
|
736
|
-
|
|
737
721
|
/**
|
|
738
722
|
* Subscription resource interface - the contract all implementations must follow
|
|
723
|
+
*
|
|
724
|
+
* IMPOSSIBLE SIMPLICITY: No sync() method needed!
|
|
725
|
+
* Webhooks are the single source of truth. Frontend just polls status().
|
|
739
726
|
*/
|
|
740
727
|
export interface SubscriptionResource {
|
|
741
728
|
/**
|
|
@@ -749,13 +736,6 @@ export interface SubscriptionResource {
|
|
|
749
736
|
* @returns Subscription status and usage information
|
|
750
737
|
*/
|
|
751
738
|
status: () => Promise<SubscriptionStatus>;
|
|
752
|
-
|
|
753
|
-
/**
|
|
754
|
-
* Sync subscription ID after checkout redirect
|
|
755
|
-
* @param subscriptionId - Subscription ID from Creem redirect
|
|
756
|
-
* @returns Sync confirmation
|
|
757
|
-
*/
|
|
758
|
-
sync: (subscriptionId: string) => Promise<SubscriptionSyncResponse>;
|
|
759
739
|
}
|
|
760
740
|
|
|
761
741
|
/**
|