@buildbase/sdk 0.0.23 → 0.0.25
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/index.esm.js +4 -5
- package/dist/index.js +4 -5
- package/dist/saas-os.css +1 -1
- package/package.json +3 -2
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/types/api/currency-utils.d.ts +0 -44
- package/dist/types/api/index.d.ts +0 -12
- package/dist/types/api/pricing-variant-utils.d.ts +0 -66
- package/dist/types/api/quota-utils.d.ts +0 -24
- package/dist/types/api/types.d.ts +0 -495
- package/dist/types/components/ErrorBoundary.d.ts +0 -81
- package/dist/types/components/beta/BetaForm.d.ts +0 -24
- package/dist/types/components/beta/api.d.ts +0 -48
- package/dist/types/components/beta/hooks.d.ts +0 -11
- package/dist/types/components/beta/schema.d.ts +0 -6
- package/dist/types/components/beta/types.d.ts +0 -8
- package/dist/types/components/dropdowns/country/countries.d.ts +0 -7
- package/dist/types/components/dropdowns/country/selectCountry.d.ts +0 -6
- package/dist/types/components/dropdowns/currency/currencies.d.ts +0 -6
- package/dist/types/components/dropdowns/currency/selectCurrency.d.ts +0 -6
- package/dist/types/components/dropdowns/language/languages.d.ts +0 -6
- package/dist/types/components/dropdowns/language/selectLanguage.d.ts +0 -6
- package/dist/types/components/dropdowns/timezone/selectTimeZone.d.ts +0 -6
- package/dist/types/components/dropdowns/timezone/timezones.d.ts +0 -8
- package/dist/types/components/features/index.d.ts +0 -130
- package/dist/types/components/pricing/PricingPage.d.ts +0 -49
- package/dist/types/components/pricing/index.d.ts +0 -2
- package/dist/types/components/quota/index.d.ts +0 -121
- package/dist/types/components/subscription/index.d.ts +0 -182
- package/dist/types/components/ui/alert-dialog.d.ts +0 -20
- package/dist/types/components/ui/avatar.d.ts +0 -6
- package/dist/types/components/ui/button.d.ts +0 -18
- package/dist/types/components/ui/command-select.d.ts +0 -13
- package/dist/types/components/ui/command.d.ts +0 -82
- package/dist/types/components/ui/dialog.d.ts +0 -19
- package/dist/types/components/ui/form.d.ts +0 -23
- package/dist/types/components/ui/input.d.ts +0 -5
- package/dist/types/components/ui/label.d.ts +0 -5
- package/dist/types/components/ui/popover.d.ts +0 -6
- package/dist/types/components/ui/radio-group.d.ts +0 -5
- package/dist/types/components/ui/scroll-area.d.ts +0 -5
- package/dist/types/components/ui/select.d.ts +0 -11
- package/dist/types/components/ui/separator.d.ts +0 -4
- package/dist/types/components/ui/skeleton.d.ts +0 -3
- package/dist/types/components/ui/switch.d.ts +0 -4
- package/dist/types/components/user/auth.d.ts +0 -76
- package/dist/types/components/user/role.d.ts +0 -84
- package/dist/types/contexts/AuthContext/AuthContext.d.ts +0 -9
- package/dist/types/contexts/AuthContext/actions.d.ts +0 -12
- package/dist/types/contexts/AuthContext/index.d.ts +0 -4
- package/dist/types/contexts/AuthContext/reducer.d.ts +0 -19
- package/dist/types/contexts/AuthContext/types.d.ts +0 -18
- package/dist/types/contexts/OSContext/OSContext.d.ts +0 -9
- package/dist/types/contexts/OSContext/actions.d.ts +0 -11
- package/dist/types/contexts/OSContext/index.d.ts +0 -4
- package/dist/types/contexts/OSContext/reducer.d.ts +0 -11
- package/dist/types/contexts/OSContext/types.d.ts +0 -16
- package/dist/types/contexts/QuotaUsageContext/QuotaUsageContext.d.ts +0 -22
- package/dist/types/contexts/QuotaUsageContext/index.d.ts +0 -2
- package/dist/types/contexts/QuotaUsageContext/quotaUsageInvalidation.d.ts +0 -21
- package/dist/types/contexts/QuotaUsageContext/types.d.ts +0 -14
- package/dist/types/contexts/SDKContext/SDKContextProvider.d.ts +0 -18
- package/dist/types/contexts/SDKContext/index.d.ts +0 -2
- package/dist/types/contexts/SDKContext/types.d.ts +0 -12
- package/dist/types/contexts/SubscriptionContext/SubscriptionContext.d.ts +0 -22
- package/dist/types/contexts/SubscriptionContext/index.d.ts +0 -2
- package/dist/types/contexts/SubscriptionContext/subscriptionInvalidation.d.ts +0 -21
- package/dist/types/contexts/SubscriptionContext/types.d.ts +0 -14
- package/dist/types/contexts/WorkspaceContext/WorkspaceContext.d.ts +0 -8
- package/dist/types/contexts/WorkspaceContext/actions.d.ts +0 -19
- package/dist/types/contexts/WorkspaceContext/index.d.ts +0 -4
- package/dist/types/contexts/WorkspaceContext/reducer.d.ts +0 -10
- package/dist/types/contexts/WorkspaceContext/types.d.ts +0 -52
- package/dist/types/contexts/index.d.ts +0 -14
- package/dist/types/contexts/shared/createContext.d.ts +0 -27
- package/dist/types/contexts/shared/types.d.ts +0 -21
- package/dist/types/contexts/shared/useAppDispatch.d.ts +0 -20
- package/dist/types/contexts/shared/useAppSelector.d.ts +0 -26
- package/dist/types/contexts/shared/useSelectWithEquality.d.ts +0 -10
- package/dist/types/contexts/shared/utils/reducerHelpers.d.ts +0 -11
- package/dist/types/contexts/shared/utils/storage.d.ts +0 -25
- package/dist/types/hooks/use-seat-status.d.ts +0 -42
- package/dist/types/hooks/use-trial-status.d.ts +0 -28
- package/dist/types/index.d.ts +0 -39
- package/dist/types/lib/api-base.d.ts +0 -49
- package/dist/types/lib/api-client.d.ts +0 -25
- package/dist/types/lib/api-utils.d.ts +0 -182
- package/dist/types/lib/error-handler.d.ts +0 -118
- package/dist/types/lib/logger.d.ts +0 -27
- package/dist/types/lib/useAsyncEffect.d.ts +0 -29
- package/dist/types/lib/utils.d.ts +0 -7
- package/dist/types/providers/ContextConfigProvider.d.ts +0 -15
- package/dist/types/providers/PortalContainer.d.ts +0 -9
- package/dist/types/providers/SaaSOSProvider.d.ts +0 -7
- package/dist/types/providers/auth/api.d.ts +0 -12
- package/dist/types/providers/auth/hooks.d.ts +0 -75
- package/dist/types/providers/auth/provider.d.ts +0 -13
- package/dist/types/providers/auth/types.d.ts +0 -62
- package/dist/types/providers/auth/utils.d.ts +0 -40
- package/dist/types/providers/constants.d.ts +0 -3
- package/dist/types/providers/events/EventEmitter.d.ts +0 -81
- package/dist/types/providers/events/index.d.ts +0 -2
- package/dist/types/providers/events/types.d.ts +0 -61
- package/dist/types/providers/os/api.d.ts +0 -11
- package/dist/types/providers/os/hooks.d.ts +0 -50
- package/dist/types/providers/os/types.d.ts +0 -19
- package/dist/types/providers/types.d.ts +0 -9
- package/dist/types/providers/user/api.d.ts +0 -16
- package/dist/types/providers/user/hooks.d.ts +0 -80
- package/dist/types/providers/user/provider.d.ts +0 -17
- package/dist/types/providers/workspace/WorkspaceSettingsProvider.d.ts +0 -9
- package/dist/types/providers/workspace/api.d.ts +0 -155
- package/dist/types/providers/workspace/hooks.d.ts +0 -161
- package/dist/types/providers/workspace/provider.d.ts +0 -8
- package/dist/types/providers/workspace/settings-manager.d.ts +0 -36
- package/dist/types/providers/workspace/subscription-hooks.d.ts +0 -741
- package/dist/types/providers/workspace/types.d.ts +0 -61
- package/dist/types/providers/workspace/ui/SettingsDanger.d.ts +0 -6
- package/dist/types/providers/workspace/ui/SettingsDialog.d.ts +0 -17
- package/dist/types/providers/workspace/ui/SettingsFeatures.d.ts +0 -5
- package/dist/types/providers/workspace/ui/SettingsGeneral.d.ts +0 -6
- package/dist/types/providers/workspace/ui/SettingsInvoices.d.ts +0 -12
- package/dist/types/providers/workspace/ui/SettingsProfile.d.ts +0 -6
- package/dist/types/providers/workspace/ui/SettingsSubscription.d.ts +0 -6
- package/dist/types/providers/workspace/ui/SettingsUsage.d.ts +0 -3
- package/dist/types/providers/workspace/ui/SettingsUsers.d.ts +0 -6
- package/dist/types/providers/workspace/ui/Sidebar.d.ts +0 -10
- package/dist/types/providers/workspace/ui/Skeleton.d.ts +0 -1
- package/dist/types/providers/workspace/ui/SubscriptionDialog.d.ts +0 -19
- package/dist/types/providers/workspace/ui/utils.d.ts +0 -2
- package/dist/types/providers/workspace/utils.d.ts +0 -28
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from 'react';
|
|
2
|
-
import type { AuthSession, IAuthState } from '../../providers/auth/types';
|
|
3
|
-
export type AuthAction = {
|
|
4
|
-
type: 'AUTHENTICATION_STARTED';
|
|
5
|
-
} | {
|
|
6
|
-
type: 'AUTHENTICATION_PROCESSING';
|
|
7
|
-
} | {
|
|
8
|
-
type: 'AUTHENTICATION_FAILED';
|
|
9
|
-
} | {
|
|
10
|
-
type: 'SET_SESSION';
|
|
11
|
-
payload: AuthSession;
|
|
12
|
-
} | {
|
|
13
|
-
type: 'REMOVE_SESSION';
|
|
14
|
-
};
|
|
15
|
-
export interface AuthContextValue {
|
|
16
|
-
state: IAuthState;
|
|
17
|
-
dispatch: Dispatch<AuthAction>;
|
|
18
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { IOsState } from '../../providers/os/types';
|
|
2
|
-
import type { OSAction, OSContextValue } from './types';
|
|
3
|
-
export declare const OSContextProvider: import("react").FC<{
|
|
4
|
-
children: import("react").ReactNode;
|
|
5
|
-
}>;
|
|
6
|
-
export declare const useOSContext: () => OSContextValue;
|
|
7
|
-
export declare const useOSState: () => IOsState;
|
|
8
|
-
export declare const useOSDispatch: () => import("react").Dispatch<OSAction>;
|
|
9
|
-
export declare const useOSSelector: <Selected = IOsState>(selector?: ((state: IOsState) => Selected) | undefined, equalityFn?: ((a: Selected, b: Selected) => boolean) | undefined) => Selected;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* OS action creators
|
|
3
|
-
*/
|
|
4
|
-
import type { IOsState } from '../../providers/os/types';
|
|
5
|
-
import type { ISettings } from '../../providers/types';
|
|
6
|
-
import type { OSAction } from './types';
|
|
7
|
-
export declare const osActions: {
|
|
8
|
-
setSaaSOSConfig: (config: IOsState) => OSAction;
|
|
9
|
-
removeSaaSOSConfig: () => OSAction;
|
|
10
|
-
setSettings: (settings: ISettings | null) => OSAction;
|
|
11
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type IOsState } from '../../providers/os/types';
|
|
2
|
-
import type { OSAction } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Initial state for OS context
|
|
5
|
-
*/
|
|
6
|
-
export declare const getInitialOSState: () => IOsState;
|
|
7
|
-
/**
|
|
8
|
-
* OS reducer for Context API
|
|
9
|
-
* Handles OS configuration state updates with proper immutability
|
|
10
|
-
*/
|
|
11
|
-
export declare const osReducer: (state: IOsState, action: OSAction) => IOsState;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from 'react';
|
|
2
|
-
import type { IOsState } from '../../providers/os/types';
|
|
3
|
-
import type { ISettings } from '../../providers/types';
|
|
4
|
-
export type OSAction = {
|
|
5
|
-
type: 'SET_SAAS_OS_CONFIG';
|
|
6
|
-
payload: IOsState;
|
|
7
|
-
} | {
|
|
8
|
-
type: 'REMOVE_SAAS_OS_CONFIG';
|
|
9
|
-
} | {
|
|
10
|
-
type: 'SET_SETTINGS';
|
|
11
|
-
payload: ISettings | null;
|
|
12
|
-
};
|
|
13
|
-
export interface OSContextValue {
|
|
14
|
-
state: IOsState;
|
|
15
|
-
dispatch: Dispatch<OSAction>;
|
|
16
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { QuotaUsageContextValue } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Provides quota usage data for the current workspace to quota gate components.
|
|
5
|
-
* Fetches when workspace changes; refetches when quota usage is invalidated (e.g. after recording usage).
|
|
6
|
-
* Must wrap (or be ancestor of) any component that uses WhenQuotaAvailable, WhenQuotaExhausted,
|
|
7
|
-
* WhenQuotaOverage, WhenQuotaThreshold, or useQuotaUsageContext. Included in SaaSOSProvider by default.
|
|
8
|
-
*
|
|
9
|
-
* @param props - Component props
|
|
10
|
-
* @param props.children - React tree that may use quota gates or useQuotaUsageContext
|
|
11
|
-
* @returns Provider element that supplies quota usage context to descendants
|
|
12
|
-
*/
|
|
13
|
-
export declare const QuotaUsageContextProvider: React.FC<{
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* Returns quota usage data for the current workspace. Must be used within QuotaUsageContextProvider.
|
|
18
|
-
*
|
|
19
|
-
* @returns QuotaUsageContextValue - { quotas, loading, refetch }
|
|
20
|
-
* @throws Error if used outside QuotaUsageContextProvider
|
|
21
|
-
*/
|
|
22
|
-
export declare function useQuotaUsageContext(): QuotaUsageContextValue;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal notifier for quota usage data invalidation.
|
|
3
|
-
* When usage is recorded (via useRecordUsage), call invalidateQuotaUsage()
|
|
4
|
-
* so QuotaUsageContextProvider refetches and gates stay in sync.
|
|
5
|
-
*/
|
|
6
|
-
type Listener = () => void;
|
|
7
|
-
/**
|
|
8
|
-
* Subscribe a refetch callback to be called when quota usage is invalidated.
|
|
9
|
-
*
|
|
10
|
-
* @param fn - Callback (e.g. refetch) to run when invalidateQuotaUsage() is called
|
|
11
|
-
* @returns Unsubscribe function to remove the callback
|
|
12
|
-
*/
|
|
13
|
-
export declare function subscribeQuotaUsageInvalidate(fn: Listener): () => void;
|
|
14
|
-
/**
|
|
15
|
-
* Notify all subscribers to refetch quota usage (e.g. after recording usage).
|
|
16
|
-
* Called internally by useRecordUsage on success.
|
|
17
|
-
*/
|
|
18
|
-
export declare function invalidateQuotaUsage(): void;
|
|
19
|
-
/** Reset all listeners. Intended for test cleanup. */
|
|
20
|
-
export declare function resetQuotaUsageInvalidation(): void;
|
|
21
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { IQuotaUsageStatus } from '../../api/types';
|
|
2
|
-
/**
|
|
3
|
-
* Value provided by QuotaUsageContext and returned by useQuotaUsageContext.
|
|
4
|
-
*/
|
|
5
|
-
export interface QuotaUsageContextValue {
|
|
6
|
-
/** Current quota usage statuses keyed by slug, or null if not loaded. */
|
|
7
|
-
quotas: Record<string, IQuotaUsageStatus> | null;
|
|
8
|
-
/** True while quota usage is being fetched. */
|
|
9
|
-
loading: boolean;
|
|
10
|
-
/** Error message if the last fetch failed, or null. */
|
|
11
|
-
error: string | null;
|
|
12
|
-
/** Refetch all quota usage for the current workspace. Call after recording usage or when usage was updated elsewhere. */
|
|
13
|
-
refetch: () => Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* SDK Context Provider
|
|
4
|
-
* Combines all context providers in the correct order
|
|
5
|
-
*
|
|
6
|
-
* Provider hierarchy:
|
|
7
|
-
* 1. OSContextProvider - Base configuration (serverUrl, version, orgId)
|
|
8
|
-
* 2. AuthContextProvider - Authentication context (state management)
|
|
9
|
-
* 3. WorkspaceContextProvider - Workspace context (state management)
|
|
10
|
-
*
|
|
11
|
-
* Note: The AuthProviderWrapper (from providers/auth/provider.tsx) should wrap this
|
|
12
|
-
* to add authentication logic like token handling and callbacks.
|
|
13
|
-
*
|
|
14
|
-
* This order ensures dependencies are available when needed.
|
|
15
|
-
*/
|
|
16
|
-
export declare const SDKContextProvider: React.FC<{
|
|
17
|
-
children: ReactNode;
|
|
18
|
-
}>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { AuthContextValue } from '../AuthContext/types';
|
|
2
|
-
import type { OSContextValue } from '../OSContext/types';
|
|
3
|
-
import type { WorkspaceContextValue } from '../WorkspaceContext/types';
|
|
4
|
-
/**
|
|
5
|
-
* Combined SDK Context Value
|
|
6
|
-
* Represents the complete context structure across all contexts
|
|
7
|
-
*/
|
|
8
|
-
export interface SDKContextValue {
|
|
9
|
-
auth: AuthContextValue;
|
|
10
|
-
workspace: WorkspaceContextValue;
|
|
11
|
-
os: OSContextValue;
|
|
12
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
2
|
-
import type { SubscriptionContextValue } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Provides subscription data for the current workspace to subscription gate components.
|
|
5
|
-
* Fetches when workspace changes; refetches when subscription is invalidated (e.g. after plan change).
|
|
6
|
-
* Must wrap (or be ancestor of) any component that uses WhenSubscription, WhenNoSubscription,
|
|
7
|
-
* WhenSubscriptionToPlans, or useSubscriptionContext. Included in SaaSOSProvider by default.
|
|
8
|
-
*
|
|
9
|
-
* @param props - Component props
|
|
10
|
-
* @param props.children - React tree that may use subscription gates or useSubscriptionContext
|
|
11
|
-
* @returns Provider element that supplies subscription context to descendants
|
|
12
|
-
*/
|
|
13
|
-
export declare const SubscriptionContextProvider: React.FC<{
|
|
14
|
-
children: ReactNode;
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* Returns subscription data for the current workspace. Must be used within SubscriptionContextProvider.
|
|
18
|
-
*
|
|
19
|
-
* @returns SubscriptionContextValue - { response, loading, refetch }
|
|
20
|
-
* @throws Error if used outside SubscriptionContextProvider
|
|
21
|
-
*/
|
|
22
|
-
export declare function useSubscriptionContext(): SubscriptionContextValue;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Internal notifier for subscription data invalidation.
|
|
3
|
-
* When subscription is updated (plan change, cancel, resume), call invalidateSubscription()
|
|
4
|
-
* so SubscriptionContextProvider refetches and gates stay in sync.
|
|
5
|
-
*/
|
|
6
|
-
type Listener = () => void;
|
|
7
|
-
/**
|
|
8
|
-
* Subscribe a refetch callback to be called when subscription is invalidated.
|
|
9
|
-
*
|
|
10
|
-
* @param fn - Callback (e.g. refetch) to run when invalidateSubscription() is called
|
|
11
|
-
* @returns Unsubscribe function to remove the callback
|
|
12
|
-
*/
|
|
13
|
-
export declare function subscribeSubscriptionInvalidate(fn: Listener): () => void;
|
|
14
|
-
/**
|
|
15
|
-
* Notify all subscribers to refetch subscription (e.g. after update/cancel/resume).
|
|
16
|
-
* Called internally by useUpdateSubscription, useCancelSubscription, useResumeSubscription on success.
|
|
17
|
-
*/
|
|
18
|
-
export declare function invalidateSubscription(): void;
|
|
19
|
-
/** Reset all listeners. Intended for test cleanup. */
|
|
20
|
-
export declare function resetSubscriptionInvalidation(): void;
|
|
21
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ISubscriptionResponse } from '../../api/types';
|
|
2
|
-
/**
|
|
3
|
-
* Value provided by SubscriptionContext and returned by useSubscriptionContext.
|
|
4
|
-
*/
|
|
5
|
-
export interface SubscriptionContextValue {
|
|
6
|
-
/** Current subscription response for the current workspace, or null if none or not loaded. */
|
|
7
|
-
response: ISubscriptionResponse | null;
|
|
8
|
-
/** True while subscription is being fetched. */
|
|
9
|
-
loading: boolean;
|
|
10
|
-
/** Error message if the last fetch failed, or null. */
|
|
11
|
-
error: string | null;
|
|
12
|
-
/** Refetch subscription for the current workspace. Call after plan change (e.g. upgrade) or when subscription was updated elsewhere. */
|
|
13
|
-
refetch: () => Promise<void>;
|
|
14
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceAction, WorkspaceContextValue, WorkspaceState } from './types';
|
|
2
|
-
export declare const WorkspaceContextProvider: import("react").FC<{
|
|
3
|
-
children: import("react").ReactNode;
|
|
4
|
-
}>;
|
|
5
|
-
export declare const useWorkspaceContext: () => WorkspaceContextValue;
|
|
6
|
-
export declare const useWorkspaceState: () => WorkspaceState;
|
|
7
|
-
export declare const useWorkspaceDispatch: () => import("react").Dispatch<WorkspaceAction>;
|
|
8
|
-
export declare const useWorkspaceSelector: <Selected = WorkspaceState>(selector?: ((state: WorkspaceState) => Selected) | undefined, equalityFn?: ((a: Selected, b: Selected) => boolean) | undefined) => Selected;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspace action creators
|
|
3
|
-
*/
|
|
4
|
-
import type { IWorkspace, IWorkspaceFeature } from '../../providers/workspace/types';
|
|
5
|
-
import type { WorkspaceAction } from './types';
|
|
6
|
-
export declare const workspaceActions: {
|
|
7
|
-
setWorkspaces: (workspaces: IWorkspace[]) => WorkspaceAction;
|
|
8
|
-
addWorkspace: (workspace: IWorkspace) => WorkspaceAction;
|
|
9
|
-
updateWorkspace: (workspace: IWorkspace) => WorkspaceAction;
|
|
10
|
-
removeWorkspace: (workspaceId: string) => WorkspaceAction;
|
|
11
|
-
setAllFeatures: (features: IWorkspaceFeature[]) => WorkspaceAction;
|
|
12
|
-
setCurrentWorkspace: (workspace: IWorkspace) => WorkspaceAction;
|
|
13
|
-
resetCurrentWorkspace: () => WorkspaceAction;
|
|
14
|
-
setIsInitialized: (isInitialized: boolean) => WorkspaceAction;
|
|
15
|
-
setLoading: (loading: boolean) => WorkspaceAction;
|
|
16
|
-
setError: (error: string | null) => WorkspaceAction;
|
|
17
|
-
setRefreshing: (refreshing: boolean) => WorkspaceAction;
|
|
18
|
-
setSwitchingToId: (workspaceId: string | null) => WorkspaceAction;
|
|
19
|
-
};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { workspaceActions } from './actions';
|
|
2
|
-
export { getInitialWorkspaceState, workspaceReducer } from './reducer';
|
|
3
|
-
export type { WorkspaceAction, WorkspaceContextValue, WorkspaceState } from './types';
|
|
4
|
-
export { WorkspaceContextProvider, useWorkspaceContext, useWorkspaceDispatch, useWorkspaceSelector, useWorkspaceState, } from './WorkspaceContext';
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { WorkspaceAction, WorkspaceState } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Initial state for workspace context
|
|
4
|
-
*/
|
|
5
|
-
export declare const getInitialWorkspaceState: () => WorkspaceState;
|
|
6
|
-
/**
|
|
7
|
-
* Workspace reducer for Context API
|
|
8
|
-
* Handles all workspace state updates with proper immutability
|
|
9
|
-
*/
|
|
10
|
-
export declare const workspaceReducer: (state: WorkspaceState, action: WorkspaceAction) => WorkspaceState;
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from 'react';
|
|
2
|
-
import type { IWorkspace, IWorkspaceFeature } from '../../providers/workspace/types';
|
|
3
|
-
export type WorkspaceAction = {
|
|
4
|
-
type: 'SET_WORKSPACES';
|
|
5
|
-
payload: IWorkspace[];
|
|
6
|
-
} | {
|
|
7
|
-
type: 'ADD_WORKSPACE';
|
|
8
|
-
payload: IWorkspace;
|
|
9
|
-
} | {
|
|
10
|
-
type: 'UPDATE_WORKSPACE';
|
|
11
|
-
payload: IWorkspace;
|
|
12
|
-
} | {
|
|
13
|
-
type: 'REMOVE_WORKSPACE';
|
|
14
|
-
payload: string;
|
|
15
|
-
} | {
|
|
16
|
-
type: 'SET_ALL_FEATURES';
|
|
17
|
-
payload: IWorkspaceFeature[];
|
|
18
|
-
} | {
|
|
19
|
-
type: 'SET_CURRENT_WORKSPACE';
|
|
20
|
-
payload: IWorkspace;
|
|
21
|
-
} | {
|
|
22
|
-
type: 'RESET_CURRENT_WORKSPACE';
|
|
23
|
-
} | {
|
|
24
|
-
type: 'SET_IS_INITIALIZED';
|
|
25
|
-
payload: boolean;
|
|
26
|
-
} | {
|
|
27
|
-
type: 'SET_LOADING';
|
|
28
|
-
payload: boolean;
|
|
29
|
-
} | {
|
|
30
|
-
type: 'SET_ERROR';
|
|
31
|
-
payload: string | null;
|
|
32
|
-
} | {
|
|
33
|
-
type: 'SET_REFRESHING';
|
|
34
|
-
payload: boolean;
|
|
35
|
-
} | {
|
|
36
|
-
type: 'SET_SWITCHING_TO_ID';
|
|
37
|
-
payload: string | null;
|
|
38
|
-
};
|
|
39
|
-
export interface WorkspaceState {
|
|
40
|
-
workspaces: IWorkspace[];
|
|
41
|
-
loading: boolean;
|
|
42
|
-
error: string | null;
|
|
43
|
-
currentWorkspace: IWorkspace | null;
|
|
44
|
-
refreshing: boolean;
|
|
45
|
-
switchingToId: string | null;
|
|
46
|
-
isInitialized: boolean;
|
|
47
|
-
allFeatures: IWorkspaceFeature[];
|
|
48
|
-
}
|
|
49
|
-
export interface WorkspaceContextValue {
|
|
50
|
-
state: WorkspaceState;
|
|
51
|
-
dispatch: Dispatch<WorkspaceAction>;
|
|
52
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export { AuthContextProvider, authActions, authReducer, getInitialAuthState, useAuthContext, useAuthDispatch, useAuthSelector, useAuthState, } from './AuthContext';
|
|
2
|
-
export type { AuthAction, AuthContextValue } from './AuthContext';
|
|
3
|
-
export { OSContextProvider, getInitialOSState, osActions, osReducer, useOSContext, useOSDispatch, useOSSelector, useOSState, } from './OSContext';
|
|
4
|
-
export type { OSAction, OSContextValue } from './OSContext';
|
|
5
|
-
export { WorkspaceContextProvider, getInitialWorkspaceState, useWorkspaceContext, useWorkspaceDispatch, useWorkspaceSelector, useWorkspaceState, workspaceActions, workspaceReducer, } from './WorkspaceContext';
|
|
6
|
-
export type { WorkspaceAction, WorkspaceContextValue, WorkspaceState } from './WorkspaceContext';
|
|
7
|
-
export { SDKContextProvider } from './SDKContext';
|
|
8
|
-
export type { SDKContextValue } from './SDKContext';
|
|
9
|
-
export { SubscriptionContextProvider, useSubscriptionContext } from './SubscriptionContext';
|
|
10
|
-
export type { SubscriptionContextValue } from './SubscriptionContext';
|
|
11
|
-
export { useAppSelector } from './shared/useAppSelector';
|
|
12
|
-
export type { SDKState } from './shared/useAppSelector';
|
|
13
|
-
export { useAppDispatch } from './shared/useAppDispatch';
|
|
14
|
-
export type { SDKDispatch } from './shared/useAppDispatch';
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React, { type Dispatch, type ReactNode } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Generic context factory with performance optimizations
|
|
4
|
-
* Creates a context, provider, and hooks with minimal boilerplate
|
|
5
|
-
*
|
|
6
|
-
* Optimizations:
|
|
7
|
-
* - Memoized context value to prevent unnecessary re-renders
|
|
8
|
-
* - Stable dispatch reference (already stable from useReducer)
|
|
9
|
-
* - Split state/dispatch for selective subscriptions
|
|
10
|
-
*/
|
|
11
|
-
export declare function createContextProvider<State, Action>({ name, initialState, reducer, initializer, }: {
|
|
12
|
-
name: string;
|
|
13
|
-
initialState: State;
|
|
14
|
-
reducer: (state: State, action: Action) => State;
|
|
15
|
-
initializer?: (initialState: State) => State;
|
|
16
|
-
}): {
|
|
17
|
-
Provider: React.FC<{
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
}>;
|
|
20
|
-
useContext: () => {
|
|
21
|
-
state: State;
|
|
22
|
-
dispatch: Dispatch<Action>;
|
|
23
|
-
};
|
|
24
|
-
useState: () => State;
|
|
25
|
-
useDispatch: () => React.Dispatch<Action>;
|
|
26
|
-
useSelector: <Selected = State>(selector?: (state: State) => Selected, equalityFn?: (a: Selected, b: Selected) => boolean) => Selected;
|
|
27
|
-
};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Combined SDK state and dispatch types.
|
|
3
|
-
* Single source of truth for the shape used by useAppSelector and useAppDispatch.
|
|
4
|
-
*/
|
|
5
|
-
import type { IAuthState } from '../../providers/auth/types';
|
|
6
|
-
import type { IOsState } from '../../providers/os/types';
|
|
7
|
-
import type { AuthAction } from '../AuthContext/types';
|
|
8
|
-
import type { OSAction } from '../OSContext/types';
|
|
9
|
-
import type { WorkspaceAction, WorkspaceState } from '../WorkspaceContext/types';
|
|
10
|
-
/** Combined SDK state (state only, no dispatch). Used by useAppSelector. */
|
|
11
|
-
export interface SDKState {
|
|
12
|
-
os: IOsState;
|
|
13
|
-
auth: IAuthState;
|
|
14
|
-
workspaces: WorkspaceState;
|
|
15
|
-
}
|
|
16
|
-
/** Combined SDK dispatch. Used by useAppDispatch. */
|
|
17
|
-
export interface SDKDispatch {
|
|
18
|
-
auth: (action: AuthAction) => void;
|
|
19
|
-
os: (action: OSAction) => void;
|
|
20
|
-
workspaces: (action: WorkspaceAction) => void;
|
|
21
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { SDKDispatch } from './types';
|
|
2
|
-
export type { SDKDispatch } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Combined dispatch hook - dispatch actions to all contexts
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```tsx
|
|
8
|
-
* const dispatch = useAppDispatch();
|
|
9
|
-
*
|
|
10
|
-
* // Dispatch to auth context
|
|
11
|
-
* dispatch.auth(authActions.setSession(session));
|
|
12
|
-
*
|
|
13
|
-
* // Dispatch to workspace context
|
|
14
|
-
* dispatch.workspaces(workspaceActions.setCurrentWorkspace(workspace));
|
|
15
|
-
*
|
|
16
|
-
* // Dispatch to OS context
|
|
17
|
-
* dispatch.os(osActions.setSaaSOSConfig(config));
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare function useAppDispatch(): SDKDispatch;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { SDKState } from './types';
|
|
2
|
-
export type { SDKState } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Combined selector hook - select from all contexts at once
|
|
5
|
-
*
|
|
6
|
-
* @param selector Function that selects a value from the combined SDK state
|
|
7
|
-
* @param equalityFn Optional equality function for comparison (default: Object.is)
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* ```tsx
|
|
11
|
-
* // Get entire combined state
|
|
12
|
-
* const sdk = useAppSelector();
|
|
13
|
-
*
|
|
14
|
-
* // Get specific context
|
|
15
|
-
* const auth = useAppSelector(state => state.auth);
|
|
16
|
-
* const user = useAppSelector(state => state.auth.session?.user);
|
|
17
|
-
*
|
|
18
|
-
* // Get multiple fields across contexts
|
|
19
|
-
* const { user, currentWorkspace, serverUrl } = useAppSelector(state => ({
|
|
20
|
-
* user: state.auth.session?.user,
|
|
21
|
-
* currentWorkspace: state.workspaces.currentWorkspace,
|
|
22
|
-
* serverUrl: state.os.serverUrl,
|
|
23
|
-
* }));
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare function useAppSelector<Selected = SDKState>(selector?: (state: SDKState) => Selected, equalityFn?: (a: Selected, b: Selected) => boolean): Selected;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared selector hook with equality-based memoization.
|
|
3
|
-
* Only re-renders when the selected value changes (according to equalityFn).
|
|
4
|
-
*
|
|
5
|
-
* @param state - The state to select from
|
|
6
|
-
* @param selector - Function that selects a value from state
|
|
7
|
-
* @param equalityFn - Optional equality function (default: Object.is)
|
|
8
|
-
* @returns The selected value
|
|
9
|
-
*/
|
|
10
|
-
export declare function useSelectWithEquality<TState, TSelected>(state: TState, selector: (state: TState) => TSelected, equalityFn?: (a: TSelected, b: TSelected) => boolean): TSelected;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Reducer helper utilities
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Creates a simple reducer case that updates a single field
|
|
6
|
-
*/
|
|
7
|
-
export declare function updateField<State, K extends keyof State>(state: State, field: K, value: State[K]): State;
|
|
8
|
-
/**
|
|
9
|
-
* Creates a reducer case that updates multiple fields
|
|
10
|
-
*/
|
|
11
|
-
export declare function updateFields<State extends object>(state: State, updates: Partial<State>): State;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared localStorage utilities
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Safe localStorage getter
|
|
6
|
-
*/
|
|
7
|
-
export declare function getStorageItem(key: string): string | null;
|
|
8
|
-
/**
|
|
9
|
-
* Safe localStorage setter
|
|
10
|
-
*/
|
|
11
|
-
export declare function setStorageItem(key: string, value: string): void;
|
|
12
|
-
/**
|
|
13
|
-
* Safe localStorage remover
|
|
14
|
-
*/
|
|
15
|
-
export declare function removeStorageItem(key: string): void;
|
|
16
|
-
/**
|
|
17
|
-
* Safe JSON parse from localStorage.
|
|
18
|
-
* Optionally accepts a validate function to verify the parsed data matches expected shape.
|
|
19
|
-
* If validation fails, the corrupted entry is removed and null is returned.
|
|
20
|
-
*/
|
|
21
|
-
export declare function getStorageJSON<T>(key: string, validate?: (data: unknown) => data is T): T | null;
|
|
22
|
-
/**
|
|
23
|
-
* Safe JSON stringify to localStorage
|
|
24
|
-
*/
|
|
25
|
-
export declare function setStorageJSON<T>(key: string, value: T): void;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export interface SeatStatus {
|
|
2
|
-
/** Whether the current plan uses seat-based pricing. */
|
|
3
|
-
hasSeatPricing: boolean;
|
|
4
|
-
/** Total workspace members. */
|
|
5
|
-
memberCount: number;
|
|
6
|
-
/** Seats included in the base price (free). */
|
|
7
|
-
includedSeats: number;
|
|
8
|
-
/** Maximum seats allowed. 0 = unlimited. */
|
|
9
|
-
maxSeats: number;
|
|
10
|
-
/** Seats beyond included that are being billed. */
|
|
11
|
-
billableSeats: number;
|
|
12
|
-
/** Remaining seats before hitting max. Infinity if unlimited. */
|
|
13
|
-
availableSeats: number;
|
|
14
|
-
/** Whether workspace is at max seat capacity. */
|
|
15
|
-
isAtMax: boolean;
|
|
16
|
-
/** Whether workspace is near max (>= 80% used). */
|
|
17
|
-
isNearMax: boolean;
|
|
18
|
-
/** Per-seat price in cents for the current billing interval. Null if not applicable. */
|
|
19
|
-
perSeatPriceCents: number | null;
|
|
20
|
-
/** Billing currency. */
|
|
21
|
-
currency: string;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Hook that computes seat status from subscription context and workspace data.
|
|
25
|
-
* Must be used within SubscriptionContextProvider.
|
|
26
|
-
*
|
|
27
|
-
* @param workspace - The current workspace (needs users array)
|
|
28
|
-
* @returns SeatStatus — computed seat information
|
|
29
|
-
*
|
|
30
|
-
* @example
|
|
31
|
-
* ```tsx
|
|
32
|
-
* const { isAtMax, availableSeats, billableSeats } = useSeatStatus(workspace);
|
|
33
|
-
*
|
|
34
|
-
* if (isAtMax) {
|
|
35
|
-
* return <UpgradeBanner />;
|
|
36
|
-
* }
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export declare function useSeatStatus(workspace: {
|
|
40
|
-
users?: any[];
|
|
41
|
-
billingCurrency?: string | null;
|
|
42
|
-
} | null): SeatStatus;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export interface TrialStatus {
|
|
2
|
-
/** Whether the current subscription is in trial. */
|
|
3
|
-
isTrialing: boolean;
|
|
4
|
-
/** Number of days remaining in the trial. 0 if not trialing or expired. */
|
|
5
|
-
daysRemaining: number;
|
|
6
|
-
/** Trial end date as a Date object. null if not trialing. */
|
|
7
|
-
trialEndsAt: Date | null;
|
|
8
|
-
/** Trial start date as a Date object. null if not trialing. */
|
|
9
|
-
trialStartedAt: Date | null;
|
|
10
|
-
/** Whether the trial is ending soon (<= 3 days remaining). */
|
|
11
|
-
isTrialEnding: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Hook that computes trial status from the current subscription context.
|
|
15
|
-
* Must be used within SubscriptionContextProvider.
|
|
16
|
-
*
|
|
17
|
-
* @returns TrialStatus — computed trial information
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```tsx
|
|
21
|
-
* const { isTrialing, daysRemaining, isTrialEnding } = useTrialStatus();
|
|
22
|
-
*
|
|
23
|
-
* if (isTrialEnding) {
|
|
24
|
-
* return <UpgradeBanner daysLeft={daysRemaining} />;
|
|
25
|
-
* }
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
export declare function useTrialStatus(): TrialStatus;
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import './styles/globals.css';
|
|
2
|
-
export { ApiVersion } from './providers/os/types';
|
|
3
|
-
export { SaaSOSProvider } from './providers/SaaSOSProvider';
|
|
4
|
-
export { BetaForm } from './components/beta/BetaForm';
|
|
5
|
-
export { PricingPage } from './components/pricing';
|
|
6
|
-
export type { PricingPageDetails, PricingPageProps } from './components/pricing';
|
|
7
|
-
export { WhenAuthenticated, WhenUnauthenticated } from './components/user/auth';
|
|
8
|
-
export { WhenRoles, WhenWorkspaceRoles } from './components/user/role';
|
|
9
|
-
export { WhenUserFeatureDisabled, WhenUserFeatureEnabled, WhenWorkspaceFeatureDisabled, WhenWorkspaceFeatureEnabled, } from './components/features';
|
|
10
|
-
export { WhenNoSubscription, WhenSubscription, WhenSubscriptionToPlans, WhenTrialing, WhenNotTrialing, WhenTrialEnding, } from './components/subscription';
|
|
11
|
-
export { WhenQuotaAvailable, WhenQuotaExhausted, WhenQuotaOverage, WhenQuotaThreshold, } from './components/quota';
|
|
12
|
-
export { SubscriptionContextProvider, useSubscriptionContext, } from './contexts/SubscriptionContext';
|
|
13
|
-
export type { SubscriptionContextValue } from './contexts/SubscriptionContext';
|
|
14
|
-
export { invalidateSubscription } from './contexts/SubscriptionContext/subscriptionInvalidation';
|
|
15
|
-
export { QuotaUsageContextProvider, useQuotaUsageContext, } from './contexts/QuotaUsageContext';
|
|
16
|
-
export type { QuotaUsageContextValue } from './contexts/QuotaUsageContext';
|
|
17
|
-
export { invalidateQuotaUsage } from './contexts/QuotaUsageContext/quotaUsageInvalidation';
|
|
18
|
-
export { AuthStatus } from './providers/auth/types';
|
|
19
|
-
export type { OnWorkspaceChangeParams } from './providers/auth/types';
|
|
20
|
-
export { useSaaSAuth } from './providers/auth/hooks';
|
|
21
|
-
export { useSaaSOs, useSaaSSettings } from './providers/os/hooks';
|
|
22
|
-
export { useUserAttributes, useUserFeatures } from './providers/user/hooks';
|
|
23
|
-
export { useSaaSWorkspaces } from './providers/workspace/hooks';
|
|
24
|
-
export { WorkspaceSwitcher } from './providers/workspace/provider';
|
|
25
|
-
export { useAllQuotaUsage, useCancelSubscription, useCreateCheckoutSession, useInvoice, useInvoices, usePlanGroup, usePlanGroupVersions, usePublicPlanGroupVersion, usePublicPlans, useQuotaUsageStatus, useRecordUsage, useResumeSubscription, useSubscription, useSubscriptionManagement, useUpdateSubscription, useUsageLogs, } from './providers/workspace/subscription-hooks';
|
|
26
|
-
export { useTrialStatus } from './hooks/use-trial-status';
|
|
27
|
-
export type { TrialStatus } from './hooks/use-trial-status';
|
|
28
|
-
export { useSeatStatus } from './hooks/use-seat-status';
|
|
29
|
-
export type { SeatStatus } from './hooks/use-seat-status';
|
|
30
|
-
export { eventEmitter } from './providers/events';
|
|
31
|
-
export type { EventData, EventType, IEventCallbacks, UserCreatedEventData, UserUpdatedEventData, WorkspaceChangedEventData, WorkspaceCreatedEventData, WorkspaceDeletedEventData, WorkspaceUpdatedEventData, WorkspaceUserAddedEventData, WorkspaceUserRemovedEventData, WorkspaceUserRoleChangedEventData, } from './providers/events/types';
|
|
32
|
-
export { BaseApi, SettingsApi, UserApi, WorkspaceApi } from './api';
|
|
33
|
-
export type { IBaseApiConfig } from './api';
|
|
34
|
-
export { CURRENCY_DISPLAY, CURRENCY_FLAG, PLAN_CURRENCY_CODES, PLAN_CURRENCY_OPTIONS, formatCents, formatOverageRate, formatOverageRateWithLabel, formatQuotaIncludedOverage, getCurrencyFlag, getCurrencySymbol, getQuotaUnitLabelFromName, } from './api/currency-utils';
|
|
35
|
-
export { formatQuotaWithPrice, getQuotaDisplayValue } from './api/quota-utils';
|
|
36
|
-
export type { FormatQuotaWithPriceOptions, QuotaDisplayValue } from './api/quota-utils';
|
|
37
|
-
export { calculateBillableSeats, calculateSeatOverageCents, calculateTotalSubscriptionCents, getAvailableCurrenciesFromPlans, getBasePriceCents, getBillingIntervalAndCurrencyFromPriceId, getDisplayCurrency, getPerSeatPriceCents, getPricingVariant, getQuotaDisplayWithVariant, getQuotaOverageCents, getSeatPricing, getStripePriceIdForInterval, } from './api/pricing-variant-utils';
|
|
38
|
-
export type { PlanVersionWithPricingVariants, QuotaDisplayWithOverage, } from './api/pricing-variant-utils';
|
|
39
|
-
export type { BillingInterval, CheckoutResult, IAllQuotaUsageResponse, IBasePricing, ICheckoutSessionRequest, ICheckoutSessionResponse, IInvoice, IInvoiceListResponse, IInvoiceResponse, IPlan, IPlanGroup, IPlanGroupInfo, IPlanGroupLatestVersion, IPlanGroupResponse, IPlanGroupVersion, IPlanGroupVersionWithPlans, IPlanGroupVersionsResponse, IPlanVersion, IPlanVersionSummary, IPlanVersionWithPlan, IPricingVariant, IPublicPlanItem, IPublicPlanItemCategory, IPublicPlanVersion, IPublicPlansResponse, IQuotaByInterval, IQuotaIntervalValue, IQuotaOveragePriceIdsByInterval, IQuotaOveragesByInterval, IQuotaUsageStatus, IQuotaUsageStatusResponse, IRecordUsageRequest, IRecordUsageResponse, IStripePricesByInterval, ISubscription, ISubscriptionItem, ISubscriptionResponse, ISubscriptionUpdateRequest, ISubscriptionUpdateResponse, IUsageLogEntry, IUsageLogsQuery, IUsageLogsResponse, InvoiceStatus, } from './api/types';
|