@shipstatic/types 0.3.6 → 0.3.7

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 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 */
@@ -471,17 +473,11 @@ export interface SubscriptionSyncRequest {
471
473
  /** Creem subscription ID received after checkout */
472
474
  subscriptionId: string;
473
475
  }
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
476
  /**
484
477
  * Subscription resource interface - the contract all implementations must follow
478
+ *
479
+ * IMPOSSIBLE SIMPLICITY: No sync() method needed!
480
+ * Webhooks are the single source of truth. Frontend just polls status().
485
481
  */
486
482
  export interface SubscriptionResource {
487
483
  /**
@@ -494,12 +490,6 @@ export interface SubscriptionResource {
494
490
  * @returns Subscription status and usage information
495
491
  */
496
492
  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
493
  }
504
494
  /**
505
495
  * Keys resource interface - the contract all implementations must follow
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipstatic/types",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "description": "Shared types for Shipstatic platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
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 */
@@ -724,18 +726,11 @@ export interface SubscriptionSyncRequest {
724
726
  subscriptionId: string;
725
727
  }
726
728
 
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
729
  /**
738
730
  * Subscription resource interface - the contract all implementations must follow
731
+ *
732
+ * IMPOSSIBLE SIMPLICITY: No sync() method needed!
733
+ * Webhooks are the single source of truth. Frontend just polls status().
739
734
  */
740
735
  export interface SubscriptionResource {
741
736
  /**
@@ -749,13 +744,6 @@ export interface SubscriptionResource {
749
744
  * @returns Subscription status and usage information
750
745
  */
751
746
  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
747
  }
760
748
 
761
749
  /**