@stigg/js-client-sdk 3.64.0 → 3.64.1
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/client.d.ts +5 -5
- package/dist/index.esm.js +13 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/dist/models.d.ts +3 -1
- package/dist/offlineClient.d.ts +2 -2
- package/dist/src/client.d.ts +5 -5
- package/dist/src/models.d.ts +3 -1
- package/dist/src/offlineClient.d.ts +2 -2
- package/package.json +2 -2
package/dist/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreditLedgerFragment, CreditsBalanceSummaryFragment, PaymentSessionFragment, SlimSubscriptionFragmentV2Fragment, SubscriptionInvoicePreviewFragment, UsageHistoryV2Fragment, UsageHistoryV2Input } from '@stigg/api-client-js/src/generated/sdk';
|
|
2
2
|
import { ClientConfiguration } from './configuration';
|
|
3
|
-
import { ApplySubscription, ApplySubscriptionResults, BooleanEntitlement, Coupon, Customer, CustomerPortal, Entitlement, EstimateSubscription, EstimateSubscriptionUpdate, FetchUsageHistory, GetActiveSubscriptions, GetBooleanEntitlement, GetCheckoutStateResults, GetCheckoutState, GetCustomerPortal, GetMeteredEntitlement, GetNumericEntitlement, GetPaywall, GetSubscription, MeteredEntitlement, NumericEntitlement, Paywall, PreviewSubscription, Subscription, SubscriptionPreview, SubscriptionPreviewV2, UsageHistoryPoint, WaitForCheckoutCompleted, PreviewNextInvoice, GetSubscriptionsParams, GetSubscriptionsResult, EnumEntitlement, GetEnumEntitlement, CreatePaymentSessionInput, GetCreditBalanceInput, GetCreditGrantsInput, GetCreditLedgerInput } from './models';
|
|
3
|
+
import { ApplySubscription, ApplySubscriptionResults, BooleanEntitlement, Coupon, Customer, CustomerPortal, Entitlement, EstimateSubscription, EstimateSubscriptionUpdate, FetchUsageHistory, GetActiveSubscriptions, GetBooleanEntitlement, GetCheckoutStateResults, GetCheckoutState, GetCustomerPortal, GetMeteredEntitlement, GetNumericEntitlement, GetPaywall, GetSubscription, MeteredEntitlement, NumericEntitlement, Paywall, PreviewSubscription, Subscription, SubscriptionPreview, SubscriptionPreviewV2, UsageHistoryPoint, WaitForCheckoutCompleted, PreviewNextInvoice, GetSubscriptionsParams, GetSubscriptionsResult, EnumEntitlement, GetEnumEntitlement, CreatePaymentSessionInput, GetCreditBalanceInput, GetCreditGrantsInput, GetCreditLedgerInput, GetCreditGrantsResult } from './models';
|
|
4
4
|
import { EventNames, Events } from './services/eventEmitter';
|
|
5
5
|
import { LoggerService } from './services/loggerService';
|
|
6
6
|
export interface StiggClient {
|
|
@@ -38,7 +38,7 @@ export interface StiggClient {
|
|
|
38
38
|
previewSubscription(previewSubscription: PreviewSubscription): Promise<SubscriptionPreviewV2>;
|
|
39
39
|
getUsageHistoryV2(input: UsageHistoryV2Input): Promise<UsageHistoryV2Fragment>;
|
|
40
40
|
getCreditBalance(input?: GetCreditBalanceInput): Promise<CreditsBalanceSummaryFragment>;
|
|
41
|
-
getCreditGrants(input: GetCreditGrantsInput): Promise<
|
|
41
|
+
getCreditGrants(input: GetCreditGrantsInput): Promise<GetCreditGrantsResult>;
|
|
42
42
|
getCreditLedger(input?: GetCreditLedgerInput): Promise<CreditLedgerFragment[]>;
|
|
43
43
|
createPaymentSession(input: CreatePaymentSessionInput): Promise<PaymentSessionFragment>;
|
|
44
44
|
}
|
|
@@ -253,10 +253,10 @@ export declare class Stigg implements StiggClient {
|
|
|
253
253
|
getCreditBalance(input?: GetCreditBalanceInput): Promise<CreditsBalanceSummaryFragment>;
|
|
254
254
|
/**
|
|
255
255
|
* Get credit grants
|
|
256
|
-
* @return {Promise<
|
|
256
|
+
* @return {Promise<GetCreditGrantsResult>} paginated result of the credit grants data
|
|
257
257
|
* @param input - the input for the credit grants
|
|
258
258
|
*/
|
|
259
|
-
getCreditGrants(input: GetCreditGrantsInput): Promise<
|
|
259
|
+
getCreditGrants(input: GetCreditGrantsInput): Promise<GetCreditGrantsResult>;
|
|
260
260
|
/**
|
|
261
261
|
* Get credit ledger
|
|
262
262
|
* @return {Promise<CreditLedgerFragment[]>} the credit ledger data
|