commandbar 1.6.5-alpha.1 → 1.6.8

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.
@@ -88,6 +88,8 @@ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
88
88
  loaded: t.ArrayC<t.AnyC>;
89
89
  allow_create: t.BooleanC;
90
90
  allow_create_label: t.StringC;
91
+ show_in_record_action_list: t.BooleanC;
92
+ show_in_default_list: t.BooleanC;
91
93
  }>]>, t.IntersectionC<[t.TypeC<{
92
94
  type: t.LiteralC<"set">;
93
95
  value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
@@ -233,7 +235,20 @@ export declare const CommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
233
235
  category: t.UnionC<[t.NumberC, t.NullC]>;
234
236
  sort_key: t.UnionC<[t.NumberC, t.NullC]>;
235
237
  icon: t.UnionC<[t.StringC, t.NullC]>;
236
- celebrate: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>;
238
+ celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
239
+ angle: t.NumberC;
240
+ spread: t.NumberC;
241
+ width: t.StringC;
242
+ height: t.StringC;
243
+ duration: t.NumberC;
244
+ dragFriction: t.NumberC;
245
+ stagger: t.NumberC;
246
+ startVelocity: t.NumberC;
247
+ elementCount: t.NumberC;
248
+ decay: t.NumberC;
249
+ colors: t.ArrayC<t.StringC>;
250
+ random: t.AnyC;
251
+ }>, t.NullC]>;
237
252
  recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
238
253
  shortcut_mac: t.ArrayC<t.StringC>;
239
254
  shortcut_win: t.ArrayC<t.StringC>;
@@ -327,6 +342,8 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
327
342
  loaded: t.ArrayC<t.AnyC>;
328
343
  allow_create: t.BooleanC;
329
344
  allow_create_label: t.StringC;
345
+ show_in_record_action_list: t.BooleanC;
346
+ show_in_default_list: t.BooleanC;
330
347
  }>]>, t.IntersectionC<[t.TypeC<{
331
348
  type: t.LiteralC<"set">;
332
349
  value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
@@ -539,13 +556,364 @@ export declare const EditorCommandV: t.IntersectionC<[t.IntersectionC<[t.TypeC<{
539
556
  category: t.UnionC<[t.NumberC, t.NullC]>;
540
557
  sort_key: t.UnionC<[t.NumberC, t.NullC]>;
541
558
  icon: t.UnionC<[t.StringC, t.NullC]>;
542
- celebrate: t.UnionC<[t.RecordC<t.StringC, t.AnyC>, t.NullC]>;
559
+ celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
560
+ angle: t.NumberC;
561
+ spread: t.NumberC;
562
+ width: t.StringC;
563
+ height: t.StringC;
564
+ duration: t.NumberC;
565
+ dragFriction: t.NumberC;
566
+ stagger: t.NumberC;
567
+ startVelocity: t.NumberC;
568
+ elementCount: t.NumberC;
569
+ decay: t.NumberC;
570
+ colors: t.ArrayC<t.StringC>;
571
+ random: t.AnyC;
572
+ }>, t.NullC]>;
543
573
  recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
544
574
  shortcut_mac: t.ArrayC<t.StringC>;
545
575
  shortcut_win: t.ArrayC<t.StringC>;
546
576
  hotkey_mac: t.StringC;
547
577
  hotkey_win: t.StringC;
548
578
  }>]>;
579
+ export declare const BatchOperationV: t.UnionC<[t.TypeC<{
580
+ op: t.LiteralC<"update">;
581
+ id: t.NumberC;
582
+ data: t.UnknownC;
583
+ }>, t.TypeC<{
584
+ op: t.LiteralC<"create">;
585
+ data: t.UnknownC;
586
+ }>, t.TypeC<{
587
+ op: t.LiteralC<"delete">;
588
+ id: t.NumberC;
589
+ }>]>;
590
+ export declare const BatchEditorCommandRequestV: t.TypeC<{
591
+ batch: t.ArrayC<t.UnknownC>;
592
+ note: t.StringC;
593
+ }>;
594
+ export declare const BatchEditorCommandResponseV: t.TypeC<{
595
+ batch: t.ArrayC<t.IntersectionC<[t.IntersectionC<[t.TypeC<{
596
+ id: t.NumberC;
597
+ organization: t.UnionC<[t.NumberC, t.StringC]>;
598
+ text: t.StringC;
599
+ template: t.UnionC<[t.IntersectionC<[t.TypeC<{
600
+ type: t.LiteralC<"admin">;
601
+ value: t.StringC;
602
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
603
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
604
+ object: t.StringC;
605
+ hoverTooltip: t.BooleanC;
606
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
607
+ }>]>]>, t.IntersectionC<[t.TypeC<{
608
+ type: t.LiteralC<"callback">;
609
+ value: t.StringC;
610
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
611
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
612
+ object: t.StringC;
613
+ hoverTooltip: t.BooleanC;
614
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
615
+ }>]>]>, t.IntersectionC<[t.TypeC<{
616
+ type: t.LiteralC<"link">;
617
+ value: t.StringC;
618
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
619
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
620
+ object: t.StringC;
621
+ hoverTooltip: t.BooleanC;
622
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
623
+ }>]>]>, t.IntersectionC<[t.TypeC<{
624
+ type: t.UnionC<[t.LiteralC<"click">, t.LiteralC<"clickBySelector">, t.LiteralC<"clickByXpath">]>;
625
+ value: t.ArrayC<t.StringC>;
626
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
627
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
628
+ object: t.StringC;
629
+ hoverTooltip: t.BooleanC;
630
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
631
+ }>]>]>, t.IntersectionC<[t.TypeC<{
632
+ type: t.LiteralC<"builtin">;
633
+ value: t.StringC;
634
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
635
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
636
+ object: t.StringC;
637
+ hoverTooltip: t.BooleanC;
638
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
639
+ }>]>]>, t.IntersectionC<[t.TypeC<{
640
+ type: t.LiteralC<"webhook">;
641
+ value: t.StringC;
642
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
643
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
644
+ object: t.StringC;
645
+ hoverTooltip: t.BooleanC;
646
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
647
+ }>]>]>, t.IntersectionC<[t.TypeC<{
648
+ type: t.LiteralC<"script">;
649
+ value: t.StringC;
650
+ }>, t.IntersectionC<[t.TypeC<{}>, t.PartialC<{
651
+ commandType: t.UnionC<[t.LiteralC<"independent">, t.LiteralC<"object">, t.LiteralC<"help">]>;
652
+ object: t.StringC;
653
+ hoverTooltip: t.BooleanC;
654
+ operation: t.UnionC<[t.LiteralC<"router">, t.LiteralC<"self">, t.LiteralC<"blank">, t.UndefinedC]>;
655
+ }>]>]>]>;
656
+ }>, t.PartialC<{
657
+ disabledReason: t.StringC;
658
+ source: t.StringC;
659
+ name: t.StringC;
660
+ last_available: t.UnionC<[t.StringC, t.NullC]>;
661
+ modified: t.StringC;
662
+ }>]>, t.TypeC<{
663
+ arguments: t.RecordC<t.StringC, t.UnionC<[t.IntersectionC<[t.TypeC<{
664
+ type: t.LiteralC<"context">;
665
+ value: t.StringC;
666
+ order_key: t.NumberC;
667
+ }>, t.PartialC<{
668
+ label: t.StringC;
669
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
670
+ selected: t.ArrayC<t.AnyC>;
671
+ input_type: t.StringC;
672
+ preselected_key: t.StringC;
673
+ label_field: t.StringC;
674
+ availability_condition: t.ArrayC<t.TypeC<{
675
+ field: t.StringC;
676
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
677
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
678
+ }>>;
679
+ loaded: t.ArrayC<t.AnyC>;
680
+ allow_create: t.BooleanC;
681
+ allow_create_label: t.StringC;
682
+ show_in_record_action_list: t.BooleanC;
683
+ show_in_default_list: t.BooleanC;
684
+ }>]>, t.IntersectionC<[t.TypeC<{
685
+ type: t.LiteralC<"set">;
686
+ value: t.UnionC<[t.ArrayC<t.StringC>, t.ArrayC<t.NumberC>, t.ArrayC<t.UnknownRecordC>]>;
687
+ order_key: t.NumberC;
688
+ }>, t.PartialC<{
689
+ label: t.StringC;
690
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
691
+ selected: t.ArrayC<t.AnyC>;
692
+ input_type: t.StringC;
693
+ preselected_key: t.StringC;
694
+ label_field: t.StringC;
695
+ availability_condition: t.ArrayC<t.TypeC<{
696
+ field: t.StringC;
697
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
698
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
699
+ }>>;
700
+ loaded: t.ArrayC<t.AnyC>;
701
+ allow_create: t.BooleanC;
702
+ allow_create_label: t.StringC;
703
+ }>]>, t.IntersectionC<[t.TypeC<{
704
+ type: t.LiteralC<"provided">;
705
+ value: t.UnionC<[t.LiteralC<"text">, t.LiteralC<"time">]>;
706
+ order_key: t.NumberC;
707
+ }>, t.PartialC<{
708
+ label: t.StringC;
709
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
710
+ selected: t.ArrayC<t.AnyC>;
711
+ input_type: t.StringC;
712
+ preselected_key: t.StringC;
713
+ label_field: t.StringC;
714
+ availability_condition: t.ArrayC<t.TypeC<{
715
+ field: t.StringC;
716
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
717
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
718
+ }>>;
719
+ loaded: t.ArrayC<t.AnyC>;
720
+ dateTimeArgumentTypeId: t.NumberC;
721
+ allow_create: t.BooleanC;
722
+ allow_create_label: t.StringC;
723
+ }>]>, t.IntersectionC<[t.TypeC<{
724
+ type: t.LiteralC<"dependent">;
725
+ value: t.StringC;
726
+ order_key: t.NumberC;
727
+ }>, t.PartialC<{
728
+ label: t.StringC;
729
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
730
+ selected: t.ArrayC<t.AnyC>;
731
+ input_type: t.StringC;
732
+ preselected_key: t.StringC;
733
+ label_field: t.StringC;
734
+ availability_condition: t.ArrayC<t.TypeC<{
735
+ field: t.StringC;
736
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
737
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
738
+ }>>;
739
+ loaded: t.ArrayC<t.AnyC>;
740
+ allow_create: t.BooleanC;
741
+ allow_create_label: t.StringC;
742
+ }>]>, t.IntersectionC<[t.TypeC<{
743
+ type: t.LiteralC<"function">;
744
+ value: t.StringC;
745
+ order_key: t.NumberC;
746
+ }>, t.PartialC<{
747
+ label: t.StringC;
748
+ chosen: t.UnionC<[t.StringC, t.NumberC]>;
749
+ selected: t.ArrayC<t.AnyC>;
750
+ input_type: t.StringC;
751
+ preselected_key: t.StringC;
752
+ label_field: t.StringC;
753
+ availability_condition: t.ArrayC<t.TypeC<{
754
+ field: t.StringC;
755
+ operator: t.UnionC<[t.LiteralC<"==">, t.LiteralC<"!=">, t.LiteralC<"isTruthy">, t.LiteralC<"isFalsy">]>;
756
+ value: t.UnionC<[t.StringC, t.UndefinedC]>;
757
+ }>>;
758
+ loaded: t.ArrayC<t.AnyC>;
759
+ allow_create: t.BooleanC;
760
+ allow_create_label: t.StringC;
761
+ }>]>]>>;
762
+ tags: t.ArrayC<t.StringC>;
763
+ availability_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
764
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
765
+ operator: t.KeyofC<{
766
+ includes: null;
767
+ endsWith: null;
768
+ startsWith: null;
769
+ is: null;
770
+ isTruthy: null;
771
+ isFalsy: null;
772
+ isNot: null;
773
+ isTrue: null;
774
+ isFalse: null;
775
+ doesNotInclude: null;
776
+ matchesRegex: null;
777
+ isGreaterThan: null;
778
+ isLessThan: null;
779
+ isDefined: null;
780
+ isNotDefined: null;
781
+ classnameOnPage: null;
782
+ idOnPage: null;
783
+ }>;
784
+ }>, t.PartialC<{
785
+ field: t.StringC;
786
+ value: t.StringC;
787
+ reason: t.StringC;
788
+ }>]>, t.IntersectionC<[t.TypeC<{
789
+ type: t.LiteralC<"named_rule">;
790
+ rule_id: t.NumberC;
791
+ }>, t.PartialC<{
792
+ reason: t.StringC;
793
+ }>]>]>>, t.ArrayC<t.IntersectionC<[t.TypeC<{
794
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
795
+ operator: t.KeyofC<{
796
+ includes: null;
797
+ endsWith: null;
798
+ startsWith: null;
799
+ is: null;
800
+ isTruthy: null;
801
+ isFalsy: null;
802
+ isNot: null;
803
+ isTrue: null;
804
+ isFalse: null;
805
+ doesNotInclude: null;
806
+ matchesRegex: null;
807
+ isGreaterThan: null;
808
+ isLessThan: null;
809
+ isDefined: null;
810
+ isNotDefined: null;
811
+ classnameOnPage: null;
812
+ idOnPage: null;
813
+ }>;
814
+ }>, t.PartialC<{
815
+ field: t.StringC;
816
+ value: t.StringC;
817
+ reason: t.StringC;
818
+ }>]>>]>;
819
+ recommend_rules: t.UnionC<[t.ArrayC<t.UnionC<[t.UnionC<[t.IntersectionC<[t.TypeC<{
820
+ type: t.LiteralC<"always">;
821
+ }>, t.PartialC<{
822
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
823
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
824
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
825
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
826
+ }>]>, t.IntersectionC<[t.TypeC<{
827
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
828
+ operator: t.KeyofC<{
829
+ includes: null;
830
+ endsWith: null;
831
+ startsWith: null;
832
+ is: null;
833
+ isTruthy: null;
834
+ isFalsy: null;
835
+ isNot: null;
836
+ isTrue: null;
837
+ isFalse: null;
838
+ doesNotInclude: null;
839
+ matchesRegex: null;
840
+ isGreaterThan: null;
841
+ isLessThan: null;
842
+ isDefined: null;
843
+ isNotDefined: null;
844
+ classnameOnPage: null;
845
+ idOnPage: null;
846
+ }>;
847
+ }>, t.PartialC<{
848
+ field: t.StringC;
849
+ value: t.StringC;
850
+ reason: t.StringC;
851
+ }>]>]>, t.IntersectionC<[t.TypeC<{
852
+ type: t.LiteralC<"named_rule">;
853
+ rule_id: t.NumberC;
854
+ }>, t.PartialC<{
855
+ reason: t.StringC;
856
+ }>]>]>>, t.ArrayC<t.UnionC<[t.IntersectionC<[t.TypeC<{
857
+ type: t.LiteralC<"always">;
858
+ }>, t.PartialC<{
859
+ operator: t.UnionC<[t.UndefinedC, t.NullC]>;
860
+ field: t.UnionC<[t.UndefinedC, t.NullC]>;
861
+ value: t.UnionC<[t.UndefinedC, t.NullC]>;
862
+ reason: t.UnionC<[t.UndefinedC, t.NullC]>;
863
+ }>]>, t.IntersectionC<[t.TypeC<{
864
+ type: t.UnionC<[t.LiteralC<"context">, t.LiteralC<"url">, t.LiteralC<"element">]>;
865
+ operator: t.KeyofC<{
866
+ includes: null;
867
+ endsWith: null;
868
+ startsWith: null;
869
+ is: null;
870
+ isTruthy: null;
871
+ isFalsy: null;
872
+ isNot: null;
873
+ isTrue: null;
874
+ isFalse: null;
875
+ doesNotInclude: null;
876
+ matchesRegex: null;
877
+ isGreaterThan: null;
878
+ isLessThan: null;
879
+ isDefined: null;
880
+ isNotDefined: null;
881
+ classnameOnPage: null;
882
+ idOnPage: null;
883
+ }>;
884
+ }>, t.PartialC<{
885
+ field: t.StringC;
886
+ value: t.StringC;
887
+ reason: t.StringC;
888
+ }>]>]>>]>;
889
+ confirm: t.StringC;
890
+ shortcut: t.ArrayC<t.StringC>;
891
+ explanation: t.StringC;
892
+ is_live: t.BooleanC;
893
+ category: t.UnionC<[t.NumberC, t.NullC]>;
894
+ sort_key: t.UnionC<[t.NumberC, t.NullC]>;
895
+ icon: t.UnionC<[t.StringC, t.NullC]>;
896
+ celebrate: t.UnionC<[t.BooleanC, t.PartialC<{
897
+ angle: t.NumberC;
898
+ spread: t.NumberC;
899
+ width: t.StringC;
900
+ height: t.StringC;
901
+ duration: t.NumberC;
902
+ dragFriction: t.NumberC;
903
+ stagger: t.NumberC;
904
+ startVelocity: t.NumberC;
905
+ elementCount: t.NumberC;
906
+ decay: t.NumberC;
907
+ colors: t.ArrayC<t.StringC>;
908
+ random: t.AnyC;
909
+ }>, t.NullC]>;
910
+ recommend_sort_key: t.UnionC<[t.NumberC, t.NullC]>;
911
+ shortcut_mac: t.ArrayC<t.StringC>;
912
+ shortcut_win: t.ArrayC<t.StringC>;
913
+ hotkey_mac: t.StringC;
914
+ hotkey_win: t.StringC;
915
+ }>]>>;
916
+ }>;
549
917
  export declare class Command {
550
918
  static create: (object: {
551
919
  id: number;
@@ -635,6 +1003,8 @@ export declare class Command {
635
1003
  loaded?: any[] | undefined;
636
1004
  allow_create?: boolean | undefined;
637
1005
  allow_create_label?: string | undefined;
1006
+ show_in_record_action_list?: boolean | undefined;
1007
+ show_in_default_list?: boolean | undefined;
638
1008
  }) | ({
639
1009
  type: "set";
640
1010
  value: string[] | number[] | {
@@ -778,8 +1148,19 @@ export declare class Command {
778
1148
  category: number | null;
779
1149
  sort_key: number | null;
780
1150
  icon: string | null;
781
- celebrate: {
782
- [x: string]: any;
1151
+ celebrate: boolean | {
1152
+ angle?: number | undefined;
1153
+ spread?: number | undefined;
1154
+ width?: string | undefined;
1155
+ height?: string | undefined;
1156
+ duration?: number | undefined;
1157
+ dragFriction?: number | undefined;
1158
+ stagger?: number | undefined;
1159
+ startVelocity?: number | undefined;
1160
+ elementCount?: number | undefined;
1161
+ decay?: number | undefined;
1162
+ colors?: string[] | undefined;
1163
+ random?: any;
783
1164
  } | null;
784
1165
  recommend_sort_key: number | null;
785
1166
  shortcut_mac: string[];
@@ -874,6 +1255,8 @@ export declare class Command {
874
1255
  loaded?: any[] | undefined;
875
1256
  allow_create?: boolean | undefined;
876
1257
  allow_create_label?: string | undefined;
1258
+ show_in_record_action_list?: boolean | undefined;
1259
+ show_in_default_list?: boolean | undefined;
877
1260
  }) | ({
878
1261
  type: "set";
879
1262
  value: string[] | number[] | {
@@ -1017,8 +1400,19 @@ export declare class Command {
1017
1400
  category: number | null;
1018
1401
  sort_key: number | null;
1019
1402
  icon: string | null;
1020
- celebrate: {
1021
- [x: string]: any;
1403
+ celebrate: boolean | {
1404
+ angle?: number | undefined;
1405
+ spread?: number | undefined;
1406
+ width?: string | undefined;
1407
+ height?: string | undefined;
1408
+ duration?: number | undefined;
1409
+ dragFriction?: number | undefined;
1410
+ stagger?: number | undefined;
1411
+ startVelocity?: number | undefined;
1412
+ elementCount?: number | undefined;
1413
+ decay?: number | undefined;
1414
+ colors?: string[] | undefined;
1415
+ random?: any;
1022
1416
  } | null;
1023
1417
  recommend_sort_key: number | null;
1024
1418
  shortcut_mac: string[];
@@ -1114,6 +1508,8 @@ export declare class Command {
1114
1508
  loaded?: any[] | undefined;
1115
1509
  allow_create?: boolean | undefined;
1116
1510
  allow_create_label?: string | undefined;
1511
+ show_in_record_action_list?: boolean | undefined;
1512
+ show_in_default_list?: boolean | undefined;
1117
1513
  }) | ({
1118
1514
  type: "set";
1119
1515
  value: string[] | number[] | {
@@ -1257,8 +1653,19 @@ export declare class Command {
1257
1653
  category: number | null;
1258
1654
  sort_key: number | null;
1259
1655
  icon: string | null;
1260
- celebrate: {
1261
- [x: string]: any;
1656
+ celebrate: boolean | {
1657
+ angle?: number | undefined;
1658
+ spread?: number | undefined;
1659
+ width?: string | undefined;
1660
+ height?: string | undefined;
1661
+ duration?: number | undefined;
1662
+ dragFriction?: number | undefined;
1663
+ stagger?: number | undefined;
1664
+ startVelocity?: number | undefined;
1665
+ elementCount?: number | undefined;
1666
+ decay?: number | undefined;
1667
+ colors?: string[] | undefined;
1668
+ random?: any;
1262
1669
  } | null;
1263
1670
  recommend_sort_key: number | null;
1264
1671
  shortcut_mac: string[];
@@ -1353,6 +1760,8 @@ export declare class Command {
1353
1760
  loaded?: any[] | undefined;
1354
1761
  allow_create?: boolean | undefined;
1355
1762
  allow_create_label?: string | undefined;
1763
+ show_in_record_action_list?: boolean | undefined;
1764
+ show_in_default_list?: boolean | undefined;
1356
1765
  }) | ({
1357
1766
  type: "set";
1358
1767
  value: string[] | number[] | {
@@ -1496,8 +1905,19 @@ export declare class Command {
1496
1905
  category: number | null;
1497
1906
  sort_key: number | null;
1498
1907
  icon: string | null;
1499
- celebrate: {
1500
- [x: string]: any;
1908
+ celebrate: boolean | {
1909
+ angle?: number | undefined;
1910
+ spread?: number | undefined;
1911
+ width?: string | undefined;
1912
+ height?: string | undefined;
1913
+ duration?: number | undefined;
1914
+ dragFriction?: number | undefined;
1915
+ stagger?: number | undefined;
1916
+ startVelocity?: number | undefined;
1917
+ elementCount?: number | undefined;
1918
+ decay?: number | undefined;
1919
+ colors?: string[] | undefined;
1920
+ random?: any;
1501
1921
  } | null;
1502
1922
  recommend_sort_key: number | null;
1503
1923
  shortcut_mac: string[];
@@ -1506,6 +1926,261 @@ export declare class Command {
1506
1926
  hotkey_win: string;
1507
1927
  }>;
1508
1928
  static delete: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
1929
+ static batch: (request: t.TypeOf<typeof BatchEditorCommandRequestV>) => Promise<{
1930
+ batch: ({
1931
+ id: number;
1932
+ organization: string | number;
1933
+ text: string;
1934
+ template: ({
1935
+ type: "admin";
1936
+ value: string;
1937
+ } & {} & {
1938
+ commandType?: "object" | "independent" | "help" | undefined;
1939
+ object?: string | undefined;
1940
+ hoverTooltip?: boolean | undefined;
1941
+ operation?: "self" | "router" | "blank" | undefined;
1942
+ }) | ({
1943
+ type: "callback";
1944
+ value: string;
1945
+ } & {} & {
1946
+ commandType?: "object" | "independent" | "help" | undefined;
1947
+ object?: string | undefined;
1948
+ hoverTooltip?: boolean | undefined;
1949
+ operation?: "self" | "router" | "blank" | undefined;
1950
+ }) | ({
1951
+ type: "link";
1952
+ value: string;
1953
+ } & {} & {
1954
+ commandType?: "object" | "independent" | "help" | undefined;
1955
+ object?: string | undefined;
1956
+ hoverTooltip?: boolean | undefined;
1957
+ operation?: "self" | "router" | "blank" | undefined;
1958
+ }) | ({
1959
+ type: "click" | "clickBySelector" | "clickByXpath";
1960
+ value: string[];
1961
+ } & {} & {
1962
+ commandType?: "object" | "independent" | "help" | undefined;
1963
+ object?: string | undefined;
1964
+ hoverTooltip?: boolean | undefined;
1965
+ operation?: "self" | "router" | "blank" | undefined;
1966
+ }) | ({
1967
+ type: "builtin";
1968
+ value: string;
1969
+ } & {} & {
1970
+ commandType?: "object" | "independent" | "help" | undefined;
1971
+ object?: string | undefined;
1972
+ hoverTooltip?: boolean | undefined;
1973
+ operation?: "self" | "router" | "blank" | undefined;
1974
+ }) | ({
1975
+ type: "webhook";
1976
+ value: string;
1977
+ } & {} & {
1978
+ commandType?: "object" | "independent" | "help" | undefined;
1979
+ object?: string | undefined;
1980
+ hoverTooltip?: boolean | undefined;
1981
+ operation?: "self" | "router" | "blank" | undefined;
1982
+ }) | ({
1983
+ type: "script";
1984
+ value: string;
1985
+ } & {} & {
1986
+ commandType?: "object" | "independent" | "help" | undefined;
1987
+ object?: string | undefined;
1988
+ hoverTooltip?: boolean | undefined;
1989
+ operation?: "self" | "router" | "blank" | undefined;
1990
+ });
1991
+ } & {
1992
+ disabledReason?: string | undefined;
1993
+ source?: string | undefined;
1994
+ name?: string | undefined;
1995
+ last_available?: string | null | undefined;
1996
+ modified?: string | undefined;
1997
+ } & {
1998
+ arguments: {
1999
+ [x: string]: ({
2000
+ type: "context";
2001
+ value: string;
2002
+ order_key: number;
2003
+ } & {
2004
+ label?: string | undefined;
2005
+ chosen?: string | number | undefined;
2006
+ selected?: any[] | undefined;
2007
+ input_type?: string | undefined;
2008
+ preselected_key?: string | undefined;
2009
+ label_field?: string | undefined;
2010
+ availability_condition?: {
2011
+ field: string;
2012
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2013
+ value: string | undefined;
2014
+ }[] | undefined;
2015
+ loaded?: any[] | undefined;
2016
+ allow_create?: boolean | undefined;
2017
+ allow_create_label?: string | undefined;
2018
+ show_in_record_action_list?: boolean | undefined;
2019
+ show_in_default_list?: boolean | undefined;
2020
+ }) | ({
2021
+ type: "set";
2022
+ value: string[] | number[] | {
2023
+ [key: string]: unknown;
2024
+ }[];
2025
+ order_key: number;
2026
+ } & {
2027
+ label?: string | undefined;
2028
+ chosen?: string | number | undefined;
2029
+ selected?: any[] | undefined;
2030
+ input_type?: string | undefined;
2031
+ preselected_key?: string | undefined;
2032
+ label_field?: string | undefined;
2033
+ availability_condition?: {
2034
+ field: string;
2035
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2036
+ value: string | undefined;
2037
+ }[] | undefined;
2038
+ loaded?: any[] | undefined;
2039
+ allow_create?: boolean | undefined;
2040
+ allow_create_label?: string | undefined;
2041
+ }) | ({
2042
+ type: "provided";
2043
+ value: "time" | "text";
2044
+ order_key: number;
2045
+ } & {
2046
+ label?: string | undefined;
2047
+ chosen?: string | number | undefined;
2048
+ selected?: any[] | undefined;
2049
+ input_type?: string | undefined;
2050
+ preselected_key?: string | undefined;
2051
+ label_field?: string | undefined;
2052
+ availability_condition?: {
2053
+ field: string;
2054
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2055
+ value: string | undefined;
2056
+ }[] | undefined;
2057
+ loaded?: any[] | undefined;
2058
+ dateTimeArgumentTypeId?: number | undefined;
2059
+ allow_create?: boolean | undefined;
2060
+ allow_create_label?: string | undefined;
2061
+ }) | ({
2062
+ type: "dependent";
2063
+ value: string;
2064
+ order_key: number;
2065
+ } & {
2066
+ label?: string | undefined;
2067
+ chosen?: string | number | undefined;
2068
+ selected?: any[] | undefined;
2069
+ input_type?: string | undefined;
2070
+ preselected_key?: string | undefined;
2071
+ label_field?: string | undefined;
2072
+ availability_condition?: {
2073
+ field: string;
2074
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2075
+ value: string | undefined;
2076
+ }[] | undefined;
2077
+ loaded?: any[] | undefined;
2078
+ allow_create?: boolean | undefined;
2079
+ allow_create_label?: string | undefined;
2080
+ }) | ({
2081
+ type: "function";
2082
+ value: string;
2083
+ order_key: number;
2084
+ } & {
2085
+ label?: string | undefined;
2086
+ chosen?: string | number | undefined;
2087
+ selected?: any[] | undefined;
2088
+ input_type?: string | undefined;
2089
+ preselected_key?: string | undefined;
2090
+ label_field?: string | undefined;
2091
+ availability_condition?: {
2092
+ field: string;
2093
+ operator: "==" | "!=" | "isTruthy" | "isFalsy";
2094
+ value: string | undefined;
2095
+ }[] | undefined;
2096
+ loaded?: any[] | undefined;
2097
+ allow_create?: boolean | undefined;
2098
+ allow_create_label?: string | undefined;
2099
+ });
2100
+ };
2101
+ tags: string[];
2102
+ availability_rules: ({
2103
+ type: "url" | "context" | "element";
2104
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2105
+ } & {
2106
+ field?: string | undefined;
2107
+ value?: string | undefined;
2108
+ reason?: string | undefined;
2109
+ })[] | (({
2110
+ type: "url" | "context" | "element";
2111
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2112
+ } & {
2113
+ field?: string | undefined;
2114
+ value?: string | undefined;
2115
+ reason?: string | undefined;
2116
+ }) | ({
2117
+ type: "named_rule";
2118
+ rule_id: number;
2119
+ } & {
2120
+ reason?: string | undefined;
2121
+ }))[];
2122
+ recommend_rules: (({
2123
+ type: "always";
2124
+ } & {
2125
+ operator?: null | undefined;
2126
+ field?: null | undefined;
2127
+ value?: null | undefined;
2128
+ reason?: null | undefined;
2129
+ }) | ({
2130
+ type: "url" | "context" | "element";
2131
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2132
+ } & {
2133
+ field?: string | undefined;
2134
+ value?: string | undefined;
2135
+ reason?: string | undefined;
2136
+ }))[] | (({
2137
+ type: "always";
2138
+ } & {
2139
+ operator?: null | undefined;
2140
+ field?: null | undefined;
2141
+ value?: null | undefined;
2142
+ reason?: null | undefined;
2143
+ }) | ({
2144
+ type: "url" | "context" | "element";
2145
+ operator: "includes" | "endsWith" | "startsWith" | "is" | "isTruthy" | "isFalsy" | "isNot" | "isTrue" | "isFalse" | "doesNotInclude" | "matchesRegex" | "isGreaterThan" | "isLessThan" | "isDefined" | "isNotDefined" | "classnameOnPage" | "idOnPage";
2146
+ } & {
2147
+ field?: string | undefined;
2148
+ value?: string | undefined;
2149
+ reason?: string | undefined;
2150
+ }) | ({
2151
+ type: "named_rule";
2152
+ rule_id: number;
2153
+ } & {
2154
+ reason?: string | undefined;
2155
+ }))[];
2156
+ confirm: string;
2157
+ shortcut: string[];
2158
+ explanation: string;
2159
+ is_live: boolean;
2160
+ category: number | null;
2161
+ sort_key: number | null;
2162
+ icon: string | null;
2163
+ celebrate: boolean | {
2164
+ angle?: number | undefined;
2165
+ spread?: number | undefined;
2166
+ width?: string | undefined;
2167
+ height?: string | undefined;
2168
+ duration?: number | undefined;
2169
+ dragFriction?: number | undefined;
2170
+ stagger?: number | undefined;
2171
+ startVelocity?: number | undefined;
2172
+ elementCount?: number | undefined;
2173
+ decay?: number | undefined;
2174
+ colors?: string[] | undefined;
2175
+ random?: any;
2176
+ } | null;
2177
+ recommend_sort_key: number | null;
2178
+ shortcut_mac: string[];
2179
+ shortcut_win: string[];
2180
+ hotkey_mac: string;
2181
+ hotkey_win: string;
2182
+ })[];
2183
+ }>;
1509
2184
  static validateFromClient: (data: any) => Promise<{
1510
2185
  name: string;
1511
2186
  template: ({
@@ -1570,6 +2245,8 @@ export declare class Command {
1570
2245
  loaded?: any[] | undefined;
1571
2246
  allow_create?: boolean | undefined;
1572
2247
  allow_create_label?: string | undefined;
2248
+ show_in_record_action_list?: boolean | undefined;
2249
+ show_in_default_list?: boolean | undefined;
1573
2250
  }) | ({
1574
2251
  type: "set";
1575
2252
  value: string[] | number[] | {
@@ -1653,8 +2330,19 @@ export declare class Command {
1653
2330
  } | undefined;
1654
2331
  category?: string | number | null | undefined;
1655
2332
  icon?: string | null | undefined;
1656
- celebrate?: {
1657
- [x: string]: any;
2333
+ celebrate?: boolean | {
2334
+ angle?: number | undefined;
2335
+ spread?: number | undefined;
2336
+ width?: string | undefined;
2337
+ height?: string | undefined;
2338
+ duration?: number | undefined;
2339
+ dragFriction?: number | undefined;
2340
+ stagger?: number | undefined;
2341
+ startVelocity?: number | undefined;
2342
+ elementCount?: number | undefined;
2343
+ decay?: number | undefined;
2344
+ colors?: string[] | undefined;
2345
+ random?: any;
1658
2346
  } | null | undefined;
1659
2347
  availability_rules?: ({
1660
2348
  type: "url" | "context" | "element";
@@ -1768,6 +2456,8 @@ export declare class Command {
1768
2456
  loaded?: any[] | undefined;
1769
2457
  allow_create?: boolean | undefined;
1770
2458
  allow_create_label?: string | undefined;
2459
+ show_in_record_action_list?: boolean | undefined;
2460
+ show_in_default_list?: boolean | undefined;
1771
2461
  }) | ({
1772
2462
  type: "set";
1773
2463
  value: string[] | number[] | {
@@ -1880,8 +2570,19 @@ export declare class Command {
1880
2570
  category: number | null;
1881
2571
  sort_key: number | null;
1882
2572
  icon: string | null;
1883
- celebrate: {
1884
- [x: string]: any;
2573
+ celebrate: boolean | {
2574
+ angle?: number | undefined;
2575
+ spread?: number | undefined;
2576
+ width?: string | undefined;
2577
+ height?: string | undefined;
2578
+ duration?: number | undefined;
2579
+ dragFriction?: number | undefined;
2580
+ stagger?: number | undefined;
2581
+ startVelocity?: number | undefined;
2582
+ elementCount?: number | undefined;
2583
+ decay?: number | undefined;
2584
+ colors?: string[] | undefined;
2585
+ random?: any;
1885
2586
  } | null;
1886
2587
  recommend_sort_key: number | null;
1887
2588
  shortcut_mac: string[];
@@ -1977,6 +2678,8 @@ export declare class Command {
1977
2678
  loaded?: any[] | undefined;
1978
2679
  allow_create?: boolean | undefined;
1979
2680
  allow_create_label?: string | undefined;
2681
+ show_in_record_action_list?: boolean | undefined;
2682
+ show_in_default_list?: boolean | undefined;
1980
2683
  }) | ({
1981
2684
  type: "set";
1982
2685
  value: string[] | number[] | {
@@ -2120,8 +2823,19 @@ export declare class Command {
2120
2823
  category: number | null;
2121
2824
  sort_key: number | null;
2122
2825
  icon: string | null;
2123
- celebrate: {
2124
- [x: string]: any;
2826
+ celebrate: boolean | {
2827
+ angle?: number | undefined;
2828
+ spread?: number | undefined;
2829
+ width?: string | undefined;
2830
+ height?: string | undefined;
2831
+ duration?: number | undefined;
2832
+ dragFriction?: number | undefined;
2833
+ stagger?: number | undefined;
2834
+ startVelocity?: number | undefined;
2835
+ elementCount?: number | undefined;
2836
+ decay?: number | undefined;
2837
+ colors?: string[] | undefined;
2838
+ random?: any;
2125
2839
  } | null;
2126
2840
  recommend_sort_key: number | null;
2127
2841
  shortcut_mac: string[];
@@ -2216,6 +2930,8 @@ export declare class Command {
2216
2930
  loaded?: any[] | undefined;
2217
2931
  allow_create?: boolean | undefined;
2218
2932
  allow_create_label?: string | undefined;
2933
+ show_in_record_action_list?: boolean | undefined;
2934
+ show_in_default_list?: boolean | undefined;
2219
2935
  }) | ({
2220
2936
  type: "set";
2221
2937
  value: string[] | number[] | {
@@ -2359,8 +3075,19 @@ export declare class Command {
2359
3075
  category: number | null;
2360
3076
  sort_key: number | null;
2361
3077
  icon: string | null;
2362
- celebrate: {
2363
- [x: string]: any;
3078
+ celebrate: boolean | {
3079
+ angle?: number | undefined;
3080
+ spread?: number | undefined;
3081
+ width?: string | undefined;
3082
+ height?: string | undefined;
3083
+ duration?: number | undefined;
3084
+ dragFriction?: number | undefined;
3085
+ stagger?: number | undefined;
3086
+ startVelocity?: number | undefined;
3087
+ elementCount?: number | undefined;
3088
+ decay?: number | undefined;
3089
+ colors?: string[] | undefined;
3090
+ random?: any;
2364
3091
  } | null;
2365
3092
  recommend_sort_key: number | null;
2366
3093
  shortcut_mac: string[];
@@ -2456,6 +3183,8 @@ export declare class Command {
2456
3183
  loaded?: any[] | undefined;
2457
3184
  allow_create?: boolean | undefined;
2458
3185
  allow_create_label?: string | undefined;
3186
+ show_in_record_action_list?: boolean | undefined;
3187
+ show_in_default_list?: boolean | undefined;
2459
3188
  }) | ({
2460
3189
  type: "set";
2461
3190
  value: string[] | number[] | {
@@ -2599,8 +3328,19 @@ export declare class Command {
2599
3328
  category: number | null;
2600
3329
  sort_key: number | null;
2601
3330
  icon: string | null;
2602
- celebrate: {
2603
- [x: string]: any;
3331
+ celebrate: boolean | {
3332
+ angle?: number | undefined;
3333
+ spread?: number | undefined;
3334
+ width?: string | undefined;
3335
+ height?: string | undefined;
3336
+ duration?: number | undefined;
3337
+ dragFriction?: number | undefined;
3338
+ stagger?: number | undefined;
3339
+ startVelocity?: number | undefined;
3340
+ elementCount?: number | undefined;
3341
+ decay?: number | undefined;
3342
+ colors?: string[] | undefined;
3343
+ random?: any;
2604
3344
  } | null;
2605
3345
  recommend_sort_key: number | null;
2606
3346
  shortcut_mac: string[];
@@ -2695,6 +3435,8 @@ export declare class Command {
2695
3435
  loaded?: any[] | undefined;
2696
3436
  allow_create?: boolean | undefined;
2697
3437
  allow_create_label?: string | undefined;
3438
+ show_in_record_action_list?: boolean | undefined;
3439
+ show_in_default_list?: boolean | undefined;
2698
3440
  }) | ({
2699
3441
  type: "set";
2700
3442
  value: string[] | number[] | {
@@ -2838,8 +3580,19 @@ export declare class Command {
2838
3580
  category: number | null;
2839
3581
  sort_key: number | null;
2840
3582
  icon: string | null;
2841
- celebrate: {
2842
- [x: string]: any;
3583
+ celebrate: boolean | {
3584
+ angle?: number | undefined;
3585
+ spread?: number | undefined;
3586
+ width?: string | undefined;
3587
+ height?: string | undefined;
3588
+ duration?: number | undefined;
3589
+ dragFriction?: number | undefined;
3590
+ stagger?: number | undefined;
3591
+ startVelocity?: number | undefined;
3592
+ elementCount?: number | undefined;
3593
+ decay?: number | undefined;
3594
+ colors?: string[] | undefined;
3595
+ random?: any;
2843
3596
  } | null;
2844
3597
  recommend_sort_key: number | null;
2845
3598
  shortcut_mac: string[];
@@ -2848,5 +3601,8 @@ export declare class Command {
2848
3601
  hotkey_win: string;
2849
3602
  }>;
2850
3603
  static deleteWithoutThrottle: (id: string | number, onSuccess?: (() => void) | undefined, onError?: ((err: string) => void) | undefined) => Promise<void>;
2851
- static commandUID: (cmd: t.TypeOf<typeof CommandV>) => string;
3604
+ static commandUID: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => string;
3605
+ static isProgrammatic: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
3606
+ static isRecordAction: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>, recordKey?: string | undefined) => boolean;
3607
+ static showInDefaultList: (cmd: t.TypeOf<typeof CommandV> | t.TypeOf<typeof EditorCommandV>) => boolean;
2852
3608
  }