@bcrumbs.net/inbox 0.0.50 → 0.0.52

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/{cb9c022b3cf80e0f.svg → 2998ffe42c3436c0.svg} +43 -43
  2. package/{594c01a9720e0657.svg → 396ba1d86a9997b1.svg} +42 -42
  3. package/assets/ar/inbox.json +256 -246
  4. package/assets/en/inbox.json +258 -248
  5. package/index.cjs.d.ts +1 -1
  6. package/index.cjs.js +12108 -1175
  7. package/index.esm.d.ts +1 -1
  8. package/index.esm.js +12110 -1177
  9. package/package.json +6 -6
  10. package/src/app/ai/components/Crumby/index.d.ts +2 -0
  11. package/src/app/ai/components/playground/Thread.d.ts +5 -1
  12. package/src/app/ai/components/playground/ThreadWelcome.d.ts +4 -1
  13. package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
  14. package/src/app/ai/components/sources/TextEditorSkeleton.d.ts +3 -0
  15. package/src/app/ai/components/sources/TextSnippetEditor.d.ts +9 -0
  16. package/src/app/ai/components/sources/TextTable.d.ts +15 -0
  17. package/src/app/ai/components/sources/index.d.ts +2 -0
  18. package/src/app/ai/hooks/useCrumbyRatingAi.d.ts +17 -0
  19. package/src/app/ai/hooks/useTextColumns.d.ts +17 -0
  20. package/src/app/ai/pages/AiPreferencesPrompts.d.ts +2 -0
  21. package/src/app/ai/pages/TextPage.d.ts +3 -0
  22. package/src/app/ai/types/index.d.ts +10 -0
  23. package/src/app/auth/pages/Login.d.ts +2 -12
  24. package/src/app/auth/pages/Register.d.ts +2 -13
  25. package/src/app/auth/redux/actions/registerAction.d.ts +1 -1
  26. package/src/app/auth/redux/auth.types.d.ts +1 -1
  27. package/src/app/billing/components/NotAccessible.d.ts +10 -0
  28. package/src/app/billing/components/Timeline.d.ts +20 -0
  29. package/src/app/billing/components/checkout/AddNewPaymentCard.d.ts +6 -0
  30. package/src/app/billing/components/checkout/CheckoutSummary.d.ts +20 -0
  31. package/src/app/billing/components/checkout/ExceedPaymentUpdateTriesModal.d.ts +8 -0
  32. package/src/app/billing/components/checkout/ExistingCardPayment.d.ts +10 -0
  33. package/src/app/billing/components/checkout/PaymentForm.d.ts +11 -0
  34. package/src/app/billing/components/checkout/PaymentFormExp.d.ts +9 -0
  35. package/src/app/billing/components/checkout/PaymentMethod.d.ts +8 -0
  36. package/src/app/billing/components/checkout/PaymentMethodCard.d.ts +9 -0
  37. package/src/app/billing/components/checkout/PaywithCredits.d.ts +9 -0
  38. package/src/app/billing/components/invoices/BCLogo.d.ts +5 -0
  39. package/src/app/billing/components/invoices/Invoice.d.ts +5 -0
  40. package/src/app/billing/components/planStyles.d.ts +9 -0
  41. package/src/app/billing/components/styles.d.ts +21 -0
  42. package/src/app/billing/components/subscription/PlanDetail.d.ts +11 -0
  43. package/src/app/billing/components/subscription/SubscriptionPausedWarning.d.ts +3 -0
  44. package/src/app/billing/components/transactions/TransactionHistoryTable.d.ts +15 -0
  45. package/src/app/billing/context/SubscriptionContext.d.ts +5 -0
  46. package/src/app/billing/hooks/useGetPaidToday.d.ts +9 -0
  47. package/src/app/billing/hooks/usePendingPayments.d.ts +51 -0
  48. package/src/app/billing/hooks/useSetupPayment.d.ts +15 -0
  49. package/src/app/billing/hooks/useSetupPaymentMethod.d.ts +12 -0
  50. package/src/app/billing/pages/checkout.d.ts +2 -0
  51. package/src/app/billing/pages/done.d.ts +1 -0
  52. package/src/app/billing/pages/invoice.d.ts +1 -0
  53. package/src/app/billing/pages/invoices.d.ts +2 -0
  54. package/src/app/billing/pages/payment.d.ts +1 -0
  55. package/src/app/billing/utils/getStripe.d.ts +3 -0
  56. package/src/app/billing/utils/openArticleModal.d.ts +1 -0
  57. package/src/app/billing/utils/paymentProvider.d.ts +3 -0
  58. package/src/app/billing/utils/stripeUtils.d.ts +2 -0
  59. package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +6 -1
  60. package/src/app/broadcast/components/BroadcastAnalysisReciepientsTable.d.ts +5 -1
  61. package/src/app/broadcast/components/BroadcastInfoHeader.d.ts +2 -1
  62. package/src/app/broadcast/components/BroadcastTargetingComplianceNotice.d.ts +2 -0
  63. package/src/app/broadcast/components/WorkspaceBroadcastAnalysisRecipients.d.ts +7 -0
  64. package/src/app/broadcast/hooks/useExportWorkspaceBroadcastDelivery.d.ts +6 -0
  65. package/src/app/broadcast/pages/WorkspaceBroadcastDeliveryReportPage.d.ts +2 -0
  66. package/src/app/broadcast/utils/helper.d.ts +4 -0
  67. package/src/app/contact/config/contactForm.d.ts +21 -0
  68. package/src/app/dashboard/components/AgentCard.d.ts +11 -0
  69. package/src/app/dashboard/components/AgentPerformanceCard.d.ts +9 -0
  70. package/src/app/dashboard/components/AgentsCard.d.ts +9 -0
  71. package/src/app/dashboard/components/AgentsCardSkeleton.d.ts +2 -0
  72. package/src/app/dashboard/components/BroadcastAnalyticsCard.d.ts +10 -0
  73. package/src/app/dashboard/components/BroadcastCampaignProgressCard.d.ts +10 -0
  74. package/src/app/dashboard/components/BroadcastDashboard.d.ts +6 -0
  75. package/src/app/dashboard/components/BroadcastDashboardStatsCards.d.ts +14 -0
  76. package/src/app/dashboard/components/BroadcastRecipientsCard.d.ts +8 -0
  77. package/src/app/dashboard/components/BroadcastStatusDistributionCard.d.ts +6 -0
  78. package/src/app/dashboard/components/ConversationAnalyticsCard.d.ts +11 -0
  79. package/src/app/dashboard/components/DashboardSections.d.ts +24 -0
  80. package/src/app/dashboard/components/DashboardStatsCards.d.ts +10 -0
  81. package/src/app/dashboard/components/InboxDashboard.d.ts +10 -0
  82. package/src/app/dashboard/components/OpenedChatsCard.d.ts +8 -0
  83. package/src/app/dashboard/pages/DashboardNewPage.d.ts +2 -0
  84. package/src/app/dashboard/utils/buildBroadcastReportOverviewAnalytics.d.ts +17 -0
  85. package/src/app/dashboard/utils/buildRecipientsAnalytics.d.ts +12 -0
  86. package/src/app/dashboard/utils/dateHelpers.d.ts +7 -0
  87. package/src/app/generic/components/HeaderImageInput.d.ts +8 -0
  88. package/src/app/generic/components/PhoneNumberInput.d.ts +13 -0
  89. package/src/app/generic/components/TemplateParameterInputs.d.ts +2 -1
  90. package/src/app/generic/components/ToggleSetting.d.ts +3 -2
  91. package/src/app/generic/hooks/useGetProviderIcon.d.ts +2 -1
  92. package/src/app/inbox/components/Chat/ChatContent.d.ts +2 -1
  93. package/src/app/inbox/components/NewConvList/FilterDrawer.d.ts +18 -0
  94. package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +4 -1
  95. package/src/app/inbox/components/NewConvList/index.d.ts +6 -2
  96. package/src/app/inbox/hooks/useConversationsPerodicFetch.d.ts +10 -0
  97. package/src/app/inbox/hooks/useNewSortedEvents.d.ts +1 -1
  98. package/src/app/inbox/utils/convs.d.ts +10 -1
  99. package/src/app/layout/components/CommandPalette.d.ts +16 -0
  100. package/src/app/layout/components/Header.d.ts +3 -1
  101. package/src/app/layout/constants/index.d.ts +24 -2
  102. package/src/app/layout/constants/subMenu.d.ts +22 -2
  103. package/src/app/layout/hooks/useImportContactsEnabled.d.ts +1 -0
  104. package/src/app/managemnet/components/CreateApiKey.d.ts +4 -1
  105. package/src/app/managemnet/components/CreateCrmWebhook.d.ts +6 -0
  106. package/src/app/managemnet/components/channels/AddChannelDialog.d.ts +10 -0
  107. package/src/app/managemnet/components/channels/ChannelItem.d.ts +11 -0
  108. package/src/app/managemnet/components/channels/ChannelTypeCard.d.ts +15 -0
  109. package/src/app/managemnet/components/channels/EditChannelDialog.d.ts +11 -0
  110. package/src/app/managemnet/pages/crmIntegrations/index.d.ts +2 -0
  111. package/src/app/onboarding/components/OnboardingChecklistGuideContent.d.ts +8 -0
  112. package/src/app/onboarding/components/OnboardingChecklistWidget.d.ts +2 -0
  113. package/src/app/onboarding/utils/onboardingChecklistStorage.d.ts +39 -0
  114. package/src/app/resources/components/Integrations/ChannelDialogLayout.d.ts +24 -0
  115. package/src/app/resources/components/Integrations/Custom/index.d.ts +7 -0
  116. package/src/app/resources/components/Integrations/Facebook/index.d.ts +4 -1
  117. package/src/app/resources/components/Integrations/Instagram/index.d.ts +4 -1
  118. package/src/app/resources/components/Integrations/RenderCorrectIntegrationFlow.d.ts +11 -2
  119. package/src/app/resources/components/Integrations/Telegram/index.d.ts +4 -1
  120. package/src/app/resources/components/Integrations/WaGupshup/index.d.ts +7 -0
  121. package/src/app/resources/components/Integrations/WhatsApp/index.d.ts +4 -1
  122. package/src/app/resources/components/ListResources/Utils.d.ts +0 -1
  123. package/src/app/subscriptions/components/Plans/PlanCard.d.ts +3 -3
  124. package/src/app/subscriptions/components/Plans/ShowcasePlans.d.ts +5 -2
  125. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionHeader.d.ts +2 -1
  126. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionProfile.d.ts +1 -0
  127. package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +0 -1
  128. package/src/app/subscriptions/constants/Plans.d.ts +9 -6
  129. package/src/app/subscriptions/pages/Upgrade.d.ts +6 -9
  130. package/src/assets/locales/translations.d.ts +333 -5
  131. package/src/config/azure.d.ts +6 -0
  132. package/src/config/constants.d.ts +1 -1
  133. package/src/environments/types.d.ts +3 -0
  134. package/src/graphql.autogenerated.d.ts +3074 -2349
  135. package/src/graphql.billing.autogenerated.d.ts +680 -7
  136. package/src/main.d.ts +2 -0
  137. package/src/utils/formatFailureReason.d.ts +5 -0
  138. package/src/utils/globalHelper.d.ts +3 -0
  139. package/src/utils/localStorage.d.ts +2 -0
  140. package/src/utils/textUtils.d.ts +3 -1
  141. package/src/app/resources/components/Integrations/Facebook/LoginPopup.d.ts +0 -4
  142. package/src/app/resources/components/Integrations/Instagram/LoginPopup.d.ts +0 -4
  143. package/src/app/resources/components/Integrations/WhatsApp/LoginPopup.d.ts +0 -4
@@ -0,0 +1,6 @@
1
+ interface CreateCrmWebhookProps {
2
+ onSuccess?: () => void;
3
+ onCancel?: () => void;
4
+ }
5
+ declare const CreateCrmWebhook: ({ onSuccess, onCancel }: CreateCrmWebhookProps) => import("@emotion/react/jsx-runtime").JSX.Element;
6
+ export default CreateCrmWebhook;
@@ -0,0 +1,10 @@
1
+ interface AddChannelDialogProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ onSuccess: () => void;
5
+ channelType: string;
6
+ channelTypeName: string;
7
+ rtl?: boolean;
8
+ }
9
+ declare const AddChannelDialog: ({ isOpen, onClose, onSuccess, channelType, channelTypeName, rtl }: AddChannelDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ export default AddChannelDialog;
@@ -0,0 +1,11 @@
1
+ interface ChannelItemProps {
2
+ id: string;
3
+ name: string;
4
+ date: string;
5
+ identifier?: string;
6
+ onDelete: (id: string) => void;
7
+ onEdit: (id: string) => void;
8
+ rtl?: boolean;
9
+ }
10
+ declare const ChannelItem: ({ id, name, date, identifier, onDelete, onEdit, rtl }: ChannelItemProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export default ChannelItem;
@@ -0,0 +1,15 @@
1
+ export interface ChannelIntegration {
2
+ id: string;
3
+ name: string;
4
+ type: string;
5
+ createdAt: string;
6
+ identifier?: string;
7
+ }
8
+ interface ChannelTypeCardProps {
9
+ type: string;
10
+ channels: ChannelIntegration[];
11
+ onChannelDelete: (id: string) => void;
12
+ onChannelCreated: () => void;
13
+ }
14
+ declare const ChannelTypeCard: ({ type, channels, onChannelDelete, onChannelCreated }: ChannelTypeCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
15
+ export default ChannelTypeCard;
@@ -0,0 +1,11 @@
1
+ interface EditChannelDialogProps {
2
+ isOpen: boolean;
3
+ onClose: () => void;
4
+ onSuccess: () => void;
5
+ channelId: string;
6
+ channelType: string;
7
+ channelTypeName: string;
8
+ rtl?: boolean;
9
+ }
10
+ declare const EditChannelDialog: ({ isOpen, onClose, onSuccess, channelId, channelType, rtl }: EditChannelDialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export default EditChannelDialog;
@@ -0,0 +1,2 @@
1
+ declare const CrmIntegrations: () => import("@emotion/react/jsx-runtime").JSX.Element;
2
+ export default CrmIntegrations;
@@ -0,0 +1,8 @@
1
+ import { type OnboardingChecklistStepId } from '../utils/onboardingChecklistStorage';
2
+ export type OnboardingChecklistGuideContentProps = {
3
+ stepId: OnboardingChecklistStepId;
4
+ };
5
+ /**
6
+ * Single-step guide aligned with packages/bc-api-docs/pages/start/quickstart.mdx.
7
+ */
8
+ export declare function OnboardingChecklistGuideContent({ stepId }: OnboardingChecklistGuideContentProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare const OnboardingChecklistWidget: () => import("@emotion/react/jsx-runtime").JSX.Element | null;
2
+ export default OnboardingChecklistWidget;
@@ -0,0 +1,39 @@
1
+ export declare const ONBOARDING_CHECKLIST_STORAGE_PREFIX = "showcase_onboarding_checklist";
2
+ export declare const ONBOARDING_CHECKLIST_UPDATED_EVENT = "showcase-onboarding-checklist-updated";
3
+ export declare const ONBOARDING_CHECKLIST_TTL_MS: number;
4
+ export type OnboardingChecklistStepId = 'workspace' | 'invite' | 'channel' | 'firstMessage' | 'uploadFile' | 'testAi';
5
+ export type OnboardingChecklistState = {
6
+ startedAt: string;
7
+ completed: Record<OnboardingChecklistStepId, boolean>;
8
+ };
9
+ export declare const ONBOARDING_CHECKLIST_STEP_IDS: OnboardingChecklistStepId[];
10
+ export declare function getOnboardingChecklistStorageKey(userId: string | number): string;
11
+ export declare function getOnboardingChecklistPendingKey(userId: string | number): string;
12
+ /** One-shot: open checklist popover after sign-in (session tab only). */
13
+ export declare const ONBOARDING_CHECKLIST_SESSION_AUTOPEN_KEY = "showcase_onboarding_checklist_session_autopen";
14
+ export declare function clearOnboardingChecklistSessionAutopen(): void;
15
+ export declare function shouldOpenOnboardingChecklistFromSession(): boolean;
16
+ export declare function createDefaultOnboardingChecklistState(): OnboardingChecklistState;
17
+ export declare function parseOnboardingChecklistState(value: unknown): OnboardingChecklistState | null;
18
+ /**
19
+ * Call after a successful sign-in. If the user has no active checklist yet, sets a short-lived
20
+ * pending flag so the layout widget can create `startedAt` only on the first load after login
21
+ * (not for sessions that never went through sign-in in this browser).
22
+ */
23
+ export declare function notifyOnboardingChecklistAfterSignIn(userId: string | number): void;
24
+ /**
25
+ * Parsed checklist from storage, or null if missing or past TTL.
26
+ * Use this to cheaply skip heavy work (e.g. scanning all inbox messages) when the step is already done
27
+ * or there is no active checklist.
28
+ */
29
+ export declare function getActiveOnboardingChecklistState(userId: string | number | null | undefined): OnboardingChecklistState | null;
30
+ export type MarkOnboardingChecklistStepOptions = {
31
+ /** When already loaded (e.g. after a gate check), avoids a second localStorage read. */
32
+ knownActiveState?: OnboardingChecklistState;
33
+ };
34
+ /**
35
+ * Marks a checklist step done when the user performs the real action (persists + notifies widget).
36
+ * No-op if there is no checklist, it is expired, or the step is already complete.
37
+ */
38
+ export declare function markOnboardingChecklistStepComplete(userId: string | number | null | undefined, stepId: OnboardingChecklistStepId, options?: MarkOnboardingChecklistStepOptions): void;
39
+ export declare function tryMarkOnboardingChecklistStepFromAuth(stepId: OnboardingChecklistStepId): void;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ export declare const FieldGroup: import("@emotion/styled").StyledComponent<{
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
5
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
6
+ export declare const HelperText: import("@emotion/styled").StyledComponent<{
7
+ theme?: import("@emotion/react").Theme | undefined;
8
+ as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
9
+ }, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
10
+ export interface ChannelDialogLayoutProps {
11
+ isOpen: boolean;
12
+ onClose: () => void;
13
+ channelName: string;
14
+ setChannelName: (name: string) => void;
15
+ channelTypeName: string;
16
+ icon?: React.ReactNode;
17
+ extraFields?: React.ReactNode;
18
+ videoUrl?: string;
19
+ supportUrl?: string;
20
+ onNext: () => void;
21
+ isNextDisabled: boolean;
22
+ rtl?: boolean;
23
+ }
24
+ export declare const ChannelDialogLayout: ({ isOpen, onClose, channelName, setChannelName, channelTypeName, icon, extraFields, videoUrl, supportUrl, onNext, isNextDisabled, rtl, }: ChannelDialogLayoutProps) => import("@emotion/react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
3
+ import { IntegrationFlowComponentProps } from '../types';
4
+ import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
5
+ type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
6
+ export declare const CustomChannel: React.FC<Props>;
7
+ export {};
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
3
3
  import { IntegrationFlowComponentProps } from '../types';
4
- export declare const FacebookMessanger: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
4
+ import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
5
+ type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
6
+ export declare const FacebookMessanger: React.FC<Props>;
5
7
  export declare const FacebookMessangerReconnect: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
6
8
  export declare const InstaMessanger: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
7
9
  export declare const InstaMessangerReconnect: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
10
+ export {};
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
3
3
  import { IntegrationFlowComponentProps } from '../types';
4
- export declare const Instagram: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
4
+ import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
5
+ type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
6
+ export declare const Instagram: React.FC<Props>;
7
+ export {};
@@ -1,9 +1,18 @@
1
+ import React from 'react';
1
2
  import { IntegrationWithSecrets, IntegrationType } from '../../../../graphql.autogenerated';
2
3
  import { IntegrationFlowComponentProps } from './types';
3
- interface RenderCorrectIntegrationFlowProps extends IntegrationFlowComponentProps<IntegrationWithSecrets> {
4
+ export interface ChannelFlowExtendedProps {
5
+ isOpen?: boolean;
6
+ channelName: string;
7
+ setChannelName: (name: string) => void;
8
+ channelTypeName: string;
9
+ icon?: React.ReactNode;
10
+ rtl?: boolean;
11
+ }
12
+ interface RenderCorrectIntegrationFlowProps extends IntegrationFlowComponentProps<IntegrationWithSecrets>, ChannelFlowExtendedProps {
4
13
  type: IntegrationType;
5
14
  }
6
- export declare const RenderCorrectIntegrationFlow: ({ type, setInitialValues, cancel, }: RenderCorrectIntegrationFlowProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
15
+ export declare const RenderCorrectIntegrationFlow: ({ type, setInitialValues, cancel, isOpen, channelName, setChannelName, channelTypeName, icon, rtl, }: RenderCorrectIntegrationFlowProps) => import("@emotion/react/jsx-runtime").JSX.Element | null;
7
16
  export declare const RenderCorrectIntegrationFlowCancelledMessage: ({ type, tryAgain, }: {
8
17
  type: IntegrationType;
9
18
  tryAgain: () => void;
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
3
3
  import { IntegrationFlowComponentProps } from '../types';
4
- export declare const Telegram: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
4
+ import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
5
+ type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
6
+ export declare const Telegram: React.FC<Props>;
7
+ export {};
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
3
+ import { IntegrationFlowComponentProps } from '../types';
4
+ import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
5
+ type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
6
+ export declare const WaGupshup: React.FC<Props>;
7
+ export {};
@@ -1,4 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
3
3
  import { IntegrationFlowComponentProps } from '../types';
4
- export declare const WhatsApp: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
4
+ import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
5
+ type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
6
+ export declare const WhatsApp: React.FC<Props>;
7
+ export {};
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { TFunction } from "i18next";
3
2
  import { Row, Action } from "@bcrumbs.net/bc-ui";
4
3
  import { ResourceDefinition } from "../../config";
@@ -2,14 +2,14 @@ import { ReactNode } from 'react';
2
2
  import { Color } from '@bcrumbs.net/bc-ui';
3
3
  import { PlanFrequency } from '../../constants/Plans';
4
4
  export type PlanCardProps = {
5
- accountId: string;
6
5
  upgrading?: boolean;
7
6
  onActionClick?: () => void;
8
7
  available?: boolean;
9
8
  current?: boolean;
9
+ processing?: boolean;
10
+ loading?: boolean;
10
11
  children?: ReactNode;
11
12
  frequency: PlanFrequency;
12
- planCode: string;
13
13
  name: string;
14
14
  amount?: number;
15
15
  billingLabel?: string | null;
@@ -23,4 +23,4 @@ export type PlanCardProps = {
23
23
  borderColor?: Color;
24
24
  boxBorderColor?: Color;
25
25
  };
26
- export declare function PlanCard({ planCode, available, name, amount, frequency, billingLabel, subTitle, actionLabel, description, onActionClick, titleColor, bgColor, color, descriptionColor, borderColor, boxBorderColor, children, current, accountId, upgrading, }: PlanCardProps): import("@emotion/react/jsx-runtime").JSX.Element;
26
+ export declare function PlanCard({ available, name, amount, frequency, billingLabel, subTitle, actionLabel, description, onActionClick, titleColor, bgColor, color, descriptionColor, borderColor, boxBorderColor, children, current, upgrading, processing, loading, }: PlanCardProps): import("@emotion/react/jsx-runtime").JSX.Element;
@@ -1,9 +1,12 @@
1
1
  import { PlanTypes } from '../../constants/Plans';
2
+ import { PlanType } from '../../../../graphql.billing.autogenerated';
2
3
  type ShowcasePlansProps = {
3
4
  onPlanPicked: (plan: PlanTypes) => void;
4
5
  disableFreePlan?: boolean;
5
- currentSubscription: any;
6
+ currentPlanType?: PlanType | null;
6
7
  upgrading?: boolean;
8
+ processing?: boolean;
9
+ loadingPlanType?: PlanType | null;
7
10
  };
8
- export declare const ShowcasePlans: ({ onPlanPicked, disableFreePlan, currentSubscription, upgrading, }: ShowcasePlansProps) => import("@emotion/react/jsx-runtime").JSX.Element;
11
+ export declare const ShowcasePlans: ({ onPlanPicked, disableFreePlan, currentPlanType, upgrading, processing, loadingPlanType, }: ShowcasePlansProps) => import("@emotion/react/jsx-runtime").JSX.Element;
9
12
  export default ShowcasePlans;
@@ -5,6 +5,7 @@ interface SubscriptionHeaderProps {
5
5
  loading: boolean;
6
6
  onCancel: () => void;
7
7
  disabledSave: boolean;
8
+ workspaceId?: number;
8
9
  }
9
- declare const SubscriptionHeader: ({ isEditing, onEdit, onSave, onCancel, loading, disabledSave, }: SubscriptionHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
+ declare const SubscriptionHeader: ({ isEditing, onEdit, onSave, onCancel, loading, disabledSave, workspaceId, }: SubscriptionHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element;
10
11
  export default SubscriptionHeader;
@@ -13,6 +13,7 @@ type SubscriptionProfileRouteProps = {
13
13
  onNameChange?: (name: string) => void;
14
14
  handleUpdateCompany?: (name: string) => Promise<void>;
15
15
  disabledSave: boolean;
16
+ usersCount: number;
16
17
  };
17
18
  export declare const SubscriptionProfile: ({ isEditing, disabledSave, ...props }: SubscriptionProfileRouteProps) => import("@emotion/react/jsx-runtime").JSX.Element;
18
19
  declare const _default: any;
@@ -1,4 +1,3 @@
1
- export declare const companyUsersQueryOptions: any;
2
1
  type SubscriptionProfileRouteProps = {
3
2
  subscriptionId: number;
4
3
  users: any[];
@@ -11,18 +11,21 @@ export declare enum PlanTypes {
11
11
  FREE = "free",
12
12
  BASIC = "basic",
13
13
  PREMIUM = "premium",
14
- ENTERPRISE = "enterprise",
14
+ BUSINESS = "business",
15
+ AUTOMATE = "automate",
16
+ AUTOMATE_PLUS = "automate_plus",
17
+ AUTOMATE_MAX = "automate_max",
15
18
  CUSTOM = "custom"
16
19
  }
17
- export declare const PlanCodes: {
18
- [key in PlanTypes]: string;
19
- };
20
20
  export declare const PlanPrices: {
21
21
  [key in PlanTypes]: number;
22
22
  };
23
- export declare const PlanVisitsLimits: {
23
+ export declare const PlanConversationsLimits: {
24
24
  [key in PlanTypes]: number;
25
25
  };
26
- export declare const PlanConversationsLimits: {
26
+ export declare const PlanCampaignsLimits: {
27
+ [key in PlanTypes]: number;
28
+ };
29
+ export declare const PlanUsersLimits: {
27
30
  [key in PlanTypes]: number;
28
31
  };
@@ -1,11 +1,8 @@
1
- export type Props = {
2
- companies: any[];
3
- refetchCompanies: any;
4
- loadingCompanies: boolean;
5
- match: any;
6
- history: any;
1
+ /// <reference types="react" />
2
+ declare const _default: import("react-redux").ConnectedComponent<({ router }: {
7
3
  router: any;
8
- };
9
- export declare const Upgrade: ({ router, companies, loadingCompanies }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
10
- declare const _default: any;
4
+ }) => import("@emotion/react/jsx-runtime").JSX.Element, {
5
+ context?: import("react").Context<import("react-redux").ReactReduxContextValue<any, import("redux").AnyAction>> | undefined;
6
+ store?: import("redux").Store<any, import("redux").AnyAction> | undefined;
7
+ }>;
11
8
  export default _default;