cf-service-sdk 0.0.49 → 0.0.51

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.
@@ -446,6 +446,16 @@ export declare enum CallCampaignLogOutcomeEnum {
446
446
  Other = "OTHER",
447
447
  WrongNumber = "WRONG_NUMBER"
448
448
  }
449
+ /** Statistics for call campaign logs, including contacts contacted in past 2 weeks */
450
+ export type CallCampaignLogStatsType = {
451
+ __typename?: 'CallCampaignLogStatsType';
452
+ /** Number of contacts contacted in the past 2 weeks (via email or call) */
453
+ contactedPast2Weeks?: Maybe<Scalars['Int']['output']>;
454
+ /** Details of contacts contacted in the past 2 weeks */
455
+ contactedPast2WeeksDetails?: Maybe<Array<Maybe<RecentlyContactedContactType>>>;
456
+ /** Total number of contacts in the results */
457
+ totalContacts?: Maybe<Scalars['Int']['output']>;
458
+ };
449
459
  export type CallCampaignObject = {
450
460
  __typename?: 'CallCampaignObject';
451
461
  account?: Maybe<AccountType>;
@@ -574,6 +584,16 @@ export type CampaignContactItemType = {
574
584
  email?: Maybe<Scalars['String']['output']>;
575
585
  /** First name of the contact */
576
586
  firstName?: Maybe<Scalars['String']['output']>;
587
+ /** Whether the contact is a customer */
588
+ isCustomer?: Maybe<Scalars['Boolean']['output']>;
589
+ /** Whether the contact is a prospect */
590
+ isProspect?: Maybe<Scalars['Boolean']['output']>;
591
+ /** When the contact was last contacted */
592
+ lastContactedAt?: Maybe<Scalars['DateTime']['output']>;
593
+ /** User who last contacted this contact */
594
+ lastContactedBy?: Maybe<UserType>;
595
+ /** Information about the last contact action */
596
+ lastContactedVia?: Maybe<LastContactedViaType>;
577
597
  /** Last name of the contact */
578
598
  lastName?: Maybe<Scalars['String']['output']>;
579
599
  /** Phone of the contact */
@@ -632,6 +652,16 @@ export type CampaignInput = {
632
652
  segments?: InputMaybe<Array<InputMaybe<Scalars['ID']['input']>>>;
633
653
  uuid?: InputMaybe<Scalars['ID']['input']>;
634
654
  };
655
+ /** Statistics for campaign logs, including contacts contacted in past 2 weeks */
656
+ export type CampaignLogStatsType = {
657
+ __typename?: 'CampaignLogStatsType';
658
+ /** Number of contacts contacted in the past 2 weeks (via email or call) */
659
+ contactedPast2Weeks?: Maybe<Scalars['Int']['output']>;
660
+ /** Details of contacts contacted in the past 2 weeks */
661
+ contactedPast2WeeksDetails?: Maybe<Array<Maybe<RecentlyContactedContactType>>>;
662
+ /** Total number of contacts in the results */
663
+ totalContacts?: Maybe<Scalars['Int']['output']>;
664
+ };
635
665
  export type CampaignObject = {
636
666
  __typename?: 'CampaignObject';
637
667
  bounceRate?: Maybe<Scalars['Float']['output']>;
@@ -1118,6 +1148,8 @@ export type ContactObject = {
1118
1148
  isPrimary?: Maybe<Scalars['Boolean']['output']>;
1119
1149
  isProspect?: Maybe<Scalars['Boolean']['output']>;
1120
1150
  lastContactedAt?: Maybe<Scalars['DateTime']['output']>;
1151
+ lastContactedBy?: Maybe<UserType>;
1152
+ lastContactedVia?: Maybe<LastContactedViaType>;
1121
1153
  lastName?: Maybe<Scalars['String']['output']>;
1122
1154
  linkedinUrl?: Maybe<Scalars['String']['output']>;
1123
1155
  notes?: Maybe<Scalars['String']['output']>;
@@ -1484,6 +1516,24 @@ export type InviteUserInput = {
1484
1516
  /** Email address of the user to invite */
1485
1517
  email: Scalars['String']['input'];
1486
1518
  };
1519
+ /** Information about the last contact action */
1520
+ export type LastContactedViaType = {
1521
+ __typename?: 'LastContactedViaType';
1522
+ /** ID of the related object (ContactLog, CallCampaignLog, or CompanyNote) */
1523
+ actionId?: Maybe<Scalars['ID']['output']>;
1524
+ /** Type of action: 'email', 'call', or 'note' */
1525
+ actionType?: Maybe<Scalars['String']['output']>;
1526
+ /** ID of the call campaign (for action_type='call') */
1527
+ callCampaignId?: Maybe<Scalars['ID']['output']>;
1528
+ /** ID of the email campaign (for action_type='email') */
1529
+ campaignId?: Maybe<Scalars['ID']['output']>;
1530
+ /** Name of the campaign if applicable */
1531
+ campaignName?: Maybe<Scalars['String']['output']>;
1532
+ /** ID of the company note (for action_type='note') */
1533
+ noteId?: Maybe<Scalars['ID']['output']>;
1534
+ /** Type of note if action_type is 'note' */
1535
+ noteType?: Maybe<Scalars['String']['output']>;
1536
+ };
1487
1537
  /** Custom token auth mutation that includes account member isAdmin flag */
1488
1538
  export type Login = {
1489
1539
  __typename?: 'Login';
@@ -2002,6 +2052,8 @@ export type PaginatedCallCampaignLogList = {
2002
2052
  __typename?: 'PaginatedCallCampaignLogList';
2003
2053
  items?: Maybe<Array<Maybe<CallCampaignLogObject>>>;
2004
2054
  pagination?: Maybe<PaginationInfo>;
2055
+ /** Statistics about contacts contacted in past 2 weeks */
2056
+ stats?: Maybe<CallCampaignLogStatsType>;
2005
2057
  };
2006
2058
  /** Paginated list of campaign contacts with statistics */
2007
2059
  export type PaginatedCampaignContactList = {
@@ -2010,6 +2062,8 @@ export type PaginatedCampaignContactList = {
2010
2062
  items?: Maybe<Array<Maybe<CampaignContactType>>>;
2011
2063
  /** Pagination information */
2012
2064
  pagination?: Maybe<PaginationInfo>;
2065
+ /** Statistics about contacts contacted in past 2 weeks */
2066
+ stats?: Maybe<CampaignLogStatsType>;
2013
2067
  };
2014
2068
  /** Paginated list of campaigns */
2015
2069
  export type PaginatedCampaignList = {
@@ -2429,6 +2483,17 @@ export type RecentHistorySortInput = {
2429
2483
  direction?: InputMaybe<SortDirection>;
2430
2484
  field?: InputMaybe<RecentHistorySortField>;
2431
2485
  };
2486
+ /** Details of a recently contacted contact */
2487
+ export type RecentlyContactedContactType = {
2488
+ __typename?: 'RecentlyContactedContactType';
2489
+ companyName?: Maybe<Scalars['String']['output']>;
2490
+ contactId?: Maybe<Scalars['ID']['output']>;
2491
+ /** Method of contact: 'email' or 'call' */
2492
+ contactMethod?: Maybe<Scalars['String']['output']>;
2493
+ contactName?: Maybe<Scalars['String']['output']>;
2494
+ daysSinceContact?: Maybe<Scalars['Int']['output']>;
2495
+ lastContactedAt?: Maybe<Scalars['DateTime']['output']>;
2496
+ };
2432
2497
  /** RejectInvitation - Reject an invitation to join an account */
2433
2498
  export type RejectInvitation = {
2434
2499
  __typename?: 'RejectInvitation';
@@ -3626,6 +3691,24 @@ export type CreateCompanyMutation = {
3626
3691
  companyName?: string | null;
3627
3692
  companyId?: string | null;
3628
3693
  isProspect?: boolean | null;
3694
+ lastContactedBy?: {
3695
+ __typename?: 'UserType';
3696
+ id?: string | null;
3697
+ email?: string | null;
3698
+ firstName?: string | null;
3699
+ lastName?: string | null;
3700
+ picture?: string | null;
3701
+ } | null;
3702
+ lastContactedVia?: {
3703
+ __typename?: 'LastContactedViaType';
3704
+ actionType?: string | null;
3705
+ actionId?: string | null;
3706
+ campaignName?: string | null;
3707
+ campaignId?: string | null;
3708
+ callCampaignId?: string | null;
3709
+ noteType?: string | null;
3710
+ noteId?: string | null;
3711
+ } | null;
3629
3712
  contactLog?: Array<{
3630
3713
  __typename?: 'ContactLogObject';
3631
3714
  id?: string | null;
@@ -4557,6 +4640,24 @@ export type CreateContactMutation = {
4557
4640
  companyName?: string | null;
4558
4641
  companyId?: string | null;
4559
4642
  isProspect?: boolean | null;
4643
+ lastContactedBy?: {
4644
+ __typename?: 'UserType';
4645
+ id?: string | null;
4646
+ email?: string | null;
4647
+ firstName?: string | null;
4648
+ lastName?: string | null;
4649
+ picture?: string | null;
4650
+ } | null;
4651
+ lastContactedVia?: {
4652
+ __typename?: 'LastContactedViaType';
4653
+ actionType?: string | null;
4654
+ actionId?: string | null;
4655
+ campaignName?: string | null;
4656
+ campaignId?: string | null;
4657
+ callCampaignId?: string | null;
4658
+ noteType?: string | null;
4659
+ noteId?: string | null;
4660
+ } | null;
4560
4661
  contactLog?: Array<{
4561
4662
  __typename?: 'ContactLogObject';
4562
4663
  id?: string | null;
@@ -5654,6 +5755,24 @@ export type SendEmailToContactMutation = {
5654
5755
  companyName?: string | null;
5655
5756
  companyId?: string | null;
5656
5757
  isProspect?: boolean | null;
5758
+ lastContactedBy?: {
5759
+ __typename?: 'UserType';
5760
+ id?: string | null;
5761
+ email?: string | null;
5762
+ firstName?: string | null;
5763
+ lastName?: string | null;
5764
+ picture?: string | null;
5765
+ } | null;
5766
+ lastContactedVia?: {
5767
+ __typename?: 'LastContactedViaType';
5768
+ actionType?: string | null;
5769
+ actionId?: string | null;
5770
+ campaignName?: string | null;
5771
+ campaignId?: string | null;
5772
+ callCampaignId?: string | null;
5773
+ noteType?: string | null;
5774
+ noteId?: string | null;
5775
+ } | null;
5657
5776
  contactLog?: Array<{
5658
5777
  __typename?: 'ContactLogObject';
5659
5778
  id?: string | null;
@@ -6205,6 +6324,24 @@ export type UpdateCompanyMutation = {
6205
6324
  companyName?: string | null;
6206
6325
  companyId?: string | null;
6207
6326
  isProspect?: boolean | null;
6327
+ lastContactedBy?: {
6328
+ __typename?: 'UserType';
6329
+ id?: string | null;
6330
+ email?: string | null;
6331
+ firstName?: string | null;
6332
+ lastName?: string | null;
6333
+ picture?: string | null;
6334
+ } | null;
6335
+ lastContactedVia?: {
6336
+ __typename?: 'LastContactedViaType';
6337
+ actionType?: string | null;
6338
+ actionId?: string | null;
6339
+ campaignName?: string | null;
6340
+ campaignId?: string | null;
6341
+ callCampaignId?: string | null;
6342
+ noteType?: string | null;
6343
+ noteId?: string | null;
6344
+ } | null;
6208
6345
  contactLog?: Array<{
6209
6346
  __typename?: 'ContactLogObject';
6210
6347
  id?: string | null;
@@ -7136,6 +7273,24 @@ export type UpdateContactMutation = {
7136
7273
  companyName?: string | null;
7137
7274
  companyId?: string | null;
7138
7275
  isProspect?: boolean | null;
7276
+ lastContactedBy?: {
7277
+ __typename?: 'UserType';
7278
+ id?: string | null;
7279
+ email?: string | null;
7280
+ firstName?: string | null;
7281
+ lastName?: string | null;
7282
+ picture?: string | null;
7283
+ } | null;
7284
+ lastContactedVia?: {
7285
+ __typename?: 'LastContactedViaType';
7286
+ actionType?: string | null;
7287
+ actionId?: string | null;
7288
+ campaignName?: string | null;
7289
+ campaignId?: string | null;
7290
+ callCampaignId?: string | null;
7291
+ noteType?: string | null;
7292
+ noteId?: string | null;
7293
+ } | null;
7139
7294
  contactLog?: Array<{
7140
7295
  __typename?: 'ContactLogObject';
7141
7296
  id?: string | null;
@@ -7877,6 +8032,20 @@ export type CallCampaignLogsQuery = {
7877
8032
  hasNextPage?: boolean | null;
7878
8033
  hasPreviousPage?: boolean | null;
7879
8034
  } | null;
8035
+ stats?: {
8036
+ __typename?: 'CallCampaignLogStatsType';
8037
+ totalContacts?: number | null;
8038
+ contactedPast2Weeks?: number | null;
8039
+ contactedPast2WeeksDetails?: Array<{
8040
+ __typename?: 'RecentlyContactedContactType';
8041
+ contactId?: string | null;
8042
+ contactName?: string | null;
8043
+ companyName?: string | null;
8044
+ lastContactedAt?: any | null;
8045
+ daysSinceContact?: number | null;
8046
+ contactMethod?: string | null;
8047
+ } | null> | null;
8048
+ } | null;
7880
8049
  } | null;
7881
8050
  };
7882
8051
  export type CallCampaignReportQueryVariables = Exact<{
@@ -8283,6 +8452,27 @@ export type CampaignContactsQuery = {
8283
8452
  phone?: string | null;
8284
8453
  contactId?: string | null;
8285
8454
  customContactId?: string | null;
8455
+ isCustomer?: boolean | null;
8456
+ isProspect?: boolean | null;
8457
+ lastContactedAt?: any | null;
8458
+ lastContactedBy?: {
8459
+ __typename?: 'UserType';
8460
+ id?: string | null;
8461
+ email?: string | null;
8462
+ firstName?: string | null;
8463
+ lastName?: string | null;
8464
+ picture?: string | null;
8465
+ } | null;
8466
+ lastContactedVia?: {
8467
+ __typename?: 'LastContactedViaType';
8468
+ actionType?: string | null;
8469
+ actionId?: string | null;
8470
+ campaignName?: string | null;
8471
+ campaignId?: string | null;
8472
+ callCampaignId?: string | null;
8473
+ noteType?: string | null;
8474
+ noteId?: string | null;
8475
+ } | null;
8286
8476
  } | null> | null;
8287
8477
  pagination?: {
8288
8478
  __typename?: 'PaginationInfo';
@@ -8329,6 +8519,24 @@ export type CampaignLogsQuery = {
8329
8519
  companyName?: string | null;
8330
8520
  companyId?: string | null;
8331
8521
  isProspect?: boolean | null;
8522
+ lastContactedBy?: {
8523
+ __typename?: 'UserType';
8524
+ id?: string | null;
8525
+ email?: string | null;
8526
+ firstName?: string | null;
8527
+ lastName?: string | null;
8528
+ picture?: string | null;
8529
+ } | null;
8530
+ lastContactedVia?: {
8531
+ __typename?: 'LastContactedViaType';
8532
+ actionType?: string | null;
8533
+ actionId?: string | null;
8534
+ campaignName?: string | null;
8535
+ campaignId?: string | null;
8536
+ callCampaignId?: string | null;
8537
+ noteType?: string | null;
8538
+ noteId?: string | null;
8539
+ } | null;
8332
8540
  contactLog?: Array<{
8333
8541
  __typename?: 'ContactLogObject';
8334
8542
  id?: string | null;
@@ -8479,6 +8687,24 @@ export type CampaignLogsQuery = {
8479
8687
  companyName?: string | null;
8480
8688
  companyId?: string | null;
8481
8689
  isProspect?: boolean | null;
8690
+ lastContactedBy?: {
8691
+ __typename?: 'UserType';
8692
+ id?: string | null;
8693
+ email?: string | null;
8694
+ firstName?: string | null;
8695
+ lastName?: string | null;
8696
+ picture?: string | null;
8697
+ } | null;
8698
+ lastContactedVia?: {
8699
+ __typename?: 'LastContactedViaType';
8700
+ actionType?: string | null;
8701
+ actionId?: string | null;
8702
+ campaignName?: string | null;
8703
+ campaignId?: string | null;
8704
+ callCampaignId?: string | null;
8705
+ noteType?: string | null;
8706
+ noteId?: string | null;
8707
+ } | null;
8482
8708
  contactLog?: Array<{
8483
8709
  __typename?: 'ContactLogObject';
8484
8710
  id?: string | null;
@@ -8513,6 +8739,20 @@ export type CampaignLogsQuery = {
8513
8739
  hasNextPage?: boolean | null;
8514
8740
  hasPreviousPage?: boolean | null;
8515
8741
  } | null;
8742
+ stats?: {
8743
+ __typename?: 'CampaignLogStatsType';
8744
+ totalContacts?: number | null;
8745
+ contactedPast2Weeks?: number | null;
8746
+ contactedPast2WeeksDetails?: Array<{
8747
+ __typename?: 'RecentlyContactedContactType';
8748
+ contactId?: string | null;
8749
+ contactName?: string | null;
8750
+ companyName?: string | null;
8751
+ lastContactedAt?: any | null;
8752
+ daysSinceContact?: number | null;
8753
+ contactMethod?: string | null;
8754
+ } | null> | null;
8755
+ } | null;
8516
8756
  } | null;
8517
8757
  };
8518
8758
  export type CampaignStatsQueryVariables = Exact<{
@@ -8730,6 +8970,24 @@ export type CompaniesQuery = {
8730
8970
  companyName?: string | null;
8731
8971
  companyId?: string | null;
8732
8972
  isProspect?: boolean | null;
8973
+ lastContactedBy?: {
8974
+ __typename?: 'UserType';
8975
+ id?: string | null;
8976
+ email?: string | null;
8977
+ firstName?: string | null;
8978
+ lastName?: string | null;
8979
+ picture?: string | null;
8980
+ } | null;
8981
+ lastContactedVia?: {
8982
+ __typename?: 'LastContactedViaType';
8983
+ actionType?: string | null;
8984
+ actionId?: string | null;
8985
+ campaignName?: string | null;
8986
+ campaignId?: string | null;
8987
+ callCampaignId?: string | null;
8988
+ noteType?: string | null;
8989
+ noteId?: string | null;
8990
+ } | null;
8733
8991
  contactLog?: Array<{
8734
8992
  __typename?: 'ContactLogObject';
8735
8993
  id?: string | null;
@@ -9308,6 +9566,24 @@ export type CompanyQuery = {
9308
9566
  companyName?: string | null;
9309
9567
  companyId?: string | null;
9310
9568
  isProspect?: boolean | null;
9569
+ lastContactedBy?: {
9570
+ __typename?: 'UserType';
9571
+ id?: string | null;
9572
+ email?: string | null;
9573
+ firstName?: string | null;
9574
+ lastName?: string | null;
9575
+ picture?: string | null;
9576
+ } | null;
9577
+ lastContactedVia?: {
9578
+ __typename?: 'LastContactedViaType';
9579
+ actionType?: string | null;
9580
+ actionId?: string | null;
9581
+ campaignName?: string | null;
9582
+ campaignId?: string | null;
9583
+ callCampaignId?: string | null;
9584
+ noteType?: string | null;
9585
+ noteId?: string | null;
9586
+ } | null;
9311
9587
  contactLog?: Array<{
9312
9588
  __typename?: 'ContactLogObject';
9313
9589
  id?: string | null;
@@ -10554,6 +10830,24 @@ export type ContactQuery = {
10554
10830
  companyName?: string | null;
10555
10831
  companyId?: string | null;
10556
10832
  isProspect?: boolean | null;
10833
+ lastContactedBy?: {
10834
+ __typename?: 'UserType';
10835
+ id?: string | null;
10836
+ email?: string | null;
10837
+ firstName?: string | null;
10838
+ lastName?: string | null;
10839
+ picture?: string | null;
10840
+ } | null;
10841
+ lastContactedVia?: {
10842
+ __typename?: 'LastContactedViaType';
10843
+ actionType?: string | null;
10844
+ actionId?: string | null;
10845
+ campaignName?: string | null;
10846
+ campaignId?: string | null;
10847
+ callCampaignId?: string | null;
10848
+ noteType?: string | null;
10849
+ noteId?: string | null;
10850
+ } | null;
10557
10851
  contactLog?: Array<{
10558
10852
  __typename?: 'ContactLogObject';
10559
10853
  id?: string | null;
@@ -10606,6 +10900,24 @@ export type ContactsQuery = {
10606
10900
  companyName?: string | null;
10607
10901
  companyId?: string | null;
10608
10902
  isProspect?: boolean | null;
10903
+ lastContactedBy?: {
10904
+ __typename?: 'UserType';
10905
+ id?: string | null;
10906
+ email?: string | null;
10907
+ firstName?: string | null;
10908
+ lastName?: string | null;
10909
+ picture?: string | null;
10910
+ } | null;
10911
+ lastContactedVia?: {
10912
+ __typename?: 'LastContactedViaType';
10913
+ actionType?: string | null;
10914
+ actionId?: string | null;
10915
+ campaignName?: string | null;
10916
+ campaignId?: string | null;
10917
+ callCampaignId?: string | null;
10918
+ noteType?: string | null;
10919
+ noteId?: string | null;
10920
+ } | null;
10609
10921
  contactLog?: Array<{
10610
10922
  __typename?: 'ContactLogObject';
10611
10923
  id?: string | null;
@@ -10661,6 +10973,24 @@ export type ContactsInSegmentQuery = {
10661
10973
  companyName?: string | null;
10662
10974
  companyId?: string | null;
10663
10975
  isProspect?: boolean | null;
10976
+ lastContactedBy?: {
10977
+ __typename?: 'UserType';
10978
+ id?: string | null;
10979
+ email?: string | null;
10980
+ firstName?: string | null;
10981
+ lastName?: string | null;
10982
+ picture?: string | null;
10983
+ } | null;
10984
+ lastContactedVia?: {
10985
+ __typename?: 'LastContactedViaType';
10986
+ actionType?: string | null;
10987
+ actionId?: string | null;
10988
+ campaignName?: string | null;
10989
+ campaignId?: string | null;
10990
+ callCampaignId?: string | null;
10991
+ noteType?: string | null;
10992
+ noteId?: string | null;
10993
+ } | null;
10664
10994
  contactLog?: Array<{
10665
10995
  __typename?: 'ContactLogObject';
10666
10996
  id?: string | null;
@@ -11037,6 +11367,24 @@ export type RecentHistoryQuery = {
11037
11367
  companyName?: string | null;
11038
11368
  companyId?: string | null;
11039
11369
  isProspect?: boolean | null;
11370
+ lastContactedBy?: {
11371
+ __typename?: 'UserType';
11372
+ id?: string | null;
11373
+ email?: string | null;
11374
+ firstName?: string | null;
11375
+ lastName?: string | null;
11376
+ picture?: string | null;
11377
+ } | null;
11378
+ lastContactedVia?: {
11379
+ __typename?: 'LastContactedViaType';
11380
+ actionType?: string | null;
11381
+ actionId?: string | null;
11382
+ campaignName?: string | null;
11383
+ campaignId?: string | null;
11384
+ callCampaignId?: string | null;
11385
+ noteType?: string | null;
11386
+ noteId?: string | null;
11387
+ } | null;
11040
11388
  contactLog?: Array<{
11041
11389
  __typename?: 'ContactLogObject';
11042
11390
  id?: string | null;
@@ -11158,6 +11506,24 @@ export type RecentHistoryQuery = {
11158
11506
  companyName?: string | null;
11159
11507
  companyId?: string | null;
11160
11508
  isProspect?: boolean | null;
11509
+ lastContactedBy?: {
11510
+ __typename?: 'UserType';
11511
+ id?: string | null;
11512
+ email?: string | null;
11513
+ firstName?: string | null;
11514
+ lastName?: string | null;
11515
+ picture?: string | null;
11516
+ } | null;
11517
+ lastContactedVia?: {
11518
+ __typename?: 'LastContactedViaType';
11519
+ actionType?: string | null;
11520
+ actionId?: string | null;
11521
+ campaignName?: string | null;
11522
+ campaignId?: string | null;
11523
+ callCampaignId?: string | null;
11524
+ noteType?: string | null;
11525
+ noteId?: string | null;
11526
+ } | null;
11161
11527
  contactLog?: Array<{
11162
11528
  __typename?: 'ContactLogObject';
11163
11529
  id?: string | null;
@@ -11651,6 +12017,24 @@ export type SearchContactsQuery = {
11651
12017
  companyName?: string | null;
11652
12018
  companyId?: string | null;
11653
12019
  isProspect?: boolean | null;
12020
+ lastContactedBy?: {
12021
+ __typename?: 'UserType';
12022
+ id?: string | null;
12023
+ email?: string | null;
12024
+ firstName?: string | null;
12025
+ lastName?: string | null;
12026
+ picture?: string | null;
12027
+ } | null;
12028
+ lastContactedVia?: {
12029
+ __typename?: 'LastContactedViaType';
12030
+ actionType?: string | null;
12031
+ actionId?: string | null;
12032
+ campaignName?: string | null;
12033
+ campaignId?: string | null;
12034
+ callCampaignId?: string | null;
12035
+ noteType?: string | null;
12036
+ noteId?: string | null;
12037
+ } | null;
11654
12038
  contactLog?: Array<{
11655
12039
  __typename?: 'ContactLogObject';
11656
12040
  id?: string | null;
@@ -1472,6 +1472,22 @@ exports.CreateCompanyDocument = (0, client_1.gql) `
1472
1472
  isCustomer
1473
1473
  notes
1474
1474
  lastContactedAt
1475
+ lastContactedBy {
1476
+ id
1477
+ email
1478
+ firstName
1479
+ lastName
1480
+ picture
1481
+ }
1482
+ lastContactedVia {
1483
+ actionType
1484
+ actionId
1485
+ campaignName
1486
+ campaignId
1487
+ callCampaignId
1488
+ noteType
1489
+ noteId
1490
+ }
1475
1491
  ownedByUser
1476
1492
  contactLog {
1477
1493
  id
@@ -2377,6 +2393,22 @@ exports.CreateContactDocument = (0, client_1.gql) `
2377
2393
  isCustomer
2378
2394
  notes
2379
2395
  lastContactedAt
2396
+ lastContactedBy {
2397
+ id
2398
+ email
2399
+ firstName
2400
+ lastName
2401
+ picture
2402
+ }
2403
+ lastContactedVia {
2404
+ actionType
2405
+ actionId
2406
+ campaignName
2407
+ campaignId
2408
+ callCampaignId
2409
+ noteType
2410
+ noteId
2411
+ }
2380
2412
  ownedByUser
2381
2413
  contactLog {
2382
2414
  id
@@ -4030,6 +4062,22 @@ exports.SendEmailToContactDocument = (0, client_1.gql) `
4030
4062
  isCustomer
4031
4063
  notes
4032
4064
  lastContactedAt
4065
+ lastContactedBy {
4066
+ id
4067
+ email
4068
+ firstName
4069
+ lastName
4070
+ picture
4071
+ }
4072
+ lastContactedVia {
4073
+ actionType
4074
+ actionId
4075
+ campaignName
4076
+ campaignId
4077
+ callCampaignId
4078
+ noteType
4079
+ noteId
4080
+ }
4033
4081
  ownedByUser
4034
4082
  contactLog {
4035
4083
  id
@@ -4749,6 +4797,22 @@ exports.UpdateCompanyDocument = (0, client_1.gql) `
4749
4797
  isCustomer
4750
4798
  notes
4751
4799
  lastContactedAt
4800
+ lastContactedBy {
4801
+ id
4802
+ email
4803
+ firstName
4804
+ lastName
4805
+ picture
4806
+ }
4807
+ lastContactedVia {
4808
+ actionType
4809
+ actionId
4810
+ campaignName
4811
+ campaignId
4812
+ callCampaignId
4813
+ noteType
4814
+ noteId
4815
+ }
4752
4816
  ownedByUser
4753
4817
  contactLog {
4754
4818
  id
@@ -5654,6 +5718,22 @@ exports.UpdateContactDocument = (0, client_1.gql) `
5654
5718
  isCustomer
5655
5719
  notes
5656
5720
  lastContactedAt
5721
+ lastContactedBy {
5722
+ id
5723
+ email
5724
+ firstName
5725
+ lastName
5726
+ picture
5727
+ }
5728
+ lastContactedVia {
5729
+ actionType
5730
+ actionId
5731
+ campaignName
5732
+ campaignId
5733
+ callCampaignId
5734
+ noteType
5735
+ noteId
5736
+ }
5657
5737
  ownedByUser
5658
5738
  contactLog {
5659
5739
  id
@@ -6614,6 +6694,18 @@ exports.CallCampaignLogsDocument = (0, client_1.gql) `
6614
6694
  hasNextPage
6615
6695
  hasPreviousPage
6616
6696
  }
6697
+ stats {
6698
+ totalContacts
6699
+ contactedPast2Weeks
6700
+ contactedPast2WeeksDetails {
6701
+ contactId
6702
+ contactName
6703
+ companyName
6704
+ lastContactedAt
6705
+ daysSinceContact
6706
+ contactMethod
6707
+ }
6708
+ }
6617
6709
  }
6618
6710
  }
6619
6711
  `;
@@ -7120,6 +7212,25 @@ exports.CampaignContactsDocument = (0, client_1.gql) `
7120
7212
  phone
7121
7213
  contactId
7122
7214
  customContactId
7215
+ isCustomer
7216
+ isProspect
7217
+ lastContactedAt
7218
+ lastContactedBy {
7219
+ id
7220
+ email
7221
+ firstName
7222
+ lastName
7223
+ picture
7224
+ }
7225
+ lastContactedVia {
7226
+ actionType
7227
+ actionId
7228
+ campaignName
7229
+ campaignId
7230
+ callCampaignId
7231
+ noteType
7232
+ noteId
7233
+ }
7123
7234
  }
7124
7235
  pagination {
7125
7236
  currentPage
@@ -7184,6 +7295,22 @@ exports.CampaignLogsDocument = (0, client_1.gql) `
7184
7295
  isCustomer
7185
7296
  notes
7186
7297
  lastContactedAt
7298
+ lastContactedBy {
7299
+ id
7300
+ email
7301
+ firstName
7302
+ lastName
7303
+ picture
7304
+ }
7305
+ lastContactedVia {
7306
+ actionType
7307
+ actionId
7308
+ campaignName
7309
+ campaignId
7310
+ callCampaignId
7311
+ noteType
7312
+ noteId
7313
+ }
7187
7314
  ownedByUser
7188
7315
  contactLog {
7189
7316
  id
@@ -7308,6 +7435,22 @@ exports.CampaignLogsDocument = (0, client_1.gql) `
7308
7435
  isCustomer
7309
7436
  notes
7310
7437
  lastContactedAt
7438
+ lastContactedBy {
7439
+ id
7440
+ email
7441
+ firstName
7442
+ lastName
7443
+ picture
7444
+ }
7445
+ lastContactedVia {
7446
+ actionType
7447
+ actionId
7448
+ campaignName
7449
+ campaignId
7450
+ callCampaignId
7451
+ noteType
7452
+ noteId
7453
+ }
7311
7454
  ownedByUser
7312
7455
  contactLog {
7313
7456
  id
@@ -7358,6 +7501,18 @@ exports.CampaignLogsDocument = (0, client_1.gql) `
7358
7501
  hasNextPage
7359
7502
  hasPreviousPage
7360
7503
  }
7504
+ stats {
7505
+ totalContacts
7506
+ contactedPast2Weeks
7507
+ contactedPast2WeeksDetails {
7508
+ contactId
7509
+ contactName
7510
+ companyName
7511
+ lastContactedAt
7512
+ daysSinceContact
7513
+ contactMethod
7514
+ }
7515
+ }
7361
7516
  }
7362
7517
  }
7363
7518
  `;
@@ -7626,6 +7781,22 @@ exports.CompaniesDocument = (0, client_1.gql) `
7626
7781
  isCustomer
7627
7782
  notes
7628
7783
  lastContactedAt
7784
+ lastContactedBy {
7785
+ id
7786
+ email
7787
+ firstName
7788
+ lastName
7789
+ picture
7790
+ }
7791
+ lastContactedVia {
7792
+ actionType
7793
+ actionId
7794
+ campaignName
7795
+ campaignId
7796
+ callCampaignId
7797
+ noteType
7798
+ noteId
7799
+ }
7629
7800
  ownedByUser
7630
7801
  contactLog {
7631
7802
  id
@@ -8186,6 +8357,22 @@ exports.CompanyDocument = (0, client_1.gql) `
8186
8357
  isCustomer
8187
8358
  notes
8188
8359
  lastContactedAt
8360
+ lastContactedBy {
8361
+ id
8362
+ email
8363
+ firstName
8364
+ lastName
8365
+ picture
8366
+ }
8367
+ lastContactedVia {
8368
+ actionType
8369
+ actionId
8370
+ campaignName
8371
+ campaignId
8372
+ callCampaignId
8373
+ noteType
8374
+ noteId
8375
+ }
8189
8376
  ownedByUser
8190
8377
  contactLog {
8191
8378
  id
@@ -9426,6 +9613,22 @@ exports.ContactDocument = (0, client_1.gql) `
9426
9613
  isCustomer
9427
9614
  notes
9428
9615
  lastContactedAt
9616
+ lastContactedBy {
9617
+ id
9618
+ email
9619
+ firstName
9620
+ lastName
9621
+ picture
9622
+ }
9623
+ lastContactedVia {
9624
+ actionType
9625
+ actionId
9626
+ campaignName
9627
+ campaignId
9628
+ callCampaignId
9629
+ noteType
9630
+ noteId
9631
+ }
9429
9632
  ownedByUser
9430
9633
  contactLog {
9431
9634
  id
@@ -9500,6 +9703,22 @@ exports.ContactsDocument = (0, client_1.gql) `
9500
9703
  isCustomer
9501
9704
  notes
9502
9705
  lastContactedAt
9706
+ lastContactedBy {
9707
+ id
9708
+ email
9709
+ firstName
9710
+ lastName
9711
+ picture
9712
+ }
9713
+ lastContactedVia {
9714
+ actionType
9715
+ actionId
9716
+ campaignName
9717
+ campaignId
9718
+ callCampaignId
9719
+ noteType
9720
+ noteId
9721
+ }
9503
9722
  ownedByUser
9504
9723
  contactLog {
9505
9724
  id
@@ -9574,6 +9793,22 @@ exports.ContactsInSegmentDocument = (0, client_1.gql) `
9574
9793
  isCustomer
9575
9794
  notes
9576
9795
  lastContactedAt
9796
+ lastContactedBy {
9797
+ id
9798
+ email
9799
+ firstName
9800
+ lastName
9801
+ picture
9802
+ }
9803
+ lastContactedVia {
9804
+ actionType
9805
+ actionId
9806
+ campaignName
9807
+ campaignId
9808
+ callCampaignId
9809
+ noteType
9810
+ noteId
9811
+ }
9577
9812
  ownedByUser
9578
9813
  contactLog {
9579
9814
  id
@@ -10334,6 +10569,22 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
10334
10569
  isCustomer
10335
10570
  notes
10336
10571
  lastContactedAt
10572
+ lastContactedBy {
10573
+ id
10574
+ email
10575
+ firstName
10576
+ lastName
10577
+ picture
10578
+ }
10579
+ lastContactedVia {
10580
+ actionType
10581
+ actionId
10582
+ campaignName
10583
+ campaignId
10584
+ callCampaignId
10585
+ noteType
10586
+ noteId
10587
+ }
10337
10588
  ownedByUser
10338
10589
  contactLog {
10339
10590
  id
@@ -10439,6 +10690,22 @@ exports.RecentHistoryDocument = (0, client_1.gql) `
10439
10690
  isCustomer
10440
10691
  notes
10441
10692
  lastContactedAt
10693
+ lastContactedBy {
10694
+ id
10695
+ email
10696
+ firstName
10697
+ lastName
10698
+ picture
10699
+ }
10700
+ lastContactedVia {
10701
+ actionType
10702
+ actionId
10703
+ campaignName
10704
+ campaignId
10705
+ callCampaignId
10706
+ noteType
10707
+ noteId
10708
+ }
10442
10709
  ownedByUser
10443
10710
  contactLog {
10444
10711
  id
@@ -10964,6 +11231,22 @@ exports.SearchContactsDocument = (0, client_1.gql) `
10964
11231
  isCustomer
10965
11232
  notes
10966
11233
  lastContactedAt
11234
+ lastContactedBy {
11235
+ id
11236
+ email
11237
+ firstName
11238
+ lastName
11239
+ picture
11240
+ }
11241
+ lastContactedVia {
11242
+ actionType
11243
+ actionId
11244
+ campaignName
11245
+ campaignId
11246
+ callCampaignId
11247
+ noteType
11248
+ noteId
11249
+ }
10967
11250
  ownedByUser
10968
11251
  contactLog {
10969
11252
  id
package/dist/mutations.js CHANGED
@@ -210,6 +210,22 @@ mutation CreateContact($input: ContactInput) {
210
210
  isCustomer
211
211
  notes
212
212
  lastContactedAt
213
+ lastContactedBy {
214
+ id
215
+ email
216
+ firstName
217
+ lastName
218
+ picture
219
+ }
220
+ lastContactedVia {
221
+ actionType
222
+ actionId
223
+ campaignName
224
+ campaignId
225
+ callCampaignId
226
+ noteType
227
+ noteId
228
+ }
213
229
  ownedByUser
214
230
  contactLog {
215
231
  id
@@ -257,6 +273,22 @@ mutation UpdateContact($input: ContactInput) {
257
273
  isCustomer
258
274
  notes
259
275
  lastContactedAt
276
+ lastContactedBy {
277
+ id
278
+ email
279
+ firstName
280
+ lastName
281
+ picture
282
+ }
283
+ lastContactedVia {
284
+ actionType
285
+ actionId
286
+ campaignName
287
+ campaignId
288
+ callCampaignId
289
+ noteType
290
+ noteId
291
+ }
260
292
  ownedByUser
261
293
  contactLog {
262
294
  id
@@ -373,6 +405,22 @@ mutation CreateCompany($input: CompanyInput) {
373
405
  isCustomer
374
406
  notes
375
407
  lastContactedAt
408
+ lastContactedBy {
409
+ id
410
+ email
411
+ firstName
412
+ lastName
413
+ picture
414
+ }
415
+ lastContactedVia {
416
+ actionType
417
+ actionId
418
+ campaignName
419
+ campaignId
420
+ callCampaignId
421
+ noteType
422
+ noteId
423
+ }
376
424
  ownedByUser
377
425
  contactLog {
378
426
  id
@@ -997,6 +1045,22 @@ mutation UpdateCompany($input: CompanyInput) {
997
1045
  isCustomer
998
1046
  notes
999
1047
  lastContactedAt
1048
+ lastContactedBy {
1049
+ id
1050
+ email
1051
+ firstName
1052
+ lastName
1053
+ picture
1054
+ }
1055
+ lastContactedVia {
1056
+ actionType
1057
+ actionId
1058
+ campaignName
1059
+ campaignId
1060
+ callCampaignId
1061
+ noteType
1062
+ noteId
1063
+ }
1000
1064
  ownedByUser
1001
1065
  contactLog {
1002
1066
  id
@@ -2362,6 +2426,22 @@ mutation SendEmailToContact($campaignId: ID, $contactId: ID!, $segmentId: ID, $s
2362
2426
  isCustomer
2363
2427
  notes
2364
2428
  lastContactedAt
2429
+ lastContactedBy {
2430
+ id
2431
+ email
2432
+ firstName
2433
+ lastName
2434
+ picture
2435
+ }
2436
+ lastContactedVia {
2437
+ actionType
2438
+ actionId
2439
+ campaignName
2440
+ campaignId
2441
+ callCampaignId
2442
+ noteType
2443
+ noteId
2444
+ }
2365
2445
  ownedByUser
2366
2446
  contactLog {
2367
2447
  id
package/dist/queries.js CHANGED
@@ -54,6 +54,22 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
54
54
  isCustomer
55
55
  notes
56
56
  lastContactedAt
57
+ lastContactedBy {
58
+ id
59
+ email
60
+ firstName
61
+ lastName
62
+ picture
63
+ }
64
+ lastContactedVia {
65
+ actionType
66
+ actionId
67
+ campaignName
68
+ campaignId
69
+ callCampaignId
70
+ noteType
71
+ noteId
72
+ }
57
73
  ownedByUser
58
74
  contactLog {
59
75
  id
@@ -159,6 +175,22 @@ query RecentHistory($filter: RecentHistoryFilterInput, $sort: RecentHistorySortI
159
175
  isCustomer
160
176
  notes
161
177
  lastContactedAt
178
+ lastContactedBy {
179
+ id
180
+ email
181
+ firstName
182
+ lastName
183
+ picture
184
+ }
185
+ lastContactedVia {
186
+ actionType
187
+ actionId
188
+ campaignName
189
+ campaignId
190
+ callCampaignId
191
+ noteType
192
+ noteId
193
+ }
162
194
  ownedByUser
163
195
  contactLog {
164
196
  id
@@ -1467,6 +1499,18 @@ query CallCampaignLogs($callCampaignId: ID!, $pagination: PaginationInput!, $sea
1467
1499
  hasNextPage
1468
1500
  hasPreviousPage
1469
1501
  }
1502
+ stats {
1503
+ totalContacts
1504
+ contactedPast2Weeks
1505
+ contactedPast2WeeksDetails {
1506
+ contactId
1507
+ contactName
1508
+ companyName
1509
+ lastContactedAt
1510
+ daysSinceContact
1511
+ contactMethod
1512
+ }
1513
+ }
1470
1514
  }
1471
1515
  }`;
1472
1516
  exports.CALL_CAMPAIGN_LOG = (0, client_1.gql) `
@@ -2371,6 +2415,22 @@ query CampaignLogs($campaignId: ID!, $pagination: PaginationInput!, $search: Str
2371
2415
  isCustomer
2372
2416
  notes
2373
2417
  lastContactedAt
2418
+ lastContactedBy {
2419
+ id
2420
+ email
2421
+ firstName
2422
+ lastName
2423
+ picture
2424
+ }
2425
+ lastContactedVia {
2426
+ actionType
2427
+ actionId
2428
+ campaignName
2429
+ campaignId
2430
+ callCampaignId
2431
+ noteType
2432
+ noteId
2433
+ }
2374
2434
  ownedByUser
2375
2435
  contactLog {
2376
2436
  id
@@ -2495,6 +2555,22 @@ query CampaignLogs($campaignId: ID!, $pagination: PaginationInput!, $search: Str
2495
2555
  isCustomer
2496
2556
  notes
2497
2557
  lastContactedAt
2558
+ lastContactedBy {
2559
+ id
2560
+ email
2561
+ firstName
2562
+ lastName
2563
+ picture
2564
+ }
2565
+ lastContactedVia {
2566
+ actionType
2567
+ actionId
2568
+ campaignName
2569
+ campaignId
2570
+ callCampaignId
2571
+ noteType
2572
+ noteId
2573
+ }
2498
2574
  ownedByUser
2499
2575
  contactLog {
2500
2576
  id
@@ -2545,6 +2621,18 @@ query CampaignLogs($campaignId: ID!, $pagination: PaginationInput!, $search: Str
2545
2621
  hasNextPage
2546
2622
  hasPreviousPage
2547
2623
  }
2624
+ stats {
2625
+ totalContacts
2626
+ contactedPast2Weeks
2627
+ contactedPast2WeeksDetails {
2628
+ contactId
2629
+ contactName
2630
+ companyName
2631
+ lastContactedAt
2632
+ daysSinceContact
2633
+ contactMethod
2634
+ }
2635
+ }
2548
2636
  }
2549
2637
  }`;
2550
2638
  exports.CAMPAIGN_CONTACTS = (0, client_1.gql) `
@@ -2563,6 +2651,25 @@ query CampaignContacts($campaignUuid: ID!, $page: Int, $pageSize: Int) {
2563
2651
  phone
2564
2652
  contactId
2565
2653
  customContactId
2654
+ isCustomer
2655
+ isProspect
2656
+ lastContactedAt
2657
+ lastContactedBy {
2658
+ id
2659
+ email
2660
+ firstName
2661
+ lastName
2662
+ picture
2663
+ }
2664
+ lastContactedVia {
2665
+ actionType
2666
+ actionId
2667
+ campaignName
2668
+ campaignId
2669
+ callCampaignId
2670
+ noteType
2671
+ noteId
2672
+ }
2566
2673
  }
2567
2674
  pagination {
2568
2675
  currentPage
@@ -2639,6 +2746,22 @@ query ContactsInSegment($segmentId: ID!, $pagination: PaginationInput) {
2639
2746
  isCustomer
2640
2747
  notes
2641
2748
  lastContactedAt
2749
+ lastContactedBy {
2750
+ id
2751
+ email
2752
+ firstName
2753
+ lastName
2754
+ picture
2755
+ }
2756
+ lastContactedVia {
2757
+ actionType
2758
+ actionId
2759
+ campaignName
2760
+ campaignId
2761
+ callCampaignId
2762
+ noteType
2763
+ noteId
2764
+ }
2642
2765
  ownedByUser
2643
2766
  contactLog {
2644
2767
  id
@@ -2757,6 +2880,22 @@ query Companies($filters: CompanyFilterInput, $pagination: PaginationInput, $sor
2757
2880
  isCustomer
2758
2881
  notes
2759
2882
  lastContactedAt
2883
+ lastContactedBy {
2884
+ id
2885
+ email
2886
+ firstName
2887
+ lastName
2888
+ picture
2889
+ }
2890
+ lastContactedVia {
2891
+ actionType
2892
+ actionId
2893
+ campaignName
2894
+ campaignId
2895
+ callCampaignId
2896
+ noteType
2897
+ noteId
2898
+ }
2760
2899
  ownedByUser
2761
2900
  contactLog {
2762
2901
  id
@@ -3223,6 +3362,22 @@ query Contacts {
3223
3362
  isCustomer
3224
3363
  notes
3225
3364
  lastContactedAt
3365
+ lastContactedBy {
3366
+ id
3367
+ email
3368
+ firstName
3369
+ lastName
3370
+ picture
3371
+ }
3372
+ lastContactedVia {
3373
+ actionType
3374
+ actionId
3375
+ campaignName
3376
+ campaignId
3377
+ callCampaignId
3378
+ noteType
3379
+ noteId
3380
+ }
3226
3381
  ownedByUser
3227
3382
  contactLog {
3228
3383
  id
@@ -3269,6 +3424,22 @@ query SearchContacts($filters: ContactFilterInput, $pagination: PaginationInput,
3269
3424
  isCustomer
3270
3425
  notes
3271
3426
  lastContactedAt
3427
+ lastContactedBy {
3428
+ id
3429
+ email
3430
+ firstName
3431
+ lastName
3432
+ picture
3433
+ }
3434
+ lastContactedVia {
3435
+ actionType
3436
+ actionId
3437
+ campaignName
3438
+ campaignId
3439
+ callCampaignId
3440
+ noteType
3441
+ noteId
3442
+ }
3272
3443
  ownedByUser
3273
3444
  contactLog {
3274
3445
  id
@@ -3386,6 +3557,22 @@ query Company($id: String) {
3386
3557
  isCustomer
3387
3558
  notes
3388
3559
  lastContactedAt
3560
+ lastContactedBy {
3561
+ id
3562
+ email
3563
+ firstName
3564
+ lastName
3565
+ picture
3566
+ }
3567
+ lastContactedVia {
3568
+ actionType
3569
+ actionId
3570
+ campaignName
3571
+ campaignId
3572
+ callCampaignId
3573
+ noteType
3574
+ noteId
3575
+ }
3389
3576
  ownedByUser
3390
3577
  contactLog {
3391
3578
  id
@@ -3945,6 +4132,22 @@ query Contact($id: String) {
3945
4132
  isCustomer
3946
4133
  notes
3947
4134
  lastContactedAt
4135
+ lastContactedBy {
4136
+ id
4137
+ email
4138
+ firstName
4139
+ lastName
4140
+ picture
4141
+ }
4142
+ lastContactedVia {
4143
+ actionType
4144
+ actionId
4145
+ campaignName
4146
+ campaignId
4147
+ callCampaignId
4148
+ noteType
4149
+ noteId
4150
+ }
3948
4151
  ownedByUser
3949
4152
  contactLog {
3950
4153
  id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-service-sdk",
3
- "version": "0.0.49",
3
+ "version": "0.0.51",
4
4
  "type": "commonjs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",