@bcrumbs.net/inbox 0.0.58 → 0.0.59
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/{cb9c022b3cf80e0f.svg → 2998ffe42c3436c0.svg} +43 -43
- package/{594c01a9720e0657.svg → 396ba1d86a9997b1.svg} +42 -42
- package/assets/ar/inbox.json +268 -268
- package/assets/en/inbox.json +270 -270
- package/index.cjs.d.ts +1 -1
- package/index.cjs.js +9159 -9314
- package/index.esm.d.ts +1 -1
- package/index.esm.js +9162 -9317
- package/package.json +3 -3
- package/src/app/broadcast/utils/helper.d.ts +2 -1
- package/src/app/dashboard/components/DashboardSections.d.ts +6 -2
- package/src/app/dashboard/components/OpenedChatsCard.d.ts +2 -1
- package/src/app/dashboard/components/TagPerformanceCard.d.ts +8 -0
- package/src/app/dashboard/utils/dateHelpers.d.ts +3 -0
- package/src/app/inbox/components/Chat/ChatContent.d.ts +1 -0
- package/src/app/inbox/components/Shared/SharedStyle.d.ts +0 -6
- package/src/app/inbox/hooks/useCanContribute.d.ts +3 -2
- package/src/app/resources/components/Integrations/Facebook/PagePickerPopup.d.ts +1 -2
- package/src/app/resources/components/Integrations/Facebook/index.d.ts +3 -1
- package/src/app/resources/components/ListResources/Utils.d.ts +0 -1
- package/src/app/resources/hooks/useFBPagesHook.d.ts +1 -0
- package/src/app/subscriptions/components/SubscriptionSettings/SubscriptionUsers.d.ts +1 -1
- package/src/assets/locales/translations.d.ts +25 -0
- package/src/graphql.autogenerated.d.ts +146 -1
- package/src/graphql.billing.autogenerated.d.ts +169 -0
- package/src/utils/zohoOAuth.d.ts +16 -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.59",
|
|
5
5
|
"keyword": [
|
|
6
6
|
"bcrumbs",
|
|
7
7
|
"bc-ui",
|
|
@@ -24,8 +24,8 @@
|
|
|
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.
|
|
27
|
+
"@bcrumbs.net/bc-shared": "^0.0.10",
|
|
28
|
+
"@bcrumbs.net/bc-ui": "^0.0.15",
|
|
29
29
|
"@bcrumbs.net/bc-api": "^0.0.47",
|
|
30
30
|
"@azure/storage-blob": "^12.25.0"
|
|
31
31
|
},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const formatLocalizedDate: (date: string | null | undefined, locale?: string) => string;
|
|
2
|
+
export declare const fullDateTimeFormat: (date: string | null | undefined, locale?: string) => string;
|
|
2
3
|
/**
|
|
3
4
|
* Template sends store `content` as JSON: `{ name, language: { code }, components }`.
|
|
4
5
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Agent, AgentsReportQuery, ConvsReportQuery, Conversation } from '../../../graphql.autogenerated';
|
|
1
|
+
import { Agent, AgentsReportQuery, ConvTagsReportQuery, ConvsReportQuery, Conversation } from '../../../graphql.autogenerated';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
type AgentReportNode = NonNullable<AgentsReportQuery['agentsReport']['nodes']>[number];
|
|
4
|
+
type ConvTagReportNode = NonNullable<ConvTagsReportQuery['convTagsReport']['nodes']>[number];
|
|
4
5
|
type ConvReportNode = NonNullable<ConvsReportQuery['convsReport']['nodes']>[number];
|
|
5
6
|
type ReportNode = AgentReportNode | ConvReportNode;
|
|
6
7
|
interface DashboardSectionsProps {
|
|
@@ -9,6 +10,8 @@ interface DashboardSectionsProps {
|
|
|
9
10
|
agentsReportData?: AgentReportNode[];
|
|
10
11
|
agentsLoading?: boolean;
|
|
11
12
|
agentsReportLoading?: boolean;
|
|
13
|
+
convTagsReportData?: ConvTagReportNode[];
|
|
14
|
+
convTagsReportLoading?: boolean;
|
|
12
15
|
totalMessages?: number;
|
|
13
16
|
convsLoading?: boolean;
|
|
14
17
|
integrationId?: string;
|
|
@@ -18,7 +21,8 @@ interface DashboardSectionsProps {
|
|
|
18
21
|
liveConvs?: Conversation[] | null;
|
|
19
22
|
startDate: string;
|
|
20
23
|
endDate: string;
|
|
24
|
+
selectedPeriod: string;
|
|
21
25
|
reportNodes: ReportNode[];
|
|
22
26
|
}
|
|
23
|
-
declare const _default: React.MemoExoticComponent<({ agentsData, allAgentsData, agentsReportData, agentsLoading, agentsReportLoading, totalMessages, convsLoading, integrationId, agentIds, assignedConversations, unassignedConversations, liveConvs, startDate, endDate, reportNodes, }: DashboardSectionsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
27
|
+
declare const _default: React.MemoExoticComponent<({ agentsData, allAgentsData, agentsReportData, agentsLoading, agentsReportLoading, convTagsReportData, convTagsReportLoading, totalMessages, convsLoading, integrationId, agentIds, assignedConversations, unassignedConversations, liveConvs, startDate, endDate, selectedPeriod, reportNodes, }: DashboardSectionsProps) => import("@emotion/react/jsx-runtime").JSX.Element>;
|
|
24
28
|
export default _default;
|
|
@@ -2,7 +2,8 @@ export interface AllChatsCardProps {
|
|
|
2
2
|
totalMessages?: number;
|
|
3
3
|
assignedConversations?: number;
|
|
4
4
|
unassignedConversations?: number;
|
|
5
|
+
selectedPeriod?: string;
|
|
5
6
|
loading?: boolean;
|
|
6
7
|
}
|
|
7
|
-
declare const OpenedChatsCard: ({ totalMessages, assignedConversations, unassignedConversations, loading, }: AllChatsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare const OpenedChatsCard: ({ totalMessages, assignedConversations, unassignedConversations, selectedPeriod, loading, }: AllChatsCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default OpenedChatsCard;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ConvTagsReportQuery } from '../../../graphql.autogenerated';
|
|
2
|
+
type ConvTagReportNode = NonNullable<ConvTagsReportQuery['convTagsReport']['nodes']>[number];
|
|
3
|
+
interface TagPerformanceCardProps {
|
|
4
|
+
data?: ConvTagReportNode[];
|
|
5
|
+
loading?: boolean;
|
|
6
|
+
}
|
|
7
|
+
declare const TagPerformanceCard: ({ data, loading }: TagPerformanceCardProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TagPerformanceCard;
|
|
@@ -21,4 +21,7 @@ export declare const getBroadcastReportQueryDateRange: (period?: string) => {
|
|
|
21
21
|
startDate?: string;
|
|
22
22
|
endDate?: string;
|
|
23
23
|
};
|
|
24
|
+
export declare const PERIOD_TRANSLATION_KEYS: Record<string, string>;
|
|
25
|
+
export declare const getPeriodTranslationKey: (period: string) => string;
|
|
26
|
+
export declare const isDateInRange: (date: string | Date, startDate: string, endDate: string) => boolean;
|
|
24
27
|
export declare const formatTime: (seconds: number) => string;
|
|
@@ -13,12 +13,6 @@ export declare const DetailsSectionLabel: import("@emotion/styled").StyledCompon
|
|
|
13
13
|
export declare const EditButton: import("@emotion/styled").StyledComponent<import("@bcrumbs.net/bc-ui").ButtonProps & import("react").RefAttributes<HTMLButtonElement> & {
|
|
14
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
15
|
}, {}, {}>;
|
|
16
|
-
export declare const TagContainer: import("@emotion/styled").StyledComponent<{
|
|
17
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
$isMobile?: boolean | undefined;
|
|
21
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
16
|
export declare const ClientDetailsContainer: import("@emotion/styled").StyledComponent<{
|
|
23
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
24
18
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { Role } from '@bcrumbs.net/bc-shared';
|
|
1
2
|
import { Agent, Conversation } from '../../../graphql.autogenerated';
|
|
2
3
|
interface Props {
|
|
3
|
-
|
|
4
|
+
role?: Role;
|
|
4
5
|
selectedConv?: Conversation;
|
|
5
6
|
myAgent?: Agent;
|
|
6
7
|
userType?: string;
|
|
7
8
|
}
|
|
8
|
-
declare const useCanContribute: ({
|
|
9
|
+
declare const useCanContribute: ({ role, selectedConv, myAgent, userType }: Props) => boolean;
|
|
9
10
|
export default useCanContribute;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { IntegrationWithSecrets } from '../../../../../graphql.autogenerated';
|
|
2
2
|
import { FBPage } from '../../../hooks/useFBPagesHook';
|
|
3
|
-
export declare function PagePickerPopup({ onClose, setInitialValues,
|
|
3
|
+
export declare function PagePickerPopup({ onClose, setInitialValues, pages, rtl, }: {
|
|
4
4
|
onClose: () => void;
|
|
5
5
|
setInitialValues: (initialResource: Partial<IntegrationWithSecrets>) => void;
|
|
6
|
-
token?: string;
|
|
7
6
|
pages: FBPage[];
|
|
8
7
|
rtl?: boolean;
|
|
9
8
|
}): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -4,7 +4,9 @@ import { IntegrationFlowComponentProps } from '../types';
|
|
|
4
4
|
import { ChannelFlowExtendedProps } from '../RenderCorrectIntegrationFlow';
|
|
5
5
|
type Props = IntegrationFlowComponentProps<IntegrationWithSecrets> & ChannelFlowExtendedProps;
|
|
6
6
|
export declare const FacebookMessanger: React.FC<Props>;
|
|
7
|
-
export declare const FacebookMessangerReconnect: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets
|
|
7
|
+
export declare const FacebookMessangerReconnect: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets> & {
|
|
8
|
+
pageId?: string;
|
|
9
|
+
}>;
|
|
8
10
|
export declare const InstaMessanger: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
|
|
9
11
|
export declare const InstaMessangerReconnect: React.FC<IntegrationFlowComponentProps<IntegrationWithSecrets>>;
|
|
10
12
|
export {};
|
|
@@ -4,7 +4,7 @@ type SubscriptionProfileRouteProps = {
|
|
|
4
4
|
users: any[];
|
|
5
5
|
refetchUsers: any;
|
|
6
6
|
loadingUsers: boolean;
|
|
7
|
-
inviteUser: (companyId: number,
|
|
7
|
+
inviteUser: (companyId: number, Email: string, actorEmail: string) => Promise<unknown>;
|
|
8
8
|
removeUserFromCompany: (companyId: number, userId: string) => Promise<unknown>;
|
|
9
9
|
};
|
|
10
10
|
export declare const SubscriptionUsers: (props: SubscriptionProfileRouteProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -120,6 +120,18 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
120
120
|
sessionNotFound: string;
|
|
121
121
|
subscriptionUpdated: string;
|
|
122
122
|
subscriptionVerified: string;
|
|
123
|
+
purchaseConfirmed: string;
|
|
124
|
+
purchaseConfirmedDescription: string;
|
|
125
|
+
purchaseConfirmedWithPlan: string;
|
|
126
|
+
planName: string;
|
|
127
|
+
billingInterval: string;
|
|
128
|
+
nextRenewalDate: string;
|
|
129
|
+
createFirstChannel: string;
|
|
130
|
+
goToInbox: string;
|
|
131
|
+
manageSubscription: string;
|
|
132
|
+
helpAlert: string;
|
|
133
|
+
helpAlertWhatsApp: string;
|
|
134
|
+
channelGuideTitle: string;
|
|
123
135
|
subscriptionCancelled: string;
|
|
124
136
|
subscriptionCancelledDescription: string;
|
|
125
137
|
backToInbox: string;
|
|
@@ -193,7 +205,13 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
193
205
|
workspaceIdCopyFailed: string;
|
|
194
206
|
copyWorkspaceId: string;
|
|
195
207
|
upgradePlan: string;
|
|
208
|
+
planUpdatedSuccessfully: string;
|
|
196
209
|
cancelSubscription: string;
|
|
210
|
+
cancelSubscriptionConfirmTitle: string;
|
|
211
|
+
cancelSubscriptionConfirmDescription: string;
|
|
212
|
+
subscriptionCanceledSuccessfully: string;
|
|
213
|
+
subscriptionReactivatedSuccessfully: string;
|
|
214
|
+
reactivateSubscription: string;
|
|
197
215
|
activePlan: string;
|
|
198
216
|
cancelledBadge: string;
|
|
199
217
|
currentCycleEnd: string;
|
|
@@ -592,6 +610,7 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
592
610
|
agentPerformance: string;
|
|
593
611
|
agents: string;
|
|
594
612
|
openedChats: string;
|
|
613
|
+
openedChatsForPeriod: string;
|
|
595
614
|
agent: string;
|
|
596
615
|
messagesSent: string;
|
|
597
616
|
messagesReceived: string;
|
|
@@ -613,6 +632,9 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
613
632
|
last14Days: string;
|
|
614
633
|
last30Days: string;
|
|
615
634
|
agentPerformanceTooltip: string;
|
|
635
|
+
tagPerformance: string;
|
|
636
|
+
tag: string;
|
|
637
|
+
tagPerformanceTooltip: string;
|
|
616
638
|
selectAll: string;
|
|
617
639
|
clearAll: string;
|
|
618
640
|
reports: string;
|
|
@@ -980,6 +1002,9 @@ export declare const convertLanguageJsonToObject: (json: any, objToConvertTo?: C
|
|
|
980
1002
|
integrationNamePlaceholder: string;
|
|
981
1003
|
token: string;
|
|
982
1004
|
tokenPlaceholder: string;
|
|
1005
|
+
authorizationCode: string;
|
|
1006
|
+
authorizationCodePlaceholder: string;
|
|
1007
|
+
zohoInvalidCode: string;
|
|
983
1008
|
urlHeader: string;
|
|
984
1009
|
urlHeaderPlaceholder: string;
|
|
985
1010
|
clientId: string;
|
|
@@ -1192,6 +1192,57 @@ export type ConvTagInput = {
|
|
|
1192
1192
|
tag: Scalars['String']['input'];
|
|
1193
1193
|
workspaceId: Scalars['Int']['input'];
|
|
1194
1194
|
};
|
|
1195
|
+
/** ConvTagReport is a report of conversations breaked down by tag per day. It is used to understand tag performance. */
|
|
1196
|
+
export type ConvTagReport = {
|
|
1197
|
+
__typename?: 'ConvTagReport';
|
|
1198
|
+
/** The number of messages sent by the agents. */
|
|
1199
|
+
agentMessagesCount: Scalars['Int']['output'];
|
|
1200
|
+
/** The average rating for rated conversations. */
|
|
1201
|
+
averageRating: Scalars['Float']['output'];
|
|
1202
|
+
/** The average time of the conversation. */
|
|
1203
|
+
avgConversationTime: Scalars['Int']['output'];
|
|
1204
|
+
/** The average time to first response. */
|
|
1205
|
+
avgFirstResponseTime: Scalars['Int']['output'];
|
|
1206
|
+
/** The number of messages sent by the clients. */
|
|
1207
|
+
clientMessageCount: Scalars['Int']['output'];
|
|
1208
|
+
/** The number of conversations with this tag. */
|
|
1209
|
+
conversationCount: Scalars['Int']['output'];
|
|
1210
|
+
/** The date and time when the tag report was created. */
|
|
1211
|
+
createdAt: Scalars['DateTime']['output'];
|
|
1212
|
+
/** The CSAT percentage (4 and 5 ratings over rated conversations). */
|
|
1213
|
+
csat: Scalars['Float']['output'];
|
|
1214
|
+
/** Conversations included in avgFirstResponseTime (client messaged before the agent replied). */
|
|
1215
|
+
firstResponseConversationCount: Scalars['Int']['output'];
|
|
1216
|
+
id: Scalars['ID']['output'];
|
|
1217
|
+
/** The integration (channel) id. */
|
|
1218
|
+
integrationId: Scalars['ID']['output'];
|
|
1219
|
+
/** The number of new client conversations. */
|
|
1220
|
+
newClientConvCount?: Maybe<Scalars['Int']['output']>;
|
|
1221
|
+
/** The percentage of conversations that received a rating. */
|
|
1222
|
+
responseRate: Scalars['Float']['output'];
|
|
1223
|
+
/** The tag name. */
|
|
1224
|
+
tag: Scalars['String']['output'];
|
|
1225
|
+
workspaceId: Scalars['Int']['output'];
|
|
1226
|
+
};
|
|
1227
|
+
/** ConvTagsReportInput is an input of the conversation tags report query. */
|
|
1228
|
+
export type ConvTagsReportInput = {
|
|
1229
|
+
/** The end date of the report. */
|
|
1230
|
+
endDate: Scalars['DateTime']['input'];
|
|
1231
|
+
/** The integration/channel id of the conversation. */
|
|
1232
|
+
integrationId?: InputMaybe<Scalars['ID']['input']>;
|
|
1233
|
+
/** The start date of the report. */
|
|
1234
|
+
startDate: Scalars['DateTime']['input'];
|
|
1235
|
+
/** Filter by a single tag name. */
|
|
1236
|
+
tag?: InputMaybe<Scalars['String']['input']>;
|
|
1237
|
+
/** Filter by multiple tag names (OR). When non-empty, takes precedence over tag. */
|
|
1238
|
+
tags?: InputMaybe<Array<Scalars['String']['input']>>;
|
|
1239
|
+
workspaceId: Scalars['Int']['input'];
|
|
1240
|
+
};
|
|
1241
|
+
/** ConvTagsReportPayload is a payload of the conversation tags report query. */
|
|
1242
|
+
export type ConvTagsReportPayload = {
|
|
1243
|
+
__typename?: 'ConvTagsReportPayload';
|
|
1244
|
+
nodes?: Maybe<Array<ConvTagReport>>;
|
|
1245
|
+
};
|
|
1195
1246
|
/** Conversation is a type of the conversation. */
|
|
1196
1247
|
export type Conversation = {
|
|
1197
1248
|
__typename?: 'Conversation';
|
|
@@ -1600,6 +1651,8 @@ export type MediaType = typeof MediaType[keyof typeof MediaType];
|
|
|
1600
1651
|
/** Message is a type of the message. */
|
|
1601
1652
|
export type Message = {
|
|
1602
1653
|
__typename?: 'Message';
|
|
1654
|
+
/** When the message record was persisted in the database. Null for legacy rows. */
|
|
1655
|
+
addedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
1603
1656
|
/** The id of the agent that sent the message. */
|
|
1604
1657
|
agentId?: Maybe<Scalars['ID']['output']>;
|
|
1605
1658
|
/**
|
|
@@ -1609,7 +1662,7 @@ export type Message = {
|
|
|
1609
1662
|
content: Scalars['String']['output'];
|
|
1610
1663
|
/** The context of the message. */
|
|
1611
1664
|
context?: Maybe<MessageContext>;
|
|
1612
|
-
/**
|
|
1665
|
+
/** When the message was sent or received on the channel (e.g. WhatsApp timestamp). */
|
|
1613
1666
|
createdAt: Scalars['DateTime']['output'];
|
|
1614
1667
|
/** The external message id of the message. */
|
|
1615
1668
|
externalMessageId?: Maybe<Scalars['String']['output']>;
|
|
@@ -2257,6 +2310,8 @@ export type Query = {
|
|
|
2257
2310
|
convLastMessage?: Maybe<Message>;
|
|
2258
2311
|
/** Get an AI summary for conversation messages. */
|
|
2259
2312
|
convSummary: ConvAssistPayload;
|
|
2313
|
+
/** Get the conversation tags report. You should have the MANAGE_CONVS permission to get the tags report. */
|
|
2314
|
+
convTagsReport: ConvTagsReportPayload;
|
|
2260
2315
|
/** Get the conversations. If you don't have the MANAGE_CONVS permission, it will return only the conversations assigned to you. */
|
|
2261
2316
|
convs: ConvsPayload;
|
|
2262
2317
|
/** Get the conversations report. You should have the MANAGE_CONVS permission to get the conversations report. */
|
|
@@ -2372,6 +2427,9 @@ export type QueryConvLastMessageArgs = {
|
|
|
2372
2427
|
export type QueryConvSummaryArgs = {
|
|
2373
2428
|
input: ConvAssistInput;
|
|
2374
2429
|
};
|
|
2430
|
+
export type QueryConvTagsReportArgs = {
|
|
2431
|
+
input: ConvTagsReportInput;
|
|
2432
|
+
};
|
|
2375
2433
|
export type QueryConvsArgs = {
|
|
2376
2434
|
input: ConvsInput;
|
|
2377
2435
|
pageInfo?: InputMaybe<PageInfoInput>;
|
|
@@ -3877,6 +3935,24 @@ export type AgentReportFragment = {
|
|
|
3877
3935
|
csat: number;
|
|
3878
3936
|
createdAt: any;
|
|
3879
3937
|
};
|
|
3938
|
+
export type ConvTagReportFragment = {
|
|
3939
|
+
__typename?: 'ConvTagReport';
|
|
3940
|
+
workspaceId: number;
|
|
3941
|
+
id: string;
|
|
3942
|
+
tag: string;
|
|
3943
|
+
integrationId: string;
|
|
3944
|
+
conversationCount: number;
|
|
3945
|
+
agentMessagesCount: number;
|
|
3946
|
+
clientMessageCount: number;
|
|
3947
|
+
avgFirstResponseTime: number;
|
|
3948
|
+
firstResponseConversationCount: number;
|
|
3949
|
+
avgConversationTime: number;
|
|
3950
|
+
newClientConvCount?: number | null;
|
|
3951
|
+
responseRate: number;
|
|
3952
|
+
averageRating: number;
|
|
3953
|
+
csat: number;
|
|
3954
|
+
createdAt: any;
|
|
3955
|
+
};
|
|
3880
3956
|
export type ConversationReportFragment = {
|
|
3881
3957
|
__typename?: 'ConversationReport';
|
|
3882
3958
|
workspaceId: number;
|
|
@@ -3921,6 +3997,33 @@ export type AgentsReportQuery = {
|
|
|
3921
3997
|
}> | null;
|
|
3922
3998
|
};
|
|
3923
3999
|
};
|
|
4000
|
+
export type ConvTagsReportQueryVariables = Exact<{
|
|
4001
|
+
input: ConvTagsReportInput;
|
|
4002
|
+
}>;
|
|
4003
|
+
export type ConvTagsReportQuery = {
|
|
4004
|
+
__typename?: 'Query';
|
|
4005
|
+
convTagsReport: {
|
|
4006
|
+
__typename?: 'ConvTagsReportPayload';
|
|
4007
|
+
nodes?: Array<{
|
|
4008
|
+
__typename?: 'ConvTagReport';
|
|
4009
|
+
workspaceId: number;
|
|
4010
|
+
id: string;
|
|
4011
|
+
tag: string;
|
|
4012
|
+
integrationId: string;
|
|
4013
|
+
conversationCount: number;
|
|
4014
|
+
agentMessagesCount: number;
|
|
4015
|
+
clientMessageCount: number;
|
|
4016
|
+
avgFirstResponseTime: number;
|
|
4017
|
+
firstResponseConversationCount: number;
|
|
4018
|
+
avgConversationTime: number;
|
|
4019
|
+
newClientConvCount?: number | null;
|
|
4020
|
+
responseRate: number;
|
|
4021
|
+
averageRating: number;
|
|
4022
|
+
csat: number;
|
|
4023
|
+
createdAt: any;
|
|
4024
|
+
}> | null;
|
|
4025
|
+
};
|
|
4026
|
+
};
|
|
3924
4027
|
export type ConvsReportQueryVariables = Exact<{
|
|
3925
4028
|
input: ConvsReportInput;
|
|
3926
4029
|
}>;
|
|
@@ -5875,6 +5978,7 @@ export declare const UserRoleFragmentDoc: Apollo.DocumentNode;
|
|
|
5875
5978
|
export declare const BroadcastFragmentDoc: Apollo.DocumentNode;
|
|
5876
5979
|
export declare const BroadcastReportFragmentDoc: Apollo.DocumentNode;
|
|
5877
5980
|
export declare const AgentReportFragmentDoc: Apollo.DocumentNode;
|
|
5981
|
+
export declare const ConvTagReportFragmentDoc: Apollo.DocumentNode;
|
|
5878
5982
|
export declare const ConversationReportFragmentDoc: Apollo.DocumentNode;
|
|
5879
5983
|
export declare const PageInfoFragmentDoc: Apollo.DocumentNode;
|
|
5880
5984
|
export declare const AgentFragmentDoc: Apollo.DocumentNode;
|
|
@@ -6935,6 +7039,47 @@ export declare function refetchAgentsReportQuery(variables: AgentsReportQueryVar
|
|
|
6935
7039
|
input: AgentsReportInput;
|
|
6936
7040
|
}>;
|
|
6937
7041
|
};
|
|
7042
|
+
export declare const ConvTagsReportDocument: Apollo.DocumentNode;
|
|
7043
|
+
/**
|
|
7044
|
+
* __useConvTagsReportQuery__
|
|
7045
|
+
*
|
|
7046
|
+
* To run a query within a React component, call `useConvTagsReportQuery` and pass it any options that fit your needs.
|
|
7047
|
+
* When your component renders, `useConvTagsReportQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
7048
|
+
* you can use to render your UI.
|
|
7049
|
+
*
|
|
7050
|
+
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
7051
|
+
*
|
|
7052
|
+
* @example
|
|
7053
|
+
* const { data, loading, error } = useConvTagsReportQuery({
|
|
7054
|
+
* variables: {
|
|
7055
|
+
* input: // value for 'input'
|
|
7056
|
+
* },
|
|
7057
|
+
* });
|
|
7058
|
+
*/
|
|
7059
|
+
export declare function useConvTagsReportQuery(baseOptions: Apollo.QueryHookOptions<ConvTagsReportQuery, ConvTagsReportQueryVariables> & ({
|
|
7060
|
+
variables: ConvTagsReportQueryVariables;
|
|
7061
|
+
skip?: boolean;
|
|
7062
|
+
} | {
|
|
7063
|
+
skip: boolean;
|
|
7064
|
+
})): Apollo.QueryResult<ConvTagsReportQuery, Exact<{
|
|
7065
|
+
input: ConvTagsReportInput;
|
|
7066
|
+
}>>;
|
|
7067
|
+
export declare function useConvTagsReportLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<ConvTagsReportQuery, ConvTagsReportQueryVariables>): Apollo.LazyQueryResultTuple<ConvTagsReportQuery, Exact<{
|
|
7068
|
+
input: ConvTagsReportInput;
|
|
7069
|
+
}>>;
|
|
7070
|
+
export declare function useConvTagsReportSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<ConvTagsReportQuery, ConvTagsReportQueryVariables>): Apollo.UseSuspenseQueryResult<ConvTagsReportQuery | undefined, Exact<{
|
|
7071
|
+
input: ConvTagsReportInput;
|
|
7072
|
+
}>>;
|
|
7073
|
+
export type ConvTagsReportQueryHookResult = ReturnType<typeof useConvTagsReportQuery>;
|
|
7074
|
+
export type ConvTagsReportLazyQueryHookResult = ReturnType<typeof useConvTagsReportLazyQuery>;
|
|
7075
|
+
export type ConvTagsReportSuspenseQueryHookResult = ReturnType<typeof useConvTagsReportSuspenseQuery>;
|
|
7076
|
+
export type ConvTagsReportQueryResult = Apollo.QueryResult<ConvTagsReportQuery, ConvTagsReportQueryVariables>;
|
|
7077
|
+
export declare function refetchConvTagsReportQuery(variables: ConvTagsReportQueryVariables): {
|
|
7078
|
+
query: Apollo.DocumentNode;
|
|
7079
|
+
variables: Exact<{
|
|
7080
|
+
input: ConvTagsReportInput;
|
|
7081
|
+
}>;
|
|
7082
|
+
};
|
|
6938
7083
|
export declare const ConvsReportDocument: Apollo.DocumentNode;
|
|
6939
7084
|
/**
|
|
6940
7085
|
* __useConvsReportQuery__
|