@stigg/js-client-sdk 1.10.0 → 1.12.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApolloQueryResult } from '@apollo/client/core';
|
|
2
|
-
import { GetEntitlementsQuery, GetPaywallQuery } from './generated/types';
|
|
2
|
+
import { GetEntitlementsQuery, GetPaywallQuery, SdkConfigurationQuery } from './generated/types';
|
|
3
3
|
import { ObservablePoller } from '../utils/ObservablePoller';
|
|
4
4
|
declare type EdgeApiClientConfiguration = {
|
|
5
5
|
apiKey: string;
|
|
@@ -15,6 +15,7 @@ export declare class EdgeApiClient {
|
|
|
15
15
|
}): EdgeApiClient | null;
|
|
16
16
|
getPaywall(productId?: string): Promise<ApolloQueryResult<GetPaywallQuery>>;
|
|
17
17
|
getEntitlements(customerId: string): Promise<ApolloQueryResult<GetEntitlementsQuery>>;
|
|
18
|
+
getSdkConfiguration(): Promise<ApolloQueryResult<SdkConfigurationQuery>>;
|
|
18
19
|
watchEntitlements(customerId: string, interval: number): ObservablePoller<GetEntitlementsQuery>;
|
|
19
20
|
private get;
|
|
20
21
|
}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
|
|
2
|
+
import { EdgeApiClient } from './EdgeApiClient';
|
|
3
|
+
import { SdkConfigurationQuery } from './generated/types';
|
|
2
4
|
declare class SdkConfigurationApi {
|
|
3
5
|
private readonly client;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
sentryDsn?: string | null | undefined;
|
|
8
|
-
isWidgetWatermarkEnabled?: boolean | null | undefined;
|
|
9
|
-
} | null | undefined>;
|
|
6
|
+
private readonly edgeApiClient;
|
|
7
|
+
constructor(client: ApolloClient<NormalizedCacheObject>, edgeApiClient: EdgeApiClient | null);
|
|
8
|
+
getSdkConfiguration(): Promise<import("@apollo/client/core").ApolloQueryResult<SdkConfigurationQuery>>;
|
|
10
9
|
}
|
|
11
10
|
export default SdkConfigurationApi;
|
|
@@ -954,6 +954,7 @@ export declare type FeatureFilter = {
|
|
|
954
954
|
updatedAt?: InputMaybe<DateFieldComparison>;
|
|
955
955
|
};
|
|
956
956
|
export declare type FeatureInput = {
|
|
957
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
957
958
|
description?: InputMaybe<Scalars['String']>;
|
|
958
959
|
displayName: Scalars['String'];
|
|
959
960
|
environmentId: Scalars['String'];
|
|
@@ -2410,6 +2411,7 @@ export declare type UpdateExperimentInput = {
|
|
|
2410
2411
|
variantPercentage?: InputMaybe<Scalars['Float']>;
|
|
2411
2412
|
};
|
|
2412
2413
|
export declare type UpdateFeature = {
|
|
2414
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2413
2415
|
createdAt?: InputMaybe<Scalars['DateTime']>;
|
|
2414
2416
|
description?: InputMaybe<Scalars['String']>;
|
|
2415
2417
|
displayName?: InputMaybe<Scalars['String']>;
|
|
@@ -2424,6 +2426,7 @@ export declare type UpdateFeature = {
|
|
|
2424
2426
|
updatedAt?: InputMaybe<Scalars['DateTime']>;
|
|
2425
2427
|
};
|
|
2426
2428
|
export declare type UpdateFeatureInput = {
|
|
2429
|
+
additionalMetaData?: InputMaybe<Scalars['JSON']>;
|
|
2427
2430
|
description?: InputMaybe<Scalars['String']>;
|
|
2428
2431
|
displayName?: InputMaybe<Scalars['String']>;
|
|
2429
2432
|
environmentId: Scalars['String'];
|
|
@@ -2904,6 +2907,7 @@ export declare type PaywallPackageEntitlementFragment = {
|
|
|
2904
2907
|
displayName: string;
|
|
2905
2908
|
description?: string | null | undefined;
|
|
2906
2909
|
refId: string;
|
|
2910
|
+
additionalMetaData?: any | null | undefined;
|
|
2907
2911
|
} | null | undefined;
|
|
2908
2912
|
};
|
|
2909
2913
|
export declare type PaywallAddonFragment = {
|
|
@@ -3011,6 +3015,7 @@ export declare type PackageEntitlementFragment = {
|
|
|
3011
3015
|
displayName: string;
|
|
3012
3016
|
description?: string | null | undefined;
|
|
3013
3017
|
refId: string;
|
|
3018
|
+
additionalMetaData?: any | null | undefined;
|
|
3014
3019
|
};
|
|
3015
3020
|
};
|
|
3016
3021
|
export declare type AddonFragment = {
|
|
@@ -3288,6 +3293,7 @@ export declare type PromotionalEntitlementFragment = {
|
|
|
3288
3293
|
displayName: string;
|
|
3289
3294
|
description?: string | null | undefined;
|
|
3290
3295
|
refId: string;
|
|
3296
|
+
additionalMetaData?: any | null | undefined;
|
|
3291
3297
|
};
|
|
3292
3298
|
};
|
|
3293
3299
|
export declare type CustomerFragment = {
|