refactor(core): Introduce overload for record-type node parameter (no-changelog) (#4648)

* 📘 Set up overload

* 🔥 Remove inferrable record assertions

* 👕 Fix semicolon

* 👕 Fix another semicolon
This commit is contained in:
Iván Ovejero
2022-11-18 16:29:44 +01:00
committed by GitHub
parent 0565194473
commit 0d9eeea024
202 changed files with 1003 additions and 985 deletions

View File

@@ -121,7 +121,7 @@ export class GSuiteAdmin implements INodeType {
if (operation === 'create') {
const email = this.getNodeParameter('email', i) as string;
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
const additionalFields = this.getNodeParameter('additionalFields', i);
const body: IDataObject = {
email,
@@ -162,7 +162,7 @@ export class GSuiteAdmin implements INodeType {
if (operation === 'getAll') {
const returnAll = this.getNodeParameter('returnAll', i);
const options = this.getNodeParameter('options', i) as IDataObject;
const options = this.getNodeParameter('options', i);
Object.assign(qs, options);
@@ -192,7 +192,7 @@ export class GSuiteAdmin implements INodeType {
if (operation === 'update') {
const groupId = this.getNodeParameter('groupId', i) as string;
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
const updateFields = this.getNodeParameter('updateFields', i);
const body: IDataObject = {};
@@ -222,7 +222,7 @@ export class GSuiteAdmin implements INodeType {
const makeAdmin = this.getNodeParameter('makeAdmin', i) as boolean;
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
const additionalFields = this.getNodeParameter('additionalFields', i);
const body: IDataObject = {
name: {
@@ -285,7 +285,7 @@ export class GSuiteAdmin implements INodeType {
const projection = this.getNodeParameter('projection', i) as string;
const options = this.getNodeParameter('options', i) as IDataObject;
const options = this.getNodeParameter('options', i);
qs.projection = projection;
@@ -318,7 +318,7 @@ export class GSuiteAdmin implements INodeType {
const projection = this.getNodeParameter('projection', i) as string;
const options = this.getNodeParameter('options', i) as IDataObject;
const options = this.getNodeParameter('options', i);
qs.projection = projection;
@@ -362,7 +362,7 @@ export class GSuiteAdmin implements INodeType {
if (operation === 'update') {
const userId = this.getNodeParameter('userId', i) as string;
const updateFields = this.getNodeParameter('updateFields', i) as IDataObject;
const updateFields = this.getNodeParameter('updateFields', i);
const body: {
name: { givenName?: string; familyName?: string };