mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
refactor: Lint for no unneeded backticks (#5057) (no-changelog)
* ✨ Create rule `no-unneeded-backticks` * 👕 Enable rule * ⚡ Run rule on `cli` * ⚡ Run rule on `core` * ⚡ Run rule on `workflow` * ⚡ Rule rule on `design-system` * ⚡ Run rule on `node-dev` * ⚡ Run rule on `editor-ui` * ⚡ Run rule on `nodes-base`
This commit is contained in:
@@ -137,92 +137,88 @@ export const triggerPlaceholders = [
|
||||
description: "Requester's organization",
|
||||
},
|
||||
{
|
||||
name: `Ticket's Organization External ID`,
|
||||
name: "Ticket's Organization External ID",
|
||||
value: 'ticket.organization.external_id',
|
||||
description: "Ticket's organization external ID",
|
||||
},
|
||||
{
|
||||
name: `Organization details`,
|
||||
name: 'Organization Details',
|
||||
value: 'ticket.organization.details',
|
||||
description: "The details about the organization of the ticket's requester",
|
||||
},
|
||||
{
|
||||
name: `Organization Note`,
|
||||
name: 'Organization Note',
|
||||
value: 'ticket.organization.notes',
|
||||
description: "The notes about the organization of the ticket's requester",
|
||||
},
|
||||
{
|
||||
name: `Ticket's CCs`,
|
||||
name: "Ticket's CCs",
|
||||
value: 'ticket.ccs',
|
||||
description: "Ticket's CCs",
|
||||
},
|
||||
{
|
||||
name: `Ticket's CCs names`,
|
||||
name: "Ticket's CCs Names",
|
||||
value: 'ticket.cc_names',
|
||||
description: "Ticket's CCs names",
|
||||
},
|
||||
{
|
||||
name: `Ticket's tags`,
|
||||
name: "Ticket's Tags",
|
||||
value: 'ticket.tags',
|
||||
description: "Ticket's tags",
|
||||
},
|
||||
{
|
||||
name: `Current Holiday Name`,
|
||||
name: 'Current Holiday Name',
|
||||
value: 'ticket.current_holiday_name',
|
||||
description: "Displays the name of the current holiday on the ticket's schedule",
|
||||
},
|
||||
{
|
||||
name: `Current User Name `,
|
||||
name: 'Current User Name',
|
||||
value: 'current_user.name',
|
||||
description: 'Your full name',
|
||||
},
|
||||
{
|
||||
name: `Current User First Name `,
|
||||
name: 'Current User First Name',
|
||||
value: 'current_user.first_name',
|
||||
description: 'Your first name',
|
||||
},
|
||||
{
|
||||
name: `Current User Email `,
|
||||
name: 'Current User Email',
|
||||
value: 'current_user.email',
|
||||
description: 'Your primary email',
|
||||
},
|
||||
{
|
||||
name: `Current User Organization Name `,
|
||||
name: 'Current User Organization Name',
|
||||
value: 'current_user.organization.name',
|
||||
description: 'Your default organization',
|
||||
},
|
||||
{
|
||||
name: `Current User Organization Details `,
|
||||
name: 'Current User Organization Details',
|
||||
value: 'current_user.organization.details',
|
||||
description: "Your default organization's details",
|
||||
},
|
||||
{
|
||||
name: `Current User Organization Notes `,
|
||||
name: 'Current User Organization Notes',
|
||||
value: 'current_user.organization.notes',
|
||||
description: "Your default organization's note",
|
||||
},
|
||||
{
|
||||
name: `Current User Language `,
|
||||
name: 'Current User Language',
|
||||
value: 'current_user.language',
|
||||
description: 'Your chosen language',
|
||||
},
|
||||
{
|
||||
name: `Current User External ID `,
|
||||
name: 'Current User External ID',
|
||||
value: 'current_user.external_id',
|
||||
description: 'Your external ID',
|
||||
},
|
||||
{
|
||||
name: `Current User Notes `,
|
||||
name: 'Current User Notes',
|
||||
value: 'current_user.notes',
|
||||
description: 'Your notes, stored in your profile',
|
||||
},
|
||||
{
|
||||
name: `Satisfation Current Rating `,
|
||||
name: 'Satisfation Current Rating',
|
||||
value: 'satisfaction.current_rating',
|
||||
description: 'The text of the current satisfaction rating',
|
||||
},
|
||||
{
|
||||
name: `Satisfation Current Comment `,
|
||||
name: 'Satisfation Current Comment',
|
||||
value: 'satisfaction.current_comment',
|
||||
description: 'The text of the current satisfaction rating comment',
|
||||
},
|
||||
|
||||
@@ -247,7 +247,7 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'organizations',
|
||||
'GET',
|
||||
`/organizations`,
|
||||
'/organizations',
|
||||
{},
|
||||
{},
|
||||
);
|
||||
@@ -438,7 +438,7 @@ export class Zendesk implements INodeType {
|
||||
if (options.sortOrder) {
|
||||
qs.sort_order = options.sortOrder;
|
||||
}
|
||||
const endpoint = ticketType === 'regular' ? `/search` : `/suspended_tickets`;
|
||||
const endpoint = ticketType === 'regular' ? '/search' : '/suspended_tickets';
|
||||
const property = ticketType === 'regular' ? 'results' : 'suspended_tickets';
|
||||
if (returnAll) {
|
||||
responseData = await zendeskApiRequestAllItems.call(
|
||||
@@ -595,14 +595,14 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'users',
|
||||
'GET',
|
||||
`/users`,
|
||||
'/users',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
qs.per_page = limit;
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/users`, {}, qs);
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/users', {}, qs);
|
||||
responseData = responseData.users;
|
||||
}
|
||||
}
|
||||
@@ -629,14 +629,14 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'users',
|
||||
'GET',
|
||||
`/users/search`,
|
||||
'/users/search',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
qs.per_page = limit;
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/users/search`, {}, qs);
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/users/search', {}, qs);
|
||||
responseData = responseData.users;
|
||||
}
|
||||
}
|
||||
@@ -705,7 +705,7 @@ export class Zendesk implements INodeType {
|
||||
}
|
||||
//https://developer.zendesk.com/api-reference/ticketing/organizations/organizations/#count-organizations
|
||||
if (operation === 'count') {
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/organizations/count`, {});
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/organizations/count', {});
|
||||
responseData = responseData.count;
|
||||
}
|
||||
//https://developer.zendesk.com/api-reference/ticketing/organizations/organizations/#show-organization
|
||||
@@ -728,14 +728,14 @@ export class Zendesk implements INodeType {
|
||||
this,
|
||||
'organizations',
|
||||
'GET',
|
||||
`/organizations`,
|
||||
'/organizations',
|
||||
{},
|
||||
qs,
|
||||
);
|
||||
} else {
|
||||
const limit = this.getNodeParameter('limit', i);
|
||||
qs.per_page = limit;
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', `/organizations`, {}, qs);
|
||||
responseData = await zendeskApiRequest.call(this, 'GET', '/organizations', {}, qs);
|
||||
responseData = responseData.organizations;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -275,7 +275,7 @@ export class ZendeskTrigger implements INodeType {
|
||||
return false;
|
||||
}
|
||||
|
||||
endpoint = `/triggers/active`;
|
||||
endpoint = '/triggers/active';
|
||||
const triggers = await zendeskApiRequestAllItems.call(this, 'triggers', 'GET', endpoint);
|
||||
|
||||
for (const trigger of triggers) {
|
||||
|
||||
Reference in New Issue
Block a user