@bcrumbs.net/inbox 0.0.51 → 0.0.55
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 +20 -3
- package/assets/en/inbox.json +22 -5
- package/index.cjs.js +3955 -1472
- package/index.esm.js +3958 -1477
- package/package.json +4 -4
- package/src/app/ai/components/Crumby/index.d.ts +2 -0
- package/src/app/ai/components/CrumbySettings/AutoTagRulesSection.d.ts +14 -0
- package/src/app/ai/components/CrumbySettings/tagRuleUtils.d.ts +28 -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/components/UserAvatar/AccountSettingsDropdown.d.ts +2 -1
- package/src/app/auth/components/UserAvatar/index.d.ts +2 -1
- package/src/app/auth/pages/CheckAuth.d.ts +10 -0
- package/src/app/auth/pages/Forget.d.ts +1 -3
- package/src/app/auth/pages/Login.d.ts +2 -12
- package/src/app/auth/pages/Password.d.ts +0 -1
- package/src/app/auth/pages/Profile.d.ts +0 -1
- package/src/app/auth/pages/Register.d.ts +2 -13
- package/src/app/auth/redux/actions/forgetPasswordAction.d.ts +1 -1
- package/src/app/auth/redux/actions/logoutAction.d.ts +2 -2
- package/src/app/auth/redux/actions/registerAction.d.ts +1 -1
- package/src/app/auth/redux/actions/resetPasswordAction.d.ts +2 -2
- package/src/app/auth/redux/auth.types.d.ts +6 -2
- 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 +8 -1
- 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/pendingPlanPurchaseStorage.d.ts +10 -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/contact/components/ContactFormFields.d.ts +2 -1
- package/src/app/contact/config/contactForm.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 +11 -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 +19 -0
- package/src/app/dashboard/utils/buildRecipientsAnalytics.d.ts +12 -0
- package/src/app/dashboard/utils/dateHelpers.d.ts +24 -0
- package/src/app/generic/components/HeaderImageInput.d.ts +9 -0
- package/src/app/generic/components/MessagePreview.d.ts +3 -1
- package/src/app/generic/components/PhoneNumberInput.d.ts +13 -0
- package/src/app/generic/components/PreviewHeaderImage.d.ts +2 -1
- 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/generic/utils/logout.d.ts +1 -1
- package/src/app/inbox/components/Chat/ChatContent.d.ts +2 -3
- package/src/app/inbox/components/Chat/ChatHeader.d.ts +5 -1
- package/src/app/inbox/components/Chat/NoResultsFound.d.ts +3 -0
- package/src/app/inbox/components/Chat/index.d.ts +4 -1
- package/src/app/inbox/components/NewConvList/FilterDrawer.d.ts +17 -0
- package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +6 -2
- package/src/app/inbox/components/NewConvList/index.d.ts +6 -2
- package/src/app/inbox/components/NewDetails/ChatDetails.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/ChatDetailsAndTimeline.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/ClientInfo.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/ConversationOverview.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/EditClientInfo.d.ts +3 -2
- package/src/app/inbox/components/NewDetails/index.d.ts +3 -2
- package/src/app/inbox/components/Shared/Inbox.d.ts +9 -7
- package/src/app/inbox/components/Shared/MobileActionSheet.d.ts +9 -0
- package/src/app/inbox/components/Shared/MobileMenu.d.ts +8 -0
- package/src/app/inbox/components/Shared/SharedStyle.d.ts +7 -0
- package/src/app/inbox/components/Shared/mobileMenuStyles.d.ts +20 -0
- package/src/app/inbox/constants/index.d.ts +1 -1
- package/src/app/inbox/hooks/useConversationById.d.ts +8 -0
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +10 -0
- package/src/app/inbox/hooks/useInboxAssignableAis.d.ts +3 -0
- package/src/app/inbox/hooks/useMyAgent.d.ts +8 -0
- package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
- package/src/app/inbox/utils/convs.d.ts +14 -5
- package/src/app/inbox/utils/inboxAssignableAis.d.ts +10 -0
- package/src/app/inbox/utils/mobileInboxStyles.d.ts +6 -0
- package/src/app/layout/components/CommandPalette.d.ts +16 -0
- package/src/app/layout/components/Header.d.ts +3 -5
- package/src/app/layout/constants/index.d.ts +24 -2
- package/src/app/layout/constants/subMenu.d.ts +34 -4
- package/src/app/layout/context/EmbeddedInboxContext.d.ts +3 -0
- package/src/app/layout/context/MobileInboxNavContext.d.ts +9 -0
- package/src/app/layout/hooks/useImportContactsEnabled.d.ts +1 -0
- package/src/app/layout/hooks/useMobileInboxVersion.d.ts +1 -3
- package/src/app/managemnet/components/CreateCrmWebhook.d.ts +6 -0
- package/src/app/managemnet/components/CreateQuickReply.d.ts +8 -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/config/quickReplyDefinition.d.ts +4 -0
- package/src/app/managemnet/pages/crmIntegrations/index.d.ts +2 -0
- package/src/app/managemnet/pages/quickReplies/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 +43 -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/NoPagesFoundPopup.d.ts +2 -1
- package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +2 -1
- 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 +10 -23
- package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +8 -4
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionHeader.d.ts +1 -9
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionPlanLabel.d.ts +8 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +1 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfileCard.d.ts +14 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsageCard.d.ts +7 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +3 -3
- package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +4 -1
- package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +3 -1
- package/src/app/subscriptions/components/SubscriptionsList.d.ts +1 -0
- 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 +354 -5
- package/src/config/azure.d.ts +2 -0
- package/src/environments/types.d.ts +3 -0
- package/src/graphql.autogenerated.d.ts +2179 -1225
- package/src/graphql.billing.autogenerated.d.ts +683 -7
- package/src/lib/EmbeddedMobileMenu.d.ts +9 -0
- package/src/lib/conversation-chat.d.ts +11 -0
- package/src/lib/index.d.ts +4 -0
- 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/integration.d.ts +6 -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
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PlanType } from '../../../graphql.billing.autogenerated';
|
|
2
|
+
/** Normalizes landing-page planType query values to billing PlanType. */
|
|
3
|
+
export declare function normalizePendingPlanType(raw: string | null | undefined): PlanType | null;
|
|
4
|
+
export declare function setPendingPlanPurchase(planType: string): void;
|
|
5
|
+
export declare function getPendingPlanPurchase(): PlanType | null;
|
|
6
|
+
export declare function clearPendingPlanPurchase(): void;
|
|
7
|
+
/** True when the URL search string contains a valid paid planType. */
|
|
8
|
+
export declare function hasPlanTypeInSearch(search: string): boolean;
|
|
9
|
+
/** Reads planType from a URL search string and persists it when valid. */
|
|
10
|
+
export declare function capturePendingPlanFromSearch(search: string): PlanType | null;
|
|
@@ -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;
|
|
@@ -2,8 +2,9 @@ import { Tag } from '../../../graphql.autogenerated';
|
|
|
2
2
|
interface ContactFormFieldsProps {
|
|
3
3
|
renderField: any;
|
|
4
4
|
isEditMode?: boolean;
|
|
5
|
+
isPhoneReadOnly?: boolean;
|
|
5
6
|
renderDroplistField?: any;
|
|
6
7
|
clientStages?: Tag[];
|
|
7
8
|
}
|
|
8
|
-
declare const ContactFormFields: ({ renderField, renderDroplistField, isEditMode, clientStages }: ContactFormFieldsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const ContactFormFields: ({ renderField, renderDroplistField, isEditMode, isPhoneReadOnly, clientStages, }: ContactFormFieldsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default ContactFormFields;
|
|
@@ -3,6 +3,7 @@ export declare enum FormFields {
|
|
|
3
3
|
name = "name",
|
|
4
4
|
surname = "surname",
|
|
5
5
|
email = "email",
|
|
6
|
+
phone = "phone",
|
|
6
7
|
externalClientId = "externalClientId",
|
|
7
8
|
address = "address",
|
|
8
9
|
country = "country",
|
|
@@ -23,6 +24,9 @@ export declare const FORM_INIT: {
|
|
|
23
24
|
validationType: BCValidationTypes;
|
|
24
25
|
}[];
|
|
25
26
|
};
|
|
27
|
+
phone: {
|
|
28
|
+
value: string;
|
|
29
|
+
};
|
|
26
30
|
externalClientId: {
|
|
27
31
|
value: string;
|
|
28
32
|
validations: {
|
|
@@ -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,11 @@
|
|
|
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
|
+
selectedPeriod: string;
|
|
9
|
+
}
|
|
10
|
+
declare const BroadcastAnalyticsCard: ({ startDate, endDate, reportNodes, integrationId, loading, selectedPeriod, }: BroadcastAnalyticsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
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;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface BroadcastDashboardStatsCardsProps {
|
|
3
|
+
loading?: boolean;
|
|
4
|
+
/** Denominator-style total from the report (success + failed). */
|
|
5
|
+
totalMessages?: number;
|
|
6
|
+
deliveredSuccessfully?: string | number;
|
|
7
|
+
totalOpened?: string | number;
|
|
8
|
+
/** Share of messages sent (percentage string/number). */
|
|
9
|
+
sentPercentage?: string | number;
|
|
10
|
+
/** Raw sent count for the “Sent messages” subtitle. */
|
|
11
|
+
sentCount?: number;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: React.MemoExoticComponent<({ loading, totalMessages, deliveredSuccessfully, totalOpened, sentPercentage, sentCount, }: BroadcastDashboardStatsCardsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BroadcastReportFragment } from '../../../graphql.autogenerated';
|
|
2
|
+
interface BroadcastRecipientsCardProps {
|
|
3
|
+
startDate: string;
|
|
4
|
+
endDate: string;
|
|
5
|
+
reportNodes?: BroadcastReportFragment[];
|
|
6
|
+
}
|
|
7
|
+
declare const BroadcastRecipientsCard: ({ startDate, endDate, reportNodes }: BroadcastRecipientsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BroadcastRecipientsCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
interface BroadcastStatusDistributionCardProps {
|
|
2
|
+
startDate: string;
|
|
3
|
+
endDate: string;
|
|
4
|
+
}
|
|
5
|
+
declare const BroadcastStatusDistributionCard: ({ startDate, endDate }: BroadcastStatusDistributionCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default BroadcastStatusDistributionCard;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface ReportNode {
|
|
2
|
+
createdAt: string;
|
|
3
|
+
conversationCount?: number | null;
|
|
4
|
+
}
|
|
5
|
+
interface ConversationAnalyticsCardProps {
|
|
6
|
+
reportNodes: ReportNode[];
|
|
7
|
+
startDate: string;
|
|
8
|
+
endDate: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ConversationAnalyticsCard: ({ reportNodes, startDate, endDate }: ConversationAnalyticsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ConversationAnalyticsCard;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Agent, AgentsReportQuery, ConvsReportQuery, Conversation } from '../../../graphql.autogenerated';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type AgentReportNode = NonNullable<AgentsReportQuery['agentsReport']['nodes']>[number];
|
|
4
|
+
type ConvReportNode = NonNullable<ConvsReportQuery['convsReport']['nodes']>[number];
|
|
5
|
+
type ReportNode = AgentReportNode | ConvReportNode;
|
|
6
|
+
interface DashboardSectionsProps {
|
|
7
|
+
agentsData?: Agent[];
|
|
8
|
+
allAgentsData?: Agent[];
|
|
9
|
+
agentsReportData?: AgentReportNode[];
|
|
10
|
+
agentsLoading?: boolean;
|
|
11
|
+
agentsReportLoading?: boolean;
|
|
12
|
+
totalMessages?: number;
|
|
13
|
+
convsLoading?: boolean;
|
|
14
|
+
integrationId?: string;
|
|
15
|
+
agentIds?: string[];
|
|
16
|
+
assignedConversations?: number;
|
|
17
|
+
unassignedConversations?: number;
|
|
18
|
+
liveConvs?: Conversation[] | null;
|
|
19
|
+
startDate: string;
|
|
20
|
+
endDate: string;
|
|
21
|
+
reportNodes: ReportNode[];
|
|
22
|
+
}
|
|
23
|
+
declare const _default: React.MemoExoticComponent<({ agentsData, allAgentsData, agentsReportData, agentsLoading, agentsReportLoading, totalMessages, convsLoading, integrationId, agentIds, assignedConversations, unassignedConversations, liveConvs, startDate, endDate, reportNodes, }: DashboardSectionsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface DashboardStatsCardsProps {
|
|
3
|
+
totalConversations?: number | string;
|
|
4
|
+
avgResponseTime?: number | string;
|
|
5
|
+
newConversations?: number | string;
|
|
6
|
+
avgChatTime?: number | string;
|
|
7
|
+
loading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ totalConversations, avgResponseTime, newConversations, avgChatTime, loading, }: DashboardStatsCardsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Agent } from '../../../graphql.autogenerated';
|
|
2
|
+
export interface InboxDashboardProps {
|
|
3
|
+
selectedChannel: string | undefined;
|
|
4
|
+
selectedPeriod: string;
|
|
5
|
+
selectedAgents: string[];
|
|
6
|
+
agentsData?: Agent[];
|
|
7
|
+
agentsLoading?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const InboxDashboard: ({ selectedChannel, selectedPeriod, selectedAgents, agentsData, agentsLoading, }: InboxDashboardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default InboxDashboard;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface AllChatsCardProps {
|
|
2
|
+
totalMessages?: number;
|
|
3
|
+
assignedConversations?: number;
|
|
4
|
+
unassignedConversations?: number;
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const OpenedChatsCard: ({ totalMessages, assignedConversations, unassignedConversations, loading, }: AllChatsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default OpenedChatsCard;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NewBarChartDataItem } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
import { BroadcastReportFragment } from '../../../graphql.autogenerated';
|
|
3
|
+
export interface BroadcastReportOverviewAnalytics {
|
|
4
|
+
completed: number;
|
|
5
|
+
failed: number;
|
|
6
|
+
draft: number;
|
|
7
|
+
inProgress: number;
|
|
8
|
+
scheduled: number;
|
|
9
|
+
total: number;
|
|
10
|
+
completedChange: number;
|
|
11
|
+
failedChange: number;
|
|
12
|
+
dailyBars: NewBarChartDataItem[];
|
|
13
|
+
}
|
|
14
|
+
export interface BuildBroadcastReportOverviewOptions {
|
|
15
|
+
integrationId?: string;
|
|
16
|
+
/** Must match the dashboard period preset so the prior window matches the header dropdown (e.g. last month vs February). */
|
|
17
|
+
selectedPeriod?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare function buildBroadcastReportOverviewAnalytics(reportNodes: BroadcastReportFragment[], startDate: string, endDate: string, options?: BuildBroadcastReportOverviewOptions): BroadcastReportOverviewAnalytics;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NewBarChartDataItem } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
import { BroadcastReportFragment } from '../../../graphql.autogenerated';
|
|
3
|
+
export interface BroadcastRecipientsAnalytics {
|
|
4
|
+
totalRecipients: number;
|
|
5
|
+
totalSuccessfulRecipients: number;
|
|
6
|
+
totalFailedRecipients: number;
|
|
7
|
+
successRate: number;
|
|
8
|
+
successRateChange: number;
|
|
9
|
+
barData: NewBarChartDataItem[];
|
|
10
|
+
}
|
|
11
|
+
export declare function buildRecipientsAnalytics(reportNodes: BroadcastReportFragment[], startDate: string, endDate: string): BroadcastRecipientsAnalytics;
|
|
12
|
+
export declare function successRateDeltaTone(delta: number): 'positive' | 'negative' | 'neutral';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** Label for a full calendar month N months before the current month (e.g. Feb, Jan). Adds year when not the current year. */
|
|
2
|
+
export declare const getCalendarMonthMonthsAgoLabel: (monthsBack: number, locale?: string) => string;
|
|
3
|
+
export declare const getDateRange: (period?: string) => {
|
|
4
|
+
startDate?: string;
|
|
5
|
+
endDate?: string;
|
|
6
|
+
};
|
|
7
|
+
/** Bounds for the period immediately before the current dashboard range (used for trend %). */
|
|
8
|
+
export type PreviousComparisonPeriod = {
|
|
9
|
+
start: Date;
|
|
10
|
+
end: Date;
|
|
11
|
+
/** When true, treat the range as [start, end) so the instant `end` belongs to the current period. */
|
|
12
|
+
endExclusive: boolean;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Calendar month presets compare to the full calendar month before the selected month.
|
|
16
|
+
* `thisMonth` and `last7Days` compare to an equal-duration window ending where the current range starts.
|
|
17
|
+
*/
|
|
18
|
+
export declare const getPreviousComparisonPeriod: (period?: string) => PreviousComparisonPeriod | null;
|
|
19
|
+
/** Widest ISO range needed to load both the selected period and its comparison period for broadcast reports. */
|
|
20
|
+
export declare const getBroadcastReportQueryDateRange: (period?: string) => {
|
|
21
|
+
startDate?: string;
|
|
22
|
+
endDate?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare const formatTime: (seconds: number) => string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
type HeaderImageInputProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
onChange: (value: string) => void;
|
|
5
|
+
hint?: string;
|
|
6
|
+
layout?: 'row' | 'column';
|
|
7
|
+
};
|
|
8
|
+
declare const _default: React.MemoExoticComponent<({ value, onChange, hint, layout }: HeaderImageInputProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
9
|
+
export default _default;
|
|
@@ -22,6 +22,8 @@ interface MessagePreviewProps {
|
|
|
22
22
|
showHeader?: boolean;
|
|
23
23
|
showDate?: boolean;
|
|
24
24
|
minHeight?: number;
|
|
25
|
+
showImagePlaceholder?: boolean;
|
|
26
|
+
compactBubble?: boolean;
|
|
25
27
|
}
|
|
26
|
-
declare const _default: React.MemoExoticComponent<({ components, parameterValues, timestamp, dateLabel, contactName, contactSubtitle, loading, showHeader, showDate, minHeight, }: MessagePreviewProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
28
|
+
declare const _default: React.MemoExoticComponent<({ components, parameterValues, timestamp, dateLabel, contactName, contactSubtitle, loading, showHeader, showDate, minHeight, showImagePlaceholder, compactBubble, }: MessagePreviewProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
27
29
|
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Country } from 'react-phone-number-input';
|
|
2
|
+
export interface PhoneNumberInputProps {
|
|
3
|
+
value?: string;
|
|
4
|
+
onChange: (value?: string) => void;
|
|
5
|
+
defaultCountry?: Country;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
rtl?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
callingCodeOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare const PhoneNumberInput: ({ value, onChange, defaultCountry, placeholder, disabled, rtl, className, callingCodeOnly, }: PhoneNumberInputProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default PhoneNumberInput;
|
|
@@ -4,6 +4,7 @@ interface TemplateParameterInputsProps {
|
|
|
4
4
|
parameterValues: Record<string, string>;
|
|
5
5
|
onParameterChange: (key: string, value: string) => void;
|
|
6
6
|
loading?: boolean;
|
|
7
|
+
context?: 'broadcast' | 'inbox';
|
|
7
8
|
}
|
|
8
|
-
declare const _default: React.MemoExoticComponent<({ parameters, parameterValues, onParameterChange, loading, }: TemplateParameterInputsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ parameters, parameterValues, onParameterChange, loading, context, }: TemplateParameterInputsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
9
10
|
export default _default;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
interface ToggleSettingProps {
|
|
2
|
-
label
|
|
2
|
+
label?: string;
|
|
3
3
|
checked: boolean;
|
|
4
4
|
onCheckedChange: (checked: boolean) => void;
|
|
5
5
|
description?: string;
|
|
6
|
+
descriptionSide?: boolean;
|
|
6
7
|
disabled?: boolean;
|
|
7
8
|
}
|
|
8
|
-
declare const ToggleSetting: ({ label, checked, onCheckedChange, description, disabled }: ToggleSettingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const ToggleSetting: ({ label, checked, onCheckedChange, description, descriptionSide, disabled, }: ToggleSettingProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default ToggleSetting;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function logout(withoutRedirect?: boolean): void
|
|
1
|
+
export declare function logout(withoutRedirect?: boolean): Promise<void>;
|
|
@@ -2,9 +2,7 @@ import { ContactMessagePayload, Message, MessageType } from '../../../../graphql
|
|
|
2
2
|
interface ChatContentProps {
|
|
3
3
|
messages: Message[];
|
|
4
4
|
olderMessages?: Message[];
|
|
5
|
-
msgsLoading: boolean;
|
|
6
5
|
canContribute: boolean;
|
|
7
|
-
onConvEnd?: () => void;
|
|
8
6
|
sendMessage: (type: MessageType, content: string) => Promise<void>;
|
|
9
7
|
loadOlderMessages: () => void;
|
|
10
8
|
agentsIdsAvatarsMap: Record<string, string>;
|
|
@@ -23,6 +21,7 @@ interface ChatContentProps {
|
|
|
23
21
|
} | null;
|
|
24
22
|
onCancelReplyMessage: () => void;
|
|
25
23
|
errorMessage: string;
|
|
24
|
+
statusFailureMessage: string;
|
|
26
25
|
logo?: string;
|
|
27
26
|
conversationId?: string;
|
|
28
27
|
/** Called when user clicks "Message" on a contact message card */
|
|
@@ -30,5 +29,5 @@ interface ChatContentProps {
|
|
|
30
29
|
/** Called when user clicks "Add Contact" on a contact message card */
|
|
31
30
|
onContactAddContact?: (contact: ContactMessagePayload) => void;
|
|
32
31
|
}
|
|
33
|
-
declare const ChatContent: ({ messages, olderMessages,
|
|
32
|
+
declare const ChatContent: ({ messages, olderMessages, canContribute, sendMessage, loadOlderMessages, agentsIdsAvatarsMap, noteMode, onNoteSend, onCloseNoteMode, onAddNoteClick, searchPattern, searchMatchNo, onSearchMatchCount, onMessageReply, replyMessage, onCancelReplyMessage, errorMessage, statusFailureMessage, logo, conversationId, onContactMessage, onContactAddContact, }: ChatContentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
34
33
|
export default ChatContent;
|
|
@@ -2,12 +2,16 @@ import React from 'react';
|
|
|
2
2
|
import { Conversation } from '../../../../../src/graphql.autogenerated';
|
|
3
3
|
interface Props {
|
|
4
4
|
selectedConv: Conversation;
|
|
5
|
-
onConvEnd
|
|
5
|
+
onConvEnd?: () => void;
|
|
6
|
+
showEndConversationButton?: boolean;
|
|
6
7
|
searchPattern?: string;
|
|
7
8
|
onSearchChange?: (value: string) => void;
|
|
8
9
|
searchMatchNo?: number;
|
|
9
10
|
onSearchMatchChange?: (matchNo: number) => void;
|
|
10
11
|
searchMatchCount?: number;
|
|
12
|
+
showOlderMessagesButton?: boolean;
|
|
13
|
+
isLoadingOlderMessages?: boolean;
|
|
14
|
+
onLoadOlderMessages?: () => void;
|
|
11
15
|
}
|
|
12
16
|
export declare const HeaderContainer: import("styled-components").StyledComponent<({ distance, alignItems, justifyContent, marginTop, marginRight, marginBottom, marginLeft, spaceBetween, overflow, children, width, height, dataTestid, minWidth, className, rtl, }: React.PropsWithChildren<import("@bcrumbs.net/bc-ui").HorizontalLayoutProps>) => import("@emotion/react/jsx-runtime").JSX.Element, any, {
|
|
13
17
|
rtl: boolean;
|
|
@@ -8,10 +8,13 @@ interface Props {
|
|
|
8
8
|
convsLength?: number;
|
|
9
9
|
loadingConvs?: boolean;
|
|
10
10
|
handleStartConversation?: () => void;
|
|
11
|
+
showNoResults?: boolean;
|
|
11
12
|
/** Called when user clicks "Message" on a contact message card */
|
|
12
13
|
onContactMessage?: (contact: ContactMessagePayload) => void;
|
|
13
14
|
/** Called when user clicks "Add Contact" on a contact message card */
|
|
14
15
|
onContactAddContact?: (contact: ContactMessagePayload) => void;
|
|
16
|
+
/** When false, hides the chat header (search, end conversation, etc.). Default true. */
|
|
17
|
+
showHeader?: boolean;
|
|
15
18
|
}
|
|
16
|
-
declare const Chat: ({ selectedConv, onConvEnd, agents, logo, rtl, convsLength, loadingConvs, handleStartConversation, onContactMessage, onContactAddContact, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
declare const Chat: ({ selectedConv, onConvEnd, agents, logo, rtl, convsLength, loadingConvs, handleStartConversation, showNoResults, onContactMessage, onContactAddContact, showHeader, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
20
|
export default Chat;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Agent, Ai, Conversation, Integration, Tag } from '../../../../graphql.autogenerated';
|
|
2
|
+
import { ConvsFilters } from '../../utils/convs';
|
|
3
|
+
interface FilterDrawerProps {
|
|
4
|
+
isOpen: boolean;
|
|
5
|
+
onClose: () => void;
|
|
6
|
+
filters: ConvsFilters;
|
|
7
|
+
onFiltersChange: (filters: ConvsFilters) => void;
|
|
8
|
+
agents: Agent[];
|
|
9
|
+
convStages: Tag[];
|
|
10
|
+
integrations: Integration[];
|
|
11
|
+
myAgent: Agent | undefined;
|
|
12
|
+
assignableAis: Ai[];
|
|
13
|
+
rtl: boolean;
|
|
14
|
+
conversations: Conversation[];
|
|
15
|
+
}
|
|
16
|
+
declare const FilterDrawer: ({ isOpen, onClose, filters, onFiltersChange, agents, convStages, integrations, myAgent, assignableAis, rtl, conversations, }: FilterDrawerProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
17
|
+
export default FilterDrawer;
|
|
@@ -10,7 +10,11 @@ interface HeaderSectionProps {
|
|
|
10
10
|
myAgent: Agent | undefined;
|
|
11
11
|
onFiltersChange: (filters: ConvsFilters) => void;
|
|
12
12
|
setShowStartConv: (show: boolean) => void;
|
|
13
|
-
|
|
13
|
+
/** Used to resolve the assignee filter label when filtering by AI */
|
|
14
|
+
aiAgents?: Ai[];
|
|
15
|
+
isTestVariant?: boolean;
|
|
16
|
+
isDrawerOpen?: boolean;
|
|
17
|
+
onFilterDrawerOpen?: () => void;
|
|
14
18
|
}
|
|
15
|
-
declare const HeaderSection: ({ agentsMenu, lifeCycleMenu, filters, agents, convStages, myAgent, onFiltersChange, setShowStartConv,
|
|
19
|
+
declare const HeaderSection: ({ agentsMenu, lifeCycleMenu, filters, agents, convStages, myAgent, onFiltersChange, setShowStartConv, aiAgents, isTestVariant, isDrawerOpen, onFilterDrawerOpen, }: HeaderSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
16
20
|
export default HeaderSection;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
2
|
import { ConvsFilters } from '../../utils/convs';
|
|
3
|
-
import { Agent, Ai, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
import { Agent, Ai, Conversation, Integration, Tag } from '../../../../graphql.autogenerated';
|
|
4
4
|
interface NewConvListProps {
|
|
5
5
|
agents: Agent[];
|
|
6
6
|
convStages: Tag[];
|
|
@@ -13,7 +13,11 @@ interface NewConvListProps {
|
|
|
13
13
|
onFiltersChange: (filters: ConvsFilters) => void;
|
|
14
14
|
setShowStartConv: (show: boolean) => void;
|
|
15
15
|
aiAgents: Ai[];
|
|
16
|
+
integrations: Integration[];
|
|
16
17
|
scrollContainerRef?: RefObject<HTMLDivElement>;
|
|
18
|
+
isTestVariant?: boolean;
|
|
19
|
+
isDrawerOpen?: boolean;
|
|
20
|
+
onFilterDrawerOpen?: () => void;
|
|
17
21
|
}
|
|
18
|
-
declare const NewConvList: ({ agents, convStages, convs, loading, selectedConvId, convClicked, onConvEnd, filters, onFiltersChange, setShowStartConv, aiAgents, scrollContainerRef, }: NewConvListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
+
declare const NewConvList: ({ agents, convStages, convs, loading, selectedConvId, convClicked, onConvEnd, filters, onFiltersChange, setShowStartConv, aiAgents, integrations, scrollContainerRef, isTestVariant, isDrawerOpen, onFilterDrawerOpen, }: NewConvListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
23
|
export default NewConvList;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Agent, Ai, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
2
2
|
interface ChatDetailsProps {
|
|
3
3
|
conversationTags: Tag[];
|
|
4
4
|
tagsLoading: boolean;
|
|
@@ -7,9 +7,10 @@ interface ChatDetailsProps {
|
|
|
7
7
|
interface ChatDetailsProps {
|
|
8
8
|
conv: Conversation;
|
|
9
9
|
agents: Agent[];
|
|
10
|
+
aiAgents?: Ai[];
|
|
10
11
|
convStages: Tag[];
|
|
11
12
|
onUpdate?: () => void;
|
|
12
13
|
convEnded: boolean;
|
|
13
14
|
}
|
|
14
|
-
declare const ChatDetails: ({ conv, agents, convStages, onUpdate, conversationTags, tagsLoading, refetchTags, convEnded, }: ChatDetailsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const ChatDetails: ({ conv, agents, aiAgents, convStages, onUpdate, conversationTags, tagsLoading, refetchTags, convEnded, }: ChatDetailsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default ChatDetails;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Ai, Agent, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
2
2
|
interface ChatDetailsAndTimelineProps {
|
|
3
3
|
conv: Conversation;
|
|
4
4
|
agents: Agent[];
|
|
5
|
+
aiAgents?: Ai[];
|
|
5
6
|
convStages: Tag[];
|
|
6
7
|
onUpdate?: () => void;
|
|
7
8
|
conversationTags: Tag[];
|
|
@@ -9,5 +10,5 @@ interface ChatDetailsAndTimelineProps {
|
|
|
9
10
|
refetchTags: () => void;
|
|
10
11
|
convEnded: boolean;
|
|
11
12
|
}
|
|
12
|
-
declare const ChatDetailsAndTimeline: ({ conv, agents, convStages, onUpdate, conversationTags, tagsLoading, refetchTags, convEnded, }: ChatDetailsAndTimelineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare const ChatDetailsAndTimeline: ({ conv, agents, aiAgents, convStages, onUpdate, conversationTags, tagsLoading, refetchTags, convEnded, }: ChatDetailsAndTimelineProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
14
|
export default ChatDetailsAndTimeline;
|