@velaro/cli 1.4.148 → 1.4.150
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/lib/commands/product.js +1 -1
- package/lib/commands/teams.js +9 -1
- package/package.json +1 -1
package/lib/commands/product.js
CHANGED
|
@@ -31,7 +31,7 @@ const syncStatusCommand = {
|
|
|
31
31
|
for (const p of data.platforms) {
|
|
32
32
|
const name = p.platform.charAt(0).toUpperCase() + p.platform.slice(1);
|
|
33
33
|
if (!p.ingestionAvailable) {
|
|
34
|
-
console.log(` ${name.padEnd(14)} \x1b[90mno
|
|
34
|
+
console.log(` ${name.padEnd(14)} \x1b[90mno scheduled ingestion — always live lookup\x1b[0m`);
|
|
35
35
|
continue;
|
|
36
36
|
}
|
|
37
37
|
const configured = p.configured === null ? '' : p.configured ? '\x1b[32mconnected\x1b[0m' : '\x1b[90mnot connected\x1b[0m';
|
package/lib/commands/teams.js
CHANGED
|
@@ -167,7 +167,11 @@ export const teamsCommand = {
|
|
|
167
167
|
.option('ticket-assigned', { type: 'boolean', describe: 'Ticket assigned alerts on/off' })
|
|
168
168
|
.option('daily-digest', { type: 'boolean', describe: 'Daily digest on/off' })
|
|
169
169
|
.option('daily-cap', { type: 'number', describe: 'Max alerts per day for this account' })
|
|
170
|
-
.option('reset-daily-cap', { type: 'boolean', describe: 'Clear the account cap and use the platform default' })
|
|
170
|
+
.option('reset-daily-cap', { type: 'boolean', describe: 'Clear the account cap and use the platform default' })
|
|
171
|
+
.option('status-every', { type: 'number', describe: 'Post a status into the channel every N minutes (5-1440; plan limits apply)' })
|
|
172
|
+
.option('status-off', { type: 'boolean', describe: 'Stop the scheduled status posts' })
|
|
173
|
+
.option('status-when-queue', { type: 'number', describe: 'Post a status as soon as this many chats are waiting (0 = no limit)' })
|
|
174
|
+
.option('status-when-wait', { type: 'number', describe: 'Post a status as soon as the longest wait reaches this many minutes (0 = no limit)' }),
|
|
171
175
|
async (argv) => {
|
|
172
176
|
const body = {};
|
|
173
177
|
if (argv.newChat !== undefined) body.pushNewChat = argv.newChat;
|
|
@@ -177,6 +181,10 @@ export const teamsCommand = {
|
|
|
177
181
|
if (argv.dailyDigest !== undefined) body.pushDailyDigest = argv.dailyDigest;
|
|
178
182
|
if (argv.dailyCap !== undefined) body.dailyPushCap = argv.dailyCap;
|
|
179
183
|
if (argv.resetDailyCap) body.resetDailyPushCap = true;
|
|
184
|
+
if (argv.statusEvery !== undefined) body.statusPostMinutes = argv.statusEvery;
|
|
185
|
+
if (argv.statusOff) body.clearStatusPost = true;
|
|
186
|
+
if (argv.statusWhenQueue !== undefined) body.statusAlertQueue = argv.statusWhenQueue;
|
|
187
|
+
if (argv.statusWhenWait !== undefined) body.statusAlertWaitMinutes = argv.statusWhenWait;
|
|
180
188
|
const result = Object.keys(body).length
|
|
181
189
|
? await request('PUT', '/TeamsBot/PushSettings', body)
|
|
182
190
|
: await request('GET', '/TeamsBot/PushSettings');
|
package/package.json
CHANGED