@stigg/js-client-sdk 3.94.0 → 3.98.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 { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { GetAutomaticRechargeConfigurationQuery, SaveAutomaticRechargeConfigurationMutation, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput } from '@stigg/api-client-js/src/generated/sdk';
2
+ import { GetAutomaticRechargeConfigurationQuery, SaveAutomaticRechargeConfigurationMutation, GetAutoRechargeSettingsInput, SaveAutoRechargeSettingsInput } from '@stigg/api-client-js';
3
3
  /**
4
4
  * API class for managing automatic recharge configurations.
5
5
  * Handles GraphQL queries and mutations for automatic recharge settings.
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { CreatePaymentSessionMutation, PaymentSessionInput } from '@stigg/api-client-js/src/generated/sdk';
2
+ import { CreatePaymentSessionMutation, PaymentSessionInput } from '@stigg/api-client-js';
3
3
  declare class CheckoutApi {
4
4
  private readonly client;
5
5
  constructor(client: ApolloClient<NormalizedCacheObject>);
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { GetCouponsQuery } from '@stigg/api-client-js/src/generated/sdk';
2
+ import { GetCouponsQuery } from '@stigg/api-client-js';
3
3
  declare class CouponsApi {
4
4
  private readonly client;
5
5
  constructor(client: ApolloClient<NormalizedCacheObject>);
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { CreditBalanceSummaryInput, CreditLedgerInput, GetCreditBalanceQuery, GetCreditGrantsInput, GetCreditGrantsQuery, GetCreditUsageQuery, CreditUsageInput, GetCreditLedgerQuery } from '@stigg/api-client-js/src/generated/sdk';
2
+ import { CreditBalanceSummaryInput, CreditLedgerInput, GetCreditBalanceQuery, GetCreditGrantsInput, GetCreditGrantsQuery, GetCreditUsageQuery, CreditUsageInput, GetCreditLedgerQuery } from '@stigg/api-client-js';
3
3
  declare class CreditsApi {
4
4
  private readonly client;
5
5
  constructor(client: ApolloClient<NormalizedCacheObject>);
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { GetCustomerPortalByRefIdQuery, GetCustomerByIdQuery, GetActiveSubscriptionsQuery, GetActiveSubscriptionsListQuery, GetSubscriptionQuery, GetUsageHistoryQuery } from '@stigg/api-client-js/src/generated/sdk';
2
+ import { GetCustomerPortalByRefIdQuery, GetCustomerByIdQuery, GetActiveSubscriptionsQuery, GetActiveSubscriptionsListQuery, GetSubscriptionQuery, GetUsageHistoryQuery } from '@stigg/api-client-js';
3
3
  import { FetchUsageHistory } from '../models';
4
4
  import { EdgeApiClient } from './EdgeApiClient';
5
5
  declare class CustomersApi {
@@ -1,5 +1,5 @@
1
1
  import { ApolloQueryResult } from '@apollo/client/core';
2
- import { GetActiveSubscriptionsListQuery, GetEntitlementsStateQuery, GetPaywallQuery, GetSdkConfigurationQuery } from '@stigg/api-client-js/src/generated/sdk';
2
+ import { GetActiveSubscriptionsListQuery, GetEntitlementsStateQuery, GetPaywallQuery, GetSdkConfigurationQuery } from '@stigg/api-client-js';
3
3
  type EdgeApiClientConfiguration = {
4
4
  apiKey: string;
5
5
  baseEdgeUri: string;
@@ -1,6 +1,6 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
2
  import { EdgeApiClient } from './EdgeApiClient';
3
- import { GetEntitlementsStateQuery } from '@stigg/api-client-js/src/generated/sdk';
3
+ import { GetEntitlementsStateQuery } from '@stigg/api-client-js';
4
4
  declare class EntitlementsApi {
5
5
  private readonly client;
6
6
  private readonly edgeApiClient;
@@ -1,5 +1,5 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
- import { GetMockPaywallQuery } from '@stigg/api-client-js/src/generated/sdk';
2
+ import { GetMockPaywallQuery } from '@stigg/api-client-js';
3
3
  import { GetPaywallProps } from './PaywallApi';
4
4
  type GetMockPaywallProps = GetPaywallProps;
5
5
  declare class MockPaywallApi {
@@ -1,4 +1,4 @@
1
- import { GetPaywallQuery, WidgetType } from '@stigg/api-client-js/src/generated/sdk';
1
+ import { GetPaywallQuery, WidgetType } from '@stigg/api-client-js';
2
2
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
3
3
  import { EdgeApiClient } from './EdgeApiClient';
4
4
  export type GetPaywallProps = {
@@ -1,6 +1,6 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
2
  import { EdgeApiClient } from './EdgeApiClient';
3
- import { GetSdkConfigurationQuery } from '@stigg/api-client-js/src/generated/sdk';
3
+ import { GetSdkConfigurationQuery } from '@stigg/api-client-js';
4
4
  declare class SdkConfigurationApi {
5
5
  private readonly client;
6
6
  private readonly edgeApiClient;
@@ -1,6 +1,6 @@
1
1
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
2
2
  import { PreviewSubscription, EstimateSubscription, EstimateSubscriptionUpdate, PreviewNextInvoice } from '../models';
3
- import { EstimateSubscriptionMutation, EstimateSubscriptionUpdateMutation, PreviewSubscriptionMutation, PreviewNextInvoiceMutation } from '@stigg/api-client-js/src/generated/sdk';
3
+ import { EstimateSubscriptionMutation, EstimateSubscriptionUpdateMutation, PreviewSubscriptionMutation, PreviewNextInvoiceMutation } from '@stigg/api-client-js';
4
4
  declare class SubscriptionEstimationsApi {
5
5
  private readonly client;
6
6
  constructor(client: ApolloClient<NormalizedCacheObject>);
@@ -1,4 +1,4 @@
1
- import { GetCheckoutStateQuery, ApplySubscriptionMutation, GetSubscriptionsQuery, SubscriptionStatus } from '@stigg/api-client-js/src/generated/sdk';
1
+ import { GetCheckoutStateQuery, ApplySubscriptionMutation, GetSubscriptionsQuery, SubscriptionStatus } from '@stigg/api-client-js';
2
2
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
3
3
  import { ApplySubscription, GetCheckoutState } from '../models';
4
4
  export type ApplySubscriptionParams = ApplySubscription & {
@@ -1,4 +1,4 @@
1
- import { UsageHistoryV2Input, GetUsageHistoryV2Query } from '@stigg/api-client-js/src/generated/sdk';
1
+ import { UsageHistoryV2Input, GetUsageHistoryV2Query } from '@stigg/api-client-js';
2
2
  import { ApolloClient, NormalizedCacheObject } from '@apollo/client/core';
3
3
  export declare class UsageHistoryApi {
4
4
  private readonly client;
package/dist/client.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { CreditsBalanceSummaryFragment, CreditUsageFragment, PaymentSessionFragment, SlimSubscriptionFragmentV2Fragment, SubscriptionInvoicePreviewFragment, UsageHistoryV2Fragment, UsageHistoryV2Input } from '@stigg/api-client-js/src/generated/sdk';
1
+ import { CreditsBalanceSummaryFragment, CreditUsageFragment, PaymentSessionFragment, SlimSubscriptionFragmentV2Fragment, SubscriptionInvoicePreviewFragment, UsageHistoryV2Fragment, UsageHistoryV2Input } from '@stigg/api-client-js';
2
2
  import { ClientConfiguration } from './configuration';
3
3
  import { ApplySubscription, ApplySubscriptionResults, BooleanEntitlement, Coupon, CreditEntitlement, Customer, CustomerPortal, Entitlement, EstimateSubscription, EstimateSubscriptionUpdate, FetchUsageHistory, GetActiveSubscriptions, GetBooleanEntitlement, GetCheckoutStateResults, GetCheckoutState, GetCreditEntitlement, GetCustomerPortal, GetMeteredEntitlement, GetNumericEntitlement, GetPaywall, GetSubscription, MeteredEntitlement, NumericEntitlement, Paywall, PreviewSubscription, Subscription, SubscriptionPreview, SubscriptionPreviewV2, UsageHistoryPoint, WaitForCheckoutCompleted, PreviewNextInvoice, GetSubscriptionsParams, GetSubscriptionsResult, EnumEntitlement, GetEnumEntitlement, CreatePaymentSessionInput, GetCreditBalanceInput, GetCreditGrantsInput, GetCreditLedgerInput, GetCreditUsageInput, GetCreditGrantsResult, GetCreditLedgerResult, AutomaticRechargeConfiguration, GetAutomaticRechargeConfigurationInput, SaveAutomaticRechargeConfigurationInput, EntitlementsState } from './models';
4
4
  import { EventNames, Events } from './services/eventEmitter';
@@ -1,4 +1,4 @@
1
- import { SourceType } from '@stigg/api-client-js/src/generated/sdk';
1
+ import { SourceType } from '@stigg/api-client-js';
2
2
  import { EntitlementsFallback } from './models';
3
3
  import { LogConfiguration, LoggerService } from './services/loggerService';
4
4
  export declare const SDK_SOURCE_TYPE = SourceType.JsClientSdk;