@stigg/js-client-sdk 3.85.1 → 3.86.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.
Files changed (55) hide show
  1. package/dist/api/EdgeApiClient.d.ts +1 -1
  2. package/dist/api/MockPaywallApi.d.ts +1 -1
  3. package/dist/api/PaywallApi.d.ts +1 -1
  4. package/dist/api/SubscriptionsApi.d.ts +2 -2
  5. package/dist/api/initApolloClient.d.ts +1 -1
  6. package/dist/configuration.d.ts +1 -1
  7. package/dist/index.esm.js +2 -2
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +2 -2
  10. package/dist/index.js.map +1 -1
  11. package/dist/models.d.ts +101 -101
  12. package/dist/services/eventEmitter.d.ts +1 -1
  13. package/dist/utils/dateUtils.d.ts +1 -1
  14. package/dist/utils/fetch.d.ts +1 -2
  15. package/dist/utils/isMetered.d.ts +1 -1
  16. package/dist/utils/mapGetEntitlementsFallback.d.ts +5 -5
  17. package/dist/utils/withErrorHandling.d.ts +2 -2
  18. package/package.json +15 -16
  19. package/dist/src/api/ApiGateway.d.ts +0 -28
  20. package/dist/src/api/AutomaticRechargeApi.d.ts +0 -23
  21. package/dist/src/api/CheckoutApi.d.ts +0 -8
  22. package/dist/src/api/CouponsApi.d.ts +0 -8
  23. package/dist/src/api/CreditsApi.d.ts +0 -11
  24. package/dist/src/api/CustomersApi.d.ts +0 -16
  25. package/dist/src/api/EdgeApiClient.d.ts +0 -21
  26. package/dist/src/api/EntitlementsApi.d.ts +0 -10
  27. package/dist/src/api/MockPaywallApi.d.ts +0 -10
  28. package/dist/src/api/PaywallApi.d.ts +0 -18
  29. package/dist/src/api/SdkConfigurationApi.d.ts +0 -10
  30. package/dist/src/api/SubscriptionEstimationsApi.d.ts +0 -12
  31. package/dist/src/api/SubscriptionsApi.d.ts +0 -22
  32. package/dist/src/api/UsageHistoryApi.d.ts +0 -7
  33. package/dist/src/api/initApolloClient.d.ts +0 -11
  34. package/dist/src/client.d.ts +0 -312
  35. package/dist/src/clients.d.ts +0 -2
  36. package/dist/src/configuration.d.ts +0 -28
  37. package/dist/src/index.d.ts +0 -6
  38. package/dist/src/models.d.ts +0 -670
  39. package/dist/src/offlineClient.d.ts +0 -46
  40. package/dist/src/services/cacheService.d.ts +0 -14
  41. package/dist/src/services/cachedEntitlement.d.ts +0 -45
  42. package/dist/src/services/entitlementDecisionService.d.ts +0 -10
  43. package/dist/src/services/entitlementsService.d.ts +0 -34
  44. package/dist/src/services/eventEmitter.d.ts +0 -11
  45. package/dist/src/services/inMemoryCacheService.d.ts +0 -22
  46. package/dist/src/services/initializationStateTracker.d.ts +0 -16
  47. package/dist/src/services/loggerService.d.ts +0 -23
  48. package/dist/src/services/sentryService.d.ts +0 -3
  49. package/dist/src/utils/ModelMapper.d.ts +0 -58
  50. package/dist/src/utils/calculateUsagePeriod.d.ts +0 -5
  51. package/dist/src/utils/dateUtils.d.ts +0 -1
  52. package/dist/src/utils/fetch.d.ts +0 -3
  53. package/dist/src/utils/isMetered.d.ts +0 -7
  54. package/dist/src/utils/mapGetEntitlementsFallback.d.ts +0 -35
  55. package/dist/src/utils/withErrorHandling.d.ts +0 -23
@@ -1,6 +1,6 @@
1
1
  import { ApolloQueryResult } from '@apollo/client/core';
2
2
  import { GetActiveSubscriptionsListQuery, GetEntitlementsStateQuery, GetPaywallQuery, GetSdkConfigurationQuery } from '@stigg/api-client-js/src/generated/sdk';
3
- declare type EdgeApiClientConfiguration = {
3
+ type EdgeApiClientConfiguration = {
4
4
  apiKey: string;
5
5
  baseEdgeUri: string;
6
6
  enableEdge: boolean;
@@ -1,7 +1,7 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
2
  import { GetMockPaywallQuery } from '@stigg/api-client-js/src/generated/sdk';
3
3
  import { GetPaywallProps } from './PaywallApi';
4
- declare type GetMockPaywallProps = GetPaywallProps;
4
+ type GetMockPaywallProps = GetPaywallProps;
5
5
  declare class MockPaywallApi {
6
6
  private readonly client;
7
7
  constructor(client: ApolloClient<NormalizedCacheObject>);
@@ -1,7 +1,7 @@
1
1
  import { GetPaywallQuery, WidgetType } from '@stigg/api-client-js/src/generated/sdk';
2
2
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
3
3
  import { EdgeApiClient } from './EdgeApiClient';
4
- export declare type GetPaywallProps = {
4
+ export type GetPaywallProps = {
5
5
  productId?: string;
6
6
  customerId?: string | null;
7
7
  resourceId?: string | null;
@@ -1,10 +1,10 @@
1
1
  import { GetCheckoutStateQuery, ApplySubscriptionMutation, GetSubscriptionsQuery, SubscriptionStatus } from '@stigg/api-client-js/src/generated/sdk';
2
2
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
3
3
  import { ApplySubscription, GetCheckoutState } from '../models';
4
- export declare type ApplySubscriptionParams = ApplySubscription & {
4
+ export type ApplySubscriptionParams = ApplySubscription & {
5
5
  customerId: string;
6
6
  };
7
- export declare type GetCheckoutStateParams = GetCheckoutState & {
7
+ export type GetCheckoutStateParams = GetCheckoutState & {
8
8
  customerId: string;
9
9
  };
10
10
  declare class SubscriptionsApi {
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient } from '@apollo/client/core';
2
- declare type ApolloClientConfiguration = {
2
+ type ApolloClientConfiguration = {
3
3
  apiKey: string;
4
4
  baseUri: string;
5
5
  customerId?: string | null;
@@ -3,7 +3,7 @@ import { EntitlementsFallback } from './models';
3
3
  import { LogConfiguration, LoggerService } from './services/loggerService';
4
4
  export declare const SDK_SOURCE_TYPE = SourceType.JsClientSdk;
5
5
  export declare const SDK_NAME = "js-client-sdk";
6
- export declare type ClientConfiguration = {
6
+ export type ClientConfiguration = {
7
7
  apiKey: string;
8
8
  baseUri?: string;
9
9
  baseEdgeUri?: string;