@stigg/js-client-sdk 1.3.0 → 1.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/models.d.ts CHANGED
@@ -254,6 +254,7 @@ export declare type Customer = {
254
254
  paymentMethodDetails?: PaymentMethodDetails;
255
255
  metadata?: Metadata | null;
256
256
  trialedPlans?: TrialedPlan[] | null;
257
+ eligibleForTrial?: EligibleForTrial[] | null;
257
258
  experimentInfo?: ExperimentInfo | null;
258
259
  getActiveSubscriptions(): Subscription[];
259
260
  getActivePromotionalEntitlements(): PromotionalEntitlement[];
@@ -264,6 +265,10 @@ export declare type TrialedPlan = {
264
265
  productId?: string | null;
265
266
  planId?: string | null;
266
267
  };
268
+ export declare type EligibleForTrial = {
269
+ productId?: string | null;
270
+ eligible: boolean;
271
+ };
267
272
  export declare type WaitForCheckoutCompleted = {
268
273
  timeoutMs?: number;
269
274
  refreshOnComplete?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/js-client-sdk",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Stigg client-side SDK for Browser",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",