@sparkvault/sdk-mobile 4.3.2 → 4.4.0
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/types.d.ts +9 -5
- package/package.json +1 -1
- package/src/types.ts +9 -5
package/dist/types.d.ts
CHANGED
|
@@ -135,13 +135,17 @@ export interface SubscriptionIdentityStatus {
|
|
|
135
135
|
state: PoolState;
|
|
136
136
|
}
|
|
137
137
|
/**
|
|
138
|
-
* GET /v1/billing/subscription — the account's
|
|
139
|
-
* seats, capacity blocks, live pool usage, and Identity
|
|
140
|
-
* subscription / usage view. `
|
|
141
|
-
* `
|
|
138
|
+
* GET /v1/billing/subscription — the account's derived billing lifecycle,
|
|
139
|
+
* licensed vs. used seats, capacity blocks, live pool usage, and Identity
|
|
140
|
+
* attempts. Drives the subscription / usage view. `status` is the derived
|
|
141
|
+
* lifecycle label; `is_paying`/`is_entitled` are the booleans the UI gates on
|
|
142
|
+
* (paying vs merely entitled). `renewal_amount_usd` is a formatted dollars
|
|
143
|
+
* string; `renewal_date` is an epoch (seconds) or null when there is no plan.
|
|
142
144
|
*/
|
|
143
145
|
export interface SparkVaultSubscription {
|
|
144
|
-
|
|
146
|
+
status: 'free' | 'customer' | 'churned' | 'suspended';
|
|
147
|
+
is_paying: boolean;
|
|
148
|
+
is_entitled: boolean;
|
|
145
149
|
unlimited: boolean;
|
|
146
150
|
subscription_status: string | null;
|
|
147
151
|
past_due: boolean;
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -157,13 +157,17 @@ export interface SubscriptionIdentityStatus {
|
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
/**
|
|
160
|
-
* GET /v1/billing/subscription — the account's
|
|
161
|
-
* seats, capacity blocks, live pool usage, and Identity
|
|
162
|
-
* subscription / usage view. `
|
|
163
|
-
* `
|
|
160
|
+
* GET /v1/billing/subscription — the account's derived billing lifecycle,
|
|
161
|
+
* licensed vs. used seats, capacity blocks, live pool usage, and Identity
|
|
162
|
+
* attempts. Drives the subscription / usage view. `status` is the derived
|
|
163
|
+
* lifecycle label; `is_paying`/`is_entitled` are the booleans the UI gates on
|
|
164
|
+
* (paying vs merely entitled). `renewal_amount_usd` is a formatted dollars
|
|
165
|
+
* string; `renewal_date` is an epoch (seconds) or null when there is no plan.
|
|
164
166
|
*/
|
|
165
167
|
export interface SparkVaultSubscription {
|
|
166
|
-
|
|
168
|
+
status: 'free' | 'customer' | 'churned' | 'suspended';
|
|
169
|
+
is_paying: boolean;
|
|
170
|
+
is_entitled: boolean;
|
|
167
171
|
unlimited: boolean;
|
|
168
172
|
subscription_status: string | null;
|
|
169
173
|
past_due: boolean;
|