cf-service-sdk 0.0.1

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.
@@ -0,0 +1,3700 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CREATE_TASK = exports.DELETE_NOTIFICATION = exports.MARK_ALL_NOTIFICATIONS_AS_READ = exports.MARK_NOTIFICATION_AS_READ = exports.CREATE_NOTIFICATION = exports.DISCONNECT_NYLAS_INTEGRATION = exports.SAVE_NYLAS_CONNECTION = exports.DELETE_EMAIL_TEMPLATE = exports.UPDATE_EMAIL_TEMPLATE = exports.CREATE_EMAIL_TEMPLATE = exports.PREVIEW_CAMPAIGN_EMAIL = exports.SCHEDULE_CAMPAIGN = exports.SEND_EMAIL_TO_CONTACT = exports.SEND_TEST_EMAIL = exports.CANCEL_CAMPAIGN = exports.COMPLETE_CAMPAIGN = exports.PAUSE_CAMPAIGN = exports.START_CAMPAIGN = exports.REMOVE_SEGMENT_FROM_CAMPAIGN = exports.ADD_SEGMENT_TO_CAMPAIGN = exports.DELETE_CAMPAIGN = exports.UPDATE_CAMPAIGN = exports.CREATE_CAMPAIGN = exports.REMOVE_CONTACTS_FROM_SEGMENT = exports.ADD_CONTACTS_TO_SEGMENT = exports.DELETE_SEGMENT = exports.UPDATE_SEGMENT = exports.CREATE_SEGMENT = exports.DELETE_COMPANY = exports.UPDATE_COMPANY = exports.CREATE_COMPANY = exports.DELETE_CONTACT = exports.UPDATE_CONTACT = exports.CREATE_CONTACT = exports.SUBMIT_FEEDBACK = exports.LOGIN_WITH_MICROSOFT = exports.LOGIN_WITH_GOOGLE = exports.UNSUBSCRIBE_FROM_EMAILS = exports.VALIDATE_OTP_AND_RESET_PASSWORD = exports.CHANGE_PASSWORD = exports.UPDATE_USER_PROFILE = exports.LOGIN = exports.CANCEL_INVITATION = exports.REMOVE_MEMBER = exports.REJECT_INVITATION = exports.ACCEPT_INVITATION = exports.INVITE_USER = exports.UPLOAD_FILE = exports.FORGOT_PASSWORD = exports.SIGNUP = void 0;
4
+ exports.UPDATE_CALL_CAMPAIGN_LOG = exports.CREATE_CALL_CAMPAIGN_LOG = exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = exports.DELETE_CALL_CAMPAIGN = exports.UPDATE_CALL_CAMPAIGN = exports.CREATE_CALL_CAMPAIGN = exports.DELETE_TASK = exports.UPDATE_TASK = void 0;
5
+ const client_1 = require("@apollo/client");
6
+ exports.SIGNUP = (0, client_1.gql) `
7
+ mutation Signup($input: SignupInput!) {
8
+ signup(input: $input) {
9
+ success
10
+ message
11
+ accountId
12
+ userId
13
+ }
14
+ }`;
15
+ exports.FORGOT_PASSWORD = (0, client_1.gql) `
16
+ mutation ForgotPassword($email: String!) {
17
+ forgotPassword(email: $email) {
18
+ success
19
+ message
20
+ }
21
+ }`;
22
+ exports.UPLOAD_FILE = (0, client_1.gql) `
23
+ mutation UploadFile($input: FileUploadInput!) {
24
+ uploadFile(input: $input) {
25
+ success
26
+ message
27
+ fileUrl
28
+ }
29
+ }`;
30
+ exports.INVITE_USER = (0, client_1.gql) `
31
+ mutation InviteUser($input: InviteUserInput!) {
32
+ inviteUser(input: $input) {
33
+ success
34
+ message
35
+ invitation {
36
+ email
37
+ status
38
+ }
39
+ }
40
+ }`;
41
+ exports.ACCEPT_INVITATION = (0, client_1.gql) `
42
+ mutation AcceptInvitation($input: InvitationResponseInput!) {
43
+ acceptInvitation(input: $input) {
44
+ success
45
+ message
46
+ account {
47
+ id
48
+ name
49
+ isActive
50
+ createdAt
51
+ updatedAt
52
+ }
53
+ }
54
+ }`;
55
+ exports.REJECT_INVITATION = (0, client_1.gql) `
56
+ mutation RejectInvitation($input: InvitationResponseInput!) {
57
+ rejectInvitation(input: $input) {
58
+ success
59
+ message
60
+ }
61
+ }`;
62
+ exports.REMOVE_MEMBER = (0, client_1.gql) `
63
+ mutation RemoveMember($accountId: ID!, $memberId: ID!) {
64
+ removeMember(accountId: $accountId, memberId: $memberId) {
65
+ success
66
+ message
67
+ }
68
+ }`;
69
+ exports.CANCEL_INVITATION = (0, client_1.gql) `
70
+ mutation CancelInvitation($invitationId: ID!) {
71
+ cancelInvitation(invitationId: $invitationId) {
72
+ success
73
+ message
74
+ }
75
+ }`;
76
+ exports.LOGIN = (0, client_1.gql) `
77
+ mutation Login($email: String!, $password: String!) {
78
+ login(email: $email, password: $password) {
79
+ id
80
+ account {
81
+ id
82
+ name
83
+ isActive
84
+ createdAt
85
+ updatedAt
86
+ }
87
+ email
88
+ token
89
+ isAdmin
90
+ accountId
91
+ payload
92
+ refreshToken
93
+ }
94
+ }`;
95
+ exports.UPDATE_USER_PROFILE = (0, client_1.gql) `
96
+ mutation UpdateUserProfile($input: UserProfileInput!) {
97
+ updateUserProfile(input: $input) {
98
+ userProfile {
99
+ id
100
+ firstName
101
+ lastName
102
+ phoneNumber
103
+ timezone
104
+ createdAt
105
+ updatedAt
106
+ emailSignature
107
+ user {
108
+ id
109
+ email
110
+ firstName
111
+ lastName
112
+ picture
113
+ }
114
+ }
115
+ success
116
+ message
117
+ }
118
+ }`;
119
+ exports.CHANGE_PASSWORD = (0, client_1.gql) `
120
+ mutation ChangePassword($newPassword: String!) {
121
+ changePassword(newPassword: $newPassword) {
122
+ success
123
+ message
124
+ }
125
+ }`;
126
+ exports.VALIDATE_OTP_AND_RESET_PASSWORD = (0, client_1.gql) `
127
+ mutation ValidateOtpAndResetPassword($email: String!, $newPassword: String!, $otpCode: String!) {
128
+ validateOtpAndResetPassword(email: $email, newPassword: $newPassword, otpCode: $otpCode) {
129
+ success
130
+ message
131
+ }
132
+ }`;
133
+ exports.UNSUBSCRIBE_FROM_EMAILS = (0, client_1.gql) `
134
+ mutation UnsubscribeFromEmails($emailHash: String!, $source: String!) {
135
+ unsubscribeFromEmails(emailHash: $emailHash, source: $source) {
136
+ success
137
+ message
138
+ }
139
+ }`;
140
+ exports.LOGIN_WITH_GOOGLE = (0, client_1.gql) `
141
+ mutation LoginWithGoogle($token: String!, $user: UserTypeInput) {
142
+ loginWithGoogle(token: $token, user: $user) {
143
+ token
144
+ user {
145
+ id
146
+ email
147
+ firstName
148
+ lastName
149
+ picture
150
+ }
151
+ account {
152
+ id
153
+ name
154
+ isActive
155
+ createdAt
156
+ updatedAt
157
+ }
158
+ success
159
+ message
160
+ }
161
+ }`;
162
+ exports.LOGIN_WITH_MICROSOFT = (0, client_1.gql) `
163
+ mutation LoginWithMicrosoft($accessToken: String!, $userData: MicrosoftUserInput) {
164
+ loginWithMicrosoft(accessToken: $accessToken, userData: $userData) {
165
+ token
166
+ user {
167
+ id
168
+ email
169
+ firstName
170
+ lastName
171
+ picture
172
+ }
173
+ account {
174
+ id
175
+ name
176
+ isActive
177
+ createdAt
178
+ updatedAt
179
+ }
180
+ success
181
+ message
182
+ }
183
+ }`;
184
+ exports.SUBMIT_FEEDBACK = (0, client_1.gql) `
185
+ mutation SubmitFeedback($input: FeedbackInput!) {
186
+ submitFeedback(input: $input) {
187
+ success
188
+ message
189
+ }
190
+ }`;
191
+ exports.CREATE_CONTACT = (0, client_1.gql) `
192
+ mutation CreateContact($input: ContactInput) {
193
+ createContact(input: $input) {
194
+ contact {
195
+ id
196
+ name
197
+ firstName
198
+ lastName
199
+ email
200
+ workEmail
201
+ workEmail2
202
+ personalEmail
203
+ personalEmail2
204
+ phone
205
+ phone2
206
+ phone3
207
+ title
208
+ linkedinUrl
209
+ isPrimary
210
+ isCustomer
211
+ notes
212
+ lastContactedAt
213
+ ownedByUser
214
+ contactLog {
215
+ id
216
+ sentAt
217
+ openedAt
218
+ clickedAt
219
+ bouncedAt
220
+ status
221
+ }
222
+ inSegments {
223
+ id
224
+ name
225
+ state
226
+ industry
227
+ }
228
+ companyName
229
+ stats {
230
+ totalOpened
231
+ totalReplied
232
+ totalBounced
233
+ }
234
+ }
235
+ }
236
+ }`;
237
+ exports.UPDATE_CONTACT = (0, client_1.gql) `
238
+ mutation UpdateContact($input: ContactInput) {
239
+ updateContact(input: $input) {
240
+ contact {
241
+ id
242
+ name
243
+ firstName
244
+ lastName
245
+ email
246
+ workEmail
247
+ workEmail2
248
+ personalEmail
249
+ personalEmail2
250
+ phone
251
+ phone2
252
+ phone3
253
+ title
254
+ linkedinUrl
255
+ isPrimary
256
+ isCustomer
257
+ notes
258
+ lastContactedAt
259
+ ownedByUser
260
+ contactLog {
261
+ id
262
+ sentAt
263
+ openedAt
264
+ clickedAt
265
+ bouncedAt
266
+ status
267
+ }
268
+ inSegments {
269
+ id
270
+ name
271
+ state
272
+ industry
273
+ }
274
+ companyName
275
+ stats {
276
+ totalOpened
277
+ totalReplied
278
+ totalBounced
279
+ }
280
+ }
281
+ }
282
+ }`;
283
+ exports.DELETE_CONTACT = (0, client_1.gql) `
284
+ mutation DeleteContact($id: ID) {
285
+ deleteContact(id: $id) {
286
+ success
287
+ }
288
+ }`;
289
+ exports.CREATE_COMPANY = (0, client_1.gql) `
290
+ mutation CreateCompany($input: CompanyInput) {
291
+ createCompany(input: $input) {
292
+ company {
293
+ id
294
+ createdAt
295
+ updatedAt
296
+ companyName
297
+ location
298
+ state
299
+ employeeSize
300
+ website
301
+ description
302
+ keywords
303
+ isCustomer
304
+ logoUrl
305
+ facebookUrl
306
+ twitterUrl
307
+ linkedinUrl
308
+ address1
309
+ address2
310
+ city
311
+ zipCode
312
+ phone
313
+ email
314
+ annualRevenue
315
+ locations {
316
+ id
317
+ address1
318
+ address2
319
+ city
320
+ state
321
+ zipCode
322
+ country
323
+ isPrimary
324
+ locationType
325
+ locationName
326
+ phone
327
+ email
328
+ createdAt
329
+ updatedAt
330
+ fullAddress
331
+ }
332
+ companyIndustries {
333
+ id
334
+ pk
335
+ industry {
336
+ industrySector {
337
+ id
338
+ name
339
+ description
340
+ orderBy
341
+ }
342
+ id
343
+ pk
344
+ name
345
+ description
346
+ }
347
+ matchScore
348
+ }
349
+ contacts {
350
+ id
351
+ name
352
+ firstName
353
+ lastName
354
+ email
355
+ workEmail
356
+ workEmail2
357
+ personalEmail
358
+ personalEmail2
359
+ phone
360
+ phone2
361
+ phone3
362
+ title
363
+ linkedinUrl
364
+ isPrimary
365
+ isCustomer
366
+ notes
367
+ lastContactedAt
368
+ ownedByUser
369
+ contactLog {
370
+ id
371
+ sentAt
372
+ openedAt
373
+ clickedAt
374
+ bouncedAt
375
+ status
376
+ }
377
+ inSegments {
378
+ id
379
+ name
380
+ state
381
+ industry
382
+ }
383
+ companyName
384
+ stats {
385
+ totalOpened
386
+ totalReplied
387
+ totalBounced
388
+ }
389
+ }
390
+ productMetalScores {
391
+ id
392
+ productType {
393
+ id
394
+ name
395
+ orderBy
396
+ productCategories {
397
+ id
398
+ name
399
+ orderBy
400
+ pk
401
+ }
402
+ pk
403
+ }
404
+ metalType {
405
+ id
406
+ name
407
+ orderBy
408
+ }
409
+ metalGrade {
410
+ id
411
+ name
412
+ metalType {
413
+ id
414
+ name
415
+ orderBy
416
+ }
417
+ }
418
+ score
419
+ productCategory {
420
+ id
421
+ pk
422
+ name
423
+ orderBy
424
+ }
425
+ matchedFilter
426
+ reasoning
427
+ }
428
+ tasks {
429
+ id
430
+ title
431
+ category
432
+ description
433
+ company {
434
+ id
435
+ createdAt
436
+ updatedAt
437
+ companyName
438
+ location
439
+ state
440
+ employeeSize
441
+ website
442
+ description
443
+ keywords
444
+ isCustomer
445
+ logoUrl
446
+ facebookUrl
447
+ twitterUrl
448
+ linkedinUrl
449
+ address1
450
+ address2
451
+ city
452
+ zipCode
453
+ phone
454
+ email
455
+ annualRevenue
456
+ locations {
457
+ id
458
+ address1
459
+ address2
460
+ city
461
+ state
462
+ zipCode
463
+ country
464
+ isPrimary
465
+ locationType
466
+ locationName
467
+ phone
468
+ email
469
+ createdAt
470
+ updatedAt
471
+ fullAddress
472
+ }
473
+ companyIndustries {
474
+ id
475
+ pk
476
+ industry {
477
+ industrySector {
478
+ id
479
+ name
480
+ description
481
+ orderBy
482
+ }
483
+ id
484
+ pk
485
+ name
486
+ description
487
+ }
488
+ matchScore
489
+ }
490
+ contacts {
491
+ id
492
+ name
493
+ firstName
494
+ lastName
495
+ email
496
+ workEmail
497
+ workEmail2
498
+ personalEmail
499
+ personalEmail2
500
+ phone
501
+ phone2
502
+ phone3
503
+ title
504
+ linkedinUrl
505
+ isPrimary
506
+ isCustomer
507
+ notes
508
+ lastContactedAt
509
+ ownedByUser
510
+ contactLog {
511
+ id
512
+ sentAt
513
+ openedAt
514
+ clickedAt
515
+ bouncedAt
516
+ status
517
+ }
518
+ inSegments {
519
+ id
520
+ name
521
+ state
522
+ industry
523
+ }
524
+ companyName
525
+ stats {
526
+ totalOpened
527
+ totalReplied
528
+ totalBounced
529
+ }
530
+ }
531
+ productMetalScores {
532
+ id
533
+ productType {
534
+ id
535
+ name
536
+ orderBy
537
+ productCategories {
538
+ id
539
+ name
540
+ orderBy
541
+ pk
542
+ }
543
+ pk
544
+ }
545
+ metalType {
546
+ id
547
+ name
548
+ orderBy
549
+ }
550
+ metalGrade {
551
+ id
552
+ name
553
+ metalType {
554
+ id
555
+ name
556
+ orderBy
557
+ }
558
+ }
559
+ score
560
+ productCategory {
561
+ id
562
+ pk
563
+ name
564
+ orderBy
565
+ }
566
+ matchedFilter
567
+ reasoning
568
+ }
569
+ tasks {
570
+ id
571
+ title
572
+ category
573
+ description
574
+ company {
575
+ id
576
+ createdAt
577
+ updatedAt
578
+ companyName
579
+ location
580
+ state
581
+ employeeSize
582
+ website
583
+ description
584
+ keywords
585
+ isCustomer
586
+ logoUrl
587
+ facebookUrl
588
+ twitterUrl
589
+ linkedinUrl
590
+ address1
591
+ address2
592
+ city
593
+ zipCode
594
+ phone
595
+ email
596
+ annualRevenue
597
+ locations {
598
+ id
599
+ address1
600
+ address2
601
+ city
602
+ state
603
+ zipCode
604
+ country
605
+ isPrimary
606
+ locationType
607
+ locationName
608
+ phone
609
+ email
610
+ createdAt
611
+ updatedAt
612
+ fullAddress
613
+ }
614
+ companyIndustries {
615
+ id
616
+ pk
617
+ industry {
618
+ industrySector {
619
+ id
620
+ name
621
+ description
622
+ orderBy
623
+ }
624
+ id
625
+ pk
626
+ name
627
+ description
628
+ }
629
+ matchScore
630
+ }
631
+ contacts {
632
+ id
633
+ name
634
+ firstName
635
+ lastName
636
+ email
637
+ workEmail
638
+ workEmail2
639
+ personalEmail
640
+ personalEmail2
641
+ phone
642
+ phone2
643
+ phone3
644
+ title
645
+ linkedinUrl
646
+ isPrimary
647
+ isCustomer
648
+ notes
649
+ lastContactedAt
650
+ ownedByUser
651
+ contactLog {
652
+ id
653
+ sentAt
654
+ openedAt
655
+ clickedAt
656
+ bouncedAt
657
+ status
658
+ }
659
+ inSegments {
660
+ id
661
+ name
662
+ state
663
+ industry
664
+ }
665
+ companyName
666
+ stats {
667
+ totalOpened
668
+ totalReplied
669
+ totalBounced
670
+ }
671
+ }
672
+ productMetalScores {
673
+ id
674
+ productType {
675
+ id
676
+ name
677
+ orderBy
678
+ productCategories {
679
+ id
680
+ name
681
+ orderBy
682
+ pk
683
+ }
684
+ pk
685
+ }
686
+ metalType {
687
+ id
688
+ name
689
+ orderBy
690
+ }
691
+ metalGrade {
692
+ id
693
+ name
694
+ metalType {
695
+ id
696
+ name
697
+ orderBy
698
+ }
699
+ }
700
+ score
701
+ productCategory {
702
+ id
703
+ pk
704
+ name
705
+ orderBy
706
+ }
707
+ matchedFilter
708
+ reasoning
709
+ }
710
+ pk
711
+ industry {
712
+ industrySector {
713
+ id
714
+ name
715
+ description
716
+ orderBy
717
+ }
718
+ id
719
+ pk
720
+ name
721
+ description
722
+ }
723
+ primaryLocation {
724
+ id
725
+ address1
726
+ address2
727
+ city
728
+ state
729
+ zipCode
730
+ country
731
+ isPrimary
732
+ locationType
733
+ locationName
734
+ phone
735
+ email
736
+ createdAt
737
+ updatedAt
738
+ fullAddress
739
+ }
740
+ averageScore
741
+ ownedByUser
742
+ }
743
+ contact {
744
+ id
745
+ name
746
+ firstName
747
+ lastName
748
+ email
749
+ workEmail
750
+ workEmail2
751
+ personalEmail
752
+ personalEmail2
753
+ phone
754
+ phone2
755
+ phone3
756
+ title
757
+ linkedinUrl
758
+ isPrimary
759
+ isCustomer
760
+ notes
761
+ lastContactedAt
762
+ ownedByUser
763
+ contactLog {
764
+ id
765
+ sentAt
766
+ openedAt
767
+ clickedAt
768
+ bouncedAt
769
+ status
770
+ }
771
+ inSegments {
772
+ id
773
+ name
774
+ state
775
+ industry
776
+ }
777
+ companyName
778
+ stats {
779
+ totalOpened
780
+ totalReplied
781
+ totalBounced
782
+ }
783
+ }
784
+ dueDate
785
+ priority
786
+ reminderType
787
+ status
788
+ assignedTo {
789
+ id
790
+ email
791
+ firstName
792
+ lastName
793
+ picture
794
+ }
795
+ completedAt
796
+ createdAt
797
+ updatedAt
798
+ callCampaign {
799
+ id
800
+ user {
801
+ id
802
+ email
803
+ firstName
804
+ lastName
805
+ picture
806
+ }
807
+ account {
808
+ id
809
+ name
810
+ isActive
811
+ createdAt
812
+ updatedAt
813
+ }
814
+ createdAt
815
+ updatedAt
816
+ name
817
+ description
818
+ segments {
819
+ id
820
+ name
821
+ description
822
+ state
823
+ industry
824
+ metalType
825
+ productCategory
826
+ segmentType
827
+ createdAt
828
+ updatedAt
829
+ isSystemTemplate
830
+ totalContacts
831
+ }
832
+ status
833
+ stats {
834
+ totalContacts
835
+ calledCount
836
+ connectedCount
837
+ remainingCount
838
+ lastActivity
839
+ }
840
+ contacts
841
+ called
842
+ connected
843
+ lastActivity
844
+ }
845
+ }
846
+ pk
847
+ industry {
848
+ industrySector {
849
+ id
850
+ name
851
+ description
852
+ orderBy
853
+ }
854
+ id
855
+ pk
856
+ name
857
+ description
858
+ }
859
+ industries {
860
+ id
861
+ pk
862
+ industry {
863
+ industrySector {
864
+ id
865
+ name
866
+ description
867
+ orderBy
868
+ }
869
+ id
870
+ pk
871
+ name
872
+ description
873
+ }
874
+ matchScore
875
+ }
876
+ primaryLocation {
877
+ id
878
+ address1
879
+ address2
880
+ city
881
+ state
882
+ zipCode
883
+ country
884
+ isPrimary
885
+ locationType
886
+ locationName
887
+ phone
888
+ email
889
+ createdAt
890
+ updatedAt
891
+ fullAddress
892
+ }
893
+ averageScore
894
+ ownedByUser
895
+ }
896
+ contact {
897
+ id
898
+ name
899
+ firstName
900
+ lastName
901
+ email
902
+ workEmail
903
+ workEmail2
904
+ personalEmail
905
+ personalEmail2
906
+ phone
907
+ phone2
908
+ phone3
909
+ title
910
+ linkedinUrl
911
+ isPrimary
912
+ isCustomer
913
+ notes
914
+ lastContactedAt
915
+ ownedByUser
916
+ contactLog {
917
+ id
918
+ sentAt
919
+ openedAt
920
+ clickedAt
921
+ bouncedAt
922
+ status
923
+ }
924
+ inSegments {
925
+ id
926
+ name
927
+ state
928
+ industry
929
+ }
930
+ companyName
931
+ stats {
932
+ totalOpened
933
+ totalReplied
934
+ totalBounced
935
+ }
936
+ }
937
+ dueDate
938
+ priority
939
+ reminderType
940
+ status
941
+ assignedTo {
942
+ id
943
+ email
944
+ firstName
945
+ lastName
946
+ picture
947
+ }
948
+ completedAt
949
+ createdAt
950
+ updatedAt
951
+ callCampaign {
952
+ id
953
+ user {
954
+ id
955
+ email
956
+ firstName
957
+ lastName
958
+ picture
959
+ }
960
+ account {
961
+ id
962
+ name
963
+ isActive
964
+ createdAt
965
+ updatedAt
966
+ }
967
+ createdAt
968
+ updatedAt
969
+ name
970
+ description
971
+ segments {
972
+ id
973
+ name
974
+ description
975
+ state
976
+ industry
977
+ metalType
978
+ productCategory
979
+ segmentType
980
+ createdAt
981
+ updatedAt
982
+ isSystemTemplate
983
+ totalContacts
984
+ }
985
+ status
986
+ stats {
987
+ totalContacts
988
+ calledCount
989
+ connectedCount
990
+ remainingCount
991
+ lastActivity
992
+ }
993
+ contacts
994
+ called
995
+ connected
996
+ lastActivity
997
+ }
998
+ }
999
+ pk
1000
+ industry {
1001
+ industrySector {
1002
+ id
1003
+ name
1004
+ description
1005
+ orderBy
1006
+ }
1007
+ id
1008
+ pk
1009
+ name
1010
+ description
1011
+ }
1012
+ primaryLocation {
1013
+ id
1014
+ address1
1015
+ address2
1016
+ city
1017
+ state
1018
+ zipCode
1019
+ country
1020
+ isPrimary
1021
+ locationType
1022
+ locationName
1023
+ phone
1024
+ email
1025
+ createdAt
1026
+ updatedAt
1027
+ fullAddress
1028
+ }
1029
+ averageScore
1030
+ ownedByUser
1031
+ }
1032
+ }
1033
+ }`;
1034
+ exports.UPDATE_COMPANY = (0, client_1.gql) `
1035
+ mutation UpdateCompany($input: CompanyInput) {
1036
+ updateCompany(input: $input) {
1037
+ company {
1038
+ id
1039
+ createdAt
1040
+ updatedAt
1041
+ companyName
1042
+ location
1043
+ state
1044
+ employeeSize
1045
+ website
1046
+ description
1047
+ keywords
1048
+ isCustomer
1049
+ logoUrl
1050
+ facebookUrl
1051
+ twitterUrl
1052
+ linkedinUrl
1053
+ address1
1054
+ address2
1055
+ city
1056
+ zipCode
1057
+ phone
1058
+ email
1059
+ annualRevenue
1060
+ locations {
1061
+ id
1062
+ address1
1063
+ address2
1064
+ city
1065
+ state
1066
+ zipCode
1067
+ country
1068
+ isPrimary
1069
+ locationType
1070
+ locationName
1071
+ phone
1072
+ email
1073
+ createdAt
1074
+ updatedAt
1075
+ fullAddress
1076
+ }
1077
+ companyIndustries {
1078
+ id
1079
+ pk
1080
+ industry {
1081
+ industrySector {
1082
+ id
1083
+ name
1084
+ description
1085
+ orderBy
1086
+ }
1087
+ id
1088
+ pk
1089
+ name
1090
+ description
1091
+ }
1092
+ matchScore
1093
+ }
1094
+ contacts {
1095
+ id
1096
+ name
1097
+ firstName
1098
+ lastName
1099
+ email
1100
+ workEmail
1101
+ workEmail2
1102
+ personalEmail
1103
+ personalEmail2
1104
+ phone
1105
+ phone2
1106
+ phone3
1107
+ title
1108
+ linkedinUrl
1109
+ isPrimary
1110
+ isCustomer
1111
+ notes
1112
+ lastContactedAt
1113
+ ownedByUser
1114
+ contactLog {
1115
+ id
1116
+ sentAt
1117
+ openedAt
1118
+ clickedAt
1119
+ bouncedAt
1120
+ status
1121
+ }
1122
+ inSegments {
1123
+ id
1124
+ name
1125
+ state
1126
+ industry
1127
+ }
1128
+ companyName
1129
+ stats {
1130
+ totalOpened
1131
+ totalReplied
1132
+ totalBounced
1133
+ }
1134
+ }
1135
+ productMetalScores {
1136
+ id
1137
+ productType {
1138
+ id
1139
+ name
1140
+ orderBy
1141
+ productCategories {
1142
+ id
1143
+ name
1144
+ orderBy
1145
+ pk
1146
+ }
1147
+ pk
1148
+ }
1149
+ metalType {
1150
+ id
1151
+ name
1152
+ orderBy
1153
+ }
1154
+ metalGrade {
1155
+ id
1156
+ name
1157
+ metalType {
1158
+ id
1159
+ name
1160
+ orderBy
1161
+ }
1162
+ }
1163
+ score
1164
+ productCategory {
1165
+ id
1166
+ pk
1167
+ name
1168
+ orderBy
1169
+ }
1170
+ matchedFilter
1171
+ reasoning
1172
+ }
1173
+ tasks {
1174
+ id
1175
+ title
1176
+ category
1177
+ description
1178
+ company {
1179
+ id
1180
+ createdAt
1181
+ updatedAt
1182
+ companyName
1183
+ location
1184
+ state
1185
+ employeeSize
1186
+ website
1187
+ description
1188
+ keywords
1189
+ isCustomer
1190
+ logoUrl
1191
+ facebookUrl
1192
+ twitterUrl
1193
+ linkedinUrl
1194
+ address1
1195
+ address2
1196
+ city
1197
+ zipCode
1198
+ phone
1199
+ email
1200
+ annualRevenue
1201
+ locations {
1202
+ id
1203
+ address1
1204
+ address2
1205
+ city
1206
+ state
1207
+ zipCode
1208
+ country
1209
+ isPrimary
1210
+ locationType
1211
+ locationName
1212
+ phone
1213
+ email
1214
+ createdAt
1215
+ updatedAt
1216
+ fullAddress
1217
+ }
1218
+ companyIndustries {
1219
+ id
1220
+ pk
1221
+ industry {
1222
+ industrySector {
1223
+ id
1224
+ name
1225
+ description
1226
+ orderBy
1227
+ }
1228
+ id
1229
+ pk
1230
+ name
1231
+ description
1232
+ }
1233
+ matchScore
1234
+ }
1235
+ contacts {
1236
+ id
1237
+ name
1238
+ firstName
1239
+ lastName
1240
+ email
1241
+ workEmail
1242
+ workEmail2
1243
+ personalEmail
1244
+ personalEmail2
1245
+ phone
1246
+ phone2
1247
+ phone3
1248
+ title
1249
+ linkedinUrl
1250
+ isPrimary
1251
+ isCustomer
1252
+ notes
1253
+ lastContactedAt
1254
+ ownedByUser
1255
+ contactLog {
1256
+ id
1257
+ sentAt
1258
+ openedAt
1259
+ clickedAt
1260
+ bouncedAt
1261
+ status
1262
+ }
1263
+ inSegments {
1264
+ id
1265
+ name
1266
+ state
1267
+ industry
1268
+ }
1269
+ companyName
1270
+ stats {
1271
+ totalOpened
1272
+ totalReplied
1273
+ totalBounced
1274
+ }
1275
+ }
1276
+ productMetalScores {
1277
+ id
1278
+ productType {
1279
+ id
1280
+ name
1281
+ orderBy
1282
+ productCategories {
1283
+ id
1284
+ name
1285
+ orderBy
1286
+ pk
1287
+ }
1288
+ pk
1289
+ }
1290
+ metalType {
1291
+ id
1292
+ name
1293
+ orderBy
1294
+ }
1295
+ metalGrade {
1296
+ id
1297
+ name
1298
+ metalType {
1299
+ id
1300
+ name
1301
+ orderBy
1302
+ }
1303
+ }
1304
+ score
1305
+ productCategory {
1306
+ id
1307
+ pk
1308
+ name
1309
+ orderBy
1310
+ }
1311
+ matchedFilter
1312
+ reasoning
1313
+ }
1314
+ tasks {
1315
+ id
1316
+ title
1317
+ category
1318
+ description
1319
+ company {
1320
+ id
1321
+ createdAt
1322
+ updatedAt
1323
+ companyName
1324
+ location
1325
+ state
1326
+ employeeSize
1327
+ website
1328
+ description
1329
+ keywords
1330
+ isCustomer
1331
+ logoUrl
1332
+ facebookUrl
1333
+ twitterUrl
1334
+ linkedinUrl
1335
+ address1
1336
+ address2
1337
+ city
1338
+ zipCode
1339
+ phone
1340
+ email
1341
+ annualRevenue
1342
+ locations {
1343
+ id
1344
+ address1
1345
+ address2
1346
+ city
1347
+ state
1348
+ zipCode
1349
+ country
1350
+ isPrimary
1351
+ locationType
1352
+ locationName
1353
+ phone
1354
+ email
1355
+ createdAt
1356
+ updatedAt
1357
+ fullAddress
1358
+ }
1359
+ companyIndustries {
1360
+ id
1361
+ pk
1362
+ industry {
1363
+ industrySector {
1364
+ id
1365
+ name
1366
+ description
1367
+ orderBy
1368
+ }
1369
+ id
1370
+ pk
1371
+ name
1372
+ description
1373
+ }
1374
+ matchScore
1375
+ }
1376
+ contacts {
1377
+ id
1378
+ name
1379
+ firstName
1380
+ lastName
1381
+ email
1382
+ workEmail
1383
+ workEmail2
1384
+ personalEmail
1385
+ personalEmail2
1386
+ phone
1387
+ phone2
1388
+ phone3
1389
+ title
1390
+ linkedinUrl
1391
+ isPrimary
1392
+ isCustomer
1393
+ notes
1394
+ lastContactedAt
1395
+ ownedByUser
1396
+ contactLog {
1397
+ id
1398
+ sentAt
1399
+ openedAt
1400
+ clickedAt
1401
+ bouncedAt
1402
+ status
1403
+ }
1404
+ inSegments {
1405
+ id
1406
+ name
1407
+ state
1408
+ industry
1409
+ }
1410
+ companyName
1411
+ stats {
1412
+ totalOpened
1413
+ totalReplied
1414
+ totalBounced
1415
+ }
1416
+ }
1417
+ productMetalScores {
1418
+ id
1419
+ productType {
1420
+ id
1421
+ name
1422
+ orderBy
1423
+ productCategories {
1424
+ id
1425
+ name
1426
+ orderBy
1427
+ pk
1428
+ }
1429
+ pk
1430
+ }
1431
+ metalType {
1432
+ id
1433
+ name
1434
+ orderBy
1435
+ }
1436
+ metalGrade {
1437
+ id
1438
+ name
1439
+ metalType {
1440
+ id
1441
+ name
1442
+ orderBy
1443
+ }
1444
+ }
1445
+ score
1446
+ productCategory {
1447
+ id
1448
+ pk
1449
+ name
1450
+ orderBy
1451
+ }
1452
+ matchedFilter
1453
+ reasoning
1454
+ }
1455
+ pk
1456
+ industry {
1457
+ industrySector {
1458
+ id
1459
+ name
1460
+ description
1461
+ orderBy
1462
+ }
1463
+ id
1464
+ pk
1465
+ name
1466
+ description
1467
+ }
1468
+ primaryLocation {
1469
+ id
1470
+ address1
1471
+ address2
1472
+ city
1473
+ state
1474
+ zipCode
1475
+ country
1476
+ isPrimary
1477
+ locationType
1478
+ locationName
1479
+ phone
1480
+ email
1481
+ createdAt
1482
+ updatedAt
1483
+ fullAddress
1484
+ }
1485
+ averageScore
1486
+ ownedByUser
1487
+ }
1488
+ contact {
1489
+ id
1490
+ name
1491
+ firstName
1492
+ lastName
1493
+ email
1494
+ workEmail
1495
+ workEmail2
1496
+ personalEmail
1497
+ personalEmail2
1498
+ phone
1499
+ phone2
1500
+ phone3
1501
+ title
1502
+ linkedinUrl
1503
+ isPrimary
1504
+ isCustomer
1505
+ notes
1506
+ lastContactedAt
1507
+ ownedByUser
1508
+ contactLog {
1509
+ id
1510
+ sentAt
1511
+ openedAt
1512
+ clickedAt
1513
+ bouncedAt
1514
+ status
1515
+ }
1516
+ inSegments {
1517
+ id
1518
+ name
1519
+ state
1520
+ industry
1521
+ }
1522
+ companyName
1523
+ stats {
1524
+ totalOpened
1525
+ totalReplied
1526
+ totalBounced
1527
+ }
1528
+ }
1529
+ dueDate
1530
+ priority
1531
+ reminderType
1532
+ status
1533
+ assignedTo {
1534
+ id
1535
+ email
1536
+ firstName
1537
+ lastName
1538
+ picture
1539
+ }
1540
+ completedAt
1541
+ createdAt
1542
+ updatedAt
1543
+ callCampaign {
1544
+ id
1545
+ user {
1546
+ id
1547
+ email
1548
+ firstName
1549
+ lastName
1550
+ picture
1551
+ }
1552
+ account {
1553
+ id
1554
+ name
1555
+ isActive
1556
+ createdAt
1557
+ updatedAt
1558
+ }
1559
+ createdAt
1560
+ updatedAt
1561
+ name
1562
+ description
1563
+ segments {
1564
+ id
1565
+ name
1566
+ description
1567
+ state
1568
+ industry
1569
+ metalType
1570
+ productCategory
1571
+ segmentType
1572
+ createdAt
1573
+ updatedAt
1574
+ isSystemTemplate
1575
+ totalContacts
1576
+ }
1577
+ status
1578
+ stats {
1579
+ totalContacts
1580
+ calledCount
1581
+ connectedCount
1582
+ remainingCount
1583
+ lastActivity
1584
+ }
1585
+ contacts
1586
+ called
1587
+ connected
1588
+ lastActivity
1589
+ }
1590
+ }
1591
+ pk
1592
+ industry {
1593
+ industrySector {
1594
+ id
1595
+ name
1596
+ description
1597
+ orderBy
1598
+ }
1599
+ id
1600
+ pk
1601
+ name
1602
+ description
1603
+ }
1604
+ industries {
1605
+ id
1606
+ pk
1607
+ industry {
1608
+ industrySector {
1609
+ id
1610
+ name
1611
+ description
1612
+ orderBy
1613
+ }
1614
+ id
1615
+ pk
1616
+ name
1617
+ description
1618
+ }
1619
+ matchScore
1620
+ }
1621
+ primaryLocation {
1622
+ id
1623
+ address1
1624
+ address2
1625
+ city
1626
+ state
1627
+ zipCode
1628
+ country
1629
+ isPrimary
1630
+ locationType
1631
+ locationName
1632
+ phone
1633
+ email
1634
+ createdAt
1635
+ updatedAt
1636
+ fullAddress
1637
+ }
1638
+ averageScore
1639
+ ownedByUser
1640
+ }
1641
+ contact {
1642
+ id
1643
+ name
1644
+ firstName
1645
+ lastName
1646
+ email
1647
+ workEmail
1648
+ workEmail2
1649
+ personalEmail
1650
+ personalEmail2
1651
+ phone
1652
+ phone2
1653
+ phone3
1654
+ title
1655
+ linkedinUrl
1656
+ isPrimary
1657
+ isCustomer
1658
+ notes
1659
+ lastContactedAt
1660
+ ownedByUser
1661
+ contactLog {
1662
+ id
1663
+ sentAt
1664
+ openedAt
1665
+ clickedAt
1666
+ bouncedAt
1667
+ status
1668
+ }
1669
+ inSegments {
1670
+ id
1671
+ name
1672
+ state
1673
+ industry
1674
+ }
1675
+ companyName
1676
+ stats {
1677
+ totalOpened
1678
+ totalReplied
1679
+ totalBounced
1680
+ }
1681
+ }
1682
+ dueDate
1683
+ priority
1684
+ reminderType
1685
+ status
1686
+ assignedTo {
1687
+ id
1688
+ email
1689
+ firstName
1690
+ lastName
1691
+ picture
1692
+ }
1693
+ completedAt
1694
+ createdAt
1695
+ updatedAt
1696
+ callCampaign {
1697
+ id
1698
+ user {
1699
+ id
1700
+ email
1701
+ firstName
1702
+ lastName
1703
+ picture
1704
+ }
1705
+ account {
1706
+ id
1707
+ name
1708
+ isActive
1709
+ createdAt
1710
+ updatedAt
1711
+ }
1712
+ createdAt
1713
+ updatedAt
1714
+ name
1715
+ description
1716
+ segments {
1717
+ id
1718
+ name
1719
+ description
1720
+ state
1721
+ industry
1722
+ metalType
1723
+ productCategory
1724
+ segmentType
1725
+ createdAt
1726
+ updatedAt
1727
+ isSystemTemplate
1728
+ totalContacts
1729
+ }
1730
+ status
1731
+ stats {
1732
+ totalContacts
1733
+ calledCount
1734
+ connectedCount
1735
+ remainingCount
1736
+ lastActivity
1737
+ }
1738
+ contacts
1739
+ called
1740
+ connected
1741
+ lastActivity
1742
+ }
1743
+ }
1744
+ pk
1745
+ industry {
1746
+ industrySector {
1747
+ id
1748
+ name
1749
+ description
1750
+ orderBy
1751
+ }
1752
+ id
1753
+ pk
1754
+ name
1755
+ description
1756
+ }
1757
+ primaryLocation {
1758
+ id
1759
+ address1
1760
+ address2
1761
+ city
1762
+ state
1763
+ zipCode
1764
+ country
1765
+ isPrimary
1766
+ locationType
1767
+ locationName
1768
+ phone
1769
+ email
1770
+ createdAt
1771
+ updatedAt
1772
+ fullAddress
1773
+ }
1774
+ averageScore
1775
+ ownedByUser
1776
+ }
1777
+ }
1778
+ }`;
1779
+ exports.DELETE_COMPANY = (0, client_1.gql) `
1780
+ mutation DeleteCompany($id: ID) {
1781
+ deleteCompany(id: $id) {
1782
+ success
1783
+ }
1784
+ }`;
1785
+ exports.CREATE_SEGMENT = (0, client_1.gql) `
1786
+ mutation CreateSegment($input: SegmentInput!) {
1787
+ createSegment(input: $input) {
1788
+ segment {
1789
+ id
1790
+ name
1791
+ description
1792
+ state
1793
+ industry
1794
+ metalType
1795
+ productCategory
1796
+ segmentType
1797
+ createdAt
1798
+ updatedAt
1799
+ isSystemTemplate
1800
+ totalContacts
1801
+ }
1802
+ success
1803
+ message
1804
+ }
1805
+ }`;
1806
+ exports.UPDATE_SEGMENT = (0, client_1.gql) `
1807
+ mutation UpdateSegment($input: SegmentInput!) {
1808
+ updateSegment(input: $input) {
1809
+ segment {
1810
+ id
1811
+ name
1812
+ description
1813
+ state
1814
+ industry
1815
+ metalType
1816
+ productCategory
1817
+ segmentType
1818
+ createdAt
1819
+ updatedAt
1820
+ isSystemTemplate
1821
+ totalContacts
1822
+ }
1823
+ success
1824
+ message
1825
+ }
1826
+ }`;
1827
+ exports.DELETE_SEGMENT = (0, client_1.gql) `
1828
+ mutation DeleteSegment($id: ID!) {
1829
+ deleteSegment(id: $id) {
1830
+ success
1831
+ message
1832
+ }
1833
+ }`;
1834
+ exports.ADD_CONTACTS_TO_SEGMENT = (0, client_1.gql) `
1835
+ mutation AddContactsToSegment($contactIds: [ID]!, $segmentId: ID!) {
1836
+ addContactsToSegment(contactIds: $contactIds, segmentId: $segmentId) {
1837
+ segment {
1838
+ id
1839
+ name
1840
+ description
1841
+ state
1842
+ industry
1843
+ metalType
1844
+ productCategory
1845
+ segmentType
1846
+ createdAt
1847
+ updatedAt
1848
+ isSystemTemplate
1849
+ totalContacts
1850
+ }
1851
+ success
1852
+ message
1853
+ }
1854
+ }`;
1855
+ exports.REMOVE_CONTACTS_FROM_SEGMENT = (0, client_1.gql) `
1856
+ mutation RemoveContactsFromSegment($contactIds: [ID]!, $segmentId: ID!) {
1857
+ removeContactsFromSegment(contactIds: $contactIds, segmentId: $segmentId) {
1858
+ segment {
1859
+ id
1860
+ name
1861
+ description
1862
+ state
1863
+ industry
1864
+ metalType
1865
+ productCategory
1866
+ segmentType
1867
+ createdAt
1868
+ updatedAt
1869
+ isSystemTemplate
1870
+ totalContacts
1871
+ }
1872
+ success
1873
+ message
1874
+ }
1875
+ }`;
1876
+ exports.CREATE_CAMPAIGN = (0, client_1.gql) `
1877
+ mutation CreateCampaign($input: CampaignInput!) {
1878
+ createCampaign(input: $input) {
1879
+ campaign {
1880
+ uuid
1881
+ name
1882
+ description
1883
+ campaignDetails
1884
+ scheduledFor
1885
+ startedAt
1886
+ completedAt
1887
+ cancelledAt
1888
+ pausedAt
1889
+ status
1890
+ segments {
1891
+ id
1892
+ name
1893
+ description
1894
+ state
1895
+ industry
1896
+ metalType
1897
+ productCategory
1898
+ segmentType
1899
+ createdAt
1900
+ updatedAt
1901
+ isSystemTemplate
1902
+ totalContacts
1903
+ }
1904
+ stats
1905
+ createdAt
1906
+ updatedAt
1907
+ emailTemplate {
1908
+ uuid
1909
+ name
1910
+ description
1911
+ subject
1912
+ template
1913
+ createdAt
1914
+ updatedAt
1915
+ campaignType
1916
+ }
1917
+ campaignType
1918
+ emailPreview
1919
+ totalSent
1920
+ totalOpened
1921
+ totalClicked
1922
+ totalBounced
1923
+ totalReplied
1924
+ openRate
1925
+ clickRate
1926
+ bounceRate
1927
+ reasonForPause
1928
+ pausedUntil
1929
+ }
1930
+ success
1931
+ message
1932
+ }
1933
+ }`;
1934
+ exports.UPDATE_CAMPAIGN = (0, client_1.gql) `
1935
+ mutation UpdateCampaign($input: CampaignInput!) {
1936
+ updateCampaign(input: $input) {
1937
+ campaign {
1938
+ uuid
1939
+ name
1940
+ description
1941
+ campaignDetails
1942
+ scheduledFor
1943
+ startedAt
1944
+ completedAt
1945
+ cancelledAt
1946
+ pausedAt
1947
+ status
1948
+ segments {
1949
+ id
1950
+ name
1951
+ description
1952
+ state
1953
+ industry
1954
+ metalType
1955
+ productCategory
1956
+ segmentType
1957
+ createdAt
1958
+ updatedAt
1959
+ isSystemTemplate
1960
+ totalContacts
1961
+ }
1962
+ stats
1963
+ createdAt
1964
+ updatedAt
1965
+ emailTemplate {
1966
+ uuid
1967
+ name
1968
+ description
1969
+ subject
1970
+ template
1971
+ createdAt
1972
+ updatedAt
1973
+ campaignType
1974
+ }
1975
+ campaignType
1976
+ emailPreview
1977
+ totalSent
1978
+ totalOpened
1979
+ totalClicked
1980
+ totalBounced
1981
+ totalReplied
1982
+ openRate
1983
+ clickRate
1984
+ bounceRate
1985
+ reasonForPause
1986
+ pausedUntil
1987
+ }
1988
+ success
1989
+ message
1990
+ }
1991
+ }`;
1992
+ exports.DELETE_CAMPAIGN = (0, client_1.gql) `
1993
+ mutation DeleteCampaign($id: ID!) {
1994
+ deleteCampaign(id: $id) {
1995
+ success
1996
+ message
1997
+ }
1998
+ }`;
1999
+ exports.ADD_SEGMENT_TO_CAMPAIGN = (0, client_1.gql) `
2000
+ mutation AddSegmentToCampaign($campaignId: ID!, $segmentId: ID!) {
2001
+ addSegmentToCampaign(campaignId: $campaignId, segmentId: $segmentId) {
2002
+ campaign {
2003
+ uuid
2004
+ name
2005
+ description
2006
+ campaignDetails
2007
+ scheduledFor
2008
+ startedAt
2009
+ completedAt
2010
+ cancelledAt
2011
+ pausedAt
2012
+ status
2013
+ segments {
2014
+ id
2015
+ name
2016
+ description
2017
+ state
2018
+ industry
2019
+ metalType
2020
+ productCategory
2021
+ segmentType
2022
+ createdAt
2023
+ updatedAt
2024
+ isSystemTemplate
2025
+ totalContacts
2026
+ }
2027
+ stats
2028
+ createdAt
2029
+ updatedAt
2030
+ emailTemplate {
2031
+ uuid
2032
+ name
2033
+ description
2034
+ subject
2035
+ template
2036
+ createdAt
2037
+ updatedAt
2038
+ campaignType
2039
+ }
2040
+ campaignType
2041
+ emailPreview
2042
+ totalSent
2043
+ totalOpened
2044
+ totalClicked
2045
+ totalBounced
2046
+ totalReplied
2047
+ openRate
2048
+ clickRate
2049
+ bounceRate
2050
+ reasonForPause
2051
+ pausedUntil
2052
+ }
2053
+ success
2054
+ message
2055
+ }
2056
+ }`;
2057
+ exports.REMOVE_SEGMENT_FROM_CAMPAIGN = (0, client_1.gql) `
2058
+ mutation RemoveSegmentFromCampaign($campaignId: ID!, $segmentId: ID!) {
2059
+ removeSegmentFromCampaign(campaignId: $campaignId, segmentId: $segmentId) {
2060
+ campaign {
2061
+ uuid
2062
+ name
2063
+ description
2064
+ campaignDetails
2065
+ scheduledFor
2066
+ startedAt
2067
+ completedAt
2068
+ cancelledAt
2069
+ pausedAt
2070
+ status
2071
+ segments {
2072
+ id
2073
+ name
2074
+ description
2075
+ state
2076
+ industry
2077
+ metalType
2078
+ productCategory
2079
+ segmentType
2080
+ createdAt
2081
+ updatedAt
2082
+ isSystemTemplate
2083
+ totalContacts
2084
+ }
2085
+ stats
2086
+ createdAt
2087
+ updatedAt
2088
+ emailTemplate {
2089
+ uuid
2090
+ name
2091
+ description
2092
+ subject
2093
+ template
2094
+ createdAt
2095
+ updatedAt
2096
+ campaignType
2097
+ }
2098
+ campaignType
2099
+ emailPreview
2100
+ totalSent
2101
+ totalOpened
2102
+ totalClicked
2103
+ totalBounced
2104
+ totalReplied
2105
+ openRate
2106
+ clickRate
2107
+ bounceRate
2108
+ reasonForPause
2109
+ pausedUntil
2110
+ }
2111
+ success
2112
+ message
2113
+ }
2114
+ }`;
2115
+ exports.START_CAMPAIGN = (0, client_1.gql) `
2116
+ mutation StartCampaign($id: ID!) {
2117
+ startCampaign(id: $id) {
2118
+ campaign {
2119
+ uuid
2120
+ name
2121
+ description
2122
+ campaignDetails
2123
+ scheduledFor
2124
+ startedAt
2125
+ completedAt
2126
+ cancelledAt
2127
+ pausedAt
2128
+ status
2129
+ segments {
2130
+ id
2131
+ name
2132
+ description
2133
+ state
2134
+ industry
2135
+ metalType
2136
+ productCategory
2137
+ segmentType
2138
+ createdAt
2139
+ updatedAt
2140
+ isSystemTemplate
2141
+ totalContacts
2142
+ }
2143
+ stats
2144
+ createdAt
2145
+ updatedAt
2146
+ emailTemplate {
2147
+ uuid
2148
+ name
2149
+ description
2150
+ subject
2151
+ template
2152
+ createdAt
2153
+ updatedAt
2154
+ campaignType
2155
+ }
2156
+ campaignType
2157
+ emailPreview
2158
+ totalSent
2159
+ totalOpened
2160
+ totalClicked
2161
+ totalBounced
2162
+ totalReplied
2163
+ openRate
2164
+ clickRate
2165
+ bounceRate
2166
+ reasonForPause
2167
+ pausedUntil
2168
+ }
2169
+ success
2170
+ message
2171
+ }
2172
+ }`;
2173
+ exports.PAUSE_CAMPAIGN = (0, client_1.gql) `
2174
+ mutation PauseCampaign($id: ID!) {
2175
+ pauseCampaign(id: $id) {
2176
+ campaign {
2177
+ uuid
2178
+ name
2179
+ description
2180
+ campaignDetails
2181
+ scheduledFor
2182
+ startedAt
2183
+ completedAt
2184
+ cancelledAt
2185
+ pausedAt
2186
+ status
2187
+ segments {
2188
+ id
2189
+ name
2190
+ description
2191
+ state
2192
+ industry
2193
+ metalType
2194
+ productCategory
2195
+ segmentType
2196
+ createdAt
2197
+ updatedAt
2198
+ isSystemTemplate
2199
+ totalContacts
2200
+ }
2201
+ stats
2202
+ createdAt
2203
+ updatedAt
2204
+ emailTemplate {
2205
+ uuid
2206
+ name
2207
+ description
2208
+ subject
2209
+ template
2210
+ createdAt
2211
+ updatedAt
2212
+ campaignType
2213
+ }
2214
+ campaignType
2215
+ emailPreview
2216
+ totalSent
2217
+ totalOpened
2218
+ totalClicked
2219
+ totalBounced
2220
+ totalReplied
2221
+ openRate
2222
+ clickRate
2223
+ bounceRate
2224
+ reasonForPause
2225
+ pausedUntil
2226
+ }
2227
+ success
2228
+ message
2229
+ }
2230
+ }`;
2231
+ exports.COMPLETE_CAMPAIGN = (0, client_1.gql) `
2232
+ mutation CompleteCampaign($id: ID!) {
2233
+ completeCampaign(id: $id) {
2234
+ campaign {
2235
+ uuid
2236
+ name
2237
+ description
2238
+ campaignDetails
2239
+ scheduledFor
2240
+ startedAt
2241
+ completedAt
2242
+ cancelledAt
2243
+ pausedAt
2244
+ status
2245
+ segments {
2246
+ id
2247
+ name
2248
+ description
2249
+ state
2250
+ industry
2251
+ metalType
2252
+ productCategory
2253
+ segmentType
2254
+ createdAt
2255
+ updatedAt
2256
+ isSystemTemplate
2257
+ totalContacts
2258
+ }
2259
+ stats
2260
+ createdAt
2261
+ updatedAt
2262
+ emailTemplate {
2263
+ uuid
2264
+ name
2265
+ description
2266
+ subject
2267
+ template
2268
+ createdAt
2269
+ updatedAt
2270
+ campaignType
2271
+ }
2272
+ campaignType
2273
+ emailPreview
2274
+ totalSent
2275
+ totalOpened
2276
+ totalClicked
2277
+ totalBounced
2278
+ totalReplied
2279
+ openRate
2280
+ clickRate
2281
+ bounceRate
2282
+ reasonForPause
2283
+ pausedUntil
2284
+ }
2285
+ success
2286
+ message
2287
+ }
2288
+ }`;
2289
+ exports.CANCEL_CAMPAIGN = (0, client_1.gql) `
2290
+ mutation CancelCampaign($id: ID!) {
2291
+ cancelCampaign(id: $id) {
2292
+ campaign {
2293
+ uuid
2294
+ name
2295
+ description
2296
+ campaignDetails
2297
+ scheduledFor
2298
+ startedAt
2299
+ completedAt
2300
+ cancelledAt
2301
+ pausedAt
2302
+ status
2303
+ segments {
2304
+ id
2305
+ name
2306
+ description
2307
+ state
2308
+ industry
2309
+ metalType
2310
+ productCategory
2311
+ segmentType
2312
+ createdAt
2313
+ updatedAt
2314
+ isSystemTemplate
2315
+ totalContacts
2316
+ }
2317
+ stats
2318
+ createdAt
2319
+ updatedAt
2320
+ emailTemplate {
2321
+ uuid
2322
+ name
2323
+ description
2324
+ subject
2325
+ template
2326
+ createdAt
2327
+ updatedAt
2328
+ campaignType
2329
+ }
2330
+ campaignType
2331
+ emailPreview
2332
+ totalSent
2333
+ totalOpened
2334
+ totalClicked
2335
+ totalBounced
2336
+ totalReplied
2337
+ openRate
2338
+ clickRate
2339
+ bounceRate
2340
+ reasonForPause
2341
+ pausedUntil
2342
+ }
2343
+ success
2344
+ message
2345
+ }
2346
+ }`;
2347
+ exports.SEND_TEST_EMAIL = (0, client_1.gql) `
2348
+ mutation SendTestEmail($campaignId: ID!, $emailAddress: String!, $subject: String!, $template: String!) {
2349
+ sendTestEmail(campaignId: $campaignId, emailAddress: $emailAddress, subject: $subject, template: $template) {
2350
+ success
2351
+ message
2352
+ }
2353
+ }`;
2354
+ exports.SEND_EMAIL_TO_CONTACT = (0, client_1.gql) `
2355
+ mutation SendEmailToContact($campaignId: ID, $contactId: ID!, $segmentId: ID, $subject: String!, $template: String!) {
2356
+ sendEmailToContact(campaignId: $campaignId, contactId: $contactId, segmentId: $segmentId, subject: $subject, template: $template) {
2357
+ success
2358
+ message
2359
+ contactLog {
2360
+ id
2361
+ campaign {
2362
+ uuid
2363
+ name
2364
+ description
2365
+ campaignDetails
2366
+ scheduledFor
2367
+ startedAt
2368
+ completedAt
2369
+ cancelledAt
2370
+ pausedAt
2371
+ status
2372
+ segments {
2373
+ id
2374
+ name
2375
+ description
2376
+ state
2377
+ industry
2378
+ metalType
2379
+ productCategory
2380
+ segmentType
2381
+ createdAt
2382
+ updatedAt
2383
+ isSystemTemplate
2384
+ totalContacts
2385
+ }
2386
+ stats
2387
+ createdAt
2388
+ updatedAt
2389
+ emailTemplate {
2390
+ uuid
2391
+ name
2392
+ description
2393
+ subject
2394
+ template
2395
+ createdAt
2396
+ updatedAt
2397
+ campaignType
2398
+ }
2399
+ campaignType
2400
+ emailPreview
2401
+ totalSent
2402
+ totalOpened
2403
+ totalClicked
2404
+ totalBounced
2405
+ totalReplied
2406
+ openRate
2407
+ clickRate
2408
+ bounceRate
2409
+ reasonForPause
2410
+ pausedUntil
2411
+ }
2412
+ contact {
2413
+ id
2414
+ name
2415
+ firstName
2416
+ lastName
2417
+ email
2418
+ workEmail
2419
+ workEmail2
2420
+ personalEmail
2421
+ personalEmail2
2422
+ phone
2423
+ phone2
2424
+ phone3
2425
+ title
2426
+ linkedinUrl
2427
+ isPrimary
2428
+ isCustomer
2429
+ notes
2430
+ lastContactedAt
2431
+ ownedByUser
2432
+ contactLog {
2433
+ id
2434
+ sentAt
2435
+ openedAt
2436
+ clickedAt
2437
+ bouncedAt
2438
+ status
2439
+ }
2440
+ inSegments {
2441
+ id
2442
+ name
2443
+ state
2444
+ industry
2445
+ }
2446
+ companyName
2447
+ stats {
2448
+ totalOpened
2449
+ totalReplied
2450
+ totalBounced
2451
+ }
2452
+ }
2453
+ sentAt
2454
+ openedAt
2455
+ clickedAt
2456
+ bouncedAt
2457
+ bounceReason
2458
+ openCount
2459
+ clickCount
2460
+ clickedLinks
2461
+ requestId
2462
+ threadId
2463
+ grantId
2464
+ emailId
2465
+ status
2466
+ errorMessage
2467
+ lastTriedAt
2468
+ attempts
2469
+ }
2470
+ }
2471
+ }`;
2472
+ exports.SCHEDULE_CAMPAIGN = (0, client_1.gql) `
2473
+ mutation ScheduleCampaign($id: ID!, $scheduledFor: DateTime!) {
2474
+ scheduleCampaign(id: $id, scheduledFor: $scheduledFor) {
2475
+ campaign {
2476
+ uuid
2477
+ name
2478
+ description
2479
+ campaignDetails
2480
+ scheduledFor
2481
+ startedAt
2482
+ completedAt
2483
+ cancelledAt
2484
+ pausedAt
2485
+ status
2486
+ segments {
2487
+ id
2488
+ name
2489
+ description
2490
+ state
2491
+ industry
2492
+ metalType
2493
+ productCategory
2494
+ segmentType
2495
+ createdAt
2496
+ updatedAt
2497
+ isSystemTemplate
2498
+ totalContacts
2499
+ }
2500
+ stats
2501
+ createdAt
2502
+ updatedAt
2503
+ emailTemplate {
2504
+ uuid
2505
+ name
2506
+ description
2507
+ subject
2508
+ template
2509
+ createdAt
2510
+ updatedAt
2511
+ campaignType
2512
+ }
2513
+ campaignType
2514
+ emailPreview
2515
+ totalSent
2516
+ totalOpened
2517
+ totalClicked
2518
+ totalBounced
2519
+ totalReplied
2520
+ openRate
2521
+ clickRate
2522
+ bounceRate
2523
+ reasonForPause
2524
+ pausedUntil
2525
+ }
2526
+ success
2527
+ message
2528
+ }
2529
+ }`;
2530
+ exports.PREVIEW_CAMPAIGN_EMAIL = (0, client_1.gql) `
2531
+ mutation PreviewCampaignEmail($campaignId: ID!, $contactId: ID!, $customSubject: String, $customTemplate: String) {
2532
+ previewCampaignEmail(campaignId: $campaignId, contactId: $contactId, customSubject: $customSubject, customTemplate: $customTemplate) {
2533
+ success
2534
+ message
2535
+ subject
2536
+ body
2537
+ contactName
2538
+ contactEmail
2539
+ companyName
2540
+ }
2541
+ }`;
2542
+ exports.CREATE_EMAIL_TEMPLATE = (0, client_1.gql) `
2543
+ mutation CreateEmailTemplate($input: EmailTemplateInput!) {
2544
+ createEmailTemplate(input: $input) {
2545
+ success
2546
+ message
2547
+ emailTemplate {
2548
+ createdAt
2549
+ updatedAt
2550
+ uuid
2551
+ name
2552
+ description
2553
+ subject
2554
+ template
2555
+ campaignType
2556
+ isDefault
2557
+ }
2558
+ }
2559
+ }`;
2560
+ exports.UPDATE_EMAIL_TEMPLATE = (0, client_1.gql) `
2561
+ mutation UpdateEmailTemplate($input: EmailTemplateInput!, $uuid: UUID!) {
2562
+ updateEmailTemplate(input: $input, uuid: $uuid) {
2563
+ success
2564
+ message
2565
+ emailTemplate {
2566
+ createdAt
2567
+ updatedAt
2568
+ uuid
2569
+ name
2570
+ description
2571
+ subject
2572
+ template
2573
+ campaignType
2574
+ isDefault
2575
+ }
2576
+ }
2577
+ }`;
2578
+ exports.DELETE_EMAIL_TEMPLATE = (0, client_1.gql) `
2579
+ mutation DeleteEmailTemplate($uuid: UUID!) {
2580
+ deleteEmailTemplate(uuid: $uuid) {
2581
+ success
2582
+ message
2583
+ }
2584
+ }`;
2585
+ exports.SAVE_NYLAS_CONNECTION = (0, client_1.gql) `
2586
+ mutation SaveNylasConnection($input: SaveNylasConnectionInput!) {
2587
+ saveNylasConnection(input: $input) {
2588
+ success
2589
+ message
2590
+ integration {
2591
+ id
2592
+ createdAt
2593
+ updatedAt
2594
+ email
2595
+ provider
2596
+ grantId
2597
+ lastSync
2598
+ isActive
2599
+ }
2600
+ }
2601
+ }`;
2602
+ exports.DISCONNECT_NYLAS_INTEGRATION = (0, client_1.gql) `
2603
+ mutation DisconnectNylasIntegration {
2604
+ disconnectNylasIntegration {
2605
+ success
2606
+ message
2607
+ }
2608
+ }`;
2609
+ exports.CREATE_NOTIFICATION = (0, client_1.gql) `
2610
+ mutation CreateNotification($input: CreateNotificationInput!) {
2611
+ createNotification(input: $input) {
2612
+ notification {
2613
+ id
2614
+ createdAt
2615
+ updatedAt
2616
+ title
2617
+ message
2618
+ notificationType
2619
+ isRead
2620
+ readAt
2621
+ metadata
2622
+ expiresAt
2623
+ }
2624
+ success
2625
+ message
2626
+ }
2627
+ }`;
2628
+ exports.MARK_NOTIFICATION_AS_READ = (0, client_1.gql) `
2629
+ mutation MarkNotificationAsRead($notificationId: ID!) {
2630
+ markNotificationAsRead(notificationId: $notificationId) {
2631
+ notification {
2632
+ id
2633
+ createdAt
2634
+ updatedAt
2635
+ title
2636
+ message
2637
+ notificationType
2638
+ isRead
2639
+ readAt
2640
+ metadata
2641
+ expiresAt
2642
+ }
2643
+ success
2644
+ message
2645
+ }
2646
+ }`;
2647
+ exports.MARK_ALL_NOTIFICATIONS_AS_READ = (0, client_1.gql) `
2648
+ mutation MarkAllNotificationsAsRead {
2649
+ markAllNotificationsAsRead {
2650
+ count
2651
+ success
2652
+ message
2653
+ }
2654
+ }`;
2655
+ exports.DELETE_NOTIFICATION = (0, client_1.gql) `
2656
+ mutation DeleteNotification($notificationId: ID!) {
2657
+ deleteNotification(notificationId: $notificationId) {
2658
+ success
2659
+ message
2660
+ }
2661
+ }`;
2662
+ exports.CREATE_TASK = (0, client_1.gql) `
2663
+ mutation CreateTask($input: CreateTaskInput!) {
2664
+ createTask(input: $input) {
2665
+ task {
2666
+ id
2667
+ title
2668
+ category
2669
+ description
2670
+ company {
2671
+ id
2672
+ createdAt
2673
+ updatedAt
2674
+ companyName
2675
+ location
2676
+ state
2677
+ employeeSize
2678
+ website
2679
+ description
2680
+ keywords
2681
+ isCustomer
2682
+ logoUrl
2683
+ facebookUrl
2684
+ twitterUrl
2685
+ linkedinUrl
2686
+ address1
2687
+ address2
2688
+ city
2689
+ zipCode
2690
+ phone
2691
+ email
2692
+ annualRevenue
2693
+ locations {
2694
+ id
2695
+ address1
2696
+ address2
2697
+ city
2698
+ state
2699
+ zipCode
2700
+ country
2701
+ isPrimary
2702
+ locationType
2703
+ locationName
2704
+ phone
2705
+ email
2706
+ createdAt
2707
+ updatedAt
2708
+ fullAddress
2709
+ }
2710
+ companyIndustries {
2711
+ id
2712
+ pk
2713
+ industry {
2714
+ industrySector {
2715
+ id
2716
+ name
2717
+ description
2718
+ orderBy
2719
+ }
2720
+ id
2721
+ pk
2722
+ name
2723
+ description
2724
+ }
2725
+ matchScore
2726
+ }
2727
+ contacts {
2728
+ id
2729
+ name
2730
+ firstName
2731
+ lastName
2732
+ email
2733
+ workEmail
2734
+ workEmail2
2735
+ personalEmail
2736
+ personalEmail2
2737
+ phone
2738
+ phone2
2739
+ phone3
2740
+ title
2741
+ linkedinUrl
2742
+ isPrimary
2743
+ isCustomer
2744
+ notes
2745
+ lastContactedAt
2746
+ ownedByUser
2747
+ contactLog {
2748
+ id
2749
+ sentAt
2750
+ openedAt
2751
+ clickedAt
2752
+ bouncedAt
2753
+ status
2754
+ }
2755
+ inSegments {
2756
+ id
2757
+ name
2758
+ state
2759
+ industry
2760
+ }
2761
+ companyName
2762
+ stats {
2763
+ totalOpened
2764
+ totalReplied
2765
+ totalBounced
2766
+ }
2767
+ }
2768
+ productMetalScores {
2769
+ id
2770
+ productType {
2771
+ id
2772
+ name
2773
+ orderBy
2774
+ productCategories {
2775
+ id
2776
+ name
2777
+ orderBy
2778
+ pk
2779
+ }
2780
+ pk
2781
+ }
2782
+ metalType {
2783
+ id
2784
+ name
2785
+ orderBy
2786
+ }
2787
+ metalGrade {
2788
+ id
2789
+ name
2790
+ metalType {
2791
+ id
2792
+ name
2793
+ orderBy
2794
+ }
2795
+ }
2796
+ score
2797
+ productCategory {
2798
+ id
2799
+ pk
2800
+ name
2801
+ orderBy
2802
+ }
2803
+ matchedFilter
2804
+ reasoning
2805
+ }
2806
+ pk
2807
+ industry {
2808
+ industrySector {
2809
+ id
2810
+ name
2811
+ description
2812
+ orderBy
2813
+ }
2814
+ id
2815
+ pk
2816
+ name
2817
+ description
2818
+ }
2819
+ primaryLocation {
2820
+ id
2821
+ address1
2822
+ address2
2823
+ city
2824
+ state
2825
+ zipCode
2826
+ country
2827
+ isPrimary
2828
+ locationType
2829
+ locationName
2830
+ phone
2831
+ email
2832
+ createdAt
2833
+ updatedAt
2834
+ fullAddress
2835
+ }
2836
+ averageScore
2837
+ ownedByUser
2838
+ }
2839
+ contact {
2840
+ id
2841
+ name
2842
+ firstName
2843
+ lastName
2844
+ email
2845
+ workEmail
2846
+ workEmail2
2847
+ personalEmail
2848
+ personalEmail2
2849
+ phone
2850
+ phone2
2851
+ phone3
2852
+ title
2853
+ linkedinUrl
2854
+ isPrimary
2855
+ isCustomer
2856
+ notes
2857
+ lastContactedAt
2858
+ ownedByUser
2859
+ contactLog {
2860
+ id
2861
+ sentAt
2862
+ openedAt
2863
+ clickedAt
2864
+ bouncedAt
2865
+ status
2866
+ }
2867
+ inSegments {
2868
+ id
2869
+ name
2870
+ state
2871
+ industry
2872
+ }
2873
+ companyName
2874
+ stats {
2875
+ totalOpened
2876
+ totalReplied
2877
+ totalBounced
2878
+ }
2879
+ }
2880
+ dueDate
2881
+ priority
2882
+ reminderType
2883
+ status
2884
+ assignedTo {
2885
+ id
2886
+ email
2887
+ firstName
2888
+ lastName
2889
+ picture
2890
+ }
2891
+ completedAt
2892
+ createdAt
2893
+ updatedAt
2894
+ callCampaign {
2895
+ id
2896
+ user {
2897
+ id
2898
+ email
2899
+ firstName
2900
+ lastName
2901
+ picture
2902
+ }
2903
+ account {
2904
+ id
2905
+ name
2906
+ isActive
2907
+ createdAt
2908
+ updatedAt
2909
+ }
2910
+ createdAt
2911
+ updatedAt
2912
+ name
2913
+ description
2914
+ segments {
2915
+ id
2916
+ name
2917
+ description
2918
+ state
2919
+ industry
2920
+ metalType
2921
+ productCategory
2922
+ segmentType
2923
+ createdAt
2924
+ updatedAt
2925
+ isSystemTemplate
2926
+ totalContacts
2927
+ }
2928
+ status
2929
+ stats {
2930
+ totalContacts
2931
+ calledCount
2932
+ connectedCount
2933
+ remainingCount
2934
+ lastActivity
2935
+ }
2936
+ contacts
2937
+ called
2938
+ connected
2939
+ lastActivity
2940
+ }
2941
+ }
2942
+ success
2943
+ }
2944
+ }`;
2945
+ exports.UPDATE_TASK = (0, client_1.gql) `
2946
+ mutation UpdateTask($id: Int!, $input: UpdateTaskInput!) {
2947
+ updateTask(id: $id, input: $input) {
2948
+ task {
2949
+ id
2950
+ title
2951
+ category
2952
+ description
2953
+ company {
2954
+ id
2955
+ createdAt
2956
+ updatedAt
2957
+ companyName
2958
+ location
2959
+ state
2960
+ employeeSize
2961
+ website
2962
+ description
2963
+ keywords
2964
+ isCustomer
2965
+ logoUrl
2966
+ facebookUrl
2967
+ twitterUrl
2968
+ linkedinUrl
2969
+ address1
2970
+ address2
2971
+ city
2972
+ zipCode
2973
+ phone
2974
+ email
2975
+ annualRevenue
2976
+ locations {
2977
+ id
2978
+ address1
2979
+ address2
2980
+ city
2981
+ state
2982
+ zipCode
2983
+ country
2984
+ isPrimary
2985
+ locationType
2986
+ locationName
2987
+ phone
2988
+ email
2989
+ createdAt
2990
+ updatedAt
2991
+ fullAddress
2992
+ }
2993
+ companyIndustries {
2994
+ id
2995
+ pk
2996
+ industry {
2997
+ industrySector {
2998
+ id
2999
+ name
3000
+ description
3001
+ orderBy
3002
+ }
3003
+ id
3004
+ pk
3005
+ name
3006
+ description
3007
+ }
3008
+ matchScore
3009
+ }
3010
+ contacts {
3011
+ id
3012
+ name
3013
+ firstName
3014
+ lastName
3015
+ email
3016
+ workEmail
3017
+ workEmail2
3018
+ personalEmail
3019
+ personalEmail2
3020
+ phone
3021
+ phone2
3022
+ phone3
3023
+ title
3024
+ linkedinUrl
3025
+ isPrimary
3026
+ isCustomer
3027
+ notes
3028
+ lastContactedAt
3029
+ ownedByUser
3030
+ contactLog {
3031
+ id
3032
+ sentAt
3033
+ openedAt
3034
+ clickedAt
3035
+ bouncedAt
3036
+ status
3037
+ }
3038
+ inSegments {
3039
+ id
3040
+ name
3041
+ state
3042
+ industry
3043
+ }
3044
+ companyName
3045
+ stats {
3046
+ totalOpened
3047
+ totalReplied
3048
+ totalBounced
3049
+ }
3050
+ }
3051
+ productMetalScores {
3052
+ id
3053
+ productType {
3054
+ id
3055
+ name
3056
+ orderBy
3057
+ productCategories {
3058
+ id
3059
+ name
3060
+ orderBy
3061
+ pk
3062
+ }
3063
+ pk
3064
+ }
3065
+ metalType {
3066
+ id
3067
+ name
3068
+ orderBy
3069
+ }
3070
+ metalGrade {
3071
+ id
3072
+ name
3073
+ metalType {
3074
+ id
3075
+ name
3076
+ orderBy
3077
+ }
3078
+ }
3079
+ score
3080
+ productCategory {
3081
+ id
3082
+ pk
3083
+ name
3084
+ orderBy
3085
+ }
3086
+ matchedFilter
3087
+ reasoning
3088
+ }
3089
+ pk
3090
+ industry {
3091
+ industrySector {
3092
+ id
3093
+ name
3094
+ description
3095
+ orderBy
3096
+ }
3097
+ id
3098
+ pk
3099
+ name
3100
+ description
3101
+ }
3102
+ primaryLocation {
3103
+ id
3104
+ address1
3105
+ address2
3106
+ city
3107
+ state
3108
+ zipCode
3109
+ country
3110
+ isPrimary
3111
+ locationType
3112
+ locationName
3113
+ phone
3114
+ email
3115
+ createdAt
3116
+ updatedAt
3117
+ fullAddress
3118
+ }
3119
+ averageScore
3120
+ ownedByUser
3121
+ }
3122
+ contact {
3123
+ id
3124
+ name
3125
+ firstName
3126
+ lastName
3127
+ email
3128
+ workEmail
3129
+ workEmail2
3130
+ personalEmail
3131
+ personalEmail2
3132
+ phone
3133
+ phone2
3134
+ phone3
3135
+ title
3136
+ linkedinUrl
3137
+ isPrimary
3138
+ isCustomer
3139
+ notes
3140
+ lastContactedAt
3141
+ ownedByUser
3142
+ contactLog {
3143
+ id
3144
+ sentAt
3145
+ openedAt
3146
+ clickedAt
3147
+ bouncedAt
3148
+ status
3149
+ }
3150
+ inSegments {
3151
+ id
3152
+ name
3153
+ state
3154
+ industry
3155
+ }
3156
+ companyName
3157
+ stats {
3158
+ totalOpened
3159
+ totalReplied
3160
+ totalBounced
3161
+ }
3162
+ }
3163
+ dueDate
3164
+ priority
3165
+ reminderType
3166
+ status
3167
+ assignedTo {
3168
+ id
3169
+ email
3170
+ firstName
3171
+ lastName
3172
+ picture
3173
+ }
3174
+ completedAt
3175
+ createdAt
3176
+ updatedAt
3177
+ callCampaign {
3178
+ id
3179
+ user {
3180
+ id
3181
+ email
3182
+ firstName
3183
+ lastName
3184
+ picture
3185
+ }
3186
+ account {
3187
+ id
3188
+ name
3189
+ isActive
3190
+ createdAt
3191
+ updatedAt
3192
+ }
3193
+ createdAt
3194
+ updatedAt
3195
+ name
3196
+ description
3197
+ segments {
3198
+ id
3199
+ name
3200
+ description
3201
+ state
3202
+ industry
3203
+ metalType
3204
+ productCategory
3205
+ segmentType
3206
+ createdAt
3207
+ updatedAt
3208
+ isSystemTemplate
3209
+ totalContacts
3210
+ }
3211
+ status
3212
+ stats {
3213
+ totalContacts
3214
+ calledCount
3215
+ connectedCount
3216
+ remainingCount
3217
+ lastActivity
3218
+ }
3219
+ contacts
3220
+ called
3221
+ connected
3222
+ lastActivity
3223
+ }
3224
+ }
3225
+ success
3226
+ }
3227
+ }`;
3228
+ exports.DELETE_TASK = (0, client_1.gql) `
3229
+ mutation DeleteTask($id: Int!) {
3230
+ deleteTask(id: $id) {
3231
+ success
3232
+ }
3233
+ }`;
3234
+ exports.CREATE_CALL_CAMPAIGN = (0, client_1.gql) `
3235
+ mutation CreateCallCampaign($input: CallCampaignInput!) {
3236
+ createCallCampaign(input: $input) {
3237
+ callCampaign {
3238
+ id
3239
+ user {
3240
+ id
3241
+ email
3242
+ firstName
3243
+ lastName
3244
+ picture
3245
+ }
3246
+ account {
3247
+ id
3248
+ name
3249
+ isActive
3250
+ createdAt
3251
+ updatedAt
3252
+ }
3253
+ createdAt
3254
+ updatedAt
3255
+ name
3256
+ description
3257
+ segments {
3258
+ id
3259
+ name
3260
+ description
3261
+ state
3262
+ industry
3263
+ metalType
3264
+ productCategory
3265
+ segmentType
3266
+ createdAt
3267
+ updatedAt
3268
+ isSystemTemplate
3269
+ totalContacts
3270
+ }
3271
+ status
3272
+ stats {
3273
+ totalContacts
3274
+ calledCount
3275
+ connectedCount
3276
+ remainingCount
3277
+ lastActivity
3278
+ }
3279
+ contacts
3280
+ called
3281
+ connected
3282
+ lastActivity
3283
+ }
3284
+ success
3285
+ message
3286
+ }
3287
+ }`;
3288
+ exports.UPDATE_CALL_CAMPAIGN = (0, client_1.gql) `
3289
+ mutation UpdateCallCampaign($id: ID!, $input: CallCampaignInput!) {
3290
+ updateCallCampaign(id: $id, input: $input) {
3291
+ callCampaign {
3292
+ id
3293
+ user {
3294
+ id
3295
+ email
3296
+ firstName
3297
+ lastName
3298
+ picture
3299
+ }
3300
+ account {
3301
+ id
3302
+ name
3303
+ isActive
3304
+ createdAt
3305
+ updatedAt
3306
+ }
3307
+ createdAt
3308
+ updatedAt
3309
+ name
3310
+ description
3311
+ segments {
3312
+ id
3313
+ name
3314
+ description
3315
+ state
3316
+ industry
3317
+ metalType
3318
+ productCategory
3319
+ segmentType
3320
+ createdAt
3321
+ updatedAt
3322
+ isSystemTemplate
3323
+ totalContacts
3324
+ }
3325
+ status
3326
+ stats {
3327
+ totalContacts
3328
+ calledCount
3329
+ connectedCount
3330
+ remainingCount
3331
+ lastActivity
3332
+ }
3333
+ contacts
3334
+ called
3335
+ connected
3336
+ lastActivity
3337
+ }
3338
+ success
3339
+ message
3340
+ }
3341
+ }`;
3342
+ exports.DELETE_CALL_CAMPAIGN = (0, client_1.gql) `
3343
+ mutation DeleteCallCampaign($id: ID!) {
3344
+ deleteCallCampaign(id: $id) {
3345
+ success
3346
+ message
3347
+ }
3348
+ }`;
3349
+ exports.ADD_SEGMENT_TO_CALL_CAMPAIGN = (0, client_1.gql) `
3350
+ mutation AddSegmentToCallCampaign($campaignId: ID!, $segmentId: ID!) {
3351
+ addSegmentToCallCampaign(campaignId: $campaignId, segmentId: $segmentId) {
3352
+ callCampaign {
3353
+ id
3354
+ user {
3355
+ id
3356
+ email
3357
+ firstName
3358
+ lastName
3359
+ picture
3360
+ }
3361
+ account {
3362
+ id
3363
+ name
3364
+ isActive
3365
+ createdAt
3366
+ updatedAt
3367
+ }
3368
+ createdAt
3369
+ updatedAt
3370
+ name
3371
+ description
3372
+ segments {
3373
+ id
3374
+ name
3375
+ description
3376
+ state
3377
+ industry
3378
+ metalType
3379
+ productCategory
3380
+ segmentType
3381
+ createdAt
3382
+ updatedAt
3383
+ isSystemTemplate
3384
+ totalContacts
3385
+ }
3386
+ status
3387
+ stats {
3388
+ totalContacts
3389
+ calledCount
3390
+ connectedCount
3391
+ remainingCount
3392
+ lastActivity
3393
+ }
3394
+ contacts
3395
+ called
3396
+ connected
3397
+ lastActivity
3398
+ }
3399
+ success
3400
+ message
3401
+ }
3402
+ }`;
3403
+ exports.REMOVE_SEGMENT_FROM_CALL_CAMPAIGN = (0, client_1.gql) `
3404
+ mutation RemoveSegmentFromCallCampaign($campaignId: ID!, $segmentId: ID!) {
3405
+ removeSegmentFromCallCampaign(campaignId: $campaignId, segmentId: $segmentId) {
3406
+ callCampaign {
3407
+ id
3408
+ user {
3409
+ id
3410
+ email
3411
+ firstName
3412
+ lastName
3413
+ picture
3414
+ }
3415
+ account {
3416
+ id
3417
+ name
3418
+ isActive
3419
+ createdAt
3420
+ updatedAt
3421
+ }
3422
+ createdAt
3423
+ updatedAt
3424
+ name
3425
+ description
3426
+ segments {
3427
+ id
3428
+ name
3429
+ description
3430
+ state
3431
+ industry
3432
+ metalType
3433
+ productCategory
3434
+ segmentType
3435
+ createdAt
3436
+ updatedAt
3437
+ isSystemTemplate
3438
+ totalContacts
3439
+ }
3440
+ status
3441
+ stats {
3442
+ totalContacts
3443
+ calledCount
3444
+ connectedCount
3445
+ remainingCount
3446
+ lastActivity
3447
+ }
3448
+ contacts
3449
+ called
3450
+ connected
3451
+ lastActivity
3452
+ }
3453
+ success
3454
+ message
3455
+ }
3456
+ }`;
3457
+ exports.CREATE_CALL_CAMPAIGN_LOG = (0, client_1.gql) `
3458
+ mutation CreateCallCampaignLog($input: CallCampaignLogInput!) {
3459
+ createCallCampaignLog(input: $input) {
3460
+ callCampaignLog {
3461
+ id
3462
+ campaign {
3463
+ id
3464
+ user {
3465
+ id
3466
+ email
3467
+ firstName
3468
+ lastName
3469
+ picture
3470
+ }
3471
+ account {
3472
+ id
3473
+ name
3474
+ isActive
3475
+ createdAt
3476
+ updatedAt
3477
+ }
3478
+ createdAt
3479
+ updatedAt
3480
+ name
3481
+ description
3482
+ segments {
3483
+ id
3484
+ name
3485
+ description
3486
+ state
3487
+ industry
3488
+ metalType
3489
+ productCategory
3490
+ segmentType
3491
+ createdAt
3492
+ updatedAt
3493
+ isSystemTemplate
3494
+ totalContacts
3495
+ }
3496
+ status
3497
+ stats {
3498
+ totalContacts
3499
+ calledCount
3500
+ connectedCount
3501
+ remainingCount
3502
+ lastActivity
3503
+ }
3504
+ contacts
3505
+ called
3506
+ connected
3507
+ lastActivity
3508
+ }
3509
+ contact {
3510
+ id
3511
+ name
3512
+ firstName
3513
+ lastName
3514
+ email
3515
+ workEmail
3516
+ workEmail2
3517
+ personalEmail
3518
+ personalEmail2
3519
+ phone
3520
+ phone2
3521
+ phone3
3522
+ title
3523
+ linkedinUrl
3524
+ isPrimary
3525
+ isCustomer
3526
+ notes
3527
+ lastContactedAt
3528
+ ownedByUser
3529
+ contactLog {
3530
+ id
3531
+ sentAt
3532
+ openedAt
3533
+ clickedAt
3534
+ bouncedAt
3535
+ status
3536
+ }
3537
+ inSegments {
3538
+ id
3539
+ name
3540
+ state
3541
+ industry
3542
+ }
3543
+ companyName
3544
+ stats {
3545
+ totalOpened
3546
+ totalReplied
3547
+ totalBounced
3548
+ }
3549
+ }
3550
+ user {
3551
+ id
3552
+ email
3553
+ firstName
3554
+ lastName
3555
+ picture
3556
+ }
3557
+ account {
3558
+ id
3559
+ name
3560
+ isActive
3561
+ createdAt
3562
+ updatedAt
3563
+ }
3564
+ status
3565
+ outcome
3566
+ notes
3567
+ businessSize
3568
+ businessRevenue
3569
+ businessEmployees
3570
+ businessLocation
3571
+ businessIndustry
3572
+ createdAt
3573
+ updatedAt
3574
+ }
3575
+ success
3576
+ message
3577
+ }
3578
+ }`;
3579
+ exports.UPDATE_CALL_CAMPAIGN_LOG = (0, client_1.gql) `
3580
+ mutation UpdateCallCampaignLog($id: ID!, $input: CallCampaignLogInput!) {
3581
+ updateCallCampaignLog(id: $id, input: $input) {
3582
+ callCampaignLog {
3583
+ id
3584
+ campaign {
3585
+ id
3586
+ user {
3587
+ id
3588
+ email
3589
+ firstName
3590
+ lastName
3591
+ picture
3592
+ }
3593
+ account {
3594
+ id
3595
+ name
3596
+ isActive
3597
+ createdAt
3598
+ updatedAt
3599
+ }
3600
+ createdAt
3601
+ updatedAt
3602
+ name
3603
+ description
3604
+ segments {
3605
+ id
3606
+ name
3607
+ description
3608
+ state
3609
+ industry
3610
+ metalType
3611
+ productCategory
3612
+ segmentType
3613
+ createdAt
3614
+ updatedAt
3615
+ isSystemTemplate
3616
+ totalContacts
3617
+ }
3618
+ status
3619
+ stats {
3620
+ totalContacts
3621
+ calledCount
3622
+ connectedCount
3623
+ remainingCount
3624
+ lastActivity
3625
+ }
3626
+ contacts
3627
+ called
3628
+ connected
3629
+ lastActivity
3630
+ }
3631
+ contact {
3632
+ id
3633
+ name
3634
+ firstName
3635
+ lastName
3636
+ email
3637
+ workEmail
3638
+ workEmail2
3639
+ personalEmail
3640
+ personalEmail2
3641
+ phone
3642
+ phone2
3643
+ phone3
3644
+ title
3645
+ linkedinUrl
3646
+ isPrimary
3647
+ isCustomer
3648
+ notes
3649
+ lastContactedAt
3650
+ ownedByUser
3651
+ contactLog {
3652
+ id
3653
+ sentAt
3654
+ openedAt
3655
+ clickedAt
3656
+ bouncedAt
3657
+ status
3658
+ }
3659
+ inSegments {
3660
+ id
3661
+ name
3662
+ state
3663
+ industry
3664
+ }
3665
+ companyName
3666
+ stats {
3667
+ totalOpened
3668
+ totalReplied
3669
+ totalBounced
3670
+ }
3671
+ }
3672
+ user {
3673
+ id
3674
+ email
3675
+ firstName
3676
+ lastName
3677
+ picture
3678
+ }
3679
+ account {
3680
+ id
3681
+ name
3682
+ isActive
3683
+ createdAt
3684
+ updatedAt
3685
+ }
3686
+ status
3687
+ outcome
3688
+ notes
3689
+ businessSize
3690
+ businessRevenue
3691
+ businessEmployees
3692
+ businessLocation
3693
+ businessIndustry
3694
+ createdAt
3695
+ updatedAt
3696
+ }
3697
+ success
3698
+ message
3699
+ }
3700
+ }`;