👕 Fix lint issue

This commit is contained in:
Jan Oberhauser
2020-10-22 15:46:03 +02:00
parent 5b7efd67ca
commit 40c2acd77b
491 changed files with 4045 additions and 3936 deletions

View File

@@ -31,7 +31,7 @@ export async function wordpressApiRequest(this: IExecuteFunctions | IExecuteSing
qs,
body,
uri: uri || `${credentials!.url}/wp-json/wp/v2${resource}`,
json: true
json: true,
};
options = Object.assign({}, options, option);
if (Object.keys(options.body).length === 0) {

View File

@@ -62,7 +62,7 @@ export const postFields = [
],
operation: [
'create',
]
],
},
},
description: 'The title for the post',
@@ -257,7 +257,7 @@ export const postFields = [
default: [],
description: 'The terms assigned to the object in the post_tag taxonomy.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* post:update */
@@ -275,7 +275,7 @@ export const postFields = [
],
operation: [
'update',
]
],
},
},
description: 'Unique identifier for the object.',
@@ -477,7 +477,7 @@ export const postFields = [
default: [],
description: 'The terms assigned to the object in the post_tag taxonomy.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* post:get */
@@ -495,7 +495,7 @@ export const postFields = [
],
operation: [
'get',
]
],
},
},
description: 'Unique identifier for the object.',
@@ -545,7 +545,7 @@ export const postFields = [
default: 'view',
description: 'Scope under which the request is made; determines fields present in response.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* post:getAll */
@@ -774,7 +774,7 @@ export const postFields = [
description: 'Limit result set to items that are sticky.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* post:delete */
@@ -792,7 +792,7 @@ export const postFields = [
],
operation: [
'delete',
]
],
},
},
description: 'Unique identifier for the object.',
@@ -821,6 +821,6 @@ export const postFields = [
default: false,
description: 'Whether to bypass trash and force deletion.',
},
]
],
},
] as INodeProperties[];

View File

@@ -62,7 +62,7 @@ export const userFields = [
],
operation: [
'create',
]
],
},
},
description: 'Login name for the user.',
@@ -80,7 +80,7 @@ export const userFields = [
],
operation: [
'create',
]
],
},
},
description: 'Display name for the user.',
@@ -98,7 +98,7 @@ export const userFields = [
],
operation: [
'create',
]
],
},
},
description: 'First name for the user.',
@@ -116,7 +116,7 @@ export const userFields = [
],
operation: [
'create',
]
],
},
},
description: 'Last name for the user.',
@@ -134,7 +134,7 @@ export const userFields = [
],
operation: [
'create',
]
],
},
},
description: 'The email address for the user.',
@@ -152,7 +152,7 @@ export const userFields = [
],
operation: [
'create',
]
],
},
},
description: 'Password for the user (never included)',
@@ -205,7 +205,7 @@ export const userFields = [
default: '',
description: 'An alphanumeric identifier for the user.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* user:update */
@@ -223,7 +223,7 @@ export const userFields = [
],
operation: [
'update',
]
],
},
},
description: 'Unique identifier for the user.',
@@ -318,7 +318,7 @@ export const userFields = [
default: '',
description: 'An alphanumeric identifier for the user.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* user:get */
@@ -336,7 +336,7 @@ export const userFields = [
],
operation: [
'get',
]
],
},
},
description: 'Unique identifier for the user.',
@@ -379,7 +379,7 @@ export const userFields = [
default: 'view',
description: 'Scope under which the request is made; determines fields present in response.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* user:getAll */
@@ -541,7 +541,7 @@ export const userFields = [
default: 'authors',
description: 'Limit result set to users who are considered authors.',
},
]
],
},
/* -------------------------------------------------------------------------- */
/* user:delete */
@@ -559,7 +559,7 @@ export const userFields = [
],
operation: [
'delete',
]
],
},
},
description: `Reassign the deleted user's posts and links to this user ID.`,