@bcrumbs.net/inbox 0.0.62 → 0.0.64
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/assets/ar/inbox.json +3 -0
- package/assets/en/inbox.json +3 -0
- package/e2e/auth.setup.d.ts +1 -0
- package/e2e/checkout/checkout.flows.d.ts +18 -0
- package/e2e/global.teardown.d.ts +1 -0
- package/e2e/support/auth.d.ts +18 -0
- package/e2e/support/cleanup.d.ts +20 -0
- package/e2e/support/config.d.ts +23 -0
- package/e2e/support/fixtures.d.ts +16 -0
- package/e2e/support/identifiers.d.ts +13 -0
- package/e2e/support/index.d.ts +6 -0
- package/index.cjs.js +1363 -427
- package/index.esm.js +1365 -430
- package/package.json +2 -2
- package/playwright.config.d.ts +0 -4
- package/src/app/ai/components/playground/ThreadMessages.d.ts +3 -1
- package/src/app/auth/components/AcceptInvitation.d.ts +2 -0
- package/src/app/auth/components/AuthLanguagePicker.d.ts +3 -0
- package/src/app/auth/components/AuthVisualCarousel.d.ts +1 -0
- package/src/app/auth/components/ClerkForgetPanel.d.ts +6 -0
- package/src/app/auth/components/ClerkResetPasswordPanel.d.ts +6 -0
- package/src/app/auth/components/ClerkSessionBridge.d.ts +16 -0
- package/src/app/auth/components/ClerkSignInPanel.d.ts +2 -0
- package/src/app/auth/components/ClerkSignUpPanel.d.ts +2 -0
- package/src/app/auth/components/password-page/PasswordFormView.d.ts +10 -1
- package/src/app/auth/config/authProvider.d.ts +12 -0
- package/src/app/auth/config/clerkAppearance.d.ts +534 -0
- package/src/app/auth/config/clerkLocalization.d.ts +6 -0
- package/src/app/auth/pages/Auth.style.d.ts +28 -0
- package/src/app/auth/pages/CheckAuth.d.ts +7 -4
- package/src/app/auth/pages/Forget.d.ts +2 -2
- package/src/app/auth/pages/Login.d.ts +3 -3
- package/src/app/auth/pages/Password.d.ts +2 -2
- package/src/app/auth/pages/Register.d.ts +2 -3
- package/src/app/auth/utils/clerkTracking.d.ts +9 -0
- package/src/app/billing/pages/GatewayWelcomePage.d.ts +2 -0
- package/src/app/billing/pages/GuidePage.d.ts +1 -0
- package/src/app/billing/utils/isGatewayPlan.d.ts +2 -0
- package/src/app/billing/utils/pendingPlanPurchaseStorage.d.ts +6 -6
- package/src/app/broadcast/constants.d.ts +2 -0
- package/src/app/contact/components/ImportProgressDialog.d.ts +2 -1
- package/src/app/generic/hooks/useOnlineStatus.d.ts +1 -1
- package/src/app/generic/hooks/usePaginatedQuery.d.ts +1 -0
- package/src/app/inbox/components/Chat/ChatContent.d.ts +3 -1
- package/src/app/inbox/components/NewDetails/ContactActionsMenu.d.ts +9 -0
- package/src/app/inbox/components/NewDetails/UserHeader.d.ts +2 -1
- package/src/app/inbox/components/Shared/MobileChatDetailsSlider.d.ts +1 -0
- package/src/app/inbox/components/Shared/MobileDetailsSwipeHint.d.ts +1 -1
- package/src/app/inbox/components/Shared/SharedStyle.d.ts +8 -0
- package/src/app/inbox/hooks/useConvEnhance.d.ts +3 -1
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +7 -0
- package/src/app/inbox/utils/convAssistStorage.d.ts +9 -4
- package/src/app/inbox/utils/convs.d.ts +4 -0
- package/src/app/inbox/utils/sounds.d.ts +2 -0
- package/src/app/layout/components/LogoutPopin.d.ts +6 -3
- package/src/app/layout/components/language/index.d.ts +5 -1
- package/src/app/layout/constants/index.d.ts +35 -0
- package/src/app/managemnet/config/webhookDefinition.d.ts +4 -0
- package/src/app/managemnet/pages/generalSettings/WritingAssistanceSettings.d.ts +9 -0
- package/src/app/managemnet/pages/generalSettings/holidayConstants.d.ts +5 -0
- package/src/app/managemnet/pages/generalSettings/writingConstants.d.ts +6 -0
- package/src/app/resources/components/Agents/CreateAgent.d.ts +7 -3
- package/src/app/subscriptions/components/NewSubscription/SubscriptionSuccess.d.ts +3 -1
- package/src/app/subscriptions/components/Plans/PlanCard.d.ts +3 -1
- package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +3 -1
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionCreditsCard.d.ts +5 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +0 -1
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +0 -1
- package/src/app/subscriptions/components/SubscriptionSettings/index.d.ts +17 -2
- package/src/app/subscriptions/constants/Plans.d.ts +2 -1
- package/src/app/subscriptions/utils/estimateUpgradeProration.d.ts +26 -0
- package/src/assets/locales/translations.d.ts +151 -0
- package/src/environments/environment.dev.d.ts +2 -0
- package/src/environments/types.d.ts +7 -0
- package/src/graphql.autogenerated.d.ts +981 -4
- package/src/graphql.billing.autogenerated.d.ts +193 -0
- package/src/lib/EmbeddedMobileMenu.d.ts +1 -2
- package/src/lib/index.d.ts +1 -0
|
@@ -126,6 +126,37 @@ export type CheckoutResult = {
|
|
|
126
126
|
stripePaymentMethod?: Maybe<Scalars['String']['output']>;
|
|
127
127
|
transactionId?: Maybe<Scalars['Int']['output']>;
|
|
128
128
|
};
|
|
129
|
+
/** Credit pack sizes for Gateway prepaid purchases. */
|
|
130
|
+
export declare const CreditPack: {
|
|
131
|
+
readonly CREDITS_5: "CREDITS_5";
|
|
132
|
+
readonly CREDITS_20: "CREDITS_20";
|
|
133
|
+
readonly CREDITS_100: "CREDITS_100";
|
|
134
|
+
};
|
|
135
|
+
export type CreditPack = typeof CreditPack[keyof typeof CreditPack];
|
|
136
|
+
/** CreditWalletInput fetches prepaid Gateway credit balance for a workspace. */
|
|
137
|
+
export type CreditWalletInput = {
|
|
138
|
+
workspaceId: Scalars['Int']['input'];
|
|
139
|
+
};
|
|
140
|
+
/** CreditWalletView is SQL wallet balance composed with Redis pending usage. */
|
|
141
|
+
export type CreditWalletView = {
|
|
142
|
+
__typename?: 'CreditWalletView';
|
|
143
|
+
balanceMicroUsd: Scalars['String']['output'];
|
|
144
|
+
lifetimeAttemptCount: Scalars['String']['output'];
|
|
145
|
+
lifetimePurchasedMicroUsd: Scalars['String']['output'];
|
|
146
|
+
lifetimeUsedMicroUsd: Scalars['String']['output'];
|
|
147
|
+
pendingAttempts: Scalars['String']['output'];
|
|
148
|
+
pendingMicroUsd: Scalars['String']['output'];
|
|
149
|
+
remainingCredits: Scalars['Float']['output'];
|
|
150
|
+
remainingMessages: Scalars['Int']['output'];
|
|
151
|
+
remainingMicroUsd: Scalars['String']['output'];
|
|
152
|
+
usedAttempts: Scalars['String']['output'];
|
|
153
|
+
usedCredits: Scalars['Float']['output'];
|
|
154
|
+
usedMicroUsd: Scalars['String']['output'];
|
|
155
|
+
workspaceId: Scalars['Int']['output'];
|
|
156
|
+
};
|
|
157
|
+
export type EnsureGatewaySubscriptionInput = {
|
|
158
|
+
workspaceId: Scalars['Int']['input'];
|
|
159
|
+
};
|
|
129
160
|
/**
|
|
130
161
|
* ErrorCode is an enum for the error codes.
|
|
131
162
|
* - UNAUTHENTICATED: The user is not authenticated.
|
|
@@ -148,12 +179,16 @@ export type Mutation = {
|
|
|
148
179
|
cancelPendingPayment: CancelPendingPaymentResult;
|
|
149
180
|
/** Purchase a new plan (checkout). */
|
|
150
181
|
checkout: CheckoutResult;
|
|
182
|
+
/** Ensure the workspace has a Gateway subscription and empty credit wallet (no Polar charge). */
|
|
183
|
+
ensureGatewaySubscription: SubscriptionPlan;
|
|
151
184
|
/** Pause the subscription. */
|
|
152
185
|
pauseSubscription: SubscriptionPlan;
|
|
153
186
|
/** Cancel an existing Polar subscription at period end without opening the customer portal. */
|
|
154
187
|
polarCancelSubscription: PolarCancelSubscriptionResult;
|
|
155
188
|
/** Create a Polar-hosted checkout session for purchasing a plan. */
|
|
156
189
|
polarCheckout: PolarCheckoutResult;
|
|
190
|
+
/** Create a Polar-hosted one-time checkout for Gateway credit packs ($5 / $20 / $100). */
|
|
191
|
+
polarCreditsCheckout: PolarCheckoutResult;
|
|
157
192
|
/** Create a Polar customer portal session for subscription management. */
|
|
158
193
|
polarPortalSession: PolarPortalSessionResult;
|
|
159
194
|
/** Reactivate a Polar subscription scheduled for cancellation without opening the customer portal. */
|
|
@@ -179,6 +214,9 @@ export type MutationCancelPendingPaymentArgs = {
|
|
|
179
214
|
export type MutationCheckoutArgs = {
|
|
180
215
|
input: CheckoutInput;
|
|
181
216
|
};
|
|
217
|
+
export type MutationEnsureGatewaySubscriptionArgs = {
|
|
218
|
+
input: EnsureGatewaySubscriptionInput;
|
|
219
|
+
};
|
|
182
220
|
export type MutationPauseSubscriptionArgs = {
|
|
183
221
|
input: PauseSubscriptionInput;
|
|
184
222
|
};
|
|
@@ -188,6 +226,9 @@ export type MutationPolarCancelSubscriptionArgs = {
|
|
|
188
226
|
export type MutationPolarCheckoutArgs = {
|
|
189
227
|
input: PolarCheckoutInput;
|
|
190
228
|
};
|
|
229
|
+
export type MutationPolarCreditsCheckoutArgs = {
|
|
230
|
+
input: PolarCreditsCheckoutInput;
|
|
231
|
+
};
|
|
191
232
|
export type MutationPolarPortalSessionArgs = {
|
|
192
233
|
input: PolarPortalSessionInput;
|
|
193
234
|
};
|
|
@@ -360,6 +401,7 @@ export declare const PlanType: {
|
|
|
360
401
|
readonly BUSINESS: "business";
|
|
361
402
|
readonly CUSTOM: "custom";
|
|
362
403
|
readonly FREE: "free";
|
|
404
|
+
readonly GATEWAY: "gateway";
|
|
363
405
|
readonly PREMIUM: "premium";
|
|
364
406
|
};
|
|
365
407
|
export type PlanType = typeof PlanType[keyof typeof PlanType];
|
|
@@ -387,6 +429,11 @@ export type PolarCheckoutResult = {
|
|
|
387
429
|
sessionId: Scalars['String']['output'];
|
|
388
430
|
sessionUrl: Scalars['String']['output'];
|
|
389
431
|
};
|
|
432
|
+
/** PolarCreditsCheckoutInput creates a one-time Polar checkout for message credits. */
|
|
433
|
+
export type PolarCreditsCheckoutInput = {
|
|
434
|
+
pack: CreditPack;
|
|
435
|
+
workspaceId: Scalars['Int']['input'];
|
|
436
|
+
};
|
|
390
437
|
/** PolarPortalSessionInput is an input for creating a Polar customer portal session. */
|
|
391
438
|
export type PolarPortalSessionInput = {
|
|
392
439
|
workspaceId: Scalars['Int']['input'];
|
|
@@ -466,6 +513,8 @@ export type Query = {
|
|
|
466
513
|
__typename?: 'Query';
|
|
467
514
|
/** Get billing info for a workspace. */
|
|
468
515
|
billingInfo?: Maybe<BillingInfo>;
|
|
516
|
+
/** Gateway prepaid credit wallet (SQL + Redis pending). */
|
|
517
|
+
creditWallet: CreditWalletView;
|
|
469
518
|
/** Get a specific payment method by ID. */
|
|
470
519
|
paymentMethod?: Maybe<PaymentMethod>;
|
|
471
520
|
/** List card payment methods for a workspace. */
|
|
@@ -494,6 +543,9 @@ export type Query = {
|
|
|
494
543
|
export type QueryBillingInfoArgs = {
|
|
495
544
|
input: BillingInfoInput;
|
|
496
545
|
};
|
|
546
|
+
export type QueryCreditWalletArgs = {
|
|
547
|
+
input: CreditWalletInput;
|
|
548
|
+
};
|
|
497
549
|
export type QueryPaymentMethodArgs = {
|
|
498
550
|
input: PaymentMethodInput;
|
|
499
551
|
};
|
|
@@ -768,6 +820,45 @@ export type CheckoutMutation = {
|
|
|
768
820
|
stripePaymentMethod?: string | null;
|
|
769
821
|
};
|
|
770
822
|
};
|
|
823
|
+
export type CreditWalletQueryVariables = Exact<{
|
|
824
|
+
input: CreditWalletInput;
|
|
825
|
+
}>;
|
|
826
|
+
export type CreditWalletQuery = {
|
|
827
|
+
__typename?: 'Query';
|
|
828
|
+
creditWallet: {
|
|
829
|
+
__typename?: 'CreditWalletView';
|
|
830
|
+
workspaceId: number;
|
|
831
|
+
balanceMicroUsd: string;
|
|
832
|
+
pendingMicroUsd: string;
|
|
833
|
+
remainingMicroUsd: string;
|
|
834
|
+
remainingCredits: number;
|
|
835
|
+
remainingMessages: number;
|
|
836
|
+
lifetimePurchasedMicroUsd: string;
|
|
837
|
+
lifetimeUsedMicroUsd: string;
|
|
838
|
+
lifetimeAttemptCount: string;
|
|
839
|
+
pendingAttempts: string;
|
|
840
|
+
usedAttempts: string;
|
|
841
|
+
usedMicroUsd: string;
|
|
842
|
+
usedCredits: number;
|
|
843
|
+
};
|
|
844
|
+
};
|
|
845
|
+
export type EnsureGatewaySubscriptionMutationVariables = Exact<{
|
|
846
|
+
input: EnsureGatewaySubscriptionInput;
|
|
847
|
+
}>;
|
|
848
|
+
export type EnsureGatewaySubscriptionMutation = {
|
|
849
|
+
__typename?: 'Mutation';
|
|
850
|
+
ensureGatewaySubscription: {
|
|
851
|
+
__typename?: 'SubscriptionPlan';
|
|
852
|
+
id: number;
|
|
853
|
+
workspaceId: number;
|
|
854
|
+
planId: number;
|
|
855
|
+
plan?: {
|
|
856
|
+
__typename?: 'Plan';
|
|
857
|
+
id: number;
|
|
858
|
+
planType: PlanType;
|
|
859
|
+
} | null;
|
|
860
|
+
};
|
|
861
|
+
};
|
|
771
862
|
export type PaymentMethodQueryVariables = Exact<{
|
|
772
863
|
input: PaymentMethodInput;
|
|
773
864
|
}>;
|
|
@@ -928,6 +1019,17 @@ export type PolarCheckoutMutation = {
|
|
|
928
1019
|
sessionUrl: string;
|
|
929
1020
|
};
|
|
930
1021
|
};
|
|
1022
|
+
export type PolarCreditsCheckoutMutationVariables = Exact<{
|
|
1023
|
+
input: PolarCreditsCheckoutInput;
|
|
1024
|
+
}>;
|
|
1025
|
+
export type PolarCreditsCheckoutMutation = {
|
|
1026
|
+
__typename?: 'Mutation';
|
|
1027
|
+
polarCreditsCheckout: {
|
|
1028
|
+
__typename?: 'PolarCheckoutResult';
|
|
1029
|
+
sessionId: string;
|
|
1030
|
+
sessionUrl: string;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
931
1033
|
export type PolarPortalSessionMutationVariables = Exact<{
|
|
932
1034
|
input: PolarPortalSessionInput;
|
|
933
1035
|
}>;
|
|
@@ -1307,6 +1409,72 @@ export declare function useCheckoutMutation(baseOptions?: Apollo.MutationHookOpt
|
|
|
1307
1409
|
export type CheckoutMutationHookResult = ReturnType<typeof useCheckoutMutation>;
|
|
1308
1410
|
export type CheckoutMutationResult = Apollo.MutationResult<CheckoutMutation>;
|
|
1309
1411
|
export type CheckoutMutationOptions = Apollo.BaseMutationOptions<CheckoutMutation, CheckoutMutationVariables>;
|
|
1412
|
+
export declare const CreditWalletDocument: Apollo.DocumentNode;
|
|
1413
|
+
/**
|
|
1414
|
+
* __useCreditWalletQuery__
|
|
1415
|
+
*
|
|
1416
|
+
* To run a query within a React component, call `useCreditWalletQuery` and pass it any options that fit your needs.
|
|
1417
|
+
* When your component renders, `useCreditWalletQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1418
|
+
* you can use to render your UI.
|
|
1419
|
+
*
|
|
1420
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
1421
|
+
*
|
|
1422
|
+
* @example
|
|
1423
|
+
* const { data, loading, error } = useCreditWalletQuery({
|
|
1424
|
+
* variables: {
|
|
1425
|
+
* input: // value for 'input'
|
|
1426
|
+
* },
|
|
1427
|
+
* });
|
|
1428
|
+
*/
|
|
1429
|
+
export declare function useCreditWalletQuery(baseOptions: Apollo.QueryHookOptions<CreditWalletQuery, CreditWalletQueryVariables> & ({
|
|
1430
|
+
variables: CreditWalletQueryVariables;
|
|
1431
|
+
skip?: boolean;
|
|
1432
|
+
} | {
|
|
1433
|
+
skip: boolean;
|
|
1434
|
+
})): Apollo.QueryResult<CreditWalletQuery, Exact<{
|
|
1435
|
+
input: CreditWalletInput;
|
|
1436
|
+
}>>;
|
|
1437
|
+
export declare function useCreditWalletLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CreditWalletQuery, CreditWalletQueryVariables>): Apollo.LazyQueryResultTuple<CreditWalletQuery, Exact<{
|
|
1438
|
+
input: CreditWalletInput;
|
|
1439
|
+
}>>;
|
|
1440
|
+
export declare function useCreditWalletSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CreditWalletQuery, CreditWalletQueryVariables>): Apollo.UseSuspenseQueryResult<CreditWalletQuery | undefined, Exact<{
|
|
1441
|
+
input: CreditWalletInput;
|
|
1442
|
+
}>>;
|
|
1443
|
+
export type CreditWalletQueryHookResult = ReturnType<typeof useCreditWalletQuery>;
|
|
1444
|
+
export type CreditWalletLazyQueryHookResult = ReturnType<typeof useCreditWalletLazyQuery>;
|
|
1445
|
+
export type CreditWalletSuspenseQueryHookResult = ReturnType<typeof useCreditWalletSuspenseQuery>;
|
|
1446
|
+
export type CreditWalletQueryResult = Apollo.QueryResult<CreditWalletQuery, CreditWalletQueryVariables>;
|
|
1447
|
+
export declare function refetchCreditWalletQuery(variables: CreditWalletQueryVariables): {
|
|
1448
|
+
query: Apollo.DocumentNode;
|
|
1449
|
+
variables: Exact<{
|
|
1450
|
+
input: CreditWalletInput;
|
|
1451
|
+
}>;
|
|
1452
|
+
};
|
|
1453
|
+
export declare const EnsureGatewaySubscriptionDocument: Apollo.DocumentNode;
|
|
1454
|
+
export type EnsureGatewaySubscriptionMutationFn = Apollo.MutationFunction<EnsureGatewaySubscriptionMutation, EnsureGatewaySubscriptionMutationVariables>;
|
|
1455
|
+
/**
|
|
1456
|
+
* __useEnsureGatewaySubscriptionMutation__
|
|
1457
|
+
*
|
|
1458
|
+
* To run a mutation, you first call `useEnsureGatewaySubscriptionMutation` within a React component and pass it any options that fit your needs.
|
|
1459
|
+
* When your component renders, `useEnsureGatewaySubscriptionMutation` returns a tuple that includes:
|
|
1460
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1461
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1462
|
+
*
|
|
1463
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1464
|
+
*
|
|
1465
|
+
* @example
|
|
1466
|
+
* const [ensureGatewaySubscriptionMutation, { data, loading, error }] = useEnsureGatewaySubscriptionMutation({
|
|
1467
|
+
* variables: {
|
|
1468
|
+
* input: // value for 'input'
|
|
1469
|
+
* },
|
|
1470
|
+
* });
|
|
1471
|
+
*/
|
|
1472
|
+
export declare function useEnsureGatewaySubscriptionMutation(baseOptions?: Apollo.MutationHookOptions<EnsureGatewaySubscriptionMutation, EnsureGatewaySubscriptionMutationVariables>): Apollo.MutationTuple<EnsureGatewaySubscriptionMutation, Exact<{
|
|
1473
|
+
input: EnsureGatewaySubscriptionInput;
|
|
1474
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1475
|
+
export type EnsureGatewaySubscriptionMutationHookResult = ReturnType<typeof useEnsureGatewaySubscriptionMutation>;
|
|
1476
|
+
export type EnsureGatewaySubscriptionMutationResult = Apollo.MutationResult<EnsureGatewaySubscriptionMutation>;
|
|
1477
|
+
export type EnsureGatewaySubscriptionMutationOptions = Apollo.BaseMutationOptions<EnsureGatewaySubscriptionMutation, EnsureGatewaySubscriptionMutationVariables>;
|
|
1310
1478
|
export declare const PaymentMethodDocument: Apollo.DocumentNode;
|
|
1311
1479
|
/**
|
|
1312
1480
|
* __usePaymentMethodQuery__
|
|
@@ -1603,6 +1771,31 @@ export declare function usePolarCheckoutMutation(baseOptions?: Apollo.MutationHo
|
|
|
1603
1771
|
export type PolarCheckoutMutationHookResult = ReturnType<typeof usePolarCheckoutMutation>;
|
|
1604
1772
|
export type PolarCheckoutMutationResult = Apollo.MutationResult<PolarCheckoutMutation>;
|
|
1605
1773
|
export type PolarCheckoutMutationOptions = Apollo.BaseMutationOptions<PolarCheckoutMutation, PolarCheckoutMutationVariables>;
|
|
1774
|
+
export declare const PolarCreditsCheckoutDocument: Apollo.DocumentNode;
|
|
1775
|
+
export type PolarCreditsCheckoutMutationFn = Apollo.MutationFunction<PolarCreditsCheckoutMutation, PolarCreditsCheckoutMutationVariables>;
|
|
1776
|
+
/**
|
|
1777
|
+
* __usePolarCreditsCheckoutMutation__
|
|
1778
|
+
*
|
|
1779
|
+
* To run a mutation, you first call `usePolarCreditsCheckoutMutation` within a React component and pass it any options that fit your needs.
|
|
1780
|
+
* When your component renders, `usePolarCreditsCheckoutMutation` returns a tuple that includes:
|
|
1781
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1782
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1783
|
+
*
|
|
1784
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
1785
|
+
*
|
|
1786
|
+
* @example
|
|
1787
|
+
* const [polarCreditsCheckoutMutation, { data, loading, error }] = usePolarCreditsCheckoutMutation({
|
|
1788
|
+
* variables: {
|
|
1789
|
+
* input: // value for 'input'
|
|
1790
|
+
* },
|
|
1791
|
+
* });
|
|
1792
|
+
*/
|
|
1793
|
+
export declare function usePolarCreditsCheckoutMutation(baseOptions?: Apollo.MutationHookOptions<PolarCreditsCheckoutMutation, PolarCreditsCheckoutMutationVariables>): Apollo.MutationTuple<PolarCreditsCheckoutMutation, Exact<{
|
|
1794
|
+
input: PolarCreditsCheckoutInput;
|
|
1795
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1796
|
+
export type PolarCreditsCheckoutMutationHookResult = ReturnType<typeof usePolarCreditsCheckoutMutation>;
|
|
1797
|
+
export type PolarCreditsCheckoutMutationResult = Apollo.MutationResult<PolarCreditsCheckoutMutation>;
|
|
1798
|
+
export type PolarCreditsCheckoutMutationOptions = Apollo.BaseMutationOptions<PolarCreditsCheckoutMutation, PolarCreditsCheckoutMutationVariables>;
|
|
1606
1799
|
export declare const PolarPortalSessionDocument: Apollo.DocumentNode;
|
|
1607
1800
|
export type PolarPortalSessionMutationFn = Apollo.MutationFunction<PolarPortalSessionMutation, PolarPortalSessionMutationVariables>;
|
|
1608
1801
|
/**
|
|
@@ -3,8 +3,7 @@ export type { MobileViews };
|
|
|
3
3
|
export type EmbeddedMobileMenuProps = {
|
|
4
4
|
activePage: MobileViews;
|
|
5
5
|
setActivePage: (page: MobileViews) => void;
|
|
6
|
-
/** @deprecated Details is opened via swipe; kept for call-site compatibility. */
|
|
7
6
|
hideDetails?: boolean;
|
|
8
7
|
};
|
|
9
8
|
/** Bottom nav for embedded inbox — no dashboard tab, no react-router. */
|
|
10
|
-
export declare const EmbeddedMobileMenu: ({ activePage, setActivePage }: EmbeddedMobileMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export declare const EmbeddedMobileMenu: ({ activePage, setActivePage, hideDetails }: EmbeddedMobileMenuProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
package/src/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export { ConversationChat } from './conversation-chat';
|
|
|
3
3
|
export type { ConversationChatProps } from './conversation-chat';
|
|
4
4
|
export { EmbeddedMobileMenu } from './EmbeddedMobileMenu';
|
|
5
5
|
export type { EmbeddedMobileMenuProps, MobileViews } from './EmbeddedMobileMenu';
|
|
6
|
+
export { setInboxAudioBaseUrl } from '../app/inbox/utils/sounds';
|
|
6
7
|
export { auth } from '@bcrumbs.net/bc-shared';
|
|
7
8
|
export { ThemeProvider, useThemeContext } from '../context/themeContext';
|
|
8
9
|
export { dconfigClient, coreClient, botClient, dqueryClient, setErrorHandler, getErrorHandler, } from '@bcrumbs.net/bc-api';
|