mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
refactor(core): Introduce overload for boolean-type node parameter (no-changelog) (#4647)
* 📘 Set up overloads * 📘 Add temporary assertion * 🔥 Remove inferrable boolean assertions * ⏪ Undo autoformatting
This commit is contained in:
@@ -244,7 +244,7 @@ export class GoogleContacts implements INodeType {
|
||||
if (operation === 'get') {
|
||||
const contactId = this.getNodeParameter('contactId', i) as string;
|
||||
const fields = this.getNodeParameter('fields', i) as string[];
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
|
||||
if (fields.includes('*')) {
|
||||
qs.personFields = allFields.join(',');
|
||||
@@ -263,10 +263,10 @@ export class GoogleContacts implements INodeType {
|
||||
//https://developers.google.com/people/api/rest/v1/people.connections/list
|
||||
//https://developers.google.com/people/api/rest/v1/people/searchContacts
|
||||
if (operation === 'getAll') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i) as boolean;
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const fields = this.getNodeParameter('fields', i) as string[];
|
||||
const options = this.getNodeParameter('options', i, {}) as IDataObject;
|
||||
const rawData = this.getNodeParameter('rawData', i) as boolean;
|
||||
const rawData = this.getNodeParameter('rawData', i);
|
||||
const useQuery = this.getNodeParameter('useQuery', i) as boolean;
|
||||
|
||||
const endpoint = useQuery ? ':searchContacts' : '/me/connections';
|
||||
|
||||
Reference in New Issue
Block a user