* ✏️ Alphabetize rules * 🔖 Update version * ⚡ Update lintfix command * ⚡ Run baseline lintfix * 📦 Update package-lock.json * 👕 Apply `node-param-description-untrimmed` (#3200) * Removing unneeded backticks (#3249) * 👕 Apply node-param-description-wrong-for-return-all (#3253) * 👕 Apply node-param-description-missing-limit (#3252) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-excess-final-period (#3250) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-unencoded-angle-brackets (#3256) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-url-missing-protocol (#3258) * 👕 Apply `node-param-description-miscased-id` (#3254) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-limit (#3257) Co-authored-by: Iván Ovejero <ivov.src@gmail.com> * 👕 Apply node-param-description-wrong-for-ignore-ssl-issues (#3261) * 👕 Apply rule * ⚡ Restore lintfix script * ⚡ Restore lintfix script Co-authored-by: agobrech <45268029+agobrech@users.noreply.github.com> Co-authored-by: Omar Ajoue <krynble@gmail.com> Co-authored-by: Michael Kret <88898367+michael-radency@users.noreply.github.com>
271 lines
5.0 KiB
TypeScript
271 lines
5.0 KiB
TypeScript
import {
|
|
UserProperties,
|
|
} from '../../Interfaces';
|
|
|
|
export const userCreateDescription: UserProperties = [
|
|
{
|
|
displayName: 'Username',
|
|
name: 'username',
|
|
type: 'string',
|
|
required: true,
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'user',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Auth Service',
|
|
name: 'authService',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'Email',
|
|
value: 'email',
|
|
},
|
|
{
|
|
name: 'Gitlab',
|
|
value: 'gitlab',
|
|
},
|
|
{
|
|
name: 'Google',
|
|
value: 'google',
|
|
},
|
|
{
|
|
name: 'LDAP',
|
|
value: 'ldap',
|
|
},
|
|
{
|
|
name: 'Office365',
|
|
value: 'office365',
|
|
},
|
|
{
|
|
name: 'SAML',
|
|
value: 'saml',
|
|
},
|
|
],
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'user',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Auth Data',
|
|
name: 'authData',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'user',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
},
|
|
hide: {
|
|
authService: [
|
|
'email',
|
|
],
|
|
},
|
|
},
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Email',
|
|
name: 'email',
|
|
type: 'string',
|
|
default: '',
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'user',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
authService: [
|
|
'email',
|
|
],
|
|
},
|
|
},
|
|
},
|
|
{
|
|
displayName: 'Password',
|
|
name: 'password',
|
|
type: 'string',
|
|
typeOptions: {
|
|
password: true,
|
|
},
|
|
displayOptions: {
|
|
show: {
|
|
resource: [
|
|
'user',
|
|
],
|
|
operation: [
|
|
'create',
|
|
],
|
|
authService: [
|
|
'email',
|
|
],
|
|
},
|
|
},
|
|
default: '',
|
|
description: 'The password used for email authentication',
|
|
},
|
|
{
|
|
displayName: 'Additional Fields',
|
|
name: 'additionalFields',
|
|
type: 'collection',
|
|
placeholder: 'Add Field',
|
|
displayOptions: {
|
|
show: {
|
|
operation: [
|
|
'create',
|
|
],
|
|
resource: [
|
|
'user',
|
|
],
|
|
},
|
|
},
|
|
default: {},
|
|
options: [
|
|
{
|
|
displayName: 'First Name',
|
|
name: 'first_name',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Last Name',
|
|
name: 'last_name',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Locale',
|
|
name: 'locale',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Nickname',
|
|
name: 'nickname',
|
|
type: 'string',
|
|
default: '',
|
|
},
|
|
{
|
|
displayName: 'Notification Settings',
|
|
name: 'notificationUi',
|
|
type: 'fixedCollection',
|
|
placeholder: 'Add Notification Setting',
|
|
default: {},
|
|
typeOptions: {
|
|
multipleValues: false,
|
|
},
|
|
options: [
|
|
{
|
|
displayName: 'Notify',
|
|
name: 'notificationValues',
|
|
values: [
|
|
{
|
|
displayName: 'Channel',
|
|
name: 'channel',
|
|
type: 'boolean',
|
|
default: true,
|
|
description: 'Set to "true" to enable channel-wide notifications (@channel, @all, etc.), "false" to disable. Defaults to "true".',
|
|
},
|
|
{
|
|
displayName: 'Desktop',
|
|
name: 'desktop',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'All',
|
|
value: 'all',
|
|
description: 'Notifications for all activity',
|
|
},
|
|
{
|
|
name: 'Mention',
|
|
value: 'mention',
|
|
description: 'Mentions and direct messages only',
|
|
},
|
|
{
|
|
name: 'None',
|
|
value: 'none',
|
|
description: 'Mentions and direct messages only',
|
|
},
|
|
],
|
|
default: 'all',
|
|
},
|
|
{
|
|
displayName: 'Desktop Sound',
|
|
name: 'desktop_sound',
|
|
type: 'boolean',
|
|
default: true,
|
|
description: 'Set to "true" to enable sound on desktop notifications, "false" to disable. Defaults to "true".',
|
|
},
|
|
{
|
|
displayName: 'Email',
|
|
name: 'email',
|
|
type: 'boolean',
|
|
default: false,
|
|
description: 'Set to "true" to enable email notifications, "false" to disable. Defaults to "true".',
|
|
},
|
|
{
|
|
displayName: 'First Name',
|
|
name: 'first_name',
|
|
type: 'boolean',
|
|
default: false,
|
|
description: 'Set to "true" to enable mentions for first name. Defaults to "true" if a first name is set, "false" otherwise.',
|
|
},
|
|
{
|
|
displayName: 'Mention Keys',
|
|
name: 'mention_keys',
|
|
type: 'string',
|
|
default: '',
|
|
description: 'A comma-separated list of words to count as mentions. Defaults to username and @username.',
|
|
},
|
|
{
|
|
displayName: 'Push',
|
|
name: 'push',
|
|
type: 'options',
|
|
options: [
|
|
{
|
|
name: 'All',
|
|
value: 'all',
|
|
description: 'Notifications for all activity',
|
|
},
|
|
{
|
|
name: 'Mention',
|
|
value: 'mention',
|
|
description: 'Mentions and direct messages only',
|
|
},
|
|
{
|
|
name: 'None',
|
|
value: 'none',
|
|
description: 'Mentions and direct messages only',
|
|
},
|
|
],
|
|
default: 'mention',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
];
|