mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
🔀 Merge branch 'master' into onedrive-create-folder-hierarchy
This commit is contained in:
@@ -661,7 +661,7 @@ export const issueFields = [
|
||||
{
|
||||
displayName: 'Expand',
|
||||
name: 'expand',
|
||||
type: 'options',
|
||||
type: 'multiOptions',
|
||||
default: '',
|
||||
options: [
|
||||
{
|
||||
|
||||
@@ -594,7 +594,11 @@ export class Jira implements INodeType {
|
||||
body.jql = options.jql as string;
|
||||
}
|
||||
if (options.expand) {
|
||||
body.expand = options.expand as string;
|
||||
if (typeof options.expand === 'string') {
|
||||
body.expand = options.expand.split(',');
|
||||
} else {
|
||||
body.expand = options.expand;
|
||||
}
|
||||
}
|
||||
if (returnAll) {
|
||||
responseData = await jiraSoftwareCloudApiRequestAllItems.call(this, 'issues', `/api/2/search`, 'POST', body);
|
||||
|
||||
@@ -3928,10 +3928,11 @@ export class Pipedrive implements INodeType {
|
||||
|
||||
return sortOptionParameters(returnData);
|
||||
},
|
||||
// Get all Organizations to display them to user so that he can
|
||||
// Get all Users to display them to user so that he can
|
||||
// select them easily
|
||||
async getUserIds(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||
const returnData: INodePropertyOptions[] = [];
|
||||
const resource = this.getCurrentNodeParameter('resource');
|
||||
const { data } = await pipedriveApiRequest.call(this, 'GET', '/users', {});
|
||||
for (const user of data) {
|
||||
if (user.active_flag === true) {
|
||||
@@ -3942,6 +3943,13 @@ export class Pipedrive implements INodeType {
|
||||
}
|
||||
}
|
||||
|
||||
if(resource === 'activity'){
|
||||
returnData.push({
|
||||
name: 'All Users',
|
||||
value: 0,
|
||||
});
|
||||
}
|
||||
|
||||
return sortOptionParameters(returnData);
|
||||
},
|
||||
// Get all Deals to display them to user so that he can
|
||||
|
||||
@@ -71,15 +71,21 @@ export async function slackApiRequestAllItems(this: IExecuteFunctions | ILoadOpt
|
||||
const returnData: IDataObject[] = [];
|
||||
let responseData;
|
||||
query.page = 1;
|
||||
query.count = 100;
|
||||
//if the endpoint uses legacy pagination use count
|
||||
//https://api.slack.com/docs/pagination#classic
|
||||
if (endpoint.includes('files.list')) {
|
||||
query.count = 100;
|
||||
} else {
|
||||
query.limit = 100;
|
||||
}
|
||||
do {
|
||||
responseData = await slackApiRequest.call(this, method, endpoint, body, query);
|
||||
query.cursor = encodeURIComponent(_.get(responseData, 'response_metadata.next_cursor'));
|
||||
query.cursor = _.get(responseData, 'response_metadata.next_cursor');
|
||||
query.page++;
|
||||
returnData.push.apply(returnData, responseData[propertyName]);
|
||||
} while (
|
||||
(responseData.response_metadata !== undefined &&
|
||||
responseData.response_metadata.mext_cursor !== undefined &&
|
||||
responseData.response_metadata.next_cursor !== undefined &&
|
||||
responseData.response_metadata.next_cursor !== '' &&
|
||||
responseData.response_metadata.next_cursor !== null) ||
|
||||
(responseData.paging !== undefined &&
|
||||
|
||||
@@ -414,10 +414,10 @@ export class Slack implements INodeType {
|
||||
qs.inclusive = filters.inclusive as boolean;
|
||||
}
|
||||
if (filters.latest) {
|
||||
qs.latest = filters.latest as string;
|
||||
qs.latest = new Date(filters.latest as string).getTime()/1000;
|
||||
}
|
||||
if (filters.oldest) {
|
||||
qs.oldest = filters.oldest as string;
|
||||
qs.oldest = new Date(filters.oldest as string).getTime()/1000;
|
||||
}
|
||||
if (returnAll === true) {
|
||||
responseData = await slackApiRequestAllItems.call(this, 'messages', 'GET', '/conversations.history', {}, qs);
|
||||
@@ -508,10 +508,10 @@ export class Slack implements INodeType {
|
||||
qs.inclusive = filters.inclusive as boolean;
|
||||
}
|
||||
if (filters.latest) {
|
||||
qs.latest = filters.latest as string;
|
||||
qs.latest = new Date(filters.latest as string).getTime()/1000;
|
||||
}
|
||||
if (filters.oldest) {
|
||||
qs.oldest = filters.oldest as string;
|
||||
qs.oldest = new Date(filters.oldest as string).getTime()/1000;
|
||||
}
|
||||
if (returnAll === true) {
|
||||
responseData = await slackApiRequestAllItems.call(this, 'messages', 'GET', '/conversations.replies', {}, qs);
|
||||
|
||||
@@ -357,6 +357,23 @@ export const tweetFields = [
|
||||
default: 'mixed',
|
||||
description: 'Specifies what type of search results you would prefer to receive',
|
||||
},
|
||||
{
|
||||
displayName: 'Tweet Mode',
|
||||
name: 'tweetMode',
|
||||
type: 'options',
|
||||
options: [
|
||||
{
|
||||
name: 'Compatibility',
|
||||
value: 'compat',
|
||||
},
|
||||
{
|
||||
name: 'Extended',
|
||||
value: 'extended',
|
||||
},
|
||||
],
|
||||
default: 'compat',
|
||||
description: 'When the extended mode is selected, the response contains the entire untruncated text of the Tweet',
|
||||
},
|
||||
{
|
||||
displayName: 'Until',
|
||||
name: 'until',
|
||||
|
||||
@@ -235,6 +235,8 @@ export class Twitter implements INodeType {
|
||||
}
|
||||
}
|
||||
|
||||
qs.tweet_mode = additionalFields.tweetMode || 'compat';
|
||||
|
||||
if (returnAll) {
|
||||
responseData = await twitterApiRequestAllItems.call(this, 'statuses', 'GET', '/search/tweets.json', {}, qs);
|
||||
} else {
|
||||
|
||||
@@ -232,7 +232,7 @@ export const orderFields = [
|
||||
},
|
||||
{
|
||||
displayName: 'Postal Code',
|
||||
name: 'postalCode',
|
||||
name: 'postcode',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
@@ -645,7 +645,7 @@ export const orderFields = [
|
||||
},
|
||||
{
|
||||
displayName: 'Postal Code',
|
||||
name: 'postalCode',
|
||||
name: 'postcode',
|
||||
type: 'string',
|
||||
default: '',
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user