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:
@@ -149,7 +149,7 @@ export class VenafiTlsProtectCloud implements INodeType {
|
||||
'certificateIssuingTemplateId',
|
||||
i,
|
||||
) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
const generateCsr = this.getNodeParameter('generateCsr', i) as boolean;
|
||||
|
||||
const body: ICertficateRequest = {
|
||||
@@ -163,7 +163,7 @@ export class VenafiTlsProtectCloud implements INodeType {
|
||||
i,
|
||||
) as string;
|
||||
const commonName = this.getNodeParameter('commonName', i) as string;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
const additionalFields = this.getNodeParameter('additionalFields', i);
|
||||
|
||||
const keyTypeDetails: IKeyTypeParameters = {};
|
||||
const csrAttributes: ICsrAttributes = {};
|
||||
@@ -313,7 +313,7 @@ export class VenafiTlsProtectCloud implements INodeType {
|
||||
const certificateId = this.getNodeParameter('certificateId', i) as string;
|
||||
const binaryProperty = this.getNodeParameter('binaryProperty', i) as string;
|
||||
const downloadItem = this.getNodeParameter('downloadItem', i) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
|
||||
// Cert Download
|
||||
if (downloadItem === 'certificate') {
|
||||
@@ -408,7 +408,7 @@ export class VenafiTlsProtectCloud implements INodeType {
|
||||
//https://api.venafi.cloud/webjars/swagger-ui/index.html?configUrl=%2Fv3%2Fapi-docs%2Fswagger-config&urls.primaryName=outagedetection-service#/%2Fv1/certificates_getAllAsCsv
|
||||
if (operation === 'getMany') {
|
||||
const returnAll = this.getNodeParameter('returnAll', i);
|
||||
const filters = this.getNodeParameter('filters', i) as IDataObject;
|
||||
const filters = this.getNodeParameter('filters', i);
|
||||
|
||||
Object.assign(qs, filters);
|
||||
|
||||
@@ -450,7 +450,7 @@ export class VenafiTlsProtectCloud implements INodeType {
|
||||
'existingCertificateId',
|
||||
i,
|
||||
) as string;
|
||||
const options = this.getNodeParameter('options', i) as IDataObject;
|
||||
const options = this.getNodeParameter('options', i);
|
||||
|
||||
const body: IDataObject = {
|
||||
certificateSigningRequest,
|
||||
|
||||
Reference in New Issue
Block a user