@bcrumbs.net/inbox 0.0.51 → 0.0.52
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/{cb9c022b3cf80e0f.svg → 2998ffe42c3436c0.svg} +43 -43
- package/{594c01a9720e0657.svg → 396ba1d86a9997b1.svg} +42 -42
- package/assets/ar/inbox.json +256 -246
- package/assets/en/inbox.json +258 -248
- package/index.cjs.d.ts +1 -1
- package/index.cjs.js +11726 -919
- package/index.esm.d.ts +1 -1
- package/index.esm.js +11727 -920
- package/package.json +4 -4
- package/src/app/ai/components/Crumby/index.d.ts +2 -0
- package/src/app/ai/components/playground/Thread.d.ts +5 -1
- package/src/app/ai/components/playground/ThreadWelcome.d.ts +4 -1
- package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
- package/src/app/ai/pages/AiPreferencesPrompts.d.ts +2 -0
- package/src/app/auth/pages/Login.d.ts +2 -12
- package/src/app/auth/pages/Register.d.ts +2 -13
- package/src/app/auth/redux/actions/registerAction.d.ts +1 -1
- package/src/app/auth/redux/auth.types.d.ts +1 -1
- package/src/app/billing/components/NotAccessible.d.ts +10 -0
- package/src/app/billing/components/Timeline.d.ts +20 -0
- package/src/app/billing/components/checkout/AddNewPaymentCard.d.ts +6 -0
- package/src/app/billing/components/checkout/CheckoutSummary.d.ts +20 -0
- package/src/app/billing/components/checkout/ExceedPaymentUpdateTriesModal.d.ts +8 -0
- package/src/app/billing/components/checkout/ExistingCardPayment.d.ts +10 -0
- package/src/app/billing/components/checkout/PaymentForm.d.ts +11 -0
- package/src/app/billing/components/checkout/PaymentFormExp.d.ts +9 -0
- package/src/app/billing/components/checkout/PaymentMethod.d.ts +8 -0
- package/src/app/billing/components/checkout/PaymentMethodCard.d.ts +9 -0
- package/src/app/billing/components/checkout/PaywithCredits.d.ts +9 -0
- package/src/app/billing/components/invoices/BCLogo.d.ts +5 -0
- package/src/app/billing/components/invoices/Invoice.d.ts +5 -0
- package/src/app/billing/components/planStyles.d.ts +9 -0
- package/src/app/billing/components/styles.d.ts +21 -0
- package/src/app/billing/components/subscription/PlanDetail.d.ts +11 -0
- package/src/app/billing/components/subscription/SubscriptionPausedWarning.d.ts +3 -0
- package/src/app/billing/components/transactions/TransactionHistoryTable.d.ts +15 -0
- package/src/app/billing/context/SubscriptionContext.d.ts +5 -0
- package/src/app/billing/hooks/useGetPaidToday.d.ts +9 -0
- package/src/app/billing/hooks/usePendingPayments.d.ts +51 -0
- package/src/app/billing/hooks/useSetupPayment.d.ts +15 -0
- package/src/app/billing/hooks/useSetupPaymentMethod.d.ts +12 -0
- package/src/app/billing/pages/checkout.d.ts +2 -0
- package/src/app/billing/pages/done.d.ts +1 -0
- package/src/app/billing/pages/invoice.d.ts +1 -0
- package/src/app/billing/pages/invoices.d.ts +2 -0
- package/src/app/billing/pages/payment.d.ts +1 -0
- package/src/app/billing/utils/getStripe.d.ts +3 -0
- package/src/app/billing/utils/openArticleModal.d.ts +1 -0
- package/src/app/billing/utils/paymentProvider.d.ts +3 -0
- package/src/app/billing/utils/stripeUtils.d.ts +2 -0
- package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +6 -1
- package/src/app/broadcast/components/BroadcastAnalysisReciepientsTable.d.ts +5 -1
- package/src/app/broadcast/components/BroadcastInfoHeader.d.ts +2 -1
- package/src/app/broadcast/components/BroadcastTargetingComplianceNotice.d.ts +2 -0
- package/src/app/broadcast/components/WorkspaceBroadcastAnalysisRecipients.d.ts +7 -0
- package/src/app/broadcast/hooks/useExportWorkspaceBroadcastDelivery.d.ts +6 -0
- package/src/app/broadcast/pages/WorkspaceBroadcastDeliveryReportPage.d.ts +2 -0
- package/src/app/broadcast/utils/helper.d.ts +4 -0
- package/src/app/dashboard/components/AgentCard.d.ts +11 -0
- package/src/app/dashboard/components/AgentPerformanceCard.d.ts +9 -0
- package/src/app/dashboard/components/AgentsCard.d.ts +9 -0
- package/src/app/dashboard/components/AgentsCardSkeleton.d.ts +2 -0
- package/src/app/dashboard/components/BroadcastAnalyticsCard.d.ts +10 -0
- package/src/app/dashboard/components/BroadcastCampaignProgressCard.d.ts +10 -0
- package/src/app/dashboard/components/BroadcastDashboard.d.ts +6 -0
- package/src/app/dashboard/components/BroadcastDashboardStatsCards.d.ts +14 -0
- package/src/app/dashboard/components/BroadcastRecipientsCard.d.ts +8 -0
- package/src/app/dashboard/components/BroadcastStatusDistributionCard.d.ts +6 -0
- package/src/app/dashboard/components/ConversationAnalyticsCard.d.ts +11 -0
- package/src/app/dashboard/components/DashboardSections.d.ts +24 -0
- package/src/app/dashboard/components/DashboardStatsCards.d.ts +10 -0
- package/src/app/dashboard/components/InboxDashboard.d.ts +10 -0
- package/src/app/dashboard/components/OpenedChatsCard.d.ts +8 -0
- package/src/app/dashboard/pages/DashboardNewPage.d.ts +2 -0
- package/src/app/dashboard/utils/buildBroadcastReportOverviewAnalytics.d.ts +17 -0
- package/src/app/dashboard/utils/buildRecipientsAnalytics.d.ts +12 -0
- package/src/app/dashboard/utils/dateHelpers.d.ts +7 -0
- package/src/app/generic/components/HeaderImageInput.d.ts +8 -0
- package/src/app/generic/components/PhoneNumberInput.d.ts +13 -0
- package/src/app/generic/components/TemplateParameterInputs.d.ts +2 -1
- package/src/app/generic/components/ToggleSetting.d.ts +3 -2
- package/src/app/generic/hooks/useGetProviderIcon.d.ts +2 -1
- package/src/app/inbox/components/Chat/ChatContent.d.ts +2 -1
- package/src/app/inbox/components/NewConvList/FilterDrawer.d.ts +18 -0
- package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +4 -1
- package/src/app/inbox/components/NewConvList/index.d.ts +6 -2
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +10 -0
- package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
- package/src/app/inbox/utils/convs.d.ts +10 -1
- package/src/app/layout/components/CommandPalette.d.ts +16 -0
- package/src/app/layout/components/Header.d.ts +3 -1
- package/src/app/layout/constants/index.d.ts +24 -2
- package/src/app/layout/constants/subMenu.d.ts +22 -2
- package/src/app/layout/hooks/useImportContactsEnabled.d.ts +1 -0
- package/src/app/managemnet/components/CreateCrmWebhook.d.ts +6 -0
- package/src/app/managemnet/components/channels/AddChannelDialog.d.ts +10 -0
- package/src/app/managemnet/components/channels/ChannelItem.d.ts +11 -0
- package/src/app/managemnet/components/channels/ChannelTypeCard.d.ts +15 -0
- package/src/app/managemnet/components/channels/EditChannelDialog.d.ts +11 -0
- package/src/app/managemnet/pages/crmIntegrations/index.d.ts +2 -0
- package/src/app/onboarding/components/OnboardingChecklistGuideContent.d.ts +8 -0
- package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +2 -0
- package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +39 -0
- package/src/app/resources/components/Integrations/ChannelDialogLayout.d.ts +24 -0
- package/src/app/resources/components/Integrations/Custom/index.d.ts +7 -0
- package/src/app/resources/components/Integrations/Facebook/index.d.ts +4 -1
- package/src/app/resources/components/Integrations/Instagram/index.d.ts +4 -1
- package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +11 -2
- package/src/app/resources/components/Integrations/Telegram/index.d.ts +4 -1
- package/src/app/resources/components/Integrations/WaGupshup/index.d.ts +7 -0
- package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +4 -1
- package/src/app/subscriptions/components/Plans/PlanCard.d.ts +3 -3
- package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +5 -2
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionHeader.d.ts +2 -1
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +1 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +0 -1
- package/src/app/subscriptions/constants/Plans.d.ts +9 -6
- package/src/app/subscriptions/pages/Upgrade.d.ts +6 -9
- package/src/assets/locales/translations.d.ts +292 -5
- package/src/config/azure.d.ts +2 -0
- package/src/environments/types.d.ts +3 -0
- package/src/graphql.autogenerated.d.ts +1649 -1234
- package/src/graphql.billing.autogenerated.d.ts +680 -7
- package/src/main.d.ts +2 -0
- package/src/utils/formatFailureReason.d.ts +5 -0
- package/src/utils/globalHelper.d.ts +3 -0
- package/src/utils/localStorage.d.ts +2 -0
- package/src/utils/textUtils.d.ts +3 -1
- package/src/app/resources/components/Integrations/Facebook/LoginPopup.d.ts +0 -4
- package/src/app/resources/components/Integrations/Instagram/LoginPopup.d.ts +0 -4
- package/src/app/resources/components/Integrations/WhatsApp/LoginPopup.d.ts +0 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrumbs.net/inbox",
|
|
3
3
|
"description": "Inbox widget for Bread Crumbs portals",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.52",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"graphql": "15.4.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@bcrumbs.net/bc-shared": "^0.0.
|
|
28
|
-
"@bcrumbs.net/bc-ui": "^0.0.
|
|
29
|
-
"@bcrumbs.net/bc-api": "^0.0.
|
|
27
|
+
"@bcrumbs.net/bc-shared": "^0.0.9",
|
|
28
|
+
"@bcrumbs.net/bc-ui": "^0.0.13",
|
|
29
|
+
"@bcrumbs.net/bc-api": "^0.0.47",
|
|
30
30
|
"@azure/storage-blob": "^12.25.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "./index.esm.js",
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
type ThreadWelcomeProps = {
|
|
2
|
+
message?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const ThreadWelcome: ({ message }: ThreadWelcomeProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
5
|
export default ThreadWelcome;
|
|
@@ -11,5 +11,5 @@ export declare const TooltipIconButton: import("react").ForwardRefExoticComponen
|
|
|
11
11
|
asChild?: boolean | undefined;
|
|
12
12
|
}, "ref"> & {
|
|
13
13
|
tooltip: string;
|
|
14
|
-
side?: "
|
|
14
|
+
side?: "left" | "right" | "bottom" | "top" | undefined;
|
|
15
15
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,13 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
history: any;
|
|
4
|
-
router: any;
|
|
5
|
-
userIsAuthenticated: boolean;
|
|
6
|
-
loginAction: UserAuthTypes.LoginAction;
|
|
7
|
-
oauthLoginAction: UserAuthTypes.OAuthLoginAction;
|
|
8
|
-
login: any;
|
|
9
|
-
error: any;
|
|
10
|
-
status: any;
|
|
11
|
-
};
|
|
12
|
-
declare const _default: any;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ComponentClass<{}, any>;
|
|
13
3
|
export default _default;
|
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
location: any;
|
|
4
|
-
history: any;
|
|
5
|
-
router: any;
|
|
6
|
-
userRegistered: boolean;
|
|
7
|
-
registerAction: RegisterAction;
|
|
8
|
-
registerAfterInvitationAction: RegisterAfterInvitationAction;
|
|
9
|
-
register: any;
|
|
10
|
-
error: any;
|
|
11
|
-
status: any;
|
|
12
|
-
};
|
|
13
|
-
declare const _default: any;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").ComponentClass<{}, any>;
|
|
14
3
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function registerAction(action: any, firstName: string, lastName: string, userName: string, email: string, password: string, confirmPassword: string, time?: string): (dispatch: any) => void;
|
|
1
|
+
export declare function registerAction(action: any, firstName: string, lastName: string, userName: string, email: string, password: string, confirmPassword: string, clientDistinctId?: string, time?: string): (dispatch: any) => void;
|
|
2
2
|
export declare function registerAfterInvitationAction(user: any, token: any, time?: string): (dispatch: any) => void;
|
|
3
3
|
export declare function receivedUserRegister(status: number, user?: any, time?: string): {
|
|
4
4
|
type: string;
|
|
@@ -50,7 +50,7 @@ export type ErrorUserLoggedIn = (error?: any, time?: string, source?: string) =>
|
|
|
50
50
|
export type SetLoadingStateForUserLogin = (time: string) => any;
|
|
51
51
|
export type UnsetLoadingStateForUserLogin = (time: string) => any;
|
|
52
52
|
export type ResendConfirmation = (email: string) => any;
|
|
53
|
-
export type RegisterAction = (action: any, name: string, lastname: string, username: string, email: string, password: string, confirmPassord: string) => any;
|
|
53
|
+
export type RegisterAction = (action: any, name: string, lastname: string, username: string, email: string, password: string, confirmPassord: string, clientDistinctId?: string) => any;
|
|
54
54
|
export type RegisterAfterInvitationAction = (user: any, toekn: string) => any;
|
|
55
55
|
export type ReceivedUserRegister = (user?: User, time?: string) => any;
|
|
56
56
|
export type ErrorUserRegister = (error?: any, time?: string) => any;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface IProps {
|
|
3
|
+
cta: () => void;
|
|
4
|
+
isLoading?: boolean;
|
|
5
|
+
title: ReactNode;
|
|
6
|
+
description: ReactNode;
|
|
7
|
+
buttonText: string;
|
|
8
|
+
}
|
|
9
|
+
export default function NotAccessible({ cta, isLoading, title, description, buttonText, }: IProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type TimelineDotColor = 'primary' | 'grey' | 'error' | 'success' | 'warning';
|
|
3
|
+
interface TimelineDotProps {
|
|
4
|
+
color?: TimelineDotColor;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function TimelineDot({ color, children }: TimelineDotProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function TimelineConnector(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
interface TimelineItemProps {
|
|
10
|
+
timestamp?: ReactNode;
|
|
11
|
+
dot?: ReactNode;
|
|
12
|
+
showConnector?: boolean;
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare function TimelineItem({ timestamp, dot, showConnector, children }: TimelineItemProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
|
+
interface TimelineProps {
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
}
|
|
19
|
+
export declare function Timeline({ children }: TimelineProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PostHog } from "posthog-js/react";
|
|
2
|
+
import { PlanType, Plan, PlanPricingQuery } from "../../../../graphql.billing.autogenerated";
|
|
3
|
+
import { CurrentSubscription } from "../../context/SubscriptionContext";
|
|
4
|
+
type PricingData = PlanPricingQuery["planPricing"];
|
|
5
|
+
export interface CheckoutSummaryProps {
|
|
6
|
+
plan: Partial<Plan> | undefined;
|
|
7
|
+
currentPlan: Partial<Plan> | undefined;
|
|
8
|
+
selectedPlanType: PlanType | undefined;
|
|
9
|
+
isRenewal: boolean;
|
|
10
|
+
isYearly: boolean;
|
|
11
|
+
setIsYearly: (val: boolean) => void;
|
|
12
|
+
originalIsYearly: boolean;
|
|
13
|
+
subscription: CurrentSubscription;
|
|
14
|
+
pricingData: PricingData | undefined;
|
|
15
|
+
paidToday: number | undefined;
|
|
16
|
+
creditsUsed: number | undefined;
|
|
17
|
+
posthog: PostHog | undefined;
|
|
18
|
+
}
|
|
19
|
+
export default function CheckoutSummary({ plan, currentPlan, selectedPlanType, isRenewal, isYearly, setIsYearly, originalIsYearly, subscription, pricingData, paidToday, creditsUsed, posthog, }: CheckoutSummaryProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
type SetStateActionType = Dispatch<SetStateAction<boolean>>;
|
|
3
|
+
interface ExceedPaymentUpdateTriesModalProps {
|
|
4
|
+
open: boolean;
|
|
5
|
+
setOpen: SetStateActionType;
|
|
6
|
+
}
|
|
7
|
+
export default function ExceedPaymentUpdateTriesModal({ open, setOpen, }: ExceedPaymentUpdateTriesModalProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PaymentMethod as PaymentMethodType, Term, PlanType } from "../../../../graphql.billing.autogenerated";
|
|
2
|
+
interface IProps {
|
|
3
|
+
paymentMethod: PaymentMethodType;
|
|
4
|
+
planType: PlanType;
|
|
5
|
+
term: Term;
|
|
6
|
+
isRenewal: boolean;
|
|
7
|
+
turnstile: string;
|
|
8
|
+
}
|
|
9
|
+
declare function ExistingCardPaymentWithStripeElements(props: IProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default ExistingCardPaymentWithStripeElements;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SetupPaymentMethodResult, CheckoutResult } from "../../../../graphql.billing.autogenerated";
|
|
2
|
+
type PaymentFormProps = {
|
|
3
|
+
intentResponse: SetupPaymentMethodResult | CheckoutResult;
|
|
4
|
+
setupIntent?: boolean;
|
|
5
|
+
};
|
|
6
|
+
type PaymentFormContainerDialogProps = PaymentFormProps & {
|
|
7
|
+
open: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
};
|
|
10
|
+
export default function PaymentFormWithDialog({ open, onClose, intentResponse, setupIntent, }: PaymentFormContainerDialogProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { CheckoutResult, SetupPaymentMethodResult } from "../../../../graphql.billing.autogenerated";
|
|
2
|
+
interface IProps {
|
|
3
|
+
setupPayment: () => Promise<void>;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
intentResponse: CheckoutResult | SetupPaymentMethodResult | undefined;
|
|
6
|
+
hasError: boolean;
|
|
7
|
+
}
|
|
8
|
+
export default function PaymentFormExp({ setupPayment, loading, intentResponse, hasError, }: IProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { PaymentMethod as PaymentMethodType } from "../../../../graphql.billing.autogenerated";
|
|
3
|
+
interface IProps {
|
|
4
|
+
action?: ReactNode;
|
|
5
|
+
paymentMethod: PaymentMethodType;
|
|
6
|
+
}
|
|
7
|
+
export default function PaymentMethod({ action, paymentMethod }: IProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PaymentMethod as PaymentMethodType } from "../../../../graphql.billing.autogenerated";
|
|
2
|
+
interface PaymentMethodProps {
|
|
3
|
+
paymentMethod: PaymentMethodType;
|
|
4
|
+
onAction?: () => Promise<void>;
|
|
5
|
+
actionLoading?: boolean;
|
|
6
|
+
actionText: string;
|
|
7
|
+
}
|
|
8
|
+
export default function PaymentMethod(props: PaymentMethodProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PlanType, Term } from '../../../../graphql.billing.autogenerated';
|
|
2
|
+
interface IProps {
|
|
3
|
+
planType: PlanType;
|
|
4
|
+
term: Term;
|
|
5
|
+
isRenewal: boolean;
|
|
6
|
+
turnstile: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function PaywithCredits({ planType, term, isRenewal, turnstile }: IProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface CardHeaderBaseProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "title"> {
|
|
3
|
+
title?: React.ReactNode;
|
|
4
|
+
action?: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const StyledCardHeader: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<CardHeaderBaseProps & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
7
|
+
export declare const StyledCard: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/themes").CardProps & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
8
|
+
export declare const StyledCardv2: import("styled-components").StyledComponent<React.ForwardRefExoticComponent<import("@radix-ui/themes").CardProps & React.RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const FlexBox: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
+
export declare const FlexCentered: import("@emotion/styled").StyledComponent<{
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
export declare const FlexBetween: import("@emotion/styled").StyledComponent<{
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
+
} & import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export declare const DisabledOverlay: import("@emotion/styled").StyledComponent<{
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IPlanDetail {
|
|
3
|
+
hasDetail: boolean;
|
|
4
|
+
primaryText: React.ReactNode;
|
|
5
|
+
secondaryText?: React.ReactNode;
|
|
6
|
+
link?: string;
|
|
7
|
+
toolTip?: React.ReactNode;
|
|
8
|
+
alert?: React.ReactNode;
|
|
9
|
+
}
|
|
10
|
+
declare const PlanDetail: ({ hasDetail, primaryText, secondaryText, link, toolTip, alert }: IPlanDetail) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default PlanDetail;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { SetStateAction, Dispatch } from "react";
|
|
2
|
+
import { Transaction } from "../../../../graphql.billing.autogenerated";
|
|
3
|
+
interface TransactionHistoryTableProps {
|
|
4
|
+
paymentTransactions: Transaction[];
|
|
5
|
+
rowsPerPage: number;
|
|
6
|
+
setRowsPerPage: Dispatch<SetStateAction<number>>;
|
|
7
|
+
page: number;
|
|
8
|
+
setPage: Dispatch<SetStateAction<number>>;
|
|
9
|
+
order: "asc" | "desc";
|
|
10
|
+
setOrder: Dispatch<SetStateAction<"asc" | "desc">>;
|
|
11
|
+
orderBy: string | null;
|
|
12
|
+
setOrderBy: Dispatch<SetStateAction<string | null>>;
|
|
13
|
+
}
|
|
14
|
+
export default function TransactionHistoryTable(props: TransactionHistoryTableProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -59,4 +59,9 @@ export declare function SubscriptionProvider({ children, workspaceId: propWorksp
|
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
61
|
export declare function useCurrentSubscription(): SubscriptionContextValue;
|
|
62
|
+
/**
|
|
63
|
+
* useCurrentSubscriptionOptional - Safe hook for screens that may render
|
|
64
|
+
* outside SubscriptionProvider (e.g. embedded surfaces).
|
|
65
|
+
*/
|
|
66
|
+
export declare function useCurrentSubscriptionOptional(): SubscriptionContextValue | undefined;
|
|
62
67
|
export default SubscriptionContext;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PlanPricing } from "../../../graphql.billing.autogenerated";
|
|
2
|
+
export default function useGetPaidToday({ pricingData, isRenewal, isYearly, }: {
|
|
3
|
+
pricingData?: PlanPricing;
|
|
4
|
+
isRenewal: boolean;
|
|
5
|
+
isYearly: boolean;
|
|
6
|
+
}): {
|
|
7
|
+
creditsUsed: number | undefined;
|
|
8
|
+
paidToday: number | undefined;
|
|
9
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PendingPaymentStatus } from "../../../graphql.billing.autogenerated";
|
|
2
|
+
export default function usePendingPayments(): {
|
|
3
|
+
getPendingPayment: (list: {
|
|
4
|
+
__typename?: "PendingPayment" | undefined;
|
|
5
|
+
id: number;
|
|
6
|
+
status: PendingPaymentStatus;
|
|
7
|
+
failureReason?: string | null | undefined;
|
|
8
|
+
paymentMethodId?: number | null | undefined;
|
|
9
|
+
planId?: number | null | undefined;
|
|
10
|
+
transactionId?: number | null | undefined;
|
|
11
|
+
isSetupIntent: boolean;
|
|
12
|
+
isRenewal: boolean;
|
|
13
|
+
term: string;
|
|
14
|
+
createdAt: any;
|
|
15
|
+
updatedAt: any;
|
|
16
|
+
completedAt?: any;
|
|
17
|
+
}[]) => {
|
|
18
|
+
__typename?: "PendingPayment" | undefined;
|
|
19
|
+
id: number;
|
|
20
|
+
status: PendingPaymentStatus;
|
|
21
|
+
failureReason?: string | null | undefined;
|
|
22
|
+
paymentMethodId?: number | null | undefined;
|
|
23
|
+
planId?: number | null | undefined;
|
|
24
|
+
transactionId?: number | null | undefined;
|
|
25
|
+
isSetupIntent: boolean;
|
|
26
|
+
isRenewal: boolean;
|
|
27
|
+
term: string;
|
|
28
|
+
createdAt: any;
|
|
29
|
+
updatedAt: any;
|
|
30
|
+
completedAt?: any;
|
|
31
|
+
} | undefined;
|
|
32
|
+
pendingPayment: {
|
|
33
|
+
__typename?: "PendingPayment" | undefined;
|
|
34
|
+
id: number;
|
|
35
|
+
status: PendingPaymentStatus;
|
|
36
|
+
failureReason?: string | null | undefined;
|
|
37
|
+
paymentMethodId?: number | null | undefined;
|
|
38
|
+
planId?: number | null | undefined;
|
|
39
|
+
transactionId?: number | null | undefined;
|
|
40
|
+
isSetupIntent: boolean;
|
|
41
|
+
isRenewal: boolean;
|
|
42
|
+
term: string;
|
|
43
|
+
createdAt: any;
|
|
44
|
+
updatedAt: any;
|
|
45
|
+
completedAt?: any;
|
|
46
|
+
} | undefined;
|
|
47
|
+
mutatePendingPayments: (variables?: Partial<import("../../../graphql.billing.autogenerated").Exact<{
|
|
48
|
+
input: import("../../../graphql.billing.autogenerated").PendingPaymentsInput;
|
|
49
|
+
}>> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<import("../../../graphql.billing.autogenerated").PendingPaymentsQuery>>;
|
|
50
|
+
handleCancelPayment: (id: number) => Promise<void>;
|
|
51
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { CheckoutResult, PlanType, Term } from "../../../graphql.billing.autogenerated";
|
|
2
|
+
interface UseSetupPaymentProps {
|
|
3
|
+
workspaceId: number | undefined;
|
|
4
|
+
planType: PlanType;
|
|
5
|
+
term: Term;
|
|
6
|
+
turnstile: string;
|
|
7
|
+
isRenewal?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default function useSetupPayment({ workspaceId, planType, term, turnstile, isRenewal, }: UseSetupPaymentProps): {
|
|
10
|
+
loading: boolean;
|
|
11
|
+
process: (paymentMethod?: string) => Promise<void>;
|
|
12
|
+
response: CheckoutResult | undefined;
|
|
13
|
+
hasError: boolean;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SetupPaymentMethodResult } from "../../../graphql.billing.autogenerated";
|
|
2
|
+
interface UseSetupPaymentMethodProps {
|
|
3
|
+
workspaceId: number | undefined;
|
|
4
|
+
turnstile: string;
|
|
5
|
+
}
|
|
6
|
+
export default function useSetupPaymentMethod({ workspaceId, turnstile, }: UseSetupPaymentMethodProps): {
|
|
7
|
+
loading: boolean;
|
|
8
|
+
process: () => Promise<void>;
|
|
9
|
+
response: SetupPaymentMethodResult | undefined;
|
|
10
|
+
errorCode: "exceeding_updating_payment_method_limit" | undefined;
|
|
11
|
+
};
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function CustomizeDone(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function NotFoundPage(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function PendingPayment(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const openArticleModal: (id: string) => never;
|
|
@@ -10,6 +10,11 @@ interface BroadcastAnalysisReciepientsHeaderProps {
|
|
|
10
10
|
selectedState: BroadcastState | undefined;
|
|
11
11
|
setSelectedState: (state: BroadcastState | undefined) => void;
|
|
12
12
|
clientStages: Tag[];
|
|
13
|
+
/** When set, shows a CSV export control (e.g. workspace delivery report). */
|
|
14
|
+
onDownloadCsv?: () => void;
|
|
15
|
+
/** Workspace delivery report: filter rows by template name substring (server-side). */
|
|
16
|
+
templateNameQuery?: string;
|
|
17
|
+
setTemplateNameQuery?: (query: string) => void;
|
|
13
18
|
}
|
|
14
|
-
declare const _default: React.MemoExoticComponent<({ setSearchQuery, searchQuery, selectedCountry, setSelectedCountry, selectedStage, setSelectedStage, selectedState, setSelectedState, clientStages }: BroadcastAnalysisReciepientsHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
19
|
+
declare const _default: React.MemoExoticComponent<({ setSearchQuery, searchQuery, selectedCountry, setSelectedCountry, selectedStage, setSelectedStage, selectedState, setSelectedState, clientStages, onDownloadCsv, templateNameQuery, setTemplateNameQuery, }: BroadcastAnalysisReciepientsHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
15
20
|
export default _default;
|
|
@@ -7,6 +7,10 @@ interface BroadcastAnalysisReciepientsTableProps {
|
|
|
7
7
|
onLoadMore?: () => void;
|
|
8
8
|
loadingMore?: boolean;
|
|
9
9
|
clientStages: Tag[];
|
|
10
|
+
/** When true, show broadcast name and link to that broadcast's analysis. */
|
|
11
|
+
showBroadcastColumns?: boolean;
|
|
12
|
+
/** Expand the table body to fill available vertical space (flex parents must set min-height: 0). */
|
|
13
|
+
fillHeight?: boolean;
|
|
10
14
|
}
|
|
11
|
-
declare const _default: React.MemoExoticComponent<({ reciepients, loading, hasMore, onLoadMore, loadingMore, clientStages, }: BroadcastAnalysisReciepientsTableProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
15
|
+
declare const _default: React.MemoExoticComponent<({ reciepients, loading, hasMore, onLoadMore, loadingMore, clientStages, showBroadcastColumns, fillHeight, }: BroadcastAnalysisReciepientsTableProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
12
16
|
export default _default;
|
|
@@ -5,6 +5,7 @@ interface BroadcastInfoHeaderProps {
|
|
|
5
5
|
loading: boolean;
|
|
6
6
|
disabledSave: boolean;
|
|
7
7
|
isEditMode: boolean;
|
|
8
|
+
saveDisabledReason?: string;
|
|
8
9
|
}
|
|
9
|
-
declare const _default: React.MemoExoticComponent<({ onCancel, onSave, loading, disabledSave, isEditMode }: BroadcastInfoHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<({ onCancel, onSave, loading, disabledSave, isEditMode, saveDisabledReason, }: BroadcastInfoHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
10
11
|
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface WorkspaceBroadcastAnalysisRecipientsProps {
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
}
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ startDate, endDate }: WorkspaceBroadcastAnalysisRecipientsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BroadcastMessageStatus, Tag } from '../../../graphql.autogenerated';
|
|
2
|
+
export interface UseExportWorkspaceBroadcastDeliveryResult {
|
|
3
|
+
exportDeliveryReportCsv: () => void;
|
|
4
|
+
}
|
|
5
|
+
/** Builds a CSV from the rows currently loaded in the delivery report table (no extra network fetch). */
|
|
6
|
+
export declare function useExportWorkspaceBroadcastDelivery(items: BroadcastMessageStatus[], clientStages: Tag[]): UseExportWorkspaceBroadcastDeliveryResult;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
export declare const fullDateTimeFormat: (date: string | null | undefined) => string;
|
|
2
|
+
/**
|
|
3
|
+
* Template sends store `content` as JSON: `{ name, language: { code }, components }`.
|
|
4
|
+
*/
|
|
5
|
+
export declare const getTemplateNameFromStoredMessageContent: (content: string | null | undefined) => string | null;
|
|
2
6
|
export declare const calculateTotalCost: (category?: string, numberOfClients?: number) => number;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface AgentCardProps {
|
|
2
|
+
name: string;
|
|
3
|
+
surname: string;
|
|
4
|
+
email?: string | null;
|
|
5
|
+
avatar?: string | null;
|
|
6
|
+
conversationCount: number;
|
|
7
|
+
reportDate?: string;
|
|
8
|
+
isSelected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const AgentCard: ({ name, surname, email, avatar, conversationCount, reportDate, isSelected }: AgentCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default AgentCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Agent, AgentsReportQuery } from '../../../graphql.autogenerated';
|
|
2
|
+
type AgentReportNode = NonNullable<AgentsReportQuery['agentsReport']['nodes']>[number];
|
|
3
|
+
interface AgentPerformanceCardProps {
|
|
4
|
+
data?: AgentReportNode[];
|
|
5
|
+
agentsData?: Agent[];
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const AgentPerformanceCard: ({ data, agentsData, loading }: AgentPerformanceCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AgentPerformanceCard;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Agent, Conversation } from '../../../graphql.autogenerated';
|
|
2
|
+
interface AgentsCardProps {
|
|
3
|
+
agents?: Agent[];
|
|
4
|
+
openedConvs?: Conversation[] | null;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
selectedAgentIds?: string[];
|
|
7
|
+
}
|
|
8
|
+
declare const AgentsCard: ({ agents, openedConvs, loading, selectedAgentIds }: AgentsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default AgentsCard;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BroadcastReportFragment } from '../../../graphql.autogenerated';
|
|
2
|
+
interface BroadcastAnalyticsCardProps {
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
reportNodes: BroadcastReportFragment[];
|
|
6
|
+
integrationId?: string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const BroadcastAnalyticsCard: ({ startDate, endDate, reportNodes, integrationId, loading, }: BroadcastAnalyticsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BroadcastAnalyticsCard;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NewBarChartDataItem } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
interface BroadcastCampaignProgressCardProps {
|
|
3
|
+
completed: number;
|
|
4
|
+
failed: number;
|
|
5
|
+
completedChange: number;
|
|
6
|
+
failedChange: number;
|
|
7
|
+
barData: NewBarChartDataItem[];
|
|
8
|
+
}
|
|
9
|
+
declare const BroadcastCampaignProgressCard: ({ completed, failed, completedChange, failedChange, barData, }: BroadcastCampaignProgressCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default BroadcastCampaignProgressCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface BroadcastDashboardProps {
|
|
2
|
+
integrationId?: string;
|
|
3
|
+
selectedPeriod: string;
|
|
4
|
+
}
|
|
5
|
+
declare const BroadcastDashboard: ({ integrationId, selectedPeriod }: BroadcastDashboardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default BroadcastDashboard;
|