@bcrumbs.net/inbox 0.0.41 → 0.0.43
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/2998ffe42c3436c0.svg +43 -0
- package/351acdb5ea7901e1.png +0 -0
- package/396ba1d86a9997b1.svg +42 -0
- package/assets/ar/inbox.json +244 -236
- package/assets/en/inbox.json +246 -238
- package/index.cjs.d.ts +1 -1
- package/index.cjs.js +45784 -47401
- package/index.esm.d.ts +1 -1
- package/index.esm.js +45784 -47401
- package/package.json +4 -4
- package/src/app/ai/components/playground/TooltipIconButton.d.ts +1 -1
- package/src/app/auth/hooks/useCurrentUser.d.ts +13 -0
- package/src/app/auth/hooks/useRoles.d.ts +6 -0
- package/src/app/auth/pages/Welcome.d.ts +1 -2
- package/src/app/auth/redux/actions/loginAction.d.ts +2 -14
- package/src/app/auth/redux/actions/registerAction.d.ts +0 -16
- package/src/app/auth/redux/auth.slice.d.ts +8 -25
- package/src/app/auth/redux/auth.types.d.ts +2 -2
- package/src/app/broadcast/components/BroadcastAnalysisCards.d.ts +11 -0
- package/src/app/broadcast/components/BroadcastAnalysisCharts.d.ts +11 -0
- package/src/app/broadcast/components/BroadcastAnalysisContent.d.ts +7 -0
- package/src/app/broadcast/components/BroadcastAnalysisEngagementFunnel.d.ts +8 -0
- package/src/app/broadcast/components/BroadcastAnalysisHeader.d.ts +6 -0
- package/src/app/broadcast/components/BroadcastAnalysisMessageStatusChart.d.ts +11 -0
- package/src/app/broadcast/components/BroadcastAnalysisReciepients.d.ts +3 -0
- package/src/app/broadcast/components/BroadcastAnalysisReciepientsHeader.d.ts +15 -0
- package/src/app/broadcast/components/BroadcastAnalysisReciepientsTable.d.ts +12 -0
- package/src/app/broadcast/components/BroadcastDetailsSection.d.ts +6 -1
- package/src/app/broadcast/components/BroadcastEstimitedCost.d.ts +3 -2
- package/src/app/broadcast/components/BroadcastInfoTemplateMessagePreview.d.ts +11 -0
- package/src/app/broadcast/components/BroadcastListTable.d.ts +9 -1
- package/src/app/broadcast/components/BroadcastSampleContacts.d.ts +1 -1
- package/src/app/broadcast/components/BroadcastSectionCard.d.ts +6 -1
- package/src/app/broadcast/components/EmptyBroadcastList.d.ts +2 -1
- package/src/app/broadcast/components/MessagePreview.d.ts +24 -0
- package/src/app/broadcast/components/StatisticsCard.d.ts +7 -3
- package/src/app/broadcast/pages/BroadcastAnalysis.d.ts +2 -0
- package/src/app/broadcast/utils/helper.d.ts +1 -0
- package/src/app/contact/config/contactDefinition.d.ts +1 -1
- package/src/app/contact/config/contactForm.d.ts +0 -30
- package/src/app/contact/config/contactLifeCycleDefinition.d.ts +1 -1
- package/src/app/generic/components/Containers.d.ts +1 -0
- package/src/app/generic/components/TemplateParameterInputs.d.ts +10 -0
- package/src/app/generic/hooks/usePaginatedQuery.d.ts +1 -1
- package/src/app/generic/hooks/useWhatsAppTemplate.d.ts +21 -0
- package/src/app/inbox/components/Chat/ChatContent.d.ts +30 -0
- package/src/app/inbox/components/NewConvList/HeaderSection.d.ts +3 -2
- package/src/app/inbox/components/Popups/InboxTemplateMessagePreview.d.ts +13 -0
- package/src/app/inbox/components/Popups/SummaryPopup.d.ts +7 -0
- package/src/app/inbox/hooks/useCanContribute.d.ts +2 -2
- package/src/app/inbox/hooks/useConvActions.d.ts +1 -1
- package/src/app/inbox/hooks/useConvFilters.d.ts +4 -5
- package/src/app/inbox/utils/convs.d.ts +8 -3
- package/src/app/managemnet/components/AddConversationLifeCycle.d.ts +6 -0
- package/src/app/managemnet/components/CreateAgentWrapper.d.ts +11 -0
- package/src/app/managemnet/components/CreateAiWrapper.d.ts +11 -0
- package/src/app/managemnet/components/CreateApiKey.d.ts +6 -0
- package/src/app/managemnet/components/CreateWebhook.d.ts +6 -0
- package/src/app/managemnet/config/agentDefinition.d.ts +1 -1
- package/src/app/managemnet/config/integrationDefinition.d.ts +1 -0
- package/src/app/{contact → managemnet/config}/types.d.ts +1 -0
- package/src/app/managemnet/pages/agents/index.d.ts +2 -0
- package/src/app/managemnet/pages/ais/index.d.ts +2 -0
- package/src/app/managemnet/pages/apiKeys/index.d.ts +2 -0
- package/src/app/managemnet/pages/channels/InstagramOAuthCallback.d.ts +2 -0
- package/src/app/managemnet/pages/channels/index.d.ts +2 -0
- package/src/app/managemnet/pages/conversationLifeCycle/index.d.ts +2 -0
- package/src/app/managemnet/pages/webhooks/index.d.ts +2 -0
- package/src/app/resources/components/Integrations/Instagram/LoginPopup.d.ts +4 -0
- package/src/app/resources/components/Integrations/Instagram/constants.d.ts +3 -0
- package/src/app/resources/components/Integrations/Instagram/index.d.ts +4 -0
- package/src/app/resources/config/types.d.ts +1 -0
- package/src/app/resources/hooks/useInstagramHook.d.ts +5 -0
- package/src/assets/locales/translations.d.ts +121 -0
- package/src/environments/types.d.ts +1 -0
- package/src/graphql.autogenerated.d.ts +214 -60
- package/src/store/index.d.ts +72 -225
- package/src/store/reducers.d.ts +8 -25
- package/src/utils/globalHelper.d.ts +8 -0
- package/src/app/managemnet/types.d.ts +0 -61
- package/src/app/resources/config/agent.d.ts +0 -4
- package/src/app/resources/config/broadcast.d.ts +0 -4
- package/src/app/resources/config/client.d.ts +0 -4
- package/src/app/resources/config/clientStage.d.ts +0 -4
- /package/src/app/{resources/config/ai.d.ts → managemnet/config/aiDefinition.d.ts} +0 -0
- /package/src/app/{resources/config/apiKey.d.ts → managemnet/config/apiKeyDefinition.d.ts} +0 -0
- /package/src/app/{resources/config/convStage.d.ts → managemnet/config/conversationLifeCycleDefinition.d.ts} +0 -0
- /package/src/app/{resources/config/webhook.d.ts → managemnet/config/webhookDefinition.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrumbs.net/inbox",
|
|
3
3
|
"description": "Inbox widget for Bread Crumbs portals",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.43",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"graphql": "15.4.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@bcrumbs.net/bc-shared": "^0.0.
|
|
28
|
-
"@bcrumbs.net/bc-ui": "^0.0.
|
|
29
|
-
"@bcrumbs.net/bc-api": "^0.0.
|
|
27
|
+
"@bcrumbs.net/bc-shared": "^0.0.8",
|
|
28
|
+
"@bcrumbs.net/bc-ui": "^0.0.10",
|
|
29
|
+
"@bcrumbs.net/bc-api": "^0.0.45",
|
|
30
30
|
"@azure/storage-blob": "^12.25.0"
|
|
31
31
|
},
|
|
32
32
|
"module": "./index.esm.js",
|
|
@@ -11,5 +11,5 @@ export declare const TooltipIconButton: import("react").ForwardRefExoticComponen
|
|
|
11
11
|
asChild?: boolean | undefined;
|
|
12
12
|
}, "ref"> & {
|
|
13
13
|
tooltip: string;
|
|
14
|
-
side?: "
|
|
14
|
+
side?: "bottom" | "left" | "right" | "top" | undefined;
|
|
15
15
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const useCurrentUser: () => {
|
|
2
|
+
id: undefined;
|
|
3
|
+
email: undefined;
|
|
4
|
+
type: undefined;
|
|
5
|
+
userName: undefined;
|
|
6
|
+
loading: boolean;
|
|
7
|
+
} | {
|
|
8
|
+
id: string;
|
|
9
|
+
email: string | undefined;
|
|
10
|
+
type: string | undefined;
|
|
11
|
+
userName: string | undefined;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
};
|
|
@@ -4,11 +4,10 @@ export type Props = {
|
|
|
4
4
|
name: string;
|
|
5
5
|
surname: string;
|
|
6
6
|
email: string;
|
|
7
|
-
checkIfUserIsRegistered: UserAuthTypes.CheckIfUserIsAuthenticated;
|
|
8
7
|
resendConfirmation: UserAuthTypes.ResendConfirmation;
|
|
9
8
|
error: any;
|
|
10
9
|
status: any;
|
|
11
10
|
};
|
|
12
|
-
export declare const Welcome: ({ status,
|
|
11
|
+
export declare const Welcome: ({ status, email, resendConfirmation, name, surname, error, }: Props) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
13
12
|
declare const _default: any;
|
|
14
13
|
export default _default;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare function loginAction(action: (email: string, password: string) => Promise<any>, email: any, password: any, source?: string): (dispatch: any) => void;
|
|
2
|
-
export declare function oauthLoginAction(
|
|
2
|
+
export declare function oauthLoginAction(accessToekn: string, user?: {
|
|
3
3
|
username: string;
|
|
4
4
|
id: string;
|
|
5
5
|
email: string;
|
|
6
|
-
},
|
|
6
|
+
}, source?: string): (dispatch: any) => void;
|
|
7
7
|
export declare function receivedUserLoggedIn(status: any, userToken: string, user?: any, source?: string, time?: string): {
|
|
8
8
|
type: string;
|
|
9
9
|
status: any;
|
|
@@ -23,17 +23,5 @@ export declare function checkIfUserIsAuthenticated(time?: string, source?: strin
|
|
|
23
23
|
type: string;
|
|
24
24
|
time: string;
|
|
25
25
|
isAuthenticated: boolean;
|
|
26
|
-
user: {
|
|
27
|
-
id: string;
|
|
28
|
-
username: string;
|
|
29
|
-
role: string;
|
|
30
|
-
} | {
|
|
31
|
-
id: string;
|
|
32
|
-
email: string;
|
|
33
|
-
username: string;
|
|
34
|
-
lastLogin: string;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
modifiedAt: string;
|
|
37
|
-
} | null;
|
|
38
26
|
source: string | undefined;
|
|
39
27
|
};
|
|
@@ -13,19 +13,3 @@ export declare function errorUserRegister(status: number, error?: any, time?: st
|
|
|
13
13
|
isAuthenticated: boolean;
|
|
14
14
|
status: number;
|
|
15
15
|
};
|
|
16
|
-
export declare function checkIfUserIsRegistered(time?: string): {
|
|
17
|
-
type: string;
|
|
18
|
-
time: string;
|
|
19
|
-
user: {
|
|
20
|
-
id: string;
|
|
21
|
-
username: string;
|
|
22
|
-
role: string;
|
|
23
|
-
} | {
|
|
24
|
-
id: string;
|
|
25
|
-
email: string;
|
|
26
|
-
username: string;
|
|
27
|
-
lastLogin: string;
|
|
28
|
-
createdAt: string;
|
|
29
|
-
modifiedAt: string;
|
|
30
|
-
} | null;
|
|
31
|
-
};
|
|
@@ -2,17 +2,14 @@ import { User } from './auth.types';
|
|
|
2
2
|
export default function (state: User | undefined, action: any): {
|
|
3
3
|
lastActionTime: any;
|
|
4
4
|
isAuthenticated: any;
|
|
5
|
-
id: any;
|
|
6
|
-
name: any;
|
|
7
|
-
surname: any;
|
|
8
|
-
email: any;
|
|
9
|
-
lastLogin: any;
|
|
10
|
-
createdAt: any;
|
|
11
|
-
modifiedAt: any;
|
|
12
5
|
lastRefreshTime: any;
|
|
13
6
|
error: null;
|
|
14
7
|
status: any;
|
|
8
|
+
id: string;
|
|
15
9
|
username: string;
|
|
10
|
+
lastLogin: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
modifiedAt: string;
|
|
16
13
|
mutationLoading: boolean;
|
|
17
14
|
errors: any;
|
|
18
15
|
} | {
|
|
@@ -56,26 +53,12 @@ export default function (state: User | undefined, action: any): {
|
|
|
56
53
|
} | {
|
|
57
54
|
lastActionTime: any;
|
|
58
55
|
isAuthenticated: any;
|
|
59
|
-
id: any;
|
|
60
|
-
name: any;
|
|
61
|
-
surname: any;
|
|
62
|
-
email: any;
|
|
63
|
-
lastLogin: any;
|
|
64
|
-
createdAt: any;
|
|
65
|
-
modifiedAt: any;
|
|
66
56
|
status: undefined;
|
|
57
|
+
id: string;
|
|
67
58
|
username: string;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
lastActionTime: any;
|
|
72
|
-
isAuthenticated: any;
|
|
73
|
-
id: any;
|
|
74
|
-
username: any;
|
|
75
|
-
lastLogin: any;
|
|
76
|
-
createdAt: any;
|
|
77
|
-
modifiedAt: any;
|
|
78
|
-
status: undefined;
|
|
59
|
+
lastLogin: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
modifiedAt: string;
|
|
79
62
|
mutationLoading: boolean;
|
|
80
63
|
errors: any;
|
|
81
64
|
} | {
|
|
@@ -40,11 +40,11 @@ export interface User {
|
|
|
40
40
|
errors: any;
|
|
41
41
|
}
|
|
42
42
|
export type LoginAction = (action: any, email: string, password: string, keepMeLoggedIn: boolean) => any;
|
|
43
|
-
export type OAuthLoginAction = (
|
|
43
|
+
export type OAuthLoginAction = (accessToekn: string, user?: {
|
|
44
44
|
username: string;
|
|
45
45
|
id: string;
|
|
46
46
|
email: string;
|
|
47
|
-
},
|
|
47
|
+
}, source?: string) => any;
|
|
48
48
|
export type ReceivedUserLoggedIn = (userToken?: string, user?: User, keepMeLoggedIn?: boolean, time?: string, source?: string) => any;
|
|
49
49
|
export type ErrorUserLoggedIn = (error?: any, time?: string, source?: string) => any;
|
|
50
50
|
export type SetLoadingStateForUserLogin = (time: string) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface BroadcastAnalysisCardsProps {
|
|
2
|
+
integrationId: string;
|
|
3
|
+
templateNameValue: string;
|
|
4
|
+
loadingBroadcast: boolean;
|
|
5
|
+
total: number;
|
|
6
|
+
delivered: number;
|
|
7
|
+
read: number;
|
|
8
|
+
loadingDeliveryReport: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare const BroadcastAnalysisCards: ({ integrationId, templateNameValue, loadingBroadcast, total, delivered, read, loadingDeliveryReport, }: BroadcastAnalysisCardsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default BroadcastAnalysisCards;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface BroadcastAnalysisChartsProps {
|
|
2
|
+
loadingDeliveryReport: boolean;
|
|
3
|
+
total: number;
|
|
4
|
+
delivered: number;
|
|
5
|
+
failed: number;
|
|
6
|
+
read: number;
|
|
7
|
+
sent: number;
|
|
8
|
+
pending: number;
|
|
9
|
+
}
|
|
10
|
+
declare const BroadcastAnalysisCharts: ({ loadingDeliveryReport, total, delivered, failed, read, sent, pending, }: BroadcastAnalysisChartsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default BroadcastAnalysisCharts;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface BroadcastAnalysisContentProps {
|
|
2
|
+
integrationId: string;
|
|
3
|
+
templateNameValue: string;
|
|
4
|
+
loadingBroadcast: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare const BroadcastAnalysisContent: ({ integrationId, templateNameValue, loadingBroadcast, }: BroadcastAnalysisContentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BroadcastAnalysisContent;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
interface BroadcastAnalysisEngagementFunnelProps {
|
|
2
|
+
loadingDeliveryReport: boolean;
|
|
3
|
+
sentMessages: number;
|
|
4
|
+
deliveredMessages: number;
|
|
5
|
+
readMessages: number;
|
|
6
|
+
}
|
|
7
|
+
declare const BroadcastAnalysisEngagementFunnel: ({ loadingDeliveryReport, sentMessages, deliveredMessages, readMessages, }: BroadcastAnalysisEngagementFunnelProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default BroadcastAnalysisEngagementFunnel;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface BroadcastAnalysisMessageStatusChartProps {
|
|
2
|
+
loadingDeliveryReport: boolean;
|
|
3
|
+
total: number;
|
|
4
|
+
delivered: number;
|
|
5
|
+
read: number;
|
|
6
|
+
sent: number;
|
|
7
|
+
failed: number;
|
|
8
|
+
pending: number;
|
|
9
|
+
}
|
|
10
|
+
declare const BroadcastAnalysisMessageStatusChart: ({ loadingDeliveryReport, total, delivered, read, sent, failed, pending, }: BroadcastAnalysisMessageStatusChartProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default BroadcastAnalysisMessageStatusChart;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BroadcastState, Tag } from '../../../graphql.autogenerated';
|
|
3
|
+
interface BroadcastAnalysisReciepientsHeaderProps {
|
|
4
|
+
setSearchQuery: (query: string) => void;
|
|
5
|
+
searchQuery: string;
|
|
6
|
+
selectedCountry: string | undefined;
|
|
7
|
+
setSelectedCountry: (country: string | undefined) => void;
|
|
8
|
+
selectedStage: string | undefined;
|
|
9
|
+
setSelectedStage: (stage: string | undefined) => void;
|
|
10
|
+
selectedState: BroadcastState | undefined;
|
|
11
|
+
setSelectedState: (state: BroadcastState | undefined) => void;
|
|
12
|
+
clientStages: Tag[];
|
|
13
|
+
}
|
|
14
|
+
declare const _default: React.MemoExoticComponent<({ setSearchQuery, searchQuery, selectedCountry, setSelectedCountry, selectedStage, setSelectedStage, selectedState, setSelectedState, clientStages }: BroadcastAnalysisReciepientsHeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BroadcastMessageStatus, Tag } from '../../../graphql.autogenerated';
|
|
3
|
+
interface BroadcastAnalysisReciepientsTableProps {
|
|
4
|
+
reciepients: BroadcastMessageStatus[];
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
hasMore?: boolean;
|
|
7
|
+
onLoadMore?: () => void;
|
|
8
|
+
loadingMore?: boolean;
|
|
9
|
+
clientStages: Tag[];
|
|
10
|
+
}
|
|
11
|
+
declare const _default: React.MemoExoticComponent<({ reciepients, loading, hasMore, onLoadMore, loadingMore, clientStages, }: BroadcastAnalysisReciepientsTableProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
12
|
+
export default _default;
|
|
@@ -6,6 +6,11 @@ interface BroadcastDetailsSectionProps {
|
|
|
6
6
|
loadingTemplates: boolean;
|
|
7
7
|
integrationsData: any;
|
|
8
8
|
loadingIntegrations: boolean;
|
|
9
|
+
parameterValues: Record<string, string>;
|
|
10
|
+
onParameterChange: (key: string, value: string) => void;
|
|
11
|
+
loadingTemplateDetails?: boolean;
|
|
12
|
+
requiredParameters?: string[];
|
|
13
|
+
components?: any[];
|
|
9
14
|
}
|
|
10
|
-
declare const _default: React.MemoExoticComponent<({ renderField, renderDroplistField, templatesData, loadingTemplates, integrationsData, loadingIntegrations, }: BroadcastDetailsSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
15
|
+
declare const _default: React.MemoExoticComponent<({ renderField, renderDroplistField, templatesData, loadingTemplates, integrationsData, loadingIntegrations, parameterValues, onParameterChange, loadingTemplateDetails, requiredParameters, components, }: BroadcastDetailsSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
11
16
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface BroadcastEstimitedCostProps {
|
|
2
3
|
wabaTemplateCategory?: string;
|
|
3
4
|
clientsCount?: number;
|
|
4
5
|
}
|
|
5
|
-
declare const
|
|
6
|
-
export default
|
|
6
|
+
declare const _default: React.MemoExoticComponent<({ wabaTemplateCategory, clientsCount }: BroadcastEstimitedCostProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WabaMessageTemplateDetailsQuery } from '../../../graphql.autogenerated';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface BroadcastInfoTemplateMessagePreview {
|
|
4
|
+
templateName: string;
|
|
5
|
+
templateDetailsData?: WabaMessageTemplateDetailsQuery['wabaMessageTemplateDetails'];
|
|
6
|
+
parameterValues?: Record<string, string>;
|
|
7
|
+
loadingTemplateDetails?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const BroadcastInfoTemplateMessagePreview: ({ templateName, templateDetailsData, parameterValues, loadingTemplateDetails, }: BroadcastInfoTemplateMessagePreview) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const _default: React.MemoExoticComponent<({ templateName, templateDetailsData, parameterValues, loadingTemplateDetails, }: BroadcastInfoTemplateMessagePreview) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
11
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Broadcast } from '../../../graphql.autogenerated';
|
|
2
3
|
interface BroadcastListTableProps {
|
|
3
4
|
broadcasts: Broadcast[];
|
|
@@ -10,5 +11,12 @@ interface BroadcastListTableProps {
|
|
|
10
11
|
removeItem: (id: string) => void;
|
|
11
12
|
updateItem: (id: string, updates: Partial<Broadcast>) => void;
|
|
12
13
|
}
|
|
13
|
-
declare const
|
|
14
|
+
export declare const StatusBadge: import("@emotion/styled").StyledComponent<{
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: React.ElementType<any, keyof React.JSX.IntrinsicElements> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
color: string;
|
|
19
|
+
backgroundColor: string;
|
|
20
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
21
|
+
declare const BroadcastListTable: React.MemoExoticComponent<({ broadcasts, onEdit, loading, hasMore, onLoadMore, loadingMore, refetchAll, removeItem, updateItem, }: BroadcastListTableProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
14
22
|
export default BroadcastListTable;
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { SerializedStyles } from '@emotion/react';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
interface BroadcastSectionCardProps {
|
|
3
4
|
title?: string;
|
|
4
5
|
subtitle?: string;
|
|
5
6
|
columns?: number;
|
|
7
|
+
containerCss?: SerializedStyles;
|
|
8
|
+
titleCss?: SerializedStyles;
|
|
9
|
+
subTitleCss?: SerializedStyles;
|
|
10
|
+
noContentContainer?: boolean;
|
|
6
11
|
children: React.ReactNode;
|
|
7
12
|
}
|
|
8
|
-
declare const _default: React.MemoExoticComponent<({ title, subtitle, columns, children }: BroadcastSectionCardProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
13
|
+
declare const _default: React.MemoExoticComponent<({ title, subtitle, columns, containerCss, titleCss, subTitleCss, noContentContainer, children, }: BroadcastSectionCardProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
9
14
|
export default _default;
|
|
@@ -6,6 +6,7 @@ interface EmptyBroadcastListProps {
|
|
|
6
6
|
emptySubtitle?: string;
|
|
7
7
|
containerCss?: SerializedStyles;
|
|
8
8
|
imageCss?: SerializedStyles;
|
|
9
|
+
subTitleCss?: SerializedStyles;
|
|
9
10
|
}
|
|
10
|
-
declare const EmptyBroadcastList: ({ handleNewBroadcastClick, hasFilters, emptyTitle, emptySubtitle, containerCss, imageCss, }: EmptyBroadcastListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const EmptyBroadcastList: ({ handleNewBroadcastClick, hasFilters, emptyTitle, emptySubtitle, containerCss, imageCss, subTitleCss, }: EmptyBroadcastListProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
11
12
|
export default EmptyBroadcastList;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MessageComponent {
|
|
3
|
+
type: 'HEADER' | 'BODY' | 'BUTTONS' | 'FOOTER';
|
|
4
|
+
format?: 'TEXT';
|
|
5
|
+
text?: string;
|
|
6
|
+
buttons?: Array<{
|
|
7
|
+
type: string;
|
|
8
|
+
text: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
interface MessagePreviewProps {
|
|
12
|
+
components: MessageComponent[];
|
|
13
|
+
parameterValues?: Record<string, string>;
|
|
14
|
+
timestamp?: string;
|
|
15
|
+
dateLabel?: string;
|
|
16
|
+
contactName?: string;
|
|
17
|
+
contactSubtitle?: string;
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
showHeader?: boolean;
|
|
20
|
+
showDate?: boolean;
|
|
21
|
+
minHeight?: number;
|
|
22
|
+
}
|
|
23
|
+
declare const _default: React.MemoExoticComponent<({ components, parameterValues, timestamp, dateLabel, contactName, contactSubtitle, loading, showHeader, showDate, minHeight, }: MessagePreviewProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
24
|
+
export default _default;
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SerializedStyles } from '@emotion/react';
|
|
2
3
|
interface StatisticsCardProps {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
bottomLabel?: string;
|
|
5
|
+
upperLabel?: string;
|
|
6
|
+
value?: number | string;
|
|
5
7
|
icon?: React.ReactNode;
|
|
6
8
|
loading?: boolean;
|
|
9
|
+
containerStyle?: SerializedStyles;
|
|
10
|
+
contentStyle?: SerializedStyles;
|
|
7
11
|
}
|
|
8
|
-
declare const StatisticsCard: ({
|
|
12
|
+
declare const StatisticsCard: ({ bottomLabel, upperLabel, value, icon, loading, containerStyle, contentStyle, }: StatisticsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
9
13
|
export default StatisticsCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Client } from '../../../graphql.autogenerated';
|
|
2
|
-
import { ResourceDefinition } from '
|
|
2
|
+
import { ResourceDefinition } from '../../managemnet/config/types';
|
|
3
3
|
declare const contactDefinition: ResourceDefinition<Client>;
|
|
4
4
|
export default contactDefinition;
|
|
@@ -11,18 +11,6 @@ export declare enum FormFields {
|
|
|
11
11
|
defaultAgentId = "defaultAgentId"
|
|
12
12
|
}
|
|
13
13
|
export declare const FORM_INIT: {
|
|
14
|
-
name: {
|
|
15
|
-
value: string;
|
|
16
|
-
validations: {
|
|
17
|
-
validationType: BCValidationTypes;
|
|
18
|
-
}[];
|
|
19
|
-
};
|
|
20
|
-
surname: {
|
|
21
|
-
value: string;
|
|
22
|
-
validations: {
|
|
23
|
-
validationType: BCValidationTypes;
|
|
24
|
-
}[];
|
|
25
|
-
};
|
|
26
14
|
email: {
|
|
27
15
|
value: string;
|
|
28
16
|
validations: {
|
|
@@ -35,22 +23,4 @@ export declare const FORM_INIT: {
|
|
|
35
23
|
validationType: BCValidationTypes;
|
|
36
24
|
}[];
|
|
37
25
|
};
|
|
38
|
-
address: {
|
|
39
|
-
value: string;
|
|
40
|
-
validations: {
|
|
41
|
-
validationType: BCValidationTypes;
|
|
42
|
-
}[];
|
|
43
|
-
};
|
|
44
|
-
country: {
|
|
45
|
-
value: string;
|
|
46
|
-
validations: {
|
|
47
|
-
validationType: BCValidationTypes;
|
|
48
|
-
}[];
|
|
49
|
-
};
|
|
50
|
-
city: {
|
|
51
|
-
value: string;
|
|
52
|
-
validations: {
|
|
53
|
-
validationType: BCValidationTypes;
|
|
54
|
-
}[];
|
|
55
|
-
};
|
|
56
26
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { Tag } from '../../../graphql.autogenerated';
|
|
2
|
-
import { ResourceDefinition } from '
|
|
2
|
+
import { ResourceDefinition } from '../../managemnet/config/types';
|
|
3
3
|
declare const contactLifeCycleDefinition: ResourceDefinition<Tag>;
|
|
4
4
|
export default contactLifeCycleDefinition;
|
|
@@ -12,6 +12,7 @@ export declare const ModalTitle: import("@emotion/styled").StyledComponent<{
|
|
|
12
12
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, {}>;
|
|
14
14
|
export declare const CreateResourceStyleModal: import("@emotion/react").SerializedStyles;
|
|
15
|
+
export declare const CreateResourceStyleModalFullWidth: import("@emotion/react").SerializedStyles;
|
|
15
16
|
export declare const ResourceTitle: import("@emotion/styled").StyledComponent<{
|
|
16
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
18
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface TemplateParameterInputsProps {
|
|
3
|
+
parameters: string[];
|
|
4
|
+
parameterValues: Record<string, string>;
|
|
5
|
+
onParameterChange: (key: string, value: string) => void;
|
|
6
|
+
loading?: boolean;
|
|
7
|
+
components?: any[];
|
|
8
|
+
}
|
|
9
|
+
declare const _default: React.MemoExoticComponent<({ parameters, parameterValues, onParameterChange, loading, components, }: TemplateParameterInputsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
10
|
+
export default _default;
|
|
@@ -35,6 +35,6 @@ export interface UsePaginatedQueryResult<T> {
|
|
|
35
35
|
loadingMore: boolean;
|
|
36
36
|
removeItem: (id: string) => void;
|
|
37
37
|
updateItem: (id: string, updates: Partial<T>) => void;
|
|
38
|
-
count: number;
|
|
38
|
+
count: number | undefined;
|
|
39
39
|
}
|
|
40
40
|
export declare const usePaginatedQuery: <T = any>(config: QueryConfig, options?: PaginationOptions) => UsePaginatedQueryResult<T>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface UseWhatsAppTemplateProps {
|
|
3
|
+
integrationId?: string;
|
|
4
|
+
templateName?: string;
|
|
5
|
+
templateId?: string;
|
|
6
|
+
templatesData?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const useWhatsAppTemplate: ({ integrationId, templateName, templatesData }: UseWhatsAppTemplateProps) => {
|
|
9
|
+
templateDetailsData: import("../../../graphql.autogenerated").WabaMessageTemplateDetailsQuery | undefined;
|
|
10
|
+
loadingTemplateDetails: boolean;
|
|
11
|
+
parameterValues: Record<string, string>;
|
|
12
|
+
setParameterValues: import("react").Dispatch<import("react").SetStateAction<Record<string, string>>>;
|
|
13
|
+
onParameterChange: (key: string, value: string) => void;
|
|
14
|
+
requiredParameters: string[];
|
|
15
|
+
areAllParametersFilled: boolean;
|
|
16
|
+
wabaTemplate: any;
|
|
17
|
+
components: any;
|
|
18
|
+
setInitialParameters: (savedComponents: any[]) => void;
|
|
19
|
+
getSubmissionComponents: () => any[];
|
|
20
|
+
};
|
|
21
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Message, MessageType } from '../../../../graphql.autogenerated';
|
|
2
|
+
interface ChatContentProps {
|
|
3
|
+
messages: Message[];
|
|
4
|
+
olderMessages?: Message[];
|
|
5
|
+
msgsLoading: boolean;
|
|
6
|
+
canContribute: boolean;
|
|
7
|
+
onConvEnd?: () => void;
|
|
8
|
+
sendMessage: (type: MessageType, content: string) => Promise<void>;
|
|
9
|
+
loadOlderMessages: () => void;
|
|
10
|
+
agentsIdsAvatarsMap: Record<string, string>;
|
|
11
|
+
noteMode: boolean;
|
|
12
|
+
onNoteSend: (note: string) => Promise<void>;
|
|
13
|
+
onCloseNoteMode: () => void;
|
|
14
|
+
onAddNoteClick: () => void;
|
|
15
|
+
searchPattern: string;
|
|
16
|
+
searchMatchNo: number;
|
|
17
|
+
onSearchMatchCount: (count: number) => void;
|
|
18
|
+
onMessageReply: (messageId: string) => void;
|
|
19
|
+
replyMessage: {
|
|
20
|
+
title: string;
|
|
21
|
+
content: string;
|
|
22
|
+
id: string;
|
|
23
|
+
} | null;
|
|
24
|
+
onCancelReplyMessage: () => void;
|
|
25
|
+
errorMessage: string;
|
|
26
|
+
logo?: string;
|
|
27
|
+
conversationId?: string;
|
|
28
|
+
}
|
|
29
|
+
declare const ChatContent: ({ messages, olderMessages, msgsLoading, canContribute, onConvEnd, sendMessage, loadOlderMessages, agentsIdsAvatarsMap, noteMode, onNoteSend, onCloseNoteMode, onAddNoteClick, searchPattern, searchMatchNo, onSearchMatchCount, onMessageReply, replyMessage, onCancelReplyMessage, errorMessage, logo, conversationId, }: ChatContentProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
30
|
+
export default ChatContent;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ActionItem } from '@bcrumbs.net/bc-ui';
|
|
2
2
|
import { ConvsFilters } from '../../utils/convs';
|
|
3
|
-
import { Agent, Tag } from '../../../../graphql.autogenerated';
|
|
3
|
+
import { Agent, Ai, Tag } from '../../../../graphql.autogenerated';
|
|
4
4
|
interface HeaderSectionProps {
|
|
5
5
|
agentsMenu: ActionItem[];
|
|
6
6
|
lifeCycleMenu: ActionItem[];
|
|
@@ -10,6 +10,7 @@ interface HeaderSectionProps {
|
|
|
10
10
|
myAgent: Agent | undefined;
|
|
11
11
|
onFiltersChange: (filters: ConvsFilters) => void;
|
|
12
12
|
setShowStartConv: (show: boolean) => void;
|
|
13
|
+
crumbyAi?: Ai;
|
|
13
14
|
}
|
|
14
|
-
declare const HeaderSection: ({ agentsMenu, lifeCycleMenu, filters, agents, convStages, myAgent, onFiltersChange, setShowStartConv, }: HeaderSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
|
+
declare const HeaderSection: ({ agentsMenu, lifeCycleMenu, filters, agents, convStages, myAgent, onFiltersChange, setShowStartConv, crumbyAi, }: HeaderSectionProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
15
16
|
export default HeaderSection;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WabaMessageTemplateDetailsQuery } from '../../../../graphql.autogenerated';
|
|
3
|
+
interface InboxTemplateMessagePreviewProps {
|
|
4
|
+
templateName?: string;
|
|
5
|
+
templateDetailsData?: WabaMessageTemplateDetailsQuery['wabaMessageTemplateDetails'];
|
|
6
|
+
parameterValues?: Record<string, string>;
|
|
7
|
+
loadingTemplateDetails?: boolean;
|
|
8
|
+
showHeader?: boolean;
|
|
9
|
+
showDate?: boolean;
|
|
10
|
+
minHeight?: number;
|
|
11
|
+
}
|
|
12
|
+
declare const _default: React.MemoExoticComponent<({ templateName, templateDetailsData, parameterValues, loadingTemplateDetails, showHeader, showDate, minHeight, }: InboxTemplateMessagePreviewProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export interface SummaryPopupProps {
|
|
2
|
+
onClose: () => void;
|
|
3
|
+
summary: string | null;
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
isOpen: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare function SummaryPopup({ onClose, summary, isLoading, isOpen }: SummaryPopupProps): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Agent, Conversation } from '../../../graphql.autogenerated';
|
|
2
2
|
interface Props {
|
|
3
|
-
agents?: Agent[];
|
|
4
3
|
hasAdminOrOwnerRole?: boolean;
|
|
5
4
|
selectedConv?: Conversation;
|
|
5
|
+
myAgent?: Agent;
|
|
6
6
|
}
|
|
7
|
-
declare const useCanContribute: ({
|
|
7
|
+
declare const useCanContribute: ({ hasAdminOrOwnerRole, selectedConv, myAgent }: Props) => boolean;
|
|
8
8
|
export default useCanContribute;
|
|
@@ -3,7 +3,7 @@ import { ActionItem } from '@bcrumbs.net/bc-ui';
|
|
|
3
3
|
interface ConvActionsProps {
|
|
4
4
|
conv?: Conversation;
|
|
5
5
|
handleChangeStage?: (conv: Conversation, stage: string) => Promise<void>;
|
|
6
|
-
handleAssignAgent?: (conv: Conversation, agentId: string, isAi?: boolean) => Promise<void>;
|
|
6
|
+
handleAssignAgent?: (conv: Conversation, agentId: string | null, isAi?: boolean) => Promise<void>;
|
|
7
7
|
agents: Agent[];
|
|
8
8
|
convStages: Tag[];
|
|
9
9
|
myAgent: Agent | undefined;
|