@bcrumbs.net/inbox 0.0.1 → 0.0.3
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 +137 -0
- package/assets/en/inbox.json +137 -0
- package/index.cjs.d.ts +1 -0
- package/index.cjs.js +107988 -0
- package/index.esm.js +16 -16
- package/package.json +7 -6
- package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +11 -0
- package/src/app/auth/components/UserAvatar/index.d.ts +16 -0
- package/src/app/auth/hooks/WithCheckAuth.d.ts +1 -0
- package/src/app/auth/hooks/WithMe.d.ts +1 -0
- package/src/app/auth/pages/Forget.d.ts +15 -0
- package/src/app/auth/pages/Login.d.ts +13 -0
- package/src/app/auth/pages/Password.d.ts +13 -0
- package/src/app/auth/pages/Profile.d.ts +18 -0
- package/src/app/auth/pages/Register.d.ts +14 -0
- package/src/app/auth/pages/Welcome.d.ts +14 -0
- package/src/app/auth/redux/actions/forgetPasswordAction.d.ts +19 -0
- package/src/app/auth/redux/actions/index.d.ts +9 -0
- package/src/app/auth/redux/actions/loginAction.d.ts +28 -0
- package/src/app/auth/redux/actions/logoutAction.d.ts +13 -0
- package/src/app/auth/redux/actions/registerAction.d.ts +20 -0
- package/src/app/auth/redux/actions/resendConfirmationAction.d.ts +19 -0
- package/src/app/auth/redux/actions/resetPasswordAction.d.ts +20 -0
- package/src/app/auth/redux/actions/setCurrentUserAction.d.ts +12 -0
- package/src/app/auth/redux/actions/shared.d.ts +19 -0
- package/src/app/auth/redux/actions/updateProfileAction.d.ts +17 -0
- package/src/app/auth/redux/auth.slice.d.ts +93 -0
- package/src/app/auth/redux/auth.types.d.ts +70 -0
- package/src/app/charts/components/ChartsList.d.ts +14 -0
- package/src/app/charts/constants/index.d.ts +2 -0
- package/src/app/charts/pages/Charts.d.ts +8 -0
- package/src/app/charts/pages/Settings.d.ts +2 -0
- package/src/app/dashboard/components/AgentAnalytics/DailyAgentAnalytics.d.ts +5 -0
- package/src/app/dashboard/components/AgentAnalytics/MultipleDaysAgentAnalytics/AgentChart.d.ts +9 -0
- package/src/app/dashboard/components/AgentAnalytics/MultipleDaysAgentAnalytics/index.d.ts +6 -0
- package/src/app/dashboard/components/AgentAnalytics/index.d.ts +5 -0
- package/src/app/dashboard/components/ConvsAnalytics/ConvsAnalytics.d.ts +2 -0
- package/src/app/dashboard/components/ConvsAnalytics/LiveConvsAnalytics.d.ts +5 -0
- package/src/app/dashboard/components/Shared/AnalyticsDateRangePicker.d.ts +10 -0
- package/src/app/dashboard/components/Shared/AnalyticsSelect.d.ts +5 -0
- package/src/app/dashboard/components/Shared/index.d.ts +2 -0
- package/src/app/dashboard/components/index.d.ts +8 -0
- package/src/app/dashboard/hooks/useAutoRefetchData.d.ts +15 -0
- package/src/app/dashboard/pages/DashboardPage.d.ts +2 -0
- package/src/app/dashboard/utils/formatDurationShort.d.ts +7 -0
- package/src/app/domains/components/DomainsList.d.ts +12 -0
- package/src/app/domains/components/LinkDomain.d.ts +7 -0
- package/src/app/domains/constants/index.d.ts +3 -0
- package/src/app/editor/components/ContentEditor.d.ts +9 -0
- package/src/app/editor/components/GalleryBrowser/FileComponent.d.ts +7 -0
- package/src/app/editor/components/GalleryBrowser/FolderComponent.d.ts +7 -0
- package/src/app/editor/components/GalleryBrowser/index.d.ts +6 -0
- package/src/app/editor/constants/index.d.ts +5 -0
- package/src/app/generic/components/AnalyticBlok.d.ts +18 -0
- package/src/app/generic/components/DeletePopin.d.ts +9 -0
- package/src/app/generic/components/LiveSupportLink.d.ts +2 -0
- package/src/app/generic/components/Loading.d.ts +3 -0
- package/src/app/generic/components/NoSelectionContainer.d.ts +7 -0
- package/src/app/generic/components/RenamePopin.d.ts +9 -0
- package/src/app/generic/components/Show.d.ts +7 -0
- package/src/app/generic/components/ShowInDev.d.ts +8 -0
- package/src/app/generic/components/TableSkeleton.d.ts +2 -0
- package/src/app/generic/hooks/WithMenuConfig.d.ts +1 -0
- package/src/app/generic/hooks/WithPortalThemeConfig.d.ts +1 -0
- package/src/app/generic/hooks/WithShowcaseConfig.d.ts +1 -0
- package/src/app/generic/pages/Error.d.ts +2 -0
- package/src/app/generic/pages/NoPermissions.d.ts +2 -0
- package/src/app/generic/pages/NotFound.d.ts +2 -0
- package/src/app/inbox/components/Broadcast/BroadcastHeader.d.ts +3 -0
- package/src/app/inbox/components/Broadcast/StateItem.d.ts +10 -0
- package/src/app/inbox/components/Chat/ChatHeader.d.ts +11 -0
- package/src/app/inbox/components/Chat/NoChatIcon.d.ts +3 -0
- package/src/app/inbox/components/Chat/NoConvSelected.d.ts +3 -0
- package/src/app/inbox/components/Chat/index.d.ts +8 -0
- package/src/app/inbox/components/ClientDetails/ClientPastConvs.d.ts +9 -0
- package/src/app/inbox/components/ClientDetails/ClientProfile.d.ts +10 -0
- package/src/app/inbox/components/ClientDetails/ClientStageEditor.d.ts +9 -0
- package/src/app/inbox/components/ConvDetails/AssignmentsHistory.d.ts +10 -0
- package/src/app/inbox/components/ConvDetails/ConvStageEditor.d.ts +9 -0
- package/src/app/inbox/components/ConvDetails/index.d.ts +11 -0
- package/src/app/inbox/components/ConvsList/ConvItem/ActionsMenu.d.ts +9 -0
- package/src/app/inbox/components/ConvsList/ConvItem/ConvDetails.d.ts +9 -0
- package/src/app/inbox/components/ConvsList/ConvItem/CountBadge.d.ts +3 -0
- package/src/app/inbox/components/ConvsList/ConvItem/index.d.ts +12 -0
- package/src/app/inbox/components/ConvsList/StartConvPopin.d.ts +5 -0
- package/src/app/inbox/components/ConvsList/index.d.ts +14 -0
- package/src/app/inbox/components/DetailsSection.d.ts +14 -0
- package/src/app/inbox/components/Messages/index.d.ts +6 -0
- package/src/app/inbox/components/Popups/ClosePopup.d.ts +5 -0
- package/src/app/inbox/components/Popups/NoAgentPopup.d.ts +3 -0
- package/src/app/inbox/components/SearchFilters.d.ts +22 -0
- package/src/app/inbox/components/Shared/StageEditor.d.ts +10 -0
- package/src/app/inbox/constants/index.d.ts +23 -0
- package/src/app/inbox/hooks/useCanContribute.d.ts +6 -0
- package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +46 -0
- package/src/app/inbox/hooks/useSendMessage.d.ts +6 -0
- package/src/app/inbox/hooks/useSortedEvents.d.ts +10 -0
- package/src/app/inbox/hooks/useTags.d.ts +12 -0
- package/src/app/inbox/pages/BroadcastMutatePage.d.ts +2 -0
- package/src/app/inbox/pages/BroadcastPage.d.ts +2 -0
- package/src/app/inbox/pages/InboxPage.d.ts +2 -0
- package/src/app/inbox/pages/SearchPage.d.ts +2 -0
- package/src/app/inbox/utils/sounds.d.ts +2 -0
- package/src/app/layout/components/Header.d.ts +17 -0
- package/src/app/layout/components/Layout.d.ts +2 -0
- package/src/app/layout/components/LogoutPopin.d.ts +3 -0
- package/src/app/layout/components/language/LanguageDropdown.d.ts +9 -0
- package/src/app/layout/components/language/LanguageIcon.d.ts +2 -0
- package/src/app/layout/components/language/index.d.ts +2 -0
- package/src/app/layout/constants/index.d.ts +14 -0
- package/src/app/pages/components/PagesList.d.ts +18 -0
- package/src/app/pages/components/SectionList.d.ts +20 -0
- package/src/app/pages/components/SectionTemplateBlock.d.ts +14 -0
- package/src/app/pages/components/SectionTemplatesList.d.ts +12 -0
- package/src/app/pages/components/TemplateBlock.d.ts +13 -0
- package/src/app/pages/components/TemplateTypes.d.ts +5 -0
- package/src/app/pages/components/TemplatesList.d.ts +12 -0
- package/src/app/pages/components/UseSectionTemplate.d.ts +12 -0
- package/src/app/pages/components/UseTemplate.d.ts +11 -0
- package/src/app/pages/constants/index.d.ts +51 -0
- package/src/app/pages/pages/PageSections.d.ts +2 -0
- package/src/app/pages/pages/Pages.d.ts +8 -0
- package/src/app/pages/pages/SectionTemplates.d.ts +2 -0
- package/src/app/pages/pages/Settings.d.ts +2 -0
- package/src/app/pages/pages/Templates.d.ts +2 -0
- package/src/app/pages/utils/resolveTemplateId.d.ts +2 -0
- package/src/app/resources/components/Agents/CreateAgent.d.ts +3 -0
- package/src/app/resources/components/Ais/CreateAi.d.ts +7 -0
- package/src/app/resources/components/Ais/PatchAi.d.ts +8 -0
- package/src/app/resources/components/Broadcasts/BroadcastClients.d.ts +6 -0
- package/src/app/resources/components/Broadcasts/CreateBroadcast.d.ts +8 -0
- package/src/app/resources/components/Broadcasts/ListBroadcasts.d.ts +6 -0
- package/src/app/resources/components/Broadcasts/NoBroadcastIcon.d.ts +3 -0
- package/src/app/resources/components/CreateResource.d.ts +4 -0
- package/src/app/resources/components/Integrations/CreateIntegration.d.ts +6 -0
- package/src/app/resources/components/Integrations/CreationSuccessfulPopup.d.ts +3 -0
- package/src/app/resources/components/Integrations/Facebook/LoginPopup.d.ts +4 -0
- package/src/app/resources/components/Integrations/Facebook/NoPagesFoundPopup.d.ts +3 -0
- package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +8 -0
- package/src/app/resources/components/Integrations/Facebook/index.d.ts +7 -0
- package/src/app/resources/components/Integrations/PatchIntegration.d.ts +7 -0
- package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +11 -0
- package/src/app/resources/components/Integrations/WhatsApp/LoginPopup.d.ts +4 -0
- package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +4 -0
- package/src/app/resources/components/Integrations/types.d.ts +4 -0
- package/src/app/resources/components/ListResources.d.ts +4 -0
- package/src/app/resources/components/PatchResource.d.ts +5 -0
- package/src/app/resources/components/ResourceTypeDropList.d.ts +7 -0
- package/src/app/resources/config/agent.d.ts +4 -0
- package/src/app/resources/config/ai.d.ts +4 -0
- package/src/app/resources/config/apiKey.d.ts +4 -0
- package/src/app/resources/config/broadcast.d.ts +5 -0
- package/src/app/resources/config/client.d.ts +4 -0
- package/src/app/resources/config/clientStage.d.ts +4 -0
- package/src/app/resources/config/convStage.d.ts +4 -0
- package/src/app/resources/config/index.d.ts +3 -0
- package/src/app/resources/config/integration.d.ts +4 -0
- package/src/app/resources/config/types.d.ts +45 -0
- package/src/app/resources/config/webhook.d.ts +4 -0
- package/src/app/resources/hooks/useFBPagesHook.d.ts +13 -0
- package/src/app/resources/hooks/useResourceType.d.ts +6 -0
- package/src/app/resources/hooks/useWabaHook.d.ts +12 -0
- package/src/app/resources/pages/CreatePage.d.ts +2 -0
- package/src/app/resources/pages/ListPage.d.ts +2 -0
- package/src/app/resources/pages/PatchPage.d.ts +2 -0
- package/src/app/subscriptions/components/NewSubscription/SubscriptionName.d.ts +5 -0
- package/src/app/subscriptions/components/NewSubscription/SubscriptionSuccess.d.ts +5 -0
- package/src/app/subscriptions/components/Plans/PlanCard.d.ts +26 -0
- package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +9 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionBilling.d.ts +2 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +13 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +12 -0
- package/src/app/subscriptions/components/SubscriptionSettings/index.d.ts +8 -0
- package/src/app/subscriptions/components/SubscriptionSwitcher/CLogo.d.ts +23 -0
- package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +21 -0
- package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +2 -0
- package/src/app/subscriptions/components/SubscriptionsList.d.ts +8 -0
- package/src/app/subscriptions/constants/Plans.d.ts +27 -0
- package/src/app/subscriptions/hooks/WithDefaultContext.d.ts +1 -0
- package/src/app/subscriptions/pages/NewSubscription.d.ts +8 -0
- package/src/app/subscriptions/pages/Subscriptions.d.ts +8 -0
- package/src/app/subscriptions/pages/Upgrade.d.ts +11 -0
- package/src/app.d.ts +6 -0
- package/src/appWrapper.d.ts +2 -0
- package/src/assets/locales/translations.d.ts +517 -0
- package/src/config/constants.d.ts +11 -0
- package/src/config/modelsThumbs.d.ts +4 -0
- package/src/context/themeContext.d.ts +23 -0
- package/src/environments/environment.d.ts +4 -0
- package/src/environments/environment.prod.d.ts +4 -0
- package/src/main.d.ts +2 -0
- package/src/polyfills.d.ts +7 -0
- package/src/routes/PrivateRoutes.d.ts +1 -0
- package/src/routes/PublicRoutes.d.ts +1 -0
- package/src/routes/index.d.ts +2 -0
- package/src/store/history.d.ts +2 -0
- package/src/store/index.d.ts +852 -0
- package/src/store/lastState.d.ts +2 -0
- package/src/store/reducers.d.ts +96 -0
- package/src/utils/adjustStringEnumForDroplist.d.ts +5 -0
- package/src/utils/colorPool.d.ts +2 -0
- package/src/utils/getActiveAiTypes.d.ts +2 -0
- package/src/utils/getActiveChannelList.d.ts +2 -0
- package/src/utils/localStorage.d.ts +9 -0
- package/src/utils/textUtils.d.ts +5 -0
- package/src/utils/timeUtils.d.ts +30 -0
- package/src/utils/typesUtils.d.ts +11 -0
- package/assets/ar/translation.json +0 -495
- package/assets/en/translation.json +0 -497
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
icon?: React.ReactElement;
|
|
4
|
+
loading?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const NoSelectionContainer: ({ icon, loading, children, }: PropsWithChildren<Props>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default NoSelectionContainer;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface RenamePopinProps {
|
|
2
|
+
onAction: (newName: string) => void;
|
|
3
|
+
onClose: () => void;
|
|
4
|
+
loading: boolean;
|
|
5
|
+
placeholder: string;
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const RenamePopin: ({ onAction, onClose, loading, placeholder, title, }: RenamePopinProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default RenamePopin;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ShowProps {
|
|
3
|
+
when: boolean | undefined | null | false;
|
|
4
|
+
fallback?: React.ReactNode;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare function Show({ when, fallback, children }: ShowProps): import("react").ReactNode;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface ShowInDevProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* This component will only render its children in development mode.
|
|
7
|
+
*/
|
|
8
|
+
export declare function ShowInDev({ children }: ShowInDevProps): import("react").ReactNode;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withMenuConfig: (Component: any) => (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withPortalThemeConfig: (Component: any) => (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const withShowcaseConfig: (Component: any) => (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BroadcastState } from '../../../../graphql.autogenerated';
|
|
3
|
+
declare const StateItem: (props: {
|
|
4
|
+
itemClicked: (state: BroadcastState | 'all') => void;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
state: BroadcastState | 'all';
|
|
7
|
+
text: string;
|
|
8
|
+
color: string;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default StateItem;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Conversation } from '../../../../../src/graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
selectedConv: Conversation;
|
|
5
|
+
onConvEnd: () => void;
|
|
6
|
+
}
|
|
7
|
+
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, {
|
|
8
|
+
rtl: boolean;
|
|
9
|
+
}, never>;
|
|
10
|
+
declare const ChatHeader: React.FC<Props>;
|
|
11
|
+
export default ChatHeader;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Conversation, Agent } from '../../../../graphql.autogenerated';
|
|
2
|
+
interface Props {
|
|
3
|
+
selectedConv?: Conversation;
|
|
4
|
+
onConvEnd?: () => void;
|
|
5
|
+
agents?: Agent[];
|
|
6
|
+
}
|
|
7
|
+
declare const Chat: ({ selectedConv, onConvEnd, agents }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default Chat;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Conversation } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
clientId: string;
|
|
5
|
+
convClicked?: (conv: Conversation) => void;
|
|
6
|
+
selectedConvId?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const ClientPastConvs: ({ clientId, convClicked, selectedConvId, }: Props) => JSX.Element;
|
|
9
|
+
export default ClientPastConvs;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
clientId: string;
|
|
5
|
+
clientTags: Tag[];
|
|
6
|
+
clientStages: Tag[];
|
|
7
|
+
channelType?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const ClientProfile: ({ clientId, clientStages, channelType, clientTags, }: Props) => JSX.Element;
|
|
10
|
+
export default ClientProfile;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
clientId: string;
|
|
5
|
+
clientStage: string | null;
|
|
6
|
+
clientStages?: Tag[];
|
|
7
|
+
}
|
|
8
|
+
declare const ClientStageEditor: ({ clientId, clientStage, clientStages }: Props) => JSX.Element;
|
|
9
|
+
export default ClientStageEditor;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Agent, Ai, Conversation } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
selectedConv: Conversation;
|
|
5
|
+
agents?: Agent[];
|
|
6
|
+
ais?: Ai[];
|
|
7
|
+
agentsLoading: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const AssignmentsHistory: ({ selectedConv, agents, agentsLoading, ais }: Props) => JSX.Element;
|
|
10
|
+
export default AssignmentsHistory;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
conv: Conversation;
|
|
5
|
+
convStages?: Tag[];
|
|
6
|
+
selectedStage: string | null;
|
|
7
|
+
}
|
|
8
|
+
declare const ConvStageEditor: ({ conv, selectedStage, convStages }: Props) => JSX.Element;
|
|
9
|
+
export default ConvStageEditor;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Agent, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
selectedConv: Conversation;
|
|
5
|
+
conversationTags: Tag[];
|
|
6
|
+
agents?: Agent[];
|
|
7
|
+
agentsLoading: boolean;
|
|
8
|
+
convStages?: Tag[];
|
|
9
|
+
}
|
|
10
|
+
declare const ConvDetails: ({ conversationTags, selectedConv, agents, agentsLoading, convStages, }: Props) => JSX.Element;
|
|
11
|
+
export default ConvDetails;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Agent, Conversation, Tag } from '../../../../../graphql.autogenerated';
|
|
2
|
+
interface Props {
|
|
3
|
+
conv: Conversation;
|
|
4
|
+
stages: Tag[];
|
|
5
|
+
onConvEnd?: () => void;
|
|
6
|
+
agents?: Agent[];
|
|
7
|
+
}
|
|
8
|
+
export default function ActionsMenu({ conv, stages, onConvEnd, agents, }: Props): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Agent, Conversation, Tag } from '../../../../../graphql.autogenerated';
|
|
3
|
+
declare const ConvDetails: (conv: Conversation & {
|
|
4
|
+
convStages?: Tag[];
|
|
5
|
+
showActionsMenu?: boolean;
|
|
6
|
+
onConvEnd?: () => void;
|
|
7
|
+
agents?: Agent[];
|
|
8
|
+
}) => JSX.Element;
|
|
9
|
+
export default ConvDetails;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Agent, Conversation, Tag } from '../../../../../graphql.autogenerated';
|
|
3
|
+
declare const ConvItem: (props: {
|
|
4
|
+
itemClicked: (conv: Conversation) => void;
|
|
5
|
+
selected: boolean;
|
|
6
|
+
convStages?: Tag[];
|
|
7
|
+
conv: Conversation;
|
|
8
|
+
showActionsMenu?: boolean;
|
|
9
|
+
onConvEnd?: () => void;
|
|
10
|
+
agents?: Agent[];
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default ConvItem;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Agent, Conversation, Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
convClicked?: (conv: Conversation) => void;
|
|
5
|
+
selectedConvId?: string;
|
|
6
|
+
convStages?: Tag[];
|
|
7
|
+
agents?: Agent[];
|
|
8
|
+
onConvEnd?: () => void;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
convs?: Conversation[] | null;
|
|
11
|
+
showSearchLink?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const ConvsList: ({ convClicked, selectedConvId, convStages, onConvEnd, agents, loading, convs, showSearchLink }: Props) => JSX.Element;
|
|
14
|
+
export default ConvsList;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Agent, Ai, Conversation, Tag } from '../../../graphql.autogenerated';
|
|
2
|
+
interface Props {
|
|
3
|
+
selectedConv: Conversation;
|
|
4
|
+
conversationTags: Tag[];
|
|
5
|
+
agents?: Agent[];
|
|
6
|
+
ais?: Ai[];
|
|
7
|
+
agentsLoading: boolean;
|
|
8
|
+
convStages?: Tag[];
|
|
9
|
+
convClicked?: (conv: Conversation) => void;
|
|
10
|
+
clientTags: Tag[];
|
|
11
|
+
clientStages: Tag[];
|
|
12
|
+
}
|
|
13
|
+
export declare const DetailsSection: ({ selectedConv, conversationTags, agents, ais, agentsLoading, convStages, clientTags, clientStages, convClicked, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default DetailsSection;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import { MessageType } from '../../../graphql.autogenerated';
|
|
3
|
+
declare const searchModes: readonly ["mode_conv", "mode_msg"];
|
|
4
|
+
export type SearchMode = typeof searchModes[number];
|
|
5
|
+
interface Props {
|
|
6
|
+
setAssigneeId: Dispatch<SetStateAction<string | undefined>>;
|
|
7
|
+
setClientId: Dispatch<SetStateAction<string | undefined>>;
|
|
8
|
+
setIntegrationId: Dispatch<SetStateAction<string | undefined>>;
|
|
9
|
+
setSearchPattern: Dispatch<SetStateAction<string | undefined>>;
|
|
10
|
+
setMode: Dispatch<SetStateAction<SearchMode>>;
|
|
11
|
+
setMessageType: Dispatch<SetStateAction<MessageType>>;
|
|
12
|
+
assigneeId?: string;
|
|
13
|
+
clientId?: string;
|
|
14
|
+
integrationId?: string;
|
|
15
|
+
searchPattern?: string;
|
|
16
|
+
onSearch: Dispatch<unknown>;
|
|
17
|
+
loading?: boolean;
|
|
18
|
+
messageType: MessageType;
|
|
19
|
+
mode?: SearchMode;
|
|
20
|
+
}
|
|
21
|
+
declare const SearchFilters: ({ setAssigneeId, setClientId, setIntegrationId, setSearchPattern, setMessageType, setMode, assigneeId, clientId, integrationId, searchPattern, onSearch, loading, messageType, mode }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
22
|
+
export default SearchFilters;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface Props {
|
|
4
|
+
stages?: Tag[];
|
|
5
|
+
selectedStage: string | null;
|
|
6
|
+
onStageChange: (stage: string | null) => Promise<void>;
|
|
7
|
+
defaultStages: Record<string, string>;
|
|
8
|
+
}
|
|
9
|
+
declare const StageEditor: ({ stages, selectedStage, onStageChange, defaultStages }: Props) => JSX.Element;
|
|
10
|
+
export default StageEditor;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const ConvStages: {
|
|
2
|
+
Received: string;
|
|
3
|
+
Processing: string;
|
|
4
|
+
Shipping: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const ClientStages: {
|
|
7
|
+
NewLead: string;
|
|
8
|
+
HotLead: string;
|
|
9
|
+
Payment: string;
|
|
10
|
+
Customer: string;
|
|
11
|
+
ColdLead: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const WABA_TEMPLATE_COSTS: {
|
|
14
|
+
MARKETING: number;
|
|
15
|
+
UTILITY: number;
|
|
16
|
+
AUTHENTIC: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const MOBILE_DIMENSION = 767;
|
|
19
|
+
export declare const WhatsappLanguageCodes: {
|
|
20
|
+
ar: string;
|
|
21
|
+
en: string;
|
|
22
|
+
tr: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { Conversation } from '../../../graphql.autogenerated';
|
|
2
|
+
declare function useConversationsPeriodicFetch(selectedConvId?: string, onSelectedUpdate?: (conv: Conversation) => void, notifyUser?: boolean): {
|
|
3
|
+
convs: {
|
|
4
|
+
__typename?: "Conversation" | undefined;
|
|
5
|
+
workspaceId: number;
|
|
6
|
+
id: string;
|
|
7
|
+
integrationId: string;
|
|
8
|
+
integrationType: import("../../../graphql.autogenerated").IntegrationType;
|
|
9
|
+
clientId: string;
|
|
10
|
+
ended: boolean;
|
|
11
|
+
externalConversationId?: string | null | undefined;
|
|
12
|
+
tags?: string[] | null | undefined;
|
|
13
|
+
createdAt: any;
|
|
14
|
+
endedAt?: any;
|
|
15
|
+
stageId?: string | null | undefined;
|
|
16
|
+
orderNo?: string | null | undefined;
|
|
17
|
+
assigneeId?: string | null | undefined;
|
|
18
|
+
aiId?: string | null | undefined;
|
|
19
|
+
aiAssigneed?: boolean | null | undefined;
|
|
20
|
+
messages?: {
|
|
21
|
+
__typename?: "Message" | undefined;
|
|
22
|
+
messageId: string;
|
|
23
|
+
content: string;
|
|
24
|
+
type: import("../../../graphql.autogenerated").MessageType;
|
|
25
|
+
isAgent: boolean;
|
|
26
|
+
status?: import("../../../graphql.autogenerated").MessageStatus | null | undefined;
|
|
27
|
+
externalMessageId?: string | null | undefined;
|
|
28
|
+
tags?: string[] | null | undefined;
|
|
29
|
+
createdAt: any;
|
|
30
|
+
}[] | null | undefined;
|
|
31
|
+
client?: {
|
|
32
|
+
__typename?: "ConversationClient" | undefined;
|
|
33
|
+
name?: string | null | undefined;
|
|
34
|
+
surname?: string | null | undefined;
|
|
35
|
+
code?: string | null | undefined;
|
|
36
|
+
} | null | undefined;
|
|
37
|
+
assignees?: ({
|
|
38
|
+
__typename?: "ConvAssignment" | undefined;
|
|
39
|
+
assigneeId: string;
|
|
40
|
+
assignDate?: any;
|
|
41
|
+
isAi?: boolean | null | undefined;
|
|
42
|
+
} | null)[] | null | undefined;
|
|
43
|
+
}[] | null | undefined;
|
|
44
|
+
loading: boolean;
|
|
45
|
+
};
|
|
46
|
+
export default useConversationsPeriodicFetch;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { MessageType } from '../../../graphql.autogenerated';
|
|
2
|
+
declare const useSendMessage: () => {
|
|
3
|
+
sendMessage: (convId: string, integrationId: string, workspaceId: number, type: MessageType, content: string) => Promise<void>;
|
|
4
|
+
addMessageLoading: boolean;
|
|
5
|
+
};
|
|
6
|
+
export default useSendMessage;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Agent, Ai, Conversation } from '../../../graphql.autogenerated';
|
|
2
|
+
type EventType = {
|
|
3
|
+
id: string;
|
|
4
|
+
date: string;
|
|
5
|
+
type: 'assignee' | 'note';
|
|
6
|
+
content: string;
|
|
7
|
+
agent?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const useSortedEvents: (selectedConv: Conversation, agents?: Agent[], ais?: Ai[]) => EventType[];
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Tag } from '../../../graphql.autogenerated';
|
|
2
|
+
declare function useTags(): {
|
|
3
|
+
conversationTags: Tag[];
|
|
4
|
+
clientTags: Tag[];
|
|
5
|
+
clientStages: Tag[];
|
|
6
|
+
convStages: Tag[];
|
|
7
|
+
refetchTags: (variables?: Partial<import("../../../graphql.autogenerated").Exact<{
|
|
8
|
+
input: import("../../../graphql.autogenerated").TagsInput;
|
|
9
|
+
}>> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<import("../../../graphql.autogenerated").TagsQuery>>;
|
|
10
|
+
loadingTags: boolean;
|
|
11
|
+
};
|
|
12
|
+
export default useTags;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const HeaderContainer: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
rtl: boolean;
|
|
7
|
+
mobileInboxVersion: boolean;
|
|
8
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const Separator: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
|
+
declare function Header({ onLogout, mobileInboxVersion }: {
|
|
14
|
+
onLogout: () => void;
|
|
15
|
+
mobileInboxVersion: boolean;
|
|
16
|
+
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
|
+
export default Header;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DropdownListItemType, DropdownListItemValue } from '@bcrumbs.net/bc-ui';
|
|
2
|
+
import React, { PropsWithChildren } from 'react';
|
|
3
|
+
export type AccountSettingsProps = {
|
|
4
|
+
itemClicked: (e: DropdownListItemValue) => void;
|
|
5
|
+
itemsList: DropdownListItemType[];
|
|
6
|
+
dropdownIsVisible: boolean;
|
|
7
|
+
setDropdownIsVisible: React.Dispatch<React.SetStateAction<boolean>>;
|
|
8
|
+
};
|
|
9
|
+
export declare function LanguageDropdown({ itemsList, itemClicked, dropdownIsVisible, setDropdownIsVisible }: PropsWithChildren<AccountSettingsProps>): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const BCMainNavigation: {
|
|
2
|
+
leftLinks: {
|
|
3
|
+
label: string;
|
|
4
|
+
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
5
|
+
link: string;
|
|
6
|
+
action: string;
|
|
7
|
+
}[];
|
|
8
|
+
leftBottomLinks: {
|
|
9
|
+
label: string;
|
|
10
|
+
icon: import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
link: string;
|
|
12
|
+
action: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Config } from '@bcrumbs.net/bc-api';
|
|
2
|
+
type PagesListProps = {
|
|
3
|
+
history: any;
|
|
4
|
+
className?: string;
|
|
5
|
+
search?: string;
|
|
6
|
+
onPageChosen: (pageId: number, goingBack: boolean) => void;
|
|
7
|
+
onPageRemoved?: ({ pageId, name }: {
|
|
8
|
+
pageId: number;
|
|
9
|
+
name: string;
|
|
10
|
+
}) => void;
|
|
11
|
+
onPageActionClicked?: (key: string, id: number, modelId: number, path: string) => void;
|
|
12
|
+
parentId: number;
|
|
13
|
+
rootModelId: number;
|
|
14
|
+
currentlyOnRoot: boolean;
|
|
15
|
+
config: Config;
|
|
16
|
+
};
|
|
17
|
+
declare const PagesList: ({ history, currentlyOnRoot, parentId, search, onPageChosen, onPageActionClicked, rootModelId, config, onPageRemoved, }: PagesListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default PagesList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type PagesListProps = {
|
|
2
|
+
className?: string;
|
|
3
|
+
loadingSections?: boolean;
|
|
4
|
+
search?: string;
|
|
5
|
+
onSectionChosen: (pageId: number, modelId: number, goingBack: boolean) => any;
|
|
6
|
+
onTopLevelBackClicked: () => void;
|
|
7
|
+
onSectionActionClicked?: (key: string, id: number, modelId: number) => void;
|
|
8
|
+
onSectionRemoved?: ({ sectionId, name, }: {
|
|
9
|
+
sectionId: number;
|
|
10
|
+
name: string;
|
|
11
|
+
}) => void;
|
|
12
|
+
onSectionCopyCode?: ({ sectionId, companyId, }: {
|
|
13
|
+
sectionId: number;
|
|
14
|
+
companyId: number;
|
|
15
|
+
}) => void;
|
|
16
|
+
parentId: number;
|
|
17
|
+
currentlyOnRoot: boolean;
|
|
18
|
+
};
|
|
19
|
+
declare const SectionsList: ({ parentId, currentlyOnRoot, search, onSectionActionClicked, onSectionChosen, onSectionRemoved, onTopLevelBackClicked, onSectionCopyCode, }: PagesListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default SectionsList;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface SectionTemplateBlockProps {
|
|
2
|
+
className?: string;
|
|
3
|
+
category?: string;
|
|
4
|
+
id: number;
|
|
5
|
+
image: string;
|
|
6
|
+
name: string;
|
|
7
|
+
templateContextId: number;
|
|
8
|
+
templateId: number;
|
|
9
|
+
onTemplateChosen: (number: any) => void;
|
|
10
|
+
contentId: number;
|
|
11
|
+
showThumbs: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const TemplateBlock: (props: SectionTemplateBlockProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default TemplateBlock;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
search?: string;
|
|
3
|
+
onTemplateChosen: (id: number) => void;
|
|
4
|
+
category: string | null;
|
|
5
|
+
modelId: number;
|
|
6
|
+
templateId: number;
|
|
7
|
+
templateRootContentId: number;
|
|
8
|
+
templateContextId: number;
|
|
9
|
+
showThumbs: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const SectionTemplatesList: ({ modelId, templateId, search, category, templateRootContentId, templateContextId, onTemplateChosen, showThumbs }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default SectionTemplatesList;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface TemplateBlockProps {
|
|
2
|
+
history: any;
|
|
3
|
+
className?: string;
|
|
4
|
+
category: string;
|
|
5
|
+
exampleUrl: string;
|
|
6
|
+
id: number;
|
|
7
|
+
image: string;
|
|
8
|
+
name: string;
|
|
9
|
+
sourceCompanyId: number;
|
|
10
|
+
onTemplateChosen: (number: any) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare const TemplateBlock: (props: TemplateBlockProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default TemplateBlock;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TemplatesListProps {
|
|
2
|
+
history: any;
|
|
3
|
+
className?: string;
|
|
4
|
+
templates?: any[];
|
|
5
|
+
loadingTemplates?: boolean;
|
|
6
|
+
search?: string;
|
|
7
|
+
onTemplateChosen: (number: any) => void;
|
|
8
|
+
category?: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}
|
|
11
|
+
declare const _default: any;
|
|
12
|
+
export default _default;
|