@fonoster/ctl 0.3.3 → 0.3.6-alpha.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.
@@ -0,0 +1,319 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.voices = void 0;
4
+ exports.voices = [
5
+ "ar-XA-Wavenet-A",
6
+ "ar-XA-Wavenet-B",
7
+ "ar-XA-Wavenet-C",
8
+ "ar-XA-Wavenet-D",
9
+ "bn-IN-Wavenet-A",
10
+ "bn-IN-Wavenet-B",
11
+ "en-GB-Wavenet-A",
12
+ "en-GB-Wavenet-B",
13
+ "en-GB-Wavenet-C",
14
+ "en-GB-Wavenet-D",
15
+ "en-GB-Wavenet-F",
16
+ "fr-CA-Wavenet-A",
17
+ "fr-CA-Wavenet-B",
18
+ "fr-CA-Wavenet-C",
19
+ "fr-CA-Wavenet-D",
20
+ "en-US-Wavenet-G",
21
+ "en-US-Wavenet-H",
22
+ "en-US-Wavenet-I",
23
+ "en-US-Wavenet-J",
24
+ "en-US-Wavenet-A",
25
+ "en-US-Wavenet-B",
26
+ "en-US-Wavenet-C",
27
+ "en-US-Wavenet-D",
28
+ "en-US-Wavenet-E",
29
+ "en-US-Wavenet-F",
30
+ "es-ES-Wavenet-C",
31
+ "es-ES-Wavenet-D",
32
+ "es-ES-Wavenet-B",
33
+ "fi-FI-Wavenet-A",
34
+ "gu-IN-Wavenet-A",
35
+ "gu-IN-Wavenet-B",
36
+ "ja-JP-Wavenet-B",
37
+ "ja-JP-Wavenet-C",
38
+ "ja-JP-Wavenet-D",
39
+ "ja-JP-Wavenet-A",
40
+ "kn-IN-Wavenet-A",
41
+ "kn-IN-Wavenet-B",
42
+ "ml-IN-Wavenet-A",
43
+ "ml-IN-Wavenet-B",
44
+ "sv-SE-Wavenet-A",
45
+ "sv-SE-Wavenet-B",
46
+ "sv-SE-Wavenet-C",
47
+ "sv-SE-Wavenet-D",
48
+ "sv-SE-Wavenet-E",
49
+ "ta-IN-Wavenet-A",
50
+ "ta-IN-Wavenet-B",
51
+ "tr-TR-Wavenet-B",
52
+ "tr-TR-Wavenet-C",
53
+ "tr-TR-Wavenet-D",
54
+ "tr-TR-Wavenet-E",
55
+ "tr-TR-Wavenet-A",
56
+ "ms-MY-Wavenet-A",
57
+ "ms-MY-Wavenet-B",
58
+ "ms-MY-Wavenet-C",
59
+ "ms-MY-Wavenet-D",
60
+ "pa-IN-Wavenet-A",
61
+ "pa-IN-Wavenet-B",
62
+ "pa-IN-Wavenet-C",
63
+ "pa-IN-Wavenet-D",
64
+ "cs-CZ-Wavenet-A",
65
+ "de-DE-Wavenet-F",
66
+ "de-DE-Wavenet-A",
67
+ "de-DE-Wavenet-B",
68
+ "de-DE-Wavenet-C",
69
+ "de-DE-Wavenet-D",
70
+ "de-DE-Wavenet-E",
71
+ "en-AU-Wavenet-A",
72
+ "en-AU-Wavenet-B",
73
+ "en-AU-Wavenet-C",
74
+ "en-AU-Wavenet-D",
75
+ "en-IN-Wavenet-D",
76
+ "en-IN-Wavenet-A",
77
+ "en-IN-Wavenet-B",
78
+ "en-IN-Wavenet-C",
79
+ "es-US-Wavenet-A",
80
+ "es-US-Wavenet-B",
81
+ "es-US-Wavenet-C",
82
+ "fr-FR-Wavenet-E",
83
+ "fr-FR-Wavenet-A",
84
+ "fr-FR-Wavenet-B",
85
+ "fr-FR-Wavenet-C",
86
+ "fr-FR-Wavenet-D",
87
+ "hi-IN-Wavenet-D",
88
+ "hi-IN-Wavenet-A",
89
+ "hi-IN-Wavenet-B",
90
+ "hi-IN-Wavenet-C",
91
+ "id-ID-Wavenet-D",
92
+ "id-ID-Wavenet-A",
93
+ "id-ID-Wavenet-B",
94
+ "id-ID-Wavenet-C",
95
+ "it-IT-Wavenet-A",
96
+ "it-IT-Wavenet-B",
97
+ "it-IT-Wavenet-C",
98
+ "it-IT-Wavenet-D",
99
+ "ko-KR-Wavenet-A",
100
+ "ko-KR-Wavenet-B",
101
+ "ko-KR-Wavenet-C",
102
+ "ko-KR-Wavenet-D",
103
+ "ru-RU-Wavenet-E",
104
+ "ru-RU-Wavenet-A",
105
+ "ru-RU-Wavenet-B",
106
+ "ru-RU-Wavenet-C",
107
+ "ru-RU-Wavenet-D",
108
+ "uk-UA-Wavenet-A",
109
+ "cmn-CN-Wavenet-A",
110
+ "cmn-CN-Wavenet-B",
111
+ "cmn-CN-Wavenet-C",
112
+ "cmn-CN-Wavenet-D",
113
+ "cmn-TW-Wavenet-A",
114
+ "cmn-TW-Wavenet-B",
115
+ "cmn-TW-Wavenet-C",
116
+ "da-DK-Wavenet-C",
117
+ "da-DK-Wavenet-D",
118
+ "da-DK-Wavenet-E",
119
+ "da-DK-Wavenet-A",
120
+ "el-GR-Wavenet-A",
121
+ "fil-PH-Wavenet-A",
122
+ "fil-PH-Wavenet-B",
123
+ "fil-PH-Wavenet-C",
124
+ "fil-PH-Wavenet-D",
125
+ "hu-HU-Wavenet-A",
126
+ "nb-NO-Wavenet-A",
127
+ "nb-NO-Wavenet-B",
128
+ "nb-NO-Wavenet-C",
129
+ "nb-NO-Wavenet-D",
130
+ "nb-no-Wavenet-E",
131
+ "nl-BE-Wavenet-A",
132
+ "nl-BE-Wavenet-B",
133
+ "nl-NL-Wavenet-B",
134
+ "nl-NL-Wavenet-C",
135
+ "nl-NL-Wavenet-D",
136
+ "nl-NL-Wavenet-A",
137
+ "nl-NL-Wavenet-E",
138
+ "pt-PT-Wavenet-A",
139
+ "pt-PT-Wavenet-B",
140
+ "pt-PT-Wavenet-C",
141
+ "pt-PT-Wavenet-D",
142
+ "sk-SK-Wavenet-A",
143
+ "vi-VN-Wavenet-A",
144
+ "vi-VN-Wavenet-B",
145
+ "vi-VN-Wavenet-C",
146
+ "vi-VN-Wavenet-D",
147
+ "pl-PL-Wavenet-A",
148
+ "pl-PL-Wavenet-B",
149
+ "pl-PL-Wavenet-C",
150
+ "pl-PL-Wavenet-E",
151
+ "pl-PL-Wavenet-D",
152
+ "pt-BR-Wavenet-A",
153
+ "pt-BR-Wavenet-B",
154
+ "ro-RO-Wavenet-A",
155
+ "da-DK-Standard-A",
156
+ "da-DK-Standard-C",
157
+ "da-DK-Standard-D",
158
+ "da-DK-Standard-E",
159
+ "fi-FI-Standard-A",
160
+ "is-is-Standard-A",
161
+ "nb-NO-Standard-A",
162
+ "nb-NO-Standard-B",
163
+ "nb-NO-Standard-C",
164
+ "nb-NO-Standard-D",
165
+ "nb-no-Standard-E",
166
+ "pt-PT-Standard-A",
167
+ "pt-PT-Standard-B",
168
+ "pt-PT-Standard-C",
169
+ "pt-PT-Standard-D",
170
+ "sv-SE-Standard-B",
171
+ "sv-SE-Standard-C",
172
+ "sv-SE-Standard-D",
173
+ "sv-SE-Standard-E",
174
+ "sv-SE-Standard-A",
175
+ "fr-FR-Standard-A",
176
+ "fr-FR-Standard-B",
177
+ "fr-FR-Standard-C",
178
+ "fr-FR-Standard-D",
179
+ "de-DE-Standard-E",
180
+ "de-DE-Standard-A",
181
+ "de-DE-Standard-B",
182
+ "de-DE-Standard-C",
183
+ "de-DE-Standard-D",
184
+ "de-DE-Standard-F",
185
+ "fr-CA-Standard-A",
186
+ "fr-CA-Standard-B",
187
+ "fr-CA-Standard-C",
188
+ "fr-CA-Standard-D",
189
+ "it-IT-Standard-B",
190
+ "it-IT-Standard-C",
191
+ "it-IT-Standard-D",
192
+ "en-AU-Standard-A",
193
+ "en-AU-Standard-B",
194
+ "en-AU-Standard-C",
195
+ "en-AU-Standard-D",
196
+ "en-GB-Standard-A",
197
+ "en-GB-Standard-B",
198
+ "en-GB-Standard-C",
199
+ "en-GB-Standard-D",
200
+ "en-GB-Standard-F",
201
+ "th-TH-Standard-A",
202
+ "bn-IN-Standard-A",
203
+ "bn-IN-Standard-B",
204
+ "en-IN-Standard-D",
205
+ "en-IN-Standard-A",
206
+ "en-IN-Standard-B",
207
+ "en-IN-Standard-C",
208
+ "gu-IN-Standard-A",
209
+ "gu-IN-Standard-B",
210
+ "hi-IN-Standard-D",
211
+ "hi-IN-Standard-A",
212
+ "hi-IN-Standard-B",
213
+ "hi-IN-Standard-C",
214
+ "kn-IN-Standard-A",
215
+ "kn-IN-Standard-B",
216
+ "ml-IN-Standard-A",
217
+ "ml-IN-Standard-B",
218
+ "ta-IN-Standard-A",
219
+ "ta-IN-Standard-B",
220
+ "te-IN-Standard-A",
221
+ "te-IN-Standard-B",
222
+ "pa-IN-Standard-A",
223
+ "pa-IN-Standard-B",
224
+ "pa-IN-Standard-C",
225
+ "pa-IN-Standard-D",
226
+ "af-ZA-Standard-A",
227
+ "bg-bg-Standard-A",
228
+ "hu-HU-Standard-A",
229
+ "lv-lv-Standard-A",
230
+ "ro-RO-Standard-A",
231
+ "sk-SK-Standard-A",
232
+ "sr-rs-Standard-A",
233
+ "uk-UA-Standard-A",
234
+ "pl-PL-Standard-A",
235
+ "pl-PL-Standard-B",
236
+ "pl-PL-Standard-C",
237
+ "pl-PL-Standard-E",
238
+ "pl-PL-Standard-D",
239
+ "tr-TR-Standard-B",
240
+ "tr-TR-Standard-C",
241
+ "tr-TR-Standard-D",
242
+ "tr-TR-Standard-E",
243
+ "tr-TR-Standard-A",
244
+ "cs-CZ-Standard-A",
245
+ "el-GR-Standard-A",
246
+ "pt-BR-Standard-A",
247
+ "pt-BR-Standard-B",
248
+ "es-US-Standard-A",
249
+ "es-US-Standard-B",
250
+ "es-US-Standard-C",
251
+ "ms-MY-Standard-A",
252
+ "ms-MY-Standard-B",
253
+ "ms-MY-Standard-C",
254
+ "ms-MY-Standard-D",
255
+ "id-ID-Standard-A",
256
+ "id-ID-Standard-B",
257
+ "id-ID-Standard-C",
258
+ "id-ID-Standard-D",
259
+ "nl-BE-Standard-A",
260
+ "nl-BE-Standard-B",
261
+ "nl-NL-Standard-B",
262
+ "nl-NL-Standard-C",
263
+ "nl-NL-Standard-D",
264
+ "nl-NL-Standard-A",
265
+ "nl-NL-Standard-E",
266
+ "fil-PH-Standard-A",
267
+ "fil-PH-Standard-B",
268
+ "fil-PH-Standard-C",
269
+ "fil-PH-Standard-D",
270
+ "yue-HK-Standard-A",
271
+ "yue-HK-Standard-B",
272
+ "yue-HK-Standard-C",
273
+ "yue-HK-Standard-D",
274
+ "cmn-CN-Standard-C",
275
+ "cmn-CN-Standard-B",
276
+ "cmn-CN-Standard-A",
277
+ "cmn-CN-Standard-D",
278
+ "ja-JP-Standard-A",
279
+ "ja-JP-Standard-B",
280
+ "ja-JP-Standard-C",
281
+ "ja-JP-Standard-D",
282
+ "cmn-TW-Standard-A",
283
+ "cmn-TW-Standard-B",
284
+ "cmn-TW-Standard-C",
285
+ "ko-KR-Standard-B",
286
+ "ko-KR-Standard-C",
287
+ "ko-KR-Standard-D",
288
+ "ko-KR-Standard-A",
289
+ "vi-VN-Standard-A",
290
+ "vi-VN-Standard-B",
291
+ "vi-VN-Standard-C",
292
+ "vi-VN-Standard-D",
293
+ "ar-XA-Standard-A",
294
+ "ar-XA-Standard-B",
295
+ "ar-XA-Standard-C",
296
+ "ar-XA-Standard-D",
297
+ "fr-FR-Standard-E",
298
+ "it-IT-Standard-A",
299
+ "ru-RU-Standard-E",
300
+ "ru-RU-Standard-A",
301
+ "ru-RU-Standard-B",
302
+ "ru-RU-Standard-C",
303
+ "ru-RU-Standard-D",
304
+ "en-US-Standard-A",
305
+ "en-US-Standard-B",
306
+ "en-US-Standard-C",
307
+ "en-US-Standard-D",
308
+ "en-US-Standard-E",
309
+ "en-US-Standard-F",
310
+ "en-US-Standard-G",
311
+ "en-US-Standard-H",
312
+ "en-US-Standard-I",
313
+ "en-US-Standard-J",
314
+ "ca-es-Standard-A",
315
+ "es-ES-Standard-C",
316
+ "es-ES-Standard-D",
317
+ "es-ES-Standard-B",
318
+ "es-ES-Standard-A"
319
+ ];
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Project Guard
3
+ *
4
+ * @description Guardian that is responsible for validating that a default project exists.
5
+ *
6
+ * @return {*} {MethodDecorator}
7
+ * @author Fonoster
8
+ */
9
+ export declare const ProjectGuard: () => MethodDecorator;
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ProjectGuard = void 0;
4
+ const errors_1 = require("@oclif/errors");
5
+ const config_1 = require("../config");
6
+ /**
7
+ * Project Guard
8
+ *
9
+ * @description Guardian that is responsible for validating that a default project exists.
10
+ *
11
+ * @return {*} {MethodDecorator}
12
+ * @author Fonoster
13
+ */
14
+ const ProjectGuard = function () {
15
+ return function (_target, _propertyKey, descriptor) {
16
+ const method = descriptor.value;
17
+ descriptor.value = async function (...args) {
18
+ if (!(0, config_1.hasProjectConfig)()) {
19
+ throw new errors_1.CLIError("you must set a default project before using this command");
20
+ }
21
+ return method.apply(this, args);
22
+ };
23
+ return descriptor;
24
+ };
25
+ };
26
+ exports.ProjectGuard = ProjectGuard;
package/dist/help.d.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import { Help } from "@oclif/plugin-help";
2
2
  export default class MyHelpClass extends Help {
3
- showHelp(args: string[]): void;
3
+ protected showRootHelp(): void;
4
+ private showLogo;
5
+ private get customCommands();
4
6
  }
package/dist/help.js CHANGED
@@ -3,22 +3,27 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const plugin_help_1 = require("@oclif/plugin-help");
4
4
  const figlet = require("figlet");
5
5
  class MyHelpClass extends plugin_help_1.Help {
6
- showHelp(args) {
7
- // Only shouw the figlet if user ask for help at the root
8
- // level.
9
- if (args.length === 0 ||
10
- (args.length === 1 &&
11
- (args[0].includes("help") || args[0].includes("-h")))) {
12
- console.log("\x1b[32m");
13
- console.log(figlet.textSync("Fonoster", {
14
- horizontalLayout: "default",
15
- verticalLayout: "default",
16
- width: 60,
17
- whitespaceBreak: true
18
- }));
19
- console.log("\x1b[0m");
20
- }
21
- //super.showHelp(args);
6
+ showRootHelp() {
7
+ this.showLogo();
8
+ console.log(this.formatRoot());
9
+ console.log("");
10
+ console.log(this.formatCommands(this.customCommands));
11
+ console.log("");
12
+ }
13
+ showLogo() {
14
+ console.log("\x1b[32m");
15
+ console.log(figlet.textSync("Fonoster", {
16
+ horizontalLayout: "default",
17
+ verticalLayout: "default",
18
+ width: 60,
19
+ whitespaceBreak: true
20
+ }));
21
+ console.log("\x1b[0m");
22
+ }
23
+ get customCommands() {
24
+ return this.sortedCommands
25
+ .filter((c) => c.id)
26
+ .sort((a, b) => (a.id.includes(":") ? 1 : b.id.includes(":") ? -1 : 0));
22
27
  }
23
28
  }
24
29
  exports.default = MyHelpClass;
@@ -1 +1 @@
1
- {"version":"0.3.3","commands":{"bug":{"id":"bug","description":"start a bug report 🐞\n ...\n Opens github issues with a predefine bug template\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"feedback":{"id":"feedback","description":"let us know how we're doing\n ...\n Help us improve by providing some feedback\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"agents:create":{"id":"agents:create","description":"create a new Fonoster Agent\n ...\n Create a new Fonoster Agent\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"agents:delete":{"id":"agents:delete","description":"delete a Fonoster Agent","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["agents:del","agents:rm"],"flags":{},"args":[{"name":"ref"}]},"agents:get":{"id":"agents:get","description":"get a Fonoster Agent","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"agents:list":{"id":"agents:list","description":"list all Fonoster Agents you have access to\n ...\n List all Fonoster Agents you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["agents:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"agent of result per page","default":25}},"args":[]},"agents:update":{"id":"agents:update","description":"update a Fonoster Agent\n ...\n Update a Fonoster Agent\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"auth:login":{"id":"auth:login","description":"log in to a Fonoster deployment","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"auth:logout":{"id":"auth:logout","description":"log out from a fonoster deployment","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"domains:create":{"id":"domains:create","description":"create a new Fonoster Domain\n ...\n Create a new Fonoster Domain\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"domains:delete":{"id":"domains:delete","description":"delete a Fonoster Domain","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["domains:del","domains:rm"],"flags":{},"args":[{"name":"ref"}]},"domains:get":{"id":"domains:get","description":"get a Fonoster Domain","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"domains:list":{"id":"domains:list","description":"list all Fonoster Domains you have access to\n ...\n List all Fonoster Domains you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["domains:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"domains:update":{"id":"domains:update","description":"update a Fonoster Domain\n ...\n Update a Fonoster Domain\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"numbers:create":{"id":"numbers:create","description":"create a new Fonoster Number\n ...\n Create a new Fonoster Number\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"numbers:delete":{"id":"numbers:delete","description":"delete a Fonoster Number","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["numbers:del","numbers:rm"],"flags":{},"args":[{"name":"ref"}]},"numbers:get":{"id":"numbers:get","description":"get a Fonoster Number","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"numbers:list":{"id":"numbers:list","description":"list all Fonoster Numbers you have access to\n ...\n List all Fonoster Numbers you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["numbers:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"numbers:update":{"id":"numbers:update","description":"update a Fonoster Number\n ...\n Update a Fonoster Number\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:create":{"id":"projects:create","description":"create a new Fonoster Project\n ...\n Create a new Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"projects:delete":{"id":"projects:delete","description":"delete a Fonoster Project","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["projects:del","projects:rm"],"flags":{},"args":[{"name":"ref"}]},"projects:get":{"id":"projects:get","description":"get a Fonoster Project","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:list":{"id":"projects:list","description":"list all Fonoster Projects you have access to\n ...\n List all Fonoster Projects you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["projects:ls"],"flags":{},"args":[]},"projects:renew":{"id":"projects:renew","description":"renew the credentials of a Fonoster Project\n ...\n Renew the credentials of a Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:use":{"id":"projects:use","description":"set a default Fonoster Project\n ...\n Set a default Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"providers:create":{"id":"providers:create","description":"create a new Fonoster Provider (trunk)\n ...\n Create a new Fonoster Provider\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"providers:delete":{"id":"providers:delete","description":"delete a Fonoster Provider","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["providers:del","providers:rm"],"flags":{},"args":[{"name":"ref"}]},"providers:get":{"id":"providers:get","description":"get a Fonoster Provider","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"providers:list":{"id":"providers:list","description":"list all Fonoster Providers you have access to\n ...\n List all Fonoster Providers you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["providers:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"provider of result per page","default":25}},"args":[]},"providers:update":{"id":"providers:update","description":"update a Fonoster Provider\n ...\n Update a Fonoster Provider\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]}}}
1
+ {"version":"0.3.6-alpha.0","commands":{"bug":{"id":"bug","description":"start a bug report 🐞\n ...\n Opens github issues with a predefine bug template\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"feedback":{"id":"feedback","description":"let us know how we're doing\n ...\n Help us improve by providing some feedback\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"agents:create":{"id":"agents:create","description":"create a new Fonoster Agent\n ...\n Create a new Fonoster Agent\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"agents:delete":{"id":"agents:delete","description":"delete a Fonoster Agent","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["agents:del","agents:rm"],"flags":{},"args":[{"name":"ref"}]},"agents:get":{"id":"agents:get","description":"get a Fonoster Agent","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"agents:list":{"id":"agents:list","description":"list all Fonoster Agents you have access to\n ...\n List all Fonoster Agents you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["agents:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"agent of result per page","default":25}},"args":[]},"agents:update":{"id":"agents:update","description":"update a Fonoster Agent\n ...\n Update a Fonoster Agent\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"apps:create":{"id":"apps:create","description":"create a new Fonoster App\n ...\n Create a new Fonoster App\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"apps:delete":{"id":"apps:delete","description":"delete a Fonoster Application","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["apps:del","apps:rm"],"flags":{},"args":[{"name":"ref"}]},"apps:list":{"id":"apps:list","description":"list all Fonoster Apps you have access to\n ...\n List all Fonoster Apps you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["apps:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"apps:update":{"id":"apps:update","description":"update a new Fonoster App\n ...\n Update a new Fonoster App\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"auth:login":{"id":"auth:login","description":"log in to a Fonoster deployment","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"auth:logout":{"id":"auth:logout","description":"log out from a fonoster deployment","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"domains:create":{"id":"domains:create","description":"create a new Fonoster Domain\n ...\n Create a new Fonoster Domain\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"domains:delete":{"id":"domains:delete","description":"delete a Fonoster Domain","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["domains:del","domains:rm"],"flags":{},"args":[{"name":"ref"}]},"domains:get":{"id":"domains:get","description":"get a Fonoster Domain","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"domains:list":{"id":"domains:list","description":"list all Fonoster Domains you have access to\n ...\n List all Fonoster Domains you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["domains:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"domains:update":{"id":"domains:update","description":"update a Fonoster Domain\n ...\n Update a Fonoster Domain\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"numbers:create":{"id":"numbers:create","description":"create a new Fonoster Number\n ...\n Create a new Fonoster Number\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"numbers:delete":{"id":"numbers:delete","description":"delete a Fonoster Number","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["numbers:del","numbers:rm"],"flags":{},"args":[{"name":"ref"}]},"numbers:get":{"id":"numbers:get","description":"get a Fonoster Number","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"numbers:list":{"id":"numbers:list","description":"list all Fonoster Numbers you have access to\n ...\n List all Fonoster Numbers you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["numbers:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"number of result per page","default":25}},"args":[]},"numbers:update":{"id":"numbers:update","description":"update a Fonoster Number\n ...\n Update a Fonoster Number\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:create":{"id":"projects:create","description":"create a new Fonoster Project\n ...\n Create a new Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"projects:delete":{"id":"projects:delete","description":"delete a Fonoster Project","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["projects:del","projects:rm"],"flags":{},"args":[{"name":"ref"}]},"projects:get":{"id":"projects:get","description":"get a Fonoster Project","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:list":{"id":"projects:list","description":"list all Fonoster Projects you have access to\n ...\n List all Fonoster Projects you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["projects:ls"],"flags":{},"args":[]},"projects:renew":{"id":"projects:renew","description":"renew the credentials of a Fonoster Project\n ...\n Renew the credentials of a Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"projects:use":{"id":"projects:use","description":"set a default Fonoster Project\n ...\n Set a default Fonoster Project\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"providers:create":{"id":"providers:create","description":"create a new Fonoster Provider (trunk)\n ...\n Create a new Fonoster Provider\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[]},"providers:delete":{"id":"providers:delete","description":"delete a Fonoster Provider","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["providers:del","providers:rm"],"flags":{},"args":[{"name":"ref"}]},"providers:get":{"id":"providers:get","description":"get a Fonoster Provider","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"providers:list":{"id":"providers:list","description":"list all Fonoster Providers you have access to\n ...\n List all Fonoster Providers you have access to\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["providers:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"provider of result per page","default":25}},"args":[]},"providers:update":{"id":"providers:update","description":"update a Fonoster Provider\n ...\n Update a Fonoster Provider\n ","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"ref"}]},"secrets:create":{"id":"secrets:create","description":"create a Fonoster secret.","pluginName":"@fonoster/ctl","pluginType":"core","aliases":[],"flags":{"help":{"name":"help","type":"boolean","char":"h","description":"show CLI help","allowNo":false},"from-literal":{"name":"from-literal","type":"option","char":"l","description":"pass from literal"},"from-stdin":{"name":"from-stdin","type":"boolean","char":"s","description":"pass from stdin","allowNo":false}},"args":[{"name":"name"}]},"secrets:delete":{"id":"secrets:delete","description":"remove Fonoster secret","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["secrets:del","secrets:rm"],"flags":{},"args":[{"name":"name"}]},"secrets:list":{"id":"secrets:list","description":"list of the secrets you have access to","pluginName":"@fonoster/ctl","pluginType":"core","aliases":["secrets:ls"],"flags":{"size":{"name":"size","type":"option","char":"s","description":"secrets of result per page","default":25}},"args":[]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fonoster/ctl",
3
- "version": "0.3.3",
3
+ "version": "0.3.6-alpha.0",
4
4
  "description": "Command-Line for Fonoster",
5
5
  "author": "Pedro Sanders <psanders@fonoster.com>",
6
6
  "homepage": "https://github.com/fonoster/fonoster#readme",
@@ -33,36 +33,18 @@
33
33
  ],
34
34
  "oclif": {
35
35
  "commands": "./dist/commands",
36
+ "helpClass": "./dist/help",
36
37
  "bin": "fonoster",
37
38
  "plugins": [
38
39
  "@oclif/plugin-help",
39
40
  "@oclif/plugin-plugins",
40
41
  "@oclif/plugin-not-found",
41
- "@oclif/plugin-warn-if-update-available"
42
+ "@fonoster/plugin-warn-if-update-available"
42
43
  ],
43
44
  "warn-if-update-available": {
44
45
  "timeoutInDays": 1,
45
- "message": "<%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."
46
- },
47
- "topics": {
48
- "domains": {
49
- "description": "manage Domains"
50
- },
51
- "agents": {
52
- "description": "manage Agents"
53
- },
54
- "numbers": {
55
- "description": "manage Numbers"
56
- },
57
- "providers": {
58
- "description": "manage Providers"
59
- },
60
- "auth": {
61
- "description": "manage User credentials"
62
- },
63
- "projects": {
64
- "description": "manage Projects"
65
- }
46
+ "nagTimeoutInDays": 1,
47
+ "message": "\n <%= config.name %> update available from <%= chalk.greenBright(config.version) %> to <%= chalk.greenBright(latest) %>."
66
48
  }
67
49
  },
68
50
  "publishConfig": {
@@ -76,29 +58,35 @@
76
58
  "url": "https://github.com/fonoster/fonoster/issues"
77
59
  },
78
60
  "dependencies": {
79
- "@fonoster/agents": "^0.3.3",
80
- "@fonoster/domains": "^0.3.3",
81
- "@fonoster/logger": "^0.3.3",
82
- "@fonoster/numbers": "^0.3.3",
83
- "@fonoster/projects": "^0.3.3",
84
- "@fonoster/providers": "^0.3.3",
61
+ "@fonoster/agents": "^0.3.6-alpha.0",
62
+ "@fonoster/apps": "^0.3.6-alpha.0",
63
+ "@fonoster/domains": "^0.3.6-alpha.0",
64
+ "@fonoster/logger": "^0.3.6-alpha.0",
65
+ "@fonoster/numbers": "^0.3.6-alpha.0",
66
+ "@fonoster/plugin-warn-if-update-available": "github:fonoster/plugin-warn-if-update-available",
67
+ "@fonoster/projects": "^0.3.6-alpha.0",
68
+ "@fonoster/providers": "^0.3.6-alpha.0",
69
+ "@fonoster/secrets": "^0.2.44",
85
70
  "@oclif/command": "^1.8.0",
86
71
  "@oclif/config": "^1.17.0",
87
72
  "@oclif/errors": "^1.3.4",
88
73
  "@oclif/plugin-help": "^3.2.2",
89
- "@oclif/plugin-not-found": "1.2.4",
74
+ "@oclif/plugin-not-found": "^2.3.1",
90
75
  "@oclif/plugin-plugins": "^1.10.0",
91
- "@oclif/plugin-warn-if-update-available": "^1.7.0",
92
76
  "cli-ux": "5.5.1",
93
77
  "dockerode": "^3.3.0",
78
+ "easy-table": "^1.2.0",
94
79
  "figlet": "^1.5.0",
80
+ "get-stdin": "^9.0.0",
81
+ "get-stdin-with-tty": "^6.0.0",
95
82
  "inquirer": "^7.3.3",
96
83
  "moment": "^2.29.1",
97
84
  "phone": "^2.4.21",
98
85
  "prettyjson": "^1.2.1",
99
86
  "promise-fs": "^2.1.1",
100
87
  "truncate": "^2.1.0",
101
- "update-notifier": "^5.1.0"
88
+ "update-notifier": "^5.1.0",
89
+ "winston": "^3.6.0"
102
90
  },
103
91
  "devDependencies": {
104
92
  "@types/dockerode": "^3.2.2",
@@ -106,5 +94,5 @@
106
94
  "@types/prettyjson": "0.0.29",
107
95
  "rimraf": "^3.0.2"
108
96
  },
109
- "gitHead": "cfba6d55b5dc17f1e6d30b6d6d5ad771433d00a4"
97
+ "gitHead": "d8e32c94fde2ac0e211172dbe343146af5fde7f5"
110
98
  }