cf-service-sdk 0.0.44 → 0.0.46
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/dist/generated/graphql.d.ts +313 -0
- package/dist/generated/graphql.js +221 -2
- package/dist/queries.d.ts +1 -0
- package/dist/queries.js +187 -1
- package/dist/sdk.d.ts +2 -1
- package/dist/sdk.js +6 -0
- package/package.json +1 -1
|
@@ -463,6 +463,14 @@ export type CallCampaignObject = {
|
|
|
463
463
|
updatedAt?: Maybe<Scalars['DateTime']['output']>;
|
|
464
464
|
user?: Maybe<UserType>;
|
|
465
465
|
};
|
|
466
|
+
/** Response object for callCampaignReport query */
|
|
467
|
+
export type CallCampaignReportResponse = {
|
|
468
|
+
__typename?: 'CallCampaignReportResponse';
|
|
469
|
+
items?: Maybe<Array<Maybe<CallReportLogObject>>>;
|
|
470
|
+
pagination?: Maybe<PaginationInfo>;
|
|
471
|
+
salesTeam?: Maybe<Array<Maybe<SalespersonStatsObject>>>;
|
|
472
|
+
stats?: Maybe<CallReportStatsObject>;
|
|
473
|
+
};
|
|
466
474
|
export type CallCampaignStatsObject = {
|
|
467
475
|
__typename?: 'CallCampaignStatsObject';
|
|
468
476
|
calledCount?: Maybe<Scalars['Int']['output']>;
|
|
@@ -472,6 +480,46 @@ export type CallCampaignStatsObject = {
|
|
|
472
480
|
statusCounts?: Maybe<Scalars['GenericScalar']['output']>;
|
|
473
481
|
totalContacts?: Maybe<Scalars['Int']['output']>;
|
|
474
482
|
};
|
|
483
|
+
/** Filter input for call campaign report */
|
|
484
|
+
export type CallReportFilterInput = {
|
|
485
|
+
/** Predefined date range: today, yesterday, this_week, last_week, this_month, last_month */
|
|
486
|
+
dateGroup?: InputMaybe<Scalars['String']['input']>;
|
|
487
|
+
/** Custom end date (used if date_group is 'custom') */
|
|
488
|
+
endDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
489
|
+
/** Custom start date (used if date_group is 'custom') */
|
|
490
|
+
startDate?: InputMaybe<Scalars['DateTime']['input']>;
|
|
491
|
+
/** Filter by specific user/salesperson (omit for all users) */
|
|
492
|
+
userId?: InputMaybe<Scalars['ID']['input']>;
|
|
493
|
+
};
|
|
494
|
+
/** Call log entry for the report table */
|
|
495
|
+
export type CallReportLogObject = {
|
|
496
|
+
__typename?: 'CallReportLogObject';
|
|
497
|
+
businessOpportunities?: Maybe<Scalars['JSONString']['output']>;
|
|
498
|
+
campaignId?: Maybe<Scalars['Int']['output']>;
|
|
499
|
+
campaignName?: Maybe<Scalars['String']['output']>;
|
|
500
|
+
companyId?: Maybe<Scalars['Int']['output']>;
|
|
501
|
+
companyName?: Maybe<Scalars['String']['output']>;
|
|
502
|
+
contactId?: Maybe<Scalars['Int']['output']>;
|
|
503
|
+
contactName?: Maybe<Scalars['String']['output']>;
|
|
504
|
+
currentSupplier?: Maybe<Scalars['String']['output']>;
|
|
505
|
+
id?: Maybe<Scalars['ID']['output']>;
|
|
506
|
+
notes?: Maybe<Scalars['String']['output']>;
|
|
507
|
+
outcome?: Maybe<Scalars['String']['output']>;
|
|
508
|
+
phone?: Maybe<Scalars['String']['output']>;
|
|
509
|
+
productsOfInterest?: Maybe<Scalars['JSONString']['output']>;
|
|
510
|
+
salespersonId?: Maybe<Scalars['Int']['output']>;
|
|
511
|
+
salespersonName?: Maybe<Scalars['String']['output']>;
|
|
512
|
+
tasks?: Maybe<Array<Maybe<TaskObject>>>;
|
|
513
|
+
timestamp?: Maybe<Scalars['DateTime']['output']>;
|
|
514
|
+
};
|
|
515
|
+
/** Overall statistics for call campaign report */
|
|
516
|
+
export type CallReportStatsObject = {
|
|
517
|
+
__typename?: 'CallReportStatsObject';
|
|
518
|
+
connectRate?: Maybe<Scalars['Float']['output']>;
|
|
519
|
+
connectedCount?: Maybe<Scalars['Int']['output']>;
|
|
520
|
+
meetingCount?: Maybe<Scalars['Int']['output']>;
|
|
521
|
+
totalCalls?: Maybe<Scalars['Int']['output']>;
|
|
522
|
+
};
|
|
475
523
|
export type CampaignAnalyticsStatsType = {
|
|
476
524
|
__typename?: 'CampaignAnalyticsStatsType';
|
|
477
525
|
/** Overall bounce rate percentage */
|
|
@@ -2087,6 +2135,8 @@ export type Query = {
|
|
|
2087
2135
|
callCampaignLog?: Maybe<CallCampaignLogObject>;
|
|
2088
2136
|
/** Get paginated list of call campaign logs with search support */
|
|
2089
2137
|
callCampaignLogs?: Maybe<PaginatedCallCampaignLogList>;
|
|
2138
|
+
/** Get comprehensive call campaign report with stats and per-salesperson breakdown */
|
|
2139
|
+
callCampaignReport?: Maybe<CallCampaignReportResponse>;
|
|
2090
2140
|
/** Get paginated list of call campaigns for the current user's account */
|
|
2091
2141
|
callCampaigns?: Maybe<PaginatedCallCampaignList>;
|
|
2092
2142
|
/** Get a specific campaign by ID */
|
|
@@ -2169,6 +2219,11 @@ export type QueryCallCampaignLogsArgs = {
|
|
|
2169
2219
|
status?: InputMaybe<Scalars['String']['input']>;
|
|
2170
2220
|
};
|
|
2171
2221
|
/** Query */
|
|
2222
|
+
export type QueryCallCampaignReportArgs = {
|
|
2223
|
+
filters?: InputMaybe<CallReportFilterInput>;
|
|
2224
|
+
pagination: PaginationInput;
|
|
2225
|
+
};
|
|
2226
|
+
/** Query */
|
|
2172
2227
|
export type QueryCallCampaignsArgs = {
|
|
2173
2228
|
pagination: PaginationInput;
|
|
2174
2229
|
sortBy?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -2398,6 +2453,17 @@ export type RemoveSegmentFromCampaign = {
|
|
|
2398
2453
|
message?: Maybe<Scalars['String']['output']>;
|
|
2399
2454
|
success?: Maybe<Scalars['Boolean']['output']>;
|
|
2400
2455
|
};
|
|
2456
|
+
/** Per-salesperson statistics */
|
|
2457
|
+
export type SalespersonStatsObject = {
|
|
2458
|
+
__typename?: 'SalespersonStatsObject';
|
|
2459
|
+
connectRate?: Maybe<Scalars['Float']['output']>;
|
|
2460
|
+
connectedCount?: Maybe<Scalars['Int']['output']>;
|
|
2461
|
+
meetingCount?: Maybe<Scalars['Int']['output']>;
|
|
2462
|
+
salespersonName?: Maybe<Scalars['String']['output']>;
|
|
2463
|
+
totalCalls?: Maybe<Scalars['Int']['output']>;
|
|
2464
|
+
user?: Maybe<UserType>;
|
|
2465
|
+
userId?: Maybe<Scalars['Int']['output']>;
|
|
2466
|
+
};
|
|
2401
2467
|
/** SaveNylasConnection - Save Nylas connection details after OAuth flow */
|
|
2402
2468
|
export type SaveNylasConnection = {
|
|
2403
2469
|
__typename?: 'SaveNylasConnection';
|
|
@@ -2526,7 +2592,9 @@ export type TagObject = {
|
|
|
2526
2592
|
pk?: Maybe<Scalars['ID']['output']>;
|
|
2527
2593
|
};
|
|
2528
2594
|
export type TaskFilterInput = {
|
|
2595
|
+
assignedToId?: InputMaybe<Scalars['Int']['input']>;
|
|
2529
2596
|
companyId?: InputMaybe<Scalars['Int']['input']>;
|
|
2597
|
+
createdById?: InputMaybe<Scalars['Int']['input']>;
|
|
2530
2598
|
dueDateFrom?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2531
2599
|
dueDateTo?: InputMaybe<Scalars['DateTime']['input']>;
|
|
2532
2600
|
page?: InputMaybe<Scalars['Int']['input']>;
|
|
@@ -7797,6 +7865,212 @@ export type CallCampaignLogsQuery = {
|
|
|
7797
7865
|
} | null;
|
|
7798
7866
|
} | null;
|
|
7799
7867
|
};
|
|
7868
|
+
export type CallCampaignReportQueryVariables = Exact<{
|
|
7869
|
+
filters?: InputMaybe<CallReportFilterInput>;
|
|
7870
|
+
pagination: PaginationInput;
|
|
7871
|
+
}>;
|
|
7872
|
+
export type CallCampaignReportQuery = {
|
|
7873
|
+
__typename?: 'Query';
|
|
7874
|
+
callCampaignReport?: {
|
|
7875
|
+
__typename?: 'CallCampaignReportResponse';
|
|
7876
|
+
items?: Array<{
|
|
7877
|
+
__typename?: 'CallReportLogObject';
|
|
7878
|
+
id?: string | null;
|
|
7879
|
+
salespersonId?: number | null;
|
|
7880
|
+
salespersonName?: string | null;
|
|
7881
|
+
contactId?: number | null;
|
|
7882
|
+
contactName?: string | null;
|
|
7883
|
+
companyId?: number | null;
|
|
7884
|
+
companyName?: string | null;
|
|
7885
|
+
phone?: string | null;
|
|
7886
|
+
outcome?: string | null;
|
|
7887
|
+
timestamp?: any | null;
|
|
7888
|
+
campaignId?: number | null;
|
|
7889
|
+
campaignName?: string | null;
|
|
7890
|
+
notes?: string | null;
|
|
7891
|
+
currentSupplier?: string | null;
|
|
7892
|
+
productsOfInterest?: any | null;
|
|
7893
|
+
businessOpportunities?: any | null;
|
|
7894
|
+
tasks?: Array<{
|
|
7895
|
+
__typename?: 'TaskObject';
|
|
7896
|
+
id?: number | null;
|
|
7897
|
+
title?: string | null;
|
|
7898
|
+
category?: string | null;
|
|
7899
|
+
description?: string | null;
|
|
7900
|
+
dueDate?: any | null;
|
|
7901
|
+
priority?: string | null;
|
|
7902
|
+
reminderType?: string | null;
|
|
7903
|
+
status?: string | null;
|
|
7904
|
+
completedAt?: any | null;
|
|
7905
|
+
createdAt?: any | null;
|
|
7906
|
+
updatedAt?: any | null;
|
|
7907
|
+
companyId?: number | null;
|
|
7908
|
+
companyName?: string | null;
|
|
7909
|
+
contactId?: number | null;
|
|
7910
|
+
contactName?: string | null;
|
|
7911
|
+
overdue?: boolean | null;
|
|
7912
|
+
assignedTo?: {
|
|
7913
|
+
__typename?: 'UserType';
|
|
7914
|
+
id?: string | null;
|
|
7915
|
+
email?: string | null;
|
|
7916
|
+
firstName?: string | null;
|
|
7917
|
+
lastName?: string | null;
|
|
7918
|
+
picture?: string | null;
|
|
7919
|
+
} | null;
|
|
7920
|
+
callCampaign?: {
|
|
7921
|
+
__typename?: 'CallCampaignObject';
|
|
7922
|
+
id?: string | null;
|
|
7923
|
+
createdAt?: any | null;
|
|
7924
|
+
updatedAt?: any | null;
|
|
7925
|
+
name?: string | null;
|
|
7926
|
+
description?: string | null;
|
|
7927
|
+
status?: string | null;
|
|
7928
|
+
contacts?: number | null;
|
|
7929
|
+
called?: number | null;
|
|
7930
|
+
connected?: number | null;
|
|
7931
|
+
lastActivity?: any | null;
|
|
7932
|
+
user?: {
|
|
7933
|
+
__typename?: 'UserType';
|
|
7934
|
+
id?: string | null;
|
|
7935
|
+
email?: string | null;
|
|
7936
|
+
firstName?: string | null;
|
|
7937
|
+
lastName?: string | null;
|
|
7938
|
+
picture?: string | null;
|
|
7939
|
+
} | null;
|
|
7940
|
+
account?: {
|
|
7941
|
+
__typename?: 'AccountType';
|
|
7942
|
+
id?: string | null;
|
|
7943
|
+
name?: string | null;
|
|
7944
|
+
isActive?: boolean | null;
|
|
7945
|
+
createdAt?: any | null;
|
|
7946
|
+
updatedAt?: any | null;
|
|
7947
|
+
} | null;
|
|
7948
|
+
segments?: Array<{
|
|
7949
|
+
__typename?: 'SegmentObject';
|
|
7950
|
+
id?: string | null;
|
|
7951
|
+
name?: string | null;
|
|
7952
|
+
description?: string | null;
|
|
7953
|
+
state?: string | null;
|
|
7954
|
+
industry?: string | null;
|
|
7955
|
+
metalType?: string | null;
|
|
7956
|
+
productCategory?: string | null;
|
|
7957
|
+
segmentType?: string | null;
|
|
7958
|
+
createdAt?: any | null;
|
|
7959
|
+
updatedAt?: any | null;
|
|
7960
|
+
isSystemTemplate?: boolean | null;
|
|
7961
|
+
totalContacts?: number | null;
|
|
7962
|
+
} | null> | null;
|
|
7963
|
+
stats?: {
|
|
7964
|
+
__typename?: 'CallCampaignStatsObject';
|
|
7965
|
+
totalContacts?: number | null;
|
|
7966
|
+
calledCount?: number | null;
|
|
7967
|
+
connectedCount?: number | null;
|
|
7968
|
+
remainingCount?: number | null;
|
|
7969
|
+
lastActivity?: any | null;
|
|
7970
|
+
statusCounts?: any | null;
|
|
7971
|
+
} | null;
|
|
7972
|
+
} | null;
|
|
7973
|
+
callCampaignLog?: {
|
|
7974
|
+
__typename?: 'CallCampaignLogObject';
|
|
7975
|
+
id?: string | null;
|
|
7976
|
+
status?: string | null;
|
|
7977
|
+
outcome?: string | null;
|
|
7978
|
+
lastCalled?: any | null;
|
|
7979
|
+
notes?: string | null;
|
|
7980
|
+
businessSize?: string | null;
|
|
7981
|
+
businessRevenue?: string | null;
|
|
7982
|
+
businessEmployees?: number | null;
|
|
7983
|
+
businessLocation?: string | null;
|
|
7984
|
+
businessIndustry?: string | null;
|
|
7985
|
+
createdAt?: any | null;
|
|
7986
|
+
updatedAt?: any | null;
|
|
7987
|
+
metadata?: any | null;
|
|
7988
|
+
productsOfInterest?: any | null;
|
|
7989
|
+
businessOpportunities?: any | null;
|
|
7990
|
+
currentSupplier?: string | null;
|
|
7991
|
+
campaignId?: number | null;
|
|
7992
|
+
campaignName?: string | null;
|
|
7993
|
+
segmentId?: number | null;
|
|
7994
|
+
segmentName?: string | null;
|
|
7995
|
+
contactId?: number | null;
|
|
7996
|
+
contactName?: string | null;
|
|
7997
|
+
userId?: number | null;
|
|
7998
|
+
userName?: string | null;
|
|
7999
|
+
accountId?: number | null;
|
|
8000
|
+
} | null;
|
|
8001
|
+
companyNote?: {
|
|
8002
|
+
__typename?: 'CompanyNoteObject';
|
|
8003
|
+
id?: string | null;
|
|
8004
|
+
accountId?: number | null;
|
|
8005
|
+
contactPersonId?: number | null;
|
|
8006
|
+
contactPersonName?: string | null;
|
|
8007
|
+
date?: any | null;
|
|
8008
|
+
noteType?: string | null;
|
|
8009
|
+
duration?: string | null;
|
|
8010
|
+
competitorsMentioned?: string | null;
|
|
8011
|
+
notes?: string | null;
|
|
8012
|
+
summary?: string | null;
|
|
8013
|
+
setReminder?: boolean | null;
|
|
8014
|
+
pinned?: boolean | null;
|
|
8015
|
+
followUpDate?: any | null;
|
|
8016
|
+
followUpAction?: string | null;
|
|
8017
|
+
createdAt?: any | null;
|
|
8018
|
+
updatedAt?: any | null;
|
|
8019
|
+
companyId?: number | null;
|
|
8020
|
+
companyName?: string | null;
|
|
8021
|
+
userId?: number | null;
|
|
8022
|
+
userFirstName?: string | null;
|
|
8023
|
+
userLastName?: string | null;
|
|
8024
|
+
callCampaignLogId?: number | null;
|
|
8025
|
+
callCampaignName?: string | null;
|
|
8026
|
+
callCampaignId?: number | null;
|
|
8027
|
+
callCampaignLogOutcome?: string | null;
|
|
8028
|
+
} | null;
|
|
8029
|
+
createdBy?: {
|
|
8030
|
+
__typename?: 'UserType';
|
|
8031
|
+
id?: string | null;
|
|
8032
|
+
email?: string | null;
|
|
8033
|
+
firstName?: string | null;
|
|
8034
|
+
lastName?: string | null;
|
|
8035
|
+
picture?: string | null;
|
|
8036
|
+
} | null;
|
|
8037
|
+
} | null> | null;
|
|
8038
|
+
} | null> | null;
|
|
8039
|
+
pagination?: {
|
|
8040
|
+
__typename?: 'PaginationInfo';
|
|
8041
|
+
currentPage?: number | null;
|
|
8042
|
+
pageSize?: number | null;
|
|
8043
|
+
totalPages?: number | null;
|
|
8044
|
+
totalCount?: number | null;
|
|
8045
|
+
hasNextPage?: boolean | null;
|
|
8046
|
+
hasPreviousPage?: boolean | null;
|
|
8047
|
+
} | null;
|
|
8048
|
+
stats?: {
|
|
8049
|
+
__typename?: 'CallReportStatsObject';
|
|
8050
|
+
totalCalls?: number | null;
|
|
8051
|
+
connectedCount?: number | null;
|
|
8052
|
+
meetingCount?: number | null;
|
|
8053
|
+
connectRate?: number | null;
|
|
8054
|
+
} | null;
|
|
8055
|
+
salesTeam?: Array<{
|
|
8056
|
+
__typename?: 'SalespersonStatsObject';
|
|
8057
|
+
userId?: number | null;
|
|
8058
|
+
salespersonName?: string | null;
|
|
8059
|
+
totalCalls?: number | null;
|
|
8060
|
+
connectedCount?: number | null;
|
|
8061
|
+
meetingCount?: number | null;
|
|
8062
|
+
connectRate?: number | null;
|
|
8063
|
+
user?: {
|
|
8064
|
+
__typename?: 'UserType';
|
|
8065
|
+
id?: string | null;
|
|
8066
|
+
email?: string | null;
|
|
8067
|
+
firstName?: string | null;
|
|
8068
|
+
lastName?: string | null;
|
|
8069
|
+
picture?: string | null;
|
|
8070
|
+
} | null;
|
|
8071
|
+
} | null> | null;
|
|
8072
|
+
} | null;
|
|
8073
|
+
};
|
|
7800
8074
|
export type CallCampaignsQueryVariables = Exact<{
|
|
7801
8075
|
pagination: PaginationInput;
|
|
7802
8076
|
sortBy?: InputMaybe<Scalars['String']['input']>;
|
|
@@ -13783,6 +14057,45 @@ export type CallCampaignLogsQueryHookResult = ReturnType<typeof useCallCampaignL
|
|
|
13783
14057
|
export type CallCampaignLogsLazyQueryHookResult = ReturnType<typeof useCallCampaignLogsLazyQuery>;
|
|
13784
14058
|
export type CallCampaignLogsSuspenseQueryHookResult = ReturnType<typeof useCallCampaignLogsSuspenseQuery>;
|
|
13785
14059
|
export type CallCampaignLogsQueryResult = Apollo.QueryResult<CallCampaignLogsQuery, CallCampaignLogsQueryVariables>;
|
|
14060
|
+
export declare const CallCampaignReportDocument: Apollo.DocumentNode;
|
|
14061
|
+
/**
|
|
14062
|
+
* __useCallCampaignReportQuery__
|
|
14063
|
+
*
|
|
14064
|
+
* To run a query within a React component, call `useCallCampaignReportQuery` and pass it any options that fit your needs.
|
|
14065
|
+
* When your component renders, `useCallCampaignReportQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
14066
|
+
* you can use to render your UI.
|
|
14067
|
+
*
|
|
14068
|
+
* @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;
|
|
14069
|
+
*
|
|
14070
|
+
* @example
|
|
14071
|
+
* const { data, loading, error } = useCallCampaignReportQuery({
|
|
14072
|
+
* variables: {
|
|
14073
|
+
* filters: // value for 'filters'
|
|
14074
|
+
* pagination: // value for 'pagination'
|
|
14075
|
+
* },
|
|
14076
|
+
* });
|
|
14077
|
+
*/
|
|
14078
|
+
export declare function useCallCampaignReportQuery(baseOptions: Apollo.QueryHookOptions<CallCampaignReportQuery, CallCampaignReportQueryVariables> & ({
|
|
14079
|
+
variables: CallCampaignReportQueryVariables;
|
|
14080
|
+
skip?: boolean;
|
|
14081
|
+
} | {
|
|
14082
|
+
skip: boolean;
|
|
14083
|
+
})): Apollo.QueryResult<CallCampaignReportQuery, Exact<{
|
|
14084
|
+
filters?: InputMaybe<CallReportFilterInput>;
|
|
14085
|
+
pagination: PaginationInput;
|
|
14086
|
+
}>>;
|
|
14087
|
+
export declare function useCallCampaignReportLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<CallCampaignReportQuery, CallCampaignReportQueryVariables>): Apollo.LazyQueryResultTuple<CallCampaignReportQuery, Exact<{
|
|
14088
|
+
filters?: InputMaybe<CallReportFilterInput>;
|
|
14089
|
+
pagination: PaginationInput;
|
|
14090
|
+
}>>;
|
|
14091
|
+
export declare function useCallCampaignReportSuspenseQuery(baseOptions?: Apollo.SkipToken | Apollo.SuspenseQueryHookOptions<CallCampaignReportQuery, CallCampaignReportQueryVariables>): Apollo.UseSuspenseQueryResult<CallCampaignReportQuery | undefined, Exact<{
|
|
14092
|
+
filters?: InputMaybe<CallReportFilterInput>;
|
|
14093
|
+
pagination: PaginationInput;
|
|
14094
|
+
}>>;
|
|
14095
|
+
export type CallCampaignReportQueryHookResult = ReturnType<typeof useCallCampaignReportQuery>;
|
|
14096
|
+
export type CallCampaignReportLazyQueryHookResult = ReturnType<typeof useCallCampaignReportLazyQuery>;
|
|
14097
|
+
export type CallCampaignReportSuspenseQueryHookResult = ReturnType<typeof useCallCampaignReportSuspenseQuery>;
|
|
14098
|
+
export type CallCampaignReportQueryResult = Apollo.QueryResult<CallCampaignReportQuery, CallCampaignReportQueryVariables>;
|
|
13786
14099
|
export declare const CallCampaignsDocument: Apollo.DocumentNode;
|
|
13787
14100
|
/**
|
|
13788
14101
|
* __useCallCampaignsQuery__
|
|
@@ -34,8 +34,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.MarkNotificationAsReadDocument = exports.MarkAllNotificationsAsReadDocument = exports.LoginWithMicrosoftDocument = exports.LoginWithGoogleDocument = exports.LoginDocument = exports.InviteUserDocument = exports.HideRecordDocument = exports.ForgotPasswordDocument = exports.EmailToneDocument = exports.DisconnectNylasIntegrationDocument = exports.DeleteTaskDocument = exports.DeleteSegmentDocument = exports.DeleteNotificationDocument = exports.DeleteEmailTemplateDocument = exports.DeleteContactDocument = exports.DeleteCompanyNoteDocument = exports.DeleteCompanyDocument = exports.DeleteCampaignDocument = exports.DeleteCallCampaignDocument = exports.CreateTaskDocument = exports.CreateSegmentDocument = exports.CreateNotificationDocument = exports.CreateEmailTemplateDocument = exports.CreateContactDocument = exports.CreateCompanyNoteDocument = exports.CreateCompanyDocument = exports.CreateCampaignDocument = exports.CreateCallCampaignLogDocument = exports.CreateCallCampaignDocument = exports.CompleteCampaignDocument = exports.ClearAllNotificationsDocument = exports.ChangePasswordDocument = exports.CancelInvitationDocument = exports.CancelCampaignDocument = exports.AddSegmentToCampaignDocument = exports.AddSegmentToCallCampaignDocument = exports.AddContactsToSegmentDocument = exports.AddContactsToCampaignDocument = exports.AcceptInvitationDocument = exports.SortDirection = exports.RecentHistorySortField = exports.NotificationTypeEnum = exports.ContactSortField = exports.CompanySortField = exports.CompanyNoteSortField = exports.CallCampaignLogOutcomeEnum = exports.AppNotificationNotificationTypeChoices = exports.AppEmailTemplateCampaignTypeChoices = exports.AppBusinessProfileStateChoices = exports.AppAccountInvitationStatusChoices = void 0;
|
|
37
|
-
exports.
|
|
38
|
-
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = void 0;
|
|
37
|
+
exports.ContactsInSegmentDocument = exports.ContactsDocument = exports.ContactDocument = exports.CompanyNotesDocument = exports.CompanyNoteDocument = exports.CompanyDocument = exports.CompaniesDocument = exports.CampaignsDocument = exports.CampaignStatsDocument = exports.CampaignLogsDocument = exports.CampaignContactsDocument = exports.CampaignAnalyticsDocument = exports.CampaignDocument = exports.CallCampaignsDocument = exports.CallCampaignReportDocument = exports.CallCampaignLogsDocument = exports.CallCampaignLogDocument = exports.CallCampaignAnalyticsDocument = exports.CallCampaignDocument = exports.BusinessProfileDocument = exports.AccountMembersDocument = exports.ValidateOtpAndResetPasswordDocument = exports.UploadFileDocument = exports.UpdateUserProfileDocument = exports.UpdateTaskDocument = exports.UpdateSegmentDocument = exports.UpdateEmailTemplateDocument = exports.UpdateContactDocument = exports.UpdateCompanyNoteDocument = exports.UpdateCompanyDocument = exports.UpdateCampaignDocument = exports.UpdateCallCampaignLogDocument = exports.UpdateCallCampaignDocument = exports.UnsubscribeFromEmailsDocument = exports.UnhideRecordDocument = exports.SubmitFeedbackDocument = exports.StartCampaignDocument = exports.SignupDocument = exports.SendTestEmailDocument = exports.SendEmailToContactDocument = exports.ScheduleCampaignDocument = exports.SaveNylasConnectionDocument = exports.RemoveSegmentFromCampaignDocument = exports.RemoveSegmentFromCallCampaignDocument = exports.RemoveMemberDocument = exports.RemoveContactsFromSegmentDocument = exports.RemoveContactsFromCampaignDocument = exports.RejectInvitationDocument = exports.PreviewCampaignEmailDocument = exports.PauseCampaignDocument = void 0;
|
|
38
|
+
exports.UserProfileDocument = exports.UsStatesDocument = exports.UnreadNotificationsCountDocument = exports.TasksDocument = exports.TaskDocument = exports.SegmentsDocument = exports.SegmentDocument = exports.SearchContactsDocument = exports.RecentNotificationsDocument = exports.RecentHistoryDocument = exports.ProductTypesDocument = exports.ProductCategoriesDocument = exports.PendingInvitationsDocument = exports.NylasConnectionDocument = exports.NotificationsDocument = exports.NotificationDocument = exports.MyInvitationsDocument = exports.MetalTypesDocument = exports.MetalGradesDocument = exports.IndustryTypesDocument = exports.IndustrySectorsDocument = exports.EmployeeSizesDocument = exports.EmailTemplatesDocument = exports.EmailTemplateDocument = exports.DashboardStatsDocument = exports.CurrentAccountDocument = void 0;
|
|
39
39
|
exports.useAcceptInvitationMutation = useAcceptInvitationMutation;
|
|
40
40
|
exports.useAddContactsToCampaignMutation = useAddContactsToCampaignMutation;
|
|
41
41
|
exports.useAddContactsToSegmentMutation = useAddContactsToSegmentMutation;
|
|
@@ -122,6 +122,9 @@ exports.useCallCampaignLogSuspenseQuery = useCallCampaignLogSuspenseQuery;
|
|
|
122
122
|
exports.useCallCampaignLogsQuery = useCallCampaignLogsQuery;
|
|
123
123
|
exports.useCallCampaignLogsLazyQuery = useCallCampaignLogsLazyQuery;
|
|
124
124
|
exports.useCallCampaignLogsSuspenseQuery = useCallCampaignLogsSuspenseQuery;
|
|
125
|
+
exports.useCallCampaignReportQuery = useCallCampaignReportQuery;
|
|
126
|
+
exports.useCallCampaignReportLazyQuery = useCallCampaignReportLazyQuery;
|
|
127
|
+
exports.useCallCampaignReportSuspenseQuery = useCallCampaignReportSuspenseQuery;
|
|
125
128
|
exports.useCallCampaignsQuery = useCallCampaignsQuery;
|
|
126
129
|
exports.useCallCampaignsLazyQuery = useCallCampaignsLazyQuery;
|
|
127
130
|
exports.useCallCampaignsSuspenseQuery = useCallCampaignsSuspenseQuery;
|
|
@@ -6643,6 +6646,222 @@ function useCallCampaignLogsSuspenseQuery(baseOptions) {
|
|
|
6643
6646
|
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
6644
6647
|
return Apollo.useSuspenseQuery(exports.CallCampaignLogsDocument, options);
|
|
6645
6648
|
}
|
|
6649
|
+
exports.CallCampaignReportDocument = (0, client_1.gql) `
|
|
6650
|
+
query CallCampaignReport($filters: CallReportFilterInput, $pagination: PaginationInput!) {
|
|
6651
|
+
callCampaignReport(filters: $filters, pagination: $pagination) {
|
|
6652
|
+
items {
|
|
6653
|
+
id
|
|
6654
|
+
salespersonId
|
|
6655
|
+
salespersonName
|
|
6656
|
+
contactId
|
|
6657
|
+
contactName
|
|
6658
|
+
companyId
|
|
6659
|
+
companyName
|
|
6660
|
+
phone
|
|
6661
|
+
outcome
|
|
6662
|
+
timestamp
|
|
6663
|
+
campaignId
|
|
6664
|
+
campaignName
|
|
6665
|
+
notes
|
|
6666
|
+
currentSupplier
|
|
6667
|
+
productsOfInterest
|
|
6668
|
+
businessOpportunities
|
|
6669
|
+
tasks {
|
|
6670
|
+
id
|
|
6671
|
+
title
|
|
6672
|
+
category
|
|
6673
|
+
description
|
|
6674
|
+
dueDate
|
|
6675
|
+
priority
|
|
6676
|
+
reminderType
|
|
6677
|
+
status
|
|
6678
|
+
assignedTo {
|
|
6679
|
+
id
|
|
6680
|
+
email
|
|
6681
|
+
firstName
|
|
6682
|
+
lastName
|
|
6683
|
+
picture
|
|
6684
|
+
}
|
|
6685
|
+
completedAt
|
|
6686
|
+
createdAt
|
|
6687
|
+
updatedAt
|
|
6688
|
+
callCampaign {
|
|
6689
|
+
id
|
|
6690
|
+
user {
|
|
6691
|
+
id
|
|
6692
|
+
email
|
|
6693
|
+
firstName
|
|
6694
|
+
lastName
|
|
6695
|
+
picture
|
|
6696
|
+
}
|
|
6697
|
+
account {
|
|
6698
|
+
id
|
|
6699
|
+
name
|
|
6700
|
+
isActive
|
|
6701
|
+
createdAt
|
|
6702
|
+
updatedAt
|
|
6703
|
+
}
|
|
6704
|
+
createdAt
|
|
6705
|
+
updatedAt
|
|
6706
|
+
name
|
|
6707
|
+
description
|
|
6708
|
+
segments {
|
|
6709
|
+
id
|
|
6710
|
+
name
|
|
6711
|
+
description
|
|
6712
|
+
state
|
|
6713
|
+
industry
|
|
6714
|
+
metalType
|
|
6715
|
+
productCategory
|
|
6716
|
+
segmentType
|
|
6717
|
+
createdAt
|
|
6718
|
+
updatedAt
|
|
6719
|
+
isSystemTemplate
|
|
6720
|
+
totalContacts
|
|
6721
|
+
}
|
|
6722
|
+
status
|
|
6723
|
+
stats {
|
|
6724
|
+
totalContacts
|
|
6725
|
+
calledCount
|
|
6726
|
+
connectedCount
|
|
6727
|
+
remainingCount
|
|
6728
|
+
lastActivity
|
|
6729
|
+
statusCounts
|
|
6730
|
+
}
|
|
6731
|
+
contacts
|
|
6732
|
+
called
|
|
6733
|
+
connected
|
|
6734
|
+
lastActivity
|
|
6735
|
+
}
|
|
6736
|
+
callCampaignLog {
|
|
6737
|
+
id
|
|
6738
|
+
status
|
|
6739
|
+
outcome
|
|
6740
|
+
lastCalled
|
|
6741
|
+
notes
|
|
6742
|
+
businessSize
|
|
6743
|
+
businessRevenue
|
|
6744
|
+
businessEmployees
|
|
6745
|
+
businessLocation
|
|
6746
|
+
businessIndustry
|
|
6747
|
+
createdAt
|
|
6748
|
+
updatedAt
|
|
6749
|
+
metadata
|
|
6750
|
+
productsOfInterest
|
|
6751
|
+
businessOpportunities
|
|
6752
|
+
currentSupplier
|
|
6753
|
+
campaignId
|
|
6754
|
+
campaignName
|
|
6755
|
+
segmentId
|
|
6756
|
+
segmentName
|
|
6757
|
+
contactId
|
|
6758
|
+
contactName
|
|
6759
|
+
userId
|
|
6760
|
+
userName
|
|
6761
|
+
accountId
|
|
6762
|
+
}
|
|
6763
|
+
companyNote {
|
|
6764
|
+
id
|
|
6765
|
+
accountId
|
|
6766
|
+
contactPersonId
|
|
6767
|
+
contactPersonName
|
|
6768
|
+
date
|
|
6769
|
+
noteType
|
|
6770
|
+
duration
|
|
6771
|
+
competitorsMentioned
|
|
6772
|
+
notes
|
|
6773
|
+
summary
|
|
6774
|
+
setReminder
|
|
6775
|
+
pinned
|
|
6776
|
+
followUpDate
|
|
6777
|
+
followUpAction
|
|
6778
|
+
createdAt
|
|
6779
|
+
updatedAt
|
|
6780
|
+
companyId
|
|
6781
|
+
companyName
|
|
6782
|
+
userId
|
|
6783
|
+
userFirstName
|
|
6784
|
+
userLastName
|
|
6785
|
+
callCampaignLogId
|
|
6786
|
+
callCampaignName
|
|
6787
|
+
callCampaignId
|
|
6788
|
+
callCampaignLogOutcome
|
|
6789
|
+
}
|
|
6790
|
+
companyId
|
|
6791
|
+
companyName
|
|
6792
|
+
contactId
|
|
6793
|
+
contactName
|
|
6794
|
+
overdue
|
|
6795
|
+
createdBy {
|
|
6796
|
+
id
|
|
6797
|
+
email
|
|
6798
|
+
firstName
|
|
6799
|
+
lastName
|
|
6800
|
+
picture
|
|
6801
|
+
}
|
|
6802
|
+
}
|
|
6803
|
+
}
|
|
6804
|
+
pagination {
|
|
6805
|
+
currentPage
|
|
6806
|
+
pageSize
|
|
6807
|
+
totalPages
|
|
6808
|
+
totalCount
|
|
6809
|
+
hasNextPage
|
|
6810
|
+
hasPreviousPage
|
|
6811
|
+
}
|
|
6812
|
+
stats {
|
|
6813
|
+
totalCalls
|
|
6814
|
+
connectedCount
|
|
6815
|
+
meetingCount
|
|
6816
|
+
connectRate
|
|
6817
|
+
}
|
|
6818
|
+
salesTeam {
|
|
6819
|
+
userId
|
|
6820
|
+
user {
|
|
6821
|
+
id
|
|
6822
|
+
email
|
|
6823
|
+
firstName
|
|
6824
|
+
lastName
|
|
6825
|
+
picture
|
|
6826
|
+
}
|
|
6827
|
+
salespersonName
|
|
6828
|
+
totalCalls
|
|
6829
|
+
connectedCount
|
|
6830
|
+
meetingCount
|
|
6831
|
+
connectRate
|
|
6832
|
+
}
|
|
6833
|
+
}
|
|
6834
|
+
}
|
|
6835
|
+
`;
|
|
6836
|
+
/**
|
|
6837
|
+
* __useCallCampaignReportQuery__
|
|
6838
|
+
*
|
|
6839
|
+
* To run a query within a React component, call `useCallCampaignReportQuery` and pass it any options that fit your needs.
|
|
6840
|
+
* When your component renders, `useCallCampaignReportQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
6841
|
+
* you can use to render your UI.
|
|
6842
|
+
*
|
|
6843
|
+
* @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;
|
|
6844
|
+
*
|
|
6845
|
+
* @example
|
|
6846
|
+
* const { data, loading, error } = useCallCampaignReportQuery({
|
|
6847
|
+
* variables: {
|
|
6848
|
+
* filters: // value for 'filters'
|
|
6849
|
+
* pagination: // value for 'pagination'
|
|
6850
|
+
* },
|
|
6851
|
+
* });
|
|
6852
|
+
*/
|
|
6853
|
+
function useCallCampaignReportQuery(baseOptions) {
|
|
6854
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
6855
|
+
return Apollo.useQuery(exports.CallCampaignReportDocument, options);
|
|
6856
|
+
}
|
|
6857
|
+
function useCallCampaignReportLazyQuery(baseOptions) {
|
|
6858
|
+
const options = { ...defaultOptions, ...baseOptions };
|
|
6859
|
+
return Apollo.useLazyQuery(exports.CallCampaignReportDocument, options);
|
|
6860
|
+
}
|
|
6861
|
+
function useCallCampaignReportSuspenseQuery(baseOptions) {
|
|
6862
|
+
const options = baseOptions === Apollo.skipToken ? baseOptions : { ...defaultOptions, ...baseOptions };
|
|
6863
|
+
return Apollo.useSuspenseQuery(exports.CallCampaignReportDocument, options);
|
|
6864
|
+
}
|
|
6646
6865
|
exports.CallCampaignsDocument = (0, client_1.gql) `
|
|
6647
6866
|
query CallCampaigns($pagination: PaginationInput!, $sortBy: String, $status: String) {
|
|
6648
6867
|
callCampaigns(pagination: $pagination, sortBy: $sortBy, status: $status) {
|
package/dist/queries.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export declare const CALL_CAMPAIGN: import("@apollo/client").DocumentNode;
|
|
|
7
7
|
export declare const CALL_CAMPAIGN_ANALYTICS: import("@apollo/client").DocumentNode;
|
|
8
8
|
export declare const CALL_CAMPAIGN_LOGS: import("@apollo/client").DocumentNode;
|
|
9
9
|
export declare const CALL_CAMPAIGN_LOG: import("@apollo/client").DocumentNode;
|
|
10
|
+
export declare const CALL_CAMPAIGN_REPORT: import("@apollo/client").DocumentNode;
|
|
10
11
|
export declare const TASKS: import("@apollo/client").DocumentNode;
|
|
11
12
|
export declare const TASK: import("@apollo/client").DocumentNode;
|
|
12
13
|
export declare const UNREAD_NOTIFICATIONS_COUNT: import("@apollo/client").DocumentNode;
|
package/dist/queries.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.USER_PROFILE = exports.MY_INVITATIONS = exports.BUSINESS_PROFILE = exports.PENDING_INVITATIONS = exports.ACCOUNT_MEMBERS = exports.CURRENT_ACCOUNT = exports.EMPLOYEE_SIZES = exports.US_STATES = exports.METAL_GRADES = exports.METAL_TYPES = exports.PRODUCT_CATEGORIES = exports.PRODUCT_TYPES = exports.INDUSTRY_SECTORS = exports.INDUSTRY_TYPES = exports.CONTACT = exports.COMPANY = exports.SEARCH_CONTACTS = exports.CONTACTS = exports.COMPANIES = exports.CONTACTS_IN_SEGMENT = exports.SEGMENT = exports.SEGMENTS = exports.CAMPAIGN_CONTACTS = exports.CAMPAIGN_LOGS = exports.CAMPAIGN_ANALYTICS = exports.CAMPAIGN_STATS = exports.CAMPAIGN = exports.CAMPAIGNS = exports.EMAIL_TEMPLATES = exports.EMAIL_TEMPLATE = exports.NYLAS_CONNECTION = exports.RECENT_NOTIFICATIONS = exports.NOTIFICATION = exports.NOTIFICATIONS = exports.UNREAD_NOTIFICATIONS_COUNT = exports.TASK = exports.TASKS = exports.CALL_CAMPAIGN_LOG = exports.CALL_CAMPAIGN_LOGS = exports.CALL_CAMPAIGN_ANALYTICS = exports.CALL_CAMPAIGN = exports.CALL_CAMPAIGNS = exports.COMPANY_NOTE = exports.COMPANY_NOTES = exports.RECENT_HISTORY = exports.DASHBOARD_STATS = void 0;
|
|
3
|
+
exports.USER_PROFILE = exports.MY_INVITATIONS = exports.BUSINESS_PROFILE = exports.PENDING_INVITATIONS = exports.ACCOUNT_MEMBERS = exports.CURRENT_ACCOUNT = exports.EMPLOYEE_SIZES = exports.US_STATES = exports.METAL_GRADES = exports.METAL_TYPES = exports.PRODUCT_CATEGORIES = exports.PRODUCT_TYPES = exports.INDUSTRY_SECTORS = exports.INDUSTRY_TYPES = exports.CONTACT = exports.COMPANY = exports.SEARCH_CONTACTS = exports.CONTACTS = exports.COMPANIES = exports.CONTACTS_IN_SEGMENT = exports.SEGMENT = exports.SEGMENTS = exports.CAMPAIGN_CONTACTS = exports.CAMPAIGN_LOGS = exports.CAMPAIGN_ANALYTICS = exports.CAMPAIGN_STATS = exports.CAMPAIGN = exports.CAMPAIGNS = exports.EMAIL_TEMPLATES = exports.EMAIL_TEMPLATE = exports.NYLAS_CONNECTION = exports.RECENT_NOTIFICATIONS = exports.NOTIFICATION = exports.NOTIFICATIONS = exports.UNREAD_NOTIFICATIONS_COUNT = exports.TASK = exports.TASKS = exports.CALL_CAMPAIGN_REPORT = exports.CALL_CAMPAIGN_LOG = exports.CALL_CAMPAIGN_LOGS = exports.CALL_CAMPAIGN_ANALYTICS = exports.CALL_CAMPAIGN = exports.CALL_CAMPAIGNS = exports.COMPANY_NOTE = exports.COMPANY_NOTES = exports.RECENT_HISTORY = exports.DASHBOARD_STATS = void 0;
|
|
4
4
|
const client_1 = require("@apollo/client");
|
|
5
5
|
exports.DASHBOARD_STATS = (0, client_1.gql) `
|
|
6
6
|
query DashboardStats($startDate: DateTime, $endDate: DateTime) {
|
|
@@ -1605,6 +1605,192 @@ query CallCampaignLog($id: ID!) {
|
|
|
1605
1605
|
accountId
|
|
1606
1606
|
}
|
|
1607
1607
|
}`;
|
|
1608
|
+
exports.CALL_CAMPAIGN_REPORT = (0, client_1.gql) `
|
|
1609
|
+
query CallCampaignReport($filters: CallReportFilterInput, $pagination: PaginationInput!) {
|
|
1610
|
+
callCampaignReport(filters: $filters, pagination: $pagination) {
|
|
1611
|
+
items {
|
|
1612
|
+
id
|
|
1613
|
+
salespersonId
|
|
1614
|
+
salespersonName
|
|
1615
|
+
contactId
|
|
1616
|
+
contactName
|
|
1617
|
+
companyId
|
|
1618
|
+
companyName
|
|
1619
|
+
phone
|
|
1620
|
+
outcome
|
|
1621
|
+
timestamp
|
|
1622
|
+
campaignId
|
|
1623
|
+
campaignName
|
|
1624
|
+
notes
|
|
1625
|
+
currentSupplier
|
|
1626
|
+
productsOfInterest
|
|
1627
|
+
businessOpportunities
|
|
1628
|
+
tasks {
|
|
1629
|
+
id
|
|
1630
|
+
title
|
|
1631
|
+
category
|
|
1632
|
+
description
|
|
1633
|
+
dueDate
|
|
1634
|
+
priority
|
|
1635
|
+
reminderType
|
|
1636
|
+
status
|
|
1637
|
+
assignedTo {
|
|
1638
|
+
id
|
|
1639
|
+
email
|
|
1640
|
+
firstName
|
|
1641
|
+
lastName
|
|
1642
|
+
picture
|
|
1643
|
+
}
|
|
1644
|
+
completedAt
|
|
1645
|
+
createdAt
|
|
1646
|
+
updatedAt
|
|
1647
|
+
callCampaign {
|
|
1648
|
+
id
|
|
1649
|
+
user {
|
|
1650
|
+
id
|
|
1651
|
+
email
|
|
1652
|
+
firstName
|
|
1653
|
+
lastName
|
|
1654
|
+
picture
|
|
1655
|
+
}
|
|
1656
|
+
account {
|
|
1657
|
+
id
|
|
1658
|
+
name
|
|
1659
|
+
isActive
|
|
1660
|
+
createdAt
|
|
1661
|
+
updatedAt
|
|
1662
|
+
}
|
|
1663
|
+
createdAt
|
|
1664
|
+
updatedAt
|
|
1665
|
+
name
|
|
1666
|
+
description
|
|
1667
|
+
segments {
|
|
1668
|
+
id
|
|
1669
|
+
name
|
|
1670
|
+
description
|
|
1671
|
+
state
|
|
1672
|
+
industry
|
|
1673
|
+
metalType
|
|
1674
|
+
productCategory
|
|
1675
|
+
segmentType
|
|
1676
|
+
createdAt
|
|
1677
|
+
updatedAt
|
|
1678
|
+
isSystemTemplate
|
|
1679
|
+
totalContacts
|
|
1680
|
+
}
|
|
1681
|
+
status
|
|
1682
|
+
stats {
|
|
1683
|
+
totalContacts
|
|
1684
|
+
calledCount
|
|
1685
|
+
connectedCount
|
|
1686
|
+
remainingCount
|
|
1687
|
+
lastActivity
|
|
1688
|
+
statusCounts
|
|
1689
|
+
}
|
|
1690
|
+
contacts
|
|
1691
|
+
called
|
|
1692
|
+
connected
|
|
1693
|
+
lastActivity
|
|
1694
|
+
}
|
|
1695
|
+
callCampaignLog {
|
|
1696
|
+
id
|
|
1697
|
+
status
|
|
1698
|
+
outcome
|
|
1699
|
+
lastCalled
|
|
1700
|
+
notes
|
|
1701
|
+
businessSize
|
|
1702
|
+
businessRevenue
|
|
1703
|
+
businessEmployees
|
|
1704
|
+
businessLocation
|
|
1705
|
+
businessIndustry
|
|
1706
|
+
createdAt
|
|
1707
|
+
updatedAt
|
|
1708
|
+
metadata
|
|
1709
|
+
productsOfInterest
|
|
1710
|
+
businessOpportunities
|
|
1711
|
+
currentSupplier
|
|
1712
|
+
campaignId
|
|
1713
|
+
campaignName
|
|
1714
|
+
segmentId
|
|
1715
|
+
segmentName
|
|
1716
|
+
contactId
|
|
1717
|
+
contactName
|
|
1718
|
+
userId
|
|
1719
|
+
userName
|
|
1720
|
+
accountId
|
|
1721
|
+
}
|
|
1722
|
+
companyNote {
|
|
1723
|
+
id
|
|
1724
|
+
accountId
|
|
1725
|
+
contactPersonId
|
|
1726
|
+
contactPersonName
|
|
1727
|
+
date
|
|
1728
|
+
noteType
|
|
1729
|
+
duration
|
|
1730
|
+
competitorsMentioned
|
|
1731
|
+
notes
|
|
1732
|
+
summary
|
|
1733
|
+
setReminder
|
|
1734
|
+
pinned
|
|
1735
|
+
followUpDate
|
|
1736
|
+
followUpAction
|
|
1737
|
+
createdAt
|
|
1738
|
+
updatedAt
|
|
1739
|
+
companyId
|
|
1740
|
+
companyName
|
|
1741
|
+
userId
|
|
1742
|
+
userFirstName
|
|
1743
|
+
userLastName
|
|
1744
|
+
callCampaignLogId
|
|
1745
|
+
callCampaignName
|
|
1746
|
+
callCampaignId
|
|
1747
|
+
callCampaignLogOutcome
|
|
1748
|
+
}
|
|
1749
|
+
companyId
|
|
1750
|
+
companyName
|
|
1751
|
+
contactId
|
|
1752
|
+
contactName
|
|
1753
|
+
overdue
|
|
1754
|
+
createdBy {
|
|
1755
|
+
id
|
|
1756
|
+
email
|
|
1757
|
+
firstName
|
|
1758
|
+
lastName
|
|
1759
|
+
picture
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1763
|
+
pagination {
|
|
1764
|
+
currentPage
|
|
1765
|
+
pageSize
|
|
1766
|
+
totalPages
|
|
1767
|
+
totalCount
|
|
1768
|
+
hasNextPage
|
|
1769
|
+
hasPreviousPage
|
|
1770
|
+
}
|
|
1771
|
+
stats {
|
|
1772
|
+
totalCalls
|
|
1773
|
+
connectedCount
|
|
1774
|
+
meetingCount
|
|
1775
|
+
connectRate
|
|
1776
|
+
}
|
|
1777
|
+
salesTeam {
|
|
1778
|
+
userId
|
|
1779
|
+
user {
|
|
1780
|
+
id
|
|
1781
|
+
email
|
|
1782
|
+
firstName
|
|
1783
|
+
lastName
|
|
1784
|
+
picture
|
|
1785
|
+
}
|
|
1786
|
+
salespersonName
|
|
1787
|
+
totalCalls
|
|
1788
|
+
connectedCount
|
|
1789
|
+
meetingCount
|
|
1790
|
+
connectRate
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
}`;
|
|
1608
1794
|
exports.TASKS = (0, client_1.gql) `
|
|
1609
1795
|
query Tasks($filters: TaskFilterInput, $sortBy: String, $sortDirection: String) {
|
|
1610
1796
|
tasks(filters: $filters, sortBy: $sortBy, sortDirection: $sortDirection) {
|
package/dist/sdk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CloudForgeClientOptions } from "./client";
|
|
2
|
-
import { CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanySortInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSegmentMutationVariables, CreateTaskMutationVariables, CustomContactInput, EmailToneInput, FileUploadInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MicrosoftUserInput, PaginationInput, RecentHistoryFilterInput, RecentHistorySortInput, SaveNylasConnectionMutationVariables, SegmentFilterInput, SignupInput, SubmitFeedbackMutationVariables, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
2
|
+
import { CallReportFilterInput, CompanyFilterInput, CompanyNoteFilterInput, CompanyNoteInput, CompanyNoteSortInput, CompanySortInput, ContactFilterInput, ContactSortInput, CreateCallCampaignLogMutationVariables, CreateCallCampaignMutationVariables, CreateCampaignMutationVariables, CreateCompanyMutationVariables, CreateContactMutationVariables, CreateEmailTemplateMutationVariables, CreateNotificationMutationVariables, CreateSegmentMutationVariables, CreateTaskMutationVariables, CustomContactInput, EmailToneInput, FileUploadInput, HiddenRecordInput, InvitationResponseInput, InviteUserInput, MicrosoftUserInput, PaginationInput, RecentHistoryFilterInput, RecentHistorySortInput, SaveNylasConnectionMutationVariables, SegmentFilterInput, SignupInput, SubmitFeedbackMutationVariables, TaskFilterInput, UpdateCallCampaignLogMutationVariables, UpdateCallCampaignMutationVariables, UpdateCampaignMutationVariables, UpdateCompanyMutationVariables, UpdateContactMutationVariables, UpdateEmailTemplateMutationVariables, UpdateSegmentMutationVariables, UpdateTaskMutationVariables, UpdateUserProfileMutationVariables, UserTypeInput } from "./generated/graphql";
|
|
3
3
|
export declare class CloudForgeSDK {
|
|
4
4
|
private client;
|
|
5
5
|
private apolloClient;
|
|
@@ -82,6 +82,7 @@ export declare class CloudForgeSDK {
|
|
|
82
82
|
callCampaignAnalytics(campaignId?: string, startDate?: string, endDate?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
83
83
|
callCampaignLog(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
84
84
|
callCampaignLogs(callCampaignId: string, pagination: PaginationInput, search?: string, status?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
85
|
+
callCampaignReport(pagination: PaginationInput, filters?: CallReportFilterInput): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
85
86
|
callCampaigns(pagination: PaginationInput, sortBy?: string, status?: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
86
87
|
campaign(id: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
|
87
88
|
campaignAnalytics(campaignId: string): Promise<import("@apollo/client").ApolloQueryResult<any>>;
|
package/dist/sdk.js
CHANGED
|
@@ -475,6 +475,12 @@ class CloudForgeSDK {
|
|
|
475
475
|
variables: { callCampaignId, pagination, search, status }
|
|
476
476
|
});
|
|
477
477
|
}
|
|
478
|
+
async callCampaignReport(pagination, filters) {
|
|
479
|
+
return this.apolloClient.query({
|
|
480
|
+
query: queries_1.CALL_CAMPAIGN_REPORT,
|
|
481
|
+
variables: { pagination, filters }
|
|
482
|
+
});
|
|
483
|
+
}
|
|
478
484
|
async callCampaigns(pagination, sortBy, status) {
|
|
479
485
|
return this.apolloClient.query({
|
|
480
486
|
query: queries_1.CALL_CAMPAIGNS,
|