@shipstatic/types 0.3.10 → 0.3.12
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 +15 -6
- package/package.json +1 -1
- package/src/index.ts +18 -6
package/dist/index.d.ts
CHANGED
|
@@ -157,20 +157,21 @@ export declare const AccountPlan: {
|
|
|
157
157
|
export type AccountPlanType = typeof AccountPlan[keyof typeof AccountPlan];
|
|
158
158
|
/**
|
|
159
159
|
* Core account object - used in both API responses and SDK
|
|
160
|
+
* All fields are readonly to prevent accidental mutations
|
|
160
161
|
*/
|
|
161
162
|
export interface Account {
|
|
162
163
|
/** User email address */
|
|
163
|
-
email: string;
|
|
164
|
+
readonly email: string;
|
|
164
165
|
/** User display name */
|
|
165
|
-
name: string;
|
|
166
|
+
readonly name: string;
|
|
166
167
|
/** User profile picture URL */
|
|
167
|
-
picture?: string;
|
|
168
|
+
readonly picture?: string;
|
|
168
169
|
/** Account plan status */
|
|
169
|
-
plan: AccountPlanType;
|
|
170
|
+
readonly plan: AccountPlanType;
|
|
170
171
|
/** Unix timestamp (seconds) when account was created */
|
|
171
|
-
created: number;
|
|
172
|
+
readonly created: number;
|
|
172
173
|
/** Unix timestamp (seconds) when account was activated (first deployment) */
|
|
173
|
-
activated?: number;
|
|
174
|
+
readonly activated?: number;
|
|
174
175
|
}
|
|
175
176
|
/**
|
|
176
177
|
* Account-specific configuration overrides
|
|
@@ -485,6 +486,14 @@ export interface BillingResource {
|
|
|
485
486
|
*/
|
|
486
487
|
status: () => Promise<BillingStatus>;
|
|
487
488
|
}
|
|
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;
|
|
488
497
|
/**
|
|
489
498
|
* Keys resource interface - the contract all implementations must follow
|
|
490
499
|
*/
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -189,20 +189,21 @@ export type AccountPlanType = typeof AccountPlan[keyof typeof AccountPlan];
|
|
|
189
189
|
|
|
190
190
|
/**
|
|
191
191
|
* Core account object - used in both API responses and SDK
|
|
192
|
+
* All fields are readonly to prevent accidental mutations
|
|
192
193
|
*/
|
|
193
194
|
export interface Account {
|
|
194
195
|
/** User email address */
|
|
195
|
-
email: string;
|
|
196
|
+
readonly email: string;
|
|
196
197
|
/** User display name */
|
|
197
|
-
name: string;
|
|
198
|
+
readonly name: string;
|
|
198
199
|
/** User profile picture URL */
|
|
199
|
-
picture?: string;
|
|
200
|
+
readonly picture?: string;
|
|
200
201
|
/** Account plan status */
|
|
201
|
-
plan: AccountPlanType;
|
|
202
|
+
readonly plan: AccountPlanType;
|
|
202
203
|
/** Unix timestamp (seconds) when account was created */
|
|
203
|
-
created: number;
|
|
204
|
+
readonly created: number;
|
|
204
205
|
/** Unix timestamp (seconds) when account was activated (first deployment) */
|
|
205
|
-
activated?: number;
|
|
206
|
+
readonly activated?: number;
|
|
206
207
|
}
|
|
207
208
|
|
|
208
209
|
/**
|
|
@@ -739,6 +740,17 @@ export interface BillingResource {
|
|
|
739
740
|
status: () => Promise<BillingStatus>;
|
|
740
741
|
}
|
|
741
742
|
|
|
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
|
+
|
|
742
754
|
/**
|
|
743
755
|
* Keys resource interface - the contract all implementations must follow
|
|
744
756
|
*/
|