@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.
Files changed (209) hide show
  1. package/assets/ar/inbox.json +137 -0
  2. package/assets/en/inbox.json +137 -0
  3. package/index.cjs.d.ts +1 -0
  4. package/index.cjs.js +107988 -0
  5. package/index.esm.js +16 -16
  6. package/package.json +7 -6
  7. package/src/app/auth/components/UserAvatar/AccountSettingsDropdown.d.ts +11 -0
  8. package/src/app/auth/components/UserAvatar/index.d.ts +16 -0
  9. package/src/app/auth/hooks/WithCheckAuth.d.ts +1 -0
  10. package/src/app/auth/hooks/WithMe.d.ts +1 -0
  11. package/src/app/auth/pages/Forget.d.ts +15 -0
  12. package/src/app/auth/pages/Login.d.ts +13 -0
  13. package/src/app/auth/pages/Password.d.ts +13 -0
  14. package/src/app/auth/pages/Profile.d.ts +18 -0
  15. package/src/app/auth/pages/Register.d.ts +14 -0
  16. package/src/app/auth/pages/Welcome.d.ts +14 -0
  17. package/src/app/auth/redux/actions/forgetPasswordAction.d.ts +19 -0
  18. package/src/app/auth/redux/actions/index.d.ts +9 -0
  19. package/src/app/auth/redux/actions/loginAction.d.ts +28 -0
  20. package/src/app/auth/redux/actions/logoutAction.d.ts +13 -0
  21. package/src/app/auth/redux/actions/registerAction.d.ts +20 -0
  22. package/src/app/auth/redux/actions/resendConfirmationAction.d.ts +19 -0
  23. package/src/app/auth/redux/actions/resetPasswordAction.d.ts +20 -0
  24. package/src/app/auth/redux/actions/setCurrentUserAction.d.ts +12 -0
  25. package/src/app/auth/redux/actions/shared.d.ts +19 -0
  26. package/src/app/auth/redux/actions/updateProfileAction.d.ts +17 -0
  27. package/src/app/auth/redux/auth.slice.d.ts +93 -0
  28. package/src/app/auth/redux/auth.types.d.ts +70 -0
  29. package/src/app/charts/components/ChartsList.d.ts +14 -0
  30. package/src/app/charts/constants/index.d.ts +2 -0
  31. package/src/app/charts/pages/Charts.d.ts +8 -0
  32. package/src/app/charts/pages/Settings.d.ts +2 -0
  33. package/src/app/dashboard/components/AgentAnalytics/DailyAgentAnalytics.d.ts +5 -0
  34. package/src/app/dashboard/components/AgentAnalytics/MultipleDaysAgentAnalytics/AgentChart.d.ts +9 -0
  35. package/src/app/dashboard/components/AgentAnalytics/MultipleDaysAgentAnalytics/index.d.ts +6 -0
  36. package/src/app/dashboard/components/AgentAnalytics/index.d.ts +5 -0
  37. package/src/app/dashboard/components/ConvsAnalytics/ConvsAnalytics.d.ts +2 -0
  38. package/src/app/dashboard/components/ConvsAnalytics/LiveConvsAnalytics.d.ts +5 -0
  39. package/src/app/dashboard/components/Shared/AnalyticsDateRangePicker.d.ts +10 -0
  40. package/src/app/dashboard/components/Shared/AnalyticsSelect.d.ts +5 -0
  41. package/src/app/dashboard/components/Shared/index.d.ts +2 -0
  42. package/src/app/dashboard/components/index.d.ts +8 -0
  43. package/src/app/dashboard/hooks/useAutoRefetchData.d.ts +15 -0
  44. package/src/app/dashboard/pages/DashboardPage.d.ts +2 -0
  45. package/src/app/dashboard/utils/formatDurationShort.d.ts +7 -0
  46. package/src/app/domains/components/DomainsList.d.ts +12 -0
  47. package/src/app/domains/components/LinkDomain.d.ts +7 -0
  48. package/src/app/domains/constants/index.d.ts +3 -0
  49. package/src/app/editor/components/ContentEditor.d.ts +9 -0
  50. package/src/app/editor/components/GalleryBrowser/FileComponent.d.ts +7 -0
  51. package/src/app/editor/components/GalleryBrowser/FolderComponent.d.ts +7 -0
  52. package/src/app/editor/components/GalleryBrowser/index.d.ts +6 -0
  53. package/src/app/editor/constants/index.d.ts +5 -0
  54. package/src/app/generic/components/AnalyticBlok.d.ts +18 -0
  55. package/src/app/generic/components/DeletePopin.d.ts +9 -0
  56. package/src/app/generic/components/LiveSupportLink.d.ts +2 -0
  57. package/src/app/generic/components/Loading.d.ts +3 -0
  58. package/src/app/generic/components/NoSelectionContainer.d.ts +7 -0
  59. package/src/app/generic/components/RenamePopin.d.ts +9 -0
  60. package/src/app/generic/components/Show.d.ts +7 -0
  61. package/src/app/generic/components/ShowInDev.d.ts +8 -0
  62. package/src/app/generic/components/TableSkeleton.d.ts +2 -0
  63. package/src/app/generic/hooks/WithMenuConfig.d.ts +1 -0
  64. package/src/app/generic/hooks/WithPortalThemeConfig.d.ts +1 -0
  65. package/src/app/generic/hooks/WithShowcaseConfig.d.ts +1 -0
  66. package/src/app/generic/pages/Error.d.ts +2 -0
  67. package/src/app/generic/pages/NoPermissions.d.ts +2 -0
  68. package/src/app/generic/pages/NotFound.d.ts +2 -0
  69. package/src/app/inbox/components/Broadcast/BroadcastHeader.d.ts +3 -0
  70. package/src/app/inbox/components/Broadcast/StateItem.d.ts +10 -0
  71. package/src/app/inbox/components/Chat/ChatHeader.d.ts +11 -0
  72. package/src/app/inbox/components/Chat/NoChatIcon.d.ts +3 -0
  73. package/src/app/inbox/components/Chat/NoConvSelected.d.ts +3 -0
  74. package/src/app/inbox/components/Chat/index.d.ts +8 -0
  75. package/src/app/inbox/components/ClientDetails/ClientPastConvs.d.ts +9 -0
  76. package/src/app/inbox/components/ClientDetails/ClientProfile.d.ts +10 -0
  77. package/src/app/inbox/components/ClientDetails/ClientStageEditor.d.ts +9 -0
  78. package/src/app/inbox/components/ConvDetails/AssignmentsHistory.d.ts +10 -0
  79. package/src/app/inbox/components/ConvDetails/ConvStageEditor.d.ts +9 -0
  80. package/src/app/inbox/components/ConvDetails/index.d.ts +11 -0
  81. package/src/app/inbox/components/ConvsList/ConvItem/ActionsMenu.d.ts +9 -0
  82. package/src/app/inbox/components/ConvsList/ConvItem/ConvDetails.d.ts +9 -0
  83. package/src/app/inbox/components/ConvsList/ConvItem/CountBadge.d.ts +3 -0
  84. package/src/app/inbox/components/ConvsList/ConvItem/index.d.ts +12 -0
  85. package/src/app/inbox/components/ConvsList/StartConvPopin.d.ts +5 -0
  86. package/src/app/inbox/components/ConvsList/index.d.ts +14 -0
  87. package/src/app/inbox/components/DetailsSection.d.ts +14 -0
  88. package/src/app/inbox/components/Messages/index.d.ts +6 -0
  89. package/src/app/inbox/components/Popups/ClosePopup.d.ts +5 -0
  90. package/src/app/inbox/components/Popups/NoAgentPopup.d.ts +3 -0
  91. package/src/app/inbox/components/SearchFilters.d.ts +22 -0
  92. package/src/app/inbox/components/Shared/StageEditor.d.ts +10 -0
  93. package/src/app/inbox/constants/index.d.ts +23 -0
  94. package/src/app/inbox/hooks/useCanContribute.d.ts +6 -0
  95. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +46 -0
  96. package/src/app/inbox/hooks/useSendMessage.d.ts +6 -0
  97. package/src/app/inbox/hooks/useSortedEvents.d.ts +10 -0
  98. package/src/app/inbox/hooks/useTags.d.ts +12 -0
  99. package/src/app/inbox/pages/BroadcastMutatePage.d.ts +2 -0
  100. package/src/app/inbox/pages/BroadcastPage.d.ts +2 -0
  101. package/src/app/inbox/pages/InboxPage.d.ts +2 -0
  102. package/src/app/inbox/pages/SearchPage.d.ts +2 -0
  103. package/src/app/inbox/utils/sounds.d.ts +2 -0
  104. package/src/app/layout/components/Header.d.ts +17 -0
  105. package/src/app/layout/components/Layout.d.ts +2 -0
  106. package/src/app/layout/components/LogoutPopin.d.ts +3 -0
  107. package/src/app/layout/components/language/LanguageDropdown.d.ts +9 -0
  108. package/src/app/layout/components/language/LanguageIcon.d.ts +2 -0
  109. package/src/app/layout/components/language/index.d.ts +2 -0
  110. package/src/app/layout/constants/index.d.ts +14 -0
  111. package/src/app/pages/components/PagesList.d.ts +18 -0
  112. package/src/app/pages/components/SectionList.d.ts +20 -0
  113. package/src/app/pages/components/SectionTemplateBlock.d.ts +14 -0
  114. package/src/app/pages/components/SectionTemplatesList.d.ts +12 -0
  115. package/src/app/pages/components/TemplateBlock.d.ts +13 -0
  116. package/src/app/pages/components/TemplateTypes.d.ts +5 -0
  117. package/src/app/pages/components/TemplatesList.d.ts +12 -0
  118. package/src/app/pages/components/UseSectionTemplate.d.ts +12 -0
  119. package/src/app/pages/components/UseTemplate.d.ts +11 -0
  120. package/src/app/pages/constants/index.d.ts +51 -0
  121. package/src/app/pages/pages/PageSections.d.ts +2 -0
  122. package/src/app/pages/pages/Pages.d.ts +8 -0
  123. package/src/app/pages/pages/SectionTemplates.d.ts +2 -0
  124. package/src/app/pages/pages/Settings.d.ts +2 -0
  125. package/src/app/pages/pages/Templates.d.ts +2 -0
  126. package/src/app/pages/utils/resolveTemplateId.d.ts +2 -0
  127. package/src/app/resources/components/Agents/CreateAgent.d.ts +3 -0
  128. package/src/app/resources/components/Ais/CreateAi.d.ts +7 -0
  129. package/src/app/resources/components/Ais/PatchAi.d.ts +8 -0
  130. package/src/app/resources/components/Broadcasts/BroadcastClients.d.ts +6 -0
  131. package/src/app/resources/components/Broadcasts/CreateBroadcast.d.ts +8 -0
  132. package/src/app/resources/components/Broadcasts/ListBroadcasts.d.ts +6 -0
  133. package/src/app/resources/components/Broadcasts/NoBroadcastIcon.d.ts +3 -0
  134. package/src/app/resources/components/CreateResource.d.ts +4 -0
  135. package/src/app/resources/components/Integrations/CreateIntegration.d.ts +6 -0
  136. package/src/app/resources/components/Integrations/CreationSuccessfulPopup.d.ts +3 -0
  137. package/src/app/resources/components/Integrations/Facebook/LoginPopup.d.ts +4 -0
  138. package/src/app/resources/components/Integrations/Facebook/NoPagesFoundPopup.d.ts +3 -0
  139. package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +8 -0
  140. package/src/app/resources/components/Integrations/Facebook/index.d.ts +7 -0
  141. package/src/app/resources/components/Integrations/PatchIntegration.d.ts +7 -0
  142. package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +11 -0
  143. package/src/app/resources/components/Integrations/WhatsApp/LoginPopup.d.ts +4 -0
  144. package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +4 -0
  145. package/src/app/resources/components/Integrations/types.d.ts +4 -0
  146. package/src/app/resources/components/ListResources.d.ts +4 -0
  147. package/src/app/resources/components/PatchResource.d.ts +5 -0
  148. package/src/app/resources/components/ResourceTypeDropList.d.ts +7 -0
  149. package/src/app/resources/config/agent.d.ts +4 -0
  150. package/src/app/resources/config/ai.d.ts +4 -0
  151. package/src/app/resources/config/apiKey.d.ts +4 -0
  152. package/src/app/resources/config/broadcast.d.ts +5 -0
  153. package/src/app/resources/config/client.d.ts +4 -0
  154. package/src/app/resources/config/clientStage.d.ts +4 -0
  155. package/src/app/resources/config/convStage.d.ts +4 -0
  156. package/src/app/resources/config/index.d.ts +3 -0
  157. package/src/app/resources/config/integration.d.ts +4 -0
  158. package/src/app/resources/config/types.d.ts +45 -0
  159. package/src/app/resources/config/webhook.d.ts +4 -0
  160. package/src/app/resources/hooks/useFBPagesHook.d.ts +13 -0
  161. package/src/app/resources/hooks/useResourceType.d.ts +6 -0
  162. package/src/app/resources/hooks/useWabaHook.d.ts +12 -0
  163. package/src/app/resources/pages/CreatePage.d.ts +2 -0
  164. package/src/app/resources/pages/ListPage.d.ts +2 -0
  165. package/src/app/resources/pages/PatchPage.d.ts +2 -0
  166. package/src/app/subscriptions/components/NewSubscription/SubscriptionName.d.ts +5 -0
  167. package/src/app/subscriptions/components/NewSubscription/SubscriptionSuccess.d.ts +5 -0
  168. package/src/app/subscriptions/components/Plans/PlanCard.d.ts +26 -0
  169. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +9 -0
  170. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionBilling.d.ts +2 -0
  171. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +13 -0
  172. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +12 -0
  173. package/src/app/subscriptions/components/SubscriptionSettings/index.d.ts +8 -0
  174. package/src/app/subscriptions/components/SubscriptionSwitcher/CLogo.d.ts +23 -0
  175. package/src/app/subscriptions/components/SubscriptionSwitcher/Switcher.d.ts +21 -0
  176. package/src/app/subscriptions/components/SubscriptionSwitcher/index.d.ts +2 -0
  177. package/src/app/subscriptions/components/SubscriptionsList.d.ts +8 -0
  178. package/src/app/subscriptions/constants/Plans.d.ts +27 -0
  179. package/src/app/subscriptions/hooks/WithDefaultContext.d.ts +1 -0
  180. package/src/app/subscriptions/pages/NewSubscription.d.ts +8 -0
  181. package/src/app/subscriptions/pages/Subscriptions.d.ts +8 -0
  182. package/src/app/subscriptions/pages/Upgrade.d.ts +11 -0
  183. package/src/app.d.ts +6 -0
  184. package/src/appWrapper.d.ts +2 -0
  185. package/src/assets/locales/translations.d.ts +517 -0
  186. package/src/config/constants.d.ts +11 -0
  187. package/src/config/modelsThumbs.d.ts +4 -0
  188. package/src/context/themeContext.d.ts +23 -0
  189. package/src/environments/environment.d.ts +4 -0
  190. package/src/environments/environment.prod.d.ts +4 -0
  191. package/src/main.d.ts +2 -0
  192. package/src/polyfills.d.ts +7 -0
  193. package/src/routes/PrivateRoutes.d.ts +1 -0
  194. package/src/routes/PublicRoutes.d.ts +1 -0
  195. package/src/routes/index.d.ts +2 -0
  196. package/src/store/history.d.ts +2 -0
  197. package/src/store/index.d.ts +852 -0
  198. package/src/store/lastState.d.ts +2 -0
  199. package/src/store/reducers.d.ts +96 -0
  200. package/src/utils/adjustStringEnumForDroplist.d.ts +5 -0
  201. package/src/utils/colorPool.d.ts +2 -0
  202. package/src/utils/getActiveAiTypes.d.ts +2 -0
  203. package/src/utils/getActiveChannelList.d.ts +2 -0
  204. package/src/utils/localStorage.d.ts +9 -0
  205. package/src/utils/textUtils.d.ts +5 -0
  206. package/src/utils/timeUtils.d.ts +30 -0
  207. package/src/utils/typesUtils.d.ts +11 -0
  208. package/assets/ar/translation.json +0 -495
  209. package/assets/en/translation.json +0 -497
@@ -0,0 +1,3 @@
1
+ export declare const Loading: ({ show }: {
2
+ show?: boolean;
3
+ }) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ declare const TableSkeleton: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default TableSkeleton;
@@ -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,2 @@
1
+ declare const Error: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default Error;
@@ -0,0 +1,2 @@
1
+ declare const NoPermissions: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default NoPermissions;
@@ -0,0 +1,2 @@
1
+ declare const NotFound: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default NotFound;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const BroadcastHeader: () => JSX.Element;
3
+ export default BroadcastHeader;
@@ -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,3 @@
1
+ /// <reference types="react" />
2
+ declare const NoChatIcon: React.FC;
3
+ export default NoChatIcon;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const NoConvSelected: React.FC;
3
+ export default NoConvSelected;
@@ -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,3 @@
1
+ export default function CountBadge({ count }: {
2
+ count: number;
3
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -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,5 @@
1
+ export interface StartConvPopinProps {
2
+ onClose: () => void;
3
+ }
4
+ export declare const StartConvPopin: ({ onClose }: StartConvPopinProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export default StartConvPopin;
@@ -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,6 @@
1
+ import { Message } from '../../../../graphql.autogenerated';
2
+ interface Props {
3
+ messages?: Message[] | null;
4
+ }
5
+ declare const Messages: ({ messages }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export default Messages;
@@ -0,0 +1,5 @@
1
+ export declare function ClosePopup({ onClose, onEnd, loading, }: {
2
+ onClose: () => void;
3
+ onEnd: () => void;
4
+ loading: boolean;
5
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,3 @@
1
+ export declare function NoAgentPopup({ onClose, }: {
2
+ onClose: () => void;
3
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -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,6 @@
1
+ import { Agent, Conversation } from '../../../graphql.autogenerated';
2
+ declare const useCanContribute: ({ agents, selectedConv, }: {
3
+ agents?: Agent[];
4
+ selectedConv?: Conversation;
5
+ }) => boolean;
6
+ export default useCanContribute;
@@ -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,2 @@
1
+ export declare const BroadcastMutatePage: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default BroadcastMutatePage;
@@ -0,0 +1,2 @@
1
+ export declare const BroadcastPage: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default BroadcastPage;
@@ -0,0 +1,2 @@
1
+ export declare const InboxPage: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default InboxPage;
@@ -0,0 +1,2 @@
1
+ export declare const SearchPage: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default SearchPage;
@@ -0,0 +1,2 @@
1
+ export declare function playRecMessageSound(): void;
2
+ export declare function playSendMessageSound(): void;
@@ -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,2 @@
1
+ declare const _default: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare function LogoutPopin({ onClose }: {
2
+ onClose: () => void;
3
+ }): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -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,2 @@
1
+ declare const LanguageIcon: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default LanguageIcon;
@@ -0,0 +1,2 @@
1
+ declare function SwitchLanguage(): import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default SwitchLanguage;
@@ -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,5 @@
1
+ export interface PageBlockProps {
2
+ onTypeChosen: (TemplatesTypes: any) => void;
3
+ }
4
+ declare const TemplateTypes: (props: PageBlockProps) => import("@emotion/react/jsx-runtime").JSX.Element;
5
+ export default TemplateTypes;
@@ -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;