@sendly/cli 3.4.0 → 3.5.1
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/dist/commands/sms/batch.d.ts +31 -2
- package/dist/commands/sms/batch.js +305 -214
- package/dist/commands/status.js +119 -42
- package/dist/lib/api-client.d.ts +13 -0
- package/dist/lib/api-client.js +76 -1
- package/dist/lib/base-command.js +8 -2
- package/oclif.manifest.json +41 -14
- package/package.json +2 -4
package/oclif.manifest.json
CHANGED
|
@@ -219,7 +219,7 @@
|
|
|
219
219
|
"status": {
|
|
220
220
|
"aliases": [],
|
|
221
221
|
"args": {},
|
|
222
|
-
"description": "Show account status dashboard with credits, usage, and
|
|
222
|
+
"description": "Show account status dashboard with credits, usage, and capabilities",
|
|
223
223
|
"examples": [
|
|
224
224
|
"<%= config.bin %> status",
|
|
225
225
|
"<%= config.bin %> status --json"
|
|
@@ -748,15 +748,15 @@
|
|
|
748
748
|
"sms:batch": {
|
|
749
749
|
"aliases": [],
|
|
750
750
|
"args": {},
|
|
751
|
-
"description": "Send batch SMS messages",
|
|
751
|
+
"description": "Send batch SMS messages (uploads CSV to cloud for audit trail)",
|
|
752
752
|
"examples": [
|
|
753
|
-
"<%= config.bin %> sms batch --file recipients.
|
|
754
|
-
"<%= config.bin %> sms batch --
|
|
755
|
-
"<%= config.bin %> sms batch --
|
|
756
|
-
"<%= config.bin %> sms batch --file recipients.csv --
|
|
757
|
-
"<%= config.bin %> sms batch --file
|
|
758
|
-
"<%= config.bin %> sms batch --
|
|
759
|
-
"<%= config.bin %> sms batch --
|
|
753
|
+
"<%= config.bin %> sms batch --file recipients.csv",
|
|
754
|
+
"<%= config.bin %> sms batch --file phones.csv --text \"Hello everyone!\"",
|
|
755
|
+
"<%= config.bin %> sms batch --to +15551234567,+15559876543 --text \"Hello!\"",
|
|
756
|
+
"<%= config.bin %> sms batch --file recipients.csv --dry-run",
|
|
757
|
+
"<%= config.bin %> sms batch --file phones.csv --text \"Code: 123\" --type transactional",
|
|
758
|
+
"<%= config.bin %> sms batch --reuse abc123-def456",
|
|
759
|
+
"<%= config.bin %> sms batch --history"
|
|
760
760
|
],
|
|
761
761
|
"flags": {
|
|
762
762
|
"json": {
|
|
@@ -774,9 +774,11 @@
|
|
|
774
774
|
},
|
|
775
775
|
"file": {
|
|
776
776
|
"char": "F",
|
|
777
|
-
"description": "
|
|
777
|
+
"description": "CSV file with phone numbers (and optional message text)",
|
|
778
778
|
"exclusive": [
|
|
779
|
-
"to"
|
|
779
|
+
"to",
|
|
780
|
+
"reuse",
|
|
781
|
+
"history"
|
|
780
782
|
],
|
|
781
783
|
"name": "file",
|
|
782
784
|
"hasDynamicHelp": false,
|
|
@@ -787,7 +789,9 @@
|
|
|
787
789
|
"char": "t",
|
|
788
790
|
"description": "Comma-separated recipient phone numbers (E.164 format)",
|
|
789
791
|
"exclusive": [
|
|
790
|
-
"file"
|
|
792
|
+
"file",
|
|
793
|
+
"reuse",
|
|
794
|
+
"history"
|
|
791
795
|
],
|
|
792
796
|
"name": "to",
|
|
793
797
|
"hasDynamicHelp": false,
|
|
@@ -796,7 +800,7 @@
|
|
|
796
800
|
},
|
|
797
801
|
"text": {
|
|
798
802
|
"char": "m",
|
|
799
|
-
"description": "Message text (
|
|
803
|
+
"description": "Message text (required with --to, optional with --file if CSV has text column)",
|
|
800
804
|
"name": "text",
|
|
801
805
|
"hasDynamicHelp": false,
|
|
802
806
|
"multiple": false,
|
|
@@ -828,6 +832,29 @@
|
|
|
828
832
|
"name": "dry-run",
|
|
829
833
|
"allowNo": false,
|
|
830
834
|
"type": "boolean"
|
|
835
|
+
},
|
|
836
|
+
"reuse": {
|
|
837
|
+
"description": "Re-use a previous batch upload by ID (see --history)",
|
|
838
|
+
"exclusive": [
|
|
839
|
+
"file",
|
|
840
|
+
"to",
|
|
841
|
+
"history"
|
|
842
|
+
],
|
|
843
|
+
"name": "reuse",
|
|
844
|
+
"hasDynamicHelp": false,
|
|
845
|
+
"multiple": false,
|
|
846
|
+
"type": "option"
|
|
847
|
+
},
|
|
848
|
+
"history": {
|
|
849
|
+
"description": "Show recent batch upload history",
|
|
850
|
+
"exclusive": [
|
|
851
|
+
"file",
|
|
852
|
+
"to",
|
|
853
|
+
"reuse"
|
|
854
|
+
],
|
|
855
|
+
"name": "history",
|
|
856
|
+
"allowNo": false,
|
|
857
|
+
"type": "boolean"
|
|
831
858
|
}
|
|
832
859
|
},
|
|
833
860
|
"hasDynamicHelp": false,
|
|
@@ -1762,5 +1789,5 @@
|
|
|
1762
1789
|
]
|
|
1763
1790
|
}
|
|
1764
1791
|
},
|
|
1765
|
-
"version": "3.
|
|
1792
|
+
"version": "3.5.1"
|
|
1766
1793
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sendly/cli",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Sendly CLI - Send SMS from your terminal",
|
|
6
6
|
"author": "Sendly <support@sendly.live>",
|
|
@@ -34,8 +34,7 @@
|
|
|
34
34
|
"command_not_found": "./dist/hooks/command-not-found"
|
|
35
35
|
},
|
|
36
36
|
"plugins": [
|
|
37
|
-
"@oclif/plugin-help"
|
|
38
|
-
"@oclif/plugin-plugins"
|
|
37
|
+
"@oclif/plugin-help"
|
|
39
38
|
],
|
|
40
39
|
"topicSeparator": " ",
|
|
41
40
|
"topics": {
|
|
@@ -59,7 +58,6 @@
|
|
|
59
58
|
"dependencies": {
|
|
60
59
|
"@oclif/core": "^3.27.0",
|
|
61
60
|
"@oclif/plugin-help": "^6.2.0",
|
|
62
|
-
"@oclif/plugin-plugins": "^5.3.0",
|
|
63
61
|
"chalk": "^5.3.0",
|
|
64
62
|
"cli-table3": "^0.6.5",
|
|
65
63
|
"conf": "^12.0.0",
|