@stigg/js-client-sdk 3.100.1 → 3.102.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/api/CreditsApi.d.ts +1 -0
- package/dist/api/SubscriptionsApi.d.ts +1 -1
- package/dist/client.d.ts +2 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +4 -1
- package/dist/offlineClient.d.ts +1 -0
- package/package.json +2 -2
package/dist/api/CreditsApi.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { CreditBalanceSummaryInput, CreditLedgerInput, GetCreditBalanceQuery, Ge
|
|
|
3
3
|
declare class CreditsApi {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: ApolloClient<NormalizedCacheObject>);
|
|
6
|
+
/** @deprecated Use {@link getCreditEntitlement} instead. */
|
|
6
7
|
getCreditBalance(input: CreditBalanceSummaryInput): Promise<import("@apollo/client/core").ApolloQueryResult<GetCreditBalanceQuery>>;
|
|
7
8
|
getCreditGrants(input: GetCreditGrantsInput): Promise<import("@apollo/client/core").ApolloQueryResult<GetCreditGrantsQuery>>;
|
|
8
9
|
getCreditLedger(input: CreditLedgerInput): Promise<import("@apollo/client/core").ApolloQueryResult<GetCreditLedgerQuery>>;
|
|
@@ -10,7 +10,7 @@ export type GetCheckoutStateParams = GetCheckoutState & {
|
|
|
10
10
|
declare class SubscriptionsApi {
|
|
11
11
|
private readonly client;
|
|
12
12
|
constructor(client: ApolloClient<NormalizedCacheObject>);
|
|
13
|
-
applySubscription({ customerId, payingCustomerId, planId, paymentMethodId, addons, billableFeatures, billingInformation, billingCountryCode, billingId, billingPeriod, metadata, promotionCode, resourceId, skipTrial, startDate, unitQuantity, scheduleStrategy, }: ApplySubscriptionParams): Promise<import("@apollo/client/core").FetchResult<ApplySubscriptionMutation, Record<string, any>, Record<string, any>>>;
|
|
13
|
+
applySubscription({ customerId, payingCustomerId, planId, paymentMethodId, addons, billableFeatures, billingInformation, billingCountryCode, billingId, billingPeriod, metadata, promotionCode, resourceId, skipTrial, startDate, unitQuantity, scheduleStrategy, billingCycleAnchor, }: ApplySubscriptionParams): Promise<import("@apollo/client/core").FetchResult<ApplySubscriptionMutation, Record<string, any>, Record<string, any>>>;
|
|
14
14
|
getSubscriptions(customerId?: string, resourceId?: string | string[], status?: SubscriptionStatus | SubscriptionStatus[], productId?: string | string[], pagination?: {
|
|
15
15
|
limit?: number;
|
|
16
16
|
startingAfter?: string;
|
package/dist/client.d.ts
CHANGED
|
@@ -44,6 +44,7 @@ export interface StiggClient {
|
|
|
44
44
|
previewNextInvoice(previewNextInvoice: PreviewNextInvoice): Promise<SubscriptionInvoicePreviewFragment>;
|
|
45
45
|
previewSubscription(previewSubscription: PreviewSubscription): Promise<SubscriptionPreviewV2>;
|
|
46
46
|
getUsageHistoryV2(input: UsageHistoryV2Input): Promise<UsageHistoryV2Fragment>;
|
|
47
|
+
/** @deprecated Use {@link getCreditEntitlement} instead. */
|
|
47
48
|
getCreditBalance(input?: GetCreditBalanceInput): Promise<CreditsBalanceSummaryFragment>;
|
|
48
49
|
getCreditGrants(input: GetCreditGrantsInput): Promise<GetCreditGrantsResult>;
|
|
49
50
|
getCreditLedger(input?: GetCreditLedgerInput): Promise<GetCreditLedgerResult>;
|
|
@@ -277,6 +278,7 @@ export declare class Stigg implements StiggClient {
|
|
|
277
278
|
getCreditUsage(input: GetCreditUsageInput): Promise<CreditUsageFragment>;
|
|
278
279
|
/**
|
|
279
280
|
* Get credit balance
|
|
281
|
+
* @deprecated Use {@link getCreditEntitlement} instead.
|
|
280
282
|
* @return {Promise<CreditsBalanceSummaryFragment>} the credit balance data
|
|
281
283
|
* @param input - the input for the credit balance
|
|
282
284
|
*/
|