-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathschema.graphql
More file actions
1683 lines (1271 loc) · 36 KB
/
schema.graphql
File metadata and controls
1683 lines (1271 loc) · 36 KB
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
"""Directive for field renaming"""
directive @renameFrom(
"""Parent's field name"""
name: String!
) on FIELD_DEFINITION
"""Directive for setting field default value"""
directive @default(
"""Default field value encoded in JSON"""
value: String!
) on FIELD_DEFINITION
"""Directive for checking a field for empty space"""
directive @validate(notEmpty: Boolean, isEmail: Boolean) on ARGUMENT_DEFINITION
"""Directive for automatically image uploading"""
directive @uploadImage on ARGUMENT_DEFINITION
"""Allow access to the field to anonymous users"""
directive @allowAnon on FIELD_DEFINITION
"""Access to the field only for admins"""
directive @requireAdmin on FIELD_DEFINITION
"""Directive for checking user in workspace"""
directive @requireUserInWorkspace on FIELD_DEFINITION
"""Exposes a URL that specifies the behavior of this scalar."""
directive @specifiedBy(
"""The URL that specifies the behavior of this scalar."""
url: String!
) on SCALAR
"""User bank card"""
type BankCard {
"""Bank card id"""
id: ID!
"""Last four numbers of card PAN"""
lastFour: Int!
}
"""Payment link structure"""
type BillingSession {
"""Total payment amount in kopecs"""
amount: Long!
"""Payment status"""
status: String!
"""If the payment is successfull"""
success: Boolean!
"""URL to the payment page"""
paymentURL: String!
}
"""Business operation object"""
type BusinessOperation {
"""Id of operation"""
id: String!
"""Business operation type"""
type: BusinessOperationType!
"""Indicates current state of the operation"""
status: BusinessOperationStatus!
"""Metadata related to the operation type"""
payload: BusinessOperationPayload!
"""When the operation was registered"""
dtCreated: DateTime!
}
"""All available payload types for different types of operations"""
union BusinessOperationPayload = PayloadOfDepositByUser | PayloadOfWorkspacePlanPurchase
"""Business operations statuses"""
enum BusinessOperationStatus {
"""Business operation is pending"""
PENDING
"""Business operation is confirmed"""
CONFIRMED
"""Business operation is rejected"""
REJECTED
}
"""Types of business operations"""
enum BusinessOperationType {
"""Workspace plan purchase by payment worker"""
WORKSPACE_PLAN_PURCHASE
"""Workspace deposit balance by user"""
DEPOSIT_BY_USER
"""
Charge minimal amount of money to link a card for further recurrent payments
"""
CARD_LINK_CHARGE
"""Refund the money that were charged to link a card"""
CARD_LINK_REFUND
}
"""Input data for cancelSubscription mutation"""
input CancelSubscriptionInput {
"""Workspace id to cancel subscription for"""
workspaceId: ID!
}
"""Respose of the cancelSubscription mutation"""
type CancelSubscriptionResponse {
"""Workspace id"""
recordId: ID!
"""Modified workspace"""
record: Workspace!
}
"""
This object will be returned to the changeUserNotificationsChannel mutation
"""
type changeUserNotificationsChannelResponse {
notifications: UserNotificationsSettings
}
"""The structure represents payload for toggling receive type"""
input ChangeUserNotificationsReceiveTypeInput {
IssueAssigning: Boolean
WeeklyDigest: Boolean
}
"""
This object will be returned to the changeUserNotificationsReceiveType mutation
"""
type changeUserNotificationsReceiveTypeResponse {
notifications: UserNotificationsSettings
}
"""Payload for changing workspace tariff plan"""
input changeWorkspacePlanToDefaultInput {
"""Workspace ID"""
workspaceId: ID!
}
"""Workspace tariff plan change mutation response"""
type changeWorkspacePlanToDefaultResponse {
"""Workspace id which plan changed"""
recordId: ID
"""Workspace which plan changed"""
record: Workspace!
}
type ChartDataItem {
"""Events timestamp"""
timestamp: Int
"""Amount of events"""
count: Int
}
"""Chart line definition"""
type ChartLine {
"""Series label (e.g., events-accepted)"""
label: String!
"""Data points for the series"""
data: [ChartDataItem!]!
}
"""Release commit"""
type Commit {
"""Hash of the commit"""
hash: String!
"""Commit author"""
author: String!
"""Commit title"""
title: String!
"""Commit creation date"""
date: DateTime!
}
"""Input for composePayment query"""
input ComposePaymentInput {
"""Workspace id for which the payment will be made"""
workspaceId: ID!
"""Tariff plan id user is going to pay for"""
tariffPlanId: ID!
"""Whether card should be saved for future recurrent payments"""
shouldSaveCard: Boolean
}
"""Minimal plan info used in composePayment response"""
type ComposePaymentPlanInfo {
"""Plan id in MongoDB"""
id: ID!
"""Plan name"""
name: String!
"""Monthly charge for plan"""
monthlyCharge: Int!
}
"""Response of composePayment query"""
type ComposePaymentResponse {
"""Human-readable invoice identifier"""
invoiceId: String!
"""Selected plan info"""
plan: ComposePaymentPlanInfo!
"""True if only card linking validation payment is expected"""
isCardLinkOperation: Boolean!
"""Currency code"""
currency: String!
"""Checksum for subsequent payment verification"""
checksum: String!
"""Next payment date (recurrent start)"""
nextPaymentDate: DateTime!
}
"""Confirmed member data in workspace"""
type ConfirmedMember {
"""Member info id"""
id: ID!
"""If member accepts an invitation, the user id will be stored there"""
user: User!
"""True if user has admin permissions"""
isAdmin: Boolean!
}
"""Input type for creating new event grouping pattern"""
input CreateProjectEventGroupingPatternInput {
"""Pattern string"""
pattern: String!
"""Id of the project"""
projectId: ID!
}
"""Input type for creating new notification rule"""
input CreateProjectNotificationsRuleInput {
"""Project id to setup"""
projectId: ID!
"""True if settings is enabled"""
isEnabled: Boolean! = true
"""What events type to recieve"""
whatToReceive: ReceiveTypes! = ONLY_NEW
"""Words to include in notification"""
including: [String!]! = []
"""Words to exclude from notification"""
excluding: [String!]! = []
"""Notification channels to recieve events"""
channels: NotificationsChannelsInput!
"""Threshold to receive notification"""
threshold: Int
"""Period to receive notification"""
thresholdPeriod: Int
}
"""Daily event information with event itself"""
type DailyEvent {
"""ID of the daily event"""
id: ID!
"""Count of events in this day"""
count: Int!
"""Count of the users affected by this event in this day"""
affectedUsers: Int!
"""Timestamp of the event grouping"""
groupingTimestamp: Int!
"""
Last repetition of the day that represents all of the repetition this day
"""
event: Event!
}
"""Information about event per day"""
type DailyEventInfo {
"""Event hash for grouping"""
groupHash: String!
"""Event occurrence count"""
count: Int!
"""Event occurrence datetime (in unixtime)"""
groupingTimestamp: Float!
"""Event's last repetition ID"""
lastRepetitionId: ID
"""Last event occurrence timestamp"""
lastRepetitionTime: Float!
"""How many users catch this error per day"""
affectedUsers: Int
}
"""Cursor for fetching daily events portion"""
type DailyEventsCursor {
"""Grouping timestamp of the first event in the next portion"""
groupingTimestampBoundary: Int!
"""Sort key value of the first event in the next portion"""
sortValueBoundary: Int!
"""ID of the first event of in the next portion"""
idBoundary: ID!
}
input DailyEventsCursorInput {
groupingTimestampBoundary: Int!
sortValueBoundary: Int!
idBoundary: ID!
}
"""Pagination cursor of events portion and list of daily events"""
type DailyEventsPortion {
"""
Pointer to the next portion of dailyEvents, null if there are no events left
"""
nextCursor: DailyEventsCursor
"""List of daily events"""
dailyEvents: [DailyEvent]
}
"""
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the
`date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO
8601 standard for representation of dates and times using the Gregorian calendar.
"""
scalar DateTime
"""Represents JSON objects encoded (or not) in string format"""
scalar EncodedJSON
"""Type representing Hawk single Event"""
type Event {
"""Event id"""
id: ID!
"""Catcher type"""
catcherType: String!
"""Event group hash"""
groupHash: String!
"""Event occurrence count"""
totalCount: Int!
"""User assigneed to the event"""
assignee: User
"""Event payload"""
payload: EventPayload!
"""Event timestamp"""
timestamp: Float!
"""First occurrence timestamp"""
originalTimestamp: Float!
"""Id of the original event"""
originalEventId: ID!
"""Release data"""
release: Release
"""Event repetitions portion"""
repetitionsPortion(cursor: String = null, limit: Int = 10): RepetitionsPortion!
"""AI suggestion for the event"""
aiSuggestion: String
"""Array of users who visited event"""
visitedBy: [User!]
"""Event label for current user"""
marks: EventMarks!
"""How many users catch this error"""
usersAffected: Int
"""Return graph of the error rate for the specified period"""
chartData(
"""How many days we need to fetch for displaying in a chart"""
days: Int! = 0
"""User's local timezone offset in minutes"""
timezoneOffset: Int! = 0
): [ChartLine!]!
}
"""Event backtrace representation"""
type EventBacktraceFrame {
"""Source filepath"""
file: String
"""Called line"""
line: Int
"""Called column"""
column: Int
"""Part of source code file near the called line"""
sourceCode: [SourceCodeLine]
"""Function name extracted from current stack frame"""
function: String
"""Function arguments extracted from current stack frame"""
arguments: [String]
}
"""Possible event marks"""
enum EventMark {
resolved
starred
ignored
}
"""Object returned in marks property of event object"""
type EventMarks {
resolved: Boolean!
starred: Boolean!
ignored: Boolean!
}
"""Type representing Event payload"""
type EventPayload {
"""Event title"""
title: String!
"""Event type: TypeError, ReferenceError etc."""
type: String
"""Event severity level"""
level: Int
"""Event stack array from the latest call to the earliest"""
backtrace: [EventBacktraceFrame]
"""Additional data about GET request"""
get: JSONObject
"""Additional data about POST request"""
post: JSONObject
"""HTTP headers"""
headers: JSONObject
"""Source code version identifier"""
release: String
"""Current authenticated user"""
user: EventUser
"""Any additional data of Event"""
context: EncodedJSON
"""Custom data provided by project users"""
addons: EncodedJSON
}
input EventsFilter {
"""
Search query string. Only alphanumeric characters, spaces, and some special characters are allowed.
Max length: 100 characters
"""
search: String
}
"""Events filters input type"""
input EventsFiltersInput {
"""If True, includes events with resolved mark to the output"""
resolved: Boolean
"""If True, includes events with starred mark to the output"""
starred: Boolean
"""If True, includes events with ignored mark to the output"""
ignored: Boolean
}
type EventsMutations {
"""Set an assignee for the selected event"""
updateAssignee(input: UpdateAssigneeInput!): UpdateAssigneeResponse!
"""Remove an assignee from the selected event"""
removeAssignee(input: RemoveAssigneeInput!): RemoveAssigneeResponse!
"""Bulk set/clear assignee on many original events"""
bulkUpdateAssignee(input: BulkUpdateAssigneeInput!): BulkUpdateAssigneeResponse!
}
"""Possible events order"""
enum EventsSortOrder {
BY_DATE
BY_COUNT
BY_AFFECTED_USERS
}
"""Event user representation"""
type EventUser {
"""Internal user's identifier inside an app"""
id: ID
"""User public name"""
name: String
"""URL for user's details page"""
url: String
"""User's public picture"""
photo: String
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON
"""
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSONObject
"""Supported languages for data"""
enum Languages {
EN
RU
}
"""
The `BigInt` scalar type represents non-fractional signed whole numeric values.
"""
scalar Long
"""Represents two types of Members in workspace's team"""
union Member = ConfirmedMember | PendingMember
"""API mutations"""
type Mutation {
"""Unused field to let extend this type"""
_: Boolean
"""Remove card"""
removeCard(cardNumber: String!): Boolean!
"""Mutation for processing payment with saved card"""
payWithCard(input: PayWithCardInput!): PayWithCardResponse!
"""Returns JSON data with payment link and initiate card attach procedure"""
attachCard(language: String): BillingSession!
"""Mutation marks event as visited for current user"""
visitEvent(
"""ID of project event is related to"""
projectId: ID!
"""ID of the event to visit"""
eventId: ID!
): Boolean!
"""Mark many original events as visited for current user"""
bulkVisitEvents(
"""ID of project event is related to"""
projectId: ID!
"""Original event ids"""
eventIds: [ID!]!
): BulkVisitEventsResult!
"""Mutation sets or unsets passed mark to event"""
toggleEventMark(
"""ID of project event is related to"""
project: ID!
"""EvenID of the event to set the mark"""
eventId: ID!
"""Mark to set"""
mark: EventMark!
): Boolean!
"""Bulk set or clear one mark on many original events"""
bulkSetEventMarks(
"""Project id"""
projectId: ID!
"""Original event ids"""
eventIds: [ID!]!
"""Mark to update"""
mark: EventMark!
"""True - set mark, false - clear mark"""
enabled: Boolean!
): BulkSetEventMarksResult!
"""Namespace that contains only mutations related to the events"""
events: EventsMutations!
"""
Creates new notification rule and add it to start of the array of notifications rules
"""
createProjectNotificationsRule(
"""Data for creating"""
input: CreateProjectNotificationsRuleInput!
): ProjectNotificationsRule
"""Updates existing notifications rule"""
updateProjectNotificationsRule(
"""Data for updating"""
input: UpdateProjectNotificationsRuleInput!
): ProjectNotificationsRule
"""Removes notifications rule from project"""
deleteProjectNotificationsRule(
"""Data for deleting"""
input: ProjectNotificationRulePointer!
): ProjectNotificationsRule
"""Toggles isEnabled field in in project notifications rule"""
toggleProjectNotificationsRuleEnabledState(
"""Data for toggling"""
input: ProjectNotificationRulePointer
): ProjectNotificationsRule
"""Unsubscribes from notifications by disabling the rule"""
unsubscribeFromNotifications(
"""Data for unsubscribing"""
input: ProjectNotificationRulePointer!
): ProjectNotificationsRule
"""Create project in given workspace"""
createProject(
"""Workspace ID"""
workspaceId: ID!
"""Project name"""
name: String!
"""Project image"""
image: Upload
): Project!
"""Update project settings"""
updateProject(
"""What project to update"""
id: ID!
"""Project name"""
name: String!
"""Project description"""
description: String
"""Project image"""
image: Upload
"""Rate limits configuration"""
rateLimitSettings: RateLimitSettingsInput
): Project!
"""Update project rate limits settings"""
updateProjectRateLimits(
"""What project to update"""
id: ID!
"""Rate limits configuration. Pass null to remove rate limits."""
rateLimitSettings: RateLimitSettingsInput
): Project!
"""Generates new project integration token by id"""
generateNewIntegrationToken(
"""What project to regenerate integration token"""
id: ID!
): UpdateProjectResponse!
"""Remove project"""
removeProject(
"""What project to remove"""
projectId: ID!
): Boolean!
"""Updates user's visit time on project"""
updateLastProjectVisit(
"""project ID"""
projectId: ID!
): DateTime!
"""Register user with provided email. Returns true if registred"""
signUp(
"""Registration email"""
email: String!
"""UTM parameters"""
utm: UtmInput
): Boolean!
"""Login user with provided email and password"""
login(
"""User email"""
email: String!
"""User password"""
password: String!
): Tokens!
"""Update user's tokens pair"""
refreshTokens(
"""Refresh token for getting new token pair"""
refreshToken: String!
): Tokens!
"""Reset user's password"""
resetPassword(
"""User email"""
email: String!
): Boolean!
"""Update user's profile"""
updateProfile(
"""User name"""
name: String!
"""User email"""
email: String!
"""User image file"""
image: Upload
): Boolean!
"""Change user password"""
changePassword(
"""Current user password"""
oldPassword: String!
"""New user password"""
newPassword: String!
): Boolean!
"""Change user notifications channel settings"""
changeUserNotificationsChannel(
"""Channel data to update"""
input: NotificationsChannelsInput!
): changeUserNotificationsChannelResponse!
"""Toggle user notifications receive type active status"""
changeUserNotificationsReceiveType(
"""Receive type with its new is-enabled value"""
input: ChangeUserNotificationsReceiveTypeInput!
): changeUserNotificationsReceiveTypeResponse!
"""Create new workspace"""
createWorkspace(
"""New workspace name"""
name: String!
"""New workspace description"""
description: String
"""New workspace image"""
image: Upload
): Workspace!
"""
Invite user to workspace
Returns true if operation is successful
"""
inviteToWorkspace(
"""Email of the user to invite"""
userEmail: String!
"""id of the workspace to which the user is invited"""
workspaceId: ID!
): Boolean!
"""Update workspace settings"""
updateWorkspace(
"""What workspace to update"""
workspaceId: ID!
"""Workspace name"""
name: String!
"""Workspace description"""
description: String
"""Workspace image"""
image: Upload
): Boolean!
"""Join to workspace by invite link with hash"""
joinByInviteLink(
"""Workspace invite hash from link"""
inviteHash: String!
): UpdateWorkspaceResponse!
"""
Confirm invitation to workspace
Returns true if operation is successful
"""
confirmInvitation(
"""Hash from invitation link"""
inviteHash: String!
"""Id of the workspace to which the user was invited"""
workspaceId: ID!
): UpdateWorkspaceResponse!
"""
Grant admin permissions
Returns true if operation is successful
"""
grantAdmin(
"""Workspace ID"""
workspaceId: ID!
"""ID of user to grant permissions"""
userId: ID!
"""Permissions state (true to grant, false to withdraw)"""
state: Boolean = true
): Boolean!
"""
Remove member from workspace
Returns true if operation is successful
"""
removeMemberFromWorkspace(
"""Workspace ID"""
workspaceId: ID!
"""ID of user to remove"""
userId: ID
"""Email of user to remove"""
userEmail: String
): Boolean!
"""
Mutation in order to leave workspace
Returns true if operation is successful
"""
leaveWorkspace(
"""Workspace ID"""
workspaceId: ID!
): Boolean!
"""
Mutation in order to switch workspace tariff plan to default
Returns updated workspace
"""
changeWorkspacePlanToDefault(input: changeWorkspacePlanToDefaultInput): changeWorkspacePlanToDefaultResponse!
"""Namespace for workspaces mutations"""
workspace: WorkspaceMutations!
"""Creates new event grouping pattern"""
createProjectEventGroupingPattern(
"""Data for creating"""
input: CreateProjectEventGroupingPatternInput!
): ProjectEventGroupingPattern
"""Updates existing event grouping pattern"""
updateProjectEventGroupingPattern(
"""Data for updating"""
input: UpdateProjectEventGroupingPatternInput!
): ProjectEventGroupingPattern
"""Removes notifications rule from project"""
removeProjectEventGroupingPattern(
"""Data for deleting"""
input: RemoveProjectEventGroupingPatternInput!
): ProjectEventGroupingPattern
}
"""All available notification channels"""
type NotificationsChannels {
"""Email channel"""
email: NotificationsChannelSettings
"""Telegram channel"""
telegram: NotificationsChannelSettings
"""Slack channel"""
slack: NotificationsChannelSettings
"""Webhook channel"""
webhook: NotificationsChannelSettings
"""Webpush"""
webPush: NotificationsChannelSettings
"""Push from Hawk Desktop app"""
desktopPush: NotificationsChannelSettings
}
"""Settings for notification channels"""
type NotificationsChannelSettings {
"""True if channel is enabled"""
isEnabled: Boolean!
"""Where to deliver messages"""
endpoint: String!
"""How often to send event (one alert in 'minPeriod' secs)"""
minPeriod: Int!
}
"""Input type for updateting channel settings"""
input NotificationsChannelSettingsInput {
"""True if channel is enabled"""
isEnabled: Boolean! = true
"""Where to deliver messages"""
endpoint: String!
"""How often to send event (one alert in 'minPeriod' secs)"""
minPeriod: Int! = 60
}
"""Input type for creating and updating notification channels"""
input NotificationsChannelsInput {
"""Email channel"""
email: NotificationsChannelSettingsInput
"""Telegram channel"""
telegram: NotificationsChannelSettingsInput
"""Slack channel"""
slack: NotificationsChannelSettingsInput
"""Webhook channel"""
webhook: NotificationsChannelSettingsInput
"""Web push"""
webPush: NotificationsChannelSettingsInput
"""Desktop push"""
desktopPush: NotificationsChannelSettingsInput
}
"""Business operation payload type for 'DepositByUser' operation type"""
type PayloadOfDepositByUser {
"""Workspace to which the payment is credited"""
workspace: Workspace!
"""Amount of payment in US cents"""
amount: Long!
"""User who made the payment"""
user: User!
"""PAN of card which user made the payment"""
cardPan: String
}
"""
Business operation payload type for 'WorkspacePlanPurchase' operation type
"""
type PayloadOfWorkspacePlanPurchase {
"""Workspace to which the payment is debited"""
workspace: Workspace!
"""1/100 of the final amount. (US cents for USD, kopecks for RUB)"""
amount: Long!
"""Currency of payment"""
currency: String!
}