@stigg/js-client-sdk 0.49.0 → 0.50.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.
@@ -5,6 +5,7 @@ declare class SdkConfigurationApi {
5
5
  getSdkConfiguration(): Promise<{
6
6
  __typename?: "SdkConfiguration" | undefined;
7
7
  sentryDsn?: string | null | undefined;
8
+ isWidgetWatermarkEnabled?: boolean | null | undefined;
8
9
  } | null | undefined>;
9
10
  }
10
11
  export default SdkConfigurationApi;
@@ -190,7 +190,8 @@ export declare type BooleanFieldComparison = {
190
190
  export declare enum ChangeType {
191
191
  Added = "ADDED",
192
192
  Deleted = "DELETED",
193
- Modified = "MODIFIED"
193
+ Modified = "MODIFIED",
194
+ Reordered = "REORDERED"
194
195
  }
195
196
  export declare type CheckoutOptions = {
196
197
  allowPromoCodes?: InputMaybe<Scalars['Boolean']>;
@@ -692,6 +693,7 @@ export declare enum ErrorCode {
692
693
  CheckoutIsNotSupported = "CheckoutIsNotSupported",
693
694
  CheckoutOptionsMissing = "CheckoutOptionsMissing",
694
695
  CouponNotFound = "CouponNotFound",
696
+ CustomerAlreadyUsesCoupon = "CustomerAlreadyUsesCoupon",
695
697
  CustomerHasNoPaymentMethod = "CustomerHasNoPaymentMethod",
696
698
  CustomerNoBillingId = "CustomerNoBillingId",
697
699
  CustomerNotFound = "CustomerNotFound",
@@ -979,6 +981,7 @@ export declare type GetPackageByRefIdInput = {
979
981
  versionNumber?: InputMaybe<Scalars['Float']>;
980
982
  };
981
983
  export declare type GetPaywallInput = {
984
+ environmentId?: InputMaybe<Scalars['String']>;
982
985
  productId?: InputMaybe<Scalars['String']>;
983
986
  };
984
987
  export declare type HookFilter = {
@@ -1703,6 +1706,12 @@ export declare type RemoveCouponFromCustomerInput = {
1703
1706
  /** The id of relation. */
1704
1707
  relationId: Scalars['String'];
1705
1708
  };
1709
+ export declare type RemoveCouponFromCustomerSubscriptionInput = {
1710
+ /** The id of the record. */
1711
+ id: Scalars['String'];
1712
+ /** The id of relation. */
1713
+ relationId: Scalars['String'];
1714
+ };
1706
1715
  export declare type RemoveExperimentFromCustomerInput = {
1707
1716
  /** The id of the record. */
1708
1717
  id: Scalars['String'];
@@ -1737,6 +1746,12 @@ export declare type SetCouponOnCustomerInput = {
1737
1746
  /** The id of relation. */
1738
1747
  relationId: Scalars['String'];
1739
1748
  };
1749
+ export declare type SetCouponOnCustomerSubscriptionInput = {
1750
+ /** The id of the record. */
1751
+ id: Scalars['String'];
1752
+ /** The id of relation. */
1753
+ relationId: Scalars['String'];
1754
+ };
1740
1755
  export declare type SetExperimentOnCustomerInput = {
1741
1756
  /** The id of the record. */
1742
1757
  id: Scalars['String'];
@@ -1926,11 +1941,6 @@ export declare enum SubscriptionDecisionStrategy {
1926
1941
  RequestedPlan = "REQUESTED_PLAN",
1927
1942
  SkippedSubscriptionCreation = "SKIPPED_SUBSCRIPTION_CREATION"
1928
1943
  }
1929
- export declare type SubscriptionEditTrialEndDateInput = {
1930
- environmentId: Scalars['String'];
1931
- subscriptionRefId: Scalars['String'];
1932
- trialEndDate: Scalars['DateTime'];
1933
- };
1934
1944
  export declare enum SubscriptionEndSetup {
1935
1945
  CancelSubscription = "CANCEL_SUBSCRIPTION",
1936
1946
  DowngradeToFree = "DOWNGRADE_TO_FREE"
@@ -2239,6 +2249,15 @@ export declare type UpdateOnePromotionalEntitlementInput = {
2239
2249
  /** The update to apply. */
2240
2250
  update: PromotionalEntitlementUpdateInput;
2241
2251
  };
2252
+ export declare type UpdatePackageEntitlementOrderInput = {
2253
+ entitlements: Array<UpdatePackageEntitlementOrderItemInput>;
2254
+ environmentId?: InputMaybe<Scalars['String']>;
2255
+ packageId: Scalars['String'];
2256
+ };
2257
+ export declare type UpdatePackageEntitlementOrderItemInput = {
2258
+ id: Scalars['String'];
2259
+ order?: InputMaybe<Scalars['Float']>;
2260
+ };
2242
2261
  export declare type UpdateSubscriptionInput = {
2243
2262
  additionalMetaData?: InputMaybe<Scalars['JSON']>;
2244
2263
  addons?: InputMaybe<Array<SubscriptionAddonInput>>;
@@ -2856,6 +2875,7 @@ export declare type SdkConfigurationQuery = {
2856
2875
  sdkConfiguration?: {
2857
2876
  __typename?: 'SdkConfiguration';
2858
2877
  sentryDsn?: string | null | undefined;
2878
+ isWidgetWatermarkEnabled?: boolean | null | undefined;
2859
2879
  } | null | undefined;
2860
2880
  };
2861
2881
  export declare type PriceFragment = {
package/dist/client.d.ts CHANGED
@@ -3,6 +3,7 @@ import { ClientConfiguration } from './configuration';
3
3
  import { EventNames, Events } from './services/eventEmitter';
4
4
  export interface StiggClient {
5
5
  isCustomerLoaded: boolean;
6
+ isWidgetWatermarkEnabled: boolean;
6
7
  getBooleanEntitlement: (params: GetBooleanEntitlement) => BooleanEntitlement;
7
8
  getNumericEntitlement: (params: GetNumericEntitlement) => NumericEntitlement;
8
9
  getMeteredEntitlement: (params: GetMeteredEntitlement) => MeteredEntitlement;
@@ -29,6 +30,7 @@ export declare class Stigg implements StiggClient {
29
30
  private readonly modelMapper;
30
31
  private readonly eventEmitter;
31
32
  private readonly initializationStateTracker;
33
+ private showWidgetsWatermark;
32
34
  private constructor();
33
35
  /**
34
36
  * Creates an instance of Stigg client.
@@ -48,6 +50,7 @@ export declare class Stigg implements StiggClient {
48
50
  waitForInitialization(): Promise<StiggClient>;
49
51
  private static initializeSdk;
50
52
  get isCustomerLoaded(): boolean;
53
+ get isWidgetWatermarkEnabled(): boolean;
51
54
  /**
52
55
  * Add a listener to handle updates of entitlements changes
53
56
  * @param eventName