Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
description:
'A URL that Twilio will request if an error occurs requesting or executing the TwiML defined by VoiceUrl.'
}),
'voice-fallback-method': flags.enum({
options: ['GET', 'POST'],
description: 'The HTTP method Twilio will use when requesting the VoiceFallbackUrl.'
})
};
NumberUpdate.UrlFlags = ['smsUrl', 'smsFallbackUrl', 'voiceUrl', 'voiceFallbackUrl'];
NumberUpdate.flags = Object.assign(
{},
NumberUpdate.PropertyFlags,
TwilioClientCommand.flags,
TwilioClientCommand.accountSidFlag
);
NumberUpdate.args = [
{
name: 'phone-number',
required: true,
description: 'The SID or E.164 formatted phone number you wish to update.'
}
];
module.exports = NumberUpdate;
this.output(fullData, this.flags.properties);
}
}
NumberList.description = 'show what Twilio phone numbers you have configured';
NumberList.flags = Object.assign(
{
properties: flags.string({
default: 'sid, phoneNumber, friendlyName',
description:
'The incomingPhoneNumber object properties you would like to display (JSON output always shows all properties).'
})
},
TwilioClientCommand.flags,
TwilioClientCommand.accountSidFlag
);
module.exports = NumberList;