-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.js
1483 lines (1392 loc) · 34.7 KB
/
schema.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
const { gql } = require('apollo-server')
module.exports = gql`
# Activities
type Activity {
active_flag: Boolean
add_time: String
assigned_to_user_id: Int
busy_flag: Boolean
company_id: Int
created_by_user_id: Int
deal_dropbox_bcc: String
deal_id: Int
deal_title: String
done: Boolean
due_date: String
due_time: String
duration: String
id: Int!
last_notification_time: String
last_notification_user_id: Int
marked_as_done_time: String
note: String
notification_language_id: Int
org_id: Int
org_name: String
owner_name: String
participants: [Participant]
person_dropbox_bcc: String
person_id: Int
person_name: String
public_description: String
rec_master_activity_id: Int
reference_id: Int
reference_type: String
source_timezone: String
subject: String
type: String
update_time: String
update_user_id: Int
user_id: Int
}
type Participant {
person_id: Int
primary_flag: Boolean
}
# ActivityTypes
type ActivityType {
active_flag: Boolean
add_time: String
color: String
icon_key: String
id: Int!
is_custom_flag: Boolean
key_string: String
name: String
order_nr: Int
update_time: String
}
# Currencies
type Currency {
active_flag: Boolean
code: String
decimal_points: Int
id: Int!
is_custom_flag: Boolean
name: String
symbol: String
}
# Deals
type Deal {
active: Boolean
activities_count: Int
add_time: String
cc_email: String
close_time: String
creator_user_id: CreatorUserId
currency: String
deleted: Boolean
done_activities_count: Int
email_messages_count: Int
expected_close_date: String
files_count: Int
first_won_time: String
followers_count: Int
formatted_value: String
formatted_weighted_value: String
id: Int!
label: String
last_activity_date: String
last_activity_id: Int
last_incoming_mail_time: String
last_outgoing_mail_time: String
lost_reason: String
lost_time: String
next_activity_date: String
next_activity_duration: String
next_activity_id: Int
next_activity_note: String
next_activity_subject: String
next_activity_time: String
next_activity_type: String
notes_count: Int
org_hidden: Boolean
org_id: OrgId
org_name: String
owner_name: String
participants_count: Int
person_hidden: Boolean
person_id: PersonId
person_name: String
pipeline_id: Int
probability: Float
products_count: Int
reference_activities_count: Int
rotten_time: String
stage_change_time: String
stage_id: Int
stage_order_nr: Int
status: String
title: String
undone_activities_count: Int
update_time: String
user_id: UserId
value: Float
visible_to: String
weighted_value: Float
weighted_value_currency: String
won_time: String
}
type CreatorUserId {
active_flag: Boolean
email: String
has_pic: Boolean
id: Int!
name: String
pic_hash: String
value: Int
}
type OrgId {
active_flag: Boolean
address: String
cc_email: String
name: String
owner_id: Int
people_count: Int
value: Int
}
type PersonId {
value: Int
active_flag: Boolean
email: ContactMethod
name: String
phone: ContactMethod
}
type ContactMethod {
label: String
primary: Boolean
value: String
}
type UserId {
active_flag: Boolean
email: String
has_pic: Boolean
id: Int!
name: String
pic_hash: String
value: Int
}
type FindDeal {
cc_email: String
currency: String
formatted_value: String
id: Int!
organization_id: Int
organization_name: String
person_id: Int
person_name: String
status: String
title: String
user_id: Int
value: Int
visible_to: String
}
type DealSummary {
total_count: Int
total_currency_converted_value: Float
total_currency_converted_value_formatted: String
total_weighted_currency_converted_value: Float
total_weighted_currency_converted_value_formatted: String
values_total: ValuesTotal
weighted_values_total: WeightedValuesTotal
}
type ValuesTotal {
EUR: ValueTotal
GBP: ValueTotal
}
type ValueTotal {
count: Int
value: Float
value_converted: Float
value_converted_formatted: String
value_formatted: String
}
type WeightedValuesTotal {
EUR: WeightedValueTotal
GBP: WeightedValueTotal
}
type WeightedValueTotal {
count: Int
value: Int
value_formatted: String
}
type DealsTimeline {
deals: [DealsTimelineDeal]
period_start: String
period_end: String
totals: DealTimelineTotals
}
type DealsTimelineDeal {
id: Int!
creator_user_id: Int
user_id: Int
person_id: Int
org_id: Int
stage_id: Int
title: String
value: Float
currency: String
add_time: String
update_time: String
stage_change_time: String
active: Boolean
deleted: Boolean
status: String
probability: Int
next_activity_date: String
next_activity_time: String
next_activity_id: Int
last_activity_id: Int
last_activity_date: String
lost_reason: String
visible_to: String
close_time: String
pipeline_id: Int
won_time: String
first_won_time: String
lost_time: String
products_count: Int
files_count: Int
notes_count: Int
followers_count: Int
email_messages_count: Int
activities_count: Int
done_activities_count: Int
undone_activities_count: Int
reference_activities_count: Int
participants_count: Int
expected_close_date: String
last_incoming_mail_time: String
last_outgoing_mail_time: String
label: String
stage_order_nr: Int
person_name: String
org_name: String
next_activity_subject: String
next_activity_type: String
next_activity_duration: String
next_activity_note: String
formatted_value: String
weighted_value: Float
formatted_weighted_value: String
weighted_value_currency: String
rotten_time: String
owner_name: String
cc_email: String
org_hidden: Boolean
person_hidden: Boolean
}
type DealTimelineTotals {
count: Int
values: DealTimelineTotalsValues
weighted_values: DealTimelineTotalsValues
open_count: Int
open_values: DealTimelineTotalsValues
weighted_open_values: DealTimelineTotalsValues
won_count: Int
won_values: DealTimelineTotalsValues
}
type DealTimelineTotalsValues {
EUR: Float
GBP: Float
}
type DealDetail {
id: Int!
creator_user_id: CreatorUserId
user_id: UserId
person_id: PersonId
org_id: OrgId
stage_id: Int
title: String
value: Int
currency: String
add_time: String
update_time: String
stage_change_time: String
active: Boolean
deleted: Boolean
status: String
probability: Float
next_activity_date: String
next_activity_time: String
next_activity_id: String
last_activity_id: Int
last_activity_date: String
lost_reason: String
visible_to: String
close_time: String
pipeline_id: Int
won_time: String
first_won_time: String
lost_time: String
products_count: Int
files_count: Int
notes_count: Int
followers_count: Int
email_messages_count: Int
activities_count: Int
done_activities_count: Int
undone_activities_count: Int
reference_activities_count: Int
participants_count: Int
expected_close_date: String
last_incoming_mail_time: String
last_outgoing_mail_time: String
label: String
stage_order_nr: Int
person_name: String
org_name: String
next_activity_subject: String
next_activity_type: String
next_activity_duration: String
next_activity_note: String
formatted_value: String
weighted_value: Int
formatted_weighted_value: String
weighted_value_currency: String
rotten_time: String
owner_name: String
cc_email: String
org_hidden: Boolean
person_hidden: Boolean
average_time_to_won: DealDetailSplitTime
average_stage_progress: Float
age: DealDetailSplitTime
last_activity: Activity
next_activity: Activity
}
type DealDetailSplitTime {
y: Int
m: Int
d: Int
h: Int
i: Int
s: Int
total_seconds: Int
}
type Follower {
user_id: Int
id: Int!
deal_id: Int
add_time: String
}
type Email {
object: String
timestamp: String
data: EmailData
}
type EmailData {
id: Int!
cc: [EmailParticipant]
bcc: [EmailParticipant]
from: [EmailParticipant!]
to: [EmailParticipant!]
body_url: String
account_id: Int
user_id: Int
mail_thread_id: Int
subject: String
snippet: String
mail_tracking_status: String
mail_link_tracking_enabled_flag: Int
read_flag: Int
draft: String
s3_bucket: String
s3_bucket_path: String
draft_flag: Int
synced_flag: Int
deleted_flag: Int
has_body_flag: Int
sent_flag: Int
sent_from_pipedrive_flag: Int
smart_bcc_flag: Int
message_time: String
add_time: String
update_time: String
has_attachments_flag: Int
has_inline_attachments_flag: Int
has_real_attachments_flag: Int
mua_message_id: String
write_flag: Boolean
item_type: String
timestamp: String
company_id: Int
}
type EmailParticipant {
id: Int!
email_address: String
name: String
linked_person_id: Int
linked_person_name: String
mail_message_party_id: Int
}
type DealParticipantDetail {
id: Int!
person_id: PersonId
add_time: String
active_flag: Boolean
related_item_data: RelatedItemData
person: Person
added_by_user_id: AddedByUserId
related_item_type: String
related_item_id: Int
}
type RelatedItemData {
deal_id: Int
title: String
}
type Person {
id: Int!
company_id: Int
owner_id: OwnerId
org_id: OrgId
name: String
first_name: String
last_name: String
open_deals_count: Int
related_open_deals_count: Int
closed_deals_count: Int
related_closed_deals_count: Int
participant_open_deals_count: Int
participant_closed_deals_count: Int
email_messages_count: Int
activities_count: Int
done_activities_count: Int
undone_activities_count: Int
reference_activities_count: Int
files_count: Int
notes_count: Int
followers_count: Int
won_deals_count: Int
related_won_deals_count: Int
lost_deals_count: Int
related_lost_deals_count: Int
active_flag: Boolean
phone: ContactMethod
email: ContactMethod
first_char: String
update_time: String
add_time: String
visible_to: String
sync_needed: Boolean
next_activity_date: String
next_activity_time: String
next_activity_id: Int
last_activity_id: Int
last_activity_date: String
last_incoming_mail_time: String
last_outgoing_mail_time: String
label: String
org_name: String
owner_name: String
cc_email: String
}
type OwnerId {
id: Int!
name: String
email: String
has_pic: Boolean
pic_hash: String
active_flag: Boolean
value: Int
}
type AddedByUserId {
id: Int!
name: String
email: String
has_pic: Boolean
pic_hash: String
active_flag: Boolean
value: Int
}
type File {
id: Int!
user_id: Int
deal_id: Int
person_id: Int
org_id: Int
product_id: Int
email_message_id: Int
activity_id: Int
log_id: Int
add_time: String
update_time: String
file_name: String
file_type: String
file_size: Int
active_flag: Boolean
inline_flag: Boolean
remote_location: String
remote_id: String
cid: String
s3_bucket: String
mail_message_id: Int
mail_template_id: Int
deal_name: String
person_name: String
org_name: String
product_name: String
url: String
name: String
description: String
}
type Filter {
id: Int!
name: String
active_flag: Boolean
type: String
temporary_flag: Boolean
user_id: Int
add_time: String
update_time: String
visible_to: String
custom_view_id: Int
}
type EmailMessage {
id: Int!
from: [EmailParticipant]
to: [EmailParticipant]
cc: [EmailParticipant]
bcc: [EmailParticipant]
body: String
body_url: String
account_id: Int
user_id: Int
mail_thread_id: Int
subject: String
snippet: String
mail_tracking_status: String
mail_link_tracking_enabled_flag: Int
read_flag: Int
draft: String
draft_flag: Int
synced_flag: Int
deleted_flag: Int
has_body_flag: Int
sent_flag: Int
sent_from_pipedrive_flag: Int
smart_bcc_flag: Int
message_time: String
add_time: String
update_time: String
has_attachments_flag: Int
has_inline_attachments_flag: Int
has_real_attachments_flag: Int
write_flag: Boolean
}
type Note {
id: Int!
user_id: Int
deal_id: Int
person_id: Int
org_id: Int
content: String
add_time: String
update_time: String
active_flag: Boolean
pinned_to_deal_flag: Boolean
pinned_to_person_flag: Boolean
pinned_to_organization_flag: Boolean
last_update_user_id: Int
organization: NoteItem
person: NoteItem
deal: Int
user: NoteUser
}
type NoteItem {
name: String
}
type NoteUser {
email: String
name: String
icon_url: String
is_you: Boolean
}
type Organization {
id: Int!
company_id: Int
owner_id: OrganizationOwnerId
name: String
open_deals_count: Int
related_open_deals_count: Int
closed_deals_count: Int
related_closed_deals_count: Int
email_messages_count: Int
people_count: Int
activities_count: Int
done_activities_count: Int
undone_activities_count: Int
reference_activities_count: Int
files_count: Int
notes_count: Int
followers_count: Int
won_deals_count: Int
related_won_deals_count: Int
lost_deals_count: Int
related_lost_deals_count: Int
active_flag: Boolean
category_id: Int
picture_id: Int
country_code: String
first_char: String
update_time: String
add_time: String
visible_to: String
next_activity_date: String
next_activity_time: String
next_activity_id: Int
last_activity_id: Int
last_activity_date: String
label: String
address: String
address_subpremise: String
address_street_number: String
address_route: String
address_sublocality: String
address_locality: String
address_admin_area_level_1: String
address_admin_area_level_2: String
address_country: String
address_postal_code: String
address_formatted_address: String
owner_name: String
cc_email: String
}
type OrganizationOwnerId {
id: Int!
name: String
email: String
has_pic: Boolean
pic_hash: String
active_flag: Boolean
value: Int
}
type Pipeline {
id: Int!
name: String
url_title: String
order_nr: Int
active: Boolean
deal_probability: Boolean
add_time: String
update_time: String
selected: Boolean
}
type Stage {
id: Int!
order_nr: Int
name: String
active_flag: Boolean
deal_probability: Int
pipeline_id: Int
rotten_flag: Boolean
rotten_days: Int
add_time: String
update_time: String
pipeline_name: String
pipeline_deal_probability: Boolean
}
type User {
id: Int!
name: String
default_currency: String
locale: String
lang: Int
email: String
phone: String
activated: Boolean
last_login: String
created: String
modified: String
signup_flow_variation: String
has_created_company: Boolean
is_admin: Int
active_flag: Boolean
timezone_name: String
timezone_offset: String
role_id: Int
icon_url: String
is_you: Boolean
}
type UserSettings {
marketplace_allow_custom_install_url: Boolean
marketplace_app_extensions_vendor: Boolean
marketplace_app_extensions_panels: Boolean
marketplace_team: Boolean
list_limit: Int
beta_app: Boolean
prevent_salesphone_callto_override: Boolean
file_upload_destination: String
callto_link_syntax: String
autofill_deal_expected_close_date: Boolean
person_duplicate_condition: String
organization_duplicate_condition: String
add_followers_when_importing: Boolean
search_backend: String
billing_managed_by_sales: Boolean
max_deal_age_in_average_progress_calculation: Int
elastic_write_target_during_migration: String
auto_create_new_persons_from_forwarder_emails: Boolean
company_advanced_debug_logs: Boolean
deal_block_order: [UserSettingsBlockOrder]
person_block_order: [UserSettingsBlockOrder]
organization_block_order: [UserSettingsBlockOrder]
nylas_sync: Boolean
onboarding_complete: Boolean
products: Boolean
revenue_forecast_feature: Boolean
sso: Boolean
superdata: Boolean
automation_live: Boolean
sso_login_enabled: Boolean
enforce_sso: Boolean
teams: Boolean
data_police: Boolean
advanced_permissions: Boolean
merge_find_change: Boolean
group_emailing_beta: Boolean
activity_email_reminders: Boolean
activity_email_reminders_send_type: String
activity_email_reminders_amount_before: Int
activity_notifications_language_id: Int
file_convert_allowed: Boolean
default_currency: String
send_email_notifications: String
selected_tax_system: String
show_update_notifications: Boolean
create_folder_in_google_drive: Boolean
share_google_drive_files_with_company: Boolean
deals_timeline_default_field: String
deals_timeline_interval: String
deals_timeline_arrange_by: String
deals_timeline_column_count: Int
deals_timeline_show_progress: Boolean
share_incoming_emails: Boolean
connect_threads_with_deals: Boolean
email_signature: Boolean
email_signature_text: String
global_search_survey_link_clicked: Boolean
upload_all_visible_persons_to_google: Boolean
format_phone_numbers_enabled: Boolean
open_email_links_in_new_tab: Boolean
totals_convert_currency: Boolean
email_sync_filter: String
deal_details_open: Boolean
person_details_open: Boolean
organization_details_open: Boolean
calendar_sync_activity_type: String
calendar_sync_subject_format: String
show_calendar_sync_reauthentication_warning: Boolean
show_calendar_sync_activity_warning: Boolean
calendar_sync_nylas_connection_scopes: String
hide_email_settings_promotion_banner: Boolean
hide_email_reconnect_warning: Boolean
user_advanced_debug_logs: Boolean
show_filtercolumns_tutorial: Boolean
show_duplicates: Boolean
show_import_tutorial: Boolean
show_statistics_tutorial: Boolean
has_seen_mail_welcome_inline_manual: Boolean
show_activitycrossitem_tutorial: Boolean
has_seen_dropbox_old_details_deprec_notice: Boolean
has_seen_automation_welcome_screen: Boolean
link_person_to_org: Boolean
timezone_automatic_update: Boolean
use_pipedrive_mailto_links: Boolean
ab_mail_promotion1_enabled: Boolean
promote_gs_filters: Boolean
promote_gs_notes_and_fields: Boolean
invitation_last_time: Int
invitation_resent_count: Int
expanded_calendar_allday: Boolean
contacts_timeline_view_mode: String
timeline_panel_open: Boolean
timeline_panel_onboarding_done: Boolean
has_notifications: Boolean
has_taf_notifications: Boolean
filters_menu_person_tab_index: Int
filters_menu_organization_tab_index: Int
filters_menu_deal_tab_index: Int
filters_menu_activity_tab_index: Int
filters_menu_product_tab_index: Int
superdata_panel_state: SuperdataPanelState
salesforce_iq_import_clicked: Boolean
data_police_onboarding_dismiss: Boolean
important_fields_onboarding_dismiss: Boolean
scheduler_calendar_sync_message_dismissed: Boolean
google_contacts_sync_selected: Boolean
scheduler_ah_onboarding_dismissed: Boolean
scheduler_default_availability_created: Boolean
scheduler_onboarding_done: Boolean
scheduler_manage_modal_selected_tab: String
caller_default_country: String
activities_view_mode: String
current_pipeline_id: Int
deals_view_mode: String
filter_activities: String
filter_deals: String
filter_pipeline_1: String
invited_by_user_id: Int
user_activation_reminders_amount: Int
}
type UserSettingsBlockOrder {
type: String
visible: Boolean
}
type SuperdataPanelState {
person: String
person_org: String
organization: String
deal_person: String
deal_org: String
touched: String
dismissed: String
}
# Enums
enum DealsStageEnum {
open
won
lost
deleted
all_not_deleted
}
enum DealSummaryStatusEnum {
open
won
lost
}
enum DealsTimelineIntervalEnum {
day
week
month
quarter
}
enum FiltersTypeEnum {
deals
org
people
products
activity
}
# Query
type Query {
activities (
"""
ID of the user whose activities will be fetched. If omitted, the user associated with the API token will be used. If 0, activities for all company users will be fetched based on the permission sets.
"""
user_id: Int
"""
ID of the filter to use (will narrow down results if used together with user_id parameter).
"""
filter_id: Int
"""
Type of the activity, can be one type or multiple types separated by a comma. This is in correlation with the key_string parameter of ActivityTypes.
"""
type: String
"""
Pagination start
"""
start: Int
"""
Items shown per page
"""
limit: Int
"""
Date in format of YYYY-MM-DD from which activities to fetch from.
"""
start_date: String
"""
Date in format of YYYY-MM-DD until which activities to fetch to.
"""
end_date: String
"""
Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done.
"""
done: Int
): [Activity]
activity (
"""
ID of the activity
"""
id: Int!
): Activity
activityTypes: [ActivityType]
currencies (
"""
Optional search term that is searched for from currency's name and/or code.
"""
term: String
): [Currency]
deals (
"""
If supplied, only deals matching the given user will be returned.
"""
user_id: Int
"""
ID of the filter to use
"""
filter_id: Int
"""
If supplied, only deals within the given stage will be returned.
"""
stage_id: Int
"""
Only fetch deals with specific status. If omitted, all not deleted deals are fetched.
"""
status: DealsStageEnum
"""
Pagination start
"""
start: Int
"""