Allow different `parameterType` and `direction` values

Currently `parameterType` and `direction` are hardcoded as `'Required'` and `'Input'`, respectively. I set those as the default values for the keyword parameters, but the function will now accept alternate values. @knu2xs