@stigg/js-client-sdk 0.40.0 → 0.41.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
@@ -1,5 +1,5 @@
1
- import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits } from './api/generated/types';
2
- export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, } from './api/generated/types';
1
+ import { BillingModel, BillingPeriod, Currency, PricingType, PromotionalEntitlementStatus, SubscriptionStatus, TrialPeriodUnits, ExperimentGroupType } from './api/generated/types';
2
+ export { PricingType, SubscriptionStatus, PromotionalEntitlementStatus, Currency, BillingPeriod, BillingModel, TrialPeriodUnits, ExperimentGroupType, } from './api/generated/types';
3
3
  interface Metadata {
4
4
  [key: string]: string;
5
5
  }
@@ -187,6 +187,12 @@ export declare type SubscriptionAddon = {
187
187
  quantity: number;
188
188
  addon: Addon;
189
189
  };
190
+ export declare type ExperimentInfo = {
191
+ id: string;
192
+ name: string;
193
+ groupName: string;
194
+ groupType?: ExperimentGroupType | null;
195
+ };
190
196
  export declare type Subscription = {
191
197
  id: string;
192
198
  status: SubscriptionStatus;
@@ -206,6 +212,7 @@ export declare type Subscription = {
206
212
  trialEndDate?: Date;
207
213
  cancellationDate?: Date;
208
214
  metadata?: Metadata | null;
215
+ experimentInfo?: ExperimentInfo | null;
209
216
  };
210
217
  export declare type Customer = {
211
218
  id: string;
@@ -218,6 +225,7 @@ export declare type Customer = {
218
225
  hasPaymentMethod: boolean;
219
226
  metadata?: Metadata | null;
220
227
  trialedPlans?: TrialedPlan[] | null;
228
+ experimentInfo?: ExperimentInfo | null;
221
229
  getActiveSubscriptions(): Subscription[];
222
230
  getActivePromotionalEntitlements(): PromotionalEntitlement[];
223
231
  getActiveTrials(): Subscription[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/js-client-sdk",
3
- "version": "0.40.0",
3
+ "version": "0.41.0",
4
4
  "description": "Stigg client-side SDK for Browser",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",