mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
✨ Add Organization resource to Zendesk node (#2152)
* Added Organization options. Create, Update, Get, GetAll, Delete, Count and Related * Fixed Zendesk Node user alias typo * Updated Zendesk documentation links for future maintainers * Added Related for Users in Zendesk Node * Added fetching organizations for users * 🔨 Refactor Zendesk expansion * ⚡ Improvements Co-authored-by: Jonathan <jonathan.bennetts@gmail.com> Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
@@ -35,6 +35,16 @@ export const userOperations = [
|
||||
value: 'getAll',
|
||||
description: 'Get all users',
|
||||
},
|
||||
{
|
||||
name: 'Get Organizations',
|
||||
value: 'getOrganizations',
|
||||
description: 'Get a user\'s organizations',
|
||||
},
|
||||
{
|
||||
name: 'Get Related Data',
|
||||
value: 'getRelatedData',
|
||||
description: 'Get data related to the user',
|
||||
},
|
||||
{
|
||||
name: 'Search',
|
||||
value: 'search',
|
||||
@@ -47,7 +57,6 @@ export const userOperations = [
|
||||
},
|
||||
],
|
||||
default: 'create',
|
||||
description: 'The operation to perform.',
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
@@ -93,7 +102,7 @@ export const userFields = [
|
||||
options: [
|
||||
{
|
||||
displayName: 'Alias',
|
||||
name: 'alis',
|
||||
name: 'alias',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `An alias displayed to end users`,
|
||||
@@ -159,9 +168,12 @@ export const userFields = [
|
||||
},
|
||||
{
|
||||
displayName: 'Organization ID',
|
||||
name: 'organizationId',
|
||||
type: 'number',
|
||||
default: 0,
|
||||
name: 'organization_id',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getOrganizations',
|
||||
},
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: `The id of the user's organization. If the user has more than one organization memberships, the id of the user's default organization`,
|
||||
},
|
||||
{
|
||||
@@ -347,7 +359,7 @@ export const userFields = [
|
||||
options: [
|
||||
{
|
||||
displayName: 'Alias',
|
||||
name: 'alis',
|
||||
name: 'alias',
|
||||
type: 'string',
|
||||
default: '',
|
||||
description: `An alias displayed to end users`,
|
||||
@@ -420,9 +432,12 @@ export const userFields = [
|
||||
},
|
||||
{
|
||||
displayName: 'Organization ID',
|
||||
name: 'organizationId',
|
||||
type: 'number',
|
||||
default: 0,
|
||||
name: 'organization_id',
|
||||
typeOptions: {
|
||||
loadOptionsMethod: 'getOrganizations',
|
||||
},
|
||||
type: 'options',
|
||||
default: '',
|
||||
description: `The id of the user's organization. If the user has more than one organization memberships, the id of the user's default organization`,
|
||||
},
|
||||
{
|
||||
@@ -768,4 +783,44 @@ export const userFields = [
|
||||
},
|
||||
description: 'User ID',
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* user:getRelatedData */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User ID',
|
||||
name: 'id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'getRelatedData',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
/* -------------------------------------------------------------------------- */
|
||||
/* user:getOrganizations */
|
||||
/* -------------------------------------------------------------------------- */
|
||||
{
|
||||
displayName: 'User ID',
|
||||
name: 'id',
|
||||
type: 'string',
|
||||
default: '',
|
||||
required: true,
|
||||
displayOptions: {
|
||||
show: {
|
||||
resource: [
|
||||
'user',
|
||||
],
|
||||
operation: [
|
||||
'getOrganizations',
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
] as INodeProperties[];
|
||||
|
||||
Reference in New Issue
Block a user