@knocklabs/cli 0.1.22 → 0.1.23
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.
- package/README.md +102 -43
- package/dist/commands/commit/list.js +21 -1
- package/dist/commands/guide/activate.js +121 -0
- package/dist/commands/guide/generate-types.js +148 -0
- package/dist/commands/guide/get.js +139 -0
- package/dist/commands/guide/list.js +112 -0
- package/dist/commands/guide/pull.js +209 -0
- package/dist/commands/guide/push.js +171 -0
- package/dist/commands/guide/validate.js +148 -0
- package/dist/commands/workflow/generate-types.js +6 -5
- package/dist/lib/api-v1.js +61 -0
- package/dist/lib/helpers/const.js +4 -4
- package/dist/lib/helpers/date.js +3 -3
- package/dist/lib/helpers/error.js +8 -8
- package/dist/lib/helpers/flag.js +7 -7
- package/dist/lib/helpers/json.js +5 -5
- package/dist/lib/helpers/object.isomorphic.js +8 -8
- package/dist/lib/helpers/page.js +9 -9
- package/dist/lib/helpers/request.js +4 -4
- package/dist/lib/helpers/string.js +3 -3
- package/dist/lib/helpers/typegen.js +59 -0
- package/dist/lib/helpers/ux.js +3 -3
- package/dist/lib/marshal/email-layout/helpers.js +5 -5
- package/dist/lib/marshal/email-layout/processor.isomorphic.js +3 -3
- package/dist/lib/marshal/email-layout/reader.js +5 -5
- package/dist/lib/marshal/email-layout/writer.js +4 -4
- package/dist/lib/marshal/guide/helpers.js +283 -0
- package/dist/lib/marshal/guide/index.js +3 -0
- package/dist/lib/marshal/guide/processor.isomorphic.js +3 -3
- package/dist/lib/marshal/guide/reader.js +193 -0
- package/dist/lib/marshal/guide/writer.js +175 -0
- package/dist/lib/marshal/index.isomorphic.js +7 -7
- package/dist/lib/marshal/message-type/helpers.js +5 -5
- package/dist/lib/marshal/message-type/processor.isomorphic.js +3 -3
- package/dist/lib/marshal/message-type/reader.js +5 -5
- package/dist/lib/marshal/message-type/writer.js +4 -4
- package/dist/lib/marshal/partial/helpers.js +5 -5
- package/dist/lib/marshal/partial/processor.isomorphic.js +3 -3
- package/dist/lib/marshal/partial/reader.js +5 -5
- package/dist/lib/marshal/partial/writer.js +4 -4
- package/dist/lib/marshal/shared/const.isomorphic.js +3 -3
- package/dist/lib/marshal/shared/helpers.isomorphic.js +9 -2
- package/dist/lib/marshal/shared/helpers.js +4 -4
- package/dist/lib/marshal/translation/helpers.js +10 -10
- package/dist/lib/marshal/translation/processor.isomorphic.js +6 -6
- package/dist/lib/marshal/translation/writer.js +3 -3
- package/dist/lib/marshal/workflow/generator.js +4 -4
- package/dist/lib/marshal/workflow/helpers.js +53 -10
- package/dist/lib/marshal/workflow/processor.isomorphic.js +5 -5
- package/dist/lib/marshal/workflow/reader.js +5 -5
- package/dist/lib/marshal/workflow/writer.js +5 -5
- package/dist/lib/resources.js +3 -3
- package/oclif.manifest.json +615 -54
- package/package.json +8 -8
- package/dist/lib/type-generator.js +0 -100
package/oclif.manifest.json
CHANGED
|
@@ -418,6 +418,28 @@
|
|
|
418
418
|
"allowNo": true,
|
|
419
419
|
"type": "boolean"
|
|
420
420
|
},
|
|
421
|
+
"resource-type": {
|
|
422
|
+
"name": "resource-type",
|
|
423
|
+
"summary": "Filter commits by resource type. Must be used together with resource-id.",
|
|
424
|
+
"hasDynamicHelp": false,
|
|
425
|
+
"multiple": false,
|
|
426
|
+
"options": [
|
|
427
|
+
"email_layout",
|
|
428
|
+
"guide",
|
|
429
|
+
"message_type",
|
|
430
|
+
"partial",
|
|
431
|
+
"translation",
|
|
432
|
+
"workflow"
|
|
433
|
+
],
|
|
434
|
+
"type": "option"
|
|
435
|
+
},
|
|
436
|
+
"resource-id": {
|
|
437
|
+
"name": "resource-id",
|
|
438
|
+
"summary": "Filter commits by resource identifier. Must be used together with resource-type. For most resources, this will be the resource key. In the case of translations, this will be the locale code and namespace, separated by a /. For example, en/courses or en.",
|
|
439
|
+
"hasDynamicHelp": false,
|
|
440
|
+
"multiple": false,
|
|
441
|
+
"type": "option"
|
|
442
|
+
},
|
|
421
443
|
"after": {
|
|
422
444
|
"name": "after",
|
|
423
445
|
"summary": "The cursor after which to fetch the next page.",
|
|
@@ -516,11 +538,160 @@
|
|
|
516
538
|
"promote.js"
|
|
517
539
|
]
|
|
518
540
|
},
|
|
519
|
-
"
|
|
541
|
+
"guide:activate": {
|
|
520
542
|
"aliases": [],
|
|
521
543
|
"args": {
|
|
522
|
-
"
|
|
523
|
-
"name": "
|
|
544
|
+
"guideKey": {
|
|
545
|
+
"name": "guideKey",
|
|
546
|
+
"required": true
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"description": "This enables or disables a guide in a given environment without\nneeding to go through environment promotion.\n\nYou can activate or deactivate a guide immediately or schedule it to be activated \nor deactivated at a later time using the --from and --until flags.",
|
|
550
|
+
"flags": {
|
|
551
|
+
"service-token": {
|
|
552
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
553
|
+
"name": "service-token",
|
|
554
|
+
"required": true,
|
|
555
|
+
"summary": "The service token to authenticate with.",
|
|
556
|
+
"hasDynamicHelp": false,
|
|
557
|
+
"multiple": false,
|
|
558
|
+
"type": "option"
|
|
559
|
+
},
|
|
560
|
+
"api-origin": {
|
|
561
|
+
"hidden": true,
|
|
562
|
+
"name": "api-origin",
|
|
563
|
+
"required": false,
|
|
564
|
+
"hasDynamicHelp": false,
|
|
565
|
+
"multiple": false,
|
|
566
|
+
"type": "option"
|
|
567
|
+
},
|
|
568
|
+
"environment": {
|
|
569
|
+
"name": "environment",
|
|
570
|
+
"required": true,
|
|
571
|
+
"summary": "The environment to use.",
|
|
572
|
+
"hasDynamicHelp": false,
|
|
573
|
+
"multiple": false,
|
|
574
|
+
"type": "option"
|
|
575
|
+
},
|
|
576
|
+
"status": {
|
|
577
|
+
"exclusive": [
|
|
578
|
+
"from",
|
|
579
|
+
"until"
|
|
580
|
+
],
|
|
581
|
+
"name": "status",
|
|
582
|
+
"summary": "The guide active status to set. Cannot be used with --from/--until.",
|
|
583
|
+
"hasDynamicHelp": false,
|
|
584
|
+
"multiple": false,
|
|
585
|
+
"options": [
|
|
586
|
+
"true",
|
|
587
|
+
"false"
|
|
588
|
+
],
|
|
589
|
+
"type": "option"
|
|
590
|
+
},
|
|
591
|
+
"from": {
|
|
592
|
+
"exclusive": [
|
|
593
|
+
"status"
|
|
594
|
+
],
|
|
595
|
+
"name": "from",
|
|
596
|
+
"summary": "Activate the guide from this ISO8601 UTC datetime (e.g., '2024-01-15T10:30:00Z').",
|
|
597
|
+
"hasDynamicHelp": false,
|
|
598
|
+
"multiple": false,
|
|
599
|
+
"type": "option"
|
|
600
|
+
},
|
|
601
|
+
"until": {
|
|
602
|
+
"exclusive": [
|
|
603
|
+
"status"
|
|
604
|
+
],
|
|
605
|
+
"name": "until",
|
|
606
|
+
"summary": "Deactivate the guide at this ISO8601 UTC datetime (e.g., '2024-01-15T18:30:00Z').",
|
|
607
|
+
"hasDynamicHelp": false,
|
|
608
|
+
"multiple": false,
|
|
609
|
+
"type": "option"
|
|
610
|
+
},
|
|
611
|
+
"force": {
|
|
612
|
+
"name": "force",
|
|
613
|
+
"summary": "Remove the confirmation prompt.",
|
|
614
|
+
"allowNo": false,
|
|
615
|
+
"type": "boolean"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"hasDynamicHelp": false,
|
|
619
|
+
"hiddenAliases": [],
|
|
620
|
+
"id": "guide:activate",
|
|
621
|
+
"pluginAlias": "@knocklabs/cli",
|
|
622
|
+
"pluginName": "@knocklabs/cli",
|
|
623
|
+
"pluginType": "core",
|
|
624
|
+
"strict": true,
|
|
625
|
+
"summary": "Activate or deactivate a guide in a given environment.",
|
|
626
|
+
"enableJsonFlag": false,
|
|
627
|
+
"isESM": false,
|
|
628
|
+
"relativePath": [
|
|
629
|
+
"dist",
|
|
630
|
+
"commands",
|
|
631
|
+
"guide",
|
|
632
|
+
"activate.js"
|
|
633
|
+
]
|
|
634
|
+
},
|
|
635
|
+
"guide:generate-types": {
|
|
636
|
+
"aliases": [],
|
|
637
|
+
"args": {},
|
|
638
|
+
"description": "Generate types for all guides in an environment and write them to a file.",
|
|
639
|
+
"flags": {
|
|
640
|
+
"service-token": {
|
|
641
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
642
|
+
"name": "service-token",
|
|
643
|
+
"required": true,
|
|
644
|
+
"summary": "The service token to authenticate with.",
|
|
645
|
+
"hasDynamicHelp": false,
|
|
646
|
+
"multiple": false,
|
|
647
|
+
"type": "option"
|
|
648
|
+
},
|
|
649
|
+
"api-origin": {
|
|
650
|
+
"hidden": true,
|
|
651
|
+
"name": "api-origin",
|
|
652
|
+
"required": false,
|
|
653
|
+
"hasDynamicHelp": false,
|
|
654
|
+
"multiple": false,
|
|
655
|
+
"type": "option"
|
|
656
|
+
},
|
|
657
|
+
"environment": {
|
|
658
|
+
"name": "environment",
|
|
659
|
+
"summary": "Select the environment to generate types for.",
|
|
660
|
+
"default": "development",
|
|
661
|
+
"hasDynamicHelp": false,
|
|
662
|
+
"multiple": false,
|
|
663
|
+
"type": "option"
|
|
664
|
+
},
|
|
665
|
+
"output-file": {
|
|
666
|
+
"name": "output-file",
|
|
667
|
+
"required": true,
|
|
668
|
+
"summary": "The output file to write the generated types to. We currently support .ts, .py, .go, .rb files only. Your file extension will determine the target language for the generated types.",
|
|
669
|
+
"hasDynamicHelp": false,
|
|
670
|
+
"multiple": false,
|
|
671
|
+
"type": "option"
|
|
672
|
+
}
|
|
673
|
+
},
|
|
674
|
+
"hasDynamicHelp": false,
|
|
675
|
+
"hiddenAliases": [],
|
|
676
|
+
"id": "guide:generate-types",
|
|
677
|
+
"pluginAlias": "@knocklabs/cli",
|
|
678
|
+
"pluginName": "@knocklabs/cli",
|
|
679
|
+
"pluginType": "core",
|
|
680
|
+
"strict": true,
|
|
681
|
+
"enableJsonFlag": false,
|
|
682
|
+
"isESM": false,
|
|
683
|
+
"relativePath": [
|
|
684
|
+
"dist",
|
|
685
|
+
"commands",
|
|
686
|
+
"guide",
|
|
687
|
+
"generate-types.js"
|
|
688
|
+
]
|
|
689
|
+
},
|
|
690
|
+
"guide:get": {
|
|
691
|
+
"aliases": [],
|
|
692
|
+
"args": {
|
|
693
|
+
"guideKey": {
|
|
694
|
+
"name": "guideKey",
|
|
524
695
|
"required": true
|
|
525
696
|
}
|
|
526
697
|
},
|
|
@@ -565,23 +736,24 @@
|
|
|
565
736
|
}
|
|
566
737
|
},
|
|
567
738
|
"hasDynamicHelp": false,
|
|
739
|
+
"hidden": true,
|
|
568
740
|
"hiddenAliases": [],
|
|
569
|
-
"id": "
|
|
741
|
+
"id": "guide:get",
|
|
570
742
|
"pluginAlias": "@knocklabs/cli",
|
|
571
743
|
"pluginName": "@knocklabs/cli",
|
|
572
744
|
"pluginType": "core",
|
|
573
745
|
"strict": true,
|
|
574
|
-
"summary": "Display a single
|
|
746
|
+
"summary": "Display a single guide from an environment.",
|
|
575
747
|
"enableJsonFlag": true,
|
|
576
748
|
"isESM": false,
|
|
577
749
|
"relativePath": [
|
|
578
750
|
"dist",
|
|
579
751
|
"commands",
|
|
580
|
-
"
|
|
752
|
+
"guide",
|
|
581
753
|
"get.js"
|
|
582
754
|
]
|
|
583
755
|
},
|
|
584
|
-
"
|
|
756
|
+
"guide:list": {
|
|
585
757
|
"aliases": [],
|
|
586
758
|
"args": {},
|
|
587
759
|
"flags": {
|
|
@@ -646,27 +818,28 @@
|
|
|
646
818
|
}
|
|
647
819
|
},
|
|
648
820
|
"hasDynamicHelp": false,
|
|
821
|
+
"hidden": true,
|
|
649
822
|
"hiddenAliases": [],
|
|
650
|
-
"id": "
|
|
823
|
+
"id": "guide:list",
|
|
651
824
|
"pluginAlias": "@knocklabs/cli",
|
|
652
825
|
"pluginName": "@knocklabs/cli",
|
|
653
826
|
"pluginType": "core",
|
|
654
827
|
"strict": true,
|
|
655
|
-
"summary": "Display all
|
|
828
|
+
"summary": "Display all guides for an environment.",
|
|
656
829
|
"enableJsonFlag": true,
|
|
657
830
|
"isESM": false,
|
|
658
831
|
"relativePath": [
|
|
659
832
|
"dist",
|
|
660
833
|
"commands",
|
|
661
|
-
"
|
|
834
|
+
"guide",
|
|
662
835
|
"list.js"
|
|
663
836
|
]
|
|
664
837
|
},
|
|
665
|
-
"
|
|
838
|
+
"guide:pull": {
|
|
666
839
|
"aliases": [],
|
|
667
840
|
"args": {
|
|
668
|
-
"
|
|
669
|
-
"name": "
|
|
841
|
+
"guideKey": {
|
|
842
|
+
"name": "guideKey",
|
|
670
843
|
"required": false
|
|
671
844
|
}
|
|
672
845
|
},
|
|
@@ -698,19 +871,16 @@
|
|
|
698
871
|
},
|
|
699
872
|
"all": {
|
|
700
873
|
"name": "all",
|
|
701
|
-
"summary": "Whether to pull all
|
|
874
|
+
"summary": "Whether to pull all guides from the specified environment.",
|
|
702
875
|
"allowNo": false,
|
|
703
876
|
"type": "boolean"
|
|
704
877
|
},
|
|
705
|
-
"
|
|
706
|
-
"aliases": [
|
|
707
|
-
"email-layouts-dir"
|
|
708
|
-
],
|
|
878
|
+
"guides-dir": {
|
|
709
879
|
"dependsOn": [
|
|
710
880
|
"all"
|
|
711
881
|
],
|
|
712
|
-
"name": "
|
|
713
|
-
"summary": "The target directory path to pull all
|
|
882
|
+
"name": "guides-dir",
|
|
883
|
+
"summary": "The target directory path to pull all guides into.",
|
|
714
884
|
"hasDynamicHelp": false,
|
|
715
885
|
"multiple": false,
|
|
716
886
|
"type": "option"
|
|
@@ -729,27 +899,28 @@
|
|
|
729
899
|
}
|
|
730
900
|
},
|
|
731
901
|
"hasDynamicHelp": false,
|
|
902
|
+
"hidden": true,
|
|
732
903
|
"hiddenAliases": [],
|
|
733
|
-
"id": "
|
|
904
|
+
"id": "guide:pull",
|
|
734
905
|
"pluginAlias": "@knocklabs/cli",
|
|
735
906
|
"pluginName": "@knocklabs/cli",
|
|
736
907
|
"pluginType": "core",
|
|
737
908
|
"strict": true,
|
|
738
|
-
"summary": "Pull one or more
|
|
909
|
+
"summary": "Pull one or more guides from an environment into a local file system.",
|
|
739
910
|
"enableJsonFlag": false,
|
|
740
911
|
"isESM": false,
|
|
741
912
|
"relativePath": [
|
|
742
913
|
"dist",
|
|
743
914
|
"commands",
|
|
744
|
-
"
|
|
915
|
+
"guide",
|
|
745
916
|
"pull.js"
|
|
746
917
|
]
|
|
747
918
|
},
|
|
748
|
-
"
|
|
919
|
+
"guide:push": {
|
|
749
920
|
"aliases": [],
|
|
750
921
|
"args": {
|
|
751
|
-
"
|
|
752
|
-
"name": "
|
|
922
|
+
"guideKey": {
|
|
923
|
+
"name": "guideKey",
|
|
753
924
|
"required": false
|
|
754
925
|
}
|
|
755
926
|
},
|
|
@@ -773,7 +944,7 @@
|
|
|
773
944
|
},
|
|
774
945
|
"environment": {
|
|
775
946
|
"name": "environment",
|
|
776
|
-
"summary": "Pushing
|
|
947
|
+
"summary": "Pushing a guide is only allowed in the development environment",
|
|
777
948
|
"default": "development",
|
|
778
949
|
"hasDynamicHelp": false,
|
|
779
950
|
"multiple": false,
|
|
@@ -784,26 +955,23 @@
|
|
|
784
955
|
},
|
|
785
956
|
"all": {
|
|
786
957
|
"name": "all",
|
|
787
|
-
"summary": "Whether to push all
|
|
958
|
+
"summary": "Whether to push all guides from the target directory.",
|
|
788
959
|
"allowNo": false,
|
|
789
960
|
"type": "boolean"
|
|
790
961
|
},
|
|
791
|
-
"
|
|
792
|
-
"aliases": [
|
|
793
|
-
"email-layouts-dir"
|
|
794
|
-
],
|
|
962
|
+
"guides-dir": {
|
|
795
963
|
"dependsOn": [
|
|
796
964
|
"all"
|
|
797
965
|
],
|
|
798
|
-
"name": "
|
|
799
|
-
"summary": "The target directory path to find all
|
|
966
|
+
"name": "guides-dir",
|
|
967
|
+
"summary": "The target directory path to find all guides to push.",
|
|
800
968
|
"hasDynamicHelp": false,
|
|
801
969
|
"multiple": false,
|
|
802
970
|
"type": "option"
|
|
803
971
|
},
|
|
804
972
|
"commit": {
|
|
805
973
|
"name": "commit",
|
|
806
|
-
"summary": "Push and commit the
|
|
974
|
+
"summary": "Push and commit the guide(s) at the same time",
|
|
807
975
|
"allowNo": false,
|
|
808
976
|
"type": "boolean"
|
|
809
977
|
},
|
|
@@ -820,27 +988,28 @@
|
|
|
820
988
|
}
|
|
821
989
|
},
|
|
822
990
|
"hasDynamicHelp": false,
|
|
991
|
+
"hidden": true,
|
|
823
992
|
"hiddenAliases": [],
|
|
824
|
-
"id": "
|
|
993
|
+
"id": "guide:push",
|
|
825
994
|
"pluginAlias": "@knocklabs/cli",
|
|
826
995
|
"pluginName": "@knocklabs/cli",
|
|
827
996
|
"pluginType": "core",
|
|
828
997
|
"strict": true,
|
|
829
|
-
"summary": "Push one or more
|
|
998
|
+
"summary": "Push one or more guides from a local file system to Knock.",
|
|
830
999
|
"enableJsonFlag": false,
|
|
831
1000
|
"isESM": false,
|
|
832
1001
|
"relativePath": [
|
|
833
1002
|
"dist",
|
|
834
1003
|
"commands",
|
|
835
|
-
"
|
|
1004
|
+
"guide",
|
|
836
1005
|
"push.js"
|
|
837
1006
|
]
|
|
838
1007
|
},
|
|
839
|
-
"
|
|
1008
|
+
"guide:validate": {
|
|
840
1009
|
"aliases": [],
|
|
841
1010
|
"args": {
|
|
842
|
-
"
|
|
843
|
-
"name": "
|
|
1011
|
+
"guideKey": {
|
|
1012
|
+
"name": "guideKey",
|
|
844
1013
|
"required": false
|
|
845
1014
|
}
|
|
846
1015
|
},
|
|
@@ -864,7 +1033,7 @@
|
|
|
864
1033
|
},
|
|
865
1034
|
"environment": {
|
|
866
1035
|
"name": "environment",
|
|
867
|
-
"summary": "Validating a
|
|
1036
|
+
"summary": "Validating a guide is only done in the development environment",
|
|
868
1037
|
"default": "development",
|
|
869
1038
|
"hasDynamicHelp": false,
|
|
870
1039
|
"multiple": false,
|
|
@@ -875,38 +1044,36 @@
|
|
|
875
1044
|
},
|
|
876
1045
|
"all": {
|
|
877
1046
|
"name": "all",
|
|
878
|
-
"summary": "Whether to validate all
|
|
1047
|
+
"summary": "Whether to validate all guides from the target directory.",
|
|
879
1048
|
"allowNo": false,
|
|
880
1049
|
"type": "boolean"
|
|
881
1050
|
},
|
|
882
|
-
"
|
|
883
|
-
"aliases": [
|
|
884
|
-
"email-layouts-dir"
|
|
885
|
-
],
|
|
1051
|
+
"guides-dir": {
|
|
886
1052
|
"dependsOn": [
|
|
887
1053
|
"all"
|
|
888
1054
|
],
|
|
889
|
-
"name": "
|
|
890
|
-
"summary": "The target directory path to find all
|
|
1055
|
+
"name": "guides-dir",
|
|
1056
|
+
"summary": "The target directory path to find all guides to validate.",
|
|
891
1057
|
"hasDynamicHelp": false,
|
|
892
1058
|
"multiple": false,
|
|
893
1059
|
"type": "option"
|
|
894
1060
|
}
|
|
895
1061
|
},
|
|
896
1062
|
"hasDynamicHelp": false,
|
|
1063
|
+
"hidden": true,
|
|
897
1064
|
"hiddenAliases": [],
|
|
898
|
-
"id": "
|
|
1065
|
+
"id": "guide:validate",
|
|
899
1066
|
"pluginAlias": "@knocklabs/cli",
|
|
900
1067
|
"pluginName": "@knocklabs/cli",
|
|
901
1068
|
"pluginType": "core",
|
|
902
1069
|
"strict": true,
|
|
903
|
-
"summary": "Validate one or more
|
|
1070
|
+
"summary": "Validate one or more guides from a local file system.",
|
|
904
1071
|
"enableJsonFlag": false,
|
|
905
1072
|
"isESM": false,
|
|
906
1073
|
"relativePath": [
|
|
907
1074
|
"dist",
|
|
908
1075
|
"commands",
|
|
909
|
-
"
|
|
1076
|
+
"guide",
|
|
910
1077
|
"validate.js"
|
|
911
1078
|
]
|
|
912
1079
|
},
|
|
@@ -1300,6 +1467,400 @@
|
|
|
1300
1467
|
"validate.js"
|
|
1301
1468
|
]
|
|
1302
1469
|
},
|
|
1470
|
+
"layout:get": {
|
|
1471
|
+
"aliases": [],
|
|
1472
|
+
"args": {
|
|
1473
|
+
"emailLayoutKey": {
|
|
1474
|
+
"name": "emailLayoutKey",
|
|
1475
|
+
"required": true
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
"flags": {
|
|
1479
|
+
"json": {
|
|
1480
|
+
"description": "Format output as json.",
|
|
1481
|
+
"helpGroup": "GLOBAL",
|
|
1482
|
+
"name": "json",
|
|
1483
|
+
"allowNo": false,
|
|
1484
|
+
"type": "boolean"
|
|
1485
|
+
},
|
|
1486
|
+
"service-token": {
|
|
1487
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
1488
|
+
"name": "service-token",
|
|
1489
|
+
"required": true,
|
|
1490
|
+
"summary": "The service token to authenticate with.",
|
|
1491
|
+
"hasDynamicHelp": false,
|
|
1492
|
+
"multiple": false,
|
|
1493
|
+
"type": "option"
|
|
1494
|
+
},
|
|
1495
|
+
"api-origin": {
|
|
1496
|
+
"hidden": true,
|
|
1497
|
+
"name": "api-origin",
|
|
1498
|
+
"required": false,
|
|
1499
|
+
"hasDynamicHelp": false,
|
|
1500
|
+
"multiple": false,
|
|
1501
|
+
"type": "option"
|
|
1502
|
+
},
|
|
1503
|
+
"environment": {
|
|
1504
|
+
"name": "environment",
|
|
1505
|
+
"summary": "The environment to use.",
|
|
1506
|
+
"default": "development",
|
|
1507
|
+
"hasDynamicHelp": false,
|
|
1508
|
+
"multiple": false,
|
|
1509
|
+
"type": "option"
|
|
1510
|
+
},
|
|
1511
|
+
"hide-uncommitted-changes": {
|
|
1512
|
+
"name": "hide-uncommitted-changes",
|
|
1513
|
+
"summary": "Hide any uncommitted changes.",
|
|
1514
|
+
"allowNo": false,
|
|
1515
|
+
"type": "boolean"
|
|
1516
|
+
}
|
|
1517
|
+
},
|
|
1518
|
+
"hasDynamicHelp": false,
|
|
1519
|
+
"hiddenAliases": [],
|
|
1520
|
+
"id": "layout:get",
|
|
1521
|
+
"pluginAlias": "@knocklabs/cli",
|
|
1522
|
+
"pluginName": "@knocklabs/cli",
|
|
1523
|
+
"pluginType": "core",
|
|
1524
|
+
"strict": true,
|
|
1525
|
+
"summary": "Display a single email layout from an environment.",
|
|
1526
|
+
"enableJsonFlag": true,
|
|
1527
|
+
"isESM": false,
|
|
1528
|
+
"relativePath": [
|
|
1529
|
+
"dist",
|
|
1530
|
+
"commands",
|
|
1531
|
+
"layout",
|
|
1532
|
+
"get.js"
|
|
1533
|
+
]
|
|
1534
|
+
},
|
|
1535
|
+
"layout:list": {
|
|
1536
|
+
"aliases": [],
|
|
1537
|
+
"args": {},
|
|
1538
|
+
"flags": {
|
|
1539
|
+
"json": {
|
|
1540
|
+
"description": "Format output as json.",
|
|
1541
|
+
"helpGroup": "GLOBAL",
|
|
1542
|
+
"name": "json",
|
|
1543
|
+
"allowNo": false,
|
|
1544
|
+
"type": "boolean"
|
|
1545
|
+
},
|
|
1546
|
+
"service-token": {
|
|
1547
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
1548
|
+
"name": "service-token",
|
|
1549
|
+
"required": true,
|
|
1550
|
+
"summary": "The service token to authenticate with.",
|
|
1551
|
+
"hasDynamicHelp": false,
|
|
1552
|
+
"multiple": false,
|
|
1553
|
+
"type": "option"
|
|
1554
|
+
},
|
|
1555
|
+
"api-origin": {
|
|
1556
|
+
"hidden": true,
|
|
1557
|
+
"name": "api-origin",
|
|
1558
|
+
"required": false,
|
|
1559
|
+
"hasDynamicHelp": false,
|
|
1560
|
+
"multiple": false,
|
|
1561
|
+
"type": "option"
|
|
1562
|
+
},
|
|
1563
|
+
"environment": {
|
|
1564
|
+
"name": "environment",
|
|
1565
|
+
"summary": "The environment to use.",
|
|
1566
|
+
"default": "development",
|
|
1567
|
+
"hasDynamicHelp": false,
|
|
1568
|
+
"multiple": false,
|
|
1569
|
+
"type": "option"
|
|
1570
|
+
},
|
|
1571
|
+
"hide-uncommitted-changes": {
|
|
1572
|
+
"name": "hide-uncommitted-changes",
|
|
1573
|
+
"summary": "Hide any uncommitted changes.",
|
|
1574
|
+
"allowNo": false,
|
|
1575
|
+
"type": "boolean"
|
|
1576
|
+
},
|
|
1577
|
+
"after": {
|
|
1578
|
+
"name": "after",
|
|
1579
|
+
"summary": "The cursor after which to fetch the next page.",
|
|
1580
|
+
"hasDynamicHelp": false,
|
|
1581
|
+
"multiple": false,
|
|
1582
|
+
"type": "option"
|
|
1583
|
+
},
|
|
1584
|
+
"before": {
|
|
1585
|
+
"name": "before",
|
|
1586
|
+
"summary": "The cursor before which to fetch the previous page.",
|
|
1587
|
+
"hasDynamicHelp": false,
|
|
1588
|
+
"multiple": false,
|
|
1589
|
+
"type": "option"
|
|
1590
|
+
},
|
|
1591
|
+
"limit": {
|
|
1592
|
+
"name": "limit",
|
|
1593
|
+
"summary": "The total number of entries to fetch per page.",
|
|
1594
|
+
"hasDynamicHelp": false,
|
|
1595
|
+
"multiple": false,
|
|
1596
|
+
"type": "option"
|
|
1597
|
+
}
|
|
1598
|
+
},
|
|
1599
|
+
"hasDynamicHelp": false,
|
|
1600
|
+
"hiddenAliases": [],
|
|
1601
|
+
"id": "layout:list",
|
|
1602
|
+
"pluginAlias": "@knocklabs/cli",
|
|
1603
|
+
"pluginName": "@knocklabs/cli",
|
|
1604
|
+
"pluginType": "core",
|
|
1605
|
+
"strict": true,
|
|
1606
|
+
"summary": "Display all email layouts for an environment.",
|
|
1607
|
+
"enableJsonFlag": true,
|
|
1608
|
+
"isESM": false,
|
|
1609
|
+
"relativePath": [
|
|
1610
|
+
"dist",
|
|
1611
|
+
"commands",
|
|
1612
|
+
"layout",
|
|
1613
|
+
"list.js"
|
|
1614
|
+
]
|
|
1615
|
+
},
|
|
1616
|
+
"layout:pull": {
|
|
1617
|
+
"aliases": [],
|
|
1618
|
+
"args": {
|
|
1619
|
+
"emailLayoutKey": {
|
|
1620
|
+
"name": "emailLayoutKey",
|
|
1621
|
+
"required": false
|
|
1622
|
+
}
|
|
1623
|
+
},
|
|
1624
|
+
"flags": {
|
|
1625
|
+
"service-token": {
|
|
1626
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
1627
|
+
"name": "service-token",
|
|
1628
|
+
"required": true,
|
|
1629
|
+
"summary": "The service token to authenticate with.",
|
|
1630
|
+
"hasDynamicHelp": false,
|
|
1631
|
+
"multiple": false,
|
|
1632
|
+
"type": "option"
|
|
1633
|
+
},
|
|
1634
|
+
"api-origin": {
|
|
1635
|
+
"hidden": true,
|
|
1636
|
+
"name": "api-origin",
|
|
1637
|
+
"required": false,
|
|
1638
|
+
"hasDynamicHelp": false,
|
|
1639
|
+
"multiple": false,
|
|
1640
|
+
"type": "option"
|
|
1641
|
+
},
|
|
1642
|
+
"environment": {
|
|
1643
|
+
"name": "environment",
|
|
1644
|
+
"summary": "The environment to use.",
|
|
1645
|
+
"default": "development",
|
|
1646
|
+
"hasDynamicHelp": false,
|
|
1647
|
+
"multiple": false,
|
|
1648
|
+
"type": "option"
|
|
1649
|
+
},
|
|
1650
|
+
"all": {
|
|
1651
|
+
"name": "all",
|
|
1652
|
+
"summary": "Whether to pull all email layouts from the specified environment.",
|
|
1653
|
+
"allowNo": false,
|
|
1654
|
+
"type": "boolean"
|
|
1655
|
+
},
|
|
1656
|
+
"layouts-dir": {
|
|
1657
|
+
"aliases": [
|
|
1658
|
+
"email-layouts-dir"
|
|
1659
|
+
],
|
|
1660
|
+
"dependsOn": [
|
|
1661
|
+
"all"
|
|
1662
|
+
],
|
|
1663
|
+
"name": "layouts-dir",
|
|
1664
|
+
"summary": "The target directory path to pull all email layouts into.",
|
|
1665
|
+
"hasDynamicHelp": false,
|
|
1666
|
+
"multiple": false,
|
|
1667
|
+
"type": "option"
|
|
1668
|
+
},
|
|
1669
|
+
"hide-uncommitted-changes": {
|
|
1670
|
+
"name": "hide-uncommitted-changes",
|
|
1671
|
+
"summary": "Hide any uncommitted changes.",
|
|
1672
|
+
"allowNo": false,
|
|
1673
|
+
"type": "boolean"
|
|
1674
|
+
},
|
|
1675
|
+
"force": {
|
|
1676
|
+
"name": "force",
|
|
1677
|
+
"summary": "Remove the confirmation prompt.",
|
|
1678
|
+
"allowNo": false,
|
|
1679
|
+
"type": "boolean"
|
|
1680
|
+
}
|
|
1681
|
+
},
|
|
1682
|
+
"hasDynamicHelp": false,
|
|
1683
|
+
"hiddenAliases": [],
|
|
1684
|
+
"id": "layout:pull",
|
|
1685
|
+
"pluginAlias": "@knocklabs/cli",
|
|
1686
|
+
"pluginName": "@knocklabs/cli",
|
|
1687
|
+
"pluginType": "core",
|
|
1688
|
+
"strict": true,
|
|
1689
|
+
"summary": "Pull one or more email layouts from an environment into a local file system.",
|
|
1690
|
+
"enableJsonFlag": false,
|
|
1691
|
+
"isESM": false,
|
|
1692
|
+
"relativePath": [
|
|
1693
|
+
"dist",
|
|
1694
|
+
"commands",
|
|
1695
|
+
"layout",
|
|
1696
|
+
"pull.js"
|
|
1697
|
+
]
|
|
1698
|
+
},
|
|
1699
|
+
"layout:push": {
|
|
1700
|
+
"aliases": [],
|
|
1701
|
+
"args": {
|
|
1702
|
+
"emailLayoutKey": {
|
|
1703
|
+
"name": "emailLayoutKey",
|
|
1704
|
+
"required": false
|
|
1705
|
+
}
|
|
1706
|
+
},
|
|
1707
|
+
"flags": {
|
|
1708
|
+
"service-token": {
|
|
1709
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
1710
|
+
"name": "service-token",
|
|
1711
|
+
"required": true,
|
|
1712
|
+
"summary": "The service token to authenticate with.",
|
|
1713
|
+
"hasDynamicHelp": false,
|
|
1714
|
+
"multiple": false,
|
|
1715
|
+
"type": "option"
|
|
1716
|
+
},
|
|
1717
|
+
"api-origin": {
|
|
1718
|
+
"hidden": true,
|
|
1719
|
+
"name": "api-origin",
|
|
1720
|
+
"required": false,
|
|
1721
|
+
"hasDynamicHelp": false,
|
|
1722
|
+
"multiple": false,
|
|
1723
|
+
"type": "option"
|
|
1724
|
+
},
|
|
1725
|
+
"environment": {
|
|
1726
|
+
"name": "environment",
|
|
1727
|
+
"summary": "Pushing an email layout is only allowed in the development environment",
|
|
1728
|
+
"default": "development",
|
|
1729
|
+
"hasDynamicHelp": false,
|
|
1730
|
+
"multiple": false,
|
|
1731
|
+
"options": [
|
|
1732
|
+
"development"
|
|
1733
|
+
],
|
|
1734
|
+
"type": "option"
|
|
1735
|
+
},
|
|
1736
|
+
"all": {
|
|
1737
|
+
"name": "all",
|
|
1738
|
+
"summary": "Whether to push all layouts from the target directory.",
|
|
1739
|
+
"allowNo": false,
|
|
1740
|
+
"type": "boolean"
|
|
1741
|
+
},
|
|
1742
|
+
"layouts-dir": {
|
|
1743
|
+
"aliases": [
|
|
1744
|
+
"email-layouts-dir"
|
|
1745
|
+
],
|
|
1746
|
+
"dependsOn": [
|
|
1747
|
+
"all"
|
|
1748
|
+
],
|
|
1749
|
+
"name": "layouts-dir",
|
|
1750
|
+
"summary": "The target directory path to find all layouts to push.",
|
|
1751
|
+
"hasDynamicHelp": false,
|
|
1752
|
+
"multiple": false,
|
|
1753
|
+
"type": "option"
|
|
1754
|
+
},
|
|
1755
|
+
"commit": {
|
|
1756
|
+
"name": "commit",
|
|
1757
|
+
"summary": "Push and commit the layout(s) at the same time",
|
|
1758
|
+
"allowNo": false,
|
|
1759
|
+
"type": "boolean"
|
|
1760
|
+
},
|
|
1761
|
+
"commit-message": {
|
|
1762
|
+
"char": "m",
|
|
1763
|
+
"dependsOn": [
|
|
1764
|
+
"commit"
|
|
1765
|
+
],
|
|
1766
|
+
"name": "commit-message",
|
|
1767
|
+
"summary": "Use the given value as the commit message",
|
|
1768
|
+
"hasDynamicHelp": false,
|
|
1769
|
+
"multiple": false,
|
|
1770
|
+
"type": "option"
|
|
1771
|
+
}
|
|
1772
|
+
},
|
|
1773
|
+
"hasDynamicHelp": false,
|
|
1774
|
+
"hiddenAliases": [],
|
|
1775
|
+
"id": "layout:push",
|
|
1776
|
+
"pluginAlias": "@knocklabs/cli",
|
|
1777
|
+
"pluginName": "@knocklabs/cli",
|
|
1778
|
+
"pluginType": "core",
|
|
1779
|
+
"strict": true,
|
|
1780
|
+
"summary": "Push one or more email layouts from a local file system to Knock.",
|
|
1781
|
+
"enableJsonFlag": false,
|
|
1782
|
+
"isESM": false,
|
|
1783
|
+
"relativePath": [
|
|
1784
|
+
"dist",
|
|
1785
|
+
"commands",
|
|
1786
|
+
"layout",
|
|
1787
|
+
"push.js"
|
|
1788
|
+
]
|
|
1789
|
+
},
|
|
1790
|
+
"layout:validate": {
|
|
1791
|
+
"aliases": [],
|
|
1792
|
+
"args": {
|
|
1793
|
+
"emailLayoutKey": {
|
|
1794
|
+
"name": "emailLayoutKey",
|
|
1795
|
+
"required": false
|
|
1796
|
+
}
|
|
1797
|
+
},
|
|
1798
|
+
"flags": {
|
|
1799
|
+
"service-token": {
|
|
1800
|
+
"env": "KNOCK_SERVICE_TOKEN",
|
|
1801
|
+
"name": "service-token",
|
|
1802
|
+
"required": true,
|
|
1803
|
+
"summary": "The service token to authenticate with.",
|
|
1804
|
+
"hasDynamicHelp": false,
|
|
1805
|
+
"multiple": false,
|
|
1806
|
+
"type": "option"
|
|
1807
|
+
},
|
|
1808
|
+
"api-origin": {
|
|
1809
|
+
"hidden": true,
|
|
1810
|
+
"name": "api-origin",
|
|
1811
|
+
"required": false,
|
|
1812
|
+
"hasDynamicHelp": false,
|
|
1813
|
+
"multiple": false,
|
|
1814
|
+
"type": "option"
|
|
1815
|
+
},
|
|
1816
|
+
"environment": {
|
|
1817
|
+
"name": "environment",
|
|
1818
|
+
"summary": "Validating a layout is only done in the development environment",
|
|
1819
|
+
"default": "development",
|
|
1820
|
+
"hasDynamicHelp": false,
|
|
1821
|
+
"multiple": false,
|
|
1822
|
+
"options": [
|
|
1823
|
+
"development"
|
|
1824
|
+
],
|
|
1825
|
+
"type": "option"
|
|
1826
|
+
},
|
|
1827
|
+
"all": {
|
|
1828
|
+
"name": "all",
|
|
1829
|
+
"summary": "Whether to validate all layouts from the target directory.",
|
|
1830
|
+
"allowNo": false,
|
|
1831
|
+
"type": "boolean"
|
|
1832
|
+
},
|
|
1833
|
+
"layouts-dir": {
|
|
1834
|
+
"aliases": [
|
|
1835
|
+
"email-layouts-dir"
|
|
1836
|
+
],
|
|
1837
|
+
"dependsOn": [
|
|
1838
|
+
"all"
|
|
1839
|
+
],
|
|
1840
|
+
"name": "layouts-dir",
|
|
1841
|
+
"summary": "The target directory path to find all layouts to validate.",
|
|
1842
|
+
"hasDynamicHelp": false,
|
|
1843
|
+
"multiple": false,
|
|
1844
|
+
"type": "option"
|
|
1845
|
+
}
|
|
1846
|
+
},
|
|
1847
|
+
"hasDynamicHelp": false,
|
|
1848
|
+
"hiddenAliases": [],
|
|
1849
|
+
"id": "layout:validate",
|
|
1850
|
+
"pluginAlias": "@knocklabs/cli",
|
|
1851
|
+
"pluginName": "@knocklabs/cli",
|
|
1852
|
+
"pluginType": "core",
|
|
1853
|
+
"strict": true,
|
|
1854
|
+
"summary": "Validate one or more layouts from a local file system.",
|
|
1855
|
+
"enableJsonFlag": false,
|
|
1856
|
+
"isESM": false,
|
|
1857
|
+
"relativePath": [
|
|
1858
|
+
"dist",
|
|
1859
|
+
"commands",
|
|
1860
|
+
"layout",
|
|
1861
|
+
"validate.js"
|
|
1862
|
+
]
|
|
1863
|
+
},
|
|
1303
1864
|
"partial:get": {
|
|
1304
1865
|
"aliases": [],
|
|
1305
1866
|
"args": {
|
|
@@ -2172,7 +2733,7 @@
|
|
|
2172
2733
|
"workflow:generate-types": {
|
|
2173
2734
|
"aliases": [],
|
|
2174
2735
|
"args": {},
|
|
2175
|
-
"description": "Generate types for all workflows in
|
|
2736
|
+
"description": "Generate types for all workflows in an environment and write them to a file.",
|
|
2176
2737
|
"flags": {
|
|
2177
2738
|
"service-token": {
|
|
2178
2739
|
"env": "KNOCK_SERVICE_TOKEN",
|
|
@@ -2752,5 +3313,5 @@
|
|
|
2752
3313
|
]
|
|
2753
3314
|
}
|
|
2754
3315
|
},
|
|
2755
|
-
"version": "0.1.
|
|
3316
|
+
"version": "0.1.23"
|
|
2756
3317
|
}
|