@@ -77,8 +77,9 @@ export async function proboApiRequestAllItems(
|
||||
}
|
||||
|
||||
if (connection?.pageInfo) {
|
||||
hasNextPage = connection.pageInfo.hasNextPage;
|
||||
cursor = connection.pageInfo.endCursor;
|
||||
const pageInfo = connection.pageInfo as IDataObject;
|
||||
hasNextPage = pageInfo.hasNextPage as boolean;
|
||||
cursor = pageInfo.endCursor as string | null;
|
||||
} else {
|
||||
hasNextPage = false;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData, IDataObject } from 'n8n-workflow';
|
||||
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
@@ -140,7 +140,11 @@ export async function execute(
|
||||
this,
|
||||
query,
|
||||
{ organizationId },
|
||||
(response) => response?.data?.node?.assets,
|
||||
(response) => {
|
||||
const data = response?.data as IDataObject | undefined;
|
||||
const node = data?.node as IDataObject | undefined;
|
||||
return node?.assets as IDataObject | undefined;
|
||||
},
|
||||
returnAll,
|
||||
limit,
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData, IDataObject } from 'n8n-workflow';
|
||||
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
@@ -87,7 +87,11 @@ export async function execute(
|
||||
this,
|
||||
query,
|
||||
{ frameworkId },
|
||||
(response) => response?.data?.node?.controls,
|
||||
(response) => {
|
||||
const data = response?.data as IDataObject | undefined;
|
||||
const node = data?.node as IDataObject | undefined;
|
||||
return node?.controls as IDataObject | undefined;
|
||||
},
|
||||
returnAll,
|
||||
limit,
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData, IDataObject } from 'n8n-workflow';
|
||||
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
@@ -138,7 +138,11 @@ export async function execute(
|
||||
this,
|
||||
query,
|
||||
{ organizationId },
|
||||
(response) => response?.data?.node?.data,
|
||||
(response) => {
|
||||
const responseData = response?.data as IDataObject | undefined;
|
||||
const node = responseData?.node as IDataObject | undefined;
|
||||
return node?.data as IDataObject | undefined;
|
||||
},
|
||||
returnAll,
|
||||
limit,
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData, IDataObject } from 'n8n-workflow';
|
||||
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
@@ -84,7 +84,11 @@ export async function execute(
|
||||
this,
|
||||
query,
|
||||
{ organizationId },
|
||||
(response) => response?.data?.node?.frameworks,
|
||||
(response) => {
|
||||
const data = response?.data as IDataObject | undefined;
|
||||
const node = data?.node as IDataObject | undefined;
|
||||
return node?.frameworks as IDataObject | undefined;
|
||||
},
|
||||
returnAll,
|
||||
limit,
|
||||
);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData } from 'n8n-workflow';
|
||||
import type { INodeProperties, IExecuteFunctions, INodeExecutionData, IDataObject } from 'n8n-workflow';
|
||||
import { proboApiRequestAllItems } from '../../GenericFunctions';
|
||||
|
||||
export const description: INodeProperties[] = [
|
||||
@@ -86,7 +86,11 @@ export async function execute(
|
||||
this,
|
||||
query,
|
||||
{ organizationId },
|
||||
(response) => response?.data?.node?.measures,
|
||||
(response) => {
|
||||
const data = response?.data as IDataObject | undefined;
|
||||
const node = data?.node as IDataObject | undefined;
|
||||
return node?.measures as IDataObject | undefined;
|
||||
},
|
||||
returnAll,
|
||||
limit,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user