-
Notifications
You must be signed in to change notification settings - Fork 212
/
Copy pathtelemetry-events.ts
2813 lines (2525 loc) · 63.1 KB
/
telemetry-events.ts
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
/**
* Traits sent along with the Segment identify call
*/
export type IdentifyTraits = {
/**
* Shortened version number (e.g., '1.29').
*/
compass_version: string;
/**
* The full version of the Compass application, including additional identifiers
* such as build metadata or pre-release tags (e.g., '1.29.0-beta.1').
*/
compass_full_version: string;
/**
* The distribution of Compass being used.
*/
compass_distribution: 'compass' | 'compass-readonly' | 'compass-isolated';
/**
* The release channel of Compass.
* - 'stable' for the general release.
* - 'beta' for pre-release versions intended for testing.
* - 'dev' for development versions only distributed internally.
*/
compass_channel: 'stable' | 'beta' | 'dev';
/**
* The platform on which Compass is running, derived from Node.js `os.platform()`.
* Corresponds to the operating system (e.g., 'darwin' for macOS, 'win32' for Windows, 'linux' for Linux).
*/
platform: string;
/**
* The architecture of the system's processor, derived from Node.js `os.arch()`.
* 'x64' for 64-bit processors and 'arm' for ARM processors.
*/
arch: string;
/**
* The type of operating system, including specific operating system
* names or types (e.g., 'Linux', 'Windows_NT', 'Darwin').
*/
os_type?: string;
/**
* Detailed kernel or system version information.
* Example: 'Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64'.
*/
os_version?: string;
/**
* The architecture of the operating system, if available, which might be more specific
* than the system's processor architecture (e.g., 'x86_64' for 64-bit architecture).
*/
os_arch?: string;
/**
* The release identifier of the operating system.
* This can provide additional details about the operating system release or
* version (e.g. the kernel version for a specific macOS release).
*
* NOTE: This property helps determine the macOS version in use. The reported
* version corresponds to the Darwin kernel version, which can be mapped
* to the respective macOS release using the conversion table available at:
* https://en.wikipedia.org/wiki/MacOS_version_history.
*/
os_release?: string;
/**
* The Linux distribution name, if running on a Linux-based operating system,
* derived by reading from `/etc/os-release`.
* Examples include 'ubuntu', 'debian', or 'rhel'.
*/
os_linux_dist?: string;
/**
* The version of the Linux distribution, if running on a Linux-based operating system,
* derived by reading from `/etc/os-release`.
* Examples include '20.04' for Ubuntu or '10' for Debian.
*/
os_linux_release?: string;
};
export type CommonProperties = {
is_compass_web?: true;
};
/**
* All events in compass
*/
type CommonEvent<E extends { payload: unknown }> = E & {
payload: E['payload'] & CommonProperties;
};
export type ConnectionScopedProperties = {
/**
* The id of the connection associated to this event.
*/
connection_id: string | undefined;
};
/**
* Events that are connection scoped are associated with one connection.
*/
type ConnectionScopedEvent<E extends { payload: unknown }> = E & {
payload: E['payload'] & CommonProperties & ConnectionScopedProperties;
};
/**
* This event is fired when user successfully signed in to their Atlas account
*
* @category Atlas
*/
type AtlasSignInSuccessEvent = CommonEvent<{
name: 'Atlas Sign In Success';
payload: {
/**
* The id of the atlas user who signed in.
*/
auid: string;
};
}>;
/**
* This event is fired when user failed to sign in to their Atlas account.
*
* @category Atlas
*/
type AtlasSignInErrorEvent = CommonEvent<{
name: 'Atlas Sign In Error';
payload: {
/**
* The error message reported on sign in.
*/
error: string;
};
}>;
/**
* This event is fired when user signed out from their Atlas account.
*
* @category Atlas
*/
type AtlasSignOutEvent = CommonEvent<{
name: 'Atlas Sign Out';
payload: {
/**
* The id of the atlas user who signed out.
*/
auid: string;
};
}>;
/**
* This event is fired when user selects a use case from the aggregation panel.
*
* @category Aggregation Builder
*/
type AggregationUseCaseAddedEvent = ConnectionScopedEvent<{
name: 'Aggregation Use Case Added';
payload: {
/**
* Specifies if the use case was added via drag and drop.
*/
drag_and_drop?: boolean;
/**
* The name of the stage added.
*/
stage_name?: string;
};
}>;
/**
* This event is fired when user adds/remove a stage or changes the stage name
* in the stage editor view.
*
* @category Aggregation Builder
*/
type AggregationEditedEvent = ConnectionScopedEvent<{
name: 'Aggregation Edited';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages?: number;
/**
* The type of view used to edit the aggregation.
*/
editor_view_type?: 'stage' | 'text' | 'focus';
/**
* The index of the stage being edited.
*/
stage_index?: number;
/**
* The edit action being performed for stage and focus mode.
*/
stage_action?:
| 'stage_content_changed'
| 'stage_renamed'
| 'stage_added'
| 'stage_deleted'
| 'stage_reordered'
| 'stage_added';
/**
* The name of the stage edited.
*/
stage_name?: string | null;
};
}>;
/**
* This event is fired when user runs the aggregation.
*
* @category Aggregation Builder
*/
type AggregationExecutedEvent = ConnectionScopedEvent<{
name: 'Aggregation Executed';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
/**
* The type of editor view from which the aggregation has been executed.
*/
editor_view_type: 'stage' | 'text' | 'focus';
/**
* The names of the stages in the pipeline being executed.
*/
stage_operators: (string | undefined)[];
};
}>;
/**
* This event is fired when a user cancel a running aggregation.
*
* @category Aggregation Builder
*/
type AggregationCanceledEvent = ConnectionScopedEvent<{
name: 'Aggregation Canceled';
payload: Record<string, never>;
}>;
/**
* This event is fired when an aggregation times out
*
* @category Aggregation Builder
*/
type AggregationTimedOutEvent = ConnectionScopedEvent<{
name: 'Aggregation Timed Out';
payload: {
/**
* The max_time_ms setting of the aggregation timed out.
*/
max_time_ms: number | null;
};
}>;
/**
* This event is fired when user saves aggregation pipeline as a view
*
* @category Aggregation Builder
*/
type AggregationSavedAsViewEvent = ConnectionScopedEvent<{
name: 'Aggregation Saved As View';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
};
}>;
/**
* This event is fired when user clicks to expand focus mode.
*
* @category Aggregation Builder
*/
type FocusModeOpenedEvent = ConnectionScopedEvent<{
name: 'Focus Mode Opened';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
};
}>;
/**
* This event is fired when user clicks to minimize focus mode.
*
* @category Aggregation Builder
*/
type FocusModeClosedEvent = ConnectionScopedEvent<{
name: 'Focus Mode Closed';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
/**
* Time elapsed between the focus mode has been opened and then closed
* (in milliseconds).
*/
duration: number;
};
}>;
/**
* This event is fired when user changes editor type.
*
* @category Aggregation Builder
*/
type EditorTypeChangedEvent = ConnectionScopedEvent<{
name: 'Editor Type Changed';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
/**
* The new type of view that editor was changed to.
*/
editor_view_type: 'stage' | 'text' | 'focus';
};
}>;
/**
* This event is fired when users saves a completed use case form, adding
* the stage to their pipeline.
*
* @category Aggregation Builder
*/
type AggregationUseCaseSavedEvent = ConnectionScopedEvent<{
name: 'Aggregation Use Case Saved';
payload: {
/**
* The name of the stage the use case refers to.
*/
stage_name: string | null;
};
}>;
/**
* This event is fired when user saves aggregation pipeline.
*
* @category Aggregation Builder
*/
type AggregationSavedEvent = ConnectionScopedEvent<{
name: 'Aggregation Saved';
payload: {
/**
* A unique id for the aggregation object being saved.
*/
id: string;
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages?: number;
/**
* The type of editor view from which the aggregation is being saved.
*/
editor_view_type: 'stage' | 'text' | 'focus';
};
}>;
/**
* This event is fired when user opens a previously saved aggregation pipeline.
*
* @category Aggregation Builder
*/
type AggregationOpenedEvent = ConnectionScopedEvent<{
name: 'Aggregation Opened';
payload: {
/**
* A unique id for the aggregation object being opened.
*/
id?: string;
/**
* The type of editor view from which the aggregation is being opened.
*/
editor_view_type?: 'stage' | 'text' | 'focus';
/**
* The screen from which the aggregation is being opened.
*/
screen?: 'my_queries' | 'aggregations';
};
}>;
/**
* This event is fired when user deletes a previously saved aggregation pipeline.
*
* @category Aggregation Builder
*/
type AggregationDeletedEvent = ConnectionScopedEvent<{
name: 'Aggregation Deleted';
payload: {
/**
* A unique id for the aggregation object being deleted.
*/
id?: string;
/**
* The type of editor view from which the aggregation has been deleted.
*/
editor_view_type?: 'stage' | 'text' | 'focus';
/**
* The screen from which the aggregation has been deleted.
*/
screen?: 'my_queries' | 'aggregations';
};
}>;
/**
* This event is fired when user clicks the aggregation side panel button.
*
* @category Aggregation Builder
*/
type AggregationSidePanelOpenedEvent = ConnectionScopedEvent<{
name: 'Aggregation Side Panel Opened';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
};
}>;
/**
* This event is fired when user updates a collection view they had opened in the agg
* builder.
*
* @category Aggregation Builder
*/
type ViewUpdatedEvent = ConnectionScopedEvent<{
name: 'View Updated';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
/**
* The type of editor view from which the view has been updated.
*/
editor_view_type: 'stage' | 'text' | 'focus';
};
}>;
/**
* This event is fired when user runs the explain plan for an aggregation.
*
* @category Aggregation Builder
*/
type AggregationExplainedEvent = ConnectionScopedEvent<{
name: 'Aggregation Explained';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages: number;
/**
* Wether the explain reports that an index was used by the query.
*/
index_used: boolean;
};
}>;
/**
* This event is fired when user opens the export to language dialog.
*
* @category Aggregation Builder
*/
type AggregationExportOpenedEvent = ConnectionScopedEvent<{
name: 'Aggregation Export Opened';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages?: undefined | number;
};
}>;
/**
* This event is fired when user copies to clipboard the aggregation to export.
*
* @category Aggregation Builder
*/
type AggregationExportedEvent = ConnectionScopedEvent<{
name: 'Aggregation Exported';
payload: {
/**
* The number of stages present in the aggregation at the moment when
* the even has been fired.
*/
num_stages?: undefined | number;
/**
* The language to which the query has been exported.
*/
language?:
| 'java'
| 'javascript'
| 'csharp'
| 'python'
| 'ruby'
| 'go'
| 'rust'
| 'php';
/**
* Indicates that the query was exported including import statements.
*/
with_import_statements?: boolean;
/**
* Indicates that the query was exported including driver syntax.
*/
with_drivers_syntax?: boolean;
/**
* Indicates that the query was exported using builder syntax.
*/
with_builders?: boolean;
};
}>;
/**
* This event is fired when user copied the pipeline to clipboard.
*
* @category Aggregation Builder
*/
type AggregationCopiedEvent = CommonEvent<{
name: 'Aggregation Copied';
payload: {
/**
* A unique id for the aggregation object being copied.
*/
id: string;
/**
* The screen from which the aggregation has been copied.
*/
screen: 'my-queries';
};
}>;
/**
* This event is fired when the shell is open
*
* @category Shell
*/
type OpenShellEvent = ConnectionScopedEvent<{
name: 'Open Shell';
payload: { entrypoint?: string };
}>;
/**
* This is a group of events forwarded from the embedded shell.
* Every event from the shell is forwarded adding the "Shell " prefix to the original
* event name.
*
* Note: each forwarded event is exposing a different set of properties in
* addition to the `mongosh_version` and `session_id`. Refer to the mongosh
* tracking plan for details about single events.
*
* @category Shell
*/
type ShellEvent = ConnectionScopedEvent<{
name: `Shell ${string}`;
payload: {
/**
* The version of the embedded mongosh package.
*/
mongosh_version: string;
/**
* The shell session_id.
*/
session_id: string;
};
}>;
/**
* This event is fired when an active connection is disconnected.
*
* @category Connection
*/
type ConnectionDisconnectedEvent = ConnectionScopedEvent<{
name: 'Connection Disconnected';
payload: Record<string, never>;
}>;
/**
* This event is fired when a new connection is saved.
*
* @category Connection
*/
type ConnectionCreatedEvent = ConnectionScopedEvent<{
name: 'Connection Created';
payload: {
/**
* The favorite color for the connection created.
*/
color?: string;
};
}>;
/**
* This event is fired when a connection is removed.
*
* @category Connection
*/
type ConnectionRemovedEvent = ConnectionScopedEvent<{
name: 'Connection Removed';
payload: Record<string, never>;
}>;
/**
* This event is fired when users attempts to connect to a server/cluster.
*
* @category Connection
*/
type ConnectionAttemptEvent = ConnectionScopedEvent<{
name: 'Connection Attempt';
payload: {
/**
* Specifies if the connection is a favorite.
*/
is_favorite: boolean;
/**
* Specifies if the connection is a newly created connection.
*/
is_new: boolean;
};
}>;
export type ExtraConnectionData = {
/**
* Desktop only. The authentication type used in the connection.
*/
auth_type?: string;
/**
* Desktop only. The type of tunneling used in the connection.
*/
tunnel?: string;
/**
* Desktop only. Specifies if SRV is used in the connection.
*/
is_srv?: boolean;
/**
* Desktop only. Specifies if the connection is targeting localhost.
*/
is_localhost?: boolean;
/**
* Desktop only. Specifies if the connection URL is an Atlas URL.
*/
is_atlas_url?: boolean;
/**
* Desktop only. Specifies if the connection URL is a DigitalOcean URL.
*/
is_do_url?: boolean;
/**
* Desktop only. Specifies if the connection is in a public cloud.
*/
is_public_cloud?: boolean;
/**
* The name of the public cloud provider, if applicable.
*/
public_cloud_name?: string;
/**
* Specifies if Client-Side Field Level Encryption (CSFLE) is used.
*/
is_csfle?: boolean;
/**
* Specifies if CSFLE schema is present.
*/
has_csfle_schema?: boolean;
/**
* Specifies the number of AWS KMS providers used.
*/
count_kms_aws?: number;
/**
* Specifies the number of GCP KMS providers used.
*/
count_kms_gcp?: number;
/**
* Specifies the number of KMIP KMS providers used.
*/
count_kms_kmip?: number;
/**
* Specifies the number of Local KMS providers used.
*/
count_kms_local?: number;
/**
* Specifies the number of Azure KMS providers used.
*/
count_kms_azure?: number;
};
/**
* This event is fired when user successfully connects to a new server/cluster.
*
* @category Connection
*/
type NewConnectionEvent = ConnectionScopedEvent<{
name: 'New Connection';
payload: {
/**
* Specifies if the connection is targeting an Atlas cluster.
*/
is_atlas: boolean;
/**
* The first resolved SRV hostname in case the connection is targeting an Atlas cluster.
*/
atlas_hostname: string | null;
/**
* Specifies that the connection is targeting an Atlas local deployment.
*/
is_local_atlas: boolean;
/**
* Specifies that the connection is targeting an Atlas Data Federation deployment.
*/
is_dataLake: boolean;
/**
* Specifies that the connection is targeting an Atlas Enterprise deployment.
*/
is_enterprise: boolean;
/**
* Specifies if the connection is targeting a genuine MongoDB deployment.
*/
is_genuine: boolean;
/**
* The advertised server name, in case of non-genuine deployment.
*/
non_genuine_server_name: string;
/**
* The version of the connected server.
*/
server_version: string;
/**
* The host architecture of the connected server.
*/
server_arch?: string;
/**
* The OS family of the connected server.
*/
server_os_family?: string;
/**
* The type of connected topology.
*/
topology_type: string;
/**
* The number of saved active connections (doesn't include new connections
* that are not yet fully saved, like the ones created with the "New
* Connection" button)
*/
num_active_connections: number;
/**
* The number of inactive connections.
*/
num_inactive_connections: number;
} & ExtraConnectionData;
}>;
/**
* This event is fired when a connection attempt fails.
*
* @category Connection
*/
type ConnectionFailedEvent = ConnectionScopedEvent<{
name: 'Connection Failed';
payload: {
/**
* The error code (if available).
*/
error_code: string | number | undefined;
/**
* The error name.
*/
error_name: string;
} & ExtraConnectionData;
}>;
/**
* This event is fired when connections export initiated from either UI or CLI.
*
* @category Connection
*/
type ConnectionExportedEvent = CommonEvent<{
name: 'Connection Exported';
payload: {
/**
* Number of connections exported.
*/
count: number;
};
}>;
/**
* This event is fired when connections import initiated from either UI or CLI.
*
* @category Connection
*/
type ConnectionImportedEvent = CommonEvent<{
name: 'Connection Imported';
payload: {
/**
* Number of connections imported.
*/
count: number;
};
}>;
/**
* This event is fired when user copies a document to the clipboard.
*
* @category Documents
*/
type DocumentCopiedEvent = ConnectionScopedEvent<{
name: 'Document Copied';
payload: {
/**
* The view used to copy the document.
*/
mode: 'list' | 'json' | 'table';
};
}>;
/**
* This event is fired when user deletes a document.
*
* @category Documents
*/
type DocumentDeletedEvent = ConnectionScopedEvent<{
name: 'Document Deleted';
payload: {
/**
* The view used to delete the document.
*/
mode: 'list' | 'json' | 'table';
};
}>;
/**
* This event is fired when user updates a document
*
* @category Documents
*/
type DocumentUpdatedEvent = ConnectionScopedEvent<{
name: 'Document Updated';
payload: {
/**
* The view used to delete the document.
*/
mode: 'list' | 'json' | 'table';
};
}>;
/**
* This event is fired when user clones a document.
*
* @category Documents
*/
type DocumentClonedEvent = ConnectionScopedEvent<{
name: 'Document Cloned';
payload: {
/**
* The view used to clone the document.
*/
mode: 'list' | 'json' | 'table';
};
}>;
/**
* This event is fired when user inserts documents.
*
* @category Documents
*/
type DocumentInsertedEvent = ConnectionScopedEvent<{
name: 'Document Inserted';
payload: {
/**
* The view used to insert documents.
*/
mode?: string;
/**
* Specifies if the user inserted multiple documents.
*/
multiple?: boolean;
};
}>;
/**
* This event is fired when user explains a query.
*
* @category Explain
*/
type ExplainPlanExecutedEvent = ConnectionScopedEvent<{
name: 'Explain Plan Executed';
payload: {
/**
* Specifies if a filter was set.
*/
with_filter: boolean;
/**
* Specifies if the explain reports that an index was used by the query.
*/
index_used: boolean;
};
}>;
/**
* This event is fired when a user opens the bulk update modal.
*
* @category Bulk Operations
*/
type BulkUpdateOpenedEvent = ConnectionScopedEvent<{
name: 'Bulk Update Opened';
payload: {
/**
* Specifies if update preview was supported (the update preview runs inside a transaction.)
*/
isUpdatePreviewSupported: boolean;
};
}>;
/**
* This event is fired when a user runs a bulk update operation.
*
* @category Bulk Operations
*/
type BulkUpdateExecutedEvent = ConnectionScopedEvent<{
name: 'Bulk Update Executed';
payload: {
/**
* Specifies if update preview was supported (the update preview runs inside a transaction.)
*/
isUpdatePreviewSupported: boolean;
};
}>;
/**
* This event is fired when a user opens the bulk delete modal.