@winning-sales/nexo 0.2.1 → 0.3.0
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 +28 -0
- package/assets/skills/nexo-automations/SKILL.md +45 -0
- package/dist/automations/project.js +69 -0
- package/dist/automations/summary.js +79 -0
- package/dist/commands/automations.js +354 -0
- package/dist/commands/billing.js +144 -0
- package/dist/program-automations.js +138 -0
- package/dist/program.js +22 -0
- package/dist/skills/targets.js +1 -1
- package/package.json +1 -1
- package/reference.json +409 -1
package/reference.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.
|
|
2
|
+
"version": "0.3.0",
|
|
3
3
|
"program": {
|
|
4
4
|
"name": "nexo",
|
|
5
5
|
"path": "nexo",
|
|
@@ -724,6 +724,370 @@
|
|
|
724
724
|
}
|
|
725
725
|
]
|
|
726
726
|
},
|
|
727
|
+
{
|
|
728
|
+
"name": "automations",
|
|
729
|
+
"path": "nexo automations",
|
|
730
|
+
"aliases": [
|
|
731
|
+
"flows"
|
|
732
|
+
],
|
|
733
|
+
"description": "Automações como código: a regra num arquivo do seu repositório",
|
|
734
|
+
"arguments": [],
|
|
735
|
+
"options": [
|
|
736
|
+
{
|
|
737
|
+
"flags": "--automation <id>",
|
|
738
|
+
"description": "usa esta automação no lugar da da pasta",
|
|
739
|
+
"required": false,
|
|
740
|
+
"default": null,
|
|
741
|
+
"choices": null
|
|
742
|
+
}
|
|
743
|
+
],
|
|
744
|
+
"commands": [
|
|
745
|
+
{
|
|
746
|
+
"name": "catalog",
|
|
747
|
+
"path": "nexo automations catalog",
|
|
748
|
+
"aliases": [],
|
|
749
|
+
"description": "Os gatilhos, as ações e os campos que uma regra pode usar",
|
|
750
|
+
"arguments": [],
|
|
751
|
+
"options": [],
|
|
752
|
+
"commands": []
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
"name": "list",
|
|
756
|
+
"path": "nexo automations list",
|
|
757
|
+
"aliases": [],
|
|
758
|
+
"description": "As automações da empresa",
|
|
759
|
+
"arguments": [],
|
|
760
|
+
"options": [],
|
|
761
|
+
"commands": []
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"name": "get",
|
|
765
|
+
"path": "nexo automations get",
|
|
766
|
+
"aliases": [],
|
|
767
|
+
"description": "Uma automação: o estado, o rascunho e os problemas",
|
|
768
|
+
"arguments": [
|
|
769
|
+
{
|
|
770
|
+
"name": "automação",
|
|
771
|
+
"description": "id da automação (padrão: a da pasta atual)",
|
|
772
|
+
"required": false,
|
|
773
|
+
"variadic": false,
|
|
774
|
+
"default": null
|
|
775
|
+
}
|
|
776
|
+
],
|
|
777
|
+
"options": [],
|
|
778
|
+
"commands": []
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"name": "entities",
|
|
782
|
+
"path": "nexo automations entities",
|
|
783
|
+
"aliases": [],
|
|
784
|
+
"description": "As entidades que os gatilhos genéricos escutam, com os campos",
|
|
785
|
+
"arguments": [
|
|
786
|
+
{
|
|
787
|
+
"name": "entidade",
|
|
788
|
+
"description": "a chave da entidade (por exemplo deal ou lead)",
|
|
789
|
+
"required": false,
|
|
790
|
+
"variadic": false,
|
|
791
|
+
"default": null
|
|
792
|
+
}
|
|
793
|
+
],
|
|
794
|
+
"options": [
|
|
795
|
+
{
|
|
796
|
+
"flags": "--domain <domínio>",
|
|
797
|
+
"description": "a família da regra (padrão: crm)",
|
|
798
|
+
"required": false,
|
|
799
|
+
"default": null,
|
|
800
|
+
"choices": null
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"commands": []
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"name": "versions",
|
|
807
|
+
"path": "nexo automations versions",
|
|
808
|
+
"aliases": [],
|
|
809
|
+
"description": "As versões salvas da automação",
|
|
810
|
+
"arguments": [
|
|
811
|
+
{
|
|
812
|
+
"name": "pasta",
|
|
813
|
+
"description": "pasta da automação",
|
|
814
|
+
"required": false,
|
|
815
|
+
"variadic": false,
|
|
816
|
+
"default": "."
|
|
817
|
+
}
|
|
818
|
+
],
|
|
819
|
+
"options": [],
|
|
820
|
+
"commands": []
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"name": "events",
|
|
824
|
+
"path": "nexo automations events",
|
|
825
|
+
"aliases": [],
|
|
826
|
+
"description": "O que aconteceu com um registro (os eventos que as automações escutam, dos últimos 14 dias)",
|
|
827
|
+
"arguments": [
|
|
828
|
+
{
|
|
829
|
+
"name": "entidade",
|
|
830
|
+
"description": "a chave da entidade (por exemplo deal ou lead)",
|
|
831
|
+
"required": true,
|
|
832
|
+
"variadic": false,
|
|
833
|
+
"default": null
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"name": "registro",
|
|
837
|
+
"description": "o id do registro",
|
|
838
|
+
"required": true,
|
|
839
|
+
"variadic": false,
|
|
840
|
+
"default": null
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"options": [
|
|
844
|
+
{
|
|
845
|
+
"flags": "--domain <domínio>",
|
|
846
|
+
"description": "a família da regra (padrão: crm)",
|
|
847
|
+
"required": false,
|
|
848
|
+
"default": null,
|
|
849
|
+
"choices": null
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"flags": "--limit <n>",
|
|
853
|
+
"description": "quantos eventos por página",
|
|
854
|
+
"required": false,
|
|
855
|
+
"default": null,
|
|
856
|
+
"choices": null
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"flags": "--cursor <id>",
|
|
860
|
+
"description": "o cursor da página anterior",
|
|
861
|
+
"required": false,
|
|
862
|
+
"default": null,
|
|
863
|
+
"choices": null
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"commands": []
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"name": "init",
|
|
870
|
+
"path": "nexo automations init",
|
|
871
|
+
"aliases": [],
|
|
872
|
+
"description": "Cria uma pasta com automation.json (o documento da regra)",
|
|
873
|
+
"arguments": [
|
|
874
|
+
{
|
|
875
|
+
"name": "pasta",
|
|
876
|
+
"description": "pasta nova da automação",
|
|
877
|
+
"required": true,
|
|
878
|
+
"variadic": false,
|
|
879
|
+
"default": null
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"options": [
|
|
883
|
+
{
|
|
884
|
+
"flags": "--name <nome>",
|
|
885
|
+
"description": "nome da automação",
|
|
886
|
+
"required": false,
|
|
887
|
+
"default": null,
|
|
888
|
+
"choices": null
|
|
889
|
+
}
|
|
890
|
+
],
|
|
891
|
+
"commands": []
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"name": "pull",
|
|
895
|
+
"path": "nexo automations pull",
|
|
896
|
+
"aliases": [],
|
|
897
|
+
"description": "Baixa uma automação do Nexo (o rascunho, ou a última versão salva)",
|
|
898
|
+
"arguments": [
|
|
899
|
+
{
|
|
900
|
+
"name": "automação",
|
|
901
|
+
"description": "id da automação (veja `nexo automations list`)",
|
|
902
|
+
"required": true,
|
|
903
|
+
"variadic": false,
|
|
904
|
+
"default": null
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
"name": "pasta",
|
|
908
|
+
"description": "pasta nova (padrão: o id)",
|
|
909
|
+
"required": false,
|
|
910
|
+
"variadic": false,
|
|
911
|
+
"default": null
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
"options": [],
|
|
915
|
+
"commands": []
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"name": "push",
|
|
919
|
+
"path": "nexo automations push",
|
|
920
|
+
"aliases": [],
|
|
921
|
+
"description": "Cria a automação ou salva o rascunho, e mostra os problemas que impedem publicar",
|
|
922
|
+
"arguments": [
|
|
923
|
+
{
|
|
924
|
+
"name": "pasta",
|
|
925
|
+
"description": "pasta da automação",
|
|
926
|
+
"required": false,
|
|
927
|
+
"variadic": false,
|
|
928
|
+
"default": "."
|
|
929
|
+
}
|
|
930
|
+
],
|
|
931
|
+
"options": [
|
|
932
|
+
{
|
|
933
|
+
"flags": "-m, --summary <texto>",
|
|
934
|
+
"description": "o que mudou",
|
|
935
|
+
"required": false,
|
|
936
|
+
"default": null,
|
|
937
|
+
"choices": null
|
|
938
|
+
}
|
|
939
|
+
],
|
|
940
|
+
"commands": []
|
|
941
|
+
},
|
|
942
|
+
{
|
|
943
|
+
"name": "publish",
|
|
944
|
+
"path": "nexo automations publish",
|
|
945
|
+
"aliases": [],
|
|
946
|
+
"description": "Publica o rascunho: mostra o que vai ao ar e pede o sim",
|
|
947
|
+
"arguments": [
|
|
948
|
+
{
|
|
949
|
+
"name": "pasta",
|
|
950
|
+
"description": "pasta da automação",
|
|
951
|
+
"required": false,
|
|
952
|
+
"variadic": false,
|
|
953
|
+
"default": "."
|
|
954
|
+
}
|
|
955
|
+
],
|
|
956
|
+
"options": [
|
|
957
|
+
{
|
|
958
|
+
"flags": "-y, --yes",
|
|
959
|
+
"description": "publica depois de mostrar, sem perguntar (só depois do sim da pessoa)",
|
|
960
|
+
"required": false,
|
|
961
|
+
"default": null,
|
|
962
|
+
"choices": null
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
"flags": "--cancel-live-runs",
|
|
966
|
+
"description": "cancela as execuções em andamento da versão anterior",
|
|
967
|
+
"required": false,
|
|
968
|
+
"default": null,
|
|
969
|
+
"choices": null
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
"commands": []
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"name": "restore",
|
|
976
|
+
"path": "nexo automations restore",
|
|
977
|
+
"aliases": [],
|
|
978
|
+
"description": "Volta a uma versão antiga: cria uma versão nova com o documento dela e pede o sim",
|
|
979
|
+
"arguments": [
|
|
980
|
+
{
|
|
981
|
+
"name": "versão",
|
|
982
|
+
"description": "o número da versão (veja `nexo automations versions`)",
|
|
983
|
+
"required": true,
|
|
984
|
+
"variadic": false,
|
|
985
|
+
"default": null
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "pasta",
|
|
989
|
+
"description": "pasta da automação",
|
|
990
|
+
"required": false,
|
|
991
|
+
"variadic": false,
|
|
992
|
+
"default": "."
|
|
993
|
+
}
|
|
994
|
+
],
|
|
995
|
+
"options": [
|
|
996
|
+
{
|
|
997
|
+
"flags": "-y, --yes",
|
|
998
|
+
"description": "restaura depois de mostrar, sem perguntar (só depois do sim da pessoa)",
|
|
999
|
+
"required": false,
|
|
1000
|
+
"default": null,
|
|
1001
|
+
"choices": null
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"flags": "--cancel-live-runs",
|
|
1005
|
+
"description": "cancela as execuções em andamento",
|
|
1006
|
+
"required": false,
|
|
1007
|
+
"default": null,
|
|
1008
|
+
"choices": null
|
|
1009
|
+
}
|
|
1010
|
+
],
|
|
1011
|
+
"commands": []
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "pause",
|
|
1015
|
+
"path": "nexo automations pause",
|
|
1016
|
+
"aliases": [],
|
|
1017
|
+
"description": "Pausa a automação",
|
|
1018
|
+
"arguments": [
|
|
1019
|
+
{
|
|
1020
|
+
"name": "pasta",
|
|
1021
|
+
"description": "pasta da automação",
|
|
1022
|
+
"required": false,
|
|
1023
|
+
"variadic": false,
|
|
1024
|
+
"default": "."
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
1027
|
+
"options": [],
|
|
1028
|
+
"commands": []
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"name": "resume",
|
|
1032
|
+
"path": "nexo automations resume",
|
|
1033
|
+
"aliases": [],
|
|
1034
|
+
"description": "Liga de novo uma automação pausada",
|
|
1035
|
+
"arguments": [
|
|
1036
|
+
{
|
|
1037
|
+
"name": "pasta",
|
|
1038
|
+
"description": "pasta da automação",
|
|
1039
|
+
"required": false,
|
|
1040
|
+
"variadic": false,
|
|
1041
|
+
"default": "."
|
|
1042
|
+
}
|
|
1043
|
+
],
|
|
1044
|
+
"options": [],
|
|
1045
|
+
"commands": []
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "runs",
|
|
1049
|
+
"path": "nexo automations runs",
|
|
1050
|
+
"aliases": [],
|
|
1051
|
+
"description": "As execuções, da mais nova para a mais antiga",
|
|
1052
|
+
"arguments": [
|
|
1053
|
+
{
|
|
1054
|
+
"name": "pasta",
|
|
1055
|
+
"description": "pasta da automação",
|
|
1056
|
+
"required": false,
|
|
1057
|
+
"variadic": false,
|
|
1058
|
+
"default": "."
|
|
1059
|
+
}
|
|
1060
|
+
],
|
|
1061
|
+
"options": [
|
|
1062
|
+
{
|
|
1063
|
+
"flags": "--state <estado>",
|
|
1064
|
+
"description": "queued, running, waiting, completed, failed ou canceled",
|
|
1065
|
+
"required": false,
|
|
1066
|
+
"default": null,
|
|
1067
|
+
"choices": null
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
"commands": []
|
|
1071
|
+
},
|
|
1072
|
+
{
|
|
1073
|
+
"name": "run",
|
|
1074
|
+
"path": "nexo automations run",
|
|
1075
|
+
"aliases": [],
|
|
1076
|
+
"description": "Uma execução, passo a passo",
|
|
1077
|
+
"arguments": [
|
|
1078
|
+
{
|
|
1079
|
+
"name": "execução",
|
|
1080
|
+
"description": "id da execução",
|
|
1081
|
+
"required": true,
|
|
1082
|
+
"variadic": false,
|
|
1083
|
+
"default": null
|
|
1084
|
+
}
|
|
1085
|
+
],
|
|
1086
|
+
"options": [],
|
|
1087
|
+
"commands": []
|
|
1088
|
+
}
|
|
1089
|
+
]
|
|
1090
|
+
},
|
|
727
1091
|
{
|
|
728
1092
|
"name": "dashboards",
|
|
729
1093
|
"path": "nexo dashboards",
|
|
@@ -912,6 +1276,50 @@
|
|
|
912
1276
|
"commands": []
|
|
913
1277
|
}
|
|
914
1278
|
]
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"name": "billing",
|
|
1282
|
+
"path": "nexo billing",
|
|
1283
|
+
"aliases": [
|
|
1284
|
+
"cobranca"
|
|
1285
|
+
],
|
|
1286
|
+
"description": "Plano e cobrança da empresa, só leitura: assentos, próximo pagamento, situação e cartão (exige o escopo billing:read e um administrador)",
|
|
1287
|
+
"arguments": [],
|
|
1288
|
+
"options": [],
|
|
1289
|
+
"commands": [
|
|
1290
|
+
{
|
|
1291
|
+
"name": "invoices",
|
|
1292
|
+
"path": "nexo billing invoices",
|
|
1293
|
+
"aliases": [],
|
|
1294
|
+
"description": "Lista as faturas, da mais nova para a mais antiga; com o id, mostra a fatura com as linhas",
|
|
1295
|
+
"arguments": [
|
|
1296
|
+
{
|
|
1297
|
+
"name": "id",
|
|
1298
|
+
"description": "id da fatura (UUID), para ver as linhas",
|
|
1299
|
+
"required": false,
|
|
1300
|
+
"variadic": false,
|
|
1301
|
+
"default": null
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
"options": [
|
|
1305
|
+
{
|
|
1306
|
+
"flags": "--page <n>",
|
|
1307
|
+
"description": "página da lista",
|
|
1308
|
+
"required": false,
|
|
1309
|
+
"default": null,
|
|
1310
|
+
"choices": null
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
"flags": "--page-size <n>",
|
|
1314
|
+
"description": "faturas por página",
|
|
1315
|
+
"required": false,
|
|
1316
|
+
"default": null,
|
|
1317
|
+
"choices": null
|
|
1318
|
+
}
|
|
1319
|
+
],
|
|
1320
|
+
"commands": []
|
|
1321
|
+
}
|
|
1322
|
+
]
|
|
915
1323
|
}
|
|
916
1324
|
]
|
|
917
1325
|
}
|